You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/9974.ce8de322.async.js

1370 lines
2.4 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[9974],{89489:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},59477:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},40001:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},26227:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},49198:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},41464:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},87169:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"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"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},73331:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},15277:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},52671:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},8657:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},56082:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},33853:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},15075:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},43531:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},61485:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},38819:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},47472:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(ne,xe){return zt.createElement(Xt.Z,(0,At.Z)({},ne,{ref:xe,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt},37036:function(){"use strict"},88010:function(Bn,Cn){"use strict";Cn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},24990:function(Bn,Cn){"use strict";Cn.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_button:"work_button___TiK1a"}},1370:function(Bn,Cn){"use strict";Cn.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},74413:function(){"use strict";function Bn(Tt,et,nt,ht){nt===void 0&&(nt=0),ht===void 0&&(ht=1/0),this._name=Tt,this._defaultValue=et,this._minimum=nt,this._maximum=ht}Object.defineProperty(Bn.prototype,"name",{get:function(){return this._name},set:function(Tt){if(typeof Tt!="string"||Tt==="")throw new Error("Shape name must be a valid string.");this._name=Tt}}),Object.defineProperty(Bn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Tt){if(typeof Tt!="number"||isNaN(Tt))throw new Error("The default value must be a real number, not: "+Tt);this._defaultValue=Tt}}),Object.defineProperty(Bn.prototype,"minimum",{get:function(){return this._minimum},set:function(Tt){if(typeof Tt!="number"||isNaN(Tt))throw new Error("Minimum must be a real number, not: "+Tt);this._minimum=Tt}}),Object.defineProperty(Bn.prototype,"maximum",{get:function(){return this._maximum},set:function(Tt){if(typeof Tt!="number"||isNaN(Tt))throw new Error("Maximum must be a real number, not: "+Tt);this._maximum=Tt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Tt,et){var nt=go.Shape._FigureParameters[Tt];return nt?nt[et]:null},go.Shape.setFigureParameter=function(Tt,et,nt){if(!(nt instanceof Bn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValue<nt.minimum||nt.defaultValue>nt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var ht=go.Shape._FigureParameters[Tt];ht||(ht=[],go.Shape._FigureParameters[Tt]=ht),ht[et]=nt};var Cn=[];function St(Tt,et){var nt=Cn.pop();return nt===void 0?new go.Point(Tt,et):(nt.x=Tt,nt.y=et,nt)}function At(){var Tt=Cn.pop();return Tt===void 0?new go.Point:Tt}function zt(Tt){Cn.push(Tt)}function oe(Tt,et,nt,ht,st,gt,vt,Pt,Ft){Ft||(Ft=new go.Point);var wt=Tt-nt,Ot=st-vt,Ht=NaN,Zt=NaN;if(wt===0)if(Ot===0)Tt===nt&&(Ht=Tt,Zt=et);else{var Ut=(gt-Pt)/Ot,fe=gt-Ut*st;Ht=Tt,Zt=Ut*Ht+fe}else if(Ot===0){var Yt=(et-ht)/wt,Xe=et-Yt*Tt;Ht=st,Zt=Yt*Ht+Xe}else{var Yt=(et-ht)/wt,Ut=(gt-Pt)/Ot,Xe=et-Yt*Tt,fe=gt-Ut*st;Ht=(fe-Xe)/(Yt-Ut),Zt=Yt*Ht+Xe}return Ft.x=Ht,Ft.y=Zt,Ft}function Me(Tt,et,nt,ht,st,gt,vt,Pt,Ft,wt,Ot,Ht,Zt,Ut){var fe=1-Ft,Yt=Ft,Xe=Tt*fe+nt*Yt,pe=et*fe+ht*Yt,tn=nt*fe+st*Yt,Ve=ht*fe+gt*Yt,We=st*fe+vt*Yt,_e=gt*fe+Pt*Yt,Tn=Xe*fe+tn*Yt,ye=pe*fe+Ve*Yt,Gt=tn*fe+We*Yt,nn=Ve*fe+_e*Yt,Zn=Tn*fe+Gt*Yt,_n=ye*fe+nn*Yt;wt.x=Xe,wt.y=pe,Ot.x=Tn,Ot.y=ye,Ht.x=Zn,Ht.y=_n,Zt.x=Gt,Zt.y=nn,Ut.x=We,Ut.y=_e}var Xt=new go.Spot(.156,.156),Se=new go.Spot(.844,.844),Nt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Bn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var st=ht*Nt,gt=new go.Geometry().add(new go.PathFigure(ht,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-ht,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-st,0,et,st)).add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)).add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,nt-st,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,ht,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,st,nt,0,nt-st)).add(new go.PathSegment(go.PathSegment.Line,0,ht)).add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,st,st,0).close()));return st>1&&(gt.spot1=new go.Spot(0,0,st,st),gt.spot2=new go.Spot(1,1,-st,-st)),gt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Tt,et,nt){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,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).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(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Tt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=nt/2,ht.endX=et,ht.endY=nt/2,ht}),go.Shape.defineFigureGenerator("LineV",function(Tt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et/2,ht.startY=0,ht.endX=et/2,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!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,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Tt,et,nt){var ht=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ht*et,(1-ht)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(Tt,et,nt){var ht=et/2,st=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ht,ht,ht,ht).close()));return st.spot1=Xt,st.spot2=Se,st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Line1",function(Tt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Line2",function(Tt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et,ht.startY=0,ht.endX=0,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Curve1",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Nt*et,0,et,(1-Nt)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,Nt*nt,(1-Nt)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,Nt*nt,Nt*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-Nt)*et,0,0,(1-Nt)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Tt,et,nt){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,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Tt,et,nt){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,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Bn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=.1:ht<-1?ht=-1:ht>1&&(ht=1);var st=Math.abs(ht)*et;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&&gt.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Bn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=10:ht<-et?ht=-et:ht>et&&(ht=et);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&&gt.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.setFigureParameter("Trapezoid1",0,new Bn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=.2:ht<.5?ht=-.5:ht>.5&&(ht=.5);var st=Math.abs(ht)*et;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&&gt.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Bn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=20:ht<-et?ht=-et/2:ht>et&&(ht=et/2);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&&gt.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.setFigureParameter("ManualOperation",0,new Bn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=10:ht<-et?ht=-et/2:ht>et&&(ht=et/2);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())):gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),st<et/2&&gt.setSpots(st/et,0,(et-st)/et,1),gt}});var Ne=[];function Pe(){var Tt=Ne.pop();return Tt===void 0?[]:Tt}function ne(Tt){Tt.length=0,Ne.push(Tt)}function xe(Tt){for(var et=Pe(),nt=.5,ht=.5,st=Math.PI*1.5,gt=0,vt=0;vt<Tt;vt++)gt=2*Math.PI/Tt*vt+st,et[vt]=new go.Point(ht+nt*Math.cos(gt),ht+nt*Math.sin(gt));return et.push(et[0]),et}function we(Tt){var et=Ce(Tt),nt=Pe();nt[0]=et[0];for(var ht=1,st=1;ht<et.length;ht+=2,st+=3)nt[st]=et[ht],nt[st+1]=et[ht],nt[st+2]=et[ht+1];return ne(et),nt}function Ce(Tt){for(var et=xe(Tt),nt=Pe(),ht=Math.floor(et.length/2),st=et.length-1,gt=Tt%2===0?2:1,vt=0;vt<st;vt++){var Pt=et[vt],Ft=et[vt+1],wt=et[(ht+vt-1)%st],Ot=et[(ht+vt+gt)%st];nt[vt*2]=Pt,nt[vt*2+1]=oe(Pt.x,Pt.y,wt.x,wt.y,Ft.x,Ft.y,Ot.x,Ot.y,new go.Point)}return nt[nt.length]=nt[0],ne(et),nt}go.Shape.defineFigureGenerator("Pentagon",function(Tt,et,nt){var ht=xe(5),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<5;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.2,.22),st.spot2=new go.Spot(.8,.9),st}),go.Shape.defineFigureGenerator("Hexagon",function(Tt,et,nt){var ht=xe(6),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<6;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.07,.25),st.spot2=new go.Spot(.93,.75),st}),go.Shape.defineFigureGenerator("Heptagon",function(Tt,et,nt){var ht=xe(7),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<7;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.2,.15),st.spot2=new go.Spot(.8,.85),st}),go.Shape.defineFigureGenerator("Octagon",function(Tt,et,nt){var ht=xe(8),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<8;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.15,.15),st.spot2=new go.Spot(.85,.85),st}),go.Shape.defineFigureGenerator("Nonagon",function(Tt,et,nt){var ht=xe(9),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<9;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.17,.13),st.spot2=new go.Spot(.82,.82),st}),go.Shape.defineFigureGenerator("Decagon",function(Tt,et,nt){var ht=xe(10),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<10;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.16,.16),st.spot2=new go.Spot(.84,.84),st}),go.Shape.defineFigureGenerator("Dodecagon",function(Tt,et,nt){var ht=xe(12),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<12;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.16,.16),st.spot2=new go.Spot(.84,.84),st}),go.Shape.defineFigureGenerator("FivePointedStar",function(Tt,et,nt){var ht=Ce(5),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<10;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.266,.333),st.spot2=new go.Spot(.733,.733),st}),go.Shape.defineFigureGenerator("SixPointedStar",function(Tt,et,nt){var ht=Ce(6),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<12;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.17,.25),st.spot2=new go.Spot(.83,.75),st}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Tt,et,nt){var ht=Ce(7),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<14;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.222,.277),st.spot2=new go.Spot(.777,.666),st}),go.Shape.defineFigureGenerator("EightPointedStar",function(Tt,et,nt){var ht=Ce(8),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<16;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("NinePointedStar",function(Tt,et,nt){var ht=Ce(9),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<18;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.222,.277),st.spot2=new go.Spot(.777,.666),st}),go.Shape.defineFigureGenerator("TenPointedStar",function(Tt,et,nt){var ht=Ce(10),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<20;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),ne(ht),st.spot1=new go.Spot(.281,.261),st.spot2=new go.Spot(.723,.748),st}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Tt,et,nt){var ht=we(5),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),ne(ht),st.spot1=new go.Spot(.222,.277),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Tt,et,nt){var ht=we(6),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),ne(ht),st.spot1=new go.Spot(.17,.222),st.spot2=new go.Spot(.833,.777),st}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Tt,et,nt){var ht=we(7),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),ne(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Tt,et,nt){var ht=we(8),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),ne(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Tt,et,nt){var ht=we(9),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),ne(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Tt,et,nt){var ht=we(10),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),ne(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.setFigureParameter("FramedRectangle",0,new Bn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Bn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN,st=Tt?Tt.parameter2:NaN;isNaN(ht)&&(ht=8),isNaN(st)&&(st=8);var gt=new go.Geometry,vt=new go.PathFigure(0,0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht<et/2&&st<nt/2&&(vt.add(new go.PathSegment(go.PathSegment.Move,ht,st)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,st).close())),gt.setSpots(0,0,1,1,ht,st,-ht,-st),gt}),go.Shape.setFigureParameter("Ring",0,new Bn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=8);var st=et/2,gt=new go.Geometry,vt=new go.PathFigure(et,et/2,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Arc,0,360,st,st,st,st).close());var Pt=Math.max(st-ht,0);return Pt>0&&(vt.add(new go.PathSegment(go.PathSegment.Move,et/2+Pt,et/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,st,st,Pt,Pt).close())),gt.spot1=Xt,gt.spot2=Se,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Tt,et,nt){var ht=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ht*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close())).setSpots(ht/2,ht/2,1-ht/2,1-ht/2)}),go.Shape.setFigureParameter("Pie",0,new Bn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Bn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN,st=Tt?Tt.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(st)&&(st=315);var gt=ht%360;gt<0&&(gt+=360);var vt=st%360,Pt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(Pt,Pt).add(new go.PathSegment(go.PathSegment.Arc,gt,vt,Pt,Pt,Pt,Pt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Tt,et,nt){var ht=Nt/Math.SQRT2*.5,st=Math.SQRT2/2,gt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,st*et,gt*nt,et,(1-ht)*nt,(st+ht)*et,(gt+ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Bn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30);var st=Math.min(ht,et)/2,gt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-st,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+st,0)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt-st)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt-st).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Bn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var st=Math.min(ht,et)/2,gt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-st,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+st,0)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt-st)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt-st).close()))}),go.Shape.setFigureParameter("ThickX",0,new Bn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;if((isNaN(ht)||ht<0)&&(ht=30),et===0||nt===0){var st=new go.Geometry(go.Geometry.Rectangle);return st.startX=0,st.startY=0,st.endX=et,st.endY=nt,st}else{var gt=et/2,vt=nt/2,Pt=Math.atan2(nt,et),Ft=ht-Math.min(Math.cos(Pt)*ht/2,gt),wt=ht-Math.min(Math.sin(Pt)*ht/2,vt),st=new go.Geometry,Ot=new go.PathFigure(Ft,0,!0);return st.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,gt,.2*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et-Ft,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,nt-wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et-Ft,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,gt,.8*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,Ft,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,nt-wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),st}}),go.Shape.setFigureParameter("ThinX",0,new Bn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var st=new go.Geometry,gt=new go.PathFigure(.1*et,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),st}),go.Shape.setFigureParameter("SquareIBeam",0,new Bn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.2);var st=new go.Geometry,gt=new go.PathFigure(0,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close()),st}),go.Shape.setFigureParameter("RoundedIBeam",0,new Bn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.5);var st=new go.Geometry,gt=new go.PathFigure(0,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-ht)*et,.25*nt,Math.abs(1-ht)*et,.75*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),st}),go.Shape.defineFigureGenerator("HalfEllipse",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,Nt*et,0,et,(.5-Nt/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+Nt/2)*nt,Nt*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.4*et,.6*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var gt=.2,vt=.3,Pt=0,Ft=gt*Nt;return st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+gt+Pt)*nt,(.5-gt+vt)*et,(.5+Ft+Pt)*nt,(.5-Ft+vt)*et,(.5+gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+vt)*et,(.5+Pt)*nt,(.5+Ft+vt)*et,(.5+gt+Pt)*nt,(.5+gt+vt)*et,(.5+Ft+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-gt+Pt)*nt,(1-.5+gt+vt)*et,(.5-Ft+Pt)*nt,(.5+Ft+vt)*et,(.5-gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-Ft+vt)*et,(.5-gt+Pt)*nt,(.5-gt+vt+.05)*et,(.5-Ft+Pt-.02)*nt)),gt=.2,vt=0,Pt=-.3,Ft=gt*Nt,st.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+vt)*et,(.5+Pt)*nt,(.5+Ft+vt)*et,(.5+gt+Pt)*nt,(.5+gt+vt)*et,(.5+Ft+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-gt+Pt)*nt,(1-.5+gt+vt)*et,(.5-Ft+Pt)*nt,(.5+Ft+vt)*et,(.5-gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+vt)*et,(.5+Pt)*nt,(.5-Ft+vt)*et,(.5-gt+Pt)*nt,(.5-gt+vt)*et,(.5-Ft+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ft+vt)*et,(.5+gt+Pt)*nt,(.5-gt+vt)*et,(.5+Ft+Pt)*nt,(.5-Ft+vt)*et,(.5+gt+Pt)*nt)),gt=.2,vt=-.3,Pt=0,Ft=gt*Nt,st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-gt+Pt)*nt,(1-.5+gt+vt-.05)*et,(.5-Ft+Pt-.02)*nt,(.5+Ft+vt)*et,(.5-gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+vt)*et,(.5+Pt)*nt,(.5-Ft+vt)*et,(.5-gt+Pt)*nt,(.5-gt+vt)*et,(.5-Ft+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+gt+Pt)*nt,(.5-gt+vt)*et,(.5+Ft+Pt)*nt,(.5-Ft+vt)*et,(.5+gt+Pt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+Ft+vt)*et,(.5+gt+Pt)*nt,(.5+gt+vt)*et,(.5+Ft+Pt)*nt).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.5,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),st.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),st.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var gt=.1,vt=.5,Pt=.25;return st.add(new go.PathSegment(go.PathSegment.Move,(vt+gt)*et,Pt*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*vt,nt*Pt,gt*et,gt*et).close()),st=new go.PathFigure(et*.5,0,!1),ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),Pt=.75,st=new go.PathFigure((vt+gt)*et,Pt*nt,!0),ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*vt,nt*Pt,gt*et,gt*et).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Tt,et,nt){var ht=.8535533905932737,st=.5*et,gt=.5*nt;return new go.Geometry().add(new go.PathFigure(st,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,st,gt,st,gt)).add(new go.PathSegment(go.PathSegment.Line,st,nt)).add(new go.PathSegment(go.PathSegment.Move,st,gt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,st,gt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=.5,vt=.5,Pt=.5,Ft=new go.PathFigure(vt*et,(Pt-gt)*nt);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),gt=.4,st=Nt*.4;var wt=At(),Ot=At(),Ht=At(),Zt=At();Me(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.42,wt,Ot,Ht,Zt,Zt);var Ut=At(),fe=At(),Yt=At();Me(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.58,Zt,Zt,Yt,Ut,fe);var Xe=At(),pe=At(),tn=At();Me(vt,Pt+gt,vt-st,Pt+gt,vt-gt,Pt+st,vt-gt,Pt,.42,Xe,pe,tn,Zt,Zt);var Ve=At(),We=At(),_e=At();return Me(vt,Pt+gt,vt-st,Pt+gt,vt-gt,Pt+st,vt-gt,Pt,.58,Zt,Zt,_e,Ve,We),Ft.add(new go.PathSegment(go.PathSegment.Move,_e.x*et,_e.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,Ve.x*et,Ve.y*nt,We.x*et,We.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Ht.x*et,Ht.y*nt,wt.x*et,wt.y*nt,Ot.x*et,Ot.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,_e.x*et,_e.y*nt).close()),Ft.add(new go.PathSegment(go.PathSegment.Move,tn.x*et,tn.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,Yt.x*et,Yt.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,Ut.x*et,Ut.y*nt,fe.x*et,fe.y*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,tn.x*et,tn.y*nt,Xe.x*et,Xe.y*nt,pe.x*et,pe.y*nt).close()),zt(wt),zt(Ot),zt(Ht),zt(Zt),zt(Ut),zt(fe),zt(Yt),zt(Xe),zt(pe),zt(tn),zt(Ve),zt(We),zt(_e),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Tt,et,nt){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*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).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*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Bn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30),ht>et&&(ht=et);var st=(et-ht)/2,gt=st+ht;return new go.Geometry().add(new go.PathFigure(gt,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,st,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.4,gt=.4,vt=.5,Pt=.5,Ft=At(),wt=At(),Ot=At(),Ht=At(),Zt=new go.PathFigure((vt-gt)*et,Pt*nt,!1);ht.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt)),Me(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.44,Ot,Ht,wt,Ft,Ft),Zt.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*et,wt.y*nt,Ot.x*et,Ot.y*nt,Ht.x*et,Ht.y*nt));var Ut=St(wt.x,wt.y);Me(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.56,Ft,Ft,wt,Ot,Ht);var fe=St(wt.x,wt.y);Zt.add(new go.PathSegment(go.PathSegment.Line,(Ut.x*.1+.95*.9)*et,Ut.y*.1*nt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.85*et,Ut.y*.1*nt)),Zt.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Zt.add(new go.PathSegment(go.PathSegment.Line,et,0)),Zt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),Zt.add(new go.PathSegment(go.PathSegment.Line,(fe.x*.1+.9)*et,.15*nt)),Zt.add(new go.PathSegment(go.PathSegment.Line,(fe.x*.1+.9)*et,(fe.y*.1+.05*.9)*nt)),Zt.add(new go.PathSegment(go.PathSegment.Line,fe.x*et,fe.y*nt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,Ot.x*et,Ot.y*nt,Ht.x*et,Ht.y*nt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt)),gt=.35,st=Nt*.35;var Yt=new go.PathFigure(vt*et,(Pt-gt)*nt,!1);ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt));var Xe=new go.PathFigure((vt-gt)*et,Pt*nt,!1);return ht.add(Xe),zt(Ft),zt(wt),zt(Ot),zt(Ht),zt(Ut),zt(fe),ht.spot1=new go.Spot(.202,.257),ht.spot2=new go.Spot(.792,.739),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("GenderFemale",function(Tt,et,nt){var ht=new go.Geometry,st=.375,gt=0,vt=-.125,Pt=st*Nt,Ft=new go.PathFigure((.525+gt)*et,(.5+st+vt)*nt,!1);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+st+gt)*et,(.5+vt)*nt,(.5+Pt+gt)*et,(.5+st+vt)*nt,(.5+st+gt)*et,(.5+Pt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-st+vt)*nt,(1-.5+st+gt)*et,(.5-Pt+vt)*nt,(.5+Pt+gt)*et,(.5-st+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+vt)*nt,(.5-Pt+gt)*et,(.5-st+vt)*nt,(.5-st+gt)*et,(.5-Pt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.475+gt)*et,(.5+st+vt)*nt,(.5-st+gt)*et,(.5+Pt+vt)*nt,(.5-Pt+gt)*et,(.5+st+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),st=.325,gt=0,vt=-.125,Pt=st*Nt;var Ft=new go.PathFigure((1-.5+st+gt)*et,(.5+vt)*nt,!1);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5+st+vt)*nt,(.5+st+gt)*et,(.5+Pt+vt)*nt,(.5+Pt+gt)*et,(.5+st+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+vt)*nt,(.5-Pt+gt)*et,(.5+st+vt)*nt,(.5-st+gt)*et,(.5+Pt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-st+vt)*nt,(.5-st+gt)*et,(.5-Pt+vt)*nt,(.5-Pt+gt)*et,(.5-st+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+st+gt)*et,(.5+vt)*nt,(.5+Pt+gt)*et,(.5-st+vt)*nt,(1-.5+st+gt)*et,(.5-Pt+vt)*nt));var Ft=new go.PathFigure((.525+gt)*et,(.5+st+vt)*nt,!1);return ht.add(Ft),ht.spot1=new go.Spot(.232,.136),ht.spot2=new go.Spot(.682,.611),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicImplies",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Tt,et,nt){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,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Tt,et,nt){var ht=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicTruth",function(Tt,et,nt){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,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Tt,et,nt){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*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Tt,et,nt){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*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Tt,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Tt,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Bn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Bn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=.3);var gt=(1-ht)*et,vt=(.5-st/2)*nt,Pt=(.5+st/2)*nt,Ft=new go.Geometry,wt=new go.PathFigure(0,vt,!0);Ft.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,gt,vt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,Pt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),Ft.spot1=new go.Spot(0,vt/nt);var Ot=oe(0,Pt/nt,1,Pt/nt,gt/et,1,1,.5,At());return Ft.spot2=new go.Spot(Ot.x,Ot.y),zt(Ot),Ft}),go.Shape.setFigureParameter("Arrow2",0,new Bn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Bn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=30),ht>et&&(ht=et);var st=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=30),st=Math.min(st,nt/2);var gt=et-ht,vt=(nt-st)/2,Pt=vt+st,Ft=new go.Geometry,wt=new go.PathFigure(0,vt,!0);Ft.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,gt,vt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,gt,Pt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),Ft.spot1=new go.Spot(0,vt/nt);var Ot=oe(0,Pt/nt,1,Pt/nt,gt/et,1,1,.5,At());return Ft.spot2=new go.Spot(Ot.x,Ot.y),zt(Ot),Ft}),go.Shape.defineFigureGenerator("Chevron",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("DoubleArrow",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),ht}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Bn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Ft=oe(0,.5,.3,0,0,st/nt,.1,st/nt,At());return vt.spot1=new go.Spot(Ft.x,Ft.y),Ft=oe(.7,1,1,.5,0,gt/nt,1,gt/nt,Ft),vt.spot2=new go.Spot(Ft.x,Ft.y),zt(Ft),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Bn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Bn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=40);var st=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=100);var gt=(nt-ht)/2,vt=gt+ht,Pt=(nt-st)/2,Ft=Pt+st;(ht>nt||st>nt)&&(st>ht?(ht=ht*nt/st,gt=(nt-ht)/2,vt=gt+ht,Pt=0,Ft=nt):(gt=0,vt=nt,Pt=0,Ft=nt));var wt=new go.Geometry,Ot=new go.PathFigure(et,.5*nt,!0);wt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Ft)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,Ft)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,Pt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Pt).close());var Ht=oe(0,.5,.3,Pt/nt,0,gt/nt,1,gt/nt,At());return wt.spot1=new go.Spot(Ht.x,Ht.y),Ht=oe(.7,Ft/nt,1,.5,0,vt/nt,1,vt/nt,Ht),wt.spot2=new go.Spot(Ht.x,Ht.y),zt(Ht),wt}),go.Shape.setFigureParameter("IBeamArrow",0,new Bn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),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,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(0,st/nt);var Ft=oe(.7,1,1,.5,0,gt/nt,1,gt/nt,At());return vt.spot2=new go.Spot(Ft.x,Ft.y),zt(Ft),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Bn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Bn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=40);var st=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=100);var gt=(nt-ht)/2,vt=gt+ht,Pt=(nt-st)/2,Ft=Pt+st;(ht>nt||st>nt)&&(st>ht?(ht=ht*nt/st,gt=(nt-ht)/2,vt=gt+ht,Pt=0,Ft=nt):(gt=0,vt=nt,Pt=0,Ft=nt));var wt=new go.Geometry,Ot=new go.PathFigure(et,.5*nt,!0);wt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Ft)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,Ft)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,Ft)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,Pt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,Pt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Pt).close()),wt.spot1=new go.Spot(0,gt/nt);var Ht=oe(.7,Ft/nt,1,.5,0,vt/nt,1,vt/nt,At());return wt.spot2=new go.Spot(Ht.x,Ht.y),zt(Ht),wt}),go.Shape.setFigureParameter("Pointer",0,new Bn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.1);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),st.spot1=new go.Spot(ht,.35);var vt=oe(.2,.65,1,.65,0,1,1,.5,At());return st.spot2=new go.Spot(vt.x,vt.y),zt(vt),st}),go.Shape.setFigureParameter("RoundedPointer",0,new Bn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),st.spot1=new go.Spot(ht,.35);var vt=oe(0,.65,1,.65,0,1,1,.5,At());return st.spot2=new go.Spot(vt.x,vt.y),zt(vt),st}),go.Shape.setFigureParameter("SplitEndArrow",0,new Bn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.4);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,.3);var Ft=oe(.7,1,1,.5,0,gt/nt,1,gt/nt,At());return vt.spot2=new go.Spot(Ft.x,Ft.y),zt(Ft),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Bn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=50);var st=(nt-ht)/2,gt=st+ht;ht>nt&&(st=0,gt=nt);var vt=new go.Geometry,Pt=new go.PathFigure(et,.5*nt,!0);vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,st/nt);var Ft=oe(.7,1,1,.5,0,gt/nt,1,gt/nt,At());return vt.spot2=new go.Spot(Ft.x,Ft.y),zt(Ft),vt}),go.Shape.setFigureParameter("SquareArrow",0,new Bn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.7);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(ht,1),st}),go.Shape.defineFigureGenerator("Cone1",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=Nt*.1,vt=new go.PathFigure(0,.9*nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt).close()),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.97),ht}),go.Shape.defineFigureGenerator("Cone2",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.9*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var gt=new go.PathFigure(0,.9*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.82),ht}),go.Shape.defineFigureGenerator("Cube1",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.5,.85),ht}),go.Shape.defineFigureGenerator("Cube2",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.3*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var gt=new go.PathFigure(0,.3*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.7,1),ht}),go.Shape.defineFigureGenerator("Cylinder1",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var st=new go.Geometry,gt=Nt*.5,vt=new go.PathFigure(0,ht,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Nt*ht,(.5-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,ht,(.5+gt)*et,0,1*et,Nt*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-Nt*ht,(.5+gt)*et,1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-gt)*et,1*nt,0,nt-Nt*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var Pt=new go.PathFigure(et,ht,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*ht,1*et,2*ht-Nt*ht,(.5+gt)*et,2*ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-gt)*et,2*ht,0,2*ht-Nt*ht)),st.spot1=new go.Spot(0,0,0,2*ht),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Cylinder2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var st=new go.Geometry,gt=Nt*.5,vt=new go.PathFigure(0,nt-ht,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Nt*ht,(.5-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,(.5+gt)*et,0,et,Nt*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-Nt*ht,(.5+gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-gt)*et,nt,0,nt-Nt*ht));var Pt=new go.PathFigure(0,nt-ht,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*ht,0,nt-ht-Nt*ht,(.5-gt)*et,nt-2*ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-ht,(.5+gt)*et,nt-2*ht,et,nt-ht-Nt*ht)),st.spot1=new go.Spot(0,0),st.spot2=new go.Spot(1,1,0,-2*ht),st}),go.Shape.defineFigureGenerator("Cylinder3",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var st=new go.Geometry,gt=Nt*.5,vt=new go.PathFigure(ht,0,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Nt*ht,0,et,(.5-gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+gt)*nt,et-Nt*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Nt*ht,nt,0,(.5+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*nt,Nt*ht,0));var Pt=new go.PathFigure(ht,0,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*nt,ht+Nt*ht,0,2*ht,(.5-gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ht,nt,2*ht,(.5+gt)*nt,ht+Nt*ht,nt)),st.spot1=new go.Spot(0,0,2*ht,0),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Cylinder4",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var st=new go.Geometry,gt=Nt*.5,vt=new go.PathFigure(et-ht,0,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Nt*ht,0,et,(.5-gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+gt)*nt,et-Nt*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Nt*ht,nt,0,(.5+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*nt,Nt*ht,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0));var Pt=new go.PathFigure(et-ht,0,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*ht,.5*nt,et-ht-Nt*ht,0,et-2*ht,(.5-gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et-2*ht,(.5+gt)*nt,et-ht-Nt*ht,nt)),st.spot1=new go.Spot(0,0),st.spot2=new go.Spot(1,1,-2*ht,0),st}),go.Shape.defineFigureGenerator("Prism1",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,.25*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.25*et,.25*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.408,.172),ht.spot2=new go.Spot(.833,.662),ht}),go.Shape.defineFigureGenerator("Prism2",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.25*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("Pyramid1",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Pyramid2",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Actor",function(Tt,et,nt){var ht=new go.Geometry,st=.2,gt=.1,vt=Nt*st,Pt=Nt*gt,Ft=.5,wt=.1,Ot=new go.PathFigure(Ft*et,(wt+gt)*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-st)*et,wt*nt,(Ft-vt)*et,(wt+gt)*nt,(Ft-st)*et,(wt+Pt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt-gt)*nt,(Ft-st)*et,(wt-Pt)*nt,(Ft-vt)*et,(wt-gt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+st)*et,wt*nt,(Ft+vt)*et,(wt-gt)*nt,(Ft+st)*et,(wt-Pt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt+gt)*nt,(Ft+st)*et,(wt+Pt)*nt,(Ft+vt)*et,(wt+gt)*nt));var Ht=.05,Zt=Nt*Ht;Ft=.05,wt=.25;var Ut=new go.PathFigure(.5*et,.2*nt,!0);return ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),Ft=.95,wt=.25,Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Ht)*et,wt*nt,(Ft+Zt)*et,(wt-Ht)*nt,(Ft+Ht)*et,(wt-Zt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),Ht=.025,Zt=Nt*Ht,Ft=.825,wt=.35,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt-Ht)*nt,(Ft+Ht)*et,(wt-Zt)*nt,(Ft+Zt)*et,(wt-Ht)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Ht)*et,wt*nt,(Ft-Zt)*et,(wt-Ht)*nt,(Ft-Ht)*et,(wt-Zt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),Ht=.05,Zt=Nt*Ht,Ft=.5,wt=.7,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt-Ht)*nt,(Ft+Ht)*et,(wt-Zt)*nt,(Ft+Zt)*et,(wt-Ht)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Ht)*et,wt*nt,(Ft-Zt)*et,(wt-Ht)*nt,(Ft-Ht)*et,(wt-Zt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),Ht=.025,Zt=Nt*Ht,Ft=.175,wt=.35,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt-Ht)*nt,(Ft+Ht)*et,(wt-Zt)*nt,(Ft+Zt)*et,(wt-Ht)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Ht)*et,wt*nt,(Ft-Zt)*et,(wt-Ht)*nt,(Ft-Ht)*et,(wt-Zt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),Ht=.05,Zt=Nt*Ht,Ft=.05,wt=.25,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt-Ht)*nt,(Ft-Ht)*et,(wt-Zt)*nt,(Ft-Zt)*et,(wt-Ht)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),ht.spot1=new go.Spot(.2,.2),ht.spot2=new go.Spot(.8,.65),ht}),go.Shape.setFigureParameter("Card",0,new Bn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.2);var st=new go.Geometry,gt=new go.PathFigure(et,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),st.spot1=new go.Spot(0,ht),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Collate",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var gt=new go.PathFigure(.5*et,.5*nt,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,.25),ht}),go.Shape.defineFigureGenerator("CreateRequest",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,st*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*nt)),ht}),go.Shape.defineFigureGenerator("Database",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=Nt*.1,vt=new go.PathFigure(et,.1*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+st)*et,0,et,(.1-gt)*nt));var Pt=new go.PathFigure(et,.1*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+st)*et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-st)*et,.2*nt,0,(.1+gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+st)*et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-st)*et,.3*nt,0,(.2+gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+gt)*nt,(.5+st)*et,.4*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-st)*et,.4*nt,0,(.3+gt)*nt)),ht.spot1=new go.Spot(0,.4),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("DataStorage",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),ht.spot1=new go.Spot(.226,0),ht.spot2=new go.Spot(.81,1),ht}),go.Shape.defineFigureGenerator("DiskStorage",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=Nt*.1,vt=new go.PathFigure(et,.1*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+st)*et,0,et,(.1-gt)*nt));var Pt=new go.PathFigure(et,.1*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+st)*et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-st)*et,.2*nt,0,(.1+gt)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+st)*et,.3*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-st)*et,.3*nt,0,(.2+gt)*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("Display",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("DividedEvent",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)?st=.2:st<.15&&(st=.15);var gt=Nt*.2,vt=new go.PathFigure(0,.2*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-gt)*nt,(.2-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+gt)*et,0,et,(.2-gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+gt)*nt,(.8+gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-gt)*et,nt,0,(.8+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var Pt=new go.PathFigure(0,st*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;(isNaN(st)||st<.1)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,st*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),ht}),go.Shape.defineFigureGenerator("Document",function(Tt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;(isNaN(st)||st<.2)&&(st=.2);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(st*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,st*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,et,st*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*nt)),ht}),go.Shape.defineFigureGenerator("ExternalProcess",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(.1*et,.4*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("File",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.75*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Interrupt",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var gt=new go.PathFigure(et,.5*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt));var vt=new go.PathFigure(et,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("InternalStorage",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN,gt=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.1);var vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var Pt=new go.PathFigure(st*et,0,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,gt*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)),ht}),go.Shape.defineFigureGenerator("Junction",function(Tt,et,nt){var ht=new go.Geometry,st=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,vt=Nt*.5,Pt=.5,Ft=new go.PathFigure(et,Pt*nt,!0);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,nt,et,(Pt+vt)*nt,(Pt+vt)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,Pt*nt,(Pt-vt)*et,nt,0,(Pt+vt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,0,0,(Pt-vt)*nt,(Pt-vt)*et,0)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,et,Pt*nt,(Pt+vt)*et,0,et,(Pt-vt)*nt));var wt=new go.PathFigure((gt+st)*et,(gt+st)*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,gt*et,gt*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,gt*et,(gt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,(gt+st)*et,gt*nt)),ht}),go.Shape.defineFigureGenerator("LinedDocument",function(Tt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var gt=new go.PathFigure(.1*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),ht.spot1=new go.Spot(.1,0),ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("LoopLimit",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MagneticTape",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=.5,vt=new go.PathFigure(.5*et,nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+.1)*et,.9*nt,et,(gt+st)*nt,(gt+st)*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.15,.15),ht.spot2=new go.Spot(.85,.8),ht}),go.Shape.defineFigureGenerator("ManualInput",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MessageFromUser",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.7);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,st*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.25);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,st*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("MicroformRecording",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("MultiDocument",function(Tt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var gt=new go.PathFigure(.1*et,.2*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.8,.77),ht}),go.Shape.defineFigureGenerator("MultiProcess",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,.1*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var gt=new go.PathFigure(.2*et,.1*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),ht.spot1=new go.Spot(0,.2),ht.spot2=new go.Spot(.8,1),ht}),go.Shape.defineFigureGenerator("OfflineStorage",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=1-st,vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var Pt=new go.PathFigure(.5*st*et,st*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*st)*et,st*nt)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("Or",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=.5,vt=new go.PathFigure(et,gt*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+st)*nt,(gt+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt));var Pt=new go.PathFigure(et,.5*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Tt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=new go.Spot(0,.49),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN,gt=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN,gt=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Procedure",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure((1-st)*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,st*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),ht}),go.Shape.defineFigureGenerator("Process",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(st*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Sort",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(0,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.5),ht}),go.Shape.defineFigureGenerator("Start",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.25);var gt=new go.PathFigure(st*et,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var vt=new go.PathFigure(st*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,nt)),ht.spot1=new go.Spot(st,0),ht.spot2=new go.Spot(1-st,1),ht}),go.Shape.defineFigureGenerator("Terminator",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),ht.spot1=new go.Spot(.23,0),ht.spot2=new go.Spot(.77,1),ht}),go.Shape.defineFigureGenerator("TransmittalTape",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("AndGate",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+st)*et,0,et,(.5-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+st)*nt,(.5+st)*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.55,1),ht}),go.Shape.defineFigureGenerator("Buffer",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Clock",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=.5,vt=new go.PathFigure(et,gt*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+st)*nt,(gt+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt));var Pt=new go.PathFigure(et,gt*nt,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt));var Ft=new go.PathFigure(.8*et,.75*nt,!1);return ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),ht}),go.Shape.defineFigureGenerator("Ground",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),ht}),go.Shape.defineFigureGenerator("Inverter",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.1,gt=.1,vt=.9,Pt=.5,Ft=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var wt=new go.PathFigure((vt+gt)*et,Pt*nt,!0);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt-gt)*nt,(vt+gt)*et,(Pt-st)*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=Nt*.4,vt=Nt*.1,Pt=.1,Ft=.9,wt=.5,Ot=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+gt)*nt,(.4+st)*et,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+st)*et,0,.8*et,(.5-gt)*nt));var Ht=new go.PathFigure((Ft+Pt)*et,wt*nt,!0);return ht.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt+Pt)*nt,(Ft+Pt)*et,(wt+vt)*nt,(Ft+vt)*et,(wt+Pt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Pt)*et,wt*nt,(Ft-vt)*et,(wt+Pt)*nt,(Ft-Pt)*et,(wt+vt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt-Pt)*nt,(Ft-Pt)*et,(wt-vt)*nt,(Ft-vt)*et,(wt-Pt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Pt)*et,wt*nt,(Ft+vt)*et,(wt-Pt)*nt,(Ft+Pt)*et,(wt-vt)*nt)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Nt*st,vt=0,Pt=.5,Ft=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+gt)*et,(Pt-st)*nt,.7*et,(Pt-gt)*nt)),st=.1,gt=Nt*.1,vt=.9,Pt=.5;var wt=new go.PathFigure((vt-st)*et,Pt*nt,!0);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Nt*st,vt=0,Pt=.5,Ft=new go.PathFigure(0,0,!0);return ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+gt+gt)*et,(Pt-st)*nt,.8*et,(Pt-gt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(Pt+gt)*nt,(vt+gt+gt)*et,(Pt+st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("XnorGate",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Nt*st,vt=.2,Pt=.5,Ft=new go.PathFigure(.1*et,0,!1);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var wt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+gt)*et,(Pt-st)*nt,.7*et,(Pt-gt)*nt)),st=.1,gt=Nt*.1,vt=.9,Pt=.5;var Ot=new go.PathFigure((vt-st)*et,Pt*nt,!0);return ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Nt*st,vt=.2,Pt=.5,Ft=new go.PathFigure(.1*et,0,!1);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var wt=new go.PathFigure(.2*et,0,!0);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+gt)*et,(Pt-st)*nt,.9*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.8,.75),ht}),go.Shape.defineFigureGenerator("Capacitor",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Resistor",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Inductor",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.1,gt=.1,vt=.1,Pt=.5,Ft=new go.PathFigure((vt-st*.5)*et,nt,!1);return ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.3,Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.5,Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.7,Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.9,Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st*.5)*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),ht}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.5,gt=.5,vt=.5,Pt=.5,Ft=new go.PathFigure((vt-gt)*et,Pt*nt,!1);return ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt-gt)*nt,(vt+gt)*et,(Pt-st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Move,(vt-gt+.1)*et,Pt*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt-.1)*et,Pt*nt,vt*et,(Pt-gt)*nt,vt*et,(Pt+gt)*nt)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.75*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Diode",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Wifi",function(Tt,et,nt){var ht=new go.Geometry,st=et,gt=nt;et=et*.38,nt=nt*.6;var vt=Nt*.8,Pt=.8,Ft=0,wt=.5,Ot=(st-et)/2,Ht=(gt-nt)/2,Zt=new go.PathFigure(Ft*et+Ot,(wt+Pt)*nt+Ht,!0);ht.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Pt)*et+Ot,wt*nt+Ht,(Ft-vt)*et+Ot,(wt+Pt)*nt+Ht,(Ft-Pt)*et+Ot,(wt+vt)*nt+Ht)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt-Pt)*nt+Ht,(Ft-Pt)*et+Ot,(wt-vt)*nt+Ht,(Ft-vt)*et+Ot,(wt-Pt)*nt+Ht)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Pt+vt*.5)*et+Ot,wt*nt+Ht,Ft*et+Ot,(wt-Pt)*nt+Ht,(Ft-Pt+vt*.5)*et+Ot,(wt-vt)*nt+Ht)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt+Pt)*nt+Ht,(Ft-Pt+vt*.5)*et+Ot,(wt+vt)*nt+Ht,Ft*et+Ot,(wt+Pt)*nt+Ht).close()),vt=Nt*.4,Pt=.4,Ft=.2,wt=.5;var Ut=new go.PathFigure(Ft*et+Ot,(wt+Pt)*nt+Ht,!0);ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Pt)*et+Ot,wt*nt+Ht,(Ft-vt)*et+Ot,(wt+Pt)*nt+Ht,(Ft-Pt)*et+Ot,(wt+vt)*nt+Ht)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt-Pt)*nt+Ht,(Ft-Pt)*et+Ot,(wt-vt)*nt+Ht,(Ft-vt)*et+Ot,(wt-Pt)*nt+Ht)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Pt+vt*.5)*et+Ot,wt*nt+Ht,Ft*et+Ot,(wt-Pt)*nt+Ht,(Ft-Pt+vt*.5)*et+Ot,(wt-vt)*nt+Ht)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt+Pt)*nt+Ht,(Ft-Pt+vt*.5)*et+Ot,(wt+vt)*nt+Ht,Ft*et+Ot,(wt+Pt)*nt+Ht).close()),vt=Nt*.2,Pt=.2,Ft=.5,wt=.5;var fe=new go.PathFigure((Ft-Pt)*et+Ot,wt*nt+Ht,!0);ht.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt-Pt)*nt+Ht,(Ft-Pt)*et+Ot,(wt-vt)*nt+Ht,(Ft-vt)*et+Ot,(wt-Pt)*nt+Ht)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Pt)*et+Ot,wt*nt+Ht,(Ft+vt)*et+Ot,(wt-Pt)*nt+Ht,(Ft+Pt)*et+Ot,(wt-vt)*nt+Ht)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt+Pt)*nt+Ht,(Ft+Pt)*et+Ot,(wt+vt)*nt+Ht,(Ft+vt)*et+Ot,(wt+Pt)*nt+Ht)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Pt)*et+Ot,wt*nt+Ht,(Ft-vt)*et+Ot,(wt+Pt)*nt+Ht,(Ft-Pt)*et+Ot,(wt+vt)*nt+Ht)),vt=Nt*.4,Pt=.4,Ft=.8,wt=.5;var Yt=new go.PathFigure(Ft*et+Ot,(wt-Pt)*nt+Ht,!0);ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Pt)*et+Ot,wt*nt+Ht,(Ft+vt)*et+Ot,(wt-Pt)*nt+Ht,(Ft+Pt)*et+Ot,(wt-vt)*nt+Ht)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt+Pt)*nt+Ht,(Ft+Pt)*et+Ot,(wt+vt)*nt+Ht,(Ft+vt)*et+Ot,(wt+Pt)*nt+Ht)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Pt-vt*.5)*et+Ot,wt*nt+Ht,Ft*et+Ot,(wt+Pt)*nt+Ht,(Ft+Pt-vt*.5)*et+Ot,(wt+vt)*nt+Ht)),Yt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt-Pt)*nt+Ht,(Ft+Pt-vt*.5)*et+Ot,(wt-vt)*nt+Ht,Ft*et+Ot,(wt-Pt)*nt+Ht).close()),vt=Nt*.8,Pt=.8,Ft=1,wt=.5;var Xe=new go.PathFigure(Ft*et+Ot,(wt-Pt)*nt+Ht,!0);return ht.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Pt)*et+Ot,wt*nt+Ht,(Ft+vt)*et+Ot,(wt-Pt)*nt+Ht,(Ft+Pt)*et+Ot,(wt-vt)*nt+Ht)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt+Pt)*nt+Ht,(Ft+Pt)*et+Ot,(wt+vt)*nt+Ht,(Ft+vt)*et+Ot,(wt+Pt)*nt+Ht)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Pt-vt*.5)*et+Ot,wt*nt+Ht,Ft*et+Ot,(wt+Pt)*nt+Ht,(Ft+Pt-vt*.5)*et+Ot,(wt+vt)*nt+Ht)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et+Ot,(wt-Pt)*nt+Ht,(Ft+Pt-vt*.5)*et+Ot,(wt-vt)*nt+Ht,Ft*et+Ot,(wt-Pt)*nt+Ht).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Ethernet",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.35*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var gt=new go.PathFigure(.1*et,nt,!0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var vt=new go.PathFigure(.6*et,nt,!0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var Pt=new go.PathFigure(0,.5*nt,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Power",function(Tt,et,nt){var ht=new go.Geometry,st=Nt*.4,gt=.4,vt=.5,Pt=.5,Ft=At(),wt=At(),Ot=At(),Ht=At();Me(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.5,Ft,Ft,wt,Ot,Ht);var Zt=St(wt.x,wt.y),Ut=new go.PathFigure(wt.x*et,wt.y*nt,!0);ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,Ot.x*et,Ot.y*nt,Ht.x*et,Ht.y*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,(vt-st)*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt)),Me(vt-gt,Pt,vt-gt,Pt-st,vt-st,Pt-gt,vt,Pt-gt,.5,Ot,Ht,wt,Ft,Ft),Ut.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*et,wt.y*nt,Ot.x*et,Ot.y*nt,Ht.x*et,Ht.y*nt)),st=Nt*.3,gt=.3,Me(vt-gt,Pt,vt-gt,Pt-st,vt-st,Pt-gt,vt,Pt-gt,.5,Ot,Ht,wt,Ft,Ft),Ut.add(new go.PathSegment(go.PathSegment.Line,wt.x*et,wt.y*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,Pt*nt,Ht.x*et,Ht.y*nt,Ot.x*et,Ot.y*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+gt)*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,Pt*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Me(vt,Pt-gt,vt+st,Pt-gt,vt+gt,Pt-st,vt+gt,Pt,.5,Ft,Ft,wt,Ot,Ht),Ut.add(new go.PathSegment(go.PathSegment.Bezier,wt.x*et,wt.y*nt,Ht.x*et,Ht.y*nt,Ot.x*et,Ot.y*nt).close());var Ut=new go.PathFigure(.45*et,0,!0);return ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),zt(Ft),zt(wt),zt(Ot),zt(Ht),zt(Zt),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt/2,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function gt(vt,Pt,Ft){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+Pt)*et,(.8+Ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+Pt)*et,(.5+Ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+Pt)*et,(.5+Ft)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+Pt)*et,(.8+Ft)*nt).close())}return gt(st,0,0),gt(st,.4,0),gt(st,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.2*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),ht.spot1=new go.Spot(.3,.3),ht.spot2=new go.Spot(.7,.7),ht}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.37*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),ht}),go.Shape.defineFigureGenerator("FireHazard",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),ht.spot1=new go.Spot(.07,.445),ht.spot2=new go.Spot(.884,.958),ht}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=0,vt=0,Pt=st*Nt,Ft=.4*Math.SQRT2/2+.5,wt=.5-.5*Math.SQRT2/2,Ot=1,Ht=.5,Zt=.5,Ut=0,fe=new go.PathFigure(Ft*et,(1-wt)*nt,!1);return ht.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,Ht*nt,Ot*et,.7*nt,Ot*et,Ht*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Zt+gt)*et,(Ut+gt)*nt,(.5+st+gt)*et,(.5-Pt+gt)*nt,(.5+Pt+gt)*et,(.5-st+gt)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+vt)*nt,(.5-Pt+gt)*et,(.5-st+vt)*nt,(.5-st+gt)*et,(.5-Pt+vt)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+gt)*et,.9*nt,(.5-st+gt)*et,(.5+Pt+vt)*nt,(.5-Pt+gt)*et,.9*nt)),fe.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*et,.8*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*et,.9*nt)),fe.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(et,nt,!1);ht.add(gt);var vt=new go.PathFigure(0,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.2*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var st=new go.PathFigure(0,.2*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.7*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var gt=new go.PathFigure(.45*et,.73*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(.335*et,(1-.555)*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var vt=.5-.285,Pt=.5,Ft=vt,wt=Math.PI/4,Ot=4*(1-Math.cos(wt))/(3*Math.sin(wt)),Ht=Ot*.5,Zt=vt,Ut=vt,fe=Ot*Zt,Yt=Ot*Ut;gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-Zt)*et,Ft*nt,(Pt-(fe+Zt)/2)*et,(Ft+(Ut+Yt)/2)*nt,(Pt-Zt)*et,(Ft+Yt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,(Ft-Ut)*nt,(Pt-Zt)*et,(Ft-Yt)*nt,(Pt-fe)*et,(Ft-Ut)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+Zt)*et,Ft*nt,(Pt+fe)*et,(Ft-Ut)*nt,(Pt+Zt)*et,(Ft-Yt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(Pt+Zt)*et,(Ft+Yt)*nt,(Pt+(fe+Zt)/2)*et,(Ft+(Ut+Yt)/2)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var Xe=new go.PathFigure(.2*et,nt,!1);ht.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var pe=new go.PathFigure(.8*et,nt,!1);return ht.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var gt=new go.PathFigure(.2*et,.2*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventError",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(et,nt,!1);ht.add(gt);var vt=new go.PathFigure(.1*et,nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Caution",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.05*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var gt=.05;return st.add(new go.PathSegment(go.PathSegment.Move,(.5-gt)*et,.875*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,gt*et,gt*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),ht}),go.Shape.defineFigureGenerator("Recycle",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.45*et,.95*nt,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var gt=new go.PathFigure(.475*et,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var vt=new go.PathFigure(.675*et,.575*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Nt*.5,vt=new go.PathFigure(et,st*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,st*et,nt,et,(st+gt)*nt,(st+gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,st*nt,(st-gt)*et,nt,0,(st+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,st*et,0,0,(st-gt)*nt,(st-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,st*nt,(st+gt)*et,0,et,(st-gt)*nt));var Pt=new go.PathFigure(st*et,0,!1);return ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,st*et,.15*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,st*et,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,st*et,.85*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,0,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.15*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,st*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),Pt.add(new go.PathSegment(go.PathSegment.Move,st*et,st*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Package",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.15*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,.15*nt,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),ht.spot1=new go.Spot(0,.1),ht.spot2=new go.Spot(1,1),ht}),go.Shape.defineFigureGenerator("Class",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(0,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Component",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var gt=new go.PathFigure(0,.2*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var vt=new go.PathFigure(0,.6*nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),ht}),go.Shape.defineFigureGenerator("Boat Shipment",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.15*et,.6*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var gt=new go.PathFigure(.15*et,.6*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Workcell",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Supermarket",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ht}),go.Shape.defineFigureGenerator("TruckShipment",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(et,.8*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var vt=.1,Pt=Nt*.1,Ft=.2,wt=.9,Ot=new go.PathFigure((Ft-vt)*et,wt*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt-vt)*nt,(Ft-vt)*et,(wt-Pt)*nt,(Ft-Pt)*et,(wt-vt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+vt)*et,wt*nt,(Ft+Pt)*et,(wt-vt)*nt,(Ft+vt)*et,(wt-Pt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt+vt)*nt,(Ft+vt)*et,(wt+Pt)*nt,(Ft+Pt)*et,(wt+vt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-vt)*et,wt*nt,(Ft-Pt)*et,(wt+vt)*nt,(Ft-vt)*et,(wt+Pt)*nt).close()),vt=.1,Pt=Nt*.1,Ft=.8,wt=.9;var Ht=new go.PathFigure((Ft-vt)*et,wt*nt,!0);return ht.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt-vt)*nt,(Ft-vt)*et,(wt-Pt)*nt,(Ft-Pt)*et,(wt-vt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+vt)*et,wt*nt,(Ft+Pt)*et,(wt-vt)*nt,(Ft+vt)*et,(wt-Pt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(wt+vt)*nt,(Ft+vt)*et,(wt+Pt)*nt,(Ft+Pt)*et,(wt+vt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-vt)*et,wt*nt,(Ft-Pt)*et,(wt+vt)*nt,(Ft-vt)*et,(wt+Pt)*nt).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.2*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),ht}),go.Shape.defineFigureGenerator("Forklift",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0));var gt=new go.PathFigure(0,.5*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var vt=new go.PathFigure(.5*et,.8*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var Pt=new go.PathFigure(.5*et,.7*nt,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var Ft=.1,wt=Nt*.1,Ot=.1,Ht=.9,Zt=new go.PathFigure((Ot-Ft)*et,Ht*nt,!0);ht.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(Ht-Ft)*nt,(Ot-Ft)*et,(Ht-wt)*nt,(Ot-wt)*et,(Ht-Ft)*nt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+Ft)*et,Ht*nt,(Ot+wt)*et,(Ht-Ft)*nt,(Ot+Ft)*et,(Ht-wt)*nt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(Ht+Ft)*nt,(Ot+Ft)*et,(Ht+wt)*nt,(Ot+wt)*et,(Ht+Ft)*nt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-Ft)*et,Ht*nt,(Ot-wt)*et,(Ht+Ft)*nt,(Ot-Ft)*et,(Ht+wt)*nt)),Ft=.1,wt=Nt*.1,Ot=.4,Ht=.9;var Ut=new go.PathFigure((Ot-Ft)*et,Ht*nt,!0);return ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(Ht-Ft)*nt,(Ot-Ft)*et,(Ht-wt)*nt,(Ot-wt)*et,(Ht-Ft)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+Ft)*et,Ht*nt,(Ot+wt)*et,(Ht-Ft)*nt,(Ot+Ft)*et,(Ht-wt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(Ht+Ft)*nt,(Ot+Ft)*et,(Ht+wt)*nt,(Ot+wt)*et,(Ht+Ft)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-Ft)*et,Ht*nt,(Ot-wt)*et,(Ht+Ft)*nt,(Ot-Ft)*et,(Ht+wt)*nt)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,.4*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var gt=new go.PathFigure(.45*et,.7*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var vt=new go.PathFigure(.55*et,.4*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Ot=.05,Ht=Nt*.05,Zt=.175,Ut=.95,Pt=new go.PathFigure((Zt-Ot)*et,Ut*nt,!0);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Zt*et,(Ut-Ot)*nt,(Zt-Ot)*et,(Ut-Ht)*nt,(Zt-Ht)*et,(Ut-Ot)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Zt+Ot)*et,Ut*nt,(Zt+Ht)*et,(Ut-Ot)*nt,(Zt+Ot)*et,(Ut-Ht)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Zt*et,(Ut+Ot)*nt,(Zt+Ot)*et,(Ut+Ht)*nt,(Zt+Ht)*et,(Ut+Ot)*nt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Zt-Ot)*et,Ut*nt,(Zt-Ht)*et,(Ut+Ot)*nt,(Zt-Ot)*et,(Ut+Ht)*nt));var Ot=.05,Ht=Nt*.05,Zt=.375,Ut=.95,Ft=new go.PathFigure((Zt-Ot)*et,Ut*nt,!0);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Zt*et,(Ut-Ot)*nt,(Zt-Ot)*et,(Ut-Ht)*nt,(Zt-Ht)*et,(Ut-Ot)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Zt+Ot)*et,Ut*nt,(Zt+Ht)*et,(Ut-Ot)*nt,(Zt+Ot)*et,(Ut-Ht)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Zt*et,(Ut+Ot)*nt,(Zt+Ot)*et,(Ut+Ht)*nt,(Zt+Ht)*et,(Ut+Ot)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Zt-Ot)*et,Ut*nt,(Zt-Ht)*et,(Ut+Ot)*nt,(Zt-Ot)*et,(Ut+Ht)*nt));var Ot=.05,Ht=Nt*.05,Zt=.625,Ut=.95,wt=new go.PathFigure((Zt-Ot)*et,Ut*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,Zt*et,(Ut-Ot)*nt,(Zt-Ot)*et,(Ut-Ht)*nt,(Zt-Ht)*et,(Ut-Ot)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Zt+Ot)*et,Ut*nt,(Zt+Ht)*et,(Ut-Ot)*nt,(Zt+Ot)*et,(Ut-Ht)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,Zt*et,(Ut+Ot)*nt,(Zt+Ot)*et,(Ut+Ht)*nt,(Zt+Ht)*et,(Ut+Ot)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Zt-Ot)*et,Ut*nt,(Zt-Ht)*et,(Ut+Ot)*nt,(Zt-Ot)*et,(Ut+Ht)*nt));var Ot=.05,Ht=Nt*.05,Zt=.825,Ut=.95,fe=new go.PathFigure((Zt-Ot)*et,Ut*nt,!0);ht.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,Zt*et,(Ut-Ot)*nt,(Zt-Ot)*et,(Ut-Ht)*nt,(Zt-Ht)*et,(Ut-Ot)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Zt+Ot)*et,Ut*nt,(Zt+Ht)*et,(Ut-Ot)*nt,(Zt+Ot)*et,(Ut-Ht)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Zt*et,(Ut+Ot)*nt,(Zt+Ot)*et,(Ut+Ht)*nt,(Zt+Ht)*et,(Ut+Ot)*nt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Zt-Ot)*et,Ut*nt,(Zt-Ht)*et,(Ut+Ot)*nt,(Zt-Ot)*et,(Ut+Ht)*nt).close());var Yt=new go.PathFigure(0,nt,!1);return ht.add(Yt),Yt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Warehouse",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(.15*et,nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var Pt=.05,Ft=Nt*.05,wt=.35,Ot=.775,Ht=new go.PathFigure((wt-Pt)*et,Ot*nt,!0);return ht.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(Ot-Pt)*nt,(wt-Pt)*et,(Ot-Ft)*nt,(wt-Ft)*et,(Ot-Pt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(wt+Pt)*et,Ot*nt,(wt+Ft)*et,(Ot-Pt)*nt,(wt+Pt)*et,(Ot-Ft)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(Ot+Pt)*nt,(wt+Pt)*et,(Ot+Ft)*nt,(wt+Ft)*et,(Ot+Pt)*nt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(wt-Pt)*et,Ot*nt,(wt-Ft)*et,(Ot+Pt)*nt,(wt-Pt)*et,(Ot+Ft)*nt).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),ht}),go.Shape.defineFigureGenerator("Bluetooth",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.75*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Globe",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),ht}),go.Shape.defineFigureGenerator("Wave",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.25*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Operator",function(Tt,et,nt){var ht=new go.Geometry,st=.3,gt=Nt*.3,vt=.5,Pt=.7,Ft=new go.PathFigure((vt-st)*et,Pt*nt,!0);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt));var wt=new go.PathFigure(0,.7*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),ht}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht}),go.Shape.defineFigureGenerator("Battery",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var gt=new go.PathFigure(0,.6*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Delete",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Nt*.5,vt=.5,Pt=.5,Ft=new go.PathFigure((vt-st)*et,Pt*nt,!0);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt));var wt=new go.PathFigure(.15*et,.5*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Flag",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.1*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),ht}),go.Shape.defineFigureGenerator("Help",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Nt*.5,vt=.5,Pt=.5,Ft=new go.PathFigure((vt-st)*et,Pt*nt,!1);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt).close()),st=.05,gt=Nt*.05,vt=.5,Pt=.8;var wt=new go.PathFigure((vt-st)*et,Pt*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt-st)*nt,(vt-st)*et,(Pt-gt)*nt,(vt-gt)*et,(Pt-st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,Pt*nt,(vt+gt)*et,(Pt-st)*nt,(vt+st)*et,(Pt-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(Pt+st)*nt,(vt+st)*et,(Pt+gt)*nt,(vt+gt)*et,(Pt+st)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,Pt*nt,(vt-gt)*et,(Pt+st)*nt,(vt-st)*et,(Pt+gt)*nt).close()),wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),ht}),go.Shape.defineFigureGenerator("Location",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),ht}),go.Shape.defineFigureGenerator("Unlocked",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),ht}),go.Shape.defineFigureGenerator("Gear",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Map",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.2*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),st.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("Eject",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var gt=new go.PathFigure(0,nt*.6,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),ht}),go.Shape.defineFigureGenerator("Pencil",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*1,nt*1,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var gt=new go.PathFigure(.126*et,.85*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var vt=new go.PathFigure(.402*et,.85*nt,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var Pt=new go.PathFigure(.678*et,.85*nt,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var Ft=new go.PathFigure(.5*et,.1*nt,!1);return ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),Ft.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),ht}),go.Shape.defineFigureGenerator("Staircase",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt*1,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),st.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),st.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),ht}),go.Shape.defineFigureGenerator("5Bars",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt*1,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var gt=new go.PathFigure(et*.204,nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var vt=new go.PathFigure(et*.408,nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var Pt=new go.PathFigure(et*.612,nt,!0);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var Ft=new go.PathFigure(et*.816,nt,!0);return ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),ht}),go.Shape.defineFigureGenerator("PC",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var gt=new go.PathFigure(et*.055,.07*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var vt=new go.PathFigure(et*.055,.13*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var Pt=new go.PathFigure(et*.055,.18*nt,!0);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var Ft=new go.PathFigure(et*1,0,!0);return ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),ht}),go.Shape.defineFigureGenerator("Plane",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.55*et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),ht}),go.Shape.defineFigureGenerator("Key",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*1,nt*.5,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),st.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),ht}),go.Shape.defineFigureGenerator("FilmTape",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var gt=new go.PathFigure(0,0,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var vt=new go.PathFigure(et*.11,nt*.1,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var Pt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var Ft=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),ht}),go.Shape.defineFigureGenerator("FloppyDisk",function(Tt,et,nt){var ht=new go.Geometry,st=8,gt=st*Nt,vt=new go.PathFigure(st,0,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,nt,et,nt-gt,et-gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,st,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-st,gt,nt,0,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,st)),vt.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,gt,gt,0).close());var Pt=new go.PathFigure(et*.83,0,!1);ht.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var Ft=new go.PathFigure(et*.83,nt*1,!1);ht.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),Ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var wt=new go.PathFigure(et*.78,nt*.05,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("SpeechBubble",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var st=ht*Nt,gt=nt*.8,vt=new go.Geometry,Pt=new go.PathFigure(ht,0,!0);return vt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-st,0,et,st)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,gt-ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,gt,et,gt-st,et-st,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.55,gt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ht,gt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt-ht,st,gt,0,gt-st)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,st,st,0).close()),st>1?(vt.spot1=new go.Spot(0,0,st,st),vt.spot2=new go.Spot(1,.8,-st,-st)):(vt.spot1=go.Spot.TopLeft,vt.spot2=new go.Spot(1,.8)),vt}),go.Shape.defineFigureGenerator("Repeat",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*.45,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var gt=new go.PathFigure(et*1,nt*.55,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),ht}),go.Shape.defineFigureGenerator("Windows",function(Tt,et,nt){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,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*.1,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var gt=new go.PathFigure(et*.1,nt*.2,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var vt=new go.PathFigure(et*.28,nt*.37,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),ht}),go.Shape.defineFigureGenerator("Beaker",function(Tt,et,nt){var ht=new go.Geometry,st=15,gt=st*Nt,vt=new go.PathFigure(et*.62,nt*.475,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,nt,et,nt-gt,et-gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,st,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-st,gt,nt,0,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),gt>1?(ht.spot1=new go.Spot(0,0,gt,gt),ht.spot2=new go.Spot(1,1,-gt,-gt)):(ht.spot1=go.Spot.TopLeft,ht.spot2=go.Spot.BottomRight),ht}),go.Shape.defineFigureGenerator("Download",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var vt=new go.PathFigure(et*.4,nt*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),ht}),go.Shape.defineFigureGenerator("Bin",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;return st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close()),ht}),go.Shape.defineFigureGenerator("Upload",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var vt=new go.PathFigure(et*.5,nt*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("EmptyDrink",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.15,nt*0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),ht}),go.Shape.defineFigureGenerator("Drink",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.15,nt*0,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var gt=new go.PathFigure(et*.235,nt*.28,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),ht}),go.Shape.defineFigureGenerator("4Arrows",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.5,nt*0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Bn={},Cn="5.0",St={},At=null,zt=!1,oe=!1,Me=null,Xt=!1,Se=null,Nt=null,Ne=0;Ne<arguments.length;Ne++){var Pe=arguments[Ne];if(Pe!==null)switch(typeof Pe){case"number":Cn=Pe.toFixed(1);break;case"string":Pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Cn=Pe:Me=Pe;break;case"object":typeof Pe.is3D!="undefined"?At=Pe:St=Pe;break;case"boolean":zt=Pe,oe=!0;break}}At===null&&(At={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},St.material_id!==void 0&&!oe&&(zt=!0)),Me!==null&&St.id===void 0&&(St.id=Me);var ne="",xe="",we=!1,Ce=null,Tt=null,et=null,nt=!1,ht=null,st=null,gt=null,vt=null,Pt=null;St.height!==void 0&&(St.height=Math.round(St.height)),St.width!==void 0&&(St.width=Math.round(St.width));var Ft=function(Te){return parseFloat(Te)>4?parseFloat(Te):5};Bn.setHTML5Codebase=function(Te,rn){Nt=Te,nn(Te,rn)},Bn.setJavaCodebase=Bn.setJavaCodebaseVersion=Bn.isCompiledInstalled=Bn.setPreCompiledScriptPath=Bn.setPreCompiledResourcePath=function(){},Bn.setHTML5CodebaseVersion=function(Te,rn){var gn=parseFloat(Te);if(gn!==NaN&&gn<5){console.log("The GeoGebra HTML5 codebase version "+gn+" is deprecated. Using version latest instead.");return}Se=Te,Gt(Te,rn)},Bn.getHTML5CodebaseVersion=function(){return Tt},Bn.getParameters=function(){return St},Bn.setFontsCSSURL=function(Te){vt=Te},Bn.setGiacJSURL=function(Te){},Bn.setJNLPFile=function(Te){ne=Te},Bn.setJNLPBaseDir=function(Te){},Bn.inject=function(){function Te(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rn="auto",gn=St.id,Vn,cn=!1,Hn=0;Hn<arguments.length;Hn++){var me=arguments[Hn];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?rn=me:gn=arguments[Hn]):typeof me=="boolean"?cn=me:me instanceof HTMLElement&&(Vn=me)}Un();function Un(){if(!Xt){setTimeout(Un,200);return}rn=Tn(rn);var ii=Vn||document.getElementById(gn);if(!ii){console.log("possibly bug on ajax loading? ");return}if(Bn.removeExistingApplet(ii,!1),St.width===void 0&&ii.clientWidth&&(St.width=ii.clientWidth),St.height===void 0&&ii.clientHeight&&(St.height=ii.clientHeight),!(St.width&&St.height)&&rn==="html5"&&(delete St.width,delete St.height),Ce=rn,rn==="screenshot")pe(ii,St);else{var xn=!1;St.hasOwnProperty("playButton")&&St.playButton||St.hasOwnProperty("clickToLoad")&&St.clickToLoad?xn=!0:St.hasOwnProperty("playButtonAutoDecide")&&St.playButtonAutoDecide&&(xn=(!wt()||Te())&&Ot()),xn?(Ce="screenshot",Ve(ii,St,cn,rn)):Xe(ii,St,cn)}}};function wt(){try{return window.self!==window.top}catch(Te){return!0}}function Ot(){return St.hasOwnProperty("screenshotGenerator")&&St.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Bn.getViews=function(){return At},Bn.isJavaInstalled=function(){return!1};var Ht=function(Te){var rn=function(Hn){var me=JSON.parse(Hn),Un=function(ni){return ni.type=="G"||ni.type=="E"},ii=me.elements?me.elements.filter(Un)[0]:me;if(!ii||!ii.url){gn();return}St.fileName=ii.url,Zt(ii.settings||{}),At.is3D=!0;var xn="https://www.geogebra.org/images/";Bn.setPreviewImage(ht||ii.previewUrl,xn+"GeoGebra_loading.png",xn+"applet_play.png"),Te()},gn=function(){St.onError&&St.onError(),Zn("Error: Fetching material (id "+St.material_id+") failed.",St)},Vn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",cn="/materials/"+St.material_id+"?scope=basic";Ut("https://"+Vn+"/api/proxy.php?path="+encodeURIComponent(cn),rn,gn)};function Zt(Te){var rn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(gn){Te[gn]=!!Te[gn]}),rn.forEach(function(gn){St[gn]===void 0&&Te[gn]!==void 0&&(St[gn]=Te[gn])}),St.showToolBarHelp===void 0&&(St.showToolBarHelp=St.showToolBar)}function Ut(Te,rn,gn){var Vn=new XMLHttpRequest;Vn.open("GET",Te),Vn.onload=function(){rn(Vn.responseText)},Vn.onerror=gn,Vn.send()}Bn.isHTML5Installed=function(){return!0},Bn.getLoadedAppletType=function(){return Ce},Bn.setPreviewImage=function(Te,rn,gn){ht=Te,st=rn,gt=gn},Bn.removeExistingApplet=function(Te,rn){var gn;typeof Te=="string"&&(Te=document.getElementById(Te)),Ce=null;var Vn=null;for(gn=0;gn<Te.childNodes.length;gn++){var cn=Te.childNodes[gn],Hn=cn.className;Hn==="applet_screenshot"?rn?(cn.style.display="block",Ce="screenshot"):cn.style.display="none":Hn!=="applet_scaler prerender"&&(Te.removeChild(cn),Vn=Hn&&Hn.indexOf("appletParameters")!=-1?cn.id:null,gn--)}var me=St.id!==void 0?St.id:Vn,Un=window[me];Un&&typeof Un.getBase64=="function"&&(Un.remove(),window[me]=null)},Bn.refreshHitPoints=function(){if(Ft(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Te=Bn.getAppletObject();return Te&&typeof Te.recalculateEnvironments=="function"?(Te.recalculateEnvironments(),!0):!1},Bn.startAnimation=function(){var Te=Bn.getAppletObject();return Te&&typeof Te.startAnimation=="function"?(Te.startAnimation(),!0):!1},Bn.stopAnimation=function(){var Te=Bn.getAppletObject();return Te&&typeof Te.stopAnimation=="function"?(Te.stopAnimation(),!0):!1},Bn.getAppletObject=function(){var Te=St.id!==void 0?St.id:"ggbApplet";return window[Te]},Bn.resize=function(){};var fe=function(Te,rn,gn){var Vn=document.createElement("param");Vn.setAttribute("name",rn),Vn.setAttribute("value",gn),Te.appendChild(Vn)},Yt=function(Te){return Te&&Te!=="false"},Xe=function(Te,rn,gn){Ft(Tt)<=4.2&&(gn=!0);var Vn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Tt||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(Vn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var cn=document.createElement("div");cn.classList.add("appletParameters","notranslate");var Hn=rn.width,me=rn.height;if(rn.disableAutoScale=rn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rn.disableAutoScale,rn.width!==void 0)if(Ft(Tt)<=4.4)Yt(rn.showToolBar)&&(rn.height-=7),Yt(rn.showAlgebraInput)&&(rn.height-=37),rn.width<605&&Yt(rn.showToolBar)&&(rn.width=605,Hn=605);else{var Un=100;(Yt(rn.showToolBar)||Yt(rn.showMenuBar))&&(rn.hasOwnProperty("customToolBar")&&(rn.customToolbar=rn.customToolBar),Un=Yt(rn.showMenuBar)?245:155),Hn<Un&&(rn.width=Un,Hn=Un)}cn.style.border="none",cn.style.display="inline-block";for(var ii in rn)rn.hasOwnProperty(ii)&&ii!=="appletOnLoad"&&cn.setAttribute("data-param-"+ii,rn[ii]);vt&&cn.setAttribute("data-param-fontscssurl",vt),Bn.resize=function(){GGBAppletUtils.responsiveResize(Te,rn)},window.addEventListener("resize",function(mt){Bn.resize()});var xn=typeof rn.appletOnLoad=="function"?rn.appletOnLoad:function(){};if(!gn&&rn.width!==void 0){rn.hasOwnProperty("showSplash")||cn.setAttribute("data-param-showSplash","false");var ni=Te.querySelector(".applet_scaler.prerender"),ze=ni!==null;if(ze)var Ie=ni.querySelector(".ggb_preview");else{var Ie=_e(Hn,me,rn.borderColor,!1);ni=document.createElement("div"),ni.className="applet_scaler",ni.style.position="relative",ni.style.display="block",ni.style.width=Hn+"px",ni.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ni,"66%"),Ft(Tt)>=5?(rn.appletOnLoad=function(mt){var kt=Te.querySelector(".ggb_preview");kt&&kt.parentNode.removeChild(kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ni),window.GGBT_wsf_view&&$(window).trigger("resize"),xn(mt)},ze||ni.appendChild(Ie)):cn.appendChild(Ie),ni.appendChild(cn),ze||Te.appendChild(ni),setTimeout(function(){Bn.resize()},1)}else{var ke=document.createElement("div");ke.className="applet_scaler",ke.style.position="relative",ke.style.display="block",ke.appendChild(cn),Te.appendChild(ke),rn.appletOnLoad=function(mt){Bn.resize(),xn(mt)}}function se(mt,kt){kt&&typeof kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(mt,kt.appletOnLoad):renderGGBElement(mt),Zn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",kt)}function $e(mt,kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:mt,params:kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(jt){se(jt.article,jt.params)}),html5AppletsToProcess=null)},Ft(Tt)<5&&(mt.className+=" geogebraweb")):se(mt,kt)}if(Vn){scriptLoadStarted=!0;for(var Ze=0;Ze<cn.childNodes.length;Ze++){var ee=cn.childNodes[Ze].tagName;ee==="TABLE"&&(cn.removeChild(cn.childNodes[Ze]),Ze--)}if(ggbHTML5LoadedScript!==null){var re=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');re!=null&&re.parentNode.removeChild(re)}var Bt=document.createElement("script"),xt=function(){$e(cn,rn)};Bt.src=xe+et,ggbHTML5LoadedCodebaseIsWebSimple=nt,ggbHTML5LoadedCodebaseVersion=Tt,ggbHTML5LoadedScript=Bt.src,Zn("GeoGebra HTML5 codebase loaded: '"+xe+"'.",rn),!Nt&&(!Se||Se=="5.0")?(nt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),xt()):xe.requirejs?__webpack_require__.e(4184).then(function(){var mt=[__webpack_require__(74620)];xt.apply(null,mt)}.bind(this)).catch(__webpack_require__.oe):(Bt.onload=xt,Te.appendChild(Bt))}else $e(cn,rn);rn.height=me,rn.width=Hn},pe=function(Te,rn,gn){var Vn=_e(rn.width,rn.height,rn.borderColor,gn),cn=document.createElement("div");cn.style.position="relative",cn.style.display="block",cn.style.width=rn.width+"px",cn.style.height=rn.height+"px",cn.className="applet_screenshot applet_scaler"+(gn?" applet_screenshot_play":""),cn.appendChild(Vn);var Hn=GGBAppletUtils.getScale(rn,Te,gn);gn?(Te.appendChild(We()),window.GGBT_wsf_view||(Te.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(cn,"66%"),Te.appendChild(cn),Hn!==1&&!isNaN(Hn)&&(GGBAppletUtils.scaleElement(cn,Hn),cn.style.width=rn.width+"px",cn.style.height=rn.height+"px",cn.parentNode.style.width=rn.width*Hn+"px",cn.parentNode.style.height=rn.height*Hn+"px"),Bn.resize=function(){tn(Te,Vn,cn,gn)},window.addEventListener("resize",function(me){Bn.resize()}),Bn.resize()};function tn(Te,rn,gn,Vn){if(Te.contains(rn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Te)}var cn=GGBAppletUtils.getScale(St,Te,Vn);gn.parentNode!==null&&(!isNaN(cn)&&cn!==1?(GGBAppletUtils.scaleElement(gn,cn),gn.parentNode.style.width=St.width*cn+"px",gn.parentNode.style.height=St.height*cn+"px"):(GGBAppletUtils.scaleElement(gn,1),gn.parentNode.style.width=St.width+"px",gn.parentNode.style.height=St.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Te),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Bn.onExitFullscreen=function(Te,rn){rn.appendChild(Te)};var Ve=function(Te,rn,gn,Vn){pe(Te,rn,!0);for(var cn=function(){var Un=[];for(me=0;me<Te.childNodes.length;me++)Un.push(Te.childNodes[me]);if(window.GGBT_wsf_view){var ii=window.GGBT_wsf_view.renderFullScreen(Te,rn.id),xn=document.getElementById("fullscreencontainer"),ni=jQuery(Te).find(".fullscreencontent");ni.length>0?(ii.remove(),ni.attr("id","fullscreencontent").show(),jQuery(xn).append(ni),window.dispatchEvent(new Event("resize"))):Xe(ii,rn,!1),window.GGBT_wsf_view.launchFullScreen(xn)}else Ce=Vn,Xe(Te,rn,!1);if(!window.GGBT_wsf_view)for(me=0;me<Un.length;me++)Te.removeChild(Un[me])},Hn=Te.getElementsByClassName("ggb_preview_play"),me=0;me<Hn.length;me++)Hn[me].addEventListener("click",cn,!1),Hn[me].addEventListener("ontouchstart",cn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Te),Ot()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},We=function(){var Te=document.createElement("div");if(Te.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var rn='.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");}',gn=document.createElement("style");gn.styleSheet?gn.styleSheet.cssText=rn:gn.appendChild(document.createTextNode(rn)),document.getElementsByTagName("head")[0].appendChild(gn)}return Te},_e=function(Te,rn,gn,Vn){var cn=document.createElement("div");cn.className="ggb_preview",cn.style.position="absolute",cn.style.zIndex="90",cn.style.width=Te-2+"px",cn.style.height=rn-2+"px",cn.style.top="0px",cn.style.left="0px",cn.style.overflow="hidden",cn.style.backgroundColor="white";var Hn="lightgrey";gn!==void 0&&(gn==="none"?Hn="transparent":Hn=gn),cn.style.border="1px solid "+Hn;var me=document.createElement("img");if(me.style.position="relative",me.style.zIndex="1000",me.style.top="-1px",me.style.left="-1px",ht!==null&&me.setAttribute("src",ht),me.style.opacity=.7,st!==null){var Un,ii,xn;if(!Vn){Un=document.createElement("img"),Un.style.position="absolute",Un.style.zIndex="1001",Un.style.opacity=1,me.style.opacity=.3,ii=360,ii>Te/4*3&&(ii=Te/4*3),xn=ii/5.8,Un.setAttribute("src",st),Un.setAttribute("width",ii),Un.setAttribute("height",xn);var ni=(Te-ii)/2,ze=(rn-xn)/2;Un.style.left=ni+"px",Un.style.top=ze+"px",cn.appendChild(Un)}}return cn.appendChild(me),cn},Tn=function(Te){return Te=Te.toLowerCase(),Te==="html5"||Te==="screenshot"?Te:"html5"},ye=["web","webSimple","web3d","tablet","tablet3d","phone"],Gt=function(Te,rn){if(Tt=Te,rn){nn(Tt,!0);return}var gn=!zt;if(gn){var Vn=Ft(Tt);!isNaN(Vn)&&Vn<4.4&&(gn=!1)}var cn,Hn;window.location.protocol.substr(0,4)==="http"?cn=window.location.protocol:cn="http:";var me=Tt.indexOf("//");me>0?Hn=Tt:me===0?Hn=cn+Tt:Hn="https://www.geogebra.org/apps/5.2.814.0/";for(var Un in ye)if(Tt.slice(ye[Un].length*-1)===ye[Un]||Tt.slice((ye[Un].length+1)*-1)===ye[Un]+"/"){nn(Hn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&gn&&!At.is3D&&!At.AV&&!At.SV&&!At.CV&&!At.EV2&&!At.CP&&!At.PC&&!At.DA&&!At.FI&&!At.PV&&!Yt(St.showToolBar)&&!Yt(St.showMenuBar)&&!Yt(St.showAlgebraInput)&&!Yt(St.enableRightClick)&&(!St.appName||St.appName=="classic")?Hn+="webSimple/":Hn+="web3d/",nn(Hn,!1)},nn=function(Te,rn){if(Te.requirejs){xe=Te;return}Te.slice(-1)!=="/"&&(Te+="/"),xe=Te,rn===null&&(rn=Te.indexOf("http")===-1),we=rn,et="web.nocache.js",nt=!1;var gn=xe.split("/");gn.length>1&&(!rn&&gn[gn.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):ye.indexOf(gn[gn.length-2])>=0&&(et=gn[gn.length-2]+".nocache.js")),gn=Te.split("/"),Tt=gn[gn.length-3],Tt.substr(0,4)==="test"?Tt=Tt.substr(4,1)+"."+Tt.substr(5,1):(Tt.substr(0,3)==="war"||Tt.substr(0,4)==="beta")&&(Tt="5.0");var Vn=parseFloat(Tt);Vn!==NaN&&Vn<5&&Te.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Vn+" is deprecated. Using version latest instead."),Gt("5.0",rn))},Zn=function(Te,rn){window.console&&window.console.log&&(!rn||typeof rn.showLogging=="undefined"||rn.showLogging&&rn.showLogging!=="false")&&console.log(Te)};St.material_id!==void 0?Ht(_n):_n();function _n(){var Te=Cn;Se!==null?Te=Se:parseFloat(Te)<5&&(Te="5.0"),Gt(Te,!1),Nt!==null&&nn(Nt,we),Xt=!0}return Bn},GGBAppletUtils=function(){"use strict";function Bn(){return window.GGBT_wsf_edit!==void 0}function Cn(Xt,Se){Se!=1?(Xt.style.transformOrigin="0% 0% 0px",Xt.style.webkitTransformOrigin="0% 0% 0px",Xt.style.transform="scale("+Se+","+Se+")",Xt.style.webkitTransform="scale("+Se+","+Se+")",Xt.style.maxWidth="initial",Xt.querySelector(".ggb_preview")!==null&&(Xt.querySelector(".ggb_preview").style.maxWidth="initial"),Xt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Xt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Xt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Xt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Xt.style.transform="none",Xt.style.webkitTransform="none")}function St(Xt,Se,Nt,Ne,Pe,ne){var xe=null;if(ne!=null&&ne!="")for(var we=Xt.parentNode;we!=null;)if((" "+we.className+" ").indexOf(" "+ne+" ")>-1){xe=we;break}else we=we.parentNode;var Ce=0,Tt=0,et=0,nt=0,ht=0,st=0,gt=0;if(xe)Ce=xe.offsetWidth,Tt=Math.max(Ne?xe.offsetWidth:0,xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),Tt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Ce):(Ce=window.innerWidth,Tt=window.innerHeight,et=window.innerWidth),Xt){var vt=Xt.getBoundingClientRect();vt.left>0&&vt.left<=Ce&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(ht=Ce-vt.width-vt.left,st=et<=480?10:30):(st=vt.left,ht=et<=480?10:30),nt=st+ht)}if(Xt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pt=Xt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,gt=40)}}return Xt&&((Nt===void 0||!Nt)&&Se>0&&Se+nt<Ce?Ce=Se:Ce-=nt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Nt===void 0||!Nt)&&(Tt-=gt)),{width:Ce,height:Tt}}function At(Xt,Se,Nt,Ne,Pe){if(Xt.isScreenshoGenerator)return 1;var ne=Ne!==void 0&&Ne,xe=Xt.noScaleMargin!=null&&Xt.noScaleMargin,we=function(Pt){return Pt&&Pt!=="false"},Ce=we(Xt.autoHeight),Tt=St(Se,Xt.width,Nt,Ce,ne&&window.GGBT_wsf_view||xe,Pe),et=parseInt(Tt.width),nt=Xt.width,ht=Xt.height;if(nt===void 0){var st=Se.querySelector(".appletParameters");st&&(nt=st.offsetWidth,ht=st.offsetHeight)}var gt=et/nt,vt=ne?1:Tt.height/ht;return Nt!==void 0&&!Nt&&(gt=Math.min(1,gt),vt=Math.min(1,vt)),Math.min(gt,vt)}function zt(Xt,Se,Nt){var Ne=1,Pe,ne=!1;if(Xt.hasOwnProperty("allowUpscale")&&(ne=Xt.allowUpscale),Xt.hasOwnProperty("scale")&&(Ne=parseFloat(Xt.scale),(isNaN(Ne)||Ne===null||Ne===0)&&(Ne=1),Ne>1&&(ne=!0)),Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ne=!0),!(Xt.hasOwnProperty("disableAutoScale")&&Xt.disableAutoScale))Pe=At(Xt,Se,ne,Nt,Xt.scaleContainerClass);else return Ne;return ne&&(!Xt.hasOwnProperty("scale")||Ne===1)?Pe:Math.min(Ne,Pe)}function oe(Xt){var Se=Math.min(window.innerWidth,document.documentElement.clientWidth),Nt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=Xt.getBoundingClientRect(),Pe=(Se-Ne.width)/2,ne=(Nt-Ne.height)/2;ne<0&&(ne=0),Xt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?Xt.style.left="40px":Xt.style.left=Pe+"px",Xt.style.top=ne+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne<40?Xt.style.top="40px":Xt.style.top=ne+"px",Xt.style.left=Pe+"px")}function Me(Xt,Se){var Nt=Xt.querySelector(".appletParameters");if(Nt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Se.id!==Nt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Xt)}if(Nt.parentElement&&/fullscreen/.test(Nt.parentElement.className))return;var Ne=zt(Se,Xt);Bn()&&Nt.setAttribute("data-param-scale",Ne);for(var Pe=null,ne=0;ne<Xt.childNodes.length;ne++)if(Xt.childNodes[ne].className!==void 0&&Xt.childNodes[ne].className.match(/^applet_scaler/)){Pe=Xt.childNodes[ne];break}if(Pe!==null&&Pe.querySelector(".noscale")!==null)return;var xe=Se.id!==void 0?Se.id:"ggbApplet",we=window[xe];(we==null||!we.recalculateEnvironments)&&Pe!==null&&!Pe.className.match(/fullscreen/)&&(Pe.parentNode.style.transform="",!isNaN(Ne)&&Ne!==1?(Pe.parentNode.style.width=Se.width*Ne+"px",Pe.parentNode.style.height=Se.height*Ne+"px",Cn(Pe,Ne)):(Cn(Pe,1),Pe.parentNode.style.width=Se.width+"px",Pe.parentNode.style.height=Se.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&oe(Xt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Nt).parents(".content-added-content"))}}return{responsiveResize:Me,isFlexibleWorksheetEditor:Bn,positionCenter:oe,getScale:zt,scaleElement:Cn}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Bn=n.location.search;return Bn.indexOf(J)!=-1||Bn.indexOf(K)!=-1}function q(Bn,Cn){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Bn){var Cn=s[L].bindings;s[L].bindings=function(){for(var St=Cn?Cn():{},At=Bn[webModule.__softPermutationId],zt=O;zt<At.length;zt++){var oe=At[zt];St[oe[O]]=oe[P]}return St}};var t;function u(){return v(),t}function v(){if(!t){var Bn=o.createElement(Q);if(Bn.id=L,Bn.style.cssText=R+S,Bn.tabIndex=-1,o.body.appendChild(Bn),t=Bn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Cn=document.compatMode==U?V:W;t.write(Cn+X),t.close()}}}function w(Bn){function Cn(At){function zt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var oe=zt();if(oe){At();return}function Me(){if(!oe){if(!zt())return;oe=!0,At(),o.removeEventListener&&o.removeEventListener(Z,Me,!1),Xt&&clearInterval(Xt)}}o.addEventListener&&o.addEventListener(Z,Me,!1);var Xt=setInterval(function(){Me()},$)}function St(At){var zt=u(),oe=zt.body,Me=zt.createElement(_);Me.language=ab,Me.crossOrigin=W,Me.src=At,webModule.__errFn&&(Me.onerror=function(){webModule.__errFn(L,new Error(bb+At))}),oe.appendChild(Me)}Cn(function(){St(Bn)})}webModule.__startLoadingFragment=function(Bn){return C(Bn)},webModule.__installRunAsyncCode=function(Bn){var Cn=u(),St=Cn.body,At=Cn.createElement(_);At.language=ab,At.text=Bn,St.appendChild(At),St.removeChild(At)};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(Bn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Bn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Bn){var Cn=c[Bn];return Cn==null?null:Cn},r=d,webModule.__errFn=e}function B(){function Bn(Xt){var Se=Xt.lastIndexOf(rb);Se==-1&&(Se=Xt.length);var Nt=Xt.indexOf(sb);Nt==-1&&(Nt=Xt.length);var Ne=Xt.lastIndexOf(tb,Math.min(Nt,Se));return Ne>=O?Xt.substring(O,Ne+P):W}function Cn(Xt){if(!Xt.match(/^\w+:\/\//)){var Se=o.createElement(ub);Se.src=Xt+vb,Xt=Bn(Se.src)}return Xt}function St(){var Xt=__gwt_getMetaProperty(wb);return Xt!=null?Xt:W}function At(){for(var Xt=o.getElementsByTagName(_),Se=O;Se<Xt.length;++Se)if(Xt[Se].src.indexOf(xb)!=-1)return Bn(Xt[Se].src);return W}function zt(){var Xt=o.getElementsByTagName(yb);return Xt.length>O?Xt[Xt.length-P].href:W}function oe(){var Xt=o.location;return Xt.href==Xt.protocol+zb+Xt.host+Xt.pathname+Xt.search+Xt.hash}var Me=St();return Me==W&&(Me=At()),Me==W&&(Me=zt()),Me==W&&oe()&&(Me=Bn(o.location.href)),Me=Cn(Me),Me}function C(Bn){return Bn.match(/^\//)||Bn.match(/^[a-zA-Z]+:\/\//)?Bn:webModule.__moduleBase+Bn}function D(){var Bn=[],Cn=O,St=[],At=[];function zt(Xt){var Se=At[Xt](),Nt=St[Xt];if(Se in Nt)return Se;var Ne=[];for(var Pe in Nt)Ne[Nt[Pe]]=Pe;throw r&&r(Xt,Ne,Se),null}if(__gwt_isKnownPropertyValue=function(Xt,Se){return Se in St[Xt]},webModule.__getPropMap=function(){var Xt={};for(var Se in St)St.hasOwnProperty(Se)&&(Xt[Se]=zt(Se));return Xt},webModule.__computePropValue=zt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var oe;try{oe=Cb;var Me=oe.indexOf(Db);Me!=-1&&(Cn=parseInt(oe.substring(Me+P),$),oe=oe.substring(O,Me))}catch(Xt){}return webModule.__softPermutationId=Cn,C(oe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(Bn,Cn,St){"use strict";St.d(Cn,{Ax:function(){return Me},Ds:function(){return Xt},KI:function(){return Nt},SI:function(){return oe},f1:function(){return zt}});var At=St(3294);function zt(Ne){let Pe=!0;if(Ne.length>0){for(let ne=0;ne<Ne.length;ne++)if(Ne[ne].compile_success==0||!Ne[ne].compile_success){Pe=!1;break}}else Pe=!1;return Pe}function oe(Ne,Pe=""){let ne=[];for(let xe=0;xe<Ne.length;xe++){let we=Ne[xe],Ce=Pe?`${Pe}/${we.name}`:`${we.name}`;ne.push({title:we.name,type:we.type,isLeaf:we.type!=="tree",key:Ce})}return ne}function Me(Ne,Pe,ne){for(let xe=0;xe<Ne.length;xe++){let we=Ne[xe];if(we.key===Pe){we.children=ne;break}we.children&&Me(we.children,Pe,ne)}return Ne}function Xt(Ne,Pe,ne){let xe;return function(){let we=this,Ce=arguments,Tt=function(){xe=null,ne||Ne.apply(we,Ce)},et=ne&&!xe;clearTimeout(xe),xe=setTimeout(Tt,Pe),et&&Ne.apply(we,Ce)}}const Se=!0,Nt=At.Z.API_SERVER},16406:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return re}});var At=St(59301),zt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},oe=St(92310),Me=St.n(oe),Xt=St(71418);var Se=function(Bt,xt){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,kt){mt.__proto__=kt}||function(mt,kt){for(var jt in kt)Object.prototype.hasOwnProperty.call(kt,jt)&&(mt[jt]=kt[jt])})(Bt,xt)};function Nt(Bt,xt){function mt(){this.constructor=Bt}Se(Bt,xt),Bt.prototype=xt===null?Object.create(xt):(mt.prototype=xt.prototype,new mt)}function Ne(Bt,xt,mt,kt){return new(mt||(mt=Promise))(function(jt,Lt){function he(de){try{on(kt.next(de))}catch(De){Lt(De)}}function Re(de){try{on(kt.throw(de))}catch(De){Lt(De)}}function on(de){var De;de.done?jt(de.value):(De=de.value,De instanceof mt?De:new mt(function(Ke){Ke(De)})).then(he,Re)}on((kt=kt.apply(Bt,xt||[])).next())})}function Pe(Bt,xt){var mt,kt,jt,Lt,he={label:0,sent:function(){if(1&jt[0])throw jt[1];return jt[1]},trys:[],ops:[]};return Lt={next:Re(0),throw:Re(1),return:Re(2)},typeof Symbol=="function"&&(Lt[Symbol.iterator]=function(){return this}),Lt;function Re(on){return function(de){return function(De){if(mt)throw new TypeError("Generator is already executing.");for(;he;)try{if(mt=1,kt&&(jt=2&De[0]?kt.return:De[0]?kt.throw||((jt=kt.return)&&jt.call(kt),0):kt.next)&&!(jt=jt.call(kt,De[1])).done)return jt;switch(kt=0,jt&&(De=[2&De[0],jt.value]),De[0]){case 0:case 1:jt=De;break;case 4:return he.label++,{value:De[1],done:!1};case 5:he.label++,kt=De[1],De=[0];continue;case 7:De=he.ops.pop(),he.trys.pop();continue;default:if(jt=he.trys,!((jt=jt.length>0&&jt[jt.length-1])||De[0]!==6&&De[0]!==2)){he=0;continue}if(De[0]===3&&(!jt||De[1]>jt[0]&&De[1]<jt[3])){he.label=De[1];break}if(De[0]===6&&he.label<jt[1]){he.label=jt[1],jt=De;break}if(jt&&he.label<jt[2]){he.label=jt[2],he.ops.push(De);break}jt[2]&&he.ops.pop(),he.trys.pop();continue}De=xt.call(Bt,he)}catch(Ke){De=[6,Ke],kt=0}finally{mt=jt=0}if(5&De[0])throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}([on,de])}}}function ne(){for(var Bt=0,xt=0,mt=arguments.length;xt<mt;xt++)Bt+=arguments[xt].length;var kt=Array(Bt),jt=0;for(xt=0;xt<mt;xt++)for(var Lt=arguments[xt],he=0,Re=Lt.length;he<Re;he++,jt++)kt[jt]=Lt[he];return kt}var xe=function(){function Bt(){}return Bt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Bt.setAttributes=function(xt,mt){for(var kt=0,jt=mt;kt<jt.length;kt++){var Lt=jt[kt],he=Lt[0],Re=Lt[1];xt.setAttribute(he,Re)}},Bt.createRect=function(xt,mt,kt){var jt=document.createElementNS("http://www.w3.org/2000/svg","rect");return jt.setAttribute("width",xt.toString()),jt.setAttribute("height",mt.toString()),kt&&Bt.setAttributes(jt,kt),jt},Bt.createLine=function(xt,mt,kt,jt,Lt){var he=document.createElementNS("http://www.w3.org/2000/svg","line");return he.setAttribute("x1",xt.toString()),he.setAttribute("y1",mt.toString()),he.setAttribute("x2",kt.toString()),he.setAttribute("y2",jt.toString()),Lt&&Bt.setAttributes(he,Lt),he},Bt.createPolygon=function(xt,mt){var kt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return kt.setAttribute("points",xt),mt&&Bt.setAttributes(kt,mt),kt},Bt.createCircle=function(xt,mt){var kt=document.createElementNS("http://www.w3.org/2000/svg","circle");return kt.setAttribute("cx",(xt/2).toString()),kt.setAttribute("cy",(xt/2).toString()),kt.setAttribute("r",xt.toString()),mt&&Bt.setAttributes(kt,mt),kt},Bt.createEllipse=function(xt,mt,kt){var jt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return jt.setAttribute("cx",(xt/2).toString()),jt.setAttribute("cy",(mt/2).toString()),jt.setAttribute("rx",(xt/2).toString()),jt.setAttribute("ry",(mt/2).toString()),kt&&Bt.setAttributes(jt,kt),jt},Bt.createGroup=function(xt){var mt=document.createElementNS("http://www.w3.org/2000/svg","g");return xt&&Bt.setAttributes(mt,xt),mt},Bt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Bt.createMarker=function(xt,mt,kt,jt,Lt,he,Re){var on=document.createElementNS("http://www.w3.org/2000/svg","marker");return Bt.setAttributes(on,[["id",xt],["orient",mt],["markerWidth",kt.toString()],["markerHeight",jt.toString()],["refX",Lt.toString()],["refY",he.toString()]]),on.appendChild(Re),on},Bt.createText=function(xt){var mt=document.createElementNS("http://www.w3.org/2000/svg","text");return mt.setAttribute("x","0"),mt.setAttribute("y","0"),xt&&Bt.setAttributes(mt,xt),mt},Bt.createTSpan=function(xt,mt){var kt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return kt.textContent=xt,mt&&Bt.setAttributes(kt,mt),kt},Bt.createImage=function(xt){var mt=document.createElementNS("http://www.w3.org/2000/svg","image");return xt&&Bt.setAttributes(mt,xt),mt},Bt.createPoint=function(xt,mt){var kt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return kt.x=xt,kt.y=mt,kt},Bt.createPath=function(xt,mt){var kt=document.createElementNS("http://www.w3.org/2000/svg","path");return kt.setAttribute("d",xt),mt&&Bt.setAttributes(kt,mt),kt},Bt}(),we=function(){function Bt(){}return Bt.addKey=function(xt){Bt.key=xt},Object.defineProperty(Bt,"isLicensed",{get:function(){return!!Bt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Bt.key)},enumerable:!1,configurable:!0}),Bt}(),Ce=function(){function Bt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Bt.prototype.rasterize=function(xt,mt,kt){var jt=this;return new Promise(function(Lt){var he=kt!==void 0?kt:document.createElement("canvas");xt===null&&(jt.markersOnly=!0,jt.naturalSize=!1);var Re=document.createElementNS("http://www.w3.org/2000/svg","svg");Re.setAttribute("xmlns","http://www.w3.org/2000/svg"),Re.setAttribute("width",mt.width.baseVal.valueAsString),Re.setAttribute("height",mt.height.baseVal.valueAsString),Re.setAttribute("viewBox","0 0 "+mt.viewBox.baseVal.width.toString()+" "+mt.viewBox.baseVal.height.toString()),Re.innerHTML=mt.innerHTML,jt.naturalSize===!0?(Re.width.baseVal.value=xt.naturalWidth,Re.height.baseVal.value=xt.naturalHeight):jt.width!==void 0&&jt.height!==void 0&&(Re.width.baseVal.value=jt.width,Re.height.baseVal.value=jt.height),he.width=Re.width.baseVal.value,he.height=Re.height.baseVal.value;var on=Re.outerHTML,de=he.getContext("2d");jt.markersOnly!==!0&&de.drawImage(xt,0,0,he.width,he.height);var De=window.URL,Ke=new Image(he.width,he.height);Ke.setAttribute("crossOrigin","anonymous");var An=new Blob([on],{type:"image/svg+xml"}),Yn=De.createObjectURL(An);Ke.onload=function(){de.drawImage(Ke,0,0),De.revokeObjectURL(Yn);var gi=he.toDataURL(jt.imageType,jt.imageQuality);Lt(gi)},Ke.src=Yn})},Bt}(),Tt=function(){},et=function(){function Bt(xt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+xt+"_"}return Object.defineProperty(Bt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.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(Bt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Bt.prototype.addClass=function(xt){return this.styleSheet===void 0&&this.addStyleSheet(),xt.name=""+this.classNamePrefix+xt.localName,this.classes.push(xt),this.styleSheet.sheet.insertRule("."+xt.name+" {"+xt.style+"}",this.styleSheet.sheet.cssRules.length),xt},Bt.prototype.addRule=function(xt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(xt),this.styleSheet.sheet.insertRule(xt.selector+" {"+xt.style+"}",this.styleSheet.sheet.cssRules.length)},Bt.prototype.addStyleSheet=function(){var xt;this.styleSheet=document.createElement("style"),((xt=this.styleSheetRoot)!==null&&xt!==void 0?xt:document.head).appendChild(this.styleSheet),this.addRule(new nt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ht("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ht("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Bt.prototype.removeStyleSheet=function(){var xt;this.styleSheet&&(((xt=this.styleSheetRoot)!==null&&xt!==void 0?xt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Bt}(),nt=function(Bt,xt){this.selector=Bt,this.style=xt},ht=function(Bt,xt){this.localName=Bt,this.style=xt},st=function(){function Bt(xt,mt,kt,jt,Lt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=xt,this.displayMode=mt,this.markerItems=kt,this.uiStyleSettings=jt,this.styles=Lt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Bt.prototype.show=function(xt){var mt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var kt=document.createElement("div");kt.className=this.toolbarBlockStyleClass.name,kt.style.whiteSpace="nowrap",this.uiContainer.appendChild(kt),this.addActionButton(kt,'<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(kt,'<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(kt,'<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(kt,'<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(kt,'<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(kt,'<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(kt,'<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(kt,'<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(Lt){var he=document.createElement("div");he.className=""+mt.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",Lt.typeName),he.innerHTML=Lt.icon,he.addEventListener("click",function(){mt.markerToolbarButtonClicked(he,Lt)}),mt.buttons.push(he),mt.markerButtons.push(he)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var jt=document.createElement("div");jt.className=this.toolbarBlockStyleClass.name,jt.style.whiteSpace="nowrap",jt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(jt),this.addActionButton(jt,'<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(jt,'<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()},Bt.prototype.addButtonClickListener=function(xt){this.buttonClickListeners.push(xt)},Bt.prototype.removeButtonClickListener=function(xt){this.buttonClickListeners.indexOf(xt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(xt),1)},Bt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Bt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var xt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var mt=0;mt<this.markerButtons.length;mt++)mt<xt||mt===xt&&this.markerButtons.length-1===xt?this.markerButtonBlock.appendChild(this.markerButtons[mt]):(mt===xt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[mt]))}},Bt.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")},Bt.prototype.resetButtonStyles=function(){var xt=this;this.buttons.forEach(function(mt){mt.className=mt.className.replace(xt.uiStyleSettings.toolbarButtonStyleColorsClassName?xt.uiStyleSettings.toolbarButtonStyleColorsClassName:xt.toolbarButtonStyleColorsClass.name,"").trim(),mt.className=mt.className.replace(xt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?xt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:xt.toolbarActiveButtonStyleColorsClass.name,"").trim(),mt.className+=" "+(xt.uiStyleSettings.toolbarButtonStyleColorsClassName?xt.uiStyleSettings.toolbarButtonStyleColorsClassName:xt.toolbarButtonStyleColorsClass.name)})},Bt.prototype.addActionButton=function(xt,mt,kt){var jt=this,Lt=document.createElement("div");switch(Lt.className=""+this.toolbarButtonStyleClass.name,Lt.innerHTML=mt,Lt.setAttribute("data-action",kt),Lt.addEventListener("click",function(){jt.actionToolbarButtonClicked(Lt,kt)}),kt){case"select":Lt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Lt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Lt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Lt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Lt.style.fill=this.uiStyleSettings.closeButtonColor}xt.appendChild(Lt),this.buttons.push(Lt)},Bt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ht("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 ht("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ht("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ht("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 ht("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var xt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ht("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px;
padding: `+xt+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ht("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ht("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Bt.prototype.markerToolbarButtonClicked=function(xt,mt){this.setActiveButton(xt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(kt){return kt("marker",mt)}),this.markerButtonOverflowBlock.style.display="none"},Bt.prototype.actionToolbarButtonClicked=function(xt,mt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(kt){return kt("action",mt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Bt.prototype.setActiveButton=function(xt){this.resetButtonStyles(),xt.className=xt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),xt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Bt.prototype.setActiveMarkerButton=function(xt){var mt=this.markerButtons.find(function(kt){return kt.getAttribute("data-type-name")===xt});mt&&this.setActiveButton(mt)},Bt.prototype.setCurrentMarker=function(xt){var mt=this;this.currentMarker=xt,this.buttons.filter(function(kt){return/delete|notes/.test(kt.getAttribute("data-action"))}).forEach(function(kt){mt.currentMarker===void 0?(kt.style.fillOpacity="0.4",kt.style.pointerEvents="none"):(kt.style.fillOpacity="1",kt.style.pointerEvents="all")})},Bt}(),gt=function(){function Bt(xt,mt,kt,jt){this.panels=[],this.panelButtons=[],this.markerjsContainer=xt,this.displayMode=mt,this.uiStyleSettings=kt,this.styles=jt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Bt.prototype.addStyles=function(){var xt;this.toolboxStyleClass=this.styles.addClass(new ht("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 ht("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var mt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ht("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ht("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ht("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 ht("toolbox-panel-row_colors",`
background-color: `+((xt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&xt!==void 0?xt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ht("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px;
padding: `+mt+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ht("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ht("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Bt.prototype.show=function(xt){var mt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Bt.prototype.setPanelButtons=function(xt){var mt,kt,jt=this;this.panels=xt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((kt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&kt!==void 0?kt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Lt){var he;Lt.uiStyleSettings=jt.uiStyleSettings;var Re=document.createElement("div");Re.className=jt.toolboxButtonStyleClass.name+" "+((he=jt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:jt.toolboxButtonStyleColorsClass.name),Re.innerHTML=Lt.icon,Re.title=Lt.title,Re.addEventListener("click",function(){jt.panelButtonClick(Lt)}),jt.panelButtons.push(Re),jt.buttonRow.appendChild(Re)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Bt.prototype.panelButtonClick=function(xt){var mt=this,kt=-1;if(xt!==this.activePanel){kt=this.panels.indexOf(xt),this.panelRow.innerHTML="";var jt=xt.getUi();jt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(jt),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=xt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){mt.displayMode==="inline"?mt.panelRow.style.display="none":mt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Lt,he){var Re,on;Lt.className=mt.toolboxButtonStyleClass.name+" "+(he===kt?""+((Re=mt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Re!==void 0?Re:mt.toolboxActiveButtonStyleColorsClass.name):""+((on=mt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&on!==void 0?on:mt.toolboxButtonStyleColorsClass.name))})},Bt}(),vt=function(Bt,xt){this.title=Bt,this.icon=xt},Pt=function(Bt){function xt(mt,kt,jt,Lt){var he=Bt.call(this,mt,Lt||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=kt,he.currentColor=jt,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return Nt(xt,Bt),xt.prototype.getUi=function(){var mt=this,kt=document.createElement("div");return kt.style.overflow="hidden",kt.style.whiteSpace="nowrap",this.colors.forEach(function(jt){var Lt=mt.getColorBox(jt);kt.appendChild(Lt),mt.colorBoxes.push(Lt)}),kt},xt.prototype.getColorBox=function(mt){var kt=this,jt=this.uiStyleSettings.toolbarHeight/4,Lt=this.uiStyleSettings.toolbarHeight-jt,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=Lt-2+"px",he.style.height=Lt-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(Lt+2)/2+"px",he.style.borderColor=mt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){kt.setCurrentColor(mt,he)});var Re=document.createElement("div");return Re.style.display="inline-block",Re.style.width=Lt-2+"px",Re.style.height=Lt-2+"px",Re.style.backgroundColor=mt,Re.style.borderRadius=Lt/2+"px",mt==="transparent"&&(Re.style.fill=this.uiStyleSettings.toolboxAccentColor,Re.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),he.appendChild(Re),he},xt.prototype.setCurrentColor=function(mt,kt){var jt=this;this.currentColor=mt,this.colorBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(mt)},xt}(vt),Ft=function(){function Bt(xt,mt,kt){this._state="new",this._isSelected=!1,this._container=xt,this._overlayContainer=mt,this.globalSettings=kt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Bt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Bt.prototype.ownsTarget=function(xt){return!1},Object.defineProperty(Bt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Bt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Bt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Bt.prototype.pointerDown=function(xt,mt){},Bt.prototype.dblClick=function(xt,mt){},Bt.prototype.manipulate=function(xt){},Bt.prototype.pointerUp=function(xt){this.stateChanged()},Bt.prototype.dispose=function(){},Bt.prototype.addMarkerVisualToContainer=function(xt){this.container.childNodes.length>0?this.container.insertBefore(xt,this.container.childNodes[0]):this.container.appendChild(xt)},Bt.prototype.getState=function(){return{typeName:Bt.typeName,state:this.state,notes:this.notes}},Bt.prototype.restoreState=function(xt){this._state=xt.state,this.notes=xt.notes},Bt.prototype.scale=function(xt,mt){},Bt.prototype.colorChanged=function(xt){this.onColorChanged&&this.onColorChanged(xt),this.stateChanged()},Bt.prototype.fillColorChanged=function(xt){this.onFillColorChanged&&this.onFillColorChanged(xt),this.stateChanged()},Bt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var xt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),xt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(xt)&&this.onStateChanged(this)}},Bt.typeName="MarkerBase",Bt}(),wt=function(){function Bt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Bt.prototype.findGripByVisual=function(xt){return this.topLeft.ownsTarget(xt)?this.topLeft:this.topCenter.ownsTarget(xt)?this.topCenter:this.topRight.ownsTarget(xt)?this.topRight:this.centerLeft.ownsTarget(xt)?this.centerLeft:this.centerRight.ownsTarget(xt)?this.centerRight:this.bottomLeft.ownsTarget(xt)?this.bottomLeft:this.bottomCenter.ownsTarget(xt)?this.bottomCenter:this.bottomRight.ownsTarget(xt)?this.bottomRight:void 0},Bt}(),Ot=function(){function Bt(){this.GRIP_SIZE=10,this.visual=xe.createGroup(),this.visual.appendChild(xe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(xe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Bt.prototype.ownsTarget=function(xt){return xt===this.visual||xt===this.visual.childNodes[0]||xt===this.visual.childNodes[1]},Bt}(),Ht=function(){function Bt(){}return Bt.toITransformMatrix=function(xt){return{a:xt.a,b:xt.b,c:xt.c,d:xt.d,e:xt.e,f:xt.f}},Bt.toSVGMatrix=function(xt,mt){return xt.a=mt.a,xt.b=mt.b,xt.c=mt.c,xt.d=mt.d,xt.e=mt.e,xt.f=mt.f,xt},Bt}(),Zt=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.left=0,Lt.top=0,Lt.width=0,Lt.height=0,Lt.defaultSize={x:50,y:20},Lt.offsetX=0,Lt.offsetY=0,Lt.rotationAngle=0,Lt.CB_DISTANCE=10,Lt._suppressMarkerCreateEvent=!1,Lt.container.transform.baseVal.appendItem(xe.createTransform()),Lt.setupControlBox(),Lt}return Nt(xt,Bt),Object.defineProperty(xt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(xt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(xt.prototype,"visual",{get:function(){return this._visual},set:function(mt){this._visual=mt;var kt=xe.createTransform();this._visual.transform.baseVal.appendItem(kt)},enumerable:!1,configurable:!0}),xt.prototype.ownsTarget=function(mt){return!!Bt.prototype.ownsTarget.call(this,mt)||!!(this.controlGrips.findGripByVisual(mt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(mt))},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.state==="new"&&(this.left=mt.x,this.top=mt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var jt=this.unrotatePoint(mt);if(this.manipulationStartX=jt.x,this.manipulationStartY=jt.y,this.offsetX=jt.x-this.left,this.offsetY=jt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(kt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(kt)){this.activeGrip=this.rotatorGrip;var Lt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Lt.x-this.width/2,this.top=Lt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},xt.prototype.pointerUp=function(mt){var kt=this.state;Bt.prototype.pointerUp.call(this,mt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(mt),this._state="select",kt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},xt.prototype.moveVisual=function(mt){this.visual.style.transform="translate("+mt.x+"px, "+mt.y+"px)"},xt.prototype.manipulate=function(mt){var kt=this.unrotatePoint(mt);this.state==="creating"?this.resize(mt):this.state==="move"?(this.left=this.manipulationStartLeft+(kt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(kt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(kt):this.state==="rotate"&&this.rotate(mt)},xt.prototype.resize=function(mt){var kt=this.manipulationStartLeft,jt=this.manipulationStartWidth,Lt=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:kt=this.manipulationStartLeft+mt.x-this.manipulationStartX,jt=this.manipulationStartWidth+this.manipulationStartLeft-kt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:jt=this.manipulationStartWidth+mt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Lt=this.manipulationStartTop+mt.y-this.manipulationStartY,he=this.manipulationStartHeight+this.manipulationStartTop-Lt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+mt.y-this.manipulationStartY}jt>=0?(this.left=kt,this.width=jt):(this.left=kt+jt,this.width=-jt),he>=0?(this.top=Lt,this.height=he):(this.top=Lt+he,this.height=-he),this.setSize()},xt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},xt.prototype.rotate=function(mt){if(Math.abs(mt.x-this.centerX)>.1){var kt=Math.sign(mt.x-this.centerX);this.rotationAngle=180*Math.atan((mt.y-this.centerY)/(mt.x-this.centerX))/Math.PI+90*kt,this.applyRotation()}},xt.prototype.applyRotation=function(){var mt=this.container.transform.baseVal.getItem(0);mt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(mt,0)},xt.prototype.rotatePoint=function(mt){if(this.rotationAngle===0)return mt;var kt=this.container.getCTM(),jt=xe.createPoint(mt.x,mt.y);return{x:(jt=jt.matrixTransform(kt)).x,y:jt.y}},xt.prototype.unrotatePoint=function(mt){if(this.rotationAngle===0)return mt;var kt=this.container.getCTM();kt=kt.inverse();var jt=xe.createPoint(mt.x,mt.y);return{x:(jt=jt.matrixTransform(kt)).x,y:jt.y}},xt.prototype.select=function(){Bt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xt.prototype.deselect=function(){Bt.prototype.deselect.call(this),this.controlBox.style.display="none"},xt.prototype.setupControlBox=function(){this.controlBox=xe.createGroup();var mt=xe.createTransform();mt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(mt),this.container.appendChild(this.controlBox),this.controlRect=xe.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=xe.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 wt,this.addControlGrips(),this.controlBox.style.display="none"},xt.prototype.adjustControlBox=function(){var mt=this.controlBox.transform.baseVal.getItem(0);mt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(mt,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()},xt.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()},xt.prototype.createGrip=function(){var mt=new Ot;return mt.visual.transform.baseVal.appendItem(xe.createTransform()),this.controlBox.appendChild(mt.visual),mt},xt.prototype.positionGrips=function(){var mt=this.controlGrips.topLeft.GRIP_SIZE,kt=-mt/2,jt=kt,Lt=(this.width+this.CB_DISTANCE)/2-mt/2,he=(this.height+this.CB_DISTANCE)/2-mt/2,Re=this.height+this.CB_DISTANCE-mt/2,on=this.width+this.CB_DISTANCE-mt/2;this.positionGrip(this.controlGrips.topLeft.visual,kt,jt),this.positionGrip(this.controlGrips.topCenter.visual,Lt,jt),this.positionGrip(this.controlGrips.topRight.visual,on,jt),this.positionGrip(this.controlGrips.centerLeft.visual,kt,he),this.positionGrip(this.controlGrips.centerRight.visual,on,he),this.positionGrip(this.controlGrips.bottomLeft.visual,kt,Re),this.positionGrip(this.controlGrips.bottomCenter.visual,Lt,Re),this.positionGrip(this.controlGrips.bottomRight.visual,on,Re),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Lt,jt-3*this.CB_DISTANCE)},xt.prototype.positionGrip=function(mt,kt,jt){var Lt=mt.transform.baseVal.getItem(0);Lt.setTranslate(kt,jt),mt.transform.baseVal.replaceItem(Lt,0)},xt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},xt.prototype.showControlBox=function(){this.controlBox.style.display=""},xt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ht.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ht.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Bt.prototype.getState.call(this))},xt.prototype.restoreState=function(mt){Bt.prototype.restoreState.call(this,mt);var kt=mt;this.left=kt.left,this.top=kt.top,this.width=kt.width,this.height=kt.height,this.rotationAngle=kt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ht.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,kt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ht.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,kt.containerTransformMatrix))},xt.prototype.scale=function(mt,kt){Bt.prototype.scale.call(this,mt,kt);var jt=this.rotatePoint({x:this.left,y:this.top}),Lt=this.unrotatePoint({x:jt.x*mt,y:jt.y*kt});this.left=Lt.x,this.top=Lt.y,this.width=this.width*mt,this.height=this.height*kt,this.adjustControlBox()},xt}(Ft),Ut=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.fillColor="transparent",Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.opacity=1,Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setFillColor=Lt.setFillColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.createVisual=Lt.createVisual.bind(Lt),Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){return!(!Bt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},xt.prototype.createVisual=function(){this.visual=xe.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)},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.manipulate=function(mt){Bt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){Bt.prototype.resize.call(this,mt),this.setSize()},xt.prototype.setSize=function(){Bt.prototype.setSize.call(this),xe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},xt.prototype.pointerUp=function(mt){Bt.prototype.pointerUp.call(this,mt),this.setSize()},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&xe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},xt.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&xe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&xe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&xe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Bt.prototype.getState.call(this))},xt.prototype.restoreState=function(mt){var kt=mt;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.opacity=kt.opacity,this.createVisual(),Bt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,kt){Bt.prototype.scale.call(this,mt,kt),this.setSize()},xt.title="Rectangle marker",xt}(Zt),fe=function(Bt){function xt(mt,kt,jt,Lt){var he=Bt.call(this,mt,Lt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return he.widths=[],he.widthBoxes=[],he.widths=kt,he.currentWidth=jt,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return Nt(xt,Bt),xt.prototype.getUi=function(){var mt=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",this.widths.forEach(function(jt){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.flexGrow="2",Lt.style.alignItems="center",Lt.style.justifyContent="space-between",Lt.style.padding="5px",Lt.style.borderWidth="2px",Lt.style.borderStyle="solid",Lt.style.borderColor=jt===mt.currentWidth?mt.uiStyleSettings.toolboxAccentColor:"transparent",Lt.addEventListener("click",function(){mt.setCurrentWidth(jt,Lt)}),kt.appendChild(Lt);var he=document.createElement("div");he.innerText=jt.toString(),he.style.marginRight="5px",Lt.appendChild(he);var Re=document.createElement("div");Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.display="flex",Re.style.alignItems="center";var on=document.createElement("hr");on.style.minWidth="20px",on.style.border="0px",on.style.borderTop=jt+"px solid "+mt.uiStyleSettings.toolboxColor,on.style.flexGrow="2",Re.appendChild(on),Lt.appendChild(Re),mt.widthBoxes.push(Lt)}),kt},xt.prototype.setCurrentWidth=function(mt,kt){var jt=this;this.currentWidth=mt,this.widthBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},xt}(vt),Yt=function(Bt){function xt(mt,kt,jt,Lt){var he=Bt.call(this,mt,Lt||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return he.styles=[],he.styleBoxes=[],he.styles=kt,he.currentStyle=jt,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return Nt(xt,Bt),xt.prototype.getUi=function(){var mt=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",this.styles.forEach(function(jt){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.justifyContent="space-between",Lt.style.padding="5px",Lt.style.borderWidth="2px",Lt.style.borderStyle="solid",Lt.style.overflow="hidden",Lt.style.maxWidth=100/mt.styles.length-5+"%",Lt.style.borderColor=jt===mt.currentStyle?mt.uiStyleSettings.toolboxAccentColor:"transparent",Lt.addEventListener("click",function(){mt.setCurrentStyle(jt,Lt)}),kt.appendChild(Lt);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var Re=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+mt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(jt!==""?'stroke-dasharray="'+jt+'"':"")+` />
</svg>`;he.innerHTML=Re,Lt.appendChild(he),mt.styleBoxes.push(Lt)}),kt},xt.prototype.setCurrentStyle=function(mt,kt){var jt=this;this.currentStyle=mt,this.styleBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},xt}(vt),Xe=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.strokeColor=jt.defaultColor,Lt.strokeWidth=jt.defaultStrokeWidth,Lt.strokeDasharray=jt.defaultStrokeDasharray,Lt.strokePanel=new Pt("Line color",jt.defaultColorSet,jt.defaultColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.strokeWidthPanel=new fe("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new Yt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt}return Nt(xt,Bt),Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Bt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="FrameMarker",xt.title="Frame marker",xt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',xt}(Ut),pe=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"},tn=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.x1=0,Lt.y1=0,Lt.x2=0,Lt.y2=0,Lt.defaultLength=50,Lt.manipulationStartX=0,Lt.manipulationStartY=0,Lt.manipulationStartX1=0,Lt.manipulationStartY1=0,Lt.manipulationStartX2=0,Lt.manipulationStartY2=0,Lt.setupControlBox(),Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){return!!Bt.prototype.ownsTarget.call(this,mt)||!(!this.grip1.ownsTarget(mt)&&!this.grip2.ownsTarget(mt))},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.manipulationStartX=mt.x,this.manipulationStartY=mt.y,this.state==="new"&&(this.x1=mt.x,this.y1=mt.y,this.x2=mt.x,this.y2=mt.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(kt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(kt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},xt.prototype.pointerUp=function(mt){var kt=this.state;Bt.prototype.pointerUp.call(this,mt),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(mt),this._state="select",kt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},xt.prototype.adjustVisual=function(){},xt.prototype.manipulate=function(mt){this.state==="creating"?this.resize(mt):this.state==="move"?(this.x1=this.manipulationStartX1+mt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+mt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+mt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+mt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(mt)},xt.prototype.resize=function(mt){switch(this.activeGrip){case this.grip1:this.x1=mt.x,this.y1=mt.y;break;case this.grip2:case void 0:this.x2=mt.x,this.y2=mt.y}this.adjustVisual(),this.adjustControlBox()},xt.prototype.select=function(){Bt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xt.prototype.deselect=function(){Bt.prototype.deselect.call(this),this.controlBox.style.display="none"},xt.prototype.setupControlBox=function(){this.controlBox=xe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},xt.prototype.adjustControlBox=function(){this.positionGrips()},xt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},xt.prototype.createGrip=function(){var mt=new Ot;return mt.visual.transform.baseVal.appendItem(xe.createTransform()),this.controlBox.appendChild(mt.visual),mt},xt.prototype.positionGrips=function(){var mt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-mt/2,this.y1-mt/2),this.positionGrip(this.grip2.visual,this.x2-mt/2,this.y2-mt/2)},xt.prototype.positionGrip=function(mt,kt,jt){var Lt=mt.transform.baseVal.getItem(0);Lt.setTranslate(kt,jt),mt.transform.baseVal.replaceItem(Lt,0)},xt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Bt.prototype.getState.call(this))},xt.prototype.restoreState=function(mt){Bt.prototype.restoreState.call(this,mt);var kt=mt;this.x1=kt.x1,this.y1=kt.y1,this.x2=kt.x2,this.y2=kt.y2},xt.prototype.scale=function(mt,kt){Bt.prototype.scale.call(this,mt,kt),this.x1=this.x1*mt,this.y1=this.y1*kt,this.x2=this.x2*mt,this.y2=this.y2*kt,this.adjustVisual(),this.adjustControlBox()},xt}(Ft),Ve=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.strokeColor=jt.defaultColor,Lt.strokeWidth=jt.defaultStrokeWidth,Lt.strokeDasharray=jt.defaultStrokeDasharray,Lt.strokePanel=new Pt("Line color",jt.defaultColorSet,jt.defaultColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.strokeWidthPanel=new fe("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new Yt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){return!(!Bt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorLine&&mt!==this.visibleLine)},xt.prototype.createVisual=function(){this.visual=xe.createGroup(),this.selectorLine=xe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=xe.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)},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},xt.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()),xe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),xe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),xe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Bt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Bt.prototype.restoreState.call(this,mt);var kt=mt;this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.createVisual(),this.adjustVisual()},xt.typeName="LineMarker",xt.title="Line marker",xt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',xt}(tn),We=function(Bt){function xt(mt,kt,jt,Lt){var he=Bt.call(this,mt,Lt||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return he.fonts=[],he.fontBoxes=[],he.fonts=kt,he.currentFont=jt,he.setCurrentFont=he.setCurrentFont.bind(he),he}return Nt(xt,Bt),xt.prototype.getUi=function(){var mt=this,kt=document.createElement("div");return kt.style.overflow="hidden",kt.style.flexGrow="2",this.fonts.forEach(function(jt){var Lt=document.createElement("div");Lt.style.display="inline-block",Lt.style.alignItems="center",Lt.style.justifyContent="space-between",Lt.style.padding="5px",Lt.style.borderWidth="2px",Lt.style.borderStyle="solid",Lt.style.overflow="hidden",Lt.style.maxWidth=100/mt.fonts.length-5+"%",Lt.style.borderColor=jt===mt.currentFont?mt.uiStyleSettings.toolboxAccentColor:"transparent",Lt.addEventListener("click",function(){mt.setCurrentFont(jt,Lt)}),kt.appendChild(Lt);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=jt,he.style.overflow="hidden";var Re=document.createElement("div");Re.style.whiteSpace="nowrap",Re.style.overflow="hidden",Re.style.textOverflow="ellipsis",Re.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(Re),Lt.appendChild(he),mt.fontBoxes.push(Lt)}),kt},xt.prototype.setCurrentFont=function(mt,kt){var jt=this;this.currentFont=mt,this.fontBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},xt}(vt),_e=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.color="transparent",Lt.padding=5,Lt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Lt.text=Lt.DEFAULT_TEXT,Lt.isMoved=!1,Lt.color=jt.defaultColor,Lt.fontFamily=jt.defaultFontFamily,Lt.defaultSize={x:100,y:30},Lt.setColor=Lt.setColor.bind(Lt),Lt.setFont=Lt.setFont.bind(Lt),Lt.renderText=Lt.renderText.bind(Lt),Lt.sizeText=Lt.sizeText.bind(Lt),Lt.textEditDivClicked=Lt.textEditDivClicked.bind(Lt),Lt.showTextEditor=Lt.showTextEditor.bind(Lt),Lt.setSize=Lt.setSize.bind(Lt),Lt.positionTextEditor=Lt.positionTextEditor.bind(Lt),Lt.colorPanel=new Pt("Color",jt.defaultColorSet,jt.defaultColor),Lt.colorPanel.onColorChanged=Lt.setColor,Lt.fontFamilyPanel=new We("Font",jt.defaultFontFamilies,jt.defaultFontFamily),Lt.fontFamilyPanel.onFontChanged=Lt.setFont,Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){if(Bt.prototype.ownsTarget.call(this,mt)||mt===this.visual||mt===this.textElement||mt===this.bgRectangle)return!0;var kt=!1;return this.textElement.childNodes.forEach(function(jt){jt===mt&&(kt=!0)}),kt},xt.prototype.createVisual=function(){this.visual=xe.createGroup(),this.bgRectangle=xe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=xe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(xe.createTransform()),this.textElement.transform.baseVal.appendItem(xe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.renderText=function(){var mt=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(kt){mt.textElement.appendChild(xe.createTSpan(kt.trim()===""?" ":kt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},xt.prototype.getTextScale=function(){var mt=this.textElement.getBBox(),kt=1;if(mt.width>0&&mt.height>0){var jt=(1*this.width-this.width*this.padding*2/100)/mt.width,Lt=(1*this.height-this.height*this.padding*2/100)/mt.height;kt=Math.min(jt,Lt)}return kt},xt.prototype.getTextPosition=function(mt){var kt=this.textElement.getBBox(),jt=0,Lt=0;return kt.width>0&&kt.height>0&&(jt=(this.width-kt.width*mt)/2,Lt=this.height/2-kt.height*mt/2),{x:jt,y:Lt}},xt.prototype.sizeText=function(){var mt=this.textElement.getBBox(),kt=this.getTextScale(),jt=this.getTextPosition(kt);jt.y-=mt.y*kt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+jt.x+"px, "+jt.y+"px) scale("+kt+", "+kt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(jt.x,jt.y),this.textElement.transform.baseVal.getItem(1).setScale(kt,kt))},xt.prototype.manipulate=function(mt){Bt.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},xt.prototype.resize=function(mt){Bt.prototype.resize.call(this,mt),this.isMoved=!0,this.setSize(),this.sizeText()},xt.prototype.setSize=function(){Bt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(xe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},xt.prototype.pointerUp=function(mt){var kt=this.state;kt==="creating"&&(this._suppressMarkerCreateEvent=!0),Bt.prototype.pointerUp.call(this,mt),this.setSize(),(kt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},xt.prototype.showTextEditor=function(){var mt=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(kt){kt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var kt=Number.parseFloat(mt.textEditor.style.fontSize);mt.textEditor.clientWidth>=Number.parseInt(mt.textEditor.style.maxWidth)&&kt>.9;)kt-=.1,mt.textEditor.style.fontSize=Math.max(kt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(kt){kt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(kt){if(kt.clipboardData){var jt=kt.clipboardData.getData("text"),Lt=window.getSelection();if(!Lt.rangeCount)return!1;Lt.deleteFromDocument(),Lt.getRangeAt(0).insertNode(document.createTextNode(jt)),kt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){mt.textEditDivClicked(mt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},xt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var mt=this.getTextScale(),kt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),jt=this.textElement.getBBox(),Lt={x:jt.width*mt,y:jt.height*mt};kt.x-=Lt.x/2,kt.y-=Lt.y/2,this.textEditor.style.top=kt.y+"px",this.textEditor.style.left=kt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-kt.x+"px",this.textEditor.style.fontSize=Math.max(16*mt,12)+"px",this.textElement.style.display="none"}},xt.prototype.textEditDivClicked=function(mt){this.text=mt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},xt.prototype.select=function(){Bt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},xt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Bt.prototype.deselect.call(this)},xt.prototype.dblClick=function(mt,kt){Bt.prototype.dblClick.call(this,mt,kt),this.showTextEditor()},xt.prototype.setColor=function(mt){this.textElement&&xe.setAttributes(this.textElement,[["fill",mt]]),this.color=mt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(mt)},xt.prototype.setFont=function(mt){this.textElement&&xe.setAttributes(this.textElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},xt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},xt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Bt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){var kt=mt;this.color=kt.color,this.fontFamily=kt.fontFamily,this.padding=kt.padding,this.text=kt.text,this.createVisual(),Bt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,kt){Bt.prototype.scale.call(this,mt,kt),this.setSize(),this.sizeText(),this.positionTextEditor()},xt.typeName="TextMarker",xt.title="Text marker",xt.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>',xt}(Zt),Tn=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.color="transparent",Lt.lineWidth=3,Lt.drawing=!1,Lt.pixelRatio=1,Lt.color=jt.defaultColor,Lt.lineWidth=jt.defaultStrokeWidth,Lt.pixelRatio=jt.freehandPixelRatio,Lt.setColor=Lt.setColor.bind(Lt),Lt.addCanvas=Lt.addCanvas.bind(Lt),Lt.finishCreation=Lt.finishCreation.bind(Lt),Lt.setLineWidth=Lt.setLineWidth.bind(Lt),Lt.colorPanel=new Pt("Color",jt.defaultColorSet,jt.defaultColor),Lt.colorPanel.onColorChanged=Lt.setColor,Lt.lineWidthPanel=new fe("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Lt.lineWidthPanel.onWidthChanged=Lt.setLineWidth,Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){return!(!Bt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.drawingImage)},xt.prototype.createVisual=function(){this.visual=xe.createGroup(),this.drawingImage=xe.createImage(),this.visual.appendChild(this.drawingImage);var mt=xe.createTransform();this.visual.transform.baseVal.appendItem(mt),this.addMarkerVisualToContainer(this.visual)},xt.prototype.pointerDown=function(mt,kt){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(mt.x,mt.y),this.drawing=!0):Bt.prototype.pointerDown.call(this,mt,kt)},xt.prototype.manipulate=function(mt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(mt.x,mt.y),this.canvasContext.stroke()):Bt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){Bt.prototype.resize.call(this,mt),xe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},xt.prototype.pointerUp=function(mt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Bt.prototype.pointerUp.call(this,mt)},xt.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)},xt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Bt.prototype.select.call(this)},xt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Bt.prototype.deselect.call(this)},xt.prototype.finishCreation=function(){for(var mt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),kt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],jt=kt[0],Lt=kt[1],he=kt[2],Re=kt[3],on=!1,de=0;de<this.canvasElement.height;de++)for(var De=0;De<this.canvasElement.width;De++)mt.data[de*this.canvasElement.width*4+4*De+3]>0&&(on=!0,de<Lt&&(Lt=de),De<jt&&(jt=De),de>Re&&(Re=de),De>he&&(he=De));if(on){this.left=jt/this.pixelRatio,this.top=Lt/this.pixelRatio,this.width=(he-jt)/this.pixelRatio,this.height=(Re-Lt)/this.pixelRatio;var Ke=document.createElement("canvas");Ke.width=he-jt,Ke.height=Re-Lt,Ke.getContext("2d").putImageData(this.canvasContext.getImageData(jt,Lt,he-jt,Re-Lt),0,0),this.drawingImgUrl=Ke.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},xt.prototype.setDrawingImage=function(){xe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),xe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},xt.prototype.setColor=function(mt){this.color=mt,this.colorChanged(mt)},xt.prototype.setLineWidth=function(mt){this.lineWidth=mt},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({drawingImgUrl:this.drawingImgUrl},Bt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){this.createVisual(),Bt.prototype.restoreState.call(this,mt),this.drawingImgUrl=mt.drawingImgUrl,this.setDrawingImage()},xt.prototype.scale=function(mt,kt){Bt.prototype.scale.call(this,mt,kt),this.setDrawingImage()},xt.typeName="FreehandMarker",xt.title="Freehand marker",xt.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>',xt}(Zt),ye=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,jt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Lt.typeBoxes=[],Lt.currentType=kt,Lt.setCurrentType=Lt.setCurrentType.bind(Lt),Lt}return Nt(xt,Bt),xt.prototype.getUi=function(){var mt=this,kt=document.createElement("div");kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2";for(var jt=function(Re){var on="both";switch(Re){case 0:on="both";break;case 1:on="start";break;case 2:on="end";break;case 3:on="none"}var de=document.createElement("div");if(de.style.display="flex",de.style.flexGrow="2",de.style.alignItems="center",de.style.justifyContent="space-between",de.style.padding="5px",de.style.borderWidth="2px",de.style.borderStyle="solid",de.style.borderColor=on===Lt.currentType?Lt.uiStyleSettings.toolboxAccentColor:"transparent",de.addEventListener("click",function(){mt.setCurrentType(on,de)}),kt.appendChild(de),on==="both"||on==="start"){var De=document.createElement("div");De.style.display="flex",De.style.alignItems="center",De.style.minHeight="20px",De.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(Lt.uiStyleSettings!==void 0?Lt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,De.style.marginLeft="5px",de.appendChild(De)}var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.style.flexGrow="2";var An=document.createElement("hr");if(An.style.minWidth="20px",An.style.border="0px",An.style.borderTop="3px solid "+(Lt.uiStyleSettings!==void 0?Lt.uiStyleSettings.toolboxColor:"#eeeeee"),An.style.flexGrow="2",Ke.appendChild(An),de.appendChild(Ke),on==="both"||on==="end"){var Yn=document.createElement("div");Yn.style.display="flex",Yn.style.alignItems="center",Yn.style.minHeight="20px",Yn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Lt.uiStyleSettings!==void 0?Lt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Yn.style.marginRight="5px",de.appendChild(Yn)}Lt.typeBoxes.push(de)},Lt=this,he=0;he<4;he++)jt(he);return kt},xt.prototype.setCurrentType=function(mt,kt){var jt=this;this.currentType=mt,this.typeBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===kt?jt.uiStyleSettings!==void 0?jt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},xt}(vt),Gt=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.arrowType="end",Lt.arrowBaseHeight=10,Lt.arrowBaseWidth=10,Lt.getArrowPoints=Lt.getArrowPoints.bind(Lt),Lt.setArrowType=Lt.setArrowType.bind(Lt),Lt.arrowTypePanel=new ye("Arrow type","end"),Lt.arrowTypePanel.onArrowTypeChanged=Lt.setArrowType,Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){return!(!Bt.prototype.ownsTarget.call(this,mt)&&mt!==this.arrow1&&mt!==this.arrow2)},xt.prototype.getArrowPoints=function(mt,kt){var jt=this.arrowBaseWidth+2*this.strokeWidth,Lt=this.arrowBaseHeight+2*this.strokeWidth;return mt-jt/2+","+(kt+Lt/2)+" "+mt+","+(kt-Lt/2)+" "+(mt+jt/2)+","+(kt+Lt/2)},xt.prototype.createTips=function(){this.arrow1=xe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(xe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=xe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(xe.createTransform()),this.visual.appendChild(this.arrow2)},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.state==="creating"&&this.createTips()},xt.prototype.adjustVisual=function(){if(Bt.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",xe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),xe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var mt=0;Math.abs(this.x1-this.x2)>.1&&(mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var kt=this.arrow1.transform.baseVal.getItem(0);kt.setRotate(mt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(kt,0);var jt=this.arrow2.transform.baseVal.getItem(0);jt.setRotate(mt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(jt,0)}},xt.prototype.setArrowType=function(mt){this.arrowType=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({arrowType:this.arrowType},Bt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Bt.prototype.restoreState.call(this,mt);var kt=mt;this.arrowType=kt.arrowType,this.createTips(),this.adjustVisual()},xt.typeName="ArrowMarker",xt.title="Arrow marker",xt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',xt}(Ve),nn=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.fillColor=jt.defaultFillColor,Lt.strokeWidth=0,Lt.fillPanel=new Pt("Color",jt.defaultColorSet,jt.defaultFillColor),Lt.fillPanel.onColorChanged=Lt.setFillColor,Lt}return Nt(xt,Bt),Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Bt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="CoverMarker",xt.title="Cover marker",xt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',xt}(Ut),Zn=function(Bt){function xt(mt,kt,jt,Lt){var he=Bt.call(this,mt,Lt||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return he.opacities=[],he.opacityBoxes=[],he.opacities=kt,he.currentOpacity=jt,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return Nt(xt,Bt),xt.prototype.getUi=function(){var mt=this,kt=document.createElement("div");return kt.style.display="flex",kt.style.overflow="hidden",kt.style.flexGrow="2",kt.style.justifyContent="space-between",this.opacities.forEach(function(jt){var Lt=document.createElement("div");Lt.style.display="flex",Lt.style.alignItems="center",Lt.style.justifyContent="center",Lt.style.padding="5px",Lt.style.borderWidth="2px",Lt.style.borderStyle="solid",Lt.style.borderColor=jt===mt.currentOpacity?mt.uiStyleSettings.toolboxAccentColor:"transparent",Lt.addEventListener("click",function(){mt.setCurrentOpacity(jt,Lt)}),kt.appendChild(Lt);var he=document.createElement("div");he.innerText=100*jt+"%",Lt.appendChild(he),mt.opacityBoxes.push(Lt)}),kt},xt.prototype.setCurrentOpacity=function(mt,kt){var jt=this;this.currentOpacity=mt,this.opacityBoxes.forEach(function(Lt){Lt.style.borderColor=Lt===kt?jt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},xt}(vt),_n=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.setOpacity=Lt.setOpacity.bind(Lt),Lt.fillColor=jt.defaultHighlightColor,Lt.strokeWidth=0,Lt.opacity=jt.defaultHighlightOpacity,Lt.fillPanel=new Pt("Color",jt.defaultColorSet,Lt.fillColor),Lt.fillPanel.onColorChanged=Lt.setFillColor,Lt.opacityPanel=new Zn("Opacity",jt.defaultOpacitySteps,Lt.opacity),Lt.opacityPanel.onOpacityChanged=Lt.setOpacity,Lt}return Nt(xt,Bt),xt.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&xe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Bt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="HighlightMarker",xt.title="Highlight marker",xt.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>',xt}(nn),Te='<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>',rn='<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>',gn=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.bgColor="transparent",Lt.tipPosition={x:0,y:0},Lt.tipBase1Position={x:0,y:0},Lt.tipBase2Position={x:0,y:0},Lt.tipMoving=!1,Lt.color=jt.defaultStrokeColor,Lt.bgColor=jt.defaultFillColor,Lt.fontFamily=jt.defaultFontFamily,Lt.defaultSize={x:100,y:30},Lt.setBgColor=Lt.setBgColor.bind(Lt),Lt.getTipPoints=Lt.getTipPoints.bind(Lt),Lt.positionTip=Lt.positionTip.bind(Lt),Lt.setTipPoints=Lt.setTipPoints.bind(Lt),Lt.colorPanel=new Pt("Text color",jt.defaultColorSet,Lt.color,Te),Lt.colorPanel.onColorChanged=Lt.setColor,Lt.bgColorPanel=new Pt("Fill color",jt.defaultColorSet,Lt.bgColor,rn),Lt.bgColorPanel.onColorChanged=Lt.setBgColor,Lt.fontFamilyPanel=new We("Font",jt.defaultFontFamilies,jt.defaultFontFamily),Lt.fontFamilyPanel.onFontChanged=Lt.setFont,Lt.tipGrip=new Ot,Lt.tipGrip.visual.transform.baseVal.appendItem(xe.createTransform()),Lt.controlBox.appendChild(Lt.tipGrip.visual),Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){return Bt.prototype.ownsTarget.call(this,mt)||this.tipGrip.ownsTarget(mt)||this.tip===mt},xt.prototype.createTip=function(){xe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=xe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},xt.prototype.pointerDown=function(mt,kt){this.state==="new"&&Bt.prototype.pointerDown.call(this,mt,kt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(kt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Bt.prototype.pointerDown.call(this,mt,kt)},xt.prototype.pointerUp=function(mt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Bt.prototype.pointerUp.call(this,mt);else{var kt=this.state==="creating";Bt.prototype.pointerUp.call(this,mt),this.setTipPoints(kt),this.positionTip()}},xt.prototype.manipulate=function(mt){if(this.tipMoving){var kt=this.unrotatePoint(mt);this.tipPosition={x:kt.x-this.manipulationStartLeft,y:kt.y-this.manipulationStartTop},this.positionTip()}else Bt.prototype.manipulate.call(this,mt)},xt.prototype.setBgColor=function(mt){this.bgRectangle&&this.tip&&(xe.setAttributes(this.bgRectangle,[["fill",mt]]),xe.setAttributes(this.tip,[["fill",mt]])),this.bgColor=mt,this.fillColorChanged(mt)},xt.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},xt.prototype.setTipPoints=function(mt){mt===void 0&&(mt=!1);var kt=Math.min(this.height/2,15),jt=this.height/5;mt&&(this.tipPosition={x:kt+jt/2,y:this.height+20});var Lt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Lt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(jt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:kt,y:0},this.tipBase2Position={x:kt+jt,y:0}):(this.tipBase1Position={x:0,y:kt},this.tipBase2Position={x:0,y:kt+jt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Lt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(jt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-kt-jt,y:0},this.tipBase2Position={x:this.width-kt,y:0}):(this.tipBase1Position={x:this.width,y:kt},this.tipBase2Position={x:this.width,y:kt+jt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Lt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(jt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-kt-jt,y:this.height},this.tipBase2Position={x:this.width-kt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-kt-jt},this.tipBase2Position={x:this.width,y:this.height-kt}):Lt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(jt=this.width/5,kt=Math.min(this.width/2,15),this.tipBase1Position={x:kt,y:this.height},this.tipBase2Position={x:kt+jt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-kt},this.tipBase2Position={x:0,y:this.height-kt-jt})},xt.prototype.resize=function(mt){Bt.prototype.resize.call(this,mt),this.positionTip()},xt.prototype.positionTip=function(){xe.setAttributes(this.tip,[["points",this.getTipPoints()]]);var mt=this.tipGrip.visual.transform.baseVal.getItem(0);mt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(mt,0)},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xt.prototype.select=function(){this.positionTip(),Bt.prototype.select.call(this)},xt.prototype.getState=function(){var mt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Bt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){var kt=mt;this.bgColor=kt.bgColor,this.tipPosition=kt.tipPosition,Bt.prototype.restoreState.call(this,mt),this.createTip(),this.setTipPoints()},xt.prototype.scale=function(mt,kt){Bt.prototype.scale.call(this,mt,kt),this.tipPosition={x:this.tipPosition.x*mt,y:this.tipPosition.y*kt},this.positionTip()},xt.typeName="CalloutMarker",xt.title="Callout marker",xt.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>',xt}(_e),Vn=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.fillColor="transparent",Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.opacity=1,Lt.strokeColor=jt.defaultColor,Lt.strokeWidth=jt.defaultStrokeWidth,Lt.strokeDasharray=jt.defaultStrokeDasharray,Lt.fillColor=jt.defaultFillColor,Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setFillColor=Lt.setFillColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.setOpacity=Lt.setOpacity.bind(Lt),Lt.createVisual=Lt.createVisual.bind(Lt),Lt.strokePanel=new Pt("Line color",ne(jt.defaultColorSet,["transparent"]),jt.defaultColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.fillPanel=new Pt("Fill color",ne(jt.defaultColorSet,["transparent"]),Lt.fillColor,rn),Lt.fillPanel.onColorChanged=Lt.setFillColor,Lt.strokeWidthPanel=new fe("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new Yt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt.opacityPanel=new Zn("Opacity",jt.defaultOpacitySteps,Lt.opacity),Lt.opacityPanel.onOpacityChanged=Lt.setOpacity,Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){return!(!Bt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},xt.prototype.createVisual=function(){this.visual=xe.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)},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.manipulate=function(mt){Bt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){Bt.prototype.resize.call(this,mt),this.setSize()},xt.prototype.setSize=function(){Bt.prototype.setSize.call(this),xe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},xt.prototype.pointerUp=function(mt){Bt.prototype.pointerUp.call(this,mt),this.setSize()},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&xe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},xt.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&xe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&xe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&xe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xt.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&xe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Bt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){var kt=mt;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.opacity=kt.opacity,this.createVisual(),Bt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,kt){Bt.prototype.scale.call(this,mt,kt),this.setSize()},xt.typeName="EllipseMarker",xt.title="Ellipse marker",xt.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>',xt}(Zt),cn=function(Bt){function xt(mt,kt,jt){return Bt.call(this,mt,kt,jt)||this}return Nt(xt,Bt),Object.defineProperty(xt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),xt.prototype.ownsTarget=function(mt){return!(!Bt.prototype.ownsTarget.call(this,mt)&&mt!==this.tip1&&mt!==this.tip2)},xt.prototype.createTips=function(){this.tip1=xe.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(xe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=xe.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(xe.createTransform()),this.visual.appendChild(this.tip2)},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.state==="creating"&&this.createTips()},xt.prototype.adjustVisual=function(){if(Bt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(xe.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()]]),xe.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 mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),kt=this.tip1.transform.baseVal.getItem(0);kt.setRotate(mt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(kt,0);var jt=this.tip2.transform.baseVal.getItem(0);jt.setRotate(mt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(jt,0)}},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Bt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Bt.prototype.restoreState.call(this,mt),this.createTips(),this.adjustVisual()},xt.typeName="MeasurementMarker",xt.title="Measurement marker",xt.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>',xt}(Ve),Hn=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.strokePanel.colors=jt.defaultColorSet,Lt.fillColor="transparent",Lt}return Nt(xt,Bt),Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Bt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="EllipseFrameMarker",xt.title="Ellipse frame marker",xt.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>',xt}(Vn),me=function(){function Bt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Bt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Bt.prototype.addUndoStep=function(xt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(xt)||(this.undoStack.push(xt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(xt)&&this.redoStack.splice(0,this.redoStack.length))},Bt.prototype.replaceLastUndoStep=function(xt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=xt)},Bt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Bt.prototype.undo=function(){if(this.undoStack.length>1){var xt=this.undoStack.pop();return xt!==void 0&&this.redoStack.push(xt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Bt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Bt}(),Un=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.curveX=0,Lt.curveY=0,Lt.manipulationStartCurveX=0,Lt.manipulationStartCurveY=0,Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.positionGrips=Lt.positionGrips.bind(Lt),Lt.addControlGrips=Lt.addControlGrips.bind(Lt),Lt.adjustVisual=Lt.adjustVisual.bind(Lt),Lt.setupControlBox=Lt.setupControlBox.bind(Lt),Lt.resize=Lt.resize.bind(Lt),Lt.strokeColor=jt.defaultColor,Lt.strokeWidth=jt.defaultStrokeWidth,Lt.strokeDasharray=jt.defaultStrokeDasharray,Lt.strokePanel=new Pt("Line color",jt.defaultColorSet,jt.defaultColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.strokeWidthPanel=new fe("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new Yt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){return!(!Bt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorCurve&&mt!==this.visibleCurve&&!this.curveGrip.ownsTarget(mt))},xt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},xt.prototype.createVisual=function(){this.visual=xe.createGroup(),this.selectorCurve=xe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=xe.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)},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=mt.x,this.curveY=mt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(kt)&&(this.activeGrip=this.curveGrip,this._state="resize")},xt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),xe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),xe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),xe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xt.prototype.setupControlBox=function(){Bt.prototype.setupControlBox.call(this),this.curveControlLine1=xe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=xe.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)},xt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Bt.prototype.addControlGrips.call(this)},xt.prototype.positionGrips=function(){Bt.prototype.positionGrips.call(this);var mt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-mt/2,this.curveY-mt/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()))},xt.prototype.manipulate=function(mt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+mt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+mt.y-this.manipulationStartY),Bt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){this.activeGrip===this.curveGrip&&(this.curveX=mt.x,this.curveY=mt.y),Bt.prototype.resize.call(this,mt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual()},xt.prototype.scale=function(mt,kt){this.curveX=this.curveX*mt,this.curveY=this.curveY*kt,Bt.prototype.scale.call(this,mt,kt)},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Bt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Bt.prototype.restoreState.call(this,mt);var kt=mt;this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.curveX=kt.curveX,this.curveY=kt.curveY,this.createVisual(),this.adjustVisual()},xt.typeName="CurveMarker",xt.title="Curve marker",xt.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>',xt}(tn),ii=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,kt,jt)||this;return Lt.fillColor="transparent",Lt.strokeColor="transparent",Lt.strokeWidth=0,Lt.strokeDasharray="",Lt.textColor="transparent",Lt.fontSize="1rem",Lt.isMoved=!1,Lt.captionText="Caption",Lt.PADDING=5,Lt.captionBoxWidth=0,Lt.captionBoxHeight=0,Lt.strokeColor=jt.defaultColor,Lt.strokeWidth=jt.defaultStrokeWidth,Lt.strokeDasharray=jt.defaultStrokeDasharray,Lt.fillColor=jt.defaultFillColor,Lt.textColor=jt.defaultStrokeColor,Lt.fontFamily=jt.defaultFontFamily,Lt.fontSize=jt.defaultCaptionFontSize,Lt.captionText=jt.defaultCaptionText,Lt.setStrokeColor=Lt.setStrokeColor.bind(Lt),Lt.setFillColor=Lt.setFillColor.bind(Lt),Lt.setStrokeWidth=Lt.setStrokeWidth.bind(Lt),Lt.setStrokeDasharray=Lt.setStrokeDasharray.bind(Lt),Lt.createVisual=Lt.createVisual.bind(Lt),Lt.sizeCaption=Lt.sizeCaption.bind(Lt),Lt.setCaptionText=Lt.setCaptionText.bind(Lt),Lt.showTextEditor=Lt.showTextEditor.bind(Lt),Lt.positionTextEditor=Lt.positionTextEditor.bind(Lt),Lt.finishTextEditing=Lt.finishTextEditing.bind(Lt),Lt.setFont=Lt.setFont.bind(Lt),Lt.setTextColor=Lt.setTextColor.bind(Lt),Lt.strokePanel=new Pt("Line color",ne(jt.defaultColorSet,["transparent"]),Lt.strokeColor),Lt.strokePanel.onColorChanged=Lt.setStrokeColor,Lt.fillPanel=new Pt("Fill color",ne(jt.defaultColorSet,["transparent"]),Lt.fillColor,rn),Lt.fillPanel.onColorChanged=Lt.setFillColor,Lt.strokeWidthPanel=new fe("Line width",jt.defaultStrokeWidths,jt.defaultStrokeWidth),Lt.strokeWidthPanel.onWidthChanged=Lt.setStrokeWidth,Lt.strokeStylePanel=new Yt("Line style",jt.defaultStrokeDasharrays,jt.defaultStrokeDasharray),Lt.strokeStylePanel.onStyleChanged=Lt.setStrokeDasharray,Lt.fontFamilyPanel=new We("Font",jt.defaultFontFamilies,jt.defaultFontFamily),Lt.fontFamilyPanel.onFontChanged=Lt.setFont,Lt.textColorPanel=new Pt("Text color",jt.defaultColorSet,Lt.textColor,Te),Lt.textColorPanel.onColorChanged=Lt.setTextColor,Lt}return Nt(xt,Bt),xt.prototype.ownsTarget=function(mt){return!(!Bt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.frame&&mt!==this.captionBg&&mt!==this.captionElement)},xt.prototype.createVisual=function(){this.visual=xe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=xe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=xe.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=xe.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()},xt.prototype.setCaptionText=function(mt){this.captionText=mt,this.captionElement.textContent=this.captionText,this.sizeCaption()},xt.prototype.pointerDown=function(mt,kt){Bt.prototype.pointerDown.call(this,mt,kt),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.manipulate=function(mt){Bt.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},xt.prototype.resize=function(mt){Bt.prototype.resize.call(this,mt),this.setSize()},xt.prototype.sizeCaption=function(){var mt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=mt.width+2*this.PADDING,this.captionBoxHeight=mt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),xe.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')"]]),xe.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')"]])},xt.prototype.showTextEditor=function(){var mt=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(kt){kt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(kt){kt.key==="Enter"&&mt.finishTextEditing(mt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(kt){kt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},xt.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"))},xt.prototype.finishTextEditing=function(mt){this.setCaptionText(mt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},xt.prototype.setFont=function(mt){this.captionElement&&xe.setAttributes(this.captionElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},xt.prototype.setTextColor=function(mt){this.captionElement&&xe.setAttributes(this.captionElement,[["fill",mt]]),this.textColor=mt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},xt.prototype.setSize=function(){Bt.prototype.setSize.call(this),xe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},xt.prototype.pointerUp=function(mt){Bt.prototype.pointerUp.call(this,mt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},xt.prototype.dblClick=function(mt,kt){Bt.prototype.dblClick.call(this,mt,kt),this.showTextEditor()},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.frame&&xe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},xt.prototype.setFillColor=function(mt){this.fillColor=mt,this.captionBg&&xe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.frame&&xe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.frame&&xe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=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},Bt.prototype.getState.call(this));return mt.typeName=this.typeName,mt},xt.prototype.restoreState=function(mt){var kt=mt;this.fillColor=kt.fillColor,this.strokeColor=kt.strokeColor,this.strokeWidth=kt.strokeWidth,this.strokeDasharray=kt.strokeDasharray,this.textColor=kt.textColor,this.fontFamily=kt.fontFamily,this.captionText=kt.captionText,this.fontSize=kt.fontSize,this.createVisual(),Bt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,kt){Bt.prototype.scale.call(this,mt,kt),this.setSize()},xt.typeName="CaptionFrameMarker",xt.title="Caption frame marker",xt.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>',xt}(Zt),xn=function(){function Bt(xt,mt){mt===void 0&&(mt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=xt,this.cancelable=mt}return Object.defineProperty(Bt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Bt.prototype.preventDefault=function(){this._defaultPrevented=!0},Bt}(),ni=function(Bt){function xt(mt,kt,jt){var Lt=Bt.call(this,mt,!1)||this;return Lt.dataUrl=kt,Lt.state=jt,Lt}return Nt(xt,Bt),xt}(xn),ze=function(Bt){function xt(mt,kt,jt){jt===void 0&&(jt=!1);var Lt=Bt.call(this,mt,jt)||this;return Lt.marker=kt,Lt}return Nt(xt,Bt),xt}(xn),Ie=function(){function Bt(){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 Bt.prototype.addEventListener=function(xt,mt){this[xt].push(mt)},Bt.prototype.removeEventListener=function(xt,mt){var kt=this[xt].indexOf(mt);kt>-1&&this[xt].splice(kt,1)},Bt}(),ke=function(){function Bt(xt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new pe,this._isOpen=!1,this.undoRedoManager=new me,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 Ie,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Bt.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=xt,this.targetRoot=document.body,this.width=xt.clientWidth,this.height=xt.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(Bt.prototype,"ALL_MARKER_TYPES",{get:function(){return[Xe,Tn,Gt,_e,Hn,Vn,_n,gn,cn,nn,Ve,Un,ii]},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Xe,Tn,Gt,_e,Vn,_n,gn]},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Xe,Tn,Gt,_e,_n]},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(xt){var mt=this;this._availableMarkerTypes.splice(0),xt.forEach(function(kt){if(typeof kt=="string"){var jt=mt.ALL_MARKER_TYPES.find(function(Lt){return Lt.typeName===kt});jt!==void 0&&mt._availableMarkerTypes.push(jt)}else mt._availableMarkerTypes.push(kt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Bt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(xt){this._zoomLevel=xt,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(Bt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Bt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),we.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Bt.prototype.show=function(){var xt=this;this.styles.styleSheetRoot===void 0&&Tt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Tt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(mt){return mt(new xn(xt))})},Bt.prototype.render=function(){return Ne(this,void 0,void 0,function(){var xt;return Pe(this,function(mt){switch(mt.label){case 0:return this.setCurrentMarker(),(xt=new Ce).naturalSize=this.renderAtNaturalSize,xt.imageType=this.renderImageType,xt.imageQuality=this.renderImageQuality,xt.markersOnly=this.renderMarkersOnly,xt.width=this.renderWidth,xt.height=this.renderHeight,[4,xt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return mt.sent(),[4,xt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,mt.sent()]}})})},Bt.prototype.close=function(xt){var mt=this;if(xt===void 0&&(xt=!1),this.isOpen){var kt=!1;xt||this.eventListeners.beforeclose.forEach(function(jt){var Lt=new xn(mt,!0);jt(Lt),Lt.defaultPrevented&&(kt=!0)}),kt||(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(jt){return jt(new xn(mt))}),this.detachEvents(),this._isOpen=!1)}},Bt.prototype.addMarkersToToolbar=function(){for(var xt,mt=[],kt=0;kt<arguments.length;kt++)mt[kt]=arguments[kt];(xt=this._availableMarkerTypes).push.apply(xt,mt)},Bt.prototype.addRenderEventListener=function(xt){this.addEventListener("render",function(mt){xt(mt.dataUrl,mt.state)})},Bt.prototype.removeRenderEventListener=function(xt){},Bt.prototype.addCloseEventListener=function(xt){this.addEventListener("close",function(){xt()})},Bt.prototype.removeCloseEventListener=function(xt){},Bt.prototype.setupResizeObserver=function(){var xt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){xt.resize(xt.target.clientWidth,xt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return xt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Bt.prototype.onPopupTargetResize=function(){var xt=1*this.target.clientWidth/this.target.clientHeight,mt=this.editorCanvas.clientWidth/xt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*xt:this.editorCanvas.clientWidth,kt=mt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/xt;this.resize(mt,kt)},Bt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Bt.prototype.resize=function(xt,mt){this._isResizing=!0;var kt=xt/this.imageWidth,jt=mt/this.imageHeight;this.imageWidth=Math.round(xt),this.imageHeight=Math.round(mt),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(kt,jt),this._isResizing=!1},Bt.prototype.scaleMarkers=function(xt,mt){var kt,jt=this;this._currentMarker&&this._currentMarker instanceof _e?this._currentMarker.scale(xt,mt):(kt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Lt){Lt!==jt._currentMarker&&Lt.scale(xt,mt)}),kt!==void 0&&this.setCurrentMarker(kt)},Bt.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"},Bt.prototype.setTopLeft=function(){var xt=this.editingTarget.getBoundingClientRect(),mt=this.editorCanvas.getBoundingClientRect();this.left=xt.left-mt.left,this.top=xt.top-mt.top},Bt.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)},Bt.prototype.addDefs=function(){for(var xt,mt=[],kt=0;kt<arguments.length;kt++)mt[kt]=arguments[kt];this.defs=xe.createDefs(),this.addDefsToImage(),(xt=this.defs).append.apply(xt,mt)},Bt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Bt.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)},Bt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Bt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Bt.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)},Bt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Bt.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)},Bt.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 xt=document.createElement("a");xt.href="https://markerjs.com/",xt.target="_blank",xt.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>',xt.title="Powered by marker.js",xt.style.display="grid",xt.style.alignItems="center",xt.style.justifyItems="center",xt.style.padding="3px",xt.style.width="20px",xt.style.height="20px",this.logoUI.appendChild(xt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Bt.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")},Bt.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"},Bt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Bt.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 xt=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=xt+"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 st(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 gt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Bt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Bt.prototype.removeMarker=function(xt){this.markerImage.removeChild(xt.container),this.markers.indexOf(xt)>-1&&this.markers.splice(this.markers.indexOf(xt),1),xt.dispose()},Bt.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())},Bt.prototype.toolbarButtonClicked=function(xt,mt){if(xt==="marker"&&mt!==void 0)this.createNewMarker(mt);else if(xt==="action")switch(mt){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()}},Bt.prototype.deleteSelectedMarker=function(){var xt=this;if(this._currentMarker!==void 0){var mt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(jt){var Lt=new ze(xt,xt._currentMarker,!0);jt(Lt),Lt.defaultPrevented&&(mt=!0)}),!mt){var kt=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(jt){return jt(new ze(xt,kt))})}}},Bt.prototype.clear=function(){var xt=this,mt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var Re=new ze(xt,void 0,!0);he(Re),Re.defaultPrevented&&(mt=!0)}),!mt)){this.setCurrentMarker();for(var kt=function(he){var Re=jt.markers[he];jt.setCurrentMarker(jt.markers[he]),jt._currentMarker.dispose(),jt.markerImage.removeChild(jt._currentMarker.container),jt.markers.splice(jt.markers.indexOf(jt._currentMarker),1),jt.eventListeners.markerdelete.forEach(function(on){return on(new ze(xt,Re))})},jt=this,Lt=this.markers.length-1;Lt>=0;Lt--)kt(Lt);this.addUndoStep()}},Object.defineProperty(Bt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Bt.prototype.showNotesEditor=function(){var xt;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=(xt=this._currentMarker.notes)!==null&&xt!==void 0?xt:"",this.overlayContainer.appendChild(this.notesArea))},Bt.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)},Bt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Bt.prototype.addUndoStep=function(){var xt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var mt=this.getState(),kt=this.undoRedoManager.getLastUndoStep();if(!kt||kt.width===mt.width&&kt.height===mt.height){var jt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(mt),jt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Lt){return Lt(new xn(xt))})}else this.undoRedoManager.replaceLastUndoStep(mt),this.eventListeners.statechange.forEach(function(Lt){return Lt(new xn(xt))})}},Bt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Bt.prototype.undoStep=function(){var xt=this,mt=this.undoRedoManager.undo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(kt){return kt(new xn(xt))}))},Bt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Bt.prototype.redoStep=function(){var xt=this,mt=this.undoRedoManager.redo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(kt){return kt(new xn(xt))}))},Bt.prototype.stepZoom=function(){var xt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=xt<this.zoomSteps.length-1?this.zoomSteps[xt+1]:this.zoomSteps[0]},Bt.prototype.panTo=function(xt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-xt.x,top:this.prevPanPoint.y-xt.y}),this.prevPanPoint=xt},Bt.prototype.startRenderAndClose=function(){return Ne(this,void 0,void 0,function(){var xt,mt,kt=this;return Pe(this,function(jt){switch(jt.label){case 0:return[4,this.render()];case 1:return xt=jt.sent(),mt=this.getState(),this.eventListeners.render.forEach(function(Lt){return Lt(new ni(kt,xt,mt))}),this.close(!0),[2]}})})},Bt.prototype.getState=function(xt){xt===!0&&this.setCurrentMarker();var mt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(kt){return mt.markers.push(kt.getState())}),mt},Bt.prototype.restoreState=function(xt){var mt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);xt.markers.forEach(function(kt){var jt=mt._availableMarkerTypes.find(function(he){return he.typeName===kt.typeName});if(jt!==void 0){var Lt=mt.addNewMarker(jt);Lt.restoreState(kt),mt.markers.push(Lt)}}),xt.width&&xt.height&&(xt.width!==this.imageWidth||xt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/xt.width,this.imageHeight/xt.height),this.eventListeners.restorestate.forEach(function(kt){return kt(new xn(mt))})},Bt.prototype.addNewMarker=function(xt){var mt=xe.createGroup();return this.markerImage.appendChild(mt),new xt(mt,this.overlayContainer,this.settings)},Bt.prototype.createNewMarker=function(xt){var mt,kt=this;(mt=typeof xt=="string"?this._availableMarkerTypes.find(function(jt){return jt.typeName===xt}):xt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(mt),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(mt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(jt){return jt(new ze(kt,kt._currentMarker))}))},Bt.prototype.markerCreated=function(xt){var mt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(xt),this.setCurrentMarker(xt),xt instanceof Tn&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Tn):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(kt){return kt(new ze(mt,mt._currentMarker))})},Bt.prototype.colorChanged=function(xt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=xt,this.settings.defaultStrokeColor=xt)},Bt.prototype.fillColorChanged=function(xt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=xt)},Bt.prototype.markerStateChanged=function(xt){var mt=this;this.eventListeners.markerchange.forEach(function(kt){return kt(new ze(mt,xt))})},Bt.prototype.setCurrentMarker=function(xt){var mt=this;this._currentMarker!==xt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(kt){return kt(new ze(mt,mt._currentMarker))})),this._currentMarker=xt,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(kt){return kt(new ze(mt,mt._currentMarker))}))},Bt.prototype.onPointerDown=function(xt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||xt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var mt=this.markers.find(function(kt){return kt.ownsTarget(xt.target)});mt!==void 0?(this.setCurrentMarker(mt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xt.clientX,xt.clientY),xt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:xt.clientX,y:xt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xt.clientX,xt.clientY))},Bt.prototype.onDblClick=function(xt){if(this._isFocused||this.focus(),this.mode==="select"){var mt=this.markers.find(function(kt){return kt.ownsTarget(xt.target)});mt!==void 0&&mt!==this._currentMarker&&this.setCurrentMarker(mt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(xt.clientX,xt.clientY),xt.target):this.setCurrentMarker()}},Bt.prototype.onPointerMove=function(xt){this.touchPoints!==1&&xt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||xt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(xt.clientX,xt.clientY)):this.zoomLevel>1&&this.panTo({x:xt.clientX,y:xt.clientY}))},Bt.prototype.onPointerUp=function(xt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(xt.clientX,xt.clientY)),this.isDragging=!1,this.addUndoStep()},Bt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Bt.prototype.onKeyUp=function(xt){this._currentMarker===void 0||this.notesArea!==void 0||xt.key!=="Delete"&&xt.key!=="Backspace"||this.deleteSelectedMarker()},Bt.prototype.clientToLocalCoordinates=function(xt,mt){var kt=this.markerImage.getBoundingClientRect();return{x:(xt-kt.left)/this.zoomLevel,y:(mt-kt.top)/this.zoomLevel}},Bt.prototype.onWindowResize=function(){this.positionUI()},Bt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var xt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=xt+"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()},Bt.prototype.addLicenseKey=function(xt){we.addKey(xt)},Bt.prototype.addEventListener=function(xt,mt){this.eventListeners.addEventListener(xt,mt)},Bt.prototype.removeEventListener=function(xt,mt){this.eventListeners.removeEventListener(xt,mt)},Bt.prototype.renderState=function(xt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(xt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Bt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Bt.prototype.focus=function(){var xt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(mt){return mt(new xn(xt))}))},Bt.prototype.blur=function(){var xt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(mt){return mt(new xn(xt))}))},Bt.instanceCounter=0,Bt}(),se=St(99064),$e=St(955),Ze=(Bt,xt,mt)=>new Promise((kt,jt)=>{var Lt=on=>{try{Re(mt.next(on))}catch(de){jt(de)}},he=on=>{try{Re(mt.throw(on))}catch(de){jt(de)}},Re=on=>on.done?kt(on.value):Promise.resolve(on.value).then(Lt,he);Re((mt=mt.apply(Bt,xt)).next())}),re=({data:Bt,className:xt,fullWidth:mt,style:kt={},onClose:jt,onOk:Lt,showFullTools:he,noAssociationId:Re})=>{const on=(0,At.useRef)(null),de=(0,At.useRef)(null),De=(0,At.useRef)(null),Ke=(0,At.useRef)(null),[An,Yn]=(0,At.useState)(!1),[gi,fi]=(0,At.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,At.useEffect)(()=>(De.current||(De.current=document.createElement("style"),document.head.appendChild(De.current)),Bt!=null&&Bt.visible?(document.body.setAttribute("data-custom","y-hidden"),De.current.innerHTML=" html { overflow-y: hidden; }",Bt!=null&&Bt.src&&xi()):(document.body.removeAttribute("data-custom"),De.current&&(document.head.removeChild(De.current),De.current=null)),()=>{document.body.removeAttribute("data-custom"),De.current&&(document.head.removeChild(De.current),De.current=null)}),[Bt==null?void 0:Bt.visible]);const xi=()=>Ze(void 0,null,function*(){Yn(!0),fi("\u6B63\u5728\u52A0\u8F7D\u4E2D");const rr=yield(0,$e.ZJ)(Bt==null?void 0:Bt.src);on.current.src="",on.current.src=rr,on.current.onload=function(){lr()},Yn(!1),fi("")}),Gi=rr=>Ze(void 0,null,function*(){Yn(!0),fi("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Rr=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Bt.title,file:rr.dataUrl}});Rr!=null&&Rr.id&&!Re?(yield(0,se.ZP)(`/api/attachments/${Bt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Rr==null?void 0:Rr.id,settings:JSON.stringify(rr.state)}})).status===0&&Lt():Rr!=null&&Rr.id&&Lt(Rr),Yn(!1),fi("")}),yr=()=>{const rr=document.querySelector('a[href="https://markerjs.com/"]');rr&&rr.parentNode&&(rr.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(Nr=>{const Ji=document.querySelector(Nr.name);Ji&&Ji.setAttribute("title",Nr.title)})},lr=()=>{de.current=new ke(on.current),de.current.targetRoot=Ke.current,de.current.addEventListener("render",Gi),de.current.addEventListener("beforeclose",jt),he&&(de.current.availableMarkerTypes=de.current.ALL_MARKER_TYPES,de.current.uiStyleSettings.redoButtonVisible=!0,de.current.uiStyleSettings.notesButtonVisible=!0,de.current.uiStyleSettings.zoomButtonVisible=!0,de.current.uiStyleSettings.zoomOutButtonVisible=!0,de.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=de.current.uiStyleSettings,de.current.show(),Bt!=null&&Bt.snapshotData&&de.current.restoreState(Bt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),yr()},300)};return At.createElement(At.Fragment,null,(Bt==null?void 0:Bt.visible)&&At.createElement(Xt.Z,{spinning:An,tip:gi,style:{position:"absolute",width:"100vw"}},At.createElement("div",{ref:Ke,className:Me()(zt.imageDimensions,xt,mt?zt.fullWidth:""),style:kt},At.createElement("img",{className:zt.img,ref:on}))))}},41588:function(Bn,Cn,St){"use strict";var At=St(59301),zt=St(95237),oe=St(43604),Me=St(99313),Xt=St(3113),Se=St(85149),Nt=St(88010),Ne=St(48136),Pe=St(59301);const ne=(0,At.forwardRef)(({callback:xe,showSaveButton:we,value:Ce=""},Tt)=>{const et=(0,At.useRef)(),nt=[{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 "}]}]}],ht=[{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}`}]}]}],st=Pt=>{et.current.setValue(et.current.getValue()+" "+Pt.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(zt.Z,{className:Nt.Z.lists,gutter:[10,10]},nt.map((Pt,Ft)=>Pe.createElement(oe.Z,{flex:"110px",className:Nt.Z.item},Pe.createElement("div",null,Pe.createElement(Se.Z,{value:`$$${Pt.value}$$`}),Pt.name),Pe.createElement("div",{className:Nt.Z.children},Pt.children.map((wt,Ot)=>Pe.createElement("div",{key:Ot},Pe.createElement("h1",null,wt.name),Pe.createElement(zt.Z,{gutter:[10,10]},wt.data.map((Ht,Zt)=>Pe.createElement(oe.Z,{key:Zt,onClick:()=>st(Ht),className:Nt.Z.diamond},Pe.createElement(Se.Z,{value:"`$$"+Ht.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(zt.Z,{className:Nt.Z.lists,gutter:[10,10]},ht.map((Pt,Ft)=>Pe.createElement(oe.Z,{flex:"110px",className:Nt.Z.item},Pe.createElement("div",null,Pe.createElement(Se.Z,{value:"`$$"+Pt.value+"$$`"}),Pt.name),Pe.createElement("div",{className:Nt.Z.children},Pt.children.map((wt,Ot)=>Pe.createElement("div",{key:Ot},wt.name&&Pe.createElement("h1",null,wt.name),Pe.createElement(zt.Z,{gutter:[10,10]},wt.data.map((Ht,Zt)=>Pe.createElement(oe.Z,{key:Zt,onClick:()=>st(Ht),className:Nt.Z.diamond},Pe.createElement(Se.Z,{value:"`$$"+Ht.value+"$$`"}))))))))))}],vt=()=>{var Pt=document.createElement("div");Pt.innerHTML=et.current.getValue();var Ft=Pt.innerText;return xe&&xe(Ft),Ft};return(0,At.useImperativeHandle)(Tt,()=>({getData:vt})),Pe.createElement("div",{className:Nt.Z.mathWrap},Pe.createElement(Me.default,{defaultActiveKey:"1",items:gt}),Pe.createElement("math-field",{locale:"zh_cn",className:Nt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Ce||""),we&&Pe.createElement("div",{className:Nt.Z.button},Pe.createElement(Xt.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Cn.Z=ne},8797:function(Bn,Cn,St){"use strict";var At=St(59301),zt=St(93314),oe=St(3113),Me=Object.defineProperty,Xt=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,ne=(Tt,et,nt)=>et in Tt?Me(Tt,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Tt[et]=nt,xe=(Tt,et)=>{for(var nt in et||(et={}))Ne.call(et,nt)&&ne(Tt,nt,et[nt]);if(Nt)for(var nt of Nt(et))Pe.call(et,nt)&&ne(Tt,nt,et[nt]);return Tt},we=(Tt,et)=>Xt(Tt,Se(et));const Ce=({img:Tt,buttonProps:et={},styles:nt={},customText:ht,ButtonText:st,ButtonClick:gt,Buttonclass:vt,ButtonTwo:Pt,imgStyles:Ft,loading:wt=!1,className:Ot=""})=>At.createElement("section",{className:`tc animated fadeIn ${Ot}`,style:xe({color:"#999",margin:"100px auto",visibility:wt?"hidden":"visible"},nt)},At.createElement("img",{src:Tt||zt,style:we(xe({},Ft),{pointerEvents:"none",userSelect:"none"})}),At.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),st&&At.createElement(oe.ZP,xe({className:vt,onClick:gt},et),st),Pt&&Pt);Cn.Z=Ce},40731:function(Bn,Cn,St){"use strict";St.d(Cn,{Q:function(){return Se}});var At=St(59301),zt=St(57809),oe=St(5112),Me=St(5871),Xt=St(59301),Se=(Ne=>(Ne[Ne.Number=1]="Number",Ne[Ne.Percent=2]="Percent",Ne))(Se||{});const Nt=({value:Ne,onChange:Pe,disabled:ne,hidePercentOption:xe=!1,percentType:we="select"})=>{const Ce=(0,At.useMemo)(()=>xe?1:2,[xe]),[Tt,et]=(0,At.useState)(Ce);console.log(Tt);const nt=st=>Ne.type===1?`${st}\u5206`:`${st}%`,ht=(0,At.useCallback)(st=>{if(Tt===1){const gt=st.replace("\u5206","");return isNaN(parseInt(gt,10))?0:gt}else return st.replace("%","")},[Tt]);return(0,At.useEffect)(()=>{et(Ne.type)},[Ne]),Xt.createElement("div",{style:{display:"flex",alignItems:"center"}},we=="select"&&Xt.createElement(zt.default,{size:"large",onChange:st=>{et(st),Pe({type:st,inputValue:st===1?5:20})},value:Tt||Ce,style:{width:100},options:xe?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:ne}),we=="radio"&&Xt.createElement(oe.ZP.Group,{size:"large",onChange:st=>{const gt=st.target.value;et(gt),Pe({type:gt,inputValue:gt===1?5:20})},value:Tt||Ce,disabled:ne},!xe&&Xt.createElement(oe.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Xt.createElement(oe.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),we=="radio"&&Xt.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Ne.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Xt.createElement(Me.Z,{size:"large",disabled:ne,value:Ne.inputValue,style:{width:"120px"},parser:ht,addonAfter:Ne.type===1?"\u5206":"%",max:Tt===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:st=>{Pe({type:Tt,inputValue:st})}}),we=="radio"&&Ne.type==2&&Xt.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Cn.Z=Nt},23210:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return vt}});var At=St(59301),zt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=St(3113),Me=St(70557),Xt=St(23954),Se=St(6848),Nt=St(955),Ne=St(94941),Pe=St(8797),ne=St(3294),xe=St(19381),we=St(59301),Ce=Object.defineProperty,Tt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(Pt,Ft,wt)=>Ft in Pt?Ce(Pt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:wt}):Pt[Ft]=wt,st=(Pt,Ft)=>{for(var wt in Ft||(Ft={}))et.call(Ft,wt)&&ht(Pt,wt,Ft[wt]);if(Tt)for(var wt of Tt(Ft))nt.call(Ft,wt)&&ht(Pt,wt,Ft[wt]);return Pt},gt=(Pt,Ft,wt)=>new Promise((Ot,Ht)=>{var Zt=Yt=>{try{fe(wt.next(Yt))}catch(Xe){Ht(Xe)}},Ut=Yt=>{try{fe(wt.throw(Yt))}catch(Xe){Ht(Xe)}},fe=Yt=>Yt.done?Ot(Yt.value):Promise.resolve(Yt.value).then(Zt,Ut);fe((wt=wt.apply(Pt,Ft)).next())}),vt=({editOffice:Pt="view",data:Ft,theme:wt,type:Ot,filename:Ht,monacoEditor:Zt,className:Ut,style:fe,close:Yt,onClose:Xe,hasMask:pe,disabledDownload:tn,onImgDimensions:Ve,showNodata:We,recordInfo:_e})=>{const[Tn,ye]=(0,At.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Gt,nn]=(0,At.useState)(""),[Zn,_n]=(0,At.useState)(),Te=window.ENV==="build"?"/react/build":"",rn=location.host.startsWith("localhost")?ne.Z.PROXY_SERVER:ne.Z.API_SERVER,Vn=10*(1024*1024),cn=(0,At.useRef)();Ft!=null&&Ft.startsWith("/api")&&Ot!=="txt"&&(Ft=ne.Z.API_SERVER+Ft);const Hn=xn=>xn.substring(xn.lastIndexOf("/")+1).split(".").pop();Ht&&Zt&&(Zt.filename=Ht),(0,At.useEffect)(()=>{var xn,ni;const ze=(ni=(xn=document.cookie)==null?void 0:xn.replace(/\s/g,""))==null?void 0:ni.split(";");ze==null||ze.map(Ie=>{let ke=Ie.split("=");ke[0]==="_educoder_session"&&nn(ke[1])})},[]),(0,At.useEffect)(()=>{Ot==="office"&&(Ft.indexOf("bigfilescdn.")>-1||Ft.indexOf("bigfiles1")>-1?_n({url:Ft,fileType:Hn(Ft),model:Ft.indexOf("model=edit")?"edit":"view"}):me())},[Ot,Ft]);const me=()=>gt(void 0,null,function*(){console.log("data:",Ft);let xn=Ft;Ft.startsWith("http")||(xn=location.origin+xn);let ni=new URL(xn).pathname.split("/").pop();const ze=yield(0,Ne.gJ)({attachment_id:ni});ze.url=rn+ze.url,_n(ze)}),Un=()=>{if(Ft.startsWith("http")||Ft.startsWith("blob:")){ii();return}(0,Nt.Sv)(Ht||"educoder",Ft,Ht)},ii=()=>{_e&&(0,xe.fc)({id:_e==null?void 0:_e.id,watch_type:1,course_id:_e==null?void 0:_e.course_id}),(0,Nt.Nd)(Ht||"educoder",decodeURIComponent(Ft))};return we.createElement("div",{style:st({},fe||{}),className:`${pe&&zt.bgBlack} ${Ot?zt.wrp:"hide"}`},Yt&&we.createElement("div",{className:zt.close,ref:cn},!!Ve&&we.createElement(Se.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>cn.current},we.createElement("span",{onClick:()=>{Xe(),Ve()}},we.createElement("i",{className:"icon-yulanpizhu"}))),!tn&&we.createElement(Se.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>cn.current},we.createElement("span",{onClick:ii},we.createElement("i",{className:"icon-quxiaozhiding"}))),we.createElement(Se.Z,{title:"\u5173\u95ED",getPopupContainer:()=>cn.current},we.createElement("span",{className:"",onClick:Xe},we.createElement("i",{className:"icon-guanbi1"})))),we.createElement("div",{className:`${zt[Ut]} ${Ut} ${zt.monaco} ${Ot==="txt"?"show":"hide"}`},Ot==="txt"&&we.createElement(we.Fragment,null,we.createElement(Xt.ZP,st({},Zt)))),Ot==="audio"&&we.createElement("audio",{src:`${(Ft==null?void 0:Ft.indexOf("http://"))>-1||(Ft==null?void 0:Ft.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ft}`,autoPlay:!0}),Ot==="video"&&we.createElement(we.Fragment,null,(Ft==null?void 0:Ft.indexOf("http"))>-1?we.createElement("video",{controls:!0,src:`${Ft}`,autoPlay:!0}):we.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ft}`,autoPlay:!0})),Ot==="office"&&Zn&&we.createElement("iframe",{src:`${Te}/office.html?key=${Zn.key}&url=${btoa(Zn.url)}&callbackUrl=${rn+(Zn.callbackUrl||"")}&fileType=${Zn.fileType}&title=${Zn.title||""}&model=${Pt}&officeServer=${ne.Z.ONLYOFFICE}&disabledDownload=${!!tn}`}),Ot==="html"&&we.createElement("iframe",{src:Ft+"&disposition=inline"}),Ot==="pdf"&&we.createElement("iframe",{src:`${Te}/js/pdfview/index.html?filename=${Ht||"educoder.pdf"}&url=${encodeURIComponent(Ft)}&disabledDownload=${!!tn}`}),Ot==="image"&&we.createElement("img",{src:`${(Ft==null?void 0:Ft.indexOf("http://"))>-1||(Ft==null?void 0:Ft.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ft}`}),(Ot==="other"||Ot==="download")&&we.createElement(we.Fragment,null,We?we.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:we.createElement(oe.ZP,{icon:we.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Un,disabled:tn},"\u4E0B\u8F7D")}):we.createElement(oe.ZP,{type:"primary",size:"middle",onClick:Un,disabled:tn},we.createElement(Me.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Bn,Cn,St){"use strict";St.d(Cn,{z:function(){return Ot},Z:function(){return Ht}});var At=St(59301),zt=St(50304),oe=St(24768),Me=St(64018),Xt=St(40846),Se=St(3294),Nt=St(955),Ne=St(15342),Pe=St(1012),ne=St(23210),xe=St(59301),Ce=({html:Zt})=>{const Ut=(0,At.useRef)(null),fe=(0,At.useRef)(null),Yt=`.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,At.useEffect)(()=>{const Xe=Ut.current.attachShadow({mode:"open"});fe.current=document.createElement("div"),fe.current.className="markdown-body",fe.current.innerHTML=Zt,Xe.appendChild(fe.current);const pe=document.createElement("style");return pe.textContent=Yt,Xe.appendChild(pe),()=>{Xe.innerHTML=""}},[]),(0,At.useEffect)(()=>{fe.current&&(fe.current.innerHTML=Zt)},[Zt]),xe.createElement("div",{ref:Ut})},Tt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,st=(Zt,Ut,fe)=>Ut in Zt?Tt(Zt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Zt[Ut]=fe,gt=(Zt,Ut)=>{for(var fe in Ut||(Ut={}))nt.call(Ut,fe)&&st(Zt,fe,Ut[fe]);if(et)for(var fe of et(Ut))ht.call(Ut,fe)&&st(Zt,fe,Ut[fe]);return Zt};const vt="@\u2581\u2581@",Pt="@\u2581@",Ft=/<pre[^>]*>/g;function wt(Zt){let Ut=document.createElement("div");return Ut.innerHTML=Zt,Ut.childNodes.length===0?"":Ut.childNodes[0].nodeValue}const Ot=(Zt,Ut)=>{Zt=Zt||"";const fe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Yt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Xe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,pe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ut?Zt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(fe,(tn,Ve,We,_e,Tn,ye,Gt)=>{const nn=Ve||_e||ye,Zn=We||Tn||Gt||"?";return Se.Z.API_SERVER+"/api/attachments/"+nn+Zn+"&t="+(0,Nt.Jn)(nn,Date.now())+(tn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Zt=Zt.replace(pe,(tn,Ve,We,_e,Tn,ye,Gt)=>{const nn=Ve||_e||ye,Zn=We||Tn||Gt||"?";return Se.Z.API_SERVER+"/attachments/download/"+nn+Zn+"&t="+(0,Nt.Jn)(nn,Date.now())+(tn.indexOf(")")>-1?")":"&")}).replace(fe,(tn,Ve,We,_e,Tn,ye,Gt)=>{const nn=Ve||_e||ye,Zn=We||Tn||Gt||"?";return Se.Z.API_SERVER+"/api/attachments/"+nn+Zn+"&t="+(0,Nt.Jn)(nn,Date.now())+(tn.indexOf(")")>-1?")":"&")}).replace(Yt,(tn,Ve,We,_e,Tn)=>{const ye=Ve||_e,Gt=We||Tn||"";return'"'+Se.Z.API_SERVER+"/api/attachments/"+ye+Gt+ye+Gt+"&t="+(0,Nt.Jn)(ye,Date.now())}).replace(Xe,(tn,Ve,We,_e,Tn)=>{const ye=Ve||_e,Gt=We||Tn||"";return"("+Se.Z.API_SERVER+"/files/uploads/"+ye+Gt+ye+Gt+"&t="+(0,Nt.Jn)(ye,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,`
`),Zt)};var Ht=({value:Zt="",className:Ut,showTextOnly:fe,showLines:Yt,style:Xe={},stylesPrev:pe={},highlightKeywords:tn,showProgramFill:Ve,isProgramFill:We,disabledFill:_e=!1,programFillValue:Tn,onFillChange:ye=Zn=>{},onFillBlur:Gt=()=>{},onFillFocus:nn=()=>{}})=>{let Zn=String(Zt);const[_n,Te]=(0,At.useState)(""),[rn,gn]=(0,At.useState)("office"),[Vn,cn]=(0,At.useState)([]),Hn=(0,At.useRef)("a"+(0,Pe.Z)()),me={},Un=(Bt,xt,mt)=>{const kt=document.createElement(Bt===Pt?"input":"textarea");kt.style.width="100%",kt.style.height=Bt===Pt?"40px":"151px",kt.rows=5,kt.spellcheck=!1,kt.name="edu-program-fill",kt.placeholder="\u8BF7\u8F93\u5165",kt.dataset.id=xt;const jt=Object.keys(me).length;return me[jt]=kt,`<span class="edu-program-fill-wrap ${Bt===Pt?"":"show"}" style="width:${Bt===Pt?"400px":"100%"}" title=${mt||""}><span>${kt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ii(Bt){return Bt=Bt.replace(/!\[.*?\]\(.*?\)/g,""),Bt=Bt.replace(/\[.*?\]\(.*?\)/g,""),Bt=Bt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Bt=Bt.replace(/<embed.*?>/g,""),Bt=Bt.replace(/<img.*?>/g,""),Bt=Bt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Bt=Bt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Bt=Bt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Bt=Bt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Bt}const xn=Bt=>Bt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(xt,mt){let kt=mt.replace(/(\n|\r)/g,"").split("}"),jt=[];return kt.map(Lt=>{Lt!=""&&jt.push(`.${Hn.current} ${Lt}`)}),`<style>${jt.join("}")}</style>`}),ni=(0,At.useMemo)(()=>{try{const kt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,jt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Lt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,he=/\(\/attachments\/download\//g;Zn=Zn.replace(he,"("+Se.Z.API_SERVER+"/attachments/download/").replace(kt,"("+Se.Z.API_SERVER+"/api/attachments/").replace(jt,'"'+Se.Z.API_SERVER+"/api/attachments/").replace(Lt,'"'+Se.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(kt){}if(Ve){let kt=-1;return Zn=Zn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(jt,Lt,he){var Re;return++kt,Un(jt,kt,(Re=Tn==null?void 0:Tn[kt])==null?void 0:Re.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${xn(Zn||"")}</pre>`}let Bt=xn(Zn);Bt=(0,oe.ZP)(Bt);const xt=(0,oe.ez)();Zn.match(/\[TOC\]/)&&(Bt=Bt.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),Bt=Bt.replace(/(__special_katext_id_\d+__)/g,(kt,jt)=>{const{type:Lt,expression:he}=xt[jt];return(0,Ne.renderToString)(wt(he)||"",{displayMode:Lt==="block",throwOnError:!1,output:"html"})}),Bt=Bt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const mt=document.createElement("div");if(mt.innerHTML=Bt,fe)return mt.innerText;if(tn){const kt=tn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return se(mt,kt),mt.innerHTML}return setTimeout(()=>ee(),500),mt.innerHTML},[Zn,tn]);(0,At.useEffect)(()=>{$e.current&&$e.current.querySelectorAll(["input","textarea"]).forEach(xt=>{xt.oninput=ze,xt.onblur=Ie,xt.onfocus=ke})},[Vn]),(0,At.useEffect)(()=>{var Bt,xt,mt,kt,jt;if(Tn!=null&&Tn.length)try{const Lt=$e.current.querySelectorAll(".edu-program-fill-score"),he=$e.current.querySelectorAll('[name="edu-program-fill"]');for(const[Re,on]of he.entries())on.value=((Bt=Tn==null?void 0:Tn[Re])==null?void 0:Bt.value)||"",((xt=Tn==null?void 0:Tn[Re])==null?void 0:xt.type)==="warning"?on.className="program-fill-warning":((mt=Tn==null?void 0:Tn[Re])==null?void 0:mt.type)==="success"?on.className="program-fill-success":on.className="";for(const[Re,on]of Lt.entries())on.innerHTML=(kt=Tn==null?void 0:Tn[Re])!=null&&kt.score?`${(jt=Tn==null?void 0:Tn[Re])==null?void 0:jt.score}\u5206`:"";cn(Tn)}catch(Lt){console.log(Lt,"error")}},[Tn]);const ze=Bt=>{Vn[Bt.target.dataset.id]=Vn[Bt.target.dataset.id]||{},Vn[Bt.target.dataset.id].value=Bt.target.value,cn([...Vn]),ye(Vn,Bt.target.dataset.id)},Ie=Bt=>{Vn[Bt.target.dataset.id]=Vn[Bt.target.dataset.id]||{},Vn[Bt.target.dataset.id].value=Bt.target.value,cn([...Vn]),Gt(Vn,Bt.target.dataset.id)},ke=Bt=>{Vn[Bt.target.dataset.id]=Vn[Bt.target.dataset.id]||{},Vn[Bt.target.dataset.id].value=Bt.target.value,cn([...Vn]),nn(Vn,Bt.target.dataset.id)};function se(Bt,xt){return Bt.childNodes.forEach(mt=>{var kt;if(mt.childNodes.length>0)se(mt,xt);else if(mt.nodeName!=="IMG")if(mt.innerHTML)mt.innerHTML=(kt=mt.innerHTML)==null?void 0:kt.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const jt=document.createElement("span");jt.innerHTML=mt.textContent.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),mt.replaceWith(jt)}})}const $e=(0,At.useRef)();oe.jb.WebkitLineClamp=Yt,Yt&&(Xe=gt(gt({},Xe),oe.jb));function Ze(Bt){let xt=Bt.target;if(xt.tagName.toUpperCase()==="A"){let mt=xt.getAttribute("href");if(mt.indexOf("office")>-1)Bt.preventDefault(),Te(mt),gn("office");else if(mt.indexOf("application/pdf")>-1)Bt.preventDefault(),Te(mt),gn("pdf");else if(mt.indexOf("text/html")>-1)Bt.preventDefault(),Te(mt),gn("html");else if(mt.startsWith("#")){Bt.preventDefault();let kt=document.getElementById(mt.replace("#",""));kt&&kt.scrollIntoView(!0)}}}const ee=()=>{var Bt;const xt=(Bt=$e.current)==null?void 0:Bt.querySelectorAll("video");xt==null||xt.forEach(mt=>{if(mt.oncontextmenu=()=>!1,mt.src.indexOf(".m3u8")>-1&&!mt.canPlayType("application/vnd.apple.mpegurl")){if(Xt.ZP.isSupported()){var kt=new Xt.ZP;kt.loadSource(mt.src),kt.attachMedia(mt)}}})};(0,At.useEffect)(()=>{if($e.current&&ni&&ni.match(Ft)&&window.PR.prettyPrint(),$e.current)return $e.current.addEventListener("click",Ze),()=>{var Bt;(Bt=$e.current)==null||Bt.removeEventListener("click",Ze),(0,oe.AL)(),(0,oe.Iy)()}},[ni,$e.current,Ze]),(0,At.useEffect)(()=>{var Bt;const xt=mt=>{mt.preventDefault(),mt.clipboardData.setData("text",window.getSelection().toString())};return(Bt=$e.current)==null||Bt.addEventListener("copy",xt),()=>{var mt;(mt=$e.current)==null||mt.removeEventListener("copy",xt)}},[$e.current]);const re=Bt=>/<style[\s\S]*?>/i.test(Bt||"");return At.createElement(At.Fragment,null,fe&&At.createElement("div",{ref:$e},ni),!fe&&!re(ni)&&At.createElement("div",{ref:$e,style:gt({},Xe),className:`${Ut||""} ${_e?"disabled-fill":""} markdown-body ${Hn.current}`,dangerouslySetInnerHTML:{__html:ni}}),!fe&&re(ni)&&At.createElement(Ce,{html:ni}),At.createElement(ne.Z,{close:!0,data:_n,type:_n!=null&&_n.length?rn:"",style:gt({},pe),onClose:()=>Te("")}))}},82438:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(59301),zt={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},oe=St(43418),Me="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Xt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Se=(Pe,ne,xe)=>new Promise((we,Ce)=>{var Tt=ht=>{try{nt(xe.next(ht))}catch(st){Ce(st)}},et=ht=>{try{nt(xe.throw(ht))}catch(st){Ce(st)}},nt=ht=>ht.done?we(ht.value):Promise.resolve(ht.value).then(Tt,et);nt((xe=xe.apply(Pe,ne)).next())}),Ne=({type:Pe,resdata:ne,onok:xe,oktext:we,okloading:Ce})=>{const[Tt,et]=(0,At.useState)(!1),{can_copy_list:nt,can_copy_num:ht,challenge_type:st,course_data_list:gt,no_copy_list:vt,no_copy_num:Pt,no_use_list:Ft,no_use_num:wt,repeat_shixun_num:Ot,student_count:Ht,total_num:Zt,use_num:Ut}=ne;let fe=ht>0||Pe==="exercise";(0,At.useEffect)(()=>{(ne==null?void 0:ne.student_count)>0&&et(!0)},[ne]),console.log("---11",Ce),(0,At.useEffect)(()=>{Ce||et(!1)},[Ce]);const Yt=()=>{if(Pe==="exercise"&&st===1)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},Ht),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},Ut),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Pe==="exercise"&&st===2)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},Ht),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},Ut),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="shixun"&&st===1)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},Ht),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="shixun"&&st===2)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},Ht),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="subject"&&st===1)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},Ht),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},Ut),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="subject"&&st===2)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",At.createElement("span",{className:zt.orangeColor},Ht)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",At.createElement("span",{className:zt.orangeColor},Ut)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="exercisepush")return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},Ht),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},Ut),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Pe==="shixunpush"&&st===1)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},Ht),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",At.createElement("span",{className:zt.orangeColor},Ut),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Pe==="shixunpush"&&st===2)return At.createElement(At.Fragment,null,"\u8BFE\u5802\u5185\u6709",At.createElement("span",{className:zt.orangeColor},Ht),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",At.createElement("span",{className:zt.orangeColor},Ut),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",At.createElement("span",{className:zt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Xe=()=>{if(Pe==="exercise"||Pe==="subject"||Pe==="exercisepush"||Pe==="shixunpush")return At.createElement("div",{style:{marginTop:20}},Pt>0&&At.createElement("div",null,At.createElement("span",{className:zt.flex},At.createElement("img",{src:Xt,style:{width:14}}),At.createElement("span",{className:zt.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),At.createElement("div",{className:zt.statusbody},Pe==="exercise"&&At.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",At.createElement("span",{className:zt.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Pe==="subject"||Pe==="exercisepush")&&At.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",fe&&At.createElement("span",{className:zt.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Pe==="shixunpush"&&At.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",fe&&At.createElement("span",{className:zt.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),At.createElement("div",null,vt==null?void 0:vt.map((pe,tn)=>At.createElement("a",{href:`/shixuns/${pe.identifier}/challenges`,target:"_blank"},"\u300A",pe==null?void 0:pe.name,"\u300B",tn+1!==Pt&&"\u3001"))))),ht>0&&At.createElement("div",{style:{marginTop:20}},At.createElement("span",{className:zt.flex},At.createElement("img",{src:Me,style:{width:14}}),At.createElement("span",{className:zt.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),At.createElement("div",{className:zt.statusbody},Pe==="exercise"&&At.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Pe==="subject"||Pe==="exercisepush")&&At.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Pe==="shixunpush"&&At.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),At.createElement("div",null,nt==null?void 0:nt.map((pe,tn)=>At.createElement("a",{href:`/shixuns/${pe.identifier}/challenges`,target:"_blank"},"\u300A",pe==null?void 0:pe.name,"\u300B",tn+1!==ht&&"\u3001"))))));if(Pe==="shixun")return At.createElement("div",{style:{marginTop:20}},ht>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return At.createElement(oe.default,{open:Tt,onCancel:()=>{et(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!fe&&"none"}},zIndex:1003,confirmLoading:Ce,okText:fe?we:"\u6211\u77E5\u9053\u4E86",onOk:()=>Se(void 0,null,function*(){fe?yield xe([...nt,...Ft]):et(!1)})},At.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Yt(),Xe()))}},53932:function(Bn,Cn,St){"use strict";St.d(Cn,{h:function(){return Pt},Z:function(){return vt}});var At=St(59301),zt=St(57809),oe=St(78241),Me=St(3113),Xt=St(89780),Se=St.n(Xt),Nt=St(37036),Ne=Object.defineProperty,Pe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Tt=(Ft,wt,Ot)=>wt in Ft?Ne(Ft,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Ft[wt]=Ot,et=(Ft,wt)=>{for(var Ot in wt||(wt={}))we.call(wt,Ot)&&Tt(Ft,Ot,wt[Ot]);if(xe)for(var Ot of xe(wt))Ce.call(wt,Ot)&&Tt(Ft,Ot,wt[Ot]);return Ft},nt=(Ft,wt)=>Pe(Ft,ne(wt));const ht=zt.default.Option,st={labelCol:{span:4},wrapperCol:{span:20}},gt={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 vt=({callback:Ft,onCancel:wt})=>{const[Ot,Ht]=(0,At.useState)("python");function Zt(fe){Ht(gt[fe][1])}function Ut(fe){Ft(fe)}return At.createElement(oe.default,nt(et({},st),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ut,style:{width:500}}),At.createElement(oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},At.createElement(zt.default,{getPopupContainer:fe=>fe.parentNode,onChange:Zt},Object.keys(gt).map(fe=>At.createElement(ht,{key:fe,value:fe},gt[fe][0])))),At.createElement(oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},At.createElement(Pt,{mode:Ot})),At.createElement("div",{className:"flex-container flex-end"},At.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),At.createElement(Me.ZP,{type:"ghost",onClick:wt},"\u53D6\u6D88")))};function Pt({value:Ft,onChange:wt,mode:Ot,options:Ht={}}){const Zt=(0,At.useRef)(),[Ut,fe]=(0,At.useState)();return(0,At.useEffect)(()=>{if(Ut){let Yt=function(Xe){const pe=Xe.getValue();wt&&wt(pe)};return Ut.on("change",Yt),()=>{Ut.off("change",Yt)}}},[Ut,wt]),(0,At.useEffect)(()=>{Ut&&Ut.setOption("mode",Ot)},[Ut,Ot]),(0,At.useEffect)(()=>{Ut&&(Ft!==Ut.getValue()||Ft==="")&&setTimeout(()=>{Ut.setValue(Ft||"")},300)},[Ut,Ft]),(0,At.useEffect)(()=>{if(Zt.current&&!Ut){const Yt=Se().fromTextArea(Zt.current,et({mode:Ot,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ht));fe(Yt)}},[Zt.current,Ut]),At.createElement("div",{className:"my-codemirror-container"},At.createElement("textarea",{ref:Zt}))}},12290:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return xo}});var At=St(59301),zt=St(89780),oe=St.n(zt),Me=St(76374),Xt=St(37036),Se=St(6313),Nt=St(25717),Ne=St(99498),Pe=St(25419),ne=St(67549),xe=St(85149),we=({value:an="",className:Qe,showTextOnly:Jt,showLines:un,style:On={}})=>{const Ee=(0,At.useMemo)(()=>"",[an]);return At.createElement(At.Fragment,null,At.createElement("div",{dangerouslySetInnerHTML:{__html:Ee}}))},Ce=St(59301),Tt=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,vt=(an,Qe,Jt)=>Qe in an?Tt(an,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):an[Qe]=Jt,Pt=(an,Qe)=>{for(var Jt in Qe||(Qe={}))st.call(Qe,Jt)&&vt(an,Jt,Qe[Jt]);if(ht)for(var Jt of ht(Qe))gt.call(Qe,Jt)&&vt(an,Jt,Qe[Jt]);return an},Ft=(an,Qe)=>et(an,nt(Qe));let wt=[{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 Ot({onActionCallback:an,title:Qe,icon:Jt,actionName:un,className:On="",children:Ee}){function ce(){an(un)}return Ce.createElement("a",{title:Qe,className:On,onClick:ce},Ce.createElement("i",{className:`${Jt}`}),Ee)}var Ht=({watch:an,showNullButton:Qe,showNullProgramButton:Jt,onActionCallback:un,fullScreen:On,insertTemp:Ee,hidetoolBar:ce,extraUse:mn})=>{const Wn=[...wt,{title:`${an?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${an?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ce.createElement("ul",{className:"markdown-toolbar-container"},!ce&&Wn.map((Mi,pi)=>Ce.createElement("li",{key:pi},Mi.actionName?Ce.createElement(Ot,Ft(Pt({},Mi),{onActionCallback:un})):Ce.createElement("span",{className:"v-line"}))),Qe?Ce.createElement("li",null,Ce.createElement(Ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:un},Ce.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Jt?Ce.createElement(Ce.Fragment,null,Ce.createElement("li",null,Ce.createElement(Ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:un},Ce.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ce.createElement("li",null,Ce.createElement(Ot,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:un},Ce.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ee&&Ce.createElement("li",null,Ce.createElement(Ot,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ee}`,onActionCallback:un},Ce.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),mn&&Ce.createElement("li",null,mn),Ce.createElement("li",{className:"btn-full-screen"},Ce.createElement(Ot,{icon:`${On?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:On?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:un})))},Zt=St(79346),Ut=St(78241),fe=St(92832),Yt=St(3113),Xe=Object.defineProperty,pe=Object.defineProperties,tn=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Tn=(an,Qe,Jt)=>Qe in an?Xe(an,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):an[Qe]=Jt,ye=(an,Qe)=>{for(var Jt in Qe||(Qe={}))We.call(Qe,Jt)&&Tn(an,Jt,Qe[Jt]);if(Ve)for(var Jt of Ve(Qe))_e.call(Qe,Jt)&&Tn(an,Jt,Qe[Jt]);return an},Gt=(an,Qe)=>pe(an,tn(Qe));const nn={labelCol:{span:4},wrapperCol:{span:20}};var Zn=({callback:an,onCancel:Qe})=>{function Jt(un){an(un)}return At.createElement(Ut.default,Gt(ye({},nn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Jt,style:{width:500}}),At.createElement(Ut.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},At.createElement(fe.default,null)),At.createElement(Ut.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},At.createElement(fe.default,null)),At.createElement("div",{className:"flex-container flex-end"},At.createElement(Yt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),At.createElement(Yt.ZP,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},_n=St(53932),Te=St(28451),rn=St(43418),gn=St(95237),Vn=St(16406),cn=St(59301),Hn=({callback:an,onCancel:Qe})=>{const Jt=document.createElement("canvas"),un=Jt.getContext("2d");Jt.width=1e3,Jt.height=800,un.fillStyle="#ffffff",un.fillRect(0,0,Jt.width,Jt.height);const On=Jt.toDataURL("image/png");return cn.createElement(rn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},cn.createElement(gn.Z,{style:{height:"100vh"}},cn.createElement(Vn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:On,visible:!0,title:String(Date.now())},onOk:Ee=>{an({src:Ee.url})},onClose:Qe})))},me=St(12378);function Un(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Un,go.CommandHandler),Un.prototype.canAlignSelection=function(){var an=this.diagram;return!(an===null||an.isReadOnly||an.isModelReadOnly||an.selection.count<2)},Un.prototype.alignLeft=function(){var an=this.diagram;an.startTransaction("aligning left");var Qe=1/0;an.selection.each(function(Jt){Jt instanceof go.Link||(Qe=Math.min(Jt.position.x,Qe))}),an.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(Qe,Jt.position.y))}),an.commitTransaction("aligning left")},Un.prototype.alignRight=function(){var an=this.diagram;an.startTransaction("aligning right");var Qe=-1/0;an.selection.each(function(Jt){if(!(Jt instanceof go.Link)){var un=Jt.actualBounds.x+Jt.actualBounds.width;Qe=Math.max(un,Qe)}}),an.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(Qe-Jt.actualBounds.width,Jt.position.y))}),an.commitTransaction("aligning right")},Un.prototype.alignTop=function(){var an=this.diagram;an.startTransaction("alignTop");var Qe=1/0;an.selection.each(function(Jt){Jt instanceof go.Link||(Qe=Math.min(Jt.position.y,Qe))}),an.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(Jt.position.x,Qe))}),an.commitTransaction("alignTop")},Un.prototype.alignBottom=function(){var an=this.diagram;an.startTransaction("aligning bottom");var Qe=-1/0;an.selection.each(function(Jt){if(!(Jt instanceof go.Link)){var un=Jt.actualBounds.y+Jt.actualBounds.height;Qe=Math.max(un,Qe)}}),an.selection.each(function(Jt){Jt instanceof go.Link||Jt.move(new go.Point(Jt.actualBounds.x,Qe-Jt.actualBounds.height))}),an.commitTransaction("aligning bottom")},Un.prototype.alignCenterX=function(){var an=this.diagram,Qe=an.selection.first();if(Qe){an.startTransaction("aligning Center X");var Jt=Qe.actualBounds.x+Qe.actualBounds.width/2;an.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(Jt-un.actualBounds.width/2,un.actualBounds.y))}),an.commitTransaction("aligning Center X")}},Un.prototype.alignCenterY=function(){var an=this.diagram,Qe=an.selection.first();if(Qe){an.startTransaction("aligning Center Y");var Jt=Qe.actualBounds.y+Qe.actualBounds.height/2;an.selection.each(function(un){un instanceof go.Link||un.move(new go.Point(un.actualBounds.x,Jt-un.actualBounds.height/2))}),an.commitTransaction("aligning Center Y")}},Un.prototype.alignColumn=function(an){var Qe=this.diagram;Qe.startTransaction("align Column"),an===void 0&&(an=0),an=parseFloat(an);var Jt=new Array;Qe.selection.each(function(mn){mn instanceof go.Link||Jt.push(mn)});for(var un=0;un<Jt.length-1;un++){var On=Jt[un],Ee=On.actualBounds.y+On.actualBounds.height+an,ce=Jt[un+1];ce.move(new go.Point(On.actualBounds.x,Ee))}Qe.commitTransaction("align Column")},Un.prototype.alignRow=function(an){an===void 0&&(an=0),an=parseFloat(an);var Qe=this.diagram;Qe.startTransaction("align Row");var Jt=new Array;Qe.selection.each(function(mn){mn instanceof go.Link||Jt.push(mn)});for(var un=0;un<Jt.length-1;un++){var On=Jt[un],Ee=On.actualBounds.x+On.actualBounds.width+an,ce=Jt[un+1];ce.move(new go.Point(Ee,On.actualBounds.y))}Qe.commitTransaction("align Row")},Un.prototype.canRotate=function(an){var Qe=this.diagram;return!(Qe===null||Qe.isReadOnly||Qe.isModelReadOnly||Qe.selection.count<1)},Un.prototype.rotate=function(an){an===void 0&&(an=90);var Qe=this.diagram;Qe.startTransaction("rotate "+an.toString());var Qe=this.diagram;Qe.selection.each(function(Jt){Jt instanceof go.Link||Jt instanceof go.Group||(Jt.angle+=an)}),Qe.commitTransaction("rotate "+an.toString())},Un.prototype.pullToFront=function(){var an=this.diagram;an.startTransaction("pullToFront");var Qe=new go.Map;an.selection.each(function(Jt){Qe.set(Jt.layer,0)}),Qe.iteratorKeys.each(function(Jt){var un=0;Jt.parts.each(function(On){if(!On.isSelected){var Ee=On.zOrder;isNaN(Ee)?On.zOrder=0:un=Math.max(un,Ee)}}),Qe.set(Jt,un)}),an.selection.each(function(Jt){Un._assignZOrder(Jt,Qe.get(Jt.layer)+1)}),an.commitTransaction("pullToFront")},Un.prototype.pushToBack=function(){var an=this.diagram;an.startTransaction("pushToBack");var Qe=new go.Map;an.selection.each(function(Jt){Qe.set(Jt.layer,0)}),Qe.iteratorKeys.each(function(Jt){var un=0;Jt.parts.each(function(On){if(!On.isSelected){var Ee=On.zOrder;isNaN(Ee)?On.zOrder=0:un=Math.min(un,Ee)}}),Qe.set(Jt,un)}),an.selection.each(function(Jt){Un._assignZOrder(Jt,Qe.get(Jt.layer)-1-Un._findGroupDepth(Jt))}),an.commitTransaction("pushToBack")},Un._assignZOrder=function(an,Qe,Jt){Jt===void 0&&(Jt=an),an.layer===Jt.layer&&(an.zOrder=Qe),an instanceof go.Group&&an.memberParts.each(function(un){Un._assignZOrder(un,Qe+1,Jt)})},Un._findGroupDepth=function(an){if(an instanceof go.Group){var Qe=0;return an.memberParts.each(function(Jt){Qe=Math.max(Qe,Un._findGroupDepth(Jt))}),Qe+1}else return 0},Un.prototype.doKeyDown=function(){var an=this.diagram;if(an!==null){var Qe=an.lastInput;if(Qe.key==="Up"||Qe.key==="Down"||Qe.key==="Left"||Qe.key==="Right"){var Jt=this.arrowKeyBehavior;if(Jt==="none")return;if(Jt==="select"){this._arrowKeySelect();return}else if(Jt==="move"){this._arrowKeyMove();return}else if(Jt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Un.prototype._getAllParts=function(){var an=new Array;return this.diagram.nodes.each(function(Qe){an.push(Qe)}),this.diagram.parts.each(function(Qe){an.push(Qe)}),an},Un.prototype._arrowKeyMove=function(){var an=this.diagram,Qe=an.lastInput,Jt=0,un=0;if(Qe.control||Qe.meta)Jt=1,un=1;else if(an.grid!==null){var On=an.grid.gridCellSize;un=On.width,Jt=On.height}an.startTransaction("arrowKeyMove"),an.selection.each(function(Ee){Qe.key==="Up"?Ee.move(new go.Point(Ee.actualBounds.x,Ee.actualBounds.y-Jt)):Qe.key==="Down"?Ee.move(new go.Point(Ee.actualBounds.x,Ee.actualBounds.y+Jt)):Qe.key==="Left"?Ee.move(new go.Point(Ee.actualBounds.x-un,Ee.actualBounds.y)):Qe.key==="Right"&&Ee.move(new go.Point(Ee.actualBounds.x+un,Ee.actualBounds.y))}),an.commitTransaction("arrowKeyMove")},Un.prototype._arrowKeySelect=function(){var an=this.diagram,Qe=an.lastInput,Jt=null;Qe.key==="Up"?Jt=this._findNearestPartTowards(270):Qe.key==="Down"?Jt=this._findNearestPartTowards(90):Qe.key==="Left"?Jt=this._findNearestPartTowards(180):Qe.key==="Right"&&(Jt=this._findNearestPartTowards(0)),Jt!==null&&(Qe.shift?Jt.isSelected=!0:Qe.control||Qe.meta?Jt.isSelected=!Jt.isSelected:an.select(Jt))},Un.prototype._findNearestPartTowards=function(an){var Qe=this.diagram.selection.first();if(Qe===null)return null;for(var Jt=Qe.actualBounds.center,un=this._getAllParts(),On=1/0,Ee=Qe,ce=0;ce<un.length;ce++){var mn=un[ce];if(mn!==Qe&&mn.canSelect()){var Wn=mn.actualBounds.center,Mi=Jt.directionPoint(Wn),pi=this._angleCloseness(Mi,an);if(pi<=45){var ue=Jt.distanceSquaredPoint(Wn);ue*=1+Math.sin(pi*Math.PI/180),ue<On&&(On=ue,Ee=mn)}}}return Ee},Un.prototype._angleCloseness=function(an,Qe){return Math.min(Math.abs(Qe-an),Math.min(Math.abs(Qe+360-an),Math.abs(Qe-360-an)))},Un.prototype._arrowKeyTree=function(){var an=this.diagram,Qe=an.selection.first();if(Qe instanceof go.Node){var Jt=an.lastInput;if(Jt.key==="Right"){if(!Qe.isTreeLeaf)if(!Qe.isTreeExpanded)an.commandHandler.canExpandTree(Qe)&&an.commandHandler.expandTree(Qe);else{var un=this._sortTreeChildrenByY(Qe).first();un!==null&&an.select(un)}}else if(Jt.key==="Left")if(!Qe.isTreeLeaf&&Qe.isTreeExpanded)an.commandHandler.canCollapseTree(Qe)&&an.commandHandler.collapseTree(Qe);else{var On=Qe.findTreeParentNode();On!==null&&an.select(On)}else if(Jt.key==="Up"){var On=Qe.findTreeParentNode();if(On!==null){var Ee=this._sortTreeChildrenByY(On),ce=Ee.indexOf(Qe);if(ce>0){for(var mn=Ee.elt(ce-1);mn!==null&&mn.isTreeExpanded&&!mn.isTreeLeaf;){var Wn=this._sortTreeChildrenByY(mn);mn=Wn.last()}mn!==null&&an.select(mn)}else an.select(On)}}else if(Jt.key==="Down")if(Qe.isTreeExpanded&&!Qe.isTreeLeaf){var un=this._sortTreeChildrenByY(Qe).first();un!==null&&an.select(un)}else for(;Qe!==null;){var On=Qe.findTreeParentNode();if(On===null)break;var Ee=this._sortTreeChildrenByY(On),ce=Ee.indexOf(Qe);if(ce<Ee.length-1){an.select(Ee.elt(ce+1));break}else Qe=On}var Mi=an.selection.first();Mi!==null&&an.scrollToRect(Mi.actualBounds)}},Un.prototype._sortTreeChildrenByY=function(an){var Qe=new go.List().addAll(an.findTreeChildrenNodes());return Qe.sort(function(Jt,un){var On=Jt.location,Ee=un.location;return On.y<Ee.y?-1:On.y>Ee.y?1:On.x<Ee.x?-1:On.x>Ee.x?1:0}),Qe},Un.prototype.copyToClipboard=function(an){go.CommandHandler.prototype.copyToClipboard.call(this,an),this._lastPasteOffset.set(this.pasteOffset)},Un.prototype.pasteFromClipboard=function(){var an=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(an,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),an},Object.defineProperty(Un.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(an){if(an!=="move"&&an!=="select"&&an!=="scroll"&&an!=="tree"&&an!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+an);this._arrowKeyBehavior=an}}),Object.defineProperty(Un.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(an){if(!(an instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+an);this._pasteOffset.set(an)}});var ii=Un,xn=St(74413),ni=St(43604),ze=St(99064),Ie={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ke=St(24065),se=St(59301),$e=(an,Qe,Jt)=>new Promise((un,On)=>{var Ee=Wn=>{try{mn(Jt.next(Wn))}catch(Mi){On(Mi)}},ce=Wn=>{try{mn(Jt.throw(Wn))}catch(Mi){On(Mi)}},mn=Wn=>Wn.done?un(Wn.value):Promise.resolve(Wn.value).then(Ee,ce);mn((Jt=Jt.apply(an,Qe)).next())});function Ze({onCancel:an,callback:Qe}){let Jt=(0,At.useRef)(),un=(0,At.useRef)(),On=(0,At.useRef)(),Ee=(0,At.useRef)(!1);const ce=(0,At.useRef)(!1),[mn,Wn]=(0,At.useState)(0);function Mi(){const ue=me.bx.make,Nn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Jt.current=new me.S0(un.current,{padding:20,grid:ue(me.s_,"Grid",ue(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ue(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:si=>{var Ai=si.diagram.commandHandler.addTopLevelParts(si.diagram.selection,!0);Ai||si.diagram.currentTool.doCancel()},commandHandler:ue(ii),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:si=>{var Ai=si.subject;Ai.location=Ai.location.copy().snapToGridPoint(si.diagram.grid.gridOrigin,si.diagram.grid.gridCellSize),setTimeout(()=>{si.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:si=>{var Ai=si.subject;setTimeout(()=>{si.diagram.commandHandler.editTextBlock()})},LinkRelinked:si=>{var Ai=si.parameter.part;Ai.invalidateConnectedLinks();var Ki=si.subject;si.diagram.toolManager.linkingTool.isForwards?Ki.toNode.invalidateConnectedLinks():Ki.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Jt.current.nodeTemplate=ue(me.NB,"Auto",{locationSpot:me.z6.Center,locationObjectName:"SHAPE",desiredSize:new me.$u(120,60),minSize:new me.$u(40,40),resizable:!0,resizeCellSize:new me.$u(10,10),rotatable:!0},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),new me.KX("desiredSize","size",me.$u.parse).makeTwoWay(me.$u.stringify),ue(me.bn,{name:"SHAPE",fill:Nn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("figure"),new me.KX("fill"),new me.KX("stroke","borderColor"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ue(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ue(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),Jt.current.nodeTemplate.toolTip=ue("ToolTip",ue(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},ue(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),ue(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function ui(si,Ai){var Ki=(Di,vr)=>{Di.handled=!0,Di.diagram.model.commit(Pr=>{var tr=vr.part.adornedPart,Oi=new me.E9().setRectSpot(tr.actualBounds,si);Oi.subtract(tr.location),Oi.scale(2,2),Oi.x+=Math.sign(Oi.x)*130,Oi.y+=Math.sign(Oi.y)*130,Oi.add(tr.location),Oi.snapToGridPoint(Di.diagram.grid.gridOrigin,Di.diagram.grid.gridCellSize);var Lr=Pr.copyNodeData(tr.data);Pr.setGroupKeyForNodeData(Lr,Pr.getGroupKeyForNodeData(tr.data)),Pr.addNodeData(Lr);var bn={from:tr.key,to:Pr.getKeyForNodeData(Lr)};Pr.addLinkData(bn);var wo=Di.diagram.findNodeForData(Lr);wo.location=Oi,Di.diagram.select(wo),setTimeout(()=>{Di.diagram.commandHandler.editTextBlock()},20)})};return ue(me.bn,{figure:Ai,alignment:si,alignmentFocus:si.opposite(),width:si.equals(me.z6.Top)||si.equals(me.z6.Bottom)?25:18,height:si.equals(me.z6.Top)||si.equals(me.z6.Bottom)?18:25,fill:"orange",stroke:Nn.white,strokeWidth:4,mouseEnter:(Di,vr)=>vr.fill="dodgerblue",mouseLeave:(Di,vr)=>vr.fill="orange",isActionable:!0,click:Ki,contextClick:Ki})}function Hi(si){return ue(me.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Ai,Ki)=>Ki.fill="dodgerblue",mouseLeave:(Ai,Ki)=>Ki.fill="orange",click:(Ai,Ki)=>{Ai.diagram.commandHandler.showContextMenu(Ki.part.adornedPart)}},si||{})}Jt.current.nodeTemplate.selectionAdornmentTemplate=ue(me.uz,"Spot",ue(me.Vm,{padding:10}),ui(me.z6.Top,"TriangleUp"),ui(me.z6.Left,"TriangleLeft"),ui(me.z6.Right,"TriangleRight"),ui(me.z6.Bottom,"TriangleDown"),Hi({alignment:new me.z6(.75,0)}));function Ge(si,Ai){return(Ki,Di)=>{Ki.handled=!0,Ki.diagram.model.commit(vr=>{vr.set(Di.part.adornedPart.data,si,Ai)})}}function pn(si,Ai){return Ai||(Ai="color"),ue(me.bn,{width:16,height:16,stroke:"lightgray",fill:si,margin:1,background:"transparent",mouseEnter:(Ki,Di)=>Di.stroke="dodgerblue",mouseLeave:(Ki,Di)=>Di.stroke="lightgray",click:Ge(Ai,si),contextClick:Ge(Ai,si)})}function je(){return[ue("ContextMenuButton",ue(me.s_,"Horizontal",pn(Nn.white,"fill"),pn(Nn.beige,"fill"),pn(Nn.extralightblue,"fill"),pn(Nn.extralightred,"fill"))),ue("ContextMenuButton",ue(me.s_,"Horizontal",pn(Nn.lightgray,"fill"),pn(Nn.lightgreen,"fill"),pn(Nn.lightblue,"fill"),pn(Nn.lightred,"fill")))]}function hn(){return[ue("ContextMenuButton",ue(me.s_,"Horizontal",pn(Nn.black),pn(Nn.green),pn(Nn.blue),pn(Nn.red))),ue("ContextMenuButton",ue(me.s_,"Horizontal",pn(Nn.white),pn(Nn.magenta),pn(Nn.purple),pn(Nn.orange)))]}function yn(si,Ai){return Ai||(Ai="thickness"),ue(me.bn,"LineH",{width:16,height:16,strokeWidth:si,margin:1,background:"transparent",mouseEnter:(Ki,Di)=>Di.background="dodgerblue",mouseLeave:(Ki,Di)=>Di.background="transparent",click:Ge(Ai,si),contextClick:Ge(Ai,si)})}function dn(si,Ai){return Ai||(Ai="dash"),ue(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:si,margin:1,background:"transparent",mouseEnter:(Ki,Di)=>Di.background="dodgerblue",mouseLeave:(Ki,Di)=>Di.background="transparent",click:Ge(Ai,si),contextClick:Ge(Ai,si)})}function kn(){return[ue("ContextMenuButton",ue(me.s_,"Horizontal",yn(1),yn(2),yn(3),yn(4))),ue("ContextMenuButton",ue(me.s_,"Horizontal",dn(null),dn([2,4]),dn([4,4])))]}function Ln(si,Ai){return Ai||(Ai="figure"),ue(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:si,margin:1,background:"transparent",mouseEnter:(Ki,Di)=>Di.fill="dodgerblue",mouseLeave:(Ki,Di)=>Di.fill="lightgray",click:Ge(Ai,si),contextClick:Ge(Ai,si)})}Jt.current.nodeTemplate.contextMenu=ue("ContextMenu",ue("ContextMenuButton",ue(me.s_,"Horizontal",Ln("Rectangle"),Ln("RoundedRectangle"),Ln("Ellipse"),Ln("Diamond"))),ue("ContextMenuButton",ue(me.s_,"Horizontal",Ln("Parallelogram2"),Ln("ManualOperation"),Ln("Procedure"),Ln("Cylinder1"))),ue("ContextMenuButton",ue(me.s_,"Horizontal",Ln("Terminator"),Ln("CreateRequest"),Ln("Document"),Ln("TriangleDown"))),je(),hn(),kn()),Jt.current.groupTemplate=ue(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(si,Ai)=>{var Ki=Ai.addMembers(Ai.diagram.selection,!0);Ki||Ai.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),ue(me.s_,"Auto",{name:"BODY"},ue(me.bn,{parameter1:10,fill:Nn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("fill"),new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ue(me.Vm,{background:"transparent",margin:20})),ue(me.al,{alignment:me.z6.Top,alignmentFocus:me.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new me.KX("text"),new me.KX("stroke","color"))),Jt.current.groupTemplate.selectionAdornmentTemplate=ue(me.uz,"Spot",ue(me.s_,"Auto",ue(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ue(me.Vm,{margin:1.5})),Hi({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),Jt.current.groupTemplate.contextMenu=ue("ContextMenu",je(),hn(),kn()),Jt.current.linkTemplate=ue(me.rU,{layerName:"Foreground",routing:me.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new me.KX("fromSpot","fromSpot",me.z6.parse),new me.KX("toSpot","toSpot",me.z6.parse),new me.KX("fromShortLength","dir",si=>si>=1?10:0),new me.KX("toShortLength","dir",si=>si>=1?10:0),new me.KX("points").makeTwoWay(),ue(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ue(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,0),segmentOrientation:me.rU.OrientAlong,alignmentFocus:me.z6.Right,figure:"circle",width:10,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",si=>si===1)),ue(me.bn,{segmentIndex:-1,segmentOffset:new me.E9(-10,6),segmentOrientation:me.rU.OrientPlus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",si=>si>=1),new me.KX("width","thickness",si=>7+3*si),new me.KX("height","thickness",si=>7+3*si),new me.KX("segmentOffset","thickness",si=>new me.E9(-15,4+1.5*si))),ue(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,-6),segmentOrientation:me.rU.OrientMinus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",si=>si===2),new me.KX("width","thickness",si=>7+3*si),new me.KX("height","thickness",si=>7+3*si),new me.KX("segmentOffset","thickness",si=>new me.E9(-15,4+1.5*si))),ue(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),Jt.current.linkTemplate.selectionAdornmentTemplate=ue(me.uz,ue(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Kn(2)},new me.KX("pathPattern","thickness",Kn)),Hi({alignmentFocus:new me.z6(0,0,-6,-4)}));function Kn(si){return ue(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(si+4).toString()+" H3"})}function Jn(si){var Ai="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return si===0?Ai="M0 0 M16 16 M0 8 L16 8":si===2&&(Ai="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ue(me.bn,{geometryString:Ai,margin:2,background:"transparent",mouseEnter:(Ki,Di)=>Di.background="dodgerblue",mouseLeave:(Ki,Di)=>Di.background="transparent",click:Ge("dir",si),contextClick:Ge("dir",si)})}function Zi(si){var Ai=(Ki,Di)=>{Ki.handled=!0,Ki.diagram.model.commit(vr=>{var Pr=Di.part.adornedPart;vr.set(Pr.data,si?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(si?Pr.toNode:Pr.fromNode).invalidateConnectedLinks()})};return ue(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ki,Di)=>Di.background="dodgerblue",mouseLeave:(Ki,Di)=>Di.background="transparent",click:Ai,contextClick:Ai})}function en(si,Ai){var Ki=0,Di=me.z6.RightSide;si.equals(me.z6.Top)?(Ki=270,Di=me.z6.TopSide):si.equals(me.z6.Left)?(Ki=180,Di=me.z6.LeftSide):si.equals(me.z6.Bottom)&&(Ki=90,Di=me.z6.BottomSide),Ai||(Ki-=180);var vr=(Pr,tr)=>{Pr.handled=!0,Pr.diagram.model.commit(Oi=>{var Lr=tr.part.adornedPart;Oi.set(Lr.data,Ai?"toSpot":"fromSpot",me.z6.stringify(Di)),(Ai?Lr.toNode:Lr.fromNode).invalidateConnectedLinks()})};return ue(me.bn,{alignment:si,alignmentFocus:si.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ki,background:"transparent",mouseEnter:(Pr,tr)=>tr.background="dodgerblue",mouseLeave:(Pr,tr)=>tr.background="transparent",click:vr,contextClick:vr})}Jt.current.linkTemplate.contextMenu=ue("ContextMenu",hn(),kn(),ue("ContextMenuButton",ue(me.s_,"Horizontal",Jn(0),Jn(1),Jn(2))),ue("ContextMenuButton",ue(me.s_,"Horizontal",ue(me.s_,"Spot",Zi(!1),en(me.z6.Top,!1),en(me.z6.Left,!1),en(me.z6.Right,!1),en(me.z6.Bottom,!1)),ue(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},Zi(!0),en(me.z6.Top,!0),en(me.z6.Left,!0),en(me.z6.Right,!0),en(me.z6.Bottom,!0)))));const qi=`{ "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 Er=["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 nr(si){return console.log("shapeName:",si),Er.indexOf(si)>=0}var sn=new me.YI(On.current,{maxSelectionCount:1,linkTemplate:ue(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:ue(me.uz,"Link",{locationSpot:me.z6.Center},ue(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ue(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),ue(me.bn,{isPanelMain:!0,strokeWidth:2}),ue(me.bn,{toArrow:"Standard",stroke:null})),model:new me.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...me.bn.getFigureGenerators().toArray().map(si=>({text:"\u672A\u547D\u540D",size:"100 100",figure:si.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Jt.current.addDiagramListener("TextEdited",function(si){var Ai;const Ki=si.subject.part;var Di=(Ai=document.activeElement)==null?void 0:Ai.value;typeof Di=="string"&&Di.trim()===""&&Jt.current.model.commit(function(vr){vr.set(Ki.data,"text","\u672A\u547D\u540D"),Jt.current.commandHandler.stopCommand()},"increment")}),sn.nodeTemplate=ue(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),ue(me.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new me.KX("stroke").makeTwoWay(),new me.KX("fill").makeTwoWay(),new me.KX("figure")),ue(me.al,{margin:new me.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new me.$u(16,16),maxSize:new me.$u(10,NaN),textAlign:"center",editable:!0},new me.KX("key").makeTwoWay())),setTimeout(()=>{Jt.current.grid=ue(me.s_,"Grid",ue(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ue(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Jt.current.grid.visible=!0,Jt.current.grid.gridCellStroke="darkgray",Jt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Jt.current,Jt.current}const pi=()=>$e(this,null,function*(){var ue,Nn=Jt.current.makeImage();const ui=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Nn.src,file_data:JSON.stringify({login:(ue=(0,ke.eY)())==null?void 0:ue.login,data:JSON.parse(Jt.current.model.toJson())})}});Qe({src:ui.url})});return(0,At.useEffect)(()=>(setTimeout(()=>{Mi()},500),Wn(mn+1),()=>{Jt.current=null}),[]),se.createElement("div",{ref:ce,className:Ee.current?`${Ie.maxH60} body-overflow-initial`:"body-overflow-initial"},se.createElement(rn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!mn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:se.createElement(gn.Z,null,se.createElement(ni.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),se.createElement(ni.Z,{onClick:()=>{var ue,Nn,ui=Jt.current.selection.first();if(Ee.current=!Ee.current,document.activeElement&&ui){let Hi=(Nn=(ue=document.activeElement)==null?void 0:ue.value)==null?void 0:Nn.trim();typeof Hi=="string"&&Jt.current.model.commit(function(Ge){Ge.set(ui.data,"text",Hi||"\u672A\u547D\u540D"),Jt.current.commandHandler.stopCommand()},"increment")}Wn(mn+1)}},se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:an},se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ie.flowChartWrp},se.createElement("div",{style:{display:"flex",height:"100%"}},se.createElement("div",{style:{width:"300px",height:"100%"}},se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),se.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ie.myPaletteDiv,ref:On})),se.createElement("div",{style:{flex:1,position:"relative"}},se.createElement("div",{ref:un,style:{height:"80vh"}}))),se.createElement("div",{className:"tr"},se.createElement(Yt.ZP,{size:"large",onClick:pi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ee=Ze,re=St(5112),Bt=St(5871);const xt=re.ZP.Group,mt={margin:"0 8px"};var kt=({callback:an,onCancel:Qe})=>{function Jt(un){an(un)}return At.createElement(Ut.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Jt},At.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},At.createElement("span",{style:mt},"\u5355\u5143\u683C\u6570\uFF1A"),At.createElement("span",{style:mt},"\u884C\u6570"),At.createElement(Ut.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},At.createElement(Bt.Z,null)),At.createElement("span",{style:mt},"\u5217\u6570"),At.createElement(Ut.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},At.createElement(Bt.Z,null))),At.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},At.createElement("span",{style:mt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),At.createElement(Ut.default.Item,{name:"align"},At.createElement(xt,null,At.createElement(re.ZP,{value:"default"},At.createElement("i",{className:"fa fa-align-justify"})),At.createElement(re.ZP,{value:"left"},At.createElement("i",{className:"fa fa-align-left"})),At.createElement(re.ZP,{value:"center"},At.createElement("i",{className:"fa fa-align-center"})),At.createElement(re.ZP,{value:"right"},At.createElement("i",{className:"fa fa-align-right"}))))),At.createElement("div",{className:"flex-container flex-end"},At.createElement(Yt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),At.createElement(Yt.ZP,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},jt=St(78673),Lt=St(80727),he=St.n(Lt),on=(0,At.forwardRef)(({use3d:an,width:Qe,height:Jt,callback:un,showSaveButton:On},Ee)=>{const ce=(0,At.useRef)(),mn=(0,At.useRef)(),[Wn,Mi]=(0,At.useState)(!1),pi=(0,At.useRef)({id:ce,appName:"graphing",width:Qe||1e3,height:Jt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,At.useEffect)(()=>{mn.current=new(he())(pi.current,!0),window.onload=function(){mn.current.inject("applet_container")}},[]);const ue=()=>{var Nn=window.ggbApplet.getPNGBase64(1,!0,72);return un&&un(Nn),Nn};return(0,At.useEffect)(()=>{pi.current.appName=Wn?"3D":"graphing",mn.current.inject("applet_container")},[Wn]),(0,At.useEffect)(()=>{Mi(an)},[an]),(0,At.useImperativeHandle)(Ee,()=>({getImgData:ue})),At.createElement(At.Fragment,null,At.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ce}),At.createElement(gn.Z,{align:"middle"},At.createElement(ni.Z,{flex:1},At.createElement(jt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Wn,onChange:Nn=>Mi(Nn)})),At.createElement(ni.Z,null,At.createElement(Yt.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),de=St(41588),De=St(8591);const Ke="link",An="upload-image",Yn="add-flowchart",gi="draw-image",fi="add-flowchart",xi="code-block",Gi="add-table",yr="------------",lr={default:yr,left:`:${yr}`,center:`:${yr}:`,right:`${yr}:`};var rr=St(58856);function Rr(){}let Nr=0;const Ji=1e4,Wr="\u2581",Xi="@\u2581\u2581@",Et="@\u2581@",ai=`
**\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`,mi=["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 hr(an){return/^\d+$/.test(an)?`${an}px`:an}const _i=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Qr={[_i+"-B"]:"bold",[_i+"-I"]:"italic"},Zr={[Ke]:"\u6DFB\u52A0\u94FE\u63A5",[xi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[An]:"\u6DFB\u52A0\u56FE\u7247",[gi]:"\u6DFB\u52A0\u753B\u56FE",[Yn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Gi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var xo=({defaultValue:an="",onChange:Qe,width:Jt="100%",height:un=400,miniToolbar:On=!1,isFocus:Ee=!1,watch:ce,insertTemp:mn,mode:Wn="markdown",id:Mi="markdown-editor-id",showResizeBar:pi=!1,noStorage:ue=!1,showNullButton:Nn=!1,showNullProgramButton:ui=!1,hidetoolBar:Hi=!1,fullScreen:Ge=!1,onBlur:pn,onCMBeforeChange:je,onFullScreen:hn,className:yn="",disablePaste:dn=!1,disabled:kn=!1,disabledFill:Ln=!1,placeholder:Kn="",values:Jn="",extraUse:Zi})=>{const[en,qi]=(0,At.useState)(null),[Er,nr]=(0,At.useState)(an),[sn,si]=(0,At.useState)(ce),[Ai,Ki]=(0,At.useState)(Ge),[Di,vr]=(0,At.useState)(""),[Pr,tr]=(0,At.useState)(0),[Oi,Lr]=(0,At.useState)(un),[bn,wo]=(0,At.useState)(!1),[Mn,Or]=(0,At.useState)(0),[ea,bo]=(0,At.useState)(0),ca=(0,At.useRef)(),qo=(0,At.useRef)(),dr=(0,At.useRef)(),er=(0,At.useRef)();(0,At.useEffect)(()=>{const cr=window.scrollY||window.pageYOffset;nr(Jn),en==null||en.setValue(Jn),window.scrollTo(0,cr)},[Jn]),(0,At.useEffect)(()=>{hn==null||hn(Ai)},[Ai]),(0,At.useEffect)(()=>{if(ca.current){let cr=function(ri,Mr){var Io;if(dn){Mr.preventDefault();return}const Ma=Mr.clipboardData;if(Ma){const Sa=Ma.types.toString(),Ta=Ma.items;if(Sa==="Files"||Ma.types.indexOf("Files")>-1){if(Mr.preventDefault(),Wn=="stex")return;try{let Ra=Ta[1];((Io=Ta[0])==null?void 0:Io.kind)==="file"&&(Ra=Ta[0]);const Ga=Ra.getAsFile(),Vs=Ga.name.split(".").pop();(0,Te.I)(Ga,us=>{var Ys,fn,xs;us.id?((Ys=Ga==null?void 0:Ga.type)==null?void 0:Ys.indexOf("image"))>-1?fr.replaceSelection(`<img width="100%" src="/api/attachments/${us.id}?type=${us.content_type})" alt="" />`):((fn=Ga==null?void 0:Ga.type)==null?void 0:fn.indexOf("video"))>-1?fr.replaceSelection(`<video width="100%" controls src="/api/attachments/${us.id}"></video>`):((xs=Ga==null?void 0:Ga.type)==null?void 0:xs.indexOf("pdf"))>-1?fr.replaceSelection(`<a href="/api/attachments/${us.id}?type=${Ga.type}&disposition=inline" target="_blank">${Ga.name}</a>`):mi.includes(Vs)?fr.replaceSelection(`<a href="/api/attachments/${us.id}?type=office&disposition=inline" target="_blank">${Ga.name}</a>`):fr.replaceSelection(`[${Ga.name}](/api/attachments/${us.id}?type=${us.content_type})`):(us==null?void 0:us.status)===401&&(document.location.href="/user/login")})}catch(Ra){De.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const fr=oe().fromTextArea(ca.current,{mode:Wn,lineNumbers:!On,lineWrapping:!0,value:an,autoCloseTags:!0,autoCloseBrackets:!0});return fr.on("keyup",function(ri,Mr){Mr.keyCode===8&&(ri.getValue()==""?fr.setOption("placeholder",Kn):fr.setOption("placeholder",null))}),fr.on("keydown",function(ri,Mr){if(Mr.keyCode===8){var Io=ko(ri);Io&&Mr.preventDefault()}}),Ee&&fr.focus(),fr.on("paste",cr),kn&&fr.on("beforeChange",function(ri,Mr){(Mr.origin==="paste"||Mr.origin==="+input")&&Mr.cancel()}),qi(fr),()=>{fr.off("paste",cr)}}},[]);const eo=(0,At.useCallback)(()=>{if(qo.current)try{}catch(cr){console.log(cr,"---- to set md editor body height")}},[Oi,qo,Ai]);(0,At.useEffect)(()=>{function cr(){let fr=new Me.Z(ri=>{for(let Mr of ri)(Mr.target.offsetHeight>0||Mr.target.offsetWidth>0)&&(eo(),en.setSize("100%","100%"),en.refresh())});return fr.observe(ca.current.parentElement),fr}if(en){const fr=cr();return()=>{var ri,Mr;(ri=ca.current)!=null&&ri.parentElement&&fr.unobserve((Mr=ca.current)==null?void 0:Mr.parentElement)}}},[en,eo]),(0,At.useEffect)(()=>{if(en){let cr=[];for(const[fr,ri]of Object.entries(Qr)){let Mr={[fr]:()=>{ki(ri)}};cr.push(Mr),en.addKeyMap(Mr)}return()=>{for(let fr of cr)en.removeKeyMap(fr)}}},[en]),(0,At.useEffect)(()=>{Ge!==Ai&&Ki(Ge)},[Ge]),(0,rr.Z)(()=>{if(!ue&&Pr>0){let cr=new Date().getTime(),fr=window.sessionStorage.getItem(Mi);cr>=Pr+Ji&&(!fr||fr!==Er)&&(window.sessionStorage.setItem(Mi,Er),wo(!0))}},Ji),(0,At.useEffect)(()=>{si(ce)},[en,ce]),(0,At.useEffect)(()=>{en&&Ee&&en.focus()},[en,Ee]),(0,At.useEffect)(()=>{if(sn&&en){let cr=function(ri){let Mr=ri.target;if(er.current){let Io=Mr.scrollTop/Mr.scrollHeight;er.current.scrollTop=er.current.scrollHeight*Io}};const fr=en.getScrollerElement();return fr.addEventListener("scroll",cr),()=>{fr.removeEventListener("scroll",cr)}}},[en,sn]),(0,At.useEffect)(()=>{if(en&&je){let cr=function(fr,ri){je(fr,ri)};return en.on("beforeChange",cr),()=>{en.off("beforeChange",cr)}}},[en,je]),(0,At.useEffect)(()=>{if(en&&pn){let cr=function(){pn(en.getValue())};return en.on("blur",cr),()=>{en.off("blur",cr)}}},[en,pn]);function ko(cr,fr){var ri=cr.getDoc(),Mr=ri.getCursor(),Io=ri.getLine(Mr.line),Ma=Io.charAt(Mr.ch-1),Sa=Io.lastIndexOf("@\u2581@",Mr.ch),Ta=Io.lastIndexOf("@\u2581\u2581@",Mr.ch),Ra=Sa>Ta?Sa:Ta,Ga=Sa>Ta?3:4;if(Xi.indexOf(Ma)===-1)return null;if(console.log("change1:",fr,cr,Io,Mr,Ra,Sa,Ta,Ma),Ra>=0&&Mr.ch-Ra<5){var Vs=Ra+Ga;return ri.replaceRange("",{line:Mr.line,ch:Ra},{line:Mr.line,ch:Vs}),{line:Mr.line,ch:Vs}}return null}(0,At.useEffect)(()=>{if(en){let cr=function(fr,ri){const Mr=fr.getValue();nr(Mr),tr(new Date().getTime()),fr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Qe&&(ui?Qe(Mr,Tr(Mr)):Qe(Mr))};return en.on("change",cr),()=>{en.off("change",cr)}}},[en,Qe]),(0,At.useEffect)(()=>{if(en)if(an==null)en.setValue(""),nr("");else{const cr=window.scrollY||window.pageYOffset;an!==en.getValue()&&(en.setValue(an),nr(an),en.setCursor(kn?1:en.lineCount(),0),window.scrollTo(0,cr))}},[en,an]);const ki=(0,At.useCallback)(cr=>{const fr=en.getCursor(),ri=en.getSelection();let Mr=ri.split(`
`);switch(cr){case"bold":return en.replaceSelection("**"+ri+"**"),ri===""&&en.setCursor(fr.line,fr.ch+2),en.focus();case"italic":return en.replaceSelection("*"+ri+"*"),ri===""&&en.setCursor(fr.line,fr.ch+1),en.focus();case"code":return en.replaceSelection("`"+ri+"`"),ri===""&&en.setCursor(fr.line,fr.ch+1),en.focus();case"inline-latex":return vr("inline-latex"),en.focus();case"latex":return en.replaceSelection("```latex\n"+ri+"\n```"),en.setCursor(fr.line+1,ri.length+1),en.focus();case"line-break":return en.replaceSelection(`<br/>
`),en.focus();case"list-ul":return ri===""?en.replaceSelection("- "+ri):en.replaceSelection(Mr.map(Io=>Io===""?"":`- ${Io}`).join(`
`)),en.focus();case"list-ol":return ri===""?en.replaceSelection("1. "+ri):en.replaceSelection(Mr.map((Io,Ma)=>Io===""?"":`${Ma+1}. ${Io}`).join(`
`)),en.focus();case"add-null-ch":return ri===""&&en.setCursor(fr.line,fr.ch),en.replaceSelection(Wr),en.focus();case"add-signal":return ri===""&&en.setCursor(fr.line,fr.ch),en.replaceSelection(Et),en.focus();case"add-multiple":return ri===""&&en.setCursor(fr.line,fr.ch),en.replaceSelection(Xi),en.focus();case"inster-template-1":return ri===""&&en.setCursor(fr.line,fr.ch),en.replaceSelection(ai),en.focus();case"eraser":return en.setValue(""),en.focus();case"trigger-watch":return si(!sn),en.focus();case"trigger-full-screen":return Ki(!Ai),en.focus();case Ke:vr(Ke);return;case xi:vr(xi);return;case An:vr(An);return;case gi:vr(gi);return;case"maths-latex":vr("maths-latex");return;case Yn:vr(Yn);return;case Gi:vr(Gi);return;default:throw new Error}},[en,sn,Ai]),Vt=(0,At.useCallback)((cr,fr)=>{var ri,Mr,Io,Ma,Sa,Ta;switch(vr(""),Di){case Ke:const{title:Ys,link:fn}=cr;return en.replaceSelection(`[${Ys}](${fn})`),en.focus();case xi:const{language:xs,content:yh}=cr;return en.replaceSelection(["```"+xs,yh,"```"].join(`
`)),en.focus();case"maths-latex":for(var Ra=atob(cr),Ga=new Uint8Array(Ra.length),Vs=0;Vs<Ra.length;Vs++)Ga[Vs]=Ra.charCodeAt(Vs);var us=new Blob([Ga],{type:"image/png"});(0,Te.I)(us,Yr=>{Yr.id?en.replaceSelection(`![,](/api/attachments/${Yr.id}?type=${Yr.content_type})`):(Yr==null?void 0:Yr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":en.replaceSelection("`$$"+cr+"$$`");break;case An:case gi:case fi:const{src:El,alt:$o}=cr,To=fr,as=(Io=(Mr=(ri=To==null?void 0:To.name)==null?void 0:ri.split("."))==null?void 0:Mr.pop)==null?void 0:Io.call(Mr);return((Ma=To==null?void 0:To.type)==null?void 0:Ma.indexOf("image"))>-1||!(To!=null&&To.type)?To!=null&&To.align||To!=null&&To.width?en.replaceSelection(`<p style="text-align:${To.align||"initial"}"><img width="${To.width?To.width+"%":"initial"}" src="${El}" alt="${$o||""}" /></p>`):en.replaceSelection(`<img width="100%" src="${El}" alt="${$o||""}" />`):((Sa=To==null?void 0:To.type)==null?void 0:Sa.indexOf("video"))>-1?en.replaceSelection(`<video width="100%" controls src="${El}"></video>`):((Ta=To==null?void 0:To.type)==null?void 0:Ta.indexOf("pdf"))>-1?en.replaceSelection(`<a href="${El}?type=${To.type}&disposition=inline" target="_blank">${To.name}</a>`):mi.includes(as)?en.replaceSelection(`<a href="${El}?type=office&disposition=inline" target="_blank">${To.name}</a>`):en.replaceSelection(`[${To.name}](${El})`),en.focus();case Gi:const{row:ma,col:No,align:fa}=cr;let al=`
`;for(let Yr=0;Yr<ma;Yr++){let zo=[],Oo=[];for(let zi=0;zi<No;zi++)Yr===1&&Oo.push(lr[fa]),zo.push(" ");Yr===1&&(al+=`| ${Oo.join(" | ")} |
`),al+=`| ${zo.join(No===1?"":" | ")} |
`}return en.replaceSelection(al+`
`),en.focus();default:throw new Error}},[en,Di]),fo=(0,At.useMemo)(()=>{switch(Di){case Ke:return At.createElement(Zn,{callback:Vt,onCancel:_o});case xi:return At.createElement(_n.Z,{callback:Vt,onCancel:_o});case An:return At.createElement(Te.Z,{callback:Vt,onCancel:_o});case Yn:return At.createElement(ee,{callback:Vt,onCancel:_o});case Gi:return At.createElement(kt,{callback:Vt,onCancel:_o});case"maths-latex":return At.createElement(on,{showSaveButton:!0,callback:Vt});case"inline-latex":return At.createElement(de.Z,{showSaveButton:!0,callback:Vt});default:return null}},[Di]);function _o(){vr("")}(0,At.useEffect)(()=>{if(dr.current){let cr=function(Sa){Io=!0,Ma=Sa.pageY},fr=function(){Io=!1},ri=function(Sa){if(Io){let Ta=Sa.pageY-Ma;Ta<0&&(Ta=0),Ta>300&&(Ta=300);let Ra=un+Ta+"px";Lr(Ra)}},Mr=dr.current,Io=!1,Ma=0;return Mr.addEventListener("mousedown",cr),document.addEventListener("mousemove",ri),document.addEventListener("mouseup",fr),()=>{Mr.removeEventListener("mousedown",cr),document.removeEventListener("mousemove",ri),document.removeEventListener("mouseup",fr)}}},[en,dr]),(0,At.useEffect)(()=>{Lr(un)},[un]);const ro=hr(Jt),Yo=hr(Oi),ya={width:ro,height:Yo},Ar=(0,At.useMemo)(()=>{if(Pr){let cr=new Date(Pr),fr=cr.getHours(),ri=cr.getMinutes(),Mr=cr.getSeconds();return fr=fr<10?"0"+fr:fr,ri=ri<10?"0"+ri:ri,Mr=Mr<10?"0"+Mr:Mr,`${fr}:${ri}:${Mr}`}return 0},[Pr]),Tr=cr=>{const fr=[];if(ui){let ri=-1;cr=cr.replace(/(@▁▁@|@▁@)/g,function(Mr,Io,Ma){fr.push({multiLine:Mr!==Et})})}return fr};function uo(){window.sessionStorage.removeItem(Mi),wo(!1),tr(0)}function $r(){wo(!1),tr(0),en.setValue(window.sessionStorage.getItem(Mi))}(0,At.useEffect)(()=>{Zr[Di]&&Di!==gi&&Di!==Yn&&setTimeout(()=>{const cr=document.getElementsByClassName("markdown-popup-form")[0],fr=window.innerWidth/2-cr.offsetWidth/2,ri=window.innerHeight/2-cr.offsetHeight/2;Or(fr),bo(ri)},0)},[Di]);const Zo=cr=>{cr.preventDefault();const fr=cr.clientX-Mn,ri=cr.clientY-ea;document.body.onmousemove=Mr=>{let Io=Mr.clientX-fr,Ma=Mr.clientY-ri;const Sa=document.getElementsByClassName("markdown-popup-form")[0],Ta=window.innerWidth-Sa.offsetWidth,Ra=window.innerHeight-Sa.offsetHeight;Io=Math.max(0,Math.min(Io,Ta)),Ma=Math.max(0,Math.min(Ma,Ra)),oa(Mr.clientX,Mr.clientY,fr,ri)&&(Or(Io),bo(Ma))},document.body.onmouseup=function(){document.body.onmousemove=null}},oa=(cr,fr,ri,Mr)=>{const Io=document.body.clientHeight,Ma=document.body.clientWidth;return cr<20&&ri>cr||cr>Ma-20&&ri<cr||fr<20&&Mr>fr||fr>Io-20&&Mr<fr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return At.createElement(At.Fragment,null,At.createElement("div",{className:"markdown-editor-wrapper",ref:qo},At.createElement("div",{className:`markdown-editor-container ${yn} ${sn?"on-preview":""} ${On?"mini":""} ${Ai?"full-screen":""}`,style:ya},At.createElement(Ht,{insertTemp:mn,watch:sn,fullScreen:Ai,showNullButton:Nn,showNullProgramButton:ui,onActionCallback:ki,hidetoolBar:Hi,extraUse:Zi}),At.createElement("div",{className:"markdown-editor-body"},At.createElement("div",{className:"codemirror-container"},At.createElement("textarea",{ref:ca,placeholder:Kn})),sn?At.createElement("div",{ref:er,className:"preview-container"},Wn==="stex"&&At.createElement(we,{value:Er}),Wn!=="stex"&&At.createElement(xe.Z,{disabledFill:Ln,showProgramFill:ui,value:Er})):null))),pi?At.createElement("a",{ref:dr,className:"editor-resize"}):null,Di===gi&&At.createElement(Hn,{callback:Vt,onCancel:_o}),Di===Yn&&At.createElement(ee,{callback:Vt,onCancel:_o}),At.createElement(Zt.Z,null,Zr[Di]&&Di!==gi&&Di!==Yn?At.createElement(rn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Mn,top:ea},title:At.createElement("div",{style:{cursor:"move"},onMouseDown:Zo},Zr[Di]),open:!0,onCancel:_o,footer:null,destroyOnClose:!0,width:Di===Yn?"1200px":null,height:Di===Yn?"80vh":null,className:"markdown-popup-form"},fo):null))}},28451:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return wt},I:function(){return Ht}});var At=St(78241),zt=St(8591),oe=St(92832),Me=St(81327),Xt=St(5871),Se=St(5112),Nt=St(3113),Ne=St(77903),Pe=St(59301),ne=St(59301),xe=Object.defineProperty,we=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(Zt,Ut,fe)=>Ut in Zt?xe(Zt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Zt[Ut]=fe,st=(Zt,Ut)=>{for(var fe in Ut||(Ut={}))et.call(Ut,fe)&&ht(Zt,fe,Ut[fe]);if(Tt)for(var fe of Tt(Ut))nt.call(Ut,fe)&&ht(Zt,fe,Ut[fe]);return Zt},gt=(Zt,Ut)=>we(Zt,Ce(Ut));const{useForm:vt}=At.default,Pt={width:280,marginRight:10},Ft={labelCol:{span:5},wrapperCol:{span:19}};var wt=({callback:Zt,onCancel:Ut})=>{const[fe]=vt();let Yt=(0,Pe.useRef)();function Xe(Ve){Yt.current.width=fe.getFieldValue("width"),Yt.current.align=fe.getFieldValue("align"),Zt(Ve,Yt.current)}function pe(Ve,We){if(Ve.status===-1){zt.ZP.error(Ve.message);return}fe.setFieldsValue({src:`/api/attachments/${Ve.id}`,type:We.type})}function tn(Ve){let We=Ve.target.files[0];Yt.current=We,Ht(We,pe)}return ne.createElement(At.default,gt(st({form:fe},Ft),{className:"upload-image-panel",onFinish:Xe,style:{width:470,overflow:"hidden"}}),ne.createElement(At.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ne.createElement("div",{className:"flex-container"},ne.createElement(At.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ne.createElement(oe.default,{style:Pt})),ne.createElement(Ot,{onFileChange:tn}))),ne.createElement(At.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ne.createElement(oe.default,{style:{width:264}})),ne.createElement(At.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ne.createElement(Me.Z,null,ne.createElement(At.default.Item,{name:"width",style:{margin:0}},ne.createElement(Xt.Z,{style:{width:264}})),ne.createElement("span",{className:"ml8"},"%"))),ne.createElement(At.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ne.createElement(Se.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ne.createElement("aside",null,ne.createElement(At.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ne.createElement(Nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Nt.ZP,{type:"default",onClick:Ut},"\u53D6\u6D88"))))};function Ot({onFileChange:Zt}){return ne.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ne.createElement("input",{type:"file",onChange:Zt}))}function Ht(Zt,Ut){if(!Zt)throw new String("\u6CA1\u6709\u6587\u4EF6");let fe=new FormData;fe.append("editormd-image-file",Zt),fe.append("file_param_name","editormd-image-file"),fe.append("byxhr","true");var Yt=new window.XMLHttpRequest;Yt.withCredentials=!0,Yt.addEventListener("load",function(Xe){Ut(JSON.parse(Xe.target.responseText),Zt)},!1),Yt.addEventListener("error",function(Xe){console.error(Xe)},!1),Yt.open("POST",`${Ne.KI}/api/attachments.json`),Yt.send(fe)}},79346:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return oe}});var At=St(59301),zt=St(4676);class oe extends At.Component{constructor(Xt){super(Xt);const Se=window.document;this.node=Se.createElement("div"),Se.body.appendChild(this.node)}render(){const{children:Xt}=this.props;return(0,zt.createPortal)(Xt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Bn,Cn,St){"use strict";St.d(Cn,{SV:function(){return $e},ZP:function(){return se}});var At=St(59301),zt=St(76374);const oe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Me={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"]},Xt={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(`
`)}]},Se={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(`
`)}]},Nt={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 Ne=St(53184),Pe=St.n(Ne),ne=Object.defineProperty,xe=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(Ze,ee,re)=>ee in Ze?ne(Ze,ee,{enumerable:!0,configurable:!0,writable:!0,value:re}):Ze[ee]=re,ht=(Ze,ee)=>{for(var re in ee||(ee={}))Tt.call(ee,re)&&nt(Ze,re,ee[re]);if(Ce)for(var re of Ce(ee))et.call(ee,re)&&nt(Ze,re,ee[re]);return Ze},st=(Ze,ee)=>xe(Ze,we(ee)),gt=(Ze,ee,re)=>new Promise((Bt,xt)=>{var mt=Lt=>{try{jt(re.next(Lt))}catch(he){xt(he)}},kt=Lt=>{try{jt(re.throw(Lt))}catch(he){xt(he)}},jt=Lt=>Lt.done?Bt(Lt.value):Promise.resolve(Lt.value).then(mt,kt);jt((re=re.apply(Ze,ee)).next())});const vt={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=(Ze,ee)=>ee.map(re=>({label:re,kind:Ze.languages.CompletionItemKind.Keyword,insertText:re})),Ft=Ze=>Object.keys(vt.tables).map(ee=>({label:ee,kind:Ze.languages.CompletionItemKind.Variable,insertText:ee})),wt=(Ze,ee)=>{const re=vt.tables[Ze];return re?re.map(Bt=>({label:Bt,kind:ee.languages.CompletionItemKind.Field,insertText:Bt})):[]};function Ot(Ze,ee,re,Bt,xt){let mt=ee.getWordUntilPosition(re),kt={startLineNumber:re.lineNumber,endLineNumber:re.lineNumber,startColumn:mt.startColumn,endColumn:mt.endColumn},jt=Bt.map(Lt=>({label:Lt,kind:Ze.languages.CompletionItemKind.Keyword,insertText:Lt,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:kt}));return xt.map(Lt=>{jt.push(st(ht({},Lt),{range:kt}))}),jt}var Ht=Ze=>{vt.languages.map(xt=>(Ze.languages.registerDocumentFormattingEditProvider(xt,{provideDocumentFormattingEdits(mt,kt,jt){return gt(this,null,function*(){const Lt=Pe()(mt.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:mt.getFullModelRange(),text:Lt}]})}}),xt));const ee=Xt.quickKey.map(xt=>({label:xt.label,kind:Ze.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet})),re=Se.quickKey.map(xt=>({label:xt.label,kind:Ze.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Bt=Me.quickKey.map(xt=>({label:xt.label,kind:Ze.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Ze.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(xt,mt){var kt=xt.getWordUntilPosition(mt),jt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:kt.startColumn,endColumn:kt.endColumn},Lt=xt.getLineContent(mt.lineNumber).substring(kt.startColumn-2,kt.endColumn);return{suggestions:[...Xt.keywords.map(he=>({label:he,kind:Ze.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...Xt.quickKey.map(he=>({label:he.label,kind:Ze.languages.CompletionItemKind.Function,documentation:he.content,insertText:Lt.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ze.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(xt,mt){var kt=xt.getWordUntilPosition(mt),jt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:kt.startColumn,endColumn:kt.endColumn};return{suggestions:[...oe.keywords.map(Lt=>({label:Lt,kind:Ze.languages.CompletionItemKind.Function,documentation:Lt,insertText:Lt,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ze.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(xt,mt){var kt=xt.getWordUntilPosition(mt),jt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:kt.startColumn,endColumn:kt.endColumn},Lt=xt.getLineContent(mt.lineNumber).substring(kt.startColumn-2,kt.endColumn);return{suggestions:[...Me.keywords.map(he=>({label:he,kind:Ze.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...Me.quickKey.map(he=>({label:he.label,kind:Ze.languages.CompletionItemKind.Function,documentation:he.content,insertText:Lt.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ze.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(xt,mt){var kt=xt.getWordUntilPosition(mt),jt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:kt.startColumn,endColumn:kt.endColumn},Lt=xt.getLineContent(mt.lineNumber).substring(kt.startColumn-2,kt.endColumn);return{suggestions:[...Nt.keywords.map(he=>({label:he,kind:Ze.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...Nt.quickKey.map(he=>({label:he.label,kind:Ze.languages.CompletionItemKind.Function,documentation:he.content,insertText:Lt.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}}),Ze.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(xt,mt){var kt=xt.getWordUntilPosition(mt),jt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:kt.startColumn,endColumn:kt.endColumn},Lt=xt.getLineContent(mt.lineNumber).substring(kt.startColumn-2,kt.endColumn);return{suggestions:[...Se.keywords.map(he=>({label:he,kind:Ze.languages.CompletionItemKind.Function,documentation:he,insertText:he,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt})),...Se.quickKey.map(he=>({label:he.label,kind:Ze.languages.CompletionItemKind.Function,documentation:he.content,insertText:Lt.startsWith("#")?he.content.replace(/#/,""):he.content,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:jt}))]}}})};const Zt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ut=Object.defineProperty,fe=(Ze,ee,re)=>ee in Ze?Ut(Ze,ee,{enumerable:!0,configurable:!0,writable:!0,value:re}):Ze[ee]=re,Yt=(Ze,ee,re)=>fe(Ze,typeof ee!="symbol"?ee+"":ee,re);const Xe=class px{constructor(ee,re,Bt){this.placeholder=ee,this.editor=re,this.monaco=Bt,re.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Yt(Xe,"ID","editor.widget.placeholderHint");var tn=Xe,Ve=St(96236),We=St(8591),_e=St(6848),Tn=St(89392),ye=St(34604),Gt=St(56102),nn=Object.defineProperty,Zn=Object.defineProperties,_n=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,gn=Object.prototype.propertyIsEnumerable,Vn=(Ze,ee,re)=>ee in Ze?nn(Ze,ee,{enumerable:!0,configurable:!0,writable:!0,value:re}):Ze[ee]=re,cn=(Ze,ee)=>{for(var re in ee||(ee={}))rn.call(ee,re)&&Vn(Ze,re,ee[re]);if(Te)for(var re of Te(ee))gn.call(ee,re)&&Vn(Ze,re,ee[re]);return Ze},Hn=(Ze,ee)=>Zn(Ze,_n(ee)),me=(Ze,ee)=>{var re={};for(var Bt in Ze)rn.call(Ze,Bt)&&ee.indexOf(Bt)<0&&(re[Bt]=Ze[Bt]);if(Ze!=null&&Te)for(var Bt of Te(Ze))ee.indexOf(Bt)<0&&gn.call(Ze,Bt)&&(re[Bt]=Ze[Bt]);return re},Un=(Ze,ee,re)=>new Promise((Bt,xt)=>{var mt=Lt=>{try{jt(re.next(Lt))}catch(he){xt(he)}},kt=Lt=>{try{jt(re.throw(Lt))}catch(he){xt(he)}},jt=Lt=>Lt.done?Bt(Lt.value):Promise.resolve(Lt.value).then(mt,kt);jt((re=re.apply(Ze,ee)).next())});function ii(Ze){return/^\d+$/.test(Ze)?`${Ze}px`:Ze}function xn(){}let ni=!1;const ze={"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 Ie(Ze=[]){let ee=Ze;if(Array.isArray(Ze)){for(let re=0;re<Ze.length;re++){let Bt=ze[Ze[re]];if(Bt)return Bt}return ee[0]}return ze[ee]||ee}let ke=null;var se=Ze=>{var ee=Ze,{width:re="100%",height:Bt="100%",value:xt,language:mt="javascript",style:kt={},options:jt={},overrideServices:Lt={},theme:he="vs-dark",onEditBlur:Re,isCopy:on=!1,onSave:de,autoHeight:De=!1,forbidCopy:Ke=!1,onChange:An=xn,editorDidMount:Yn=xn,onFocus:gi=xn,onBreakPoint:fi=xn,breakPointValue:xi=[],filename:Gi="educoder.txt",errorLine:yr,errorContent:lr="",highlightLine:rr,openBreakPoint:Rr=!1,placeholder:Nr=""}=ee,Ji=me(ee,["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 Wr=(0,At.useRef)(),Xi=(0,At.useRef)({}),Et=(0,At.useRef)(),ai=(0,At.useRef)(),mi=(0,At.useRef)([]),hr=(0,At.useRef)(!1),wr=(0,At.useRef)(),_i=(0,At.useRef)(),Qr=(0,At.useRef)(!1),[Zr,xo]=(0,At.useState)(!1);function an(){let Ge;return Wr.current&&(Ge=new zt.Z(pn=>{for(let je of pn)(je.target.offsetHeight>0||je.target.offsetWidth>0)&&Xi.current.instance.layout()}),Ge.observe(Wr.current)),Ge}function Qe(){We.ZP.warning({content:decodeURIComponent(Zt),key:"monaco-editor-tip"})}const Jt=()=>{let Ge=Xi.current.instance;if(xt!=null&&Ge&&Zr){const pn=Ge.getModel();pn&&xt!==pn.getValue()&&(ni=!0,pn.setValue(xt),Ge.layout(),ni=!1)}};(0,At.useEffect)(()=>{const Ge=ye.Z.subscribe("formatDocument",pn=>{var je;let hn=Xi.current.instance;(je=hn==null?void 0:hn.getAction)==null||je.call(hn,"editor.action.formatDocument").run()});return window.updateMonacoValue=pn=>{An(pn)},Ge},[]),(0,At.useEffect)(()=>{var Ge;let pn=Xi.current.instance;ai.current&&clearTimeout(ai.current),ai.current=setTimeout(()=>{Jt()},500),xt&&(xt!=null&&xt.length)&&((Ge=pn==null?void 0:pn.updateOptions)==null||Ge.call(pn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(xt.split(/\r\n|\r|\n/g).length))+3,5)}))},[xt,Zr,Xi.current]),(0,At.useEffect)(()=>{if(yr&&Xi.current&&Xi.current.instance){let pn=Xi.current.instance;pn.changeViewZones(function(je){var hn=document.createElement("div");hn.style.padding="10px 20px",hn.style.width="calc(100% - 20px)",hn.className="my-error-line-wrp",hn.innerHTML=lr,je.addZone({afterLineNumber:yr||11,heightInLines:3,domNode:hn})});var Ge={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}};pn.addOverlayWidget(Ge),pn.revealPositionInCenter({lineNumber:20,column:1})}},[yr,Xi.current,Zr]);const un=(Ge="",pn)=>{if(!Ge||Ge.trim()==="")return!0;const hn=Xi.current.instance.getModel().getLineTokens(pn);let yn=!1;for(let dn=0;dn<2;dn++)hn.getStandardTokenType(dn)===1&&(yn=!0);return yn};(0,At.useEffect)(()=>{var Ge;const pn=(Ge=Xi.current)==null?void 0:Ge.instance;if(pn&&Zr&&Ke){const je=pn.onDidBlurEditorWidget(()=>{Qr.current=!1}),hn=pn.onDidFocusEditorText(()=>{Qr.current=!0});return()=>{je.dispose(),hn.dispose()}}},[Xi.current,Zr,Ke]),(0,At.useEffect)(()=>{var Ge;if((Ge=Xi.current)!=null&&Ge.instance&&Zr&&Rr){let pn=Xi.current.instance,je=pn.getModel();if(!je)return;(()=>{var nr;let sn=[],si=[];const Ai=je.getAllDecorations();for(let Di of Ai)Di.options.className==="highlighted-line"&&(sn.push((nr=Di==null?void 0:Di.range)==null?void 0:nr.startLineNumber),si.push(Di==null?void 0:Di.id));if(rr===sn[0])return;je.deltaDecorations(si,[]);const Ki=je.getLineCount();rr&&rr<=Ki&&(pn.deltaDecorations([],[{range:new ke.Range(rr,1,rr,je.getLineMaxColumn(rr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),pn.revealLineInCenter(rr))})();const yn=(nr=!1)=>{var sn;let si=[],Ai=[];const Ki=je.getAllDecorations();for(let Di of Ki)Di.options.linesDecorationsClassName==="breakpoints-select"&&(si.push((sn=Di==null?void 0:Di.range)==null?void 0:sn.startLineNumber),Ai.push(Di==null?void 0:Di.id));if(nr)return{lines:si,ids:Ai};fi(si)},dn=nr=>Un(void 0,null,function*(){let sn={range:new ke.Range(nr,1,nr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield je.deltaDecorations([],[sn]),yn()}),kn=nr=>Un(void 0,null,function*(){let sn=[];const si=pn.getLineDecorations(nr);for(let Ai of si)Ai.options.linesDecorationsClassName==="breakpoints-select"&&sn.push(Ai.id);yield je.deltaDecorations(sn,[]),yn()}),Ln=nr=>{let sn=pn.getLineDecorations(nr);for(let si of sn)if(si.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Tn.isEqual)(xi,yn(!0).lines)){je.deltaDecorations(yn(!0).ids,[]);const nr=xi.map(sn=>({range:new ke.Range(sn,1,sn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));je.deltaDecorations([],nr)}const Kn=pn.onDidChangeModelContent(nr=>{let sn=pn.getPosition();if(sn){let si=sn.lineNumber;clearTimeout(_i.current),_i.current=setTimeout(()=>{un(je.getLineContent(si),si)?kn(si):Ln(si)?(kn(si),dn(si)):yn()},100)}}),Jn=pn.onMouseDown(nr=>{var sn,si,Ai;if(nr.target.detail&&((Ai=(si=(sn=nr.target)==null?void 0:sn.element)==null?void 0:si.className)!=null&&Ai.includes("line-numbers"))){let Ki=nr.target.position.lineNumber;if(un(je.getLineContent(Ki),Ki))return;Ln(Ki)?kn(Ki):dn(Ki)}}),Zi=nr=>{let sn={range:new ke.Range(nr,1,nr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};mi.current=pn.deltaDecorations(mi.current,[sn])},en=()=>{mi.current=pn.deltaDecorations(mi.current,[])},qi=pn.onMouseMove(nr=>{var sn,si,Ai;if(en(),nr.target.detail&&((Ai=(si=(sn=nr.target)==null?void 0:sn.element)==null?void 0:si.className)!=null&&Ai.includes("line-numbers"))){let Ki=nr.target.position.lineNumber;if(un(je.getLineContent(Ki),Ki))return;Zi(Ki)}}),Er=pn.onMouseLeave(()=>{en()});return()=>{Kn.dispose(),Jn.dispose(),qi.dispose(),Er.dispose()}}},[Xi.current,Zr,xi,rr,Rr,mt]),(0,At.useEffect)(()=>{var Ge;(Ge=Xi.current)!=null&&Ge.instance&&Rr&&Xi.current.instance.setPosition({lineNumber:0,column:0})},[rr]);function On(){let Ge=Xi.current.instance;if(Ge){const pn=Ge.getSelection(),je=Xi.current.pastePos||{},hn=new ke.Range(je.startLineNumber||pn.endLineNumber,je.startColumn||pn.endColumn,je.endLineNumber||pn.endLineNumber,je.endColumn||pn.endColumn);setTimeout(()=>{Ge.executeEdits("",[{range:hn,text:""}])},300)}}function Ee(Ge){(window.navigator.platform.match("Mac")?Ge.metaKey:Ge.ctrlKey)&&Ge.keyCode==83&&(Ge.preventDefault(),de())}const ce=()=>{if(De&&Xi.current.instance){const Ge=Xi.current.instance.getContentHeight();ui(Ge<Bt?Bt:Ge)}else ui(Bt)};function mn(Ge){var pn=document.createEvent("MouseEvents");pn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ge.dispatchEvent(pn)}const Wn=Ge=>{if(!Qr.current)return;const{keyCode:pn,ctrlKey:je,metaKey:hn,target:yn,type:dn}=Ge;return(dn==="paste"||(pn===67||pn===86)&&(hn||je))&&yn.nodeName==="TEXTAREA"&&(Qe(),Ge.preventDefault()),!1};function Mi(Ge,pn){var je=window.URL||window.webkitURL||window,hn=new Blob([pn]),yn=document.createElementNS("http://www.w3.org/1999/xhtml","a");yn.href=je.createObjectURL(hn),yn.download=Ge,mn(yn)}(0,At.useEffect)(()=>{ce()},[ce]),(0,At.useEffect)(()=>{Wr.current&&!Zr&&Promise.all([St.e(8909),St.e(3267)]).then(St.bind(St,71448)).then(Ge=>{try{ke=Ge,Xi.current.instance=ke.editor.create(Wr.current,{value:xt,language:Ie(mt),theme:he,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Lt);const pn=Xi.current.instance;let yn=[...Ve.BH._menuItems].find(Kn=>Kn[0]._debugName=="EditorContext")[1],dn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],kn=(Kn,Jn)=>{var Zi,en;let qi=Kn._first;do Jn.includes((en=(Zi=qi.element)==null?void 0:Zi.command)==null?void 0:en.id)&&Kn._remove(qi);while(qi=qi.next)};if(Yn(pn,ke),setTimeout(()=>{ce(),Xi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Mi(Gi||"educoder.txt",pn.getValue())}})},500),Xi.current.subscription=pn.onDidChangeModelContent(Kn=>{hr.current?clearTimeout(wr.current):(ce(),An(pn.getValue(),Kn)),wr.current=setTimeout(()=>{hr.current=!1},500)}),window.Monaco||Ht(ke,Ie(mt)),Ke&&(kn(yn,dn),Wr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Wn),window.removeEventListener("paste",Wn),window.addEventListener("keydown",Wn),window.addEventListener("paste",Wn)),window.Monaco=ke,Re&&pn.onDidBlurEditorWidget(()=>{Re(pn.getValue())}),gi&&pn.onDidFocusEditorText(()=>{gi(pn.getValue())}),Ke)try{pn.onDidPaste(Kn=>{const Jn=pn.getSelection(),Zi=Xi.current.pastePos||{},en=new ke.Range(Zi.startLineNumber||Jn.endLineNumber,Zi.startColumn||Jn.endColumn,Zi.endLineNumber||Jn.endLineNumber,Zi.endColumn||Jn.endColumn);pn.executeEdits("",[{range:Kn.range,text:""}])})}catch(Kn){}let Ln=an();return Nr&&typeof Nr=="string"&&new tn(Nr,pn,ke),xo(!0),()=>{const Kn=Xi.current.instance;Kn.dispose();const Jn=Kn.getModel();Jn&&Jn.dispose(),Xi.current.subscription&&Xi.current.subscription.dispose(),Ln.unobserve(Wr.current)}}catch(pn){}})},[]),(0,At.useEffect)(()=>{if(Xi.current.instance&&Zr)return document.addEventListener("keydown",Ee,!1),()=>{document.removeEventListener("keydown",Ee)}},[de,Zr]),(0,At.useEffect)(()=>{let Ge=Xi.current.instance;if(Ge&&Zr){let pn=Ie(mt);ke.editor.setModelLanguage(Ge.getModel(),pn)}},[mt,Zr]),(0,At.useEffect)(()=>{Xi.current.instance&&Zr&&ke.editor.setTheme(he)},[he,Zr]),(0,At.useEffect)(()=>{let Ge=Xi.current.instance;Et.current=jt,Ge&&Zr&&(Ge.updateOptions(cn({},jt)),setTimeout(()=>{Ge.getModel().updateOptions(cn({},jt))},200))},[JSON.stringify(jt),Zr]),(0,At.useEffect)(()=>{let Ge=Xi.current.instance;Ge&&Zr&&Ge.layout()},[re,Bt,Zr]);const[pi,ue]=(0,At.useState)(ii(re)),[Nn,ui]=(0,At.useState)(ii(Bt)),Hi=Hn(cn({},kt),{width:pi,height:Nn,position:"relative"});return At.createElement("div",{className:"my-monaco-editor",ref:Wr,style:Hi},on&&At.createElement(Gt.CopyToClipboard,{text:xt,onCopy:()=>We.ZP.success("\u590D\u5236\u6210\u529F")},At.createElement(_e.Z,{title:"\u590D\u5236\u4EE3\u7801"},At.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},At.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function $e({width:Ze="100%",height:ee="100%",original:re,modified:Bt,language:xt,options:mt={}}){const kt=(0,At.useRef)(),[jt,Lt]=(0,At.useState)(null);function he(De){let Ke;return kt.current&&(Ke=new zt.Z(An=>{for(let Yn of An)(Yn.target.offsetHeight>0||Yn.target.offsetWidth>0)&&De.layout()}),Ke.observe(kt.current)),Ke}(0,At.useEffect)(()=>(kt.current&&Promise.all([St.e(8909),St.e(9404)]).then(St.bind(St,2550)).then(De=>{ke=De;const Ke=ke.editor.createDiffEditor(kt.current,Hn(cn({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},mt),{wordWrap:!0}));Lt(Ke);let An=he(Ke);return()=>{Ke.dispose();const Yn=Ke.getModel();Yn&&Yn.dispose(),An.unobserve(kt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,At.useEffect)(()=>{jt&&jt.setModel({original:ke.editor.createModel(re,xt),modified:ke.editor.createModel(Bt,xt)})},[re,Bt,xt,jt]);const Re=ii(Ze),on=ii(ee),de={width:Re,height:on};return At.createElement("div",{className:"my-diff-editor",ref:kt,style:de})}},58856:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return zt}});var At=St(59301);function zt(oe,Me){const Xt=(0,At.useRef)();(0,At.useEffect)(()=>{Xt.current=oe}),(0,At.useEffect)(()=>{function Se(){Xt.current()}if(Me!==null){let Nt=setInterval(Se,Me);return()=>clearInterval(Nt)}},[Me])}},79834:function(Bn,Cn,St){"use strict";St.d(Cn,{Q8:function(){return Gt},d0:function(){return nn},w6:function(){return ye}});var At=St(59301),zt=St(5083),oe=St(57809),Me=St(8591),Xt=St(43418),Se=St(5112),Nt=St(95237),Ne=St(43604),Pe=St(6848),ne=St(24905),xe=St(3113),we=St(61186),Ce=St.n(we),Tt=St(24065),et=St(99064),nt=St(89392),ht=St.n(nt),st=St(955),gt=St(24990),vt=St(89070),Pt=St(40731),Ft=St(46474),wt=St(38233),Ot=St(82438),Ht=St(49692),Zt=St(59301),Ut=Object.defineProperty,fe=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Ve=(gn,Vn,cn)=>Vn in gn?Ut(gn,Vn,{enumerable:!0,configurable:!0,writable:!0,value:cn}):gn[Vn]=cn,We=(gn,Vn)=>{for(var cn in Vn||(Vn={}))pe.call(Vn,cn)&&Ve(gn,cn,Vn[cn]);if(Xe)for(var cn of Xe(Vn))tn.call(Vn,cn)&&Ve(gn,cn,Vn[cn]);return gn},_e=(gn,Vn)=>fe(gn,Yt(Vn)),Tn=(gn,Vn,cn)=>new Promise((Hn,me)=>{var Un=ni=>{try{xn(cn.next(ni))}catch(ze){me(ze)}},ii=ni=>{try{xn(cn.throw(ni))}catch(ze){me(ze)}},xn=ni=>ni.done?Hn(ni.value):Promise.resolve(ni.value).then(Un,ii);xn((cn=cn.apply(gn,Vn)).next())});function ye(gn,Vn){const cn=[];for(let Hn=gn;Hn<Vn;Hn++)cn.push(Hn);return cn}const Gt=(gn,Vn,cn)=>{const Hn=gn<Ce()().startOf("day"),me=gn>Ce()(Vn).endOf("day"),Un=gn<Ce()(cn).startOf("day");return Vn?cn?Ce()()<=Ce()(cn)?Un||me:Hn||me:gn&&Hn||me:cn&&Ce()()<=Ce()(cn)?Un:Hn},nn=(gn,Vn)=>{const cn=parseInt(Ce()(gn).format("HH")),Hn=parseInt(Ce()().format("HH")),me=parseInt(Ce()().format("mm"));if(!gn)return{disabledHours:()=>ye(0,Hn),disabledMinutes:()=>ye(0,me)};if(Vn){const Un=parseInt(Ce()(Vn).format("HH")),ii=parseInt(Ce()(Vn).format("mm"));return Ce()(gn).isSame(Ce()(Vn),"day")?{disabledHours:()=>ye(0,Un),disabledMinutes:()=>cn<=Un?ye(0,ii):[]}:void 0}if(Ce()(gn).isSame(Ce()(),"day"))return{disabledHours:()=>ye(0,Hn),disabledMinutes:()=>Ce()(gn).isSame(Ce()(),"hour")&&cn<=Hn?ye(0,me):[]}},Zn=(gn,Vn)=>gn==null?void 0:gn.map(cn=>{var Hn;return(Hn=Vn==null?void 0:Vn.find(me=>me.value===cn))==null?void 0:Hn.id}),{RangePicker:_n}=zt.default,{Option:Te}=oe.default,rn=({shixunHomeworks:gn,loading:Vn,dispatch:cn,classroomList:Hn,user:me})=>{var Un,ii,xn,ni,ze,Ie,ke,se,$e;const Ze=(0,vt.useParams)(),{workSetting:ee,workList:re,shixunWorkList:Bt,headerInfo:xt,changeData:mt}=gn,[kt,jt]=(0,At.useState)(!1),[Lt,he]=(0,At.useState)(!1);let[Re,on]=(0,At.useState)([]),[de,De]=(0,At.useState)([]),[Ke,An]=(0,At.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Pt.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[Yn,gi]=(0,At.useState)({}),[fi,xi]=(0,At.useState)({});(0,At.useEffect)(()=>()=>{on([])},[]),(0,At.useEffect)(()=>{jt(!(0,Tt.GJ)())},[(0,Tt.GJ)()]);const Gi=()=>{cn({type:"shixunHomeworks/getWorkSetting",payload:We({},Ze)})};(0,At.useEffect)(()=>{if(!(ee!=null&&ee.course_id))return;Object.keys(Ke).map(function(mi){Ke[mi]=ee[mi]}),(!Ke.allow_late||!Ke.unified_late)&&(Ke.late_penalty=20,Ke.penalty_type=Pt.Q.Percent),Ke.unified_setting||(Ke.unified_late=!1,Ke.unified_anonymous_comment=!1,Ke.unified_anonymous_appeal=!1),Re=JSON.parse(JSON.stringify(ee.group_settings.map(mi=>_e(We({},mi),{group_name:[mi.group_name]})).filter(mi=>mi.publish_time!==null))),de=JSON.parse(JSON.stringify(ee.allow_late_settings.map(mi=>_e(We({},mi),{group_name:[mi.group_name]})).filter(mi=>mi.late_time!==null))),An(We({},Ke));const ai=(0,st.QE)((Re==null?void 0:Re.length)>0?Re:[]);on([...ai]),(de==null?void 0:de.length)<=0?De([{penalty_type:Pt.Q.Percent,late_penalty:20}]):De([...de])},[ee]);const yr=()=>Tn(void 0,null,function*(){var ai,mi;if(((ai=me==null?void 0:me.userInfo)==null?void 0:ai.user_status)===2){(0,Ft.Rd)();return}const hr=JSON.parse(JSON.stringify(Ke));if(hr.challenge_settings.filter(_i=>!_i.hide),hr.categoryId=Ze.categoryId,(mi=hr.challenge_settings)!=null&&mi.every(_i=>!_i.checked)){Me.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Re),!Ke.unified_setting)Re=Re==null?void 0:Re.map(_i=>{var Qr;if(!_i.publish_time||!_i.end_time)throw Me.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!_i.group_name)throw Me.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return _i.group_name=typeof(_i==null?void 0:_i.group_name)=="string"?[_i==null?void 0:_i.group_name]:_i==null?void 0:_i.group_name,_i.group_id=(Qr=ee.group_settings)==null?void 0:Qr.filter(Zr=>{var xo;return(xo=_i==null?void 0:_i.group_name)==null?void 0:xo.includes(Zr.group_name)}).map(Zr=>Zr.group_id||Zr.id).toString().split(","),_i});else if(!Ke.publish_time||!Ke.end_time)throw Me.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(hr.group_settings=Re,Ke.allow_late)if(Ke.unified_late){if(Ke.late_penalty===null||Ke.late_penalty===void 0||Ke.late_penalty<0||Ke.late_penalty>100)throw Me.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ke.late_time)throw Me.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else de=de==null?void 0:de.map(_i=>{var Qr,Zr;if(_i.late_penalty===null||_i.late_penalty===void 0||_i.late_penalty<0||_i.late_penalty>100)throw Me.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!_i.late_time)throw Me.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!_i.group_name)throw Me.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return _i.group_name=typeof(_i==null?void 0:_i.group_name)=="string"?[_i==null?void 0:_i.group_name]:_i==null?void 0:_i.group_name,_i.group_id=(Zr=(Qr=_i==null?void 0:_i.group_name)==null?void 0:Qr.map(xo=>{var an,Qe;let Jt=(Qe=(an=ee.group_settings)==null?void 0:an.filter(un=>(un==null?void 0:un.group_name)===xo))==null?void 0:Qe[0];return Jt==null?void 0:Jt.group_id}))==null?void 0:Zr.toString().split(","),_i}),hr.allow_late_settings=de;let wr=yield(0,Ht.Tr)({homework_common_ids:[parseInt(Ze.categoryId)],course_id:Ze.coursesId,type:"homework_common"});(wr==null?void 0:wr.student_count)===0?lr(hr):(xi(hr),gi(wr))}),lr=ai=>{var mi;if(ai.total_score===null){Me.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(ai!=null&&ai.work_efficiency&&ai.eff_score===null){Me.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const hr=ai.challenge_settings.reduce((Qr,Zr)=>Qr+Number(Zr.challenge_score),0);if((hr==null?void 0:hr.toFixed(10))!==((mi=ai.total_score-ai.eff_score)==null?void 0:mi.toFixed(10))){Me.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${ai.total_score}\u5206`);return}const wr={shixun_evaluation:ai.shixun_evaluation,challenge_settings:ai.challenge_settings};let _i=()=>{var Qr;const Zr=()=>Tn(void 0,null,function*(){he(!0),(yield(0,et.ZP)(`/api/homework_commons/${Ze.categoryId}/publish_setting.json`,{method:"post",body:We({},ai)})).status===0&&(Me.ZP.success("\u66F4\u65B0\u6210\u529F"),Gi(),cn({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:We({},Ze)})),he(!1)});!(0,nt.isEqual)(mt,wr)&&!((Qr=xt==null?void 0:xt.homework_status)!=null&&Qr.includes("\u672A\u53D1\u5E03"))?Xt.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Zr}):Zr()};ee!=null&&ee.high_resources_consume&&!(ee!=null&&ee.high_resources_consume_permission)?cn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Ze.coursesId,type:"shixun",type_id:Ze.categoryId,name:ee.homework_name,fn:()=>{_i()}}}):_i()},rr=(ai,mi,hr="group_id")=>{var wr;return mi?mi.find(_i=>_i[hr]===ai):(wr=ee==null?void 0:ee.group_settings)==null?void 0:wr.find(_i=>_i.group_id[0]===ai)},Rr=(ee==null?void 0:ee.allow_late)||(ee==null?void 0:ee.anonymous_comment),Nr=ai=>{var mi,hr;const wr=rr(ai,ee==null?void 0:ee.allow_late_settings,"id"),_i=rr(ai,ee==null?void 0:ee.anonymous_comment_settings),Qr=rr(ai);return(ee==null?void 0:ee.allow_late)&&wr&&Ce()(wr==null?void 0:wr.late_time)<=Ce()()||(ee==null?void 0:ee.anonymous_comment)&&_i&&(_i==null?void 0:_i.evaluation_start)!==null||((hr=(Ce()(Qr==null?void 0:Qr.end_time)<=Ce()()&&((mi=ee==null?void 0:ee.allow_late_settings)==null?void 0:mi.filter(Zr=>Zr.group_id.includes(ai))))[0])==null?void 0:hr.late_time)!=null},Ji=(0,At.useMemo)(()=>(ee==null?void 0:ee.allow_late)||(ee==null?void 0:ee.all_group_late),[ee,xt]),Wr=ee==null?void 0:ee.anonymous_comment,Xi=ai=>{if(!ai)return!1;const mi=rr(ai,ee==null?void 0:ee.anonymous_comment_settings);return(ee==null?void 0:ee.anonymous_comment)&&mi&&(mi==null?void 0:mi.evaluation_start)!==null},Et=(ai,mi)=>{var hr,wr,_i,Qr,Zr;ai!=null&&ai.group_id||(ai.group_id=Zn(ai==null?void 0:ai.group_name,ee==null?void 0:ee.group_settings)),cn({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:ai,index:mi,rangePickerDisabled:(wr=(hr=ai==null?void 0:ai.group_id)==null?void 0:hr[0])!=null&&wr.publish_time?kt||(Ce()()<=Ce()((Qr=rr((_i=ai==null?void 0:ai.group_id)==null?void 0:_i[0]))==null?void 0:Qr.publish_time)?!1:[!0,Nr((Zr=ai==null?void 0:ai.group_id)==null?void 0:Zr[0])]):!1,disabledDate:ee==null?void 0:ee.course_end_date}})};return Zt.createElement("section",{className:gt.Z.form},Zt.createElement("div",{className:gt.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Zt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Zt.createElement("div",null,Zt.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Zt.createElement(Se.ZP.Group,{disabled:kt||!((Un=xt==null?void 0:xt.homework_status)!=null&&Un.includes("\u672A\u53D1\u5E03"))||(0,Tt.Rm)()&&!((ii=Hn.AssistantObject.practice)!=null&&ii.can_publish),value:Ke.unified_setting,onChange:ai=>{var mi;if(!((mi=xt==null?void 0:xt.homework_status)!=null&&mi.includes("\u672A\u53D1\u5E03"))){Me.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Ke.unified_setting=!Ke.unified_setting,Ke.unified_setting||(Ke.unified_late=!1,De([{late_penalty:5}])),An(Object.assign({},Ke)),Ke.unified_setting===!1&&Re==""){on(Re.concat({}));return}Ke.unified_setting&&(on([]),De([{late_penalty:5}]))}},Zt.createElement(Se.ZP,{value:!0,disabled:kt||!(ee!=null&&ee.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Zt.createElement(Se.ZP,{disabled:kt||!((xn=ee==null?void 0:ee.group_settings)!=null&&xn.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((ni=ee==null?void 0:ee.group_settings)==null?void 0:ni.length)===0&&Zt.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),Ke.unified_setting&&Zt.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Zt.createElement(Nt.Z,{align:"middle"},Zt.createElement(Ne.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Zt.createElement(Ne.Z,{className:"ml10"},Zt.createElement(zt.default,{size:"large",disabled:kt||!((ze=xt==null?void 0:xt.homework_status)!=null&&ze.includes("\u672A\u53D1\u5E03")||(Ie=xt==null?void 0:xt.homework_status)!=null&&Ie.includes("\u672A\u5F00\u59CB"))||(0,Tt.Rm)()&&!((ke=Hn.AssistantObject.practice)!=null&&ke.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:ai=>Gt(ai,ee==null?void 0:ee.course_end_date),disabledTime:ai=>nn(ai),value:Ke.publish_time?Ce()(Ke.publish_time):"",onChange:(ai,mi)=>{Ke.publish_time=mi,(Ke.end_time==""||!Ke.end_time)&&Ke.unified_setting&&(Ke.end_time=Ce()(ai).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),An(Object.assign({},Ke))}}))),Zt.createElement(Nt.Z,{align:"middle",className:"pl30"},Zt.createElement(Ne.Z,null,"\u622A\u6B62\u65F6\u95F4"),Zt.createElement(Ne.Z,{className:"ml10"},Zt.createElement(zt.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ce()((0,st.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(ee==null?void 0:ee.allow_late)&&(ee==null?void 0:ee.homework_status.includes("\u5DF2\u622A\u6B62"))||kt||(ee==null?void 0:ee.allow_late)&&Ce()()>=Ce()(ee==null?void 0:ee.end_time)||(0,Tt.Rm)()&&!((se=Hn.AssistantObject.practice)!=null&&se.can_publish),disabledDate:ai=>Gt(ai,ee==null?void 0:ee.course_end_date,Ke.publish_time),disabledTime:ai=>nn(ai,Ke.publish_time),value:Ke.end_time?Ce()(Ke.end_time):"",onChange:(ai,mi)=>{Ke.end_time=mi,An(Object.assign({},Ke))}})))),!Ke.unified_setting&&(Re==null?void 0:Re.length)>0&&Zt.createElement(Nt.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Re&&Re.map(function(ai,mi){var hr,wr,_i,Qr,Zr,xo,an;return Zt.createElement(Ne.Z,{span:24,key:mi},Zt.createElement(Nt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:mi==(Re==null?void 0:Re.length)-1?"0px":"10px"}},Zt.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",mi+1),Zt.createElement(oe.default,{disabled:kt||((hr=xt==null?void 0:xt.homework_status)!=null&&hr.includes("\u672A\u53D1\u5E03")&&ai.id||Ce()()<Ce()(ai==null?void 0:ai.publish_time)?!1:!!(ai!=null&&ai.publish_time))||(0,Tt.Rm)()&&!((wr=Hn.AssistantObject.practice)!=null&&wr.can_publish),mode:"multiple",className:gt.Z.multiple_select,style:{width:"250px"},value:ai.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Qe=>{var Jt;if((0,Tt.Rm)()&&!((Jt=Hn.AssistantObject.practice)!=null&&Jt.can_publish)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Re[mi].group_name=Qe,Re[mi].group_id=ai.group_id;const un=(0,nt.flattenDeep)(Re.map(Ee=>Ee.group_name)),On=de.map(Ee=>{let ce=(Ee==null?void 0:Ee.group_name)||[];return _e(We({},Ee),{group_name:(0,nt.remove)(ce,mn=>un.includes(mn))})});De(On),on(Re.slice())},maxTagCount:4,maxTagPlaceholder:Qe=>Zt.createElement("div",{style:{cursor:"pointer"},onClick:()=>Et(ai,mi)},"+",Qe==null?void 0:Qe.length)},ee.group_settings&&ee.group_settings.map(function(Qe){if(!Re.map(un=>un.group_name).flat().includes(Qe.group_name))return Zt.createElement(Te,{value:Qe.group_name,key:Qe.id},Qe.group_name)})),Zt.createElement("div",{className:"ml20"},Zt.createElement(_n,{size:"large",ranges:{\u6B64\u523B:[ai.publish_time?Ce()(ai.publish_time):Ce()(),Ce()()]},allowClear:!1,disabled:kt||(Ce()()<=Ce()((Qr=rr((_i=ai==null?void 0:ai.group_id)==null?void 0:_i[0]))==null?void 0:Qr.publish_time)?!1:[!0,Nr((Zr=ai==null?void 0:ai.group_id)==null?void 0:Zr[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Qe=>Gt(Qe,ee==null?void 0:ee.course_end_date),disabledTime:Qe=>nn(Qe),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ce()((0,st.U6)(),"HH:mm"),Ce()((0,st.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[ai.publish_time?Ce()(ai.publish_time):void 0,ai.end_time?Ce()(ai.end_time):void 0],onChange:(Qe,Jt)=>{var un;if((0,Tt.Rm)()&&!((un=Hn.AssistantObject.practice)!=null&&un.can_publish)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Re[mi].publish_time=Jt[0],!ai.end_time&&Jt[0]?Re[mi].end_time=Ce()(Jt[0]).add(7,"days"):Re[mi].end_time=Jt[1],on([...Re])},onCalendarChange:(Qe,Jt,un)=>{if(Jt!=null&&Jt[0]&&!Jt[1]){const On=Ce()(Jt[0]).add(7,"days");Re[mi].publish_time=Jt[0],Re[mi].end_time=On,on([...Re])}}})),!kt&&Zt.createElement("div",{style:{display:"flex",width:"50px"}},((xo=ai==null?void 0:ai.group_id)==null?void 0:xo.length)>1&&Zt.createElement(Pe.Z,{title:"\u89C4\u5219\u62C6\u5206"},Zt.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Et(ai,mi)})),Re.length<((an=ee==null?void 0:ee.group_settings)==null?void 0:an.length)&&Zt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Qe;if((0,Tt.Rm)()&&!((Qe=Hn.AssistantObject.practice)!=null&&Qe.can_publish)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}on(Re.concat({}))}}),((ai==null?void 0:ai.publish_time)&&Ce()()<Ce()(ai==null?void 0:ai.publish_time)||!(ai!=null&&ai.publish_time))&&mi!=0&&Zt.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Qe=(0,nt.cloneDeep)(de);Qe.forEach((Jt,un)=>{Jt.group_name&&(Jt.group_name=Jt.group_name.filter(On=>{var Ee;return!((Ee=Re[mi].group_name)!=null&&Ee.includes(On))}))}),Re=Re.filter((Jt,un)=>mi!==un),De(Qe),on(Re.slice()),setTimeout(()=>on(Re.slice()),10)}}))))}))),Zt.createElement(Nt.Z,null,Zt.createElement(Ne.Z,null,Zt.createElement("div",{className:gt.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Zt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Zt.createElement(Ne.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Zt.createElement(ne.default,{checked:Ke.allow_late,disabled:kt||Ji,onChange:ai=>{var mi;if((0,Tt.Rm)()&&!((mi=Hn.AssistantObject.practice)!=null&&mi.can_late)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}ai.target.checked&&Xt.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Zt.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Zt.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Zt.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Zt.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),Ke.allow_late=!Ke.allow_late,de==""&&De([{late_penalty:5}]),An(Object.assign({},Ke))}},Zt.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Ke==null?void 0:Ke.allow_late)&&Zt.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Zt.createElement("div",{style:{display:"flex"}},Zt.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Zt.createElement(Se.ZP.Group,{style:{marginLeft:"20px"},disabled:kt||(ee==null?void 0:ee.anonymous_comment)||(ee==null?void 0:ee.allow_late),value:Ke.unified_late,onChange:ai=>{var mi;if((0,Tt.Rm)()&&!((mi=Hn.AssistantObject.practice)!=null&&mi.can_late)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ke.unified_late=ai.target.value,de==""&&!ai.target.value&&De([{penalty_type:Pt.Q.Percent,late_penalty:20}]),An(We({},Ke))}},(Ke==null?void 0:Ke.unified_setting)&&Zt.createElement(Se.ZP,{value:!0,disabled:!(ee!=null&&ee.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),(($e=ee==null?void 0:ee.group_settings)==null?void 0:$e.length)>0&&Zt.createElement(Se.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Ke!=null&&Ke.unified_late?Zt.createElement(Zt.Fragment,null,Zt.createElement(Nt.Z,{align:"middle",style:{marginTop:"10px"}},Zt.createElement(Ne.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Zt.createElement(Ne.Z,{className:"ml20"},Zt.createElement(Pt.Z,{disabled:kt||Wr,value:{type:Ke.penalty_type,inputValue:Ke.late_penalty},onChange:ai=>{var mi;if((0,Tt.Rm)()&&!((mi=Hn.AssistantObject.practice)!=null&&mi.can_late)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}An(_e(We({},Ke),{late_penalty:ai.inputValue,penalty_type:ai.type}))}})),Zt.createElement(Ne.Z,{flex:"1",className:"ml5"},Zt.createElement("span",{className:"c-grey-c ml10"},Ke.penalty_type===Pt.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Zt.createElement(Nt.Z,{align:"middle",style:{marginTop:"15px"}},Zt.createElement(Ne.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Zt.createElement(Ne.Z,{className:"ml20"},Zt.createElement(zt.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ce()((0,st.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:kt||Wr,value:Ke.late_time?Ce()(Ke.late_time):"",disabledDate:ai=>Gt(ai,ee==null?void 0:ee.course_end_date),onChange:(ai,mi)=>{var hr;if((0,Tt.Rm)()&&!((hr=Hn.AssistantObject.practice)!=null&&hr.can_late)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Ke.late_time=mi,An(Object.assign({},Ke))}})))):de.map(function(ai,mi){var hr;return Zt.createElement(Ne.Z,{span:24,key:mi},Zt.createElement(Nt.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Zt.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",mi+1),Zt.createElement(oe.default,{disabled:kt||!((hr=xt==null?void 0:xt.homework_status)!=null&&hr.includes("\u672A\u53D1\u5E03"))&&ai.id||(ee==null?void 0:ee.anonymous_comment),mode:"multiple",className:gt.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof ai.group_name=="string"?[ai.group_name]:ai.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:wr=>{var _i;if((0,Tt.Rm)()&&!((_i=Hn.AssistantObject.practice)!=null&&_i.can_late)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}de[mi].group_name=wr,de[mi].group_id=ai.group_id,De(de.slice())}},ee.group_settings&&ee.group_settings.map(function(wr){const _i=de.map(Zr=>Zr.group_name).flat(),Qr=Re.map(Zr=>Zr.group_name).flat();if(Ke!=null&&Ke.unified_setting){if(!_i.includes(wr.group_name))return Zt.createElement(Te,{value:wr.group_name,key:wr.id},wr.group_name)}else if(Qr.includes(wr.group_name)&&!_i.includes(wr.group_name))return Zt.createElement(Te,{value:wr.group_name,key:wr.id},wr.group_name)})),Zt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Zt.createElement(Pt.Z,{disabled:kt||Xi(ai.id),value:{type:ai.penalty_type,inputValue:ai.late_penalty},onChange:wr=>{var _i;if((0,Tt.Rm)()&&!((_i=Hn.AssistantObject.practice)!=null&&_i.can_late)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}de[mi].late_penalty=wr.inputValue,de[mi].penalty_type=wr.type,De([...de])}}),Zt.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Zt.createElement(zt.default,{size:"large",disabled:kt||Xi(ai.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Ce()((0,st.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:wr=>Gt(wr,ee==null?void 0:ee.course_end_date),format:"YYYY-MM-DD HH:mm",value:ai!=null&&ai.late_time?Ce()(ai.late_time):void 0,onChange:(wr,_i)=>{var Qr;if((0,Tt.Rm)()&&!((Qr=Hn.AssistantObject.practice)!=null&&Qr.can_late)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}de[mi].late_time=_i,De([...de])}}),!kt&&Zt.createElement("div",{style:{display:"flex",width:"50px"}},Zt.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var wr;if((0,Tt.Rm)()&&!((wr=Hn.AssistantObject.practice)!=null&&wr.can_late)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}De(de.concat({penalty_type:Pt.Q.Percent,late_penalty:20}))}}),mi>0&&!ai.id&&Zt.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var wr;if((0,Tt.Rm)()&&!((wr=Hn.AssistantObject.practice)!=null&&wr.can_late)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}de=de.filter((_i,Qr)=>mi!==Qr),De(de.slice()),setTimeout(()=>De(de.slice()),10)}}))))})),!kt&&Zt.createElement(Zt.Fragment,null,Zt.createElement(xe.ZP,{type:"primary",size:"large",loading:Lt,style:{width:"138px",marginTop:"30px"},onClick:()=>yr()},"\u4FDD\u5B58")),Zt.createElement(wt.Z,{onConfirm:(ai,mi)=>{Re.splice(ai,0,...mi),Re.splice(ai+mi.length,1);const hr=(0,st.QE)([...Re]);on([...hr])}}),Zt.createElement(Ot.Z,{resdata:Yn,type:"shixun",okloading:Lt,oktext:(Yn==null?void 0:Yn.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:ai=>Tn(void 0,null,function*(){he(!0);let mi=yield(0,et.ZP)(`/api/courses/${Ze.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Ze.categoryId)]}});he(!1),(mi==null?void 0:mi.status)===0&&lr(fi)})}))};Cn.ZP=(0,vt.connect)(({shixunHomeworks:gn,classroomList:Vn,loading:cn,user:Hn})=>({shixunHomeworks:gn,classroomList:Vn,loading:cn.effects,user:Hn}))(rn)},82693:function(Bn,Cn,St){"use strict";var At=St(59301),zt=St(54580),oe=St(78241),Me=St(43418),Xt=St(8591),Se=St(1710),Nt=St(89070),Ne=St(3294),Pe=St(1370),ne=St(99064),xe=St(61186),we=St.n(xe),Ce=St(955),Tt=St(59301),et=Object.defineProperty,nt=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,gt=(Ot,Ht,Zt)=>Ht in Ot?et(Ot,Ht,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):Ot[Ht]=Zt,vt=(Ot,Ht)=>{for(var Zt in Ht||(Ht={}))ht.call(Ht,Zt)&&gt(Ot,Zt,Ht[Zt]);if(nt)for(var Zt of nt(Ht))st.call(Ht,Zt)&&gt(Ot,Zt,Ht[Zt]);return Ot},Pt=(Ot,Ht,Zt)=>new Promise((Ut,fe)=>{var Yt=tn=>{try{pe(Zt.next(tn))}catch(Ve){fe(Ve)}},Xe=tn=>{try{pe(Zt.throw(tn))}catch(Ve){fe(Ve)}},pe=tn=>tn.done?Ut(tn.value):Promise.resolve(tn.value).then(Yt,Xe);pe((Zt=Zt.apply(Ot,Ht)).next())});const{Dragger:Ft}=zt.default,wt=({classroomList:Ot,dispatch:Ht,onOk:Zt})=>{const Ut=(0,Nt.useParams)(),[fe]=oe.default.useForm(),[Yt,Xe]=(0,At.useState)(),[pe,tn]=(0,At.useState)(!1),Ve={height:100,onRemove:()=>{Xe("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:We=>Pt(void 0,null,function*(){return Xe(We),!1})};return(0,At.useEffect)(()=>{fe.setFieldsValue({publish_time:we()(we()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:we()(we()(new Date((0,Ce.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),Tt.createElement(Me.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Ot.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:pe},onOk:()=>Pt(void 0,null,function*(){fe.submit()}),onCancel:()=>{fe.resetFields(),Ht({type:"classroomList/setActionTabs",payload:{}})}},Tt.createElement(oe.default,{form:fe,onFinish:We=>Pt(void 0,null,function*(){var _e,Tn,ye;if(!(Yt!=null&&Yt.size)){Xt.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}tn(!0);let Gt=new FormData;Gt.append("type",Ot.actionTabs.type),Gt.append("file",Yt);let nn;window.location.href.indexOf("exercise")>-1?nn=`/api/exercises/${Ot.actionTabs.id}/supplement_score.json`:nn=`/api/homework_commons/${Ot.actionTabs.id}/supplement_score.json`;let Zn=yield(0,ne.ZP)(nn,{method:"post",body:Gt},!0);tn(!1),(Zn==null?void 0:Zn.status)===0&&(Zt(),fe.resetFields(),Ht({type:"classroomList/setActionTabs",payload:{}}),((Tn=(_e=Zn==null?void 0:Zn.data)==null?void 0:_e.fail)==null?void 0:Tn.length)>0&&Me.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Tt.createElement(Se.default,{pagination:!1,dataSource:(ye=Zn==null?void 0:Zn.data)==null?void 0:ye.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Ce.FH)("",Ne.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Ot.actionTabs.type}`)}}))})},Tt.createElement(oe.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Ot.actionTabs.name),Tt.createElement(oe.default.Item,{style:{marginBottom:0},label:Tt.createElement("div",null,Tt.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),Tt.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},Tt.createElement("div",null,Tt.createElement("a",{download:"\u6A21\u7248.xlsx",className:Pe.Z.downloadbutton,href:Ne.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Ot.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),Tt.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),Tt.createElement(oe.default.Item,{style:{marginBottom:0}},Tt.createElement(Ft,vt({},Ve),Tt.createElement("a",{className:Pe.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),Tt.createElement("br",null),Tt.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Cn.Z=(0,Nt.connect)(({classroomList:Ot})=>({classroomList:Ot}))(wt)},38233:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return ht}});var At=St(59301),zt=St(89070),oe=St(5083),Me=St(43418),Xt=St(92832),Se=St(8591),Nt=St(95237),Ne=St(43604),Pe={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},ne=St(61186),xe=St.n(ne),we=St(955),Ce=St(8797),Tt=St(59301);const{RangePicker:et}=oe.default,nt=({dispatch:st,classroomList:gt,onConfirm:vt})=>{const[Pt,Ft]=(0,At.useState)([]),[wt,Ot]=(0,At.useState)([]),[Ht,Zt]=(0,At.useState)(""),[Ut,fe]=(0,At.useState)([!1,!1]);(0,At.useEffect)(()=>{var pe,tn,Ve,We;if(gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((pe=gt.actionTabs)==null?void 0:pe.rangePickerDisabled),(tn=gt.actionTabs)!=null&&tn.rangePickerDisabled?fe((Ve=gt.actionTabs)==null?void 0:Ve.rangePickerDisabled):fe([!1,!1]);let _e=gt.actionTabs.data,Tn=(We=_e==null?void 0:_e.group_name)==null?void 0:We.map((ye,Gt)=>{var nn;return{group_id:_e==null?void 0:_e.group_id[Gt],group_name:_e==null?void 0:_e.group_name[Gt],is_admin:_e==null?void 0:_e.is_admin,end_time:_e==null?void 0:_e.end_time,publish_time:Array.isArray(_e==null?void 0:_e.publish_time)?(nn=_e==null?void 0:_e.publish_time)==null?void 0:nn[0]:_e==null?void 0:_e.publish_time}});Tn&&(Ft([...Tn]),Ot([...Tn]))}},[gt.actionTabs]);const Yt=()=>{st({type:"classroomList/setActionTabs",payload:{}}),Zt("")},Xe=pe=>{if(pe){const tn=wt==null?void 0:wt.filter(Ve=>{var We,_e;return(_e=(We=Ve==null?void 0:Ve.group_name)==null?void 0:We.toLowerCase())==null?void 0:_e.includes(pe==null?void 0:pe.toLowerCase())});Ft(tn)}else Ft(wt)};return Tt.createElement(Me.default,{width:980,title:Tt.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Tt.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Tt.createElement("span",{className:Pe.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Tt.createElement(Xt.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:Ht,onChange:pe=>{Zt(pe.target.value.trim()),Xe(pe.target.value.trim())}})),centered:!0,maskClosable:!1,open:gt.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>Yt(),onOk:()=>{var pe;if(wt.some(Ve=>!Ve.end_time||!Ve.publish_time)){Se.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}vt((pe=gt.actionTabs)==null?void 0:pe.index,wt),Yt()}},Tt.createElement("div",{className:Pe.modal_con},Tt.createElement(Nt.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(Pt==null?void 0:Pt.length)>0?Pt.map(function(pe,tn){return Tt.createElement(Ne.Z,{span:24,key:tn},Tt.createElement(Nt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:tn==(Pt==null?void 0:Pt.length)-1?"0px":"10px"}},Tt.createElement("div",{className:Pe.multiple_select,title:pe==null?void 0:pe.group_name},pe==null?void 0:pe.group_name),Tt.createElement("div",{className:"ml20"},Tt.createElement(et,{size:"large",allowClear:!1,disabled:Ut,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Ve=>{var We;return(0,we.Q8)(Ve,(We=gt.actionTabs)==null?void 0:We.disabledDate)},disabledTime:Ve=>(0,we.d0)(Ve),showTime:{showNow:!0,format:"HH:mm",defaultValue:[xe()((0,we.U6)(),"HH:mm"),xe()((0,we.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(pe==null?void 0:pe.publish_time)&&[xe()(pe==null?void 0:pe.publish_time),pe!=null&&pe.end_time?xe()(pe==null?void 0:pe.end_time):void 0],onChange:(Ve,We)=>{Pt[tn].publish_time=We[0],Pt[tn].end_time=We[1],Ft([...Pt]),wt.forEach(_e=>{_e.group_id===(pe==null?void 0:pe.group_id)&&(_e.publish_time=We[0],_e.end_time=We[1])}),Ot([...wt])},onCalendarChange:(Ve,We,_e)=>{if(We!=null&&We[0]&&!We[1]){const Tn=xe()(We[0]).add(7,"days");Pt[tn].publish_time=We[0],Pt[tn].end_time=Tn,Ft([...Pt]),wt.forEach(ye=>{ye.group_id===(pe==null?void 0:pe.group_id)&&(ye.publish_time=We[0],ye.end_time=Tn)}),Ot([...wt])}}})),Ut[0]?Tt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Tt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{Pt.splice(tn,1),Ft([...Pt]),wt.forEach((Ve,We)=>{Ve.group_id===(pe==null?void 0:pe.group_id)&&wt.splice(We,1)}),Ot([...wt])}})))}):Tt.createElement(Ce.Z,null))))};var ht=(0,zt.connect)(({classroomList:st})=>({classroomList:st}))(nt)},24768:function(Bn,Cn,St){"use strict";St.d(Cn,{AL:function(){return Pt},Iy:function(){return xe},Qv:function(){return Tt},ez:function(){return vt},jb:function(){return we}});var At=St(32834),zt=St.n(At),oe=St(11690),Me=St.n(oe);let Xt=1;function Se(Zt,Ut){const fe=Zt.match(/^(\s+)(?:```)/);if(fe===null)return Ut;const Yt=fe[1];return Ut.split(`
`).map(Xe=>{const pe=Xe.match(/^\s+/);if(pe===null)return Xe;const[tn]=pe;return tn.length>=Yt.length?Xe.slice(Yt.length):Xe}).join(`
`)}let Nt=[],Ne=["<ul>"];const Pe=new(zt()).Renderer,ne=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function xe(){Nt.length=0,Ne=["<ul>"]}const we={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ce(Zt,Ut,fe,Yt){if(Ut>=Zt.length||Zt[Ut].level<=fe)return Ut;var Xe=Zt[Ut];Yt.push("<li><a href='#"+Xt+Xe.anchor+"'>"+Xe.text+"</a>"),Ut++;var pe=[];return Ut=Ce(Zt,Ut,Xe.level,pe),pe.length>0&&(Yt.push("<ul>"),pe.forEach(function(tn){Yt.push(tn)}),Yt.push("</ul>")),Yt.push("</li>"),Ut=Ce(Zt,Ut,fe,Yt),Ut}function Tt(){return Ce(Nt,0,0,Ne),Ne.push("</ul>"),Ne.join("")}const et={heading(Zt){const Ut=ne.exec(Zt);if(Xt+=1,Ut)return{type:"heading",raw:Ut[0],depth:Ut[1].length,text:Ut[2]}},fences(Zt){const Ut=this.rules.block.fences.exec(Zt);if(Ut){const fe=Ut[0];let Yt=Se(fe,Ut[3]||"");const Xe=Ut[2]?Ut[2].trim():Ut[2];if(["latex","katex","math"].indexOf(Xe)>=0){const pe=st(),tn=Yt;Yt=pe,gt[pe]={type:"block",expression:tn}}return{type:"code",raw:fe,lang:Xe,text:Yt}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const st=()=>`__special_katext_id_${ht++}__`;let gt={};function vt(){return gt}function Pt(){ht=0,gt={}}function Ft(Zt){return Zt=Zt.replace(nt,(Ut,fe)=>{const Yt=st();return gt[Yt]={type:"inline",expression:fe},Yt}),Zt}const wt=Pe.listitem;Pe.listitem=function(Zt){return wt(Ft(Zt))};const Ot=Pe.paragraph;Pe.paragraph=function(Zt){return Ot(Ft(Zt))};const Ht=Pe.tablecell;Pe.tablecell=function(Zt,Ut){return Ht(Ft(Zt),Ut)},Pe.code=function(Zt,Ut,fe){const Yt=(Ut||"").match(/\S*/)[0];return Yt?["latex","katex","math"].indexOf(Yt)>=0?`<p class='editormd-tex'>${Zt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ut}">${fe?Zt:(0,oe.escape)(Zt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(fe?Zt:(0,oe.escape)(Zt,!0))+"</code></pre>"},Pe.heading=function(Zt,Ut,fe){let Yt=this.options.headerPrefix+fe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Nt.push({anchor:Yt,level:Ut,text:Zt}),"<h"+Ut+' id="'+Xt+Yt+'">'+Zt+"</h"+Ut+">"},zt().setOptions({silent:!0,gfm:!0,pedantic:!1}),zt().use({tokenizer:et,renderer:Pe}),Cn.ZP=zt()},46474:function(Bn,Cn,St){"use strict";St.d(Cn,{rX:function(){return Ft},pW:function(){return wt},gy:function(){return Ot},xY:function(){return Pt},O5:function(){return vt},hs:function(){return nt},tJ:function(){return Tt},o1:function(){return et},Rd:function(){return gt}});var At=St(89070),zt=St(43418),oe=St(28103),Me=St(8591),Xt=St(24065),Se=St(955),Nt=St(87169),Ne=St(25510),Pe="data:image/png;base64,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",ne=St.p+"static/newqrcode.a8740efb.png",xe=St(32637),we=St(59301),Ce=(Ht,Zt,Ut)=>new Promise((fe,Yt)=>{var Xe=Ve=>{try{tn(Ut.next(Ve))}catch(We){Yt(We)}},pe=Ve=>{try{tn(Ut.throw(Ve))}catch(We){Yt(We)}},tn=Ve=>Ve.done?fe(Ve.value):Promise.resolve(Ve.value).then(Xe,pe);tn((Ut=Ut.apply(Ht,Zt)).next())});const Tt=(Ht,Zt=!1,Ut=!1,fe="",Yt=!1)=>!!(et(Ht)&&ht(Ht,Zt,Ut,fe,Yt)),et=Ht=>(0,Xt.bg)()?!0:(Ht({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),nt=Ht=>{var Zt,Ut,fe;const{user:Yt}=(0,At.getDvaApp)()._store.getState();(0,Xt.bg)()&&!((Ut=(Zt=Yt==null?void 0:Yt.userInfo)==null?void 0:Zt.course)!=null&&Ut.course_public)&&!((fe=Yt==null?void 0:Yt.userInfo)!=null&&fe.profile_completed)&&Ht({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},ht=(Ht,Zt=!1,Ut=!0,fe="",Yt=!1)=>{var Xe;const{user:pe}=(0,At.getDvaApp)()._store.getState();return(Xe=pe.userInfo)!=null&&Xe.profile_completed?!0:(Ut?Ht({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:fe,isCurrentPage:Yt}}):zt.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,Se.xg)("/account/profile/edit"),st()}}),!1)},st=()=>{zt.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()}})},gt=()=>{zt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:we.createElement("div",{style:{textAlign:"center"}},we.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"),we.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:xe}),we.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},vt=()=>{var Ht;const{user:Zt}=(0,At.getDvaApp)()._store.getState();return(Ht=Zt.userInfo)!=null&&Ht.professional_certification?!0:(zt.default.confirm({title:"\u63D0\u793A",centered:!0,content:we.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,Se.xg)("/account/certification")}}),!1)},Pt=()=>(0,Xt.V9)()?!0:(zt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:we.createElement("div",{className:"tc",style:{marginLeft:-38}},we.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),we.createElement("img",{src:ne,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Ft=(Ht,Zt)=>Ht?!0:(zt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:we.createElement("div",null,we.createElement("p",null,Zt||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),we.createElement("div",{style:{marginLeft:"110px"}},we.createElement("img",{src:Pe,width:200}),we.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Se.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),wt=Ht=>{zt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:we.createElement("div",null,we.createElement("div",null,we.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"),we.createElement(oe.Z,null),we.createElement("p",{style:{color:"#666666",fontSize:12}}," ",we.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 ",we.createElement("a",null,Ht),"\u5929\u3002"),we.createElement("p",{style:{color:"#666666",fontSize:12}}," ",we.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")),we.createElement("div",{style:{textAlign:"center",marginTop:30}},we.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ne,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ot=(Ht,Zt="")=>{const{shixunsDetail:{detail:Ut}}=(0,At.getDvaApp)()._store.getState();if((Ut==null?void 0:Ut.public)===2||(Ut==null?void 0:Ut.public)===1||(Ut==null?void 0:Ut.shixun_status)===3){let fe="";return(Ut==null?void 0:Ut.public)===2&&(fe="\u5DF2\u516C\u5F00"),(Ut==null?void 0:Ut.public)===1&&(fe="\u5F85\u5BA1\u6838"),(Ut==null?void 0:Ut.shixun_status)===3&&(fe="\u5DF2\u5173\u95ED"),zt.default.info({centered:!0,icon:we.createElement(Nt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:we.createElement("div",{className:"tc",style:{marginLeft:-38}},we.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},we.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",fe,"\uFF0C",Zt,"\u3002"),we.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),we.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ne,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Ut==null?void 0:Ut.shixun_status)===2?(zt.default.confirm({centered:!0,icon:we.createElement(Nt.Z,null),title:"\u63D0\u793A",content:we.createElement("div",null,we.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Zt,"\u3002"),we.createElement("br",null),we.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:()=>{zt.default.confirm({width:440,centered:!0,icon:we.createElement(Nt.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:()=>Ce(void 0,null,function*(){(yield Ht({type:"shixunsDetail/cancelRelease",payload:{id:Ut==null?void 0:Ut.identifier}})).status!==401&&(Me.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ht({type:"shixunsDetail/getShixunsDetail",payload:{id:Ut==null?void 0:Ut.identifier}}),Ht({type:"practiceSetting/getCommonData",payload:{id:Ut==null?void 0:Ut.identifier}}))})})}}),!0):!1}},50371:function(Bn,Cn){"use strict";function St(){const At=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let zt=1;zt<arguments.length;zt++){const oe=zt<0||arguments.length<=zt?void 0:arguments[zt];oe&&Object.keys(oe).forEach(Me=>{const Xt=oe[Me];Xt!==void 0&&(At[Me]=Xt)})}return At}Cn.Z=St},13845:function(Bn,Cn,St){"use strict";St.d(Cn,{F:function(){return At},Z:function(){return zt}});function At(oe){return oe!=null&&oe===oe.window}function zt(oe,Me){var Xt,Se;if(typeof window=="undefined")return 0;const Nt=Me?"scrollTop":"scrollLeft";let Ne=0;return At(oe)?Ne=oe[Me?"pageYOffset":"pageXOffset"]:oe instanceof Document?Ne=oe.documentElement[Nt]:(oe instanceof HTMLElement||oe)&&(Ne=oe[Nt]),oe&&!At(oe)&&typeof Ne!="number"&&(Ne=(Se=((Xt=oe.ownerDocument)!==null&&Xt!==void 0?Xt:oe).documentElement)===null||Se===void 0?void 0:Se[Nt]),Ne}},56762:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return zt}});var At=St(59301);function zt(){const[,oe]=At.useReducer(Me=>Me+1,0);return oe}},68031:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Me}});var At=St(16089);function zt(Xt,Se,Nt,Ne){const Pe=Nt-Se;return Xt/=Ne/2,Xt<1?Pe/2*Xt*Xt*Xt+Se:Pe/2*((Xt-=2)*Xt*Xt+2)+Se}var oe=St(13845);function Me(Xt){let Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Nt=()=>window,callback:Ne,duration:Pe=450}=Se,ne=Nt(),xe=(0,oe.Z)(ne,!0),we=Date.now(),Ce=()=>{const et=Date.now()-we,nt=zt(et>Pe?Pe:et,xe,Xt,Pe);(0,oe.F)(ne)?ne.scrollTo(window.pageXOffset,nt):ne instanceof Document||ne.constructor.name==="HTMLDocument"?ne.documentElement.scrollTop=nt:ne.scrollTop=nt,et<Pe?(0,At.Z)(Ce):typeof Ne=="function"&&Ne()};(0,At.Z)(Ce)}},24905:function(Bn,Cn,St){"use strict";St.d(Cn,{default:function(){return Ot}});var At=St(92310),zt=St.n(At),oe=St(5630),Me=St(59301),Xt=St(36355),Se=St(1684),Nt=St(32441),Pe=Me.createContext(null),ne=St(98447),xe=St(14088),we=St(4572),Ce=function(Ht,Zt){var Ut={};for(var fe in Ht)Object.prototype.hasOwnProperty.call(Ht,fe)&&Zt.indexOf(fe)<0&&(Ut[fe]=Ht[fe]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,fe=Object.getOwnPropertySymbols(Ht);Yt<fe.length;Yt++)Zt.indexOf(fe[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ht,fe[Yt])&&(Ut[fe[Yt]]=Ht[fe[Yt]]);return Ut};const Tt=(Ht,Zt)=>{var Ut;const{prefixCls:fe,className:Yt,rootClassName:Xe,children:pe,indeterminate:tn=!1,style:Ve,onMouseEnter:We,onMouseLeave:_e,skipGroup:Tn=!1,disabled:ye}=Ht,Gt=Ce(Ht,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:nn,direction:Zn,checkbox:_n}=Me.useContext(Xt.E_),Te=Me.useContext(Pe),{isFormItemInput:rn}=Me.useContext(Nt.aM),gn=Me.useContext(Se.Z),Vn=(Ut=(Te==null?void 0:Te.disabled)||ye)!==null&&Ut!==void 0?Ut:gn,cn=Me.useRef(Gt.value);Me.useEffect(()=>{Te==null||Te.registerValue(Gt.value)},[]),Me.useEffect(()=>{if(!Tn)return Gt.value!==cn.current&&(Te==null||Te.cancelValue(cn.current),Te==null||Te.registerValue(Gt.value),cn.current=Gt.value),()=>Te==null?void 0:Te.cancelValue(Gt.value)},[Gt.value]);const Hn=nn("checkbox",fe),[me,Un]=(0,ne.ZP)(Hn),ii=Object.assign({},Gt);Te&&!Tn&&(ii.onChange=function(){Gt.onChange&&Gt.onChange.apply(Gt,arguments),Te.toggleOption&&Te.toggleOption({label:pe,value:Gt.value})},ii.name=Te.name,ii.checked=Te.value.includes(Gt.value));const xn=zt()(`${Hn}-wrapper`,{[`${Hn}-rtl`]:Zn==="rtl",[`${Hn}-wrapper-checked`]:ii.checked,[`${Hn}-wrapper-disabled`]:Vn,[`${Hn}-wrapper-in-form-item`]:rn},_n==null?void 0:_n.className,Yt,Xe,Un),ni=zt()({[`${Hn}-indeterminate`]:tn},we.A,Un),ze=tn?"mixed":void 0;return me(Me.createElement(xe.Z,{component:"Checkbox",disabled:Vn},Me.createElement("label",{className:xn,style:Object.assign(Object.assign({},_n==null?void 0:_n.style),Ve),onMouseEnter:We,onMouseLeave:_e},Me.createElement(oe.Z,Object.assign({"aria-checked":ze},ii,{prefixCls:Hn,className:ni,disabled:Vn,ref:Zt})),pe!==void 0&&Me.createElement("span",null,pe))))};var nt=Me.forwardRef(Tt),ht=St(19127),st=St(2738),gt=function(Ht,Zt){var Ut={};for(var fe in Ht)Object.prototype.hasOwnProperty.call(Ht,fe)&&Zt.indexOf(fe)<0&&(Ut[fe]=Ht[fe]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,fe=Object.getOwnPropertySymbols(Ht);Yt<fe.length;Yt++)Zt.indexOf(fe[Yt])<0&&Object.prototype.propertyIsEnumerable.call(Ht,fe[Yt])&&(Ut[fe[Yt]]=Ht[fe[Yt]]);return Ut};const vt=(Ht,Zt)=>{const{defaultValue:Ut,children:fe,options:Yt=[],prefixCls:Xe,className:pe,rootClassName:tn,style:Ve,onChange:We}=Ht,_e=gt(Ht,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Tn,direction:ye}=Me.useContext(Xt.E_),[Gt,nn]=Me.useState(_e.value||Ut||[]),[Zn,_n]=Me.useState([]);Me.useEffect(()=>{"value"in _e&&nn(_e.value||[])},[_e.value]);const Te=Me.useMemo(()=>Yt.map(Ie=>typeof Ie=="string"||typeof Ie=="number"?{label:Ie,value:Ie}:Ie),[Yt]),rn=Ie=>{_n(ke=>ke.filter(se=>se!==Ie))},gn=Ie=>{_n(ke=>[].concat((0,ht.Z)(ke),[Ie]))},Vn=Ie=>{const ke=Gt.indexOf(Ie.value),se=(0,ht.Z)(Gt);ke===-1?se.push(Ie.value):se.splice(ke,1),"value"in _e||nn(se),We==null||We(se.filter($e=>Zn.includes($e)).sort(($e,Ze)=>{const ee=Te.findIndex(Bt=>Bt.value===$e),re=Te.findIndex(Bt=>Bt.value===Ze);return ee-re}))},cn=Tn("checkbox",Xe),Hn=`${cn}-group`,[me,Un]=(0,ne.ZP)(cn),ii=(0,st.Z)(_e,["value","disabled"]),xn=Yt.length?Te.map(Ie=>Me.createElement(nt,{prefixCls:cn,key:Ie.value.toString(),disabled:"disabled"in Ie?Ie.disabled:_e.disabled,value:Ie.value,checked:Gt.includes(Ie.value),onChange:Ie.onChange,className:`${Hn}-item`,style:Ie.style,title:Ie.title},Ie.label)):fe,ni={toggleOption:Vn,value:Gt,disabled:_e.disabled,name:_e.name,registerValue:gn,cancelValue:rn},ze=zt()(Hn,{[`${Hn}-rtl`]:ye==="rtl"},pe,tn,Un);return me(Me.createElement("div",Object.assign({className:ze,style:Ve},ii,{ref:Zt}),Me.createElement(Pe.Provider,{value:ni},xn)))},Pt=Me.forwardRef(vt);var Ft=Me.memo(Pt);const wt=nt;wt.Group=Ft,wt.__ANT_CHECKBOX=!0;var Ot=wt},98447:function(Bn,Cn,St){"use strict";St.d(Cn,{C2:function(){return Xt}});var At=St(17313),zt=St(37613),oe=St(83116);const Me=Se=>{const{checkboxCls:Nt}=Se,Ne=`${Nt}-wrapper`;return[{[`${Nt}-group`]:Object.assign(Object.assign({},(0,At.Wf)(Se)),{display:"inline-flex",flexWrap:"wrap",columnGap:Se.marginXS,[`> ${Se.antCls}-row`]:{flex:1}}),[Ne]:Object.assign(Object.assign({},(0,At.Wf)(Se)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ne}`]:{marginInlineStart:0},[`&${Ne}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Nt]:Object.assign(Object.assign({},(0,At.Wf)(Se)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Se.borderRadiusSM,alignSelf:"center",[`${Nt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Nt}-inner`]:Object.assign({},(0,At.oN)(Se))},[`${Nt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Se.checkboxSize,height:Se.checkboxSize,direction:"ltr",backgroundColor:Se.colorBgContainer,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusSM,borderCollapse:"separate",transition:`all ${Se.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Se.checkboxSize/14*5,height:Se.checkboxSize/14*8,border:`${Se.lineWidthBold}px solid ${Se.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Se.motionDurationFast} ${Se.motionEaseInBack}, opacity ${Se.motionDurationFast}`}},"& + span":{paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS}})},{[`
${Ne}:not(${Ne}-disabled),
${Nt}:not(${Nt}-disabled)
`]:{[`&:hover ${Nt}-inner`]:{borderColor:Se.colorPrimary}},[`${Ne}:not(${Ne}-disabled)`]:{[`&:hover ${Nt}-checked:not(${Nt}-disabled) ${Nt}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Nt}-checked:not(${Nt}-disabled):after`]:{borderColor:Se.colorPrimaryHover}}},{[`${Nt}-checked`]:{[`${Nt}-inner`]:{backgroundColor:Se.colorPrimary,borderColor:Se.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Se.motionDurationMid} ${Se.motionEaseOutBack} ${Se.motionDurationFast}`}}},[`
${Ne}-checked:not(${Ne}-disabled),
${Nt}-checked:not(${Nt}-disabled)
`]:{[`&:hover ${Nt}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"}}},{[Nt]:{"&-indeterminate":{[`${Nt}-inner`]:{backgroundColor:Se.colorBgContainer,borderColor:Se.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Se.fontSizeLG/2,height:Se.fontSizeLG/2,backgroundColor:Se.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ne}-disabled`]:{cursor:"not-allowed"},[`${Nt}-disabled`]:{[`&, ${Nt}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Nt}-inner`]:{background:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,"&:after":{borderColor:Se.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Se.colorTextDisabled},[`&${Nt}-indeterminate ${Nt}-inner::after`]:{background:Se.colorTextDisabled}}}]};function Xt(Se,Nt){const Ne=(0,zt.TS)(Nt,{checkboxCls:`.${Se}`,checkboxSize:Nt.controlInteractiveSize});return[Me(Ne)]}Cn.ZP=(0,oe.Z)("Checkbox",(Se,Nt)=>{let{prefixCls:Ne}=Nt;return[Xt(Ne,Se)]})},93891:function(Bn,Cn,St){"use strict";var At=St(59301),zt=St(36355),oe=St(64165);const Me=Xt=>{const{componentName:Se}=Xt,{getPrefixCls:Nt}=(0,At.useContext)(zt.E_),Ne=Nt("empty");switch(Se){case"Table":case"List":return At.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return At.createElement(oe.Z,{image:oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ne}-small`});default:return At.createElement(oe.Z,null)}};Cn.Z=Me},5083:function(Bn,Cn,St){"use strict";St.d(Cn,{default:function(){return Us}});var At=St(61186),zt=St.n(At),oe=St(48736),Me=St(90111),Xt=St.n(Me),Se=St(58319),Nt=St.n(Se),Ne=St(23250),Pe=St.n(Ne),ne=St(74959),xe=St.n(ne),we=St(10238),Ce=St.n(we),Tt=St(33656),et=St.n(Tt);zt().extend(et()),zt().extend(Ce()),zt().extend(Xt()),zt().extend(Nt()),zt().extend(Pe()),zt().extend(xe()),zt().extend(function(It,Kt){var te=Kt.prototype,Oe=te.format;te.format=function(vn){var Sn=(vn||"").replace("Wo","wo");return Oe.bind(this)(Sn)}});var nt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},ht=function(Kt){var te=nt[Kt];return te||Kt.split("_")[0]},st=function(){(0,oe.ET)(!1,"Not match any format. Please help to fire a issue about this.")},gt={getNow:function(){return zt()()},getFixedDate:function(Kt){return zt()(Kt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Kt){return Kt.endOf("month")},getWeekDay:function(Kt){var te=Kt.locale("en");return te.weekday()+te.localeData().firstDayOfWeek()},getYear:function(Kt){return Kt.year()},getMonth:function(Kt){return Kt.month()},getDate:function(Kt){return Kt.date()},getHour:function(Kt){return Kt.hour()},getMinute:function(Kt){return Kt.minute()},getSecond:function(Kt){return Kt.second()},addYear:function(Kt,te){return Kt.add(te,"year")},addMonth:function(Kt,te){return Kt.add(te,"month")},addDate:function(Kt,te){return Kt.add(te,"day")},setYear:function(Kt,te){return Kt.year(te)},setMonth:function(Kt,te){return Kt.month(te)},setDate:function(Kt,te){return Kt.date(te)},setHour:function(Kt,te){return Kt.hour(te)},setMinute:function(Kt,te){return Kt.minute(te)},setSecond:function(Kt,te){return Kt.second(te)},isAfter:function(Kt,te){return Kt.isAfter(te)},isValidate:function(Kt){return Kt.isValid()},locale:{getWeekFirstDay:function(Kt){return zt()().locale(ht(Kt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Kt,te){return te.locale(ht(Kt)).weekday(0)},getWeek:function(Kt,te){return te.locale(ht(Kt)).week()},getShortWeekDays:function(Kt){return zt()().locale(ht(Kt)).localeData().weekdaysMin()},getShortMonths:function(Kt){return zt()().locale(ht(Kt)).localeData().monthsShort()},format:function(Kt,te,Oe){return te.locale(ht(Kt)).format(Oe)},parse:function(Kt,te,Oe){for(var He=ht(Kt),vn=0;vn<Oe.length;vn+=1){var Sn=Oe[vn],jn=te;if(Sn.includes("wo")||Sn.includes("Wo")){for(var Xn=jn.split("-")[0],hi=jn.split("-")[1],Ii=zt()(Xn,"YYYY").startOf("year").locale(He),li=0;li<=52;li+=1){var bi=Ii.add(li,"week");if(bi.format("Wo")===hi)return bi}return st(),null}var oi=zt()(jn,Sn,!0).locale(He);if(oi.isValid())return oi}return te&&st(),null}}},vt=gt,Pt=St(53487),Ft=St(96663),wt=St(59301),Ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Ht=Ot,Zt=St(7657),Ut=function(Kt,te){return wt.createElement(Zt.Z,(0,Ft.Z)({},Kt,{ref:te,icon:Ht}))},fe=wt.forwardRef(Ut),Yt=fe,Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},pe=Xe,tn=function(Kt,te){return wt.createElement(Zt.Z,(0,Ft.Z)({},Kt,{ref:te,icon:pe}))},Ve=wt.forwardRef(tn),We=Ve,_e=St(19248),Tn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},ye=Tn,Gt=function(Kt,te){return wt.createElement(Zt.Z,(0,Ft.Z)({},Kt,{ref:te,icon:ye}))},nn=wt.forwardRef(Gt),Zn=nn,_n=St(92310),Te=St.n(_n),rn=St(52884),gn=St(95727),Vn=St(89866),cn=St(65711),Hn=St(85745),me=St(90493),Un=St(44127),ii=St(72071),xn=St(18929),ni=St(26112),ze=St(80547),Ie=St(13697),ke=10,se=ke*10,$e=7;function Ze(It,Kt){if(!It&&!Kt)return!0;if(!It||!Kt)return!1}function ee(It,Kt,te){var Oe=Ze(Kt,te);if(typeof Oe=="boolean")return Oe;var He=Math.floor(It.getYear(Kt)/10),vn=Math.floor(It.getYear(te)/10);return He===vn}function re(It,Kt,te){var Oe=Ze(Kt,te);return typeof Oe=="boolean"?Oe:It.getYear(Kt)===It.getYear(te)}function Bt(It,Kt){var te=Math.floor(It.getMonth(Kt)/3);return te+1}function xt(It,Kt,te){var Oe=Ze(Kt,te);return typeof Oe=="boolean"?Oe:re(It,Kt,te)&&Bt(It,Kt)===Bt(It,te)}function mt(It,Kt,te){var Oe=Ze(Kt,te);return typeof Oe=="boolean"?Oe:re(It,Kt,te)&&It.getMonth(Kt)===It.getMonth(te)}function kt(It,Kt,te){var Oe=Ze(Kt,te);return typeof Oe=="boolean"?Oe:It.getYear(Kt)===It.getYear(te)&&It.getMonth(Kt)===It.getMonth(te)&&It.getDate(Kt)===It.getDate(te)}function jt(It,Kt,te){var Oe=Ze(Kt,te);return typeof Oe=="boolean"?Oe:It.getHour(Kt)===It.getHour(te)&&It.getMinute(Kt)===It.getMinute(te)&&It.getSecond(Kt)===It.getSecond(te)}function Lt(It,Kt,te,Oe){var He=Ze(te,Oe);return typeof He=="boolean"?He:re(It,te,Oe)&&It.locale.getWeek(Kt,te)===It.locale.getWeek(Kt,Oe)}function he(It,Kt,te){return kt(It,Kt,te)&&jt(It,Kt,te)}function Re(It,Kt,te,Oe){return!Kt||!te||!Oe?!1:!kt(It,Kt,Oe)&&!kt(It,te,Oe)&&It.isAfter(Oe,Kt)&&It.isAfter(te,Oe)}function on(It,Kt,te){var Oe=Kt.locale.getWeekFirstDay(It),He=Kt.setDate(te,1),vn=Kt.getWeekDay(He),Sn=Kt.addDate(He,Oe-vn);return Kt.getMonth(Sn)===Kt.getMonth(te)&&Kt.getDate(Sn)>1&&(Sn=Kt.addDate(Sn,-7)),Sn}function de(It,Kt,te){var Oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Kt){case"year":return te.addYear(It,Oe*10);case"quarter":case"month":return te.addYear(It,Oe);default:return te.addMonth(It,Oe)}}function De(It,Kt){var te=Kt.generateConfig,Oe=Kt.locale,He=Kt.format;return typeof He=="function"?He(It):te.locale.format(Oe.locale,It,He)}function Ke(It,Kt){var te=Kt.generateConfig,Oe=Kt.locale,He=Kt.formatList;return!It||typeof He[0]=="function"?null:te.locale.parse(Oe.locale,It,He)}function An(It){var Kt=It.cellDate,te=It.mode,Oe=It.disabledDate,He=It.generateConfig;if(!Oe)return!1;var vn=function(Yi,In,Ei){for(var Ui=In;Ui<=Ei;){var Gr=void 0;switch(Yi){case"date":{if(Gr=He.setDate(Kt,Ui),!Oe(Gr))return!1;break}case"month":{if(Gr=He.setMonth(Kt,Ui),!An({cellDate:Gr,mode:"month",generateConfig:He,disabledDate:Oe}))return!1;break}case"year":{if(Gr=He.setYear(Kt,Ui),!An({cellDate:Gr,mode:"year",generateConfig:He,disabledDate:Oe}))return!1;break}}Ui+=1}return!0};switch(te){case"date":case"week":return Oe(Kt);case"month":{var Sn=1,jn=He.getDate(He.getEndDate(Kt));return vn("date",Sn,jn)}case"quarter":{var Xn=Math.floor(He.getMonth(Kt)/3)*3,hi=Xn+2;return vn("month",Xn,hi)}case"year":return vn("month",0,11);case"decade":{var Ii=He.getYear(Kt),li=Math.floor(Ii/ke)*ke,bi=li+ke-1;return vn("year",li,bi)}}}function Yn(It,Kt){var te=Kt.formatList,Oe=Kt.generateConfig,He=Kt.locale;return(0,ze.Z)(function(){if(!It)return[[""],""];for(var vn="",Sn=[],jn=0;jn<te.length;jn+=1){var Xn=te[jn],hi=De(It,{generateConfig:Oe,locale:He,format:Xn});Sn.push(hi),jn===0&&(vn=hi)}return[Sn,vn]},[It,te,He],function(vn,Sn){return!he(Oe,vn[0],Sn[0])||!(0,Ie.Z)(vn[1],Sn[1],!0)||!(0,Ie.Z)(vn[2],Sn[2],!0)})}function gi(It,Kt){var te=Kt.formatList,Oe=Kt.generateConfig,He=Kt.locale,vn=(0,wt.useState)(null),Sn=(0,ii.Z)(vn,2),jn=Sn[0],Xn=Sn[1],hi=(0,wt.useRef)(null);function Ii(Ei){var Ui=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(hi.current),Ui){Xn(Ei);return}hi.current=requestAnimationFrame(function(){Xn(Ei)})}var li=Yn(jn,{formatList:te,generateConfig:Oe,locale:He}),bi=(0,ii.Z)(li,2),oi=bi[1];function Yi(Ei){Ii(Ei)}function In(){var Ei=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ii(null,Ei)}return(0,wt.useEffect)(function(){In(!0)},[It]),(0,wt.useEffect)(function(){return function(){return cancelAnimationFrame(hi.current)}},[]),[oi,Yi,In]}var fi=St(10228),xi=St(16089),Gi=St(19127),yr=St(29194),lr=new Map;function rr(It,Kt){var te;function Oe(){(0,yr.Z)(It)?Kt():te=(0,xi.Z)(function(){Oe()})}return Oe(),function(){xi.Z.cancel(te)}}function Rr(It,Kt,te){if(lr.get(It)&&cancelAnimationFrame(lr.get(It)),te<=0){lr.set(It,requestAnimationFrame(function(){It.scrollTop=Kt}));return}var Oe=Kt-It.scrollTop,He=Oe/te*10;lr.set(It,requestAnimationFrame(function(){It.scrollTop+=He,It.scrollTop!==Kt&&Rr(It,Kt,te-10)}))}function Nr(It,Kt){var te=Kt.onLeftRight,Oe=Kt.onCtrlLeftRight,He=Kt.onUpDown,vn=Kt.onPageUpDown,Sn=Kt.onEnter,jn=It.which,Xn=It.ctrlKey,hi=It.metaKey;switch(jn){case fi.Z.LEFT:if(Xn||hi){if(Oe)return Oe(-1),!0}else if(te)return te(-1),!0;break;case fi.Z.RIGHT:if(Xn||hi){if(Oe)return Oe(1),!0}else if(te)return te(1),!0;break;case fi.Z.UP:if(He)return He(-1),!0;break;case fi.Z.DOWN:if(He)return He(1),!0;break;case fi.Z.PAGE_UP:if(vn)return vn(-1),!0;break;case fi.Z.PAGE_DOWN:if(vn)return vn(1),!0;break;case fi.Z.ENTER:if(Sn)return Sn(),!0;break}return!1}function Ji(It,Kt,te,Oe){var He=It;if(!He)switch(Kt){case"time":He=Oe?"hh:mm:ss a":"HH:mm:ss";break;case"week":He="gggg-wo";break;case"month":He="YYYY-MM";break;case"quarter":He="YYYY-[Q]Q";break;case"year":He="YYYY";break;default:He=te?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return He}function Wr(It,Kt,te){var Oe=It==="time"?8:10,He=typeof Kt=="function"?Kt(te.getNow()).length:Kt.length;return Math.max(Oe,He)+2}var Xi=null,Et=new Set;function ai(It){return!Xi&&typeof window!="undefined"&&window.addEventListener&&(Xi=function(te){(0,Gi.Z)(Et).forEach(function(Oe){Oe(te)})},window.addEventListener("mousedown",Xi)),Et.add(It),function(){Et.delete(It),Et.size===0&&(window.removeEventListener("mousedown",Xi),Xi=null)}}function mi(It){var Kt=It.target;if(It.composed&&Kt.shadowRoot){var te;return((te=It.composedPath)===null||te===void 0?void 0:te.call(It)[0])||Kt}return Kt}var hr=function(Kt){return Kt==="month"||Kt==="date"?"year":Kt},wr=function(Kt){return Kt==="date"?"month":Kt},_i=function(Kt){return Kt==="month"||Kt==="date"?"quarter":Kt},Qr=function(Kt){return Kt==="date"?"week":Kt},Zr={year:hr,month:wr,quarter:_i,week:Qr,time:null,date:null};function xo(It,Kt){return It.some(function(te){return te&&te.contains(Kt)})}function an(It){var Kt=It.open,te=It.value,Oe=It.isClickOutside,He=It.triggerOpen,vn=It.forwardKeyDown,Sn=It.onKeyDown,jn=It.blurToCancel,Xn=It.onSubmit,hi=It.onCancel,Ii=It.onFocus,li=It.onBlur,bi=It.changeOnBlur,oi=(0,wt.useState)(!1),Yi=(0,ii.Z)(oi,2),In=Yi[0],Ei=Yi[1],Ui=(0,wt.useState)(!1),Gr=(0,ii.Z)(Ui,2),Dr=Gr[0],Ur=Gr[1],Xr=(0,wt.useRef)(!1),Kr=(0,wt.useRef)(!1),Ri=(0,wt.useRef)(!1),Uo={onMouseDown:function(){Ei(!0),He(!0)},onKeyDown:function(ia){var Na=function(){Ri.current=!0};if(Sn(ia,Na),!Ri.current){switch(ia.which){case fi.Z.ENTER:{Kt?Xn()!==!1&&Ei(!0):He(!0),ia.preventDefault();return}case fi.Z.TAB:{In&&Kt&&!ia.shiftKey?(Ei(!1),ia.preventDefault()):!In&&Kt&&!vn(ia)&&ia.shiftKey&&(Ei(!0),ia.preventDefault());return}case fi.Z.ESC:{Ei(!0),hi();return}}!Kt&&![fi.Z.SHIFT].includes(ia.which)?He(!0):In||vn(ia)}},onFocus:function(ia){Ei(!0),Ur(!0),Ii&&Ii(ia)},onBlur:function(ia){if(Xr.current||!Oe(document.activeElement)){Xr.current=!1;return}jn?setTimeout(function(){for(var Na=document,Aa=Na.activeElement;Aa&&Aa.shadowRoot;)Aa=Aa.shadowRoot.activeElement;Oe(Aa)&&hi()},0):Kt&&(He(!1),Kr.current&&Xn()),Ur(!1),li==null||li(ia)}};return(0,wt.useEffect)(function(){Kr.current=!1},[Kt]),(0,wt.useEffect)(function(){Kr.current=!0},[te]),(0,wt.useEffect)(function(){return ai(function(jo){var ia=mi(jo),Na=Oe(ia);Kt&&(Na?!bi&&(!Dr||Na)&&He(!1):(Xr.current=!0,(0,xi.Z)(function(){Xr.current=!1})))})}),[Uo,{focused:Dr,typing:In}]}function Qe(It,Kt){return wt.useMemo(function(){return It||(Kt?((0,oe.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Kt).map(function(te){var Oe=(0,ii.Z)(te,2),He=Oe[0],vn=Oe[1];return{label:He,value:vn}})):[])},[It,Kt])}var Jt=St(34280);function un(It){var Kt=It.valueTexts,te=It.onTextChange,Oe=wt.useState(""),He=(0,ii.Z)(Oe,2),vn=He[0],Sn=He[1],jn=wt.useRef([]);jn.current=Kt;function Xn(Ii){Sn(Ii),te(Ii)}function hi(){Sn(jn.current[0])}return(0,Jt.Z)(function(){Kt.every(function(Ii){return Ii!==vn})&&hi()},[Kt.join("||")]),[vn,Xn,hi]}var On=wt.createContext({}),Ee=On,ce=St(20135);function mn(It){var Kt=It.cellRender,te=It.monthCellRender,Oe=It.dateRender,He=wt.useMemo(function(){if(Kt)return Kt;if(!(!te&&!Oe))return function(vn,Sn){var jn=vn;return Oe&&Sn.type==="date"?Oe(jn,Sn.today):te&&Sn.type==="month"?te(jn,Sn.locale):Sn.originNode}},[Kt,te,Oe]);return He}function Wn(It,Kt){for(var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Oe=String(It);Oe.length<Kt;)Oe="".concat(te).concat(It);return Oe}var Mi=function(){for(var Kt=arguments.length,te=new Array(Kt),Oe=0;Oe<Kt;Oe++)te[Oe]=arguments[Oe];return te};function pi(It){return It==null?[]:Array.isArray(It)?It:[It]}function ue(It,Kt){return It?It[Kt]:null}function Nn(It,Kt,te){var Oe=[ue(It,0),ue(It,1)];return Oe[te]=typeof Kt=="function"?Kt(Oe[te]):Kt,!Oe[0]&&!Oe[1]?null:Oe}function ui(It){return typeof It=="function"?It():It}function Hi(It){var Kt=It.cellPrefixCls,te=It.generateConfig,Oe=It.rangedValue,He=It.hoverRangedValue,vn=It.isInView,Sn=It.isSameCell,jn=It.offsetCell,Xn=It.today,hi=It.value;function Ii(li){var bi,oi=jn(li,-1),Yi=jn(li,1),In=ue(Oe,0),Ei=ue(Oe,1),Ui=ue(He,0),Gr=ue(He,1),Dr=Re(te,Ui,Gr,li);function Ur(ia){return Sn(In,ia)}function Xr(ia){return Sn(Ei,ia)}var Kr=Sn(Ui,li),Ri=Sn(Gr,li),Uo=(Dr||Ri)&&(!vn(oi)||Xr(oi)),jo=(Dr||Kr)&&(!vn(Yi)||Ur(Yi));return bi={},(0,me.Z)(bi,"".concat(Kt,"-in-view"),vn(li)),(0,me.Z)(bi,"".concat(Kt,"-in-range"),Re(te,In,Ei,li)),(0,me.Z)(bi,"".concat(Kt,"-range-start"),Ur(li)),(0,me.Z)(bi,"".concat(Kt,"-range-end"),Xr(li)),(0,me.Z)(bi,"".concat(Kt,"-range-start-single"),Ur(li)&&!Ei),(0,me.Z)(bi,"".concat(Kt,"-range-end-single"),Xr(li)&&!In),(0,me.Z)(bi,"".concat(Kt,"-range-start-near-hover"),Ur(li)&&(Sn(oi,Ui)||Re(te,Ui,Gr,oi))),(0,me.Z)(bi,"".concat(Kt,"-range-end-near-hover"),Xr(li)&&(Sn(Yi,Gr)||Re(te,Ui,Gr,Yi))),(0,me.Z)(bi,"".concat(Kt,"-range-hover"),Dr),(0,me.Z)(bi,"".concat(Kt,"-range-hover-start"),Kr),(0,me.Z)(bi,"".concat(Kt,"-range-hover-end"),Ri),(0,me.Z)(bi,"".concat(Kt,"-range-hover-edge-start"),Uo),(0,me.Z)(bi,"".concat(Kt,"-range-hover-edge-end"),jo),(0,me.Z)(bi,"".concat(Kt,"-range-hover-edge-start-near-range"),Uo&&Sn(oi,Ei)),(0,me.Z)(bi,"".concat(Kt,"-range-hover-edge-end-near-range"),jo&&Sn(Yi,In)),(0,me.Z)(bi,"".concat(Kt,"-today"),Sn(Xn,li)),(0,me.Z)(bi,"".concat(Kt,"-selected"),Sn(hi,li)),bi}return Ii}var Ge=wt.createContext({}),pn=Ge;function je(It,Kt,te,Oe,He){var vn=It.setHour(Kt,te);return vn=It.setMinute(vn,Oe),vn=It.setSecond(vn,He),vn}function hn(It,Kt,te){if(!te)return Kt;var Oe=Kt;return Oe=It.setHour(Oe,It.getHour(te)),Oe=It.setMinute(Oe,It.getMinute(te)),Oe=It.setSecond(Oe,It.getSecond(te)),Oe}function yn(It,Kt,te,Oe,He,vn){var Sn=Math.floor(It/Oe)*Oe;if(Sn<It)return[Sn,60-He,60-vn];var jn=Math.floor(Kt/He)*He;if(jn<Kt)return[Sn,jn,60-vn];var Xn=Math.floor(te/vn)*vn;return[Sn,jn,Xn]}function dn(It,Kt){var te=It.getYear(Kt),Oe=It.getMonth(Kt)+1,He=It.getEndDate(It.getFixedDate("".concat(te,"-").concat(Oe,"-01"))),vn=It.getDate(He),Sn=Oe<10?"0".concat(Oe):"".concat(Oe);return"".concat(te,"-").concat(Sn,"-").concat(vn)}function kn(It){for(var Kt=It.prefixCls,te=It.disabledDate,Oe=It.onSelect,He=It.picker,vn=It.rowNum,Sn=It.colNum,jn=It.prefixColumn,Xn=It.rowClassName,hi=It.baseDate,Ii=It.getCellClassName,li=It.getCellText,bi=It.getCellNode,oi=It.getCellDate,Yi=It.generateConfig,In=It.titleCell,Ei=It.headerCells,Ui=wt.useContext(Ee),Gr=Ui.onDateMouseEnter,Dr=Ui.onDateMouseLeave,Ur=Ui.mode,Xr="".concat(Kt,"-cell"),Kr=[],Ri=0;Ri<vn;Ri+=1){for(var Uo=[],jo=void 0,ia=function(){var xa,es=Ri*Sn+Na,ga=oi(hi,es),sa=An({cellDate:ga,mode:Ur,disabledDate:te,generateConfig:Yi});Na===0&&(jo=ga,jn&&Uo.push(jn(jo)));var wa=In&&In(ga),Xa=wt.createElement("div",{className:"".concat(Xr,"-inner")},li(ga));Uo.push(wt.createElement("td",{key:Na,title:wa,className:Te()(Xr,(0,Un.Z)((xa={},(0,me.Z)(xa,"".concat(Xr,"-disabled"),sa),(0,me.Z)(xa,"".concat(Xr,"-start"),li(ga)===1||He==="year"&&Number(wa)%10===0),(0,me.Z)(xa,"".concat(Xr,"-end"),wa===dn(Yi,ga)||He==="year"&&Number(wa)%10===9),xa),Ii(ga))),onClick:function(){sa||Oe(ga)},onMouseEnter:function(){!sa&&Gr&&Gr(ga)},onMouseLeave:function(){!sa&&Dr&&Dr(ga)}},bi?bi(ga,Xa):Xa))},Na=0;Na<Sn;Na+=1)ia();Kr.push(wt.createElement("tr",{key:Ri,className:Xn&&Xn(jo)},Uo))}return wt.createElement("div",{className:"".concat(Kt,"-body")},wt.createElement("table",{className:"".concat(Kt,"-content")},Ei&&wt.createElement("thead",null,wt.createElement("tr",null,Ei)),wt.createElement("tbody",null,Kr)))}function Ln(It){var Kt=It.prefixCls,te=It.generateConfig,Oe=It.prefixColumn,He=It.locale,vn=It.rowCount,Sn=It.viewDate,jn=It.value,Xn=It.cellRender,hi=It.isSameCell,Ii=wt.useContext(pn),li=Ii.rangedValue,bi=Ii.hoverRangedValue,oi=on(He.locale,te,Sn),Yi="".concat(Kt,"-cell"),In=te.locale.getWeekFirstDay(He.locale),Ei=te.getNow(),Ui=[],Gr=He.shortWeekDays||(te.locale.getShortWeekDays?te.locale.getShortWeekDays(He.locale):[]);Oe&&Ui.push(wt.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Dr=0;Dr<$e;Dr+=1)Ui.push(wt.createElement("th",{key:Dr},Gr[(Dr+In)%$e]));var Ur=Hi({cellPrefixCls:Yi,today:Ei,value:jn,generateConfig:te,rangedValue:Oe?null:li,hoverRangedValue:Oe?null:bi,isSameCell:hi||function(Kr,Ri){return kt(te,Kr,Ri)},isInView:function(Ri){return mt(te,Ri,Sn)},offsetCell:function(Ri,Uo){return te.addDate(Ri,Uo)}}),Xr=Xn?function(Kr,Ri){return Xn(Kr,{originNode:Ri,today:Ei,type:"date",locale:He})}:void 0;return wt.createElement(kn,(0,Ft.Z)({},It,{rowNum:vn,colNum:$e,baseDate:oi,getCellNode:Xr,getCellText:te.getDate,getCellClassName:Ur,getCellDate:te.addDate,titleCell:function(Ri){return De(Ri,{locale:He,format:"YYYY-MM-DD",generateConfig:te})},headerCells:Ui}))}var Kn=Ln,Jn={visibility:"hidden"};function Zi(It){var Kt=It.prefixCls,te=It.prevIcon,Oe=te===void 0?"\u2039":te,He=It.nextIcon,vn=He===void 0?"\u203A":He,Sn=It.superPrevIcon,jn=Sn===void 0?"\xAB":Sn,Xn=It.superNextIcon,hi=Xn===void 0?"\xBB":Xn,Ii=It.onSuperPrev,li=It.onSuperNext,bi=It.onPrev,oi=It.onNext,Yi=It.children,In=wt.useContext(Ee),Ei=In.hideNextBtn,Ui=In.hidePrevBtn;return wt.createElement("div",{className:Kt},Ii&&wt.createElement("button",{type:"button",onClick:Ii,tabIndex:-1,className:"".concat(Kt,"-super-prev-btn"),style:Ui?Jn:{}},jn),bi&&wt.createElement("button",{type:"button",onClick:bi,tabIndex:-1,className:"".concat(Kt,"-prev-btn"),style:Ui?Jn:{}},Oe),wt.createElement("div",{className:"".concat(Kt,"-view")},Yi),oi&&wt.createElement("button",{type:"button",onClick:oi,tabIndex:-1,className:"".concat(Kt,"-next-btn"),style:Ei?Jn:{}},vn),li&&wt.createElement("button",{type:"button",onClick:li,tabIndex:-1,className:"".concat(Kt,"-super-next-btn"),style:Ei?Jn:{}},hi))}var en=Zi;function qi(It){var Kt=It.prefixCls,te=It.generateConfig,Oe=It.locale,He=It.viewDate,vn=It.onNextMonth,Sn=It.onPrevMonth,jn=It.onNextYear,Xn=It.onPrevYear,hi=It.onYearClick,Ii=It.onMonthClick,li=wt.useContext(Ee),bi=li.hideHeader;if(bi)return null;var oi="".concat(Kt,"-header"),Yi=Oe.shortMonths||(te.locale.getShortMonths?te.locale.getShortMonths(Oe.locale):[]),In=te.getMonth(He),Ei=wt.createElement("button",{type:"button",key:"year",onClick:hi,tabIndex:-1,className:"".concat(Kt,"-year-btn")},De(He,{locale:Oe,format:Oe.yearFormat,generateConfig:te})),Ui=wt.createElement("button",{type:"button",key:"month",onClick:Ii,tabIndex:-1,className:"".concat(Kt,"-month-btn")},Oe.monthFormat?De(He,{locale:Oe,format:Oe.monthFormat,generateConfig:te}):Yi[In]),Gr=Oe.monthBeforeYear?[Ui,Ei]:[Ei,Ui];return wt.createElement(en,(0,Ft.Z)({},It,{prefixCls:oi,onSuperPrev:Xn,onPrev:Sn,onNext:vn,onSuperNext:jn}),Gr)}var Er=qi,nr=6;function sn(It){var Kt=It.prefixCls,te=It.panelName,Oe=te===void 0?"date":te,He=It.keyboardConfig,vn=It.active,Sn=It.operationRef,jn=It.generateConfig,Xn=It.value,hi=It.viewDate,Ii=It.onViewDateChange,li=It.onPanelChange,bi=It.onSelect,oi="".concat(Kt,"-").concat(Oe,"-panel");Sn.current={onKeyDown:function(Ui){return Nr(Ui,(0,Un.Z)({onLeftRight:function(Dr){bi(jn.addDate(Xn||hi,Dr),"key")},onCtrlLeftRight:function(Dr){bi(jn.addYear(Xn||hi,Dr),"key")},onUpDown:function(Dr){bi(jn.addDate(Xn||hi,Dr*$e),"key")},onPageUpDown:function(Dr){bi(jn.addMonth(Xn||hi,Dr),"key")}},He))}};var Yi=function(Ui){var Gr=jn.addYear(hi,Ui);Ii(Gr),li(null,Gr)},In=function(Ui){var Gr=jn.addMonth(hi,Ui);Ii(Gr),li(null,Gr)};return wt.createElement("div",{className:Te()(oi,(0,me.Z)({},"".concat(oi,"-active"),vn))},wt.createElement(Er,(0,Ft.Z)({},It,{prefixCls:Kt,value:Xn,viewDate:hi,onPrevYear:function(){Yi(-1)},onNextYear:function(){Yi(1)},onPrevMonth:function(){In(-1)},onNextMonth:function(){In(1)},onMonthClick:function(){li("month",hi)},onYearClick:function(){li("year",hi)}})),wt.createElement(Kn,(0,Ft.Z)({},It,{onSelect:function(Ui){return bi(Ui,"mouse")},prefixCls:Kt,value:Xn,viewDate:hi,rowCount:nr})))}var si=sn;function Ai(It){var Kt=wt.useContext(Ee),te=Kt.hideHeader;if(te)return null;var Oe=It.prefixCls,He=It.generateConfig,vn=It.locale,Sn=It.value,jn=It.format,Xn="".concat(Oe,"-header");return wt.createElement(en,{prefixCls:Xn},Sn?De(Sn,{locale:vn,format:jn,generateConfig:He}):"\xA0")}var Ki=Ai;function Di(It){var Kt=It.value,te=It.generateConfig,Oe=It.disabledMinutes,He=It.disabledSeconds,vn=It.minutes,Sn=It.seconds,jn=It.use12Hours,Xn=function(Ii,li,bi,oi){var Yi=te.getNow(),In=Kt||Yi,Ei=li<0?te.getHour(Yi):li,Ui=bi<0?te.getMinute(Yi):bi,Gr=oi<0?te.getSecond(Yi):oi,Dr=Oe&&Oe(Ei);if(Dr!=null&&Dr.includes(Ui)){var Ur=vn.find(function(Ri){return!Dr.includes(Ri.value)});if(Ur)Ui=Ur.value;else return null}var Xr=He&&He(Ei,Ui);if(Xr!=null&&Xr.includes(Gr)){var Kr=Sn.find(function(Ri){return!Xr.includes(Ri.value)});if(Kr)Gr=Kr.value;else return null}return In=je(te,In,!jn||!Ii?Ei:Ei+12,Ui,Gr),In};return Xn}function vr(It){var Kt=It.prefixCls,te=It.units,Oe=It.onSelect,He=It.value,vn=It.active,Sn=It.hideDisabledOptions,jn=It.info,Xn=It.type,hi="".concat(Kt,"-cell"),Ii=wt.useContext(Ee),li=Ii.open,bi=(0,wt.useRef)(null),oi=(0,wt.useRef)(new Map),Yi=(0,wt.useRef)();return(0,wt.useLayoutEffect)(function(){var In=oi.current.get(He);In&&li!==!1&&Rr(bi.current,In.offsetTop,120)},[He]),(0,wt.useLayoutEffect)(function(){if(li){var In=oi.current.get(He);In&&(Yi.current=rr(In,function(){Rr(bi.current,In.offsetTop,0)}))}return function(){var Ei;(Ei=Yi.current)===null||Ei===void 0||Ei.call(Yi)}},[li]),wt.createElement("ul",{className:Te()("".concat(Kt,"-column"),(0,me.Z)({},"".concat(Kt,"-column-active"),vn)),ref:bi,style:{position:"relative"}},te.map(function(In){var Ei;return Sn&&In.disabled?null:wt.createElement("li",{key:In.value,ref:function(Gr){oi.current.set(In.value,Gr)},className:Te()(hi,(Ei={},(0,me.Z)(Ei,"".concat(hi,"-disabled"),In.disabled),(0,me.Z)(Ei,"".concat(hi,"-selected"),He===In.value),Ei)),onClick:function(){In.disabled||Oe(In.value)}},jn.cellRender?jn.cellRender(In.value,{today:jn.today,locale:jn.locale,originNode:wt.createElement("div",{className:"".concat(hi,"-inner")},In.label),type:"time",subType:Xn}):wt.createElement("div",{className:"".concat(hi,"-inner")},In.label))}))}var Pr=vr;function tr(It,Kt){if(It.length!==Kt.length)return!0;for(var te=0;te<It.length;te+=1)if(It[te].disabled!==Kt[te].disabled)return!0;return!1}function Oi(It,Kt,te,Oe){for(var He=[],vn=te>=1?te|0:1,Sn=It;Sn<=Kt;Sn+=vn)He.push({label:Wn(Sn,2),value:Sn,disabled:(Oe||[]).includes(Sn)});return He}function Lr(It){var Kt=It.generateConfig,te=It.prefixCls,Oe=It.operationRef,He=It.activeColumnIndex,vn=It.value,Sn=It.showHour,jn=It.showMinute,Xn=It.showSecond,hi=It.use12Hours,Ii=It.hourStep,li=Ii===void 0?1:Ii,bi=It.minuteStep,oi=bi===void 0?1:bi,Yi=It.secondStep,In=Yi===void 0?1:Yi,Ei=It.disabledHours,Ui=It.disabledMinutes,Gr=It.disabledSeconds,Dr=It.disabledTime,Ur=It.hideDisabledOptions,Xr=It.onSelect,Kr=It.cellRender,Ri=It.locale,Uo=[],jo="".concat(te,"-content"),ia="".concat(te,"-time-panel"),Na,Aa=vn?Kt.getHour(vn):-1,xa=Aa,es=vn?Kt.getMinute(vn):-1,ga=vn?Kt.getSecond(vn):-1,sa=Kt.getNow(),wa=wt.useMemo(function(){if(Dr){var Rn=Dr(sa);return[Rn.disabledHours,Rn.disabledMinutes,Rn.disabledSeconds]}return[Ei,Ui,Gr]},[Ei,Ui,Gr,Dr,sa]),Xa=(0,ii.Z)(wa,3),ns=Xa[0],za=Xa[1],Pa=Xa[2],As=Oi(0,23,li,ns&&ns()),_s=(0,ze.Z)(function(){return As},As,tr);hi&&(Na=xa>=12,xa%=12);var Qt=wt.useMemo(function(){if(!hi)return[!1,!1];var Rn=[!0,!0];return _s.forEach(function(qn){var Ci=qn.disabled,wi=qn.value;Ci||(wi>=12?Rn[1]=!1:Rn[0]=!1)}),Rn},[hi,_s]),ie=(0,ii.Z)(Qt,2),Fe=ie[0],Be=ie[1],qe=wt.useMemo(function(){return hi?_s.filter(Na?function(Rn){return Rn.value>=12}:function(Rn){return Rn.value<12}).map(function(Rn){var qn=Rn.value%12,Ci=qn===0?"12":Wn(qn,2);return(0,Un.Z)((0,Un.Z)({},Rn),{},{label:Ci,value:qn})}):_s},[hi,Na,_s]),Ye=Oi(0,59,oi,za&&za(Aa)),En=Oi(0,59,In,Pa&&Pa(Aa,es)),Pn=Di({value:vn,generateConfig:Kt,disabledMinutes:za,disabledSeconds:Pa,minutes:Ye,seconds:En,use12Hours:hi});Oe.current={onUpDown:function(qn){var Ci=Uo[He];if(Ci)for(var wi=Ci.units.findIndex(function(ir){return ir.value===Ci.value}),vi=Ci.units.length,Vi=1;Vi<vi;Vi+=1){var Si=Ci.units[(wi+qn*Vi+vi)%vi];if(Si.disabled!==!0){Ci.onSelect(Si.value);break}}}};function wn(Rn,qn,Ci,wi,vi){Rn!==!1&&Uo.push({node:wt.cloneElement(qn,{prefixCls:ia,value:Ci,active:He===Uo.length,onSelect:vi,units:wi,hideDisabledOptions:Ur}),onSelect:vi,value:Ci,units:wi})}wn(Sn,wt.createElement(Pr,{key:"hour",type:"hour",info:{today:sa,locale:Ri,cellRender:Kr}}),xa,qe,function(Rn){Xr(Pn(Na,Rn,es,ga),"mouse")}),wn(jn,wt.createElement(Pr,{key:"minute",type:"minute",info:{today:sa,locale:Ri,cellRender:Kr}}),es,Ye,function(Rn){Xr(Pn(Na,xa,Rn,ga),"mouse")}),wn(Xn,wt.createElement(Pr,{key:"second",type:"second",info:{today:sa,locale:Ri,cellRender:Kr}}),ga,En,function(Rn){Xr(Pn(Na,xa,es,Rn),"mouse")});var ei=-1;return typeof Na=="boolean"&&(ei=Na?1:0),wn(hi===!0,wt.createElement(Pr,{key:"meridiem",type:"meridiem",info:{today:sa,locale:Ri,cellRender:Kr}}),ei,[{label:"AM",value:0,disabled:Fe},{label:"PM",value:1,disabled:Be}],function(Rn){Xr(Pn(!!Rn,xa,es,ga),"mouse")}),wt.createElement("div",{className:jo},Uo.map(function(Rn){var qn=Rn.node;return qn}))}var bn=Lr,wo=function(Kt){return Kt.filter(function(te){return te!==!1}).length};function Mn(It){var Kt=It.generateConfig,te=It.format,Oe=te===void 0?"HH:mm:ss":te,He=It.prefixCls,vn=It.active,Sn=It.operationRef,jn=It.showHour,Xn=It.showMinute,hi=It.showSecond,Ii=It.use12Hours,li=Ii===void 0?!1:Ii,bi=It.onSelect,oi=It.value,Yi="".concat(He,"-time-panel"),In=wt.useRef(),Ei=wt.useState(-1),Ui=(0,ii.Z)(Ei,2),Gr=Ui[0],Dr=Ui[1],Ur=wo([jn,Xn,hi,li]);return Sn.current={onKeyDown:function(Kr){return Nr(Kr,{onLeftRight:function(Uo){Dr((Gr+Uo+Ur)%Ur)},onUpDown:function(Uo){Gr===-1?Dr(0):In.current&&In.current.onUpDown(Uo)},onEnter:function(){bi(oi||Kt.getNow(),"key"),Dr(-1)}})},onBlur:function(){Dr(-1)}},wt.createElement("div",{className:Te()(Yi,(0,me.Z)({},"".concat(Yi,"-active"),vn))},wt.createElement(Ki,(0,Ft.Z)({},It,{format:Oe,prefixCls:He})),wt.createElement(bn,(0,Ft.Z)({},It,{prefixCls:He,activeColumnIndex:Gr,operationRef:In})))}var Or=Mn,ea=Mi("date","time");function bo(It){var Kt=It.prefixCls,te=It.operationRef,Oe=It.generateConfig,He=It.value,vn=It.defaultValue,Sn=It.disabledTime,jn=It.showTime,Xn=It.onSelect,hi=It.cellRender,Ii="".concat(Kt,"-datetime-panel"),li=wt.useState(null),bi=(0,ii.Z)(li,2),oi=bi[0],Yi=bi[1],In=wt.useRef({}),Ei=wt.useRef({}),Ui=(0,ce.Z)(jn)==="object"?(0,Un.Z)({},jn):{};function Gr(Kr){var Ri=ea.indexOf(oi)+Kr,Uo=ea[Ri]||null;return Uo}var Dr=function(Ri){Ei.current.onBlur&&Ei.current.onBlur(Ri),Yi(null)};te.current={onKeyDown:function(Ri){if(Ri.which===fi.Z.TAB){var Uo=Gr(Ri.shiftKey?-1:1);return Yi(Uo),Uo&&Ri.preventDefault(),!0}if(oi){var jo=oi==="date"?In:Ei;return jo.current&&jo.current.onKeyDown&&jo.current.onKeyDown(Ri),!0}return[fi.Z.LEFT,fi.Z.RIGHT,fi.Z.UP,fi.Z.DOWN].includes(Ri.which)?(Yi("date"),!0):!1},onBlur:Dr,onClose:Dr};var Ur=function(Ri,Uo){var jo=Ri;Uo==="date"&&!He&&Ui.defaultValue?(jo=Oe.setHour(jo,Oe.getHour(Ui.defaultValue)),jo=Oe.setMinute(jo,Oe.getMinute(Ui.defaultValue)),jo=Oe.setSecond(jo,Oe.getSecond(Ui.defaultValue))):Uo==="time"&&!He&&vn&&(jo=Oe.setYear(jo,Oe.getYear(vn)),jo=Oe.setMonth(jo,Oe.getMonth(vn)),jo=Oe.setDate(jo,Oe.getDate(vn))),Xn&&Xn(jo,"mouse")},Xr=Sn?Sn(He||null):{};return wt.createElement("div",{className:Te()(Ii,(0,me.Z)({},"".concat(Ii,"-active"),oi))},wt.createElement(si,(0,Ft.Z)({},It,{cellRender:hi,operationRef:In,active:oi==="date",onSelect:function(Ri){Ur(hn(Oe,Ri,!He&&(0,ce.Z)(jn)==="object"?jn.defaultValue:null),"date")}})),wt.createElement(Or,(0,Ft.Z)({},It,{cellRender:hi?function(Kr,Ri){return hi(Kr,(0,Un.Z)((0,Un.Z)({},Ri),{},{type:"time"}))}:void 0,format:void 0},Ui,Xr,{disabledTime:null,defaultValue:void 0,operationRef:Ei,active:oi==="time",onSelect:function(Ri){Ur(Ri,"time")}})))}var ca=bo;function qo(It){var Kt=It.prefixCls,te=It.generateConfig,Oe=It.viewDate,He=It.onPrevDecades,vn=It.onNextDecades,Sn=wt.useContext(Ee),jn=Sn.hideHeader;if(jn)return null;var Xn="".concat(Kt,"-header"),hi=te.getYear(Oe),Ii=Math.floor(hi/se)*se,li=Ii+se-1;return wt.createElement(en,(0,Ft.Z)({},It,{prefixCls:Xn,onSuperPrev:He,onSuperNext:vn}),Ii,"-",li)}var dr=qo,er=3,eo=4;function ko(It){var Kt=ke-1,te=It.prefixCls,Oe=It.viewDate,He=It.generateConfig,vn=It.cellRender,Sn=It.locale,jn="".concat(te,"-cell"),Xn=He.getYear(Oe),hi=Math.floor(Xn/ke)*ke,Ii=Math.floor(Xn/se)*se,li=Ii+se-1,bi=He.setYear(Oe,Ii-Math.ceil((er*eo*ke-se)/2)),oi=function(Ei){var Ui,Gr=He.getYear(Ei),Dr=Gr+Kt;return Ui={},(0,me.Z)(Ui,"".concat(jn,"-in-view"),Ii<=Gr&&Dr<=li),(0,me.Z)(Ui,"".concat(jn,"-selected"),Gr===hi),Ui},Yi=vn?function(In,Ei){return vn(In,{originNode:Ei,today:He.getNow(),type:"decade",locale:Sn})}:void 0;return wt.createElement(kn,(0,Ft.Z)({},It,{rowNum:eo,colNum:er,baseDate:bi,getCellNode:Yi,getCellText:function(Ei){var Ui=He.getYear(Ei);return"".concat(Ui,"-").concat(Ui+Kt)},getCellClassName:oi,getCellDate:function(Ei,Ui){return He.addYear(Ei,Ui*ke)}}))}var ki=ko;function Vt(It){var Kt=It.prefixCls,te=It.onViewDateChange,Oe=It.generateConfig,He=It.viewDate,vn=It.operationRef,Sn=It.onSelect,jn=It.onPanelChange,Xn="".concat(Kt,"-decade-panel");vn.current={onKeyDown:function(bi){return Nr(bi,{onLeftRight:function(Yi){Sn(Oe.addYear(He,Yi*ke),"key")},onCtrlLeftRight:function(Yi){Sn(Oe.addYear(He,Yi*se),"key")},onUpDown:function(Yi){Sn(Oe.addYear(He,Yi*ke*er),"key")},onEnter:function(){jn("year",He)}})}};var hi=function(bi){var oi=Oe.addYear(He,bi*se);te(oi),jn(null,oi)},Ii=function(bi){Sn(bi,"mouse"),jn("year",bi)};return wt.createElement("div",{className:Xn},wt.createElement(dr,(0,Ft.Z)({},It,{prefixCls:Kt,onPrevDecades:function(){hi(-1)},onNextDecades:function(){hi(1)}})),wt.createElement(ki,(0,Ft.Z)({},It,{prefixCls:Kt,onSelect:Ii})))}var fo=Vt;function _o(It){var Kt=It.prefixCls,te=It.generateConfig,Oe=It.locale,He=It.viewDate,vn=It.onNextYear,Sn=It.onPrevYear,jn=It.onYearClick,Xn=wt.useContext(Ee),hi=Xn.hideHeader;if(hi)return null;var Ii="".concat(Kt,"-header");return wt.createElement(en,(0,Ft.Z)({},It,{prefixCls:Ii,onSuperPrev:Sn,onSuperNext:vn}),wt.createElement("button",{type:"button",onClick:jn,className:"".concat(Kt,"-year-btn")},De(He,{locale:Oe,format:Oe.yearFormat,generateConfig:te})))}var ro=_o,Yo=3,ya=4;function Ar(It){var Kt=It.prefixCls,te=It.locale,Oe=It.value,He=It.viewDate,vn=It.generateConfig,Sn=It.cellRender,jn=wt.useContext(pn),Xn=jn.rangedValue,hi=jn.hoverRangedValue,Ii="".concat(Kt,"-cell"),li=Hi({cellPrefixCls:Ii,value:Oe,generateConfig:vn,rangedValue:Xn,hoverRangedValue:hi,isSameCell:function(Ei,Ui){return mt(vn,Ei,Ui)},isInView:function(){return!0},offsetCell:function(Ei,Ui){return vn.addMonth(Ei,Ui)}}),bi=te.shortMonths||(vn.locale.getShortMonths?vn.locale.getShortMonths(te.locale):[]),oi=vn.setMonth(He,0),Yi=Sn?function(In,Ei){return Sn(In,{originNode:Ei,locale:te,today:vn.getNow(),type:"month"})}:void 0;return wt.createElement(kn,(0,Ft.Z)({},It,{rowNum:ya,colNum:Yo,baseDate:oi,getCellNode:Yi,getCellText:function(Ei){return te.monthFormat?De(Ei,{locale:te,format:te.monthFormat,generateConfig:vn}):bi[vn.getMonth(Ei)]},getCellClassName:li,getCellDate:vn.addMonth,titleCell:function(Ei){return De(Ei,{locale:te,format:"YYYY-MM",generateConfig:vn})}}))}var Tr=Ar;function uo(It){var Kt=It.prefixCls,te=It.operationRef,Oe=It.onViewDateChange,He=It.generateConfig,vn=It.value,Sn=It.viewDate,jn=It.onPanelChange,Xn=It.onSelect,hi="".concat(Kt,"-month-panel");te.current={onKeyDown:function(bi){return Nr(bi,{onLeftRight:function(Yi){Xn(He.addMonth(vn||Sn,Yi),"key")},onCtrlLeftRight:function(Yi){Xn(He.addYear(vn||Sn,Yi),"key")},onUpDown:function(Yi){Xn(He.addMonth(vn||Sn,Yi*Yo),"key")},onEnter:function(){jn("date",vn||Sn)}})}};var Ii=function(bi){var oi=He.addYear(Sn,bi);Oe(oi),jn(null,oi)};return wt.createElement("div",{className:hi},wt.createElement(ro,(0,Ft.Z)({},It,{prefixCls:Kt,onPrevYear:function(){Ii(-1)},onNextYear:function(){Ii(1)},onYearClick:function(){jn("year",Sn)}})),wt.createElement(Tr,(0,Ft.Z)({},It,{prefixCls:Kt,onSelect:function(bi){Xn(bi,"mouse"),jn("date",bi)}})))}var $r=uo;function Zo(It){var Kt=It.prefixCls,te=It.generateConfig,Oe=It.locale,He=It.viewDate,vn=It.onNextYear,Sn=It.onPrevYear,jn=It.onYearClick,Xn=wt.useContext(Ee),hi=Xn.hideHeader;if(hi)return null;var Ii="".concat(Kt,"-header");return wt.createElement(en,(0,Ft.Z)({},It,{prefixCls:Ii,onSuperPrev:Sn,onSuperNext:vn}),wt.createElement("button",{type:"button",onClick:jn,className:"".concat(Kt,"-year-btn")},De(He,{locale:Oe,format:Oe.yearFormat,generateConfig:te})))}var oa=Zo,cr=4,fr=1;function ri(It){var Kt=It.prefixCls,te=It.locale,Oe=It.value,He=It.viewDate,vn=It.generateConfig,Sn=It.cellRender,jn=wt.useContext(pn),Xn=jn.rangedValue,hi=jn.hoverRangedValue,Ii="".concat(Kt,"-cell"),li=Hi({cellPrefixCls:Ii,value:Oe,generateConfig:vn,rangedValue:Xn,hoverRangedValue:hi,isSameCell:function(In,Ei){return xt(vn,In,Ei)},isInView:function(){return!0},offsetCell:function(In,Ei){return vn.addMonth(In,Ei*3)}}),bi=vn.setDate(vn.setMonth(He,0),1),oi=Sn?function(Yi,In){return Sn(Yi,{originNode:In,locale:te,today:vn.getNow(),type:"quarter"})}:void 0;return wt.createElement(kn,(0,Ft.Z)({},It,{rowNum:fr,colNum:cr,baseDate:bi,getCellNode:oi,getCellText:function(In){return De(In,{locale:te,format:te.quarterFormat||"[Q]Q",generateConfig:vn})},getCellClassName:li,getCellDate:function(In,Ei){return vn.addMonth(In,Ei*3)},titleCell:function(In){return De(In,{locale:te,format:"YYYY-[Q]Q",generateConfig:vn})}}))}var Mr=ri;function Io(It){var Kt=It.prefixCls,te=It.operationRef,Oe=It.onViewDateChange,He=It.generateConfig,vn=It.value,Sn=It.viewDate,jn=It.onPanelChange,Xn=It.onSelect,hi="".concat(Kt,"-quarter-panel");te.current={onKeyDown:function(bi){return Nr(bi,{onLeftRight:function(Yi){Xn(He.addMonth(vn||Sn,Yi*3),"key")},onCtrlLeftRight:function(Yi){Xn(He.addYear(vn||Sn,Yi),"key")},onUpDown:function(Yi){Xn(He.addYear(vn||Sn,Yi),"key")}})}};var Ii=function(bi){var oi=He.addYear(Sn,bi);Oe(oi),jn(null,oi)};return wt.createElement("div",{className:hi},wt.createElement(oa,(0,Ft.Z)({},It,{prefixCls:Kt,onPrevYear:function(){Ii(-1)},onNextYear:function(){Ii(1)},onYearClick:function(){jn("year",Sn)}})),wt.createElement(Mr,(0,Ft.Z)({},It,{prefixCls:Kt,onSelect:function(bi){Xn(bi,"mouse")}})))}var Ma=Io;function Sa(It){var Kt=It.prefixCls,te=It.generateConfig,Oe=It.locale,He=It.value,vn=It.disabledDate,Sn=It.onSelect,jn=wt.useContext(pn),Xn=jn.rangedValue,hi=jn.hoverRangedValue,Ii=wt.useContext(Ee),li=Ii.onDateMouseEnter,bi=Ii.onDateMouseLeave,oi=(hi==null?void 0:hi[0])||(Xn==null?void 0:Xn[0]),Yi=(hi==null?void 0:hi[1])||(Xn==null?void 0:Xn[1]),In="".concat(Kt,"-cell"),Ei=function(Ur){var Xr=An({cellDate:Ur,mode:"week",disabledDate:vn,generateConfig:te});return wt.createElement("td",{key:"week",className:Te()(In,"".concat(In,"-week")),onClick:function(){Xr||Sn(Ur,"mouse")},onMouseEnter:function(){!Xr&&li&&li(Ur)},onMouseLeave:function(){!Xr&&bi&&bi(Ur)}},wt.createElement("div",{className:"".concat(In,"-inner")},te.locale.getWeek(Oe.locale,Ur)))},Ui="".concat(Kt,"-week-panel-row"),Gr=function(Ur){var Xr,Kr=Lt(te,Oe.locale,oi,Ur),Ri=Lt(te,Oe.locale,Yi,Ur);return Te()(Ui,(Xr={},(0,me.Z)(Xr,"".concat(Ui,"-selected"),!Xn&&Lt(te,Oe.locale,He,Ur)),(0,me.Z)(Xr,"".concat(Ui,"-range-start"),Kr),(0,me.Z)(Xr,"".concat(Ui,"-range-end"),Ri),(0,me.Z)(Xr,"".concat(Ui,"-range-hover"),!Kr&&!Ri&&Re(te,oi,Yi,Ur)),Xr))};return wt.createElement(si,(0,Ft.Z)({},It,{panelName:"week",prefixColumn:Ei,rowClassName:Gr,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Ta=Sa,Ra=10;function Ga(It){var Kt=It.prefixCls,te=It.generateConfig,Oe=It.viewDate,He=It.onPrevDecade,vn=It.onNextDecade,Sn=It.onDecadeClick,jn=wt.useContext(Ee),Xn=jn.hideHeader;if(Xn)return null;var hi="".concat(Kt,"-header"),Ii=te.getYear(Oe),li=Math.floor(Ii/Ra)*Ra,bi=li+Ra-1;return wt.createElement(en,(0,Ft.Z)({},It,{prefixCls:hi,onSuperPrev:He,onSuperNext:vn}),wt.createElement("button",{type:"button",onClick:Sn,className:"".concat(Kt,"-decade-btn")},li,"-",bi))}var Vs=Ga,us=3,Ys=4;function fn(It){var Kt=It.prefixCls,te=It.value,Oe=It.viewDate,He=It.locale,vn=It.generateConfig,Sn=It.cellRender,jn=wt.useContext(pn),Xn=jn.rangedValue,hi=jn.hoverRangedValue,Ii="".concat(Kt,"-cell"),li=vn.getYear(Oe),bi=Math.floor(li/Ra)*Ra,oi=bi+Ra-1,Yi=vn.setYear(Oe,bi-Math.ceil((us*Ys-Ra)/2)),In=vn.getNow(),Ei=function(Ur){var Xr=vn.getYear(Ur);return bi<=Xr&&Xr<=oi},Ui=Hi({cellPrefixCls:Ii,value:te,generateConfig:vn,rangedValue:Xn,hoverRangedValue:hi,isSameCell:function(Ur,Xr){return re(vn,Ur,Xr)},isInView:Ei,offsetCell:function(Ur,Xr){return vn.addYear(Ur,Xr)}}),Gr=Sn?function(Dr,Ur){return Sn(Dr,{originNode:Ur,today:In,type:"year",locale:He})}:void 0;return wt.createElement(kn,(0,Ft.Z)({},It,{rowNum:Ys,colNum:us,baseDate:Yi,getCellNode:Gr,getCellText:vn.getYear,getCellClassName:Ui,getCellDate:vn.addYear,titleCell:function(Ur){return De(Ur,{locale:He,format:"YYYY",generateConfig:vn})}}))}var xs=fn;function yh(It){var Kt=It.prefixCls,te=It.operationRef,Oe=It.onViewDateChange,He=It.generateConfig,vn=It.value,Sn=It.viewDate,jn=It.sourceMode,Xn=It.onSelect,hi=It.onPanelChange,Ii="".concat(Kt,"-year-panel");te.current={onKeyDown:function(oi){return Nr(oi,{onLeftRight:function(In){Xn(He.addYear(vn||Sn,In),"key")},onCtrlLeftRight:function(In){Xn(He.addYear(vn||Sn,In*Ra),"key")},onUpDown:function(In){Xn(He.addYear(vn||Sn,In*us),"key")},onEnter:function(){hi(jn==="date"?"date":"month",vn||Sn)}})}};var li=function(oi){var Yi=He.addYear(Sn,oi*10);Oe(Yi),hi(null,Yi)};return wt.createElement("div",{className:Ii},wt.createElement(Vs,(0,Ft.Z)({},It,{prefixCls:Kt,onPrevDecade:function(){li(-1)},onNextDecade:function(){li(1)},onDecadeClick:function(){hi("decade",Sn)}})),wt.createElement(xs,(0,Ft.Z)({},It,{prefixCls:Kt,onSelect:function(oi){hi(jn==="date"?"date":"month",oi),Xn(oi,"mouse")}})))}var El=yh;function $o(It,Kt,te){return te?wt.createElement("div",{className:"".concat(It,"-footer-extra")},te(Kt)):null}function To(It){var Kt=It.prefixCls,te=It.components,Oe=te===void 0?{}:te,He=It.needConfirmButton,vn=It.onNow,Sn=It.onOk,jn=It.okDisabled,Xn=It.showNow,hi=It.locale,Ii,li;if(He){var bi=Oe.button||"button";vn&&Xn!==!1&&(Ii=wt.createElement("li",{className:"".concat(Kt,"-now")},wt.createElement("a",{className:"".concat(Kt,"-now-btn"),onClick:vn},hi.now))),li=He&&wt.createElement("li",{className:"".concat(Kt,"-ok")},wt.createElement(bi,{disabled:jn,onClick:Sn},hi.ok))}return!Ii&&!li?null:wt.createElement("ul",{className:"".concat(Kt,"-ranges")},Ii,li)}var as=["date","month"];function ma(It){var Kt,te=It,Oe=te.prefixCls,He=Oe===void 0?"rc-picker":Oe,vn=te.className,Sn=te.style,jn=te.locale,Xn=te.generateConfig,hi=te.value,Ii=te.defaultValue,li=te.pickerValue,bi=te.defaultPickerValue,oi=te.disabledDate,Yi=te.mode,In=te.picker,Ei=In===void 0?"date":In,Ui=te.tabIndex,Gr=Ui===void 0?0:Ui,Dr=te.showNow,Ur=te.showTime,Xr=te.showToday,Kr=te.renderExtraFooter,Ri=te.hideHeader,Uo=te.onSelect,jo=te.onChange,ia=te.onPanelChange,Na=te.onMouseDown,Aa=te.onPickerValueChange,xa=te.onOk,es=te.components,ga=te.direction,sa=te.hourStep,wa=sa===void 0?1:sa,Xa=te.minuteStep,ns=Xa===void 0?1:Xa,za=te.secondStep,Pa=za===void 0?1:za,As=te.dateRender,_s=te.monthCellRender,Qt=te.cellRender,ie=Ei==="date"&&!!Ur||Ei==="time",Fe=24%wa===0,Be=60%ns===0,qe=60%Pa===0,Ye=wt.useContext(Ee),En=Ye.operationRef,Pn=Ye.onSelect,wn=Ye.hideRanges,ei=Ye.defaultOpenValue,Rn=wt.useContext(pn),qn=Rn.inRange,Ci=Rn.panelPosition,wi=Rn.rangedValue,vi=Rn.hoverRangedValue,Vi=wt.useRef({}),Si=wt.useRef(!0),ir=(0,xn.Z)(null,{value:hi,defaultValue:Ii,postState:function(Li){return!Li&&ei&&Ei==="time"?ei:Li}}),Qi=(0,ii.Z)(ir,2),sr=Qi[0],Jr=Qi[1],oo=(0,xn.Z)(null,{value:li,defaultValue:bi||sr,postState:function(Li){var Sr=Xn.getNow();if(!Li)return Sr;if(!sr&&Ur){var Fo=(0,ce.Z)(Ur)==="object"?Ur.defaultValue:Ii;return hn(Xn,Array.isArray(Li)?Li[0]:Li,Fo||Sr)}return Array.isArray(Li)?Li[0]:Li}}),pr=(0,ii.Z)(oo,2),Fr=pr[0],Eo=pr[1],ur=function(Li){Eo(Li),Aa&&Aa(Li)},zr=function(Li){var Sr=Zr[Ei];return Sr?Sr(Li):Li},mr=(0,xn.Z)(function(){return Ei==="time"?"time":zr("date")},{value:Yi}),Wi=(0,ii.Z)(mr,2),or=Wi[0],jr=Wi[1];wt.useEffect(function(){jr(Ei)},[Ei]);var ao=wt.useState(function(){return or}),lo=(0,ii.Z)(ao,2),ar=lo[0],Lo=lo[1],Ro=function(Li,Sr){var Fo=zr(Li||or);Lo(or),jr(Fo),ia&&(or!==Fo||he(Xn,Fr,Fr))&&ia(Sr,Fo)},Wo=function(Li,Sr){var Fo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(or===Ei||Fo)&&(Jr(Li),Uo&&Uo(Li),Pn&&Pn(Li,Sr),jo&&!he(Xn,Li,sr)&&!(oi!=null&&oi(Li))&&jo(Li))},Ho=function(Li){if(as.includes(or)){var Sr,Fo,Xo=or==="date";switch(Li===fi.Z.PAGE_UP||Li===fi.Z.PAGE_DOWN?Fo=Xo?Xn.addMonth:Xn.addYear:Fo=Xo?Xn.addDate:Xn.addMonth,Li){case fi.Z.LEFT:case fi.Z.PAGE_UP:Sr=Fo(Fr,-1);break;case fi.Z.RIGHT:case fi.Z.PAGE_DOWN:Sr=Fo(Fr,1);break;case fi.Z.UP:case fi.Z.DOWN:Sr=Fo(Fr,Number("".concat(Li===fi.Z.UP?"-":"").concat(Xo?$e:Yo)));break}if(Sr)return!(oi!=null&&oi(Sr))}return!0},ja=function(Li){if(Vi.current&&Vi.current.onKeyDown){var Sr=!0,Fo=Li.which;if([fi.Z.LEFT,fi.Z.RIGHT,fi.Z.UP,fi.Z.DOWN,fi.Z.PAGE_UP,fi.Z.PAGE_DOWN,fi.Z.ENTER].includes(Fo)&&(Li.preventDefault(),Fo!==fi.Z.ENTER&&Gr===0&&(Sr=Ho(Fo))),Sr)return Vi.current.onKeyDown(Li)}return(0,oe.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},ta=function(Li){Vi.current&&Vi.current.onBlur&&Vi.current.onBlur(Li)};En&&Ci!=="right"&&(En.current={onKeyDown:ja,onClose:function(){Vi.current&&Vi.current.onClose&&Vi.current.onClose()}}),wt.useEffect(function(){hi&&!Si.current&&Eo(hi)},[hi]),wt.useEffect(function(){Si.current=!1},[]);var Po,_r=mn({cellRender:Qt,monthCellRender:_s,dateRender:As}),po=(0,Un.Z)((0,Un.Z)({},It),{},{cellRender:_r,operationRef:Vi,prefixCls:He,viewDate:Fr,value:sr,onViewDateChange:ur,sourceMode:ar,onPanelChange:Ro,disabledDate:oi});switch(delete po.onChange,delete po.onSelect,or){case"decade":Po=wt.createElement(fo,(0,Ft.Z)({},po,{onSelect:function(Li,Sr){ur(Li),Wo(Li,Sr)}}));break;case"year":Po=wt.createElement(El,(0,Ft.Z)({},po,{onSelect:function(Li,Sr){ur(Li),Wo(Li,Sr)}}));break;case"month":Po=wt.createElement($r,(0,Ft.Z)({},po,{onSelect:function(Li,Sr){ur(Li),Wo(Li,Sr)}}));break;case"quarter":Po=wt.createElement(Ma,(0,Ft.Z)({},po,{onSelect:function(Li,Sr){ur(Li),Wo(Li,Sr)}}));break;case"week":Po=wt.createElement(Ta,(0,Ft.Z)({},po,{onSelect:function(Li,Sr){ur(Li),Wo(Li,Sr)}}));break;case"time":delete po.showTime,Po=wt.createElement(Or,(0,Ft.Z)({},po,(0,ce.Z)(Ur)==="object"?Ur:null,{onSelect:function(Li,Sr){ur(Li),Wo(Li,Sr)}}));break;default:Ur?Po=wt.createElement(ca,(0,Ft.Z)({},po,{onSelect:function(Li,Sr){ur(Li),Wo(Li,Sr)}})):Po=wt.createElement(si,(0,Ft.Z)({},po,{onSelect:function(Li,Sr){ur(Li),Wo(Li,Sr)}}))}var Ba,Ca,Ka=function(){var Li=Xn.getNow(),Sr=yn(Xn.getHour(Li),Xn.getMinute(Li),Xn.getSecond(Li),Fe?wa:1,Be?ns:1,qe?Pa:1),Fo=je(Xn,Li,Sr[0],Sr[1],Sr[2]);Wo(Fo,"submit")};wn||(Ba=$o(He,or,Kr),Ur&&or!=="date"?Ca=null:Ca=To({prefixCls:He,components:es,needConfirmButton:ie,okDisabled:!sr||oi&&oi(sr),locale:jn,showNow:Dr,onNow:ie&&Ka,onOk:function(){sr&&(Wo(sr,"submit",!0),xa&&xa(sr))}}));var vo;if(Xr&&or==="date"&&Ei==="date"&&!Ur){var no=Xn.getNow(),Co="".concat(He,"-today-btn"),qr=oi&&oi(no);vo=wt.createElement("a",{className:Te()(Co,qr&&"".concat(Co,"-disabled")),"aria-disabled":qr,onClick:function(){qr||Wo(no,"mouse",!0)}},jn.today)}return wt.createElement(Ee.Provider,{value:(0,Un.Z)((0,Un.Z)({},Ye),{},{mode:or,hideHeader:"hideHeader"in It?Ri:Ye.hideHeader,hidePrevBtn:qn&&Ci==="right",hideNextBtn:qn&&Ci==="left"})},wt.createElement("div",{tabIndex:Gr,className:Te()("".concat(He,"-panel"),vn,(Kt={},(0,me.Z)(Kt,"".concat(He,"-panel-has-range"),wi&&wi[0]&&wi[1]),(0,me.Z)(Kt,"".concat(He,"-panel-has-range-hover"),vi&&vi[0]&&vi[1]),(0,me.Z)(Kt,"".concat(He,"-panel-rtl"),ga==="rtl"),Kt)),style:Sn,onKeyDown:ja,onBlur:ta,onMouseDown:Na},Po,Ba||Ca||vo?wt.createElement("div",{className:"".concat(He,"-footer")},Ba,Ca,vo):null))}var No=ma,fa=St(35593),al={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Yr(It){var Kt,te=It.prefixCls,Oe=It.popupElement,He=It.popupStyle,vn=It.visible,Sn=It.dropdownClassName,jn=It.dropdownAlign,Xn=It.transitionName,hi=It.getPopupContainer,Ii=It.children,li=It.range,bi=It.popupPlacement,oi=It.direction,Yi="".concat(te,"-dropdown"),In=function(){return bi!==void 0?bi:oi==="rtl"?"bottomRight":"bottomLeft"};return wt.createElement(fa.Z,{showAction:[],hideAction:[],popupPlacement:In(),builtinPlacements:al,prefixCls:Yi,popupTransitionName:Xn,popup:Oe,popupAlign:jn,popupVisible:vn,popupClassName:Te()(Sn,(Kt={},(0,me.Z)(Kt,"".concat(Yi,"-range"),li),(0,me.Z)(Kt,"".concat(Yi,"-rtl"),oi==="rtl"),Kt)),popupStyle:He,getPopupContainer:hi},Ii)}var zo=Yr;function Oo(It){var Kt=It.prefixCls,te=It.presets,Oe=It.onClick,He=It.onHover;return te.length?wt.createElement("div",{className:"".concat(Kt,"-presets")},wt.createElement("ul",null,te.map(function(vn,Sn){var jn=vn.label,Xn=vn.value;return wt.createElement("li",{key:Sn,onClick:function(){return Oe==null?void 0:Oe(ui(Xn))},onMouseEnter:function(){return He==null?void 0:He(ui(Xn))},onMouseLeave:function(){return He==null?void 0:He(null)}},jn)}))):null}function zi(It){var Kt=It.picker,te=It.disabledHours,Oe=It.disabledMinutes,He=It.disabledSeconds;Kt==="time"&&(te||Oe||He)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function gs(It,Kt,te){var Oe=(0,ce.Z)(Kt)==="object"?Kt.clearIcon:te;return Oe||wt.createElement("span",{className:"".concat(It,"-clear-btn")})}function ws(It){var Kt,te=It,Oe=te.prefixCls,He=Oe===void 0?"rc-picker":Oe,vn=te.id,Sn=te.name,jn=te.tabIndex,Xn=te.style,hi=te.className,Ii=te.dropdownClassName,li=te.dropdownAlign,bi=te.popupStyle,oi=te.transitionName,Yi=te.generateConfig,In=te.locale,Ei=te.inputReadOnly,Ui=te.allowClear,Gr=te.autoFocus,Dr=te.showTime,Ur=te.picker,Xr=Ur===void 0?"date":Ur,Kr=te.format,Ri=te.use12Hours,Uo=te.value,jo=te.defaultValue,ia=te.presets,Na=te.open,Aa=te.defaultOpen,xa=te.defaultOpenValue,es=te.suffixIcon,ga=te.clearIcon,sa=te.disabled,wa=te.disabledDate,Xa=te.placeholder,ns=te.getPopupContainer,za=te.pickerRef,Pa=te.panelRender,As=te.onChange,_s=te.onOpenChange,Qt=te.onFocus,ie=te.onBlur,Fe=te.onMouseDown,Be=te.onMouseUp,qe=te.onMouseEnter,Ye=te.onMouseLeave,En=te.onContextMenu,Pn=te.onClick,wn=te.onKeyDown,ei=te.onSelect,Rn=te.direction,qn=te.autoComplete,Ci=qn===void 0?"off":qn,wi=te.inputRender,vi=te.changeOnBlur,Vi=wt.useRef(null),Si=Xr==="date"&&!!Dr||Xr==="time",ir=Qe(ia),Qi=pi(Ji(Kr,Xr,Dr,Ri)),sr=wt.useRef(null),Jr=wt.useRef(null),oo=wt.useRef(null),pr=(0,xn.Z)(null,{value:Uo,defaultValue:jo}),Fr=(0,ii.Z)(pr,2),Eo=Fr[0],ur=Fr[1],zr=wt.useState(Eo),mr=(0,ii.Z)(zr,2),Wi=mr[0],or=mr[1],jr=wt.useRef(null),ao=(0,xn.Z)(!1,{value:Na,defaultValue:Aa,postState:function(yo){return sa?!1:yo},onChange:function(yo){_s&&_s(yo),!yo&&jr.current&&jr.current.onClose&&jr.current.onClose()}}),lo=(0,ii.Z)(ao,2),ar=lo[0],Lo=lo[1],Ro=Yn(Wi,{formatList:Qi,generateConfig:Yi,locale:In}),Wo=(0,ii.Z)(Ro,2),Ho=Wo[0],ja=Wo[1],ta=un({valueTexts:Ho,onTextChange:function(yo){var ms=Ke(yo,{locale:In,formatList:Qi,generateConfig:Yi});ms&&(!wa||!wa(ms))&&or(ms)}}),Po=(0,ii.Z)(ta,3),_r=Po[0],po=Po[1],Ba=Po[2],Ca=function(yo){or(yo),ur(yo),As&&!he(Yi,Eo,yo)&&As(yo,yo?De(yo,{generateConfig:Yi,locale:In,format:Qi[0]}):"")},Ka=function(yo){sa&&yo||Lo(yo)},vo=function(yo){return ar&&jr.current&&jr.current.onKeyDown?jr.current.onKeyDown(yo):((0,oe.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},no=function(){for(var yo=arguments.length,ms=new Array(yo),Is=0;Is<yo;Is++)ms[Is]=arguments[Is];Pn==null||Pn.apply(void 0,ms),Vi.current&&(Vi.current.focus(),Ka(!0))},Co=function(yo){vi&&Ca(Wi),ie==null||ie(yo)},qr=an({blurToCancel:Si,open:ar,value:_r,triggerOpen:Ka,forwardKeyDown:vo,isClickOutside:function(yo){return!xo([sr.current,Jr.current,oo.current],yo)},onSubmit:function(){return!Wi||wa&&wa(Wi)?!1:(Ca(Wi),Ka(!1),Ba(),!0)},onCancel:function(){Ka(!1),or(Eo),Ba()},onKeyDown:function(yo,ms){wn==null||wn(yo,ms)},onFocus:Qt,onBlur:Co,changeOnBlur:vi}),Ir=(0,ii.Z)(qr,2),Li=Ir[0],Sr=Ir[1],Fo=Sr.focused,Xo=Sr.typing;wt.useEffect(function(){ar||(or(Eo),!Ho.length||Ho[0]===""?po(""):ja!==_r&&Ba())},[ar,Ho]),wt.useEffect(function(){ar||Ba()},[Xr]),wt.useEffect(function(){or(Eo)},[Eo]),za&&(za.current={focus:function(){var yo;(yo=Vi.current)===null||yo===void 0||yo.focus()},blur:function(){var yo;(yo=Vi.current)===null||yo===void 0||yo.blur()}});var Xs=gi(_r,{formatList:Qi,generateConfig:Yi,locale:In}),ks=(0,ii.Z)(Xs,3),sl=ks[0],va=ks[1],Oa=ks[2],ho=(0,Un.Z)((0,Un.Z)({},It),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Bs=wt.createElement("div",{className:"".concat(He,"-panel-layout")},wt.createElement(Oo,{prefixCls:He,presets:ir,onClick:function(yo){Ca(yo),Ka(!1)}}),wt.createElement(No,(0,Ft.Z)({},ho,{generateConfig:Yi,className:Te()((0,me.Z)({},"".concat(He,"-panel-focused"),!Xo)),value:Wi,locale:In,tabIndex:-1,onSelect:function(yo){ei==null||ei(yo),or(yo)},direction:Rn,onPanelChange:function(yo,ms){var Is=It.onPanelChange;Oa(!0),Is==null||Is(yo,ms)}})));Pa&&(Bs=Pa(Bs));var ll=wt.createElement("div",{className:"".concat(He,"-panel-container"),ref:sr,onMouseDown:function(yo){yo.preventDefault()}},Bs),ka;es&&(ka=wt.createElement("span",{className:"".concat(He,"-suffix"),onMouseDown:function(yo){yo.preventDefault()}},es));var Ha=gs(He,Ui,ga),Va=wt.createElement("span",{onMouseDown:function(yo){yo.preventDefault(),yo.stopPropagation()},onMouseUp:function(yo){yo.preventDefault(),yo.stopPropagation(),Ca(null),Ka(!1)},className:"".concat(He,"-clear"),role:"button"},Ha),ds=!!Ui&&Eo&&!sa,Os=(0,Un.Z)((0,Un.Z)((0,Un.Z)({id:vn,tabIndex:jn,disabled:sa,readOnly:Ei||typeof Qi[0]=="function"||!Xo,value:sl||_r,onChange:function(yo){po(yo.target.value)},autoFocus:Gr,placeholder:Xa,ref:Vi,title:_r},Li),{},{size:Wr(Xr,Qi[0],Yi),name:Sn},(0,ni.Z)(It,{aria:!0,data:!0})),{},{autoComplete:Ci}),ra=wi?wi(Os):wt.createElement("input",Os),Ja=function(yo,ms){(ms==="submit"||ms!=="key"&&!Si)&&(Ca(yo),Ka(!1))},js=Rn==="rtl"?"bottomRight":"bottomLeft";return wt.createElement(Ee.Provider,{value:{operationRef:jr,hideHeader:Xr==="time",onSelect:Ja,open:ar,defaultOpenValue:xa,onDateMouseEnter:va,onDateMouseLeave:Oa}},wt.createElement(zo,{visible:ar,popupElement:ll,popupStyle:bi,prefixCls:He,dropdownClassName:Ii,dropdownAlign:li,getPopupContainer:ns,transitionName:oi,popupPlacement:js,direction:Rn},wt.createElement("div",{ref:oo,className:Te()(He,hi,(Kt={},(0,me.Z)(Kt,"".concat(He,"-disabled"),sa),(0,me.Z)(Kt,"".concat(He,"-focused"),Fo),(0,me.Z)(Kt,"".concat(He,"-rtl"),Rn==="rtl"),Kt)),style:Xn,onMouseDown:Fe,onMouseUp:Be,onMouseEnter:qe,onMouseLeave:Ye,onContextMenu:En,onClick:no},wt.createElement("div",{className:Te()("".concat(He,"-input"),(0,me.Z)({},"".concat(He,"-input-placeholder"),!!sl)),ref:Jr},ra,ka,ds&&Va))))}var dl=function(It){(0,cn.Z)(te,It);var Kt=(0,Hn.Z)(te);function te(){var Oe;(0,rn.Z)(this,te);for(var He=arguments.length,vn=new Array(He),Sn=0;Sn<He;Sn++)vn[Sn]=arguments[Sn];return Oe=Kt.call.apply(Kt,[this].concat(vn)),(0,me.Z)((0,Vn.Z)(Oe),"pickerRef",wt.createRef()),(0,me.Z)((0,Vn.Z)(Oe),"focus",function(){Oe.pickerRef.current&&Oe.pickerRef.current.focus()}),(0,me.Z)((0,Vn.Z)(Oe),"blur",function(){Oe.pickerRef.current&&Oe.pickerRef.current.blur()}),Oe}return(0,gn.Z)(te,[{key:"render",value:function(){return wt.createElement(ws,(0,Ft.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),te}(wt.Component),su=dl;function xu(It,Kt){var te=It.picker,Oe=It.locale,He=It.selectedValue,vn=It.disabledDate,Sn=It.disabled,jn=It.generateConfig,Xn=ue(He,0),hi=ue(He,1);function Ii(In){return jn.locale.getWeekFirstDate(Oe.locale,In)}function li(In){var Ei=jn.getYear(In),Ui=jn.getMonth(In);return Ei*100+Ui}function bi(In){var Ei=jn.getYear(In),Ui=Bt(jn,In);return Ei*10+Ui}var oi=wt.useCallback(function(In){if(Sn[0]||vn&&vn(In))return!0;if(Sn[1]&&hi)return!kt(jn,In,hi)&&jn.isAfter(In,hi);if(!Kt&&hi)switch(te){case"quarter":return bi(In)>bi(hi);case"month":return li(In)>li(hi);case"week":return Ii(In)>Ii(hi);default:return!kt(jn,In,hi)&&jn.isAfter(In,hi)}return!1},[vn,Sn[1],hi,Kt]),Yi=wt.useCallback(function(In){if(Sn[1]||vn&&vn(In))return!0;if(Sn[0]&&Xn)return!kt(jn,In,hi)&&jn.isAfter(Xn,In);if(!Kt&&Xn)switch(te){case"quarter":return bi(In)<bi(Xn);case"month":return li(In)<li(Xn);case"week":return Ii(In)<Ii(Xn);default:return!kt(jn,In,Xn)&&jn.isAfter(Xn,In)}return!1},[vn,Sn[0],Xn,Kt]);return[oi,Yi]}var Fi=St(70425),Ua=St(6089);function Ls(It,Kt,te,Oe,He,vn,Sn,jn,Xn,hi){var Ii=wt.useState(!1),li=(0,ii.Z)(Ii,2),bi=li[0],oi=li[1],Yi=(0,Fi.useMergedState)(It||!1,{value:Kt}),In=(0,ii.Z)(Yi,2),Ei=In[0],Ui=In[1],Gr=(0,Fi.useMergedState)(It||!1,{value:Kt,onChange:function(wa){hi==null||hi(wa)}}),Dr=(0,ii.Z)(Gr,2),Ur=Dr[0],Xr=Dr[1],Kr=(0,Fi.useMergedState)(0,{value:te}),Ri=(0,ii.Z)(Kr,2),Uo=Ri[0],jo=Ri[1],ia=wt.useState(null),Na=(0,ii.Z)(ia,2),Aa=Na[0],xa=Na[1];wt.useEffect(function(){Ur&&oi(!0)},[Ur]);var es=function(wa){return wa===0?1:0},ga=(0,Ua.Z)(function(sa,wa,Xa){if(wa===!1)Xr(sa);else if(sa){jo(wa),Xr(sa);var ns=es(wa);!Ur||![Sn,jn][ns]?xa(ns):(oi(!1),Aa!==null&&xa(null))}else if(Xa==="confirm"||Xa==="blur"&&Oe){var za=Ei?es(wa):Aa;za!==null&&(oi(!1),jo(za)),xa(null),za!==null&&!Xn[za]?(0,xi.Z)(function(){var Pa,As=[He,vn][za];(Pa=As.current)===null||Pa===void 0||Pa.focus()}):Xr(!1)}else Xr(!1),Ui(!1)});return[Ur,Uo,bi,ga]}function Ql(It,Kt,te,Oe){var He=de(It,te,Oe,1);function vn(Sn){return Sn(It,Kt)?"same":Sn(He,Kt)?"closing":"far"}switch(te){case"year":return vn(function(Sn,jn){return ee(Oe,Sn,jn)});case"quarter":case"month":return vn(function(Sn,jn){return re(Oe,Sn,jn)});default:return vn(function(Sn,jn){return mt(Oe,Sn,jn)})}}function lu(It,Kt,te,Oe){var He=ue(It,0),vn=ue(It,1);if(Kt===0)return He;if(He&&vn){var Sn=Ql(He,vn,te,Oe);switch(Sn){case"same":return He;case"closing":return He;default:return de(vn,te,Oe,-1)}}return He}function uu(It){var Kt=It.values,te=It.picker,Oe=It.defaultDates,He=It.generateConfig,vn=wt.useState(function(){return[ue(Oe,0),ue(Oe,1)]}),Sn=(0,ii.Z)(vn,2),jn=Sn[0],Xn=Sn[1],hi=wt.useState(null),Ii=(0,ii.Z)(hi,2),li=Ii[0],bi=Ii[1],oi=ue(Kt,0),Yi=ue(Kt,1);function In(Ui){return jn[Ui]?jn[Ui]:ue(li,Ui)||lu(Kt,Ui,te,He)||oi||Yi||He.getNow()}function Ei(Ui,Gr){if(Ui){var Dr=Nn(li,Ui,Gr);Xn(Nn(jn,null,Gr)||[null,null]);var Ur=(Gr+1)%2;ue(Kt,Ur)||(Dr=Nn(Dr,Ui,Ur)),bi(Dr)}else(oi||Yi)&&bi(null)}return[In,Ei]}function so(It,Kt){return It&&It[0]&&It[1]&&Kt.isAfter(It[0],It[1])?[It[1],It[0]]:It}function Sh(It,Kt,te,Oe){return!!(It||Oe&&Oe[Kt]||te[(Kt+1)%2])}function Ll(It){var Kt,te,Oe,He=It,vn=He.prefixCls,Sn=vn===void 0?"rc-picker":vn,jn=He.id,Xn=He.style,hi=He.className,Ii=He.popupStyle,li=He.dropdownClassName,bi=He.transitionName,oi=He.dropdownAlign,Yi=He.getPopupContainer,In=He.generateConfig,Ei=He.locale,Ui=He.placeholder,Gr=He.autoFocus,Dr=He.disabled,Ur=He.format,Xr=He.picker,Kr=Xr===void 0?"date":Xr,Ri=He.showTime,Uo=He.use12Hours,jo=He.separator,ia=jo===void 0?"~":jo,Na=He.value,Aa=He.defaultValue,xa=He.defaultPickerValue,es=He.open,ga=He.defaultOpen,sa=He.disabledDate,wa=He.disabledTime,Xa=He.dateRender,ns=He.monthCellRender,za=He.cellRender,Pa=He.panelRender,As=He.presets,_s=He.ranges,Qt=He.allowEmpty,ie=He.allowClear,Fe=He.suffixIcon,Be=He.clearIcon,qe=He.pickerRef,Ye=He.inputReadOnly,En=He.mode,Pn=He.renderExtraFooter,wn=He.onChange,ei=He.onOpenChange,Rn=He.onPanelChange,qn=He.onCalendarChange,Ci=He.onFocus,wi=He.onBlur,vi=He.onMouseDown,Vi=He.onMouseUp,Si=He.onMouseEnter,ir=He.onMouseLeave,Qi=He.onClick,sr=He.onOk,Jr=He.onKeyDown,oo=He.components,pr=He.order,Fr=He.direction,Eo=He.activePickerIndex,ur=He.autoComplete,zr=ur===void 0?"off":ur,mr=He.changeOnBlur,Wi=Kr==="date"&&!!Ri||Kr==="time",or=(0,wt.useRef)(null),jr=(0,wt.useRef)(null),ao=(0,wt.useRef)(null),lo=(0,wt.useRef)(null),ar=(0,wt.useRef)(null),Lo=(0,wt.useRef)(null),Ro=(0,wt.useRef)(null),Wo=(0,wt.useRef)(null),Ho=pi(Ji(Ur,Kr,Ri,Uo)),ja=(0,wt.useRef)(null),ta=wt.useMemo(function(){return Array.isArray(Dr)?Dr:[Dr||!1,Dr||!1]},[Dr]),Po=(0,xn.Z)(null,{value:Na,defaultValue:Aa,postState:function(Mo){return Kr==="time"&&!pr?Mo:so(Mo,In)}}),_r=(0,ii.Z)(Po,2),po=_r[0],Ba=_r[1],Ca=uu({values:po,picker:Kr,defaultDates:xa,generateConfig:In}),Ka=(0,ii.Z)(Ca,2),vo=Ka[0],no=Ka[1],Co=(0,xn.Z)(po,{postState:function(Mo){var Jo=Mo;if(ta[0]&&ta[1])return Jo;for(var Ya=0;Ya<2;Ya+=1)ta[Ya]&&!Jo&&!ue(Jo,Ya)&&!ue(Qt,Ya)&&(Jo=Nn(Jo,In.getNow(),Ya));return Jo}}),qr=(0,ii.Z)(Co,2),Ir=qr[0],Li=qr[1],Sr=(0,xn.Z)([Kr,Kr],{value:En}),Fo=(0,ii.Z)(Sr,2),Xo=Fo[0],Xs=Fo[1];(0,wt.useEffect)(function(){Xs([Kr,Kr])},[Kr]);var ks=function(Mo,Jo){Xs(Mo),Rn&&Rn(Jo,Mo)},sl=Ls(ga,es,Eo,mr,Lo,Ro,ue(Ir,0),ue(Ir,1),ta,ei),va=(0,ii.Z)(sl,4),Oa=va[0],ho=va[1],Bs=va[2],ll=va[3],ka=Oa&&ho===0,Ha=Oa&&ho===1,Va=xu({picker:Kr,selectedValue:Ir,locale:Ei,disabled:ta,disabledDate:sa,generateConfig:In},!Oa||Bs),ds=(0,ii.Z)(Va,2),Os=ds[0],ra=ds[1],Ja=(0,wt.useState)(0),js=(0,ii.Z)(Ja,2),Ia=js[0],yo=js[1];(0,wt.useEffect)(function(){!Oa&&or.current&&yo(or.current.offsetWidth)},[Oa]);function ms($a){ll(!0,$a,"open"),(0,xi.Z)(function(){var Mo,Jo=[Lo,Ro][$a];(Mo=Jo.current)===null||Mo===void 0||Mo.focus()},0)}function Is($a,Mo){var Jo=$a,Ya=ue(Jo,0),Qs=ue(Jo,1);Ya&&Qs&&In.isAfter(Ya,Qs)&&(Kr==="week"&&!Lt(In,Ei.locale,Ya,Qs)||Kr==="quarter"&&!xt(In,Ya,Qs)||Kr!=="week"&&Kr!=="quarter"&&Kr!=="time"&&!kt(In,Ya,Qs)?Mo===0?(Jo=[Ya,null],Qs=null):(Ya=null,Jo=[null,Qs]):(Kr!=="time"||pr!==!1)&&(Jo=so(Jo,In))),Li(Jo);var ad=Jo&&Jo[0]?De(Jo[0],{generateConfig:In,locale:Ei,format:Ho[0]}):"",zl=Jo&&Jo[1]?De(Jo[1],{generateConfig:In,locale:Ei,format:Ho[0]}):"";if(qn){var Wh={range:Mo===0?"start":"end"};qn(Jo,[ad,zl],Wh)}var lh=Sh(Ya,0,ta,Qt),cc=Sh(Qs,1,ta,Qt),Zh=Jo===null||lh&&cc;Zh&&(Ba(Jo),wn&&(!he(In,ue(po,0),Ya)||!he(In,ue(po,1),Qs))&&wn(Jo,[ad,zl]))}var Cu=function(Mo){return Oa&&ja.current&&ja.current.onKeyDown?ja.current.onKeyDown(Mo):((0,oe.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ql={formatList:Ho,generateConfig:In,locale:Ei},Wa=Yn(ue(Ir,0),ql),ul=(0,ii.Z)(Wa,2),ls=ul[0],is=ul[1],hu=Yn(ue(Ir,1),ql),oh=(0,ii.Z)(hu,2),Il=oh[0],Gu=oh[1],Ku=function(Mo,Jo){var Ya=Ke(Mo,{locale:Ei,formatList:Ho,generateConfig:In}),Qs=Jo===0?Os:ra;Ya&&!Qs(Ya)&&(Li(Nn(Ir,Ya,Jo)),no(Ya,Jo))},_l=un({valueTexts:ls,onTextChange:function(Mo){return Ku(Mo,0)}}),ba=(0,ii.Z)(_l,3),Qa=ba[0],Hs=ba[1],rs=ba[2],Ea=un({valueTexts:Il,onTextChange:function(Mo){return Ku(Mo,1)}}),Ws=(0,ii.Z)(Ea,3),Sl=Ws[0],bu=Ws[1],ac=Ws[2],Ue=(0,wt.useState)(null),wh=(0,ii.Z)(Ue,2),ah=wh[0],Rc=wh[1],vd=(0,wt.useState)(null),Rh=(0,ii.Z)(vd,2),Ph=Rh[0],cf=Rh[1],fl=gi(Qa,{formatList:Ho,generateConfig:In,locale:Ei}),id=(0,ii.Z)(fl,3),Od=id[0],Id=id[1],Rd=id[2],ff=gi(Sl,{formatList:Ho,generateConfig:In,locale:Ei}),zd=(0,ii.Z)(ff,3),jd=zd[0],du=zd[1],zh=zd[2],zc=function(Mo){cf(Nn(Ir,Mo,ho)),ho===0?Id(Mo):du(Mo)},Vu=function(){cf(Nn(Ir,null,ho)),ho===0?Rd():zh()},jh=wt.useState(Oa),rd=(0,ii.Z)(jh,2),od=rd[0],Rl=rd[1];wt.useEffect(function(){Rl(Oa)},[Oa]);var sc=function(Mo){if(mr&&od){var Jo=ue(Ir,ho);Jo&&Is(Ir,ho)}return wi==null?void 0:wi(Mo)},Hd=function(Mo,Jo){return{blurToCancel:!mr&&Wi,forwardKeyDown:Cu,onBlur:sc,isClickOutside:function(Qs){return!xo([jr.current,ao.current,lo.current,or.current],Qs)},onFocus:function(Qs){Ci&&Ci(Qs)},triggerOpen:function(Qs){Qs?ll(Qs,Mo,"open"):ll(Qs,ue(Ir,Mo)?Mo:!1,"blur")},onSubmit:function(){if(!Ir||sa&&sa(Ir[Mo]))return!1;Is(Ir,Mo),Jo(),ll(!1,ho,"confirm")},onCancel:function(){ll(!1,Mo,"cancel"),Li(po),Jo()}}},tu={onKeyDown:function(Mo,Jo){Jr==null||Jr(Mo,Jo)},changeOnBlur:mr},yd=an((0,Un.Z)((0,Un.Z)({},Hd(0,rs)),{},{open:ka,value:Qa},tu)),Wd=(0,ii.Z)(yd,2),lc=Wd[0],Ch=Wd[1],xl=Ch.focused,Zd=Ch.typing,Js=an((0,Un.Z)((0,Un.Z)({},Hd(1,ac)),{},{open:Ha,value:Sl},tu)),Da=(0,ii.Z)(Js,2),cs=Da[0],gl=Da[1],cu=gl.focused,fu=gl.typing,uc=function(Mo){Qi&&Qi(Mo),!Oa&&!Lo.current.contains(Mo.target)&&!Ro.current.contains(Mo.target)&&(ta[0]?ta[1]||ms(1):ms(0))},Hh=function(Mo){vi&&vi(Mo),Oa&&(xl||cu)&&!Lo.current.contains(Mo.target)&&!Ro.current.contains(Mo.target)&&Mo.preventDefault()},Gd=po&&po[0]?De(po[0],{locale:Ei,format:"YYYYMMDDHHmmss",generateConfig:In}):"",Tu=po&&po[1]?De(po[1],{locale:Ei,format:"YYYYMMDDHHmmss",generateConfig:In}):"";(0,wt.useEffect)(function(){Oa||(Li(po),!ls.length||ls[0]===""?Hs(""):is!==Qa&&rs(),!Il.length||Il[0]===""?bu(""):Gu!==Sl&&ac())},[Oa,ls,Il]),(0,wt.useEffect)(function(){Li(po)},[Gd,Tu]);var Yu=mn({cellRender:za,monthCellRender:ns,dateRender:Xa}),gf=wt.useMemo(function(){if(Yu)return function($a,Mo){return Yu($a,(0,Un.Z)((0,Un.Z)({},Mo),{},{range:ho?"end":"start"}))}},[ho,Yu]);qe&&(qe.current={focus:function(){Lo.current&&Lo.current.focus()},blur:function(){Lo.current&&Lo.current.blur(),Ro.current&&Ro.current.blur()}});var pf=Qe(As,_s);function hc(){var $a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Mo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Jo=null;Oa&&Ph&&Ph[0]&&Ph[1]&&In.isAfter(Ph[1],Ph[0])&&(Jo=Ph);var Ya=Ri;if(Ri&&(0,ce.Z)(Ri)==="object"&&Ri.defaultValue){var Qs=Ri.defaultValue;Ya=(0,Un.Z)((0,Un.Z)({},Ri),{},{defaultValue:ue(Qs,ho)||void 0})}return wt.createElement(pn.Provider,{value:{inRange:!0,panelPosition:$a,rangedValue:ah||Ir,hoverRangedValue:Jo}},wt.createElement(No,(0,Ft.Z)({},It,Mo,{cellRender:gf,showTime:Ya,mode:Xo[ho],generateConfig:In,style:void 0,direction:Fr,disabledDate:ho===0?Os:ra,disabledTime:function(zl){return wa?wa(zl,ho===0?"start":"end"):!1},className:Te()((0,me.Z)({},"".concat(Sn,"-panel-focused"),ho===0?!Zd:!fu)),value:ue(Ir,ho),locale:Ei,tabIndex:-1,onPanelChange:function(zl,Wh){ho===0&&Rd(!0),ho===1&&zh(!0),ks(Nn(Xo,Wh,ho),Nn(Ir,zl,ho));var lh=zl;$a==="right"&&Xo[ho]===Wh&&(lh=de(lh,Wh,In,-1)),no(lh,ho)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:ho===0?ue(Ir,1):ue(Ir,0)})))}var Du=0,mf=0;if(ho&&ao.current&&ar.current&&jr.current&&Wo.current){Du=ao.current.offsetWidth+ar.current.offsetWidth;var Wf=Wo.current.offsetLeft>Du?Wo.current.offsetLeft-Du:Wo.current.offsetLeft,vf=jr.current.offsetWidth,sh=Wo.current.offsetWidth;vf&&sh&&Du>vf-sh-(Fr==="rtl"?0:Wf)&&(mf=Du)}var Sg=Fr==="rtl"?{right:Du}:{left:Du};function Zf(){var $a,Mo=$o(Sn,Xo[ho],Pn),Jo=To({prefixCls:Sn,components:oo,needConfirmButton:Wi,okDisabled:!ue(Ir,ho)||sa&&sa(Ir[ho]),locale:Ei,onOk:function(){var uh=ue(Ir,ho);uh&&(Is(Ir,ho),sr==null||sr(Ir),ll(!1,ho,"confirm"))}});if(Kr!=="time"&&!Ri){var Ya=vo(ho),Qs=de(Ya,Kr,In),ad=Xo[ho],zl=ad===Kr,Wh=hc(zl?"left":!1,{pickerValue:Ya,onPickerValueChange:function(uh){no(uh,ho)}}),lh=hc("right",{pickerValue:Qs,onPickerValueChange:function(uh){no(de(uh,Kr,In,-1),ho)}});Fr==="rtl"?$a=wt.createElement(wt.Fragment,null,lh,zl&&Wh):$a=wt.createElement(wt.Fragment,null,Wh,zl&&lh)}else $a=hc();var cc=wt.createElement("div",{className:"".concat(Sn,"-panel-layout")},wt.createElement(Oo,{prefixCls:Sn,presets:pf,onClick:function(uh){Is(uh,null),ll(!1,ho,"preset")},onHover:function(uh){Rc(uh)}}),wt.createElement("div",null,wt.createElement("div",{className:"".concat(Sn,"-panels")},$a),(Mo||Jo)&&wt.createElement("div",{className:"".concat(Sn,"-footer")},Mo,Jo)));return Pa&&(cc=Pa(cc)),wt.createElement("div",{className:"".concat(Sn,"-panel-container"),style:{marginLeft:mf},ref:jr,onMouseDown:function(uh){uh.preventDefault()}},cc)}var dc=wt.createElement("div",{className:Te()("".concat(Sn,"-range-wrapper"),"".concat(Sn,"-").concat(Kr,"-range-wrapper")),style:{minWidth:Ia}},wt.createElement("div",{ref:Wo,className:"".concat(Sn,"-range-arrow"),style:Sg}),Zf()),Sd;Fe&&(Sd=wt.createElement("span",{className:"".concat(Sn,"-suffix"),onMouseDown:function(Mo){Mo.preventDefault()}},Fe));var Gf=gs(Sn,ie,Be),bh=wt.createElement("span",{onMouseDown:function(Mo){Mo.preventDefault(),Mo.stopPropagation()},onMouseUp:function(Mo){Mo.preventDefault(),Mo.stopPropagation();var Jo=po;ta[0]||(Jo=Nn(Jo,null,0)),ta[1]||(Jo=Nn(Jo,null,1)),Is(Jo,null),ll(!1,ho,"clear")},className:"".concat(Sn,"-clear"),role:"button"},Gf),Kf=ie&&(ue(po,0)&&!ta[0]||ue(po,1)&&!ta[1]),jc={size:Wr(Kr,Ho[0],In)},yf=0,Hc=0;ao.current&&lo.current&&ar.current&&(ho===0?Hc=ao.current.offsetWidth:(yf=Du,Hc=lo.current.offsetWidth));var Vf=Fr==="rtl"?{right:yf}:{left:yf},sp=function(Mo,Jo){var Ya=Nn(Ir,Mo,ho);if(Jo==="submit"||Jo!=="key"&&!Wi){Is(Ya,ho),ho===0?Rd():zh();var Qs=ho===0?1:0;ta[Qs]?ll(!1,!1,"confirm"):ll(!1,ho,"confirm")}else Li(Ya)};return wt.createElement(Ee.Provider,{value:{operationRef:ja,hideHeader:Kr==="time",onDateMouseEnter:zc,onDateMouseLeave:Vu,hideRanges:!0,onSelect:sp,open:Oa}},wt.createElement(zo,{visible:Oa,popupElement:dc,popupStyle:Ii,prefixCls:Sn,dropdownClassName:li,dropdownAlign:oi,getPopupContainer:Yi,transitionName:bi,range:!0,direction:Fr},wt.createElement("div",(0,Ft.Z)({ref:or,className:Te()(Sn,"".concat(Sn,"-range"),hi,(Kt={},(0,me.Z)(Kt,"".concat(Sn,"-disabled"),ta[0]&&ta[1]),(0,me.Z)(Kt,"".concat(Sn,"-focused"),ho===0?xl:cu),(0,me.Z)(Kt,"".concat(Sn,"-rtl"),Fr==="rtl"),Kt)),style:Xn,onClick:uc,onMouseEnter:Si,onMouseLeave:ir,onMouseDown:Hh,onMouseUp:Vi},(0,ni.Z)(It,{aria:!0,data:!0})),wt.createElement("div",{className:Te()("".concat(Sn,"-input"),(te={},(0,me.Z)(te,"".concat(Sn,"-input-active"),ho===0),(0,me.Z)(te,"".concat(Sn,"-input-placeholder"),!!Od),te)),ref:ao},wt.createElement("input",(0,Ft.Z)({id:jn,disabled:ta[0],readOnly:Ye||typeof Ho[0]=="function"||!Zd,value:Od||Qa,onChange:function(Mo){Hs(Mo.target.value)},autoFocus:Gr,placeholder:ue(Ui,0)||"",ref:Lo},lc,jc,{autoComplete:zr}))),wt.createElement("div",{className:"".concat(Sn,"-range-separator"),ref:ar},ia),wt.createElement("div",{className:Te()("".concat(Sn,"-input"),(Oe={},(0,me.Z)(Oe,"".concat(Sn,"-input-active"),ho===1),(0,me.Z)(Oe,"".concat(Sn,"-input-placeholder"),!!jd),Oe)),ref:lo},wt.createElement("input",(0,Ft.Z)({disabled:ta[1],readOnly:Ye||typeof Ho[0]=="function"||!fu,value:jd||Sl,onChange:function(Mo){bu(Mo.target.value)},placeholder:ue(Ui,1)||"",ref:Ro},cs,jc,{autoComplete:zr}))),wt.createElement("div",{className:"".concat(Sn,"-active-bar"),style:(0,Un.Z)((0,Un.Z)({},Vf),{},{width:Hc,position:"absolute"})}),Sd,Kf&&bh)))}var Ml=function(It){(0,cn.Z)(te,It);var Kt=(0,Hn.Z)(te);function te(){var Oe;(0,rn.Z)(this,te);for(var He=arguments.length,vn=new Array(He),Sn=0;Sn<He;Sn++)vn[Sn]=arguments[Sn];return Oe=Kt.call.apply(Kt,[this].concat(vn)),(0,me.Z)((0,Vn.Z)(Oe),"pickerRef",wt.createRef()),(0,me.Z)((0,Vn.Z)(Oe),"focus",function(){Oe.pickerRef.current&&Oe.pickerRef.current.focus()}),(0,me.Z)((0,Vn.Z)(Oe),"blur",function(){Oe.pickerRef.current&&Oe.pickerRef.current.blur()}),Oe}return(0,gn.Z)(te,[{key:"render",value:function(){return wt.createElement(Ll,(0,Ft.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),te}(wt.Component),ml=Ml,Wu=su,wu=St(19080),vl=St(36355),Al=St(1684),Bh=St(19716),_h=St(32441),Oh=St(9763),gd=St(33234),Ih=St(48183),Zu=St(64993),Bl=St(9937),Ol=St(17313),pd=St(47585),td=St(74207),Pu=St(13826),Bo=St(92899),da=St(37613),cl=St(83116);const Ps=(It,Kt,te,Oe)=>{const{lineHeight:He}=It,vn=Math.floor(te*He)+2,Sn=Math.max((Kt-vn)/2,0),jn=Math.max(Kt-vn-Sn,0);return{padding:`${Sn}px ${Oe}px ${jn}px`}},Cs=It=>{const{componentCls:Kt,pickerCellCls:te,pickerCellInnerCls:Oe,cellHeight:He,motionDurationSlow:vn,borderRadiusSM:Sn,motionDurationMid:jn,cellHoverBg:Xn,lineWidth:hi,lineType:Ii,colorPrimary:li,cellActiveWithRangeBg:bi,colorTextLightSolid:oi,controlHeightSM:Yi,cellRangeBorderColor:In,pickerCellBorderGap:Ei,cellHoverWithRangeBg:Ui,cellWidth:Gr,colorTextDisabled:Dr,cellBgDisabled:Ur}=It;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:He,transform:"translateY(-50%)",transition:`all ${vn}`,content:'""'},[Oe]:{position:"relative",zIndex:2,display:"inline-block",minWidth:He,height:He,lineHeight:`${He}px`,borderRadius:Sn,transition:`background ${jn}, border ${jn}`},"&-range-hover-start, &-range-hover-end":{[Oe]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${te}-in-view),
&:hover:not(${te}-selected):not(${te}-range-start):not(${te}-range-end):not(${te}-range-hover-start):not(${te}-range-hover-end)`]:{[Oe]:{background:Xn}},[`&-in-view${te}-today ${Oe}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${hi}px ${Ii} ${li}`,borderRadius:Sn,content:'""'}},[`&-in-view${te}-in-range`]:{position:"relative","&::before":{background:bi}},[`&-in-view${te}-selected ${Oe},
&-in-view${te}-range-start ${Oe},
&-in-view${te}-range-end ${Oe}`]:{color:oi,background:li},[`&-in-view${te}-range-start:not(${te}-range-start-single),
&-in-view${te}-range-end:not(${te}-range-end-single)`]:{"&::before":{background:bi}},[`&-in-view${te}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${te}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${te}-range-hover-start:not(${te}-in-range):not(${te}-range-start):not(${te}-range-end),
&-in-view${te}-range-hover-end:not(${te}-in-range):not(${te}-range-start):not(${te}-range-end),
&-in-view${te}-range-hover-start${te}-range-start-single,
&-in-view${te}-range-hover-start${te}-range-start${te}-range-end${te}-range-end-near-hover,
&-in-view${te}-range-hover-end${te}-range-start${te}-range-end${te}-range-start-near-hover,
&-in-view${te}-range-hover-end${te}-range-end-single,
&-in-view${te}-range-hover:not(${te}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Yi,borderTop:`${hi}px dashed ${In}`,borderBottom:`${hi}px dashed ${In}`,transform:"translateY(-50%)",transition:`all ${vn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:Ei},[`&-in-view${te}-in-range${te}-range-hover::before,
&-in-view${te}-in-range${te}-range-hover-start::before,
&-in-view${te}-in-range${te}-range-hover-end::before,
&-in-view${te}-range-start${te}-range-hover::before,
&-in-view${te}-range-end${te}-range-hover::before,
&-in-view${te}-range-start:not(${te}-range-start-single)${te}-range-hover-start::before,
&-in-view${te}-range-end:not(${te}-range-end-single)${te}-range-hover-end::before,
${Kt}-panel
> :not(${Kt}-date-panel)
&-in-view${te}-in-range${te}-range-hover-start::before,
${Kt}-panel
> :not(${Kt}-date-panel)
&-in-view${te}-in-range${te}-range-hover-end::before`]:{background:Ui},[`&-in-view${te}-range-start:not(${te}-range-start-single):not(${te}-range-end) ${Oe}`]:{borderStartStartRadius:Sn,borderEndStartRadius:Sn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${te}-range-end:not(${te}-range-end-single):not(${te}-range-start) ${Oe}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Sn,borderEndEndRadius:Sn},[`&-range-hover${te}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${te}-range-hover:first-child::after,
tr > &-in-view${te}-range-hover-end:first-child::after,
&-in-view${te}-start${te}-range-hover-edge-start${te}-range-hover-edge-start-near-range::after,
&-in-view${te}-range-hover-edge-start:not(${te}-range-hover-edge-start-near-range)::after,
&-in-view${te}-range-hover-start::after`]:{insetInlineStart:(Gr-He)/2,borderInlineStart:`${hi}px dashed ${In}`,borderStartStartRadius:Sn,borderEndStartRadius:Sn},[`tr > &-in-view${te}-range-hover:last-child::after,
tr > &-in-view${te}-range-hover-start:last-child::after,
&-in-view${te}-end${te}-range-hover-edge-end${te}-range-hover-edge-end-near-range::after,
&-in-view${te}-range-hover-edge-end:not(${te}-range-hover-edge-end-near-range)::after,
&-in-view${te}-range-hover-end::after`]:{insetInlineEnd:(Gr-He)/2,borderInlineEnd:`${hi}px dashed ${In}`,borderStartEndRadius:Sn,borderEndEndRadius:Sn},"&-disabled":{color:Dr,pointerEvents:"none",[Oe]:{background:"transparent"},"&::before":{background:Ur}},[`&-disabled${te}-today ${Oe}::before`]:{borderColor:Dr}}},ts=It=>{const{componentCls:Kt,pickerCellCls:te,pickerCellInnerCls:Oe,pickerYearMonthCellWidth:He,pickerControlIconSize:vn,cellWidth:Sn,paddingSM:jn,paddingXS:Xn,paddingXXS:hi,colorBgContainer:Ii,lineWidth:li,lineType:bi,borderRadiusLG:oi,colorPrimary:Yi,colorTextHeading:In,colorSplit:Ei,pickerControlIconBorderWidth:Ui,colorIcon:Gr,textHeight:Dr,motionDurationMid:Ur,colorIconHover:Xr,fontWeightStrong:Kr,cellHeight:Ri,pickerCellPaddingVertical:Uo,colorTextDisabled:jo,colorText:ia,fontSize:Na,cellHoverWithRangeBg:Aa,motionDurationSlow:xa,withoutTimeCellHeight:es,pickerQuarterPanelContentHeight:ga,colorLink:sa,colorLinkActive:wa,colorLinkHover:Xa,cellRangeBorderColor:ns,borderRadiusSM:za,colorTextLightSolid:Pa,cellHoverBg:As,timeColumnHeight:_s,timeColumnWidth:Qt,timeCellHeight:ie,controlItemBgActive:Fe,marginXXS:Be,pickerDatePanelPaddingHorizontal:qe}=It,Ye=Sn*7+qe*2,En=(Ye-Xn*2)/3-He-jn,Pn=(Ye-Xn*2)/4-He;return{[Kt]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Ii,border:`${li}px ${bi} ${Ei}`,borderRadius:oi,outline:"none","&-focused":{borderColor:Yi},"&-rtl":{direction:"rtl",[`${Kt}-prev-icon,
${Kt}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Kt}-next-icon,
${Kt}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Ye},"&-header":{display:"flex",padding:`0 ${Xn}px`,color:In,borderBottom:`${li}px ${bi} ${Ei}`,"> *":{flex:"none"},button:{padding:0,color:Gr,lineHeight:`${Dr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Ur}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Na,"&:hover":{color:Xr}},"&-view":{flex:"auto",fontWeight:Kr,lineHeight:`${Dr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Xn},"&:hover":{color:Yi}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:vn,height:vn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:vn,height:vn,border:"0 solid currentcolor",borderBlockStartWidth:Ui,borderBlockEndWidth:0,borderInlineStartWidth:Ui,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(vn/2),insetInlineStart:Math.ceil(vn/2),display:"inline-block",width:vn,height:vn,border:"0 solid currentcolor",borderBlockStartWidth:Ui,borderBlockEndWidth:0,borderInlineStartWidth:Ui,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:Ri,fontWeight:"normal"},th:{height:Ri+Uo*2,color:ia,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Uo}px 0`,color:jo,cursor:"pointer","&-in-view":{color:ia}},Cs(It)),[`&-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-start ${Oe},
&-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-end ${Oe}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Aa,transition:`all ${xa}`,content:'""'}},[`&-date-panel
${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-start
${Oe}::after`]:{insetInlineEnd:-(Sn-Ri)/2,insetInlineStart:0},[`&-date-panel ${Kt}-cell-in-view${Kt}-cell-in-range${Kt}-cell-range-hover-end ${Oe}::after`]:{insetInlineEnd:0,insetInlineStart:-(Sn-Ri)/2},[`&-range-hover${Kt}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Kt}-content`]:{height:es*4},[Oe]:{padding:`0 ${Xn}px`}},"&-quarter-panel":{[`${Kt}-content`]:{height:ga},[`${Kt}-cell-range-hover-start::after`]:{insetInlineStart:Pn,borderInlineStart:`${li}px dashed ${ns}`,[`${Kt}-panel-rtl &`]:{insetInlineEnd:Pn,borderInlineEnd:`${li}px dashed ${ns}`}},[`${Kt}-cell-range-hover-end::after`]:{insetInlineEnd:Pn,borderInlineEnd:`${li}px dashed ${ns}`,[`${Kt}-panel-rtl &`]:{insetInlineStart:Pn,borderInlineStart:`${li}px dashed ${ns}`}}},[`&-panel ${Kt}-footer`]:{borderTop:`${li}px ${bi} ${Ei}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Dr-2*li}px`,textAlign:"center","&-extra":{padding:`0 ${jn}px`,lineHeight:`${Dr-2*li}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${li}px ${bi} ${Ei}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:sa,"&:hover":{color:Xa},"&:active":{color:wa},[`&${Kt}-today-btn-disabled`]:{color:jo,cursor:"not-allowed"}},"&-decade-panel":{[Oe]:{padding:`0 ${Xn/2}px`},[`${Kt}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Kt}-body`]:{padding:`0 ${Xn}px`},[Oe]:{width:He},[`${Kt}-cell-range-hover-start::after`]:{borderStartStartRadius:za,borderEndStartRadius:za,borderStartEndRadius:0,borderEndEndRadius:0,[`${Kt}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:za,borderEndEndRadius:za}},[`${Kt}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:za,borderEndEndRadius:za,[`${Kt}-panel-rtl &`]:{borderStartStartRadius:za,borderEndStartRadius:za,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Kt}-cell-range-hover-start::after`]:{insetInlineStart:En,borderInlineStart:`${li}px dashed ${ns}`,[`${Kt}-panel-rtl &`]:{insetInlineEnd:En,borderInlineEnd:`${li}px dashed ${ns}`}},[`${Kt}-cell-range-hover-end::after`]:{insetInlineEnd:En,borderInlineEnd:`${li}px dashed ${ns}`,[`${Kt}-panel-rtl &`]:{insetInlineStart:En,borderInlineStart:`${li}px dashed ${ns}`}}},"&-week-panel":{[`${Kt}-body`]:{padding:`${Xn}px ${jn}px`},[`${Kt}-cell`]:{[`&:hover ${Oe},
&-selected ${Oe},
${Oe}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Ur}`},"&:first-child:before":{borderStartStartRadius:za,borderEndStartRadius:za},"&:last-child:before":{borderStartEndRadius:za,borderEndEndRadius:za}},"&:hover td":{"&:before":{background:As}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${te}`]:{"&:before":{background:Yi},[`&${Kt}-cell-week`]:{color:new Zu.C(Pa).setAlpha(.5).toHexString()},[Oe]:{color:Pa}}},"&-range-hover td:before":{background:Fe}}},"&-date-panel":{[`${Kt}-body`]:{padding:`${Xn}px ${qe}px`},[`${Kt}-content`]:{width:Sn*7,th:{width:Sn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Kt}-time-panel`]:{borderInlineStart:`${li}px ${bi} ${Ei}`},[`${Kt}-date-panel,
${Kt}-time-panel`]:{transition:`opacity ${xa}`},"&-active":{[`${Kt}-date-panel,
${Kt}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Kt}-content`]:{display:"flex",flex:"auto",height:_s},"&-column":{flex:"1 0 auto",width:Qt,margin:`${hi}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Ur}`,overflowX:"hidden","&::after":{display:"block",height:_s-ie,content:'""'},"&:not(:first-child)":{borderInlineStart:`${li}px ${bi} ${Ei}`},"&-active":{background:new Zu.C(Fe).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Kt}-time-panel-cell`]:{marginInline:Be,[`${Kt}-time-panel-cell-inner`]:{display:"block",width:Qt-2*Be,height:ie,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Qt-ie)/2,color:ia,lineHeight:`${ie}px`,borderRadius:za,cursor:"pointer",transition:`background ${Ur}`,"&:hover":{background:As}},"&-selected":{[`${Kt}-time-panel-cell-inner`]:{background:Fe}},"&-disabled":{[`${Kt}-time-panel-cell-inner`]:{color:jo,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Kt}-time-panel-column:after`]:{height:_s-ie+hi*2}}}},hs=It=>{const{componentCls:Kt,colorBgContainer:te,colorError:Oe,errorActiveShadow:He,colorWarning:vn,warningActiveShadow:Sn}=It;return{[`${Kt}:not(${Kt}-disabled)`]:{[`&${Kt}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:te,borderColor:Oe},[`&${Kt}-focused, &:focus`]:Object.assign({},(0,Bl.M1)((0,da.TS)(It,{activeBorderColor:Oe,activeShadow:He}))),[`${Kt}-active-bar`]:{background:Oe}},[`&${Kt}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:te,borderColor:vn},[`&${Kt}-focused, &:focus`]:Object.assign({},(0,Bl.M1)((0,da.TS)(It,{activeBorderColor:vn,activeShadow:Sn}))),[`${Kt}-active-bar`]:{background:vn}}}}},Ms=It=>{const{componentCls:Kt,antCls:te,controlHeight:Oe,fontSize:He,paddingInline:vn,colorBgContainer:Sn,lineWidth:jn,lineType:Xn,colorBorder:hi,borderRadius:Ii,motionDurationMid:li,colorBgContainerDisabled:bi,colorTextDisabled:oi,colorTextPlaceholder:Yi,controlHeightLG:In,fontSizeLG:Ei,controlHeightSM:Ui,paddingInlineSM:Gr,paddingXS:Dr,marginXS:Ur,colorTextDescription:Xr,lineWidthBold:Kr,lineHeight:Ri,colorPrimary:Uo,motionDurationSlow:jo,zIndexPopup:ia,paddingXXS:Na,paddingSM:Aa,textHeight:xa,cellActiveWithRangeBg:es,colorPrimaryBorder:ga,sizePopupArrow:sa,borderRadiusXS:wa,borderRadiusOuter:Xa,colorBgElevated:ns,borderRadiusLG:za,boxShadowSecondary:Pa,borderRadiusSM:As,colorSplit:_s,cellHoverBg:Qt,presetsWidth:ie,presetsMaxWidth:Fe,boxShadowPopoverArrow:Be,colorTextQuaternary:qe}=It;return[{[Kt]:Object.assign(Object.assign(Object.assign({},(0,Ol.Wf)(It)),Ps(It,Oe,He,vn)),{position:"relative",display:"inline-flex",alignItems:"center",background:Sn,lineHeight:1,border:`${jn}px ${Xn} ${hi}`,borderRadius:Ii,transition:`border ${li}, box-shadow ${li}`,"&:hover, &-focused":Object.assign({},(0,Bl.pU)(It)),"&-focused":Object.assign({},(0,Bl.M1)(It)),[`&${Kt}-disabled`]:{background:bi,borderColor:hi,cursor:"not-allowed",[`${Kt}-suffix`]:{color:qe}},[`&${Kt}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Kt}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Bl.ik)(It)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Kt}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Yi}}},"&-large":Object.assign(Object.assign({},Ps(It,In,Ei,vn)),{[`${Kt}-input > input`]:{fontSize:Ei}}),"&-small":Object.assign({},Ps(It,Ui,He,Gr)),[`${Kt}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Dr/2,color:oi,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Ur}}},[`${Kt}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:oi,lineHeight:1,background:Sn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${li}, color ${li}`,"> *":{verticalAlign:"top"},"&:hover":{color:Xr}},[`${Kt}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Ei,color:oi,fontSize:Ei,verticalAlign:"top",cursor:"default",[`${Kt}-focused &`]:{color:Xr},[`${Kt}-range-separator &`]:{[`${Kt}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Kt}-clear`]:{insetInlineEnd:vn},"&:hover":{[`${Kt}-clear`]:{opacity:1}},[`${Kt}-active-bar`]:{bottom:-jn,height:Kr,marginInlineStart:vn,background:Uo,opacity:0,transition:`all ${jo} ease-out`,pointerEvents:"none"},[`&${Kt}-focused`]:{[`${Kt}-active-bar`]:{opacity:1}},[`${Kt}-range-separator`]:{alignItems:"center",padding:`0 ${Dr}px`,lineHeight:1},[`&${Kt}-small`]:{[`${Kt}-clear`]:{insetInlineEnd:Gr},[`${Kt}-active-bar`]:{marginInlineStart:Gr}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Ol.Wf)(It)),ts(It)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ia,[`&${Kt}-dropdown-hidden`]:{display:"none"},[`&${Kt}-dropdown-placement-bottomLeft`]:{[`${Kt}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Kt}-dropdown-placement-topLeft`]:{[`${Kt}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${te}-slide-up-enter${te}-slide-up-enter-active${Kt}-dropdown-placement-topLeft,
&${te}-slide-up-enter${te}-slide-up-enter-active${Kt}-dropdown-placement-topRight,
&${te}-slide-up-appear${te}-slide-up-appear-active${Kt}-dropdown-placement-topLeft,
&${te}-slide-up-appear${te}-slide-up-appear-active${Kt}-dropdown-placement-topRight`]:{animationName:Pu.Qt},[`&${te}-slide-up-enter${te}-slide-up-enter-active${Kt}-dropdown-placement-bottomLeft,
&${te}-slide-up-enter${te}-slide-up-enter-active${Kt}-dropdown-placement-bottomRight,
&${te}-slide-up-appear${te}-slide-up-appear-active${Kt}-dropdown-placement-bottomLeft,
&${te}-slide-up-appear${te}-slide-up-appear-active${Kt}-dropdown-placement-bottomRight`]:{animationName:Pu.fJ},[`&${te}-slide-up-leave${te}-slide-up-leave-active${Kt}-dropdown-placement-topLeft,
&${te}-slide-up-leave${te}-slide-up-leave-active${Kt}-dropdown-placement-topRight`]:{animationName:Pu.ly},[`&${te}-slide-up-leave${te}-slide-up-leave-active${Kt}-dropdown-placement-bottomLeft,
&${te}-slide-up-leave${te}-slide-up-leave-active${Kt}-dropdown-placement-bottomRight`]:{animationName:Pu.Uw},[`${Kt}-panel > ${Kt}-time-panel`]:{paddingTop:Na},[`${Kt}-ranges`]:{marginBottom:0,padding:`${Na}px ${Aa}px`,overflow:"hidden",lineHeight:`${xa-2*jn-Dr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Kt}-preset > ${te}-tag-blue`]:{color:Uo,background:es,borderColor:ga,cursor:"pointer"},[`${Kt}-ok`]:{marginInlineStart:"auto"}},[`${Kt}-range-wrapper`]:{display:"flex",position:"relative"},[`${Kt}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:vn*1.5,transition:`left ${jo} ease-out`},(0,pd.r)(sa,wa,Xa,ns,Be)),[`${Kt}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:ns,borderRadius:za,boxShadow:Pa,transition:`margin ${jo}`,[`${Kt}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Kt}-presets`]:{display:"flex",flexDirection:"column",minWidth:ie,maxWidth:Fe,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Dr,borderInlineEnd:`${jn}px ${Xn} ${_s}`,li:Object.assign(Object.assign({},Ol.vS),{borderRadius:As,paddingInline:Dr,paddingBlock:(Ui-Math.round(He*Ri))/2,cursor:"pointer",transition:`all ${jo}`,"+ li":{marginTop:Ur},"&:hover":{background:Qt}})}},[`${Kt}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Kt}-panel`]:{borderWidth:`0 0 ${jn}px`},"&:last-child":{[`${Kt}-panel`]:{borderWidth:0}}},[`${Kt}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Kt}-content,
table`]:{textAlign:"center"},"&-focused":{borderColor:hi}}}}),"&-dropdown-range":{padding:`${sa*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Kt}-separator`]:{transform:"rotate(180deg)"},[`${Kt}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Pu.oN)(It,"slide-up"),(0,Pu.oN)(It,"slide-down"),(0,Bo.Fm)(It,"move-up"),(0,Bo.Fm)(It,"move-down")]},bs=It=>{const{componentCls:Kt,controlHeightLG:te,paddingXXS:Oe,padding:He}=It;return{pickerCellCls:`${Kt}-cell`,pickerCellInnerCls:`${Kt}-cell-inner`,pickerYearMonthCellWidth:te*1.5,pickerQuarterPanelContentHeight:te*1.4,pickerCellPaddingVertical:Oe+Oe/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:He+Oe/2}},nh=It=>({cellHoverBg:It.controlItemBgHover,cellActiveWithRangeBg:It.controlItemBgActive,cellHoverWithRangeBg:new Zu.C(It.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Zu.C(It.colorPrimary).lighten(20).toHexString(),cellBgDisabled:It.colorBgContainerDisabled,timeColumnWidth:It.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:It.controlHeightSM*1.5,cellHeight:It.controlHeightSM,textHeight:It.controlHeightLG,withoutTimeCellHeight:It.controlHeightLG*1.65});var $l=(0,cl.Z)("DatePicker",It=>{const Kt=(0,da.TS)((0,Bl.e5)(It),bs(It));return[Ms(Kt),hs(Kt),(0,td.c)(It,{focusElCls:`${It.componentCls}-focused`})]},It=>Object.assign(Object.assign(Object.assign({},(0,Bl.TM)(It)),nh(It)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:It.zIndexPopupBase+50}));function ps(It,Kt,te){return te!==void 0?te:Kt==="year"&&It.lang.yearPlaceholder?It.lang.yearPlaceholder:Kt==="quarter"&&It.lang.quarterPlaceholder?It.lang.quarterPlaceholder:Kt==="month"&&It.lang.monthPlaceholder?It.lang.monthPlaceholder:Kt==="week"&&It.lang.weekPlaceholder?It.lang.weekPlaceholder:Kt==="time"&&It.timePickerLocale.placeholder?It.timePickerLocale.placeholder:It.lang.placeholder}function ic(It,Kt,te){return te!==void 0?te:Kt==="year"&&It.lang.yearPlaceholder?It.lang.rangeYearPlaceholder:Kt==="quarter"&&It.lang.quarterPlaceholder?It.lang.rangeQuarterPlaceholder:Kt==="month"&&It.lang.monthPlaceholder?It.lang.rangeMonthPlaceholder:Kt==="week"&&It.lang.weekPlaceholder?It.lang.rangeWeekPlaceholder:Kt==="time"&&It.timePickerLocale.placeholder?It.timePickerLocale.rangePlaceholder:It.lang.rangePlaceholder}function md(It,Kt){const te={adjustX:1,adjustY:1};switch(Kt){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:te};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:te};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:te};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:te};default:return{points:It==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:te}}}function ed(It){return It?Array.isArray(It)?It:[It]:[]}function kr(It){const{format:Kt,picker:te,showHour:Oe,showMinute:He,showSecond:vn,use12Hours:Sn}=It,jn=ed(Kt)[0],Xn=Object.assign({},It);return Kt&&Array.isArray(Kt)&&(Xn.format=jn),jn&&typeof jn=="string"&&(!jn.includes("s")&&vn===void 0&&(Xn.showSecond=!1),!jn.includes("m")&&He===void 0&&(Xn.showMinute=!1),!jn.includes("H")&&!jn.includes("h")&&!jn.includes("K")&&!jn.includes("k")&&Oe===void 0&&(Xn.showHour=!1),(jn.includes("a")||jn.includes("A"))&&Sn===void 0&&(Xn.use12Hours=!0)),te==="time"?Xn:(typeof jn=="function"&&delete Xn.format,{showTime:Xn})}function nd(It,Kt,te){if(It===!1)return!1;const Oe={clearIcon:Kt!=null?Kt:te};return typeof It=="object"?Object.assign(Object.assign({},Oe),It):Oe}var Ae=St(3113);function ti(It){return wt.createElement(Ae.ZP,Object.assign({size:"small",type:"primary"},It))}var rc={button:ti},ih=function(It,Kt){var te={};for(var Oe in It)Object.prototype.hasOwnProperty.call(It,Oe)&&Kt.indexOf(Oe)<0&&(te[Oe]=It[Oe]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Oe=Object.getOwnPropertySymbols(It);He<Oe.length;He++)Kt.indexOf(Oe[He])<0&&Object.prototype.propertyIsEnumerable.call(It,Oe[He])&&(te[Oe[He]]=It[Oe[He]]);return te};function rh(It){return(0,wt.forwardRef)((te,Oe)=>{const{prefixCls:He,getPopupContainer:vn,className:Sn,placement:jn,size:Xn,disabled:hi,bordered:Ii=!0,placeholder:li,popupClassName:bi,dropdownClassName:oi,status:Yi,clearIcon:In,allowClear:Ei,rootClassName:Ui}=te,Gr=ih(te,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Dr=wt.useRef(null),{getPrefixCls:Ur,direction:Xr,getPopupContainer:Kr}=(0,wt.useContext)(vl.E_),Ri=Ur("picker",He),{compactSize:Uo,compactItemClassnames:jo}=(0,gd.ri)(Ri,Xr),{format:ia,showTime:Na,picker:Aa}=te,xa=Ur(),[es,ga]=$l(Ri),sa=Object.assign(Object.assign({},Na?kr(Object.assign({format:ia,picker:Aa},Na)):{}),Aa==="time"?kr(Object.assign(Object.assign({format:ia},te),{picker:Aa})):{}),wa=(0,Bh.Z)(Be=>{var qe;return(qe=Xn!=null?Xn:Uo)!==null&&qe!==void 0?qe:Be}),Xa=wt.useContext(Al.Z),ns=hi!=null?hi:Xa,za=(0,wt.useContext)(_h.aM),{hasFeedback:Pa,status:As,feedbackIcon:_s}=za,Qt=wt.createElement(wt.Fragment,null,Aa==="time"?wt.createElement(We,null):wt.createElement(Yt,null),Pa&&_s);(0,wt.useImperativeHandle)(Oe,()=>({focus:()=>{var Be;return(Be=Dr.current)===null||Be===void 0?void 0:Be.focus()},blur:()=>{var Be;return(Be=Dr.current)===null||Be===void 0?void 0:Be.blur()}}));const[ie]=(0,Oh.Z)("Calendar",Ih.Z),Fe=Object.assign(Object.assign({},ie),te.locale);return es(wt.createElement(ml,Object.assign({separator:wt.createElement("span",{"aria-label":"to",className:`${Ri}-separator`},wt.createElement(Zn,null)),disabled:ns,ref:Dr,dropdownAlign:md(Xr,jn),placeholder:ic(Fe,Aa,li),suffixIcon:Qt,prevIcon:wt.createElement("span",{className:`${Ri}-prev-icon`}),nextIcon:wt.createElement("span",{className:`${Ri}-next-icon`}),superPrevIcon:wt.createElement("span",{className:`${Ri}-super-prev-icon`}),superNextIcon:wt.createElement("span",{className:`${Ri}-super-next-icon`}),transitionName:`${xa}-slide-up`},Gr,sa,{className:Te()({[`${Ri}-${wa}`]:wa,[`${Ri}-borderless`]:!Ii},(0,wu.Z)(Ri,(0,wu.F)(As,Yi),Pa),ga,jo,Sn,Ui),locale:Fe.lang,prefixCls:Ri,getPopupContainer:vn||Kr,generateConfig:It,components:rc,direction:Xr,dropdownClassName:Te()(ga,bi||oi,Ui),allowClear:nd(Ei,In,wt.createElement(_e.Z,null))})))})}var xh=function(It,Kt){var te={};for(var Oe in It)Object.prototype.hasOwnProperty.call(It,Oe)&&Kt.indexOf(Oe)<0&&(te[Oe]=It[Oe]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Oe=Object.getOwnPropertySymbols(It);He<Oe.length;He++)Kt.indexOf(Oe[He])<0&&Object.prototype.propertyIsEnumerable.call(It,Oe[He])&&(te[Oe[He]]=It[Oe[He]]);return te};function oc(It){function Kt(Xn,hi){const Ii=hi==="TimePicker"?"timePicker":"datePicker",li=(0,wt.forwardRef)((bi,oi)=>{const{prefixCls:Yi,getPopupContainer:In,style:Ei,className:Ui,rootClassName:Gr,size:Dr,bordered:Ur=!0,placement:Xr,placeholder:Kr,popupClassName:Ri,dropdownClassName:Uo,disabled:jo,status:ia,clearIcon:Na,allowClear:Aa}=bi,xa=xh(bi,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:es,direction:ga,getPopupContainer:sa,[Ii]:wa}=(0,wt.useContext)(vl.E_),Xa=es("picker",Yi),{compactSize:ns,compactItemClassnames:za}=(0,gd.ri)(Xa,ga),Pa=wt.useRef(null),{format:As,showTime:_s}=bi,[Qt,ie]=$l(Xa);(0,wt.useImperativeHandle)(oi,()=>({focus:()=>{var Si;return(Si=Pa.current)===null||Si===void 0?void 0:Si.focus()},blur:()=>{var Si;return(Si=Pa.current)===null||Si===void 0?void 0:Si.blur()}}));const Fe={showToday:!0};let Be={};Xn&&(Be.picker=Xn);const qe=Xn||bi.picker;Be=Object.assign(Object.assign(Object.assign({},Be),_s?kr(Object.assign({format:As,picker:qe},_s)):{}),qe==="time"?kr(Object.assign(Object.assign({format:As},bi),{picker:qe})):{});const Ye=es(),En=(0,Bh.Z)(Si=>{var ir;return(ir=Dr!=null?Dr:ns)!==null&&ir!==void 0?ir:Si}),Pn=wt.useContext(Al.Z),wn=jo!=null?jo:Pn,ei=(0,wt.useContext)(_h.aM),{hasFeedback:Rn,status:qn,feedbackIcon:Ci}=ei,wi=wt.createElement(wt.Fragment,null,qe==="time"?wt.createElement(We,null):wt.createElement(Yt,null),Rn&&Ci),[vi]=(0,Oh.Z)("DatePicker",Ih.Z),Vi=Object.assign(Object.assign({},vi),bi.locale);return Qt(wt.createElement(Wu,Object.assign({ref:Pa,placeholder:ps(Vi,qe,Kr),suffixIcon:wi,dropdownAlign:md(ga,Xr),prevIcon:wt.createElement("span",{className:`${Xa}-prev-icon`}),nextIcon:wt.createElement("span",{className:`${Xa}-next-icon`}),superPrevIcon:wt.createElement("span",{className:`${Xa}-super-prev-icon`}),superNextIcon:wt.createElement("span",{className:`${Xa}-super-next-icon`}),transitionName:`${Ye}-slide-up`},Fe,xa,Be,{locale:Vi.lang,className:Te()({[`${Xa}-${En}`]:En,[`${Xa}-borderless`]:!Ur},(0,wu.Z)(Xa,(0,wu.F)(qn,ia),Rn),ie,za,wa==null?void 0:wa.className,Ui,Gr),style:Object.assign(Object.assign({},wa==null?void 0:wa.style),Ei),prefixCls:Xa,getPopupContainer:In||sa,generateConfig:It,components:rc,direction:ga,disabled:wn,dropdownClassName:Te()(ie,Gr,Ri||Uo),allowClear:nd(Aa,Na,wt.createElement(_e.Z,null))})))});return hi&&(li.displayName=hi),li}const te=Kt(),Oe=Kt("week","WeekPicker"),He=Kt("month","MonthPicker"),vn=Kt("year","YearPicker"),Sn=Kt("time","TimePicker"),jn=Kt("quarter","QuarterPicker");return{DatePicker:te,WeekPicker:Oe,MonthPicker:He,YearPicker:vn,TimePicker:Sn,QuarterPicker:jn}}const Bd=null;function Es(It){const{DatePicker:Kt,WeekPicker:te,MonthPicker:Oe,YearPicker:He,TimePicker:vn,QuarterPicker:Sn}=oc(It),jn=rh(It),Xn=Kt;return Xn.WeekPicker=te,Xn.MonthPicker=Oe,Xn.YearPicker=He,Xn.RangePicker=jn,Xn.TimePicker=vn,Xn.QuarterPicker=Sn,Xn}var mo=Es;const nl=mo(vt);function yl(It){const Kt=md(It.direction,It.placement);return Kt.overflow.adjustY=!1,Kt.overflow.adjustX=!1,Object.assign(Object.assign({},It),{dropdownAlign:Kt})}const ss=(0,Pt.Z)(nl,"picker",null,yl);nl._InternalPanelDoNotUseOrYouWillBeFired=ss;const na=(0,Pt.Z)(nl.RangePicker,"picker",null,yl);nl._InternalRangePanelDoNotUseOrYouWillBeFired=na,nl.generatePicker=mo;var Us=nl},28103:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return we}});var At=St(92310),zt=St.n(At),oe=St(59301),Me=St(36355),Xt=St(17313),Se=St(83116),Nt=St(37613);const Ne=Ce=>{const{componentCls:Tt,sizePaddingEdgeHorizontal:et,colorSplit:nt,lineWidth:ht,textPaddingInline:st,orientationMargin:gt,verticalMarginInline:vt}=Ce;return{[Tt]:Object.assign(Object.assign({},(0,Xt.Wf)(Ce)),{borderBlockStart:`${ht}px solid ${nt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:vt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ht}px solid ${nt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ce.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Tt}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ce.dividerHorizontalWithTextGutterMargin}px 0`,color:Ce.colorTextHeading,fontWeight:500,fontSize:Ce.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${nt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ht}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Tt}-with-text-left`]:{"&::before":{width:`${gt*100}%`},"&::after":{width:`${100-gt*100}%`}},[`&-horizontal${Tt}-with-text-right`]:{"&::before":{width:`${100-gt*100}%`},"&::after":{width:`${gt*100}%`}},[`${Tt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:st},"&-dashed":{background:"none",borderColor:nt,borderStyle:"dashed",borderWidth:`${ht}px 0 0`},[`&-horizontal${Tt}-with-text${Tt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Tt}-dashed`]:{borderInlineStartWidth:ht,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Tt}-with-text`]:{color:Ce.colorText,fontWeight:"normal",fontSize:Ce.fontSize},[`&-horizontal${Tt}-with-text-left${Tt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Tt}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${Tt}-with-text-right${Tt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Tt}-inner-text`]:{paddingInlineEnd:et}}})}};var Pe=(0,Se.Z)("Divider",Ce=>{const Tt=(0,Nt.TS)(Ce,{dividerHorizontalWithTextGutterMargin:Ce.margin,dividerHorizontalGutterMargin:Ce.marginLG,sizePaddingEdgeHorizontal:0});return[Ne(Tt)]},Ce=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ce.marginXS})),ne=function(Ce,Tt){var et={};for(var nt in Ce)Object.prototype.hasOwnProperty.call(Ce,nt)&&Tt.indexOf(nt)<0&&(et[nt]=Ce[nt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,nt=Object.getOwnPropertySymbols(Ce);ht<nt.length;ht++)Tt.indexOf(nt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ce,nt[ht])&&(et[nt[ht]]=Ce[nt[ht]]);return et},we=Ce=>{const{getPrefixCls:Tt,direction:et,divider:nt}=oe.useContext(Me.E_),{prefixCls:ht,type:st="horizontal",orientation:gt="center",orientationMargin:vt,className:Pt,rootClassName:Ft,children:wt,dashed:Ot,plain:Ht,style:Zt}=Ce,Ut=ne(Ce,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),fe=Tt("divider",ht),[Yt,Xe]=Pe(fe),pe=gt.length>0?`-${gt}`:gt,tn=!!wt,Ve=gt==="left"&&vt!=null,We=gt==="right"&&vt!=null,_e=zt()(fe,nt==null?void 0:nt.className,Xe,`${fe}-${st}`,{[`${fe}-with-text`]:tn,[`${fe}-with-text${pe}`]:tn,[`${fe}-dashed`]:!!Ot,[`${fe}-plain`]:!!Ht,[`${fe}-rtl`]:et==="rtl",[`${fe}-no-default-orientation-margin-left`]:Ve,[`${fe}-no-default-orientation-margin-right`]:We},Pt,Ft),Tn=oe.useMemo(()=>typeof vt=="number"?vt:/^\d+$/.test(vt)?Number(vt):vt,[vt]),ye=Object.assign(Object.assign({},Ve&&{marginLeft:Tn}),We&&{marginRight:Tn});return Yt(oe.createElement("div",Object.assign({className:_e,style:Object.assign(Object.assign({},nt==null?void 0:nt.style),Zt)},Ut,{role:"separator"}),wt&&st!=="vertical"&&oe.createElement("span",{className:`${fe}-inner-text`,style:ye},wt)))}},91857:function(Bn,Cn,St){"use strict";var At=St(59301),zt=St(38819),oe=St(92310),Me=St.n(oe),Xt=St(31561),Se=St(70425),Nt=St(18929),Ne=St(2738),Pe=St(79676),ne=St(53487),xe=St(92343),we=St(36355),Ce=St(20834),Tt=St(40875),et=St(88088),nt=St(47211);const ht=null,st=Ft=>{const{menu:wt,arrow:Ot,prefixCls:Ht,children:Zt,trigger:Ut,disabled:fe,dropdownRender:Yt,getPopupContainer:Xe,overlayClassName:pe,rootClassName:tn,open:Ve,onOpenChange:We,visible:_e,onVisibleChange:Tn,mouseEnterDelay:ye=.15,mouseLeaveDelay:Gt=.1,autoAdjustOverflow:nn=!0,placement:Zn="",overlay:_n,transitionName:Te}=Ft,{getPopupContainer:rn,getPrefixCls:gn,direction:Vn}=At.useContext(we.E_),cn=At.useMemo(()=>{const mt=gn();return Te!==void 0?Te:Zn.includes("top")?`${mt}-slide-down`:`${mt}-slide-up`},[gn,Zn,Te]),Hn=At.useMemo(()=>Zn?Zn.includes("Center")?Zn.slice(0,Zn.indexOf("Center")):Zn:Vn==="rtl"?"bottomRight":"bottomLeft",[Zn,Vn]),me=gn("dropdown",Ht),[Un,ii]=(0,nt.Z)(me),[,xn]=(0,et.Z)(),ni=At.Children.only(Zt),ze=(0,xe.Tm)(ni,{className:Me()(`${me}-trigger`,{[`${me}-rtl`]:Vn==="rtl"},ni.props.className),disabled:fe}),Ie=fe?[]:Ut;let ke;Ie&&Ie.includes("contextMenu")&&(ke=!0);const[se,$e]=(0,Nt.Z)(!1,{value:Ve!=null?Ve:_e}),Ze=(0,Se.useEvent)(mt=>{We==null||We(mt),Tn==null||Tn(mt),$e(mt)}),ee=Me()(pe,tn,ii,{[`${me}-rtl`]:Vn==="rtl"}),re=(0,Pe.Z)({arrowPointAtCenter:typeof Ot=="object"&&Ot.pointAtCenter,autoAdjustOverflow:nn,offset:xn.marginXXS,arrowWidth:Ot?xn.sizePopupArrow:0,borderRadius:xn.borderRadius}),Bt=At.useCallback(()=>{$e(!1)},[]),xt=()=>{let mt;return wt!=null&&wt.items?mt=At.createElement(Ce.default,Object.assign({},wt)):typeof _n=="function"?mt=_n():mt=_n,Yt&&(mt=Yt(mt)),mt=At.Children.only(typeof mt=="string"?At.createElement("span",null,mt):mt),At.createElement(Tt.J,{prefixCls:`${me}-menu`,expandIcon:At.createElement("span",{className:`${me}-menu-submenu-arrow`},At.createElement(zt.Z,{className:`${me}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Bt,validator:kt=>{let{mode:jt}=kt}},mt)};return Un(At.createElement(Xt.Z,Object.assign({alignPoint:ke},(0,Ne.Z)(Ft,["rootClassName"]),{mouseEnterDelay:ye,mouseLeaveDelay:Gt,visible:se,builtinPlacements:re,arrow:!!Ot,overlayClassName:ee,prefixCls:me,getPopupContainer:Xe||rn,transitionName:cn,trigger:Ie,overlay:xt,placement:Hn,onVisibleChange:Ze}),ze))};function gt(Ft){return Object.assign(Object.assign({},Ft),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const vt=(0,ne.Z)(st,"dropdown",Ft=>Ft,gt),Pt=Ft=>At.createElement(vt,Object.assign({},Ft),At.createElement("span",null));st._InternalPanelDoNotUseOrYouWillBeFired=Pt,Cn.Z=st},38854:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return et}});var At=St(91857),zt=St(92310),oe=St.n(zt),Me=St(59301),Xt=St(18785),Se=St(3113),Nt=St(36355),Ne=St(81327),Pe=St(33234),ne=St(47211),xe=function(nt,ht){var st={};for(var gt in nt)Object.prototype.hasOwnProperty.call(nt,gt)&&ht.indexOf(gt)<0&&(st[gt]=nt[gt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,gt=Object.getOwnPropertySymbols(nt);vt<gt.length;vt++)ht.indexOf(gt[vt])<0&&Object.prototype.propertyIsEnumerable.call(nt,gt[vt])&&(st[gt[vt]]=nt[gt[vt]]);return st};const we=nt=>{const{getPopupContainer:ht,getPrefixCls:st,direction:gt}=Me.useContext(Nt.E_),{prefixCls:vt,type:Pt="default",danger:Ft,disabled:wt,loading:Ot,onClick:Ht,htmlType:Zt,children:Ut,className:fe,menu:Yt,arrow:Xe,autoFocus:pe,overlay:tn,trigger:Ve,align:We,open:_e,onOpenChange:Tn,placement:ye,getPopupContainer:Gt,href:nn,icon:Zn=Me.createElement(Xt.Z,null),title:_n,buttonsRender:Te=xt=>xt,mouseEnterDelay:rn,mouseLeaveDelay:gn,overlayClassName:Vn,overlayStyle:cn,destroyPopupOnHide:Hn,dropdownRender:me}=nt,Un=xe(nt,["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"]),ii=st("dropdown",vt),xn=`${ii}-button`,[ni,ze]=(0,ne.Z)(ii),Ie={menu:Yt,arrow:Xe,autoFocus:pe,align:We,disabled:wt,trigger:wt?[]:Ve,onOpenChange:Tn,getPopupContainer:Gt||ht,mouseEnterDelay:rn,mouseLeaveDelay:gn,overlayClassName:Vn,overlayStyle:cn,destroyPopupOnHide:Hn,dropdownRender:me},{compactSize:ke,compactItemClassnames:se}=(0,Pe.ri)(ii,gt),$e=oe()(xn,se,fe,ze);"overlay"in nt&&(Ie.overlay=tn),"open"in nt&&(Ie.open=_e),"placement"in nt?Ie.placement=ye:Ie.placement=gt==="rtl"?"bottomLeft":"bottomRight";const Ze=Me.createElement(Se.ZP,{type:Pt,danger:Ft,disabled:wt,loading:Ot,onClick:Ht,htmlType:Zt,href:nn,title:_n},Ut),ee=Me.createElement(Se.ZP,{type:Pt,danger:Ft,icon:Zn}),[re,Bt]=Te([Ze,ee]);return ni(Me.createElement(Ne.Z.Compact,Object.assign({className:$e,size:ke,block:!0},Un),re,Me.createElement(At.Z,Object.assign({},Ie),Bt)))};we.__ANT_BUTTON=!0;var Ce=we;const Tt=At.Z;Tt.Button=Ce;var et=Tt},47211:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return xe}});var At=St(17313),zt=St(13826),oe=St(92899),Me=St(29878),Xt=St(19447),Se=St(83116),Nt=St(37613),Pe=we=>{const{componentCls:Ce,menuCls:Tt,colorError:et,colorTextLightSolid:nt}=we,ht=`${Tt}-item`;return{[`${Ce}, ${Ce}-menu-submenu`]:{[`${Tt} ${ht}`]:{[`&${ht}-danger:not(${ht}-disabled)`]:{color:et,"&:hover":{color:nt,backgroundColor:et}}}}}};const ne=we=>{const{componentCls:Ce,menuCls:Tt,zIndexPopup:et,dropdownArrowDistance:nt,sizePopupArrow:ht,antCls:st,iconCls:gt,motionDurationMid:vt,dropdownPaddingVertical:Pt,fontSize:Ft,dropdownEdgeChildPadding:wt,colorTextDisabled:Ot,fontSizeIcon:Ht,controlPaddingHorizontal:Zt,colorBgElevated:Ut}=we;return[{[Ce]:Object.assign(Object.assign({},(0,At.Wf)(we)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-nt+ht/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${st}-btn`]:{[`& > ${gt}-down, & > ${st}-btn-icon > ${gt}-down`]:{fontSize:Ht}},[`${Ce}-wrap`]:{position:"relative",[`${st}-btn > ${gt}-down`]:{fontSize:Ht},[`${gt}-down::before`]:{transition:`transform ${vt}`}},[`${Ce}-wrap-open`]:{[`${gt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${st}-slide-down-enter${st}-slide-down-enter-active${Ce}-placement-bottomLeft,
&${st}-slide-down-appear${st}-slide-down-appear-active${Ce}-placement-bottomLeft,
&${st}-slide-down-enter${st}-slide-down-enter-active${Ce}-placement-bottom,
&${st}-slide-down-appear${st}-slide-down-appear-active${Ce}-placement-bottom,
&${st}-slide-down-enter${st}-slide-down-enter-active${Ce}-placement-bottomRight,
&${st}-slide-down-appear${st}-slide-down-appear-active${Ce}-placement-bottomRight`]:{animationName:zt.fJ},[`&${st}-slide-up-enter${st}-slide-up-enter-active${Ce}-placement-topLeft,
&${st}-slide-up-appear${st}-slide-up-appear-active${Ce}-placement-topLeft,
&${st}-slide-up-enter${st}-slide-up-enter-active${Ce}-placement-top,
&${st}-slide-up-appear${st}-slide-up-appear-active${Ce}-placement-top,
&${st}-slide-up-enter${st}-slide-up-enter-active${Ce}-placement-topRight,
&${st}-slide-up-appear${st}-slide-up-appear-active${Ce}-placement-topRight`]:{animationName:zt.Qt},[`&${st}-slide-down-leave${st}-slide-down-leave-active${Ce}-placement-bottomLeft,
&${st}-slide-down-leave${st}-slide-down-leave-active${Ce}-placement-bottom,
&${st}-slide-down-leave${st}-slide-down-leave-active${Ce}-placement-bottomRight`]:{animationName:zt.Uw},[`&${st}-slide-up-leave${st}-slide-up-leave-active${Ce}-placement-topLeft,
&${st}-slide-up-leave${st}-slide-up-leave-active${Ce}-placement-top,
&${st}-slide-up-leave${st}-slide-up-leave-active${Ce}-placement-topRight`]:{animationName:zt.ly}})},(0,Xt.ZP)(we,{colorBg:Ut,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ce} ${Tt}`]:{position:"relative",margin:0},[`${Tt}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ce}, ${Ce}-menu-submenu`]:{[Tt]:Object.assign(Object.assign({padding:wt,listStyleType:"none",backgroundColor:Ut,backgroundClip:"padding-box",borderRadius:we.borderRadiusLG,outline:"none",boxShadow:we.boxShadowSecondary},(0,At.Qy)(we)),{[`${Tt}-item-group-title`]:{padding:`${Pt}px ${Zt}px`,color:we.colorTextDescription,transition:`all ${vt}`},[`${Tt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Tt}-item-icon`]:{minWidth:Ft,marginInlineEnd:we.marginXS,fontSize:we.fontSizeSM},[`${Tt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${vt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Tt}-item, ${Tt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Pt}px ${Zt}px`,color:we.colorText,fontWeight:"normal",fontSize:Ft,lineHeight:we.lineHeight,cursor:"pointer",transition:`all ${vt}`,borderRadius:we.borderRadiusSM,"&:hover, &-active":{backgroundColor:we.controlItemBgHover}},(0,At.Qy)(we)),{"&-selected":{color:we.colorPrimary,backgroundColor:we.controlItemBgActive,"&:hover, &-active":{backgroundColor:we.controlItemBgActiveHover}},"&-disabled":{color:Ot,cursor:"not-allowed","&:hover":{color:Ot,backgroundColor:Ut,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${we.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:we.colorSplit},[`${Ce}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:we.paddingXS,[`${Ce}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:we.colorTextDescription,fontSize:Ht,fontStyle:"normal"}}}),[`${Tt}-item-group-list`]:{margin:`0 ${we.marginXS}px`,padding:0,listStyle:"none"},[`${Tt}-submenu-title`]:{paddingInlineEnd:Zt+we.fontSizeSM},[`${Tt}-submenu-vertical`]:{position:"relative"},[`${Tt}-submenu${Tt}-submenu-disabled ${Ce}-menu-submenu-title`]:{[`&, ${Ce}-menu-submenu-arrow-icon`]:{color:Ot,backgroundColor:Ut,cursor:"not-allowed"}},[`${Tt}-submenu-selected ${Ce}-menu-submenu-title`]:{color:we.colorPrimary}})}},[(0,zt.oN)(we,"slide-up"),(0,zt.oN)(we,"slide-down"),(0,oe.Fm)(we,"move-up"),(0,oe.Fm)(we,"move-down"),(0,Me._y)(we,"zoom-big")]]};var xe=(0,Se.Z)("Dropdown",(we,Ce)=>{let{rootPrefixCls:Tt}=Ce;const{marginXXS:et,sizePopupArrow:nt,controlHeight:ht,fontSize:st,lineHeight:gt,paddingXXS:vt,componentCls:Pt,borderRadiusLG:Ft}=we,wt=(ht-st*gt)/2,{dropdownArrowOffset:Ot}=(0,Xt.fS)({contentRadius:Ft}),Ht=(0,Nt.TS)(we,{menuCls:`${Pt}-menu`,rootPrefixCls:Tt,dropdownArrowDistance:nt/2+et,dropdownArrowOffset:Ot,dropdownPaddingVertical:wt,dropdownEdgeChildPadding:vt});return[ne(Ht),Pe(Ht)]},we=>({zIndexPopup:we.zIndexPopupBase+50}))},64165:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return vt}});var At=St(92310),zt=St.n(At),oe=St(59301),Me=St(36355),Xt=St(9763),Se=St(64993),Nt=St(88088),Pe=()=>{const[,Pt]=(0,Nt.Z)(),wt=new Se.C(Pt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:wt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{fill:"none",fillRule:"evenodd"},oe.createElement("g",{transform:"translate(24 31.67)"},oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),oe.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),oe.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),oe.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),oe.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),oe.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},xe=()=>{const[,Pt]=(0,Nt.Z)(),{colorFill:Ft,colorFillTertiary:wt,colorFillQuaternary:Ot,colorBgContainer:Ht}=Pt,{borderColor:Zt,shadowColor:Ut,contentColor:fe}=(0,oe.useMemo)(()=>({borderColor:new Se.C(Ft).onBackground(Ht).toHexShortString(),shadowColor:new Se.C(wt).onBackground(Ht).toHexShortString(),contentColor:new Se.C(Ot).onBackground(Ht).toHexShortString()}),[Ft,wt,Ot,Ht]);return oe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},oe.createElement("ellipse",{fill:Ut,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:Zt},oe.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),oe.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:fe}))))},we=St(83116),Ce=St(37613);const Tt=Pt=>{const{componentCls:Ft,margin:wt,marginXS:Ot,marginXL:Ht,fontSize:Zt,lineHeight:Ut}=Pt;return{[Ft]:{marginInline:Ot,fontSize:Zt,lineHeight:Ut,textAlign:"center",[`${Ft}-image`]:{height:Pt.emptyImgHeight,marginBottom:Ot,opacity:Pt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ft}-description`]:{color:Pt.colorText},[`${Ft}-footer`]:{marginTop:wt},"&-normal":{marginBlock:Ht,color:Pt.colorTextDisabled,[`${Ft}-description`]:{color:Pt.colorTextDisabled},[`${Ft}-image`]:{height:Pt.emptyImgHeightMD}},"&-small":{marginBlock:Ot,color:Pt.colorTextDisabled,[`${Ft}-image`]:{height:Pt.emptyImgHeightSM}}}}};var et=(0,we.Z)("Empty",Pt=>{const{componentCls:Ft,controlHeightLG:wt}=Pt,Ot=(0,Ce.TS)(Pt,{emptyImgCls:`${Ft}-img`,emptyImgHeight:wt*2.5,emptyImgHeightMD:wt,emptyImgHeightSM:wt*.875});return[Tt(Ot)]}),nt=function(Pt,Ft){var wt={};for(var Ot in Pt)Object.prototype.hasOwnProperty.call(Pt,Ot)&&Ft.indexOf(Ot)<0&&(wt[Ot]=Pt[Ot]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,Ot=Object.getOwnPropertySymbols(Pt);Ht<Ot.length;Ht++)Ft.indexOf(Ot[Ht])<0&&Object.prototype.propertyIsEnumerable.call(Pt,Ot[Ht])&&(wt[Ot[Ht]]=Pt[Ot[Ht]]);return wt};const ht=oe.createElement(Pe,null),st=oe.createElement(xe,null),gt=Pt=>{var{className:Ft,rootClassName:wt,prefixCls:Ot,image:Ht=ht,description:Zt,children:Ut,imageStyle:fe,style:Yt}=Pt,Xe=nt(Pt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:pe,direction:tn,empty:Ve}=oe.useContext(Me.E_),We=pe("empty",Ot),[_e,Tn]=et(We),[ye]=(0,Xt.Z)("Empty"),Gt=typeof Zt!="undefined"?Zt:ye==null?void 0:ye.description,nn=typeof Gt=="string"?Gt:"empty";let Zn=null;return typeof Ht=="string"?Zn=oe.createElement("img",{alt:nn,src:Ht}):Zn=Ht,_e(oe.createElement("div",Object.assign({className:zt()(Tn,We,Ve==null?void 0:Ve.className,{[`${We}-normal`]:Ht===st,[`${We}-rtl`]:tn==="rtl"},Ft,wt),style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),Yt)},Xe),oe.createElement("div",{className:`${We}-image`,style:fe},Zn),Gt&&oe.createElement("div",{className:`${We}-description`},Gt),Ut&&oe.createElement("div",{className:`${We}-footer`},Ut)))};gt.PRESENTED_IMAGE_DEFAULT=ht,gt.PRESENTED_IMAGE_SIMPLE=st;var vt=gt},78241:function(Bn,Cn,St){"use strict";St.d(Cn,{default:function(){return Qe}});var At=St(19127),zt=St(92310),oe=St.n(zt),Me=St(77900),Xt=St(59301),Se=St(62892),Nt=St(32441);function Ne(Jt){const[un,On]=Xt.useState(Jt);return Xt.useEffect(()=>{const Ee=setTimeout(()=>{On(Jt)},Jt.length?0:10);return()=>{clearTimeout(Ee)}},[Jt]),un}var Pe=St(17313),ne=St(29878),xe=St(8378),we=St(37613),Ce=St(83116),et=Jt=>{const{componentCls:un}=Jt,On=`${un}-show-help`,Ee=`${un}-show-help-item`;return{[On]:{transition:`opacity ${Jt.motionDurationSlow} ${Jt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ee]:{overflow:"hidden",transition:`height ${Jt.motionDurationSlow} ${Jt.motionEaseInOut},
opacity ${Jt.motionDurationSlow} ${Jt.motionEaseInOut},
transform ${Jt.motionDurationSlow} ${Jt.motionEaseInOut} !important`,[`&${Ee}-appear, &${Ee}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ee}-leave-active`]:{transform:"translateY(-5px)"}}}}};const nt=Jt=>({legend:{display:"block",width:"100%",marginBottom:Jt.marginLG,padding:0,color:Jt.colorTextDescription,fontSize:Jt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Jt.lineWidth}px ${Jt.lineType} ${Jt.colorBorder}`},label:{fontSize:Jt.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 ${Jt.controlOutlineWidth}px ${Jt.controlOutline}`},output:{display:"block",paddingTop:15,color:Jt.colorText,fontSize:Jt.fontSize,lineHeight:Jt.lineHeight}}),ht=(Jt,un)=>{const{formItemCls:On}=Jt;return{[On]:{[`${On}-label > label`]:{height:un},[`${On}-control-input`]:{minHeight:un}}}},st=Jt=>{const{componentCls:un}=Jt;return{[Jt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(Jt)),nt(Jt)),{[`${un}-text`]:{display:"inline-block",paddingInlineEnd:Jt.paddingSM},"&-small":Object.assign({},ht(Jt,Jt.controlHeightSM)),"&-large":Object.assign({},ht(Jt,Jt.controlHeightLG))})}},gt=Jt=>{const{formItemCls:un,iconCls:On,componentCls:Ee,rootPrefixCls:ce,labelRequiredMarkColor:mn,labelColor:Wn,labelFontSize:Mi,labelHeight:pi,labelColonMarginInlineStart:ue,labelColonMarginInlineEnd:Nn,itemMarginBottom:ui}=Jt;return{[un]:Object.assign(Object.assign({},(0,Pe.Wf)(Jt)),{marginBottom:ui,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${ce}-row`]:{display:"none"},"&-has-warning":{[`${un}-split`]:{color:Jt.colorError}},"&-has-error":{[`${un}-split`]:{color:Jt.colorWarning}},[`${un}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Jt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:pi,color:Wn,fontSize:Mi,[`> ${On}`]:{fontSize:Jt.fontSize,verticalAlign:"top"},[`&${un}-required:not(${un}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Jt.marginXXS,color:mn,fontSize:Jt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ee}-hide-required-mark &`]:{display:"none"}},[`${un}-optional`]:{display:"inline-block",marginInlineStart:Jt.marginXXS,color:Jt.colorTextDescription,[`${Ee}-hide-required-mark &`]:{display:"none"}},[`${un}-tooltip`]:{color:Jt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Jt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ue,marginInlineEnd:Nn},[`&${un}-no-colon::after`]:{content:'"\\a0"'}}},[`${un}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ce}-col-'"]):not([class*="' ${ce}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Jt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[un]:{"&-explain, &-extra":{clear:"both",color:Jt.colorTextDescription,fontSize:Jt.fontSize,lineHeight:Jt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Jt.controlHeightSM,transition:`color ${Jt.motionDurationMid} ${Jt.motionEaseOut}`},"&-explain":{"&-error":{color:Jt.colorError},"&-warning":{color:Jt.colorWarning}}},[`&-with-help ${un}-explain`]:{height:"auto",opacity:1},[`${un}-feedback-icon`]:{fontSize:Jt.fontSize,textAlign:"center",visibility:"visible",animationName:ne.kr,animationDuration:Jt.motionDurationMid,animationTimingFunction:Jt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Jt.colorSuccess},"&-error":{color:Jt.colorError},"&-warning":{color:Jt.colorWarning},"&-validating":{color:Jt.colorPrimary}}})}},vt=Jt=>{const{componentCls:un,formItemCls:On}=Jt;return{[`${un}-horizontal`]:{[`${On}-label`]:{flexGrow:0},[`${On}-control`]:{flex:"1 1 0",minWidth:0},[`${On}-label[class$='-24'], ${On}-label[class*='-24 ']`]:{[`& + ${On}-control`]:{minWidth:"unset"}}}}},Pt=Jt=>{const{componentCls:un,formItemCls:On}=Jt;return{[`${un}-inline`]:{display:"flex",flexWrap:"wrap",[On]:{flex:"none",marginInlineEnd:Jt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${On}-label,
> ${On}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${On}-label`]:{flex:"none"},[`${un}-text`]:{display:"inline-block"},[`${On}-has-feedback`]:{display:"inline-block"}}}}},Ft=Jt=>({padding:Jt.verticalLabelPadding,margin:Jt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),wt=Jt=>{const{componentCls:un,formItemCls:On,rootPrefixCls:Ee}=Jt;return{[`${On} ${On}-label`]:Ft(Jt),[un]:{[On]:{flexWrap:"wrap",[`${On}-label, ${On}-control`]:{[`&:not([class*=" ${Ee}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ot=Jt=>{const{componentCls:un,formItemCls:On,rootPrefixCls:Ee}=Jt;return{[`${un}-vertical`]:{[On]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${un}-item-control`]:{width:"100%"}}},[`${un}-vertical ${On}-label,
.${Ee}-col-24${On}-label,
.${Ee}-col-xl-24${On}-label`]:Ft(Jt),[`@media (max-width: ${Jt.screenXSMax}px)`]:[wt(Jt),{[un]:{[`.${Ee}-col-xs-24${On}-label`]:Ft(Jt)}}],[`@media (max-width: ${Jt.screenSMMax}px)`]:{[un]:{[`.${Ee}-col-sm-24${On}-label`]:Ft(Jt)}},[`@media (max-width: ${Jt.screenMDMax}px)`]:{[un]:{[`.${Ee}-col-md-24${On}-label`]:Ft(Jt)}},[`@media (max-width: ${Jt.screenLGMax}px)`]:{[un]:{[`.${Ee}-col-lg-24${On}-label`]:Ft(Jt)}}}},Ht=(Jt,un)=>(0,we.TS)(Jt,{formItemCls:`${Jt.componentCls}-item`,rootPrefixCls:un});var Zt=(0,Ce.Z)("Form",(Jt,un)=>{let{rootPrefixCls:On}=un;const Ee=Ht(Jt,On);return[st(Ee),gt(Ee),et(Ee),vt(Ee),Pt(Ee),Ot(Ee),(0,xe.Z)(Ee),ne.kr]},Jt=>({labelRequiredMarkColor:Jt.colorError,labelColor:Jt.colorTextHeading,labelFontSize:Jt.fontSize,labelHeight:Jt.controlHeight,labelColonMarginInlineStart:Jt.marginXXS/2,labelColonMarginInlineEnd:Jt.marginXS,itemMarginBottom:Jt.marginLG,verticalLabelPadding:`0 0 ${Jt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ut=[];function fe(Jt,un,On){let Ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Jt=="string"?Jt:`${un}-${Ee}`,error:Jt,errorStatus:On}}var Xe=Jt=>{let{help:un,helpStatus:On,errors:Ee=Ut,warnings:ce=Ut,className:mn,fieldId:Wn,onVisibleChanged:Mi}=Jt;const{prefixCls:pi}=Xt.useContext(Nt.Rk),ue=`${pi}-item-explain`,[,Nn]=Zt(pi),ui=(0,Xt.useMemo)(()=>(0,Se.Z)(pi),[pi]),Hi=Ne(Ee),Ge=Ne(ce),pn=Xt.useMemo(()=>un!=null?[fe(un,"help",On)]:[].concat((0,At.Z)(Hi.map((hn,yn)=>fe(hn,"error","error",yn))),(0,At.Z)(Ge.map((hn,yn)=>fe(hn,"warning","warning",yn)))),[un,On,Hi,Ge]),je={};return Wn&&(je.id=`${Wn}_help`),Xt.createElement(Me.default,{motionDeadline:ui.motionDeadline,motionName:`${pi}-show-help`,visible:!!pn.length,onVisibleChanged:Mi},hn=>{const{className:yn,style:dn}=hn;return Xt.createElement("div",Object.assign({},je,{className:oe()(ue,yn,mn,Nn),style:dn,role:"alert"}),Xt.createElement(Me.CSSMotionList,Object.assign({keys:pn},(0,Se.Z)(pi),{motionName:`${pi}-show-help-item`,component:!1}),kn=>{const{key:Ln,error:Kn,errorStatus:Jn,className:Zi,style:en}=kn;return Xt.createElement("div",{key:Ln,className:oe()(Zi,{[`${ue}-${Jn}`]:Jn}),style:en},Kn)}))})},pe=St(95013),tn=St(36355),Ve=St(1684),We=St(52946),_e=St(19716),Tn=St(16722);const ye=["parentNode"],Gt="form_item";function nn(Jt){return Jt===void 0||Jt===!1?[]:Array.isArray(Jt)?Jt:[Jt]}function Zn(Jt,un){if(!Jt.length)return;const On=Jt.join("_");return un?`${un}_${On}`:ye.includes(On)?`${Gt}_${On}`:On}function _n(Jt,un,On,Ee,ce,mn){let Wn=Ee;return mn!==void 0?Wn=mn:On.validating?Wn="validating":Jt.length?Wn="error":un.length?Wn="warning":(On.touched||ce&&On.validated)&&(Wn="success"),Wn}function Te(Jt){return nn(Jt).join("_")}function rn(Jt){const[un]=(0,pe.useForm)(),On=Xt.useRef({}),Ee=Xt.useMemo(()=>Jt!=null?Jt:Object.assign(Object.assign({},un),{__INTERNAL__:{itemRef:ce=>mn=>{const Wn=Te(ce);mn?On.current[Wn]=mn:delete On.current[Wn]}},scrollToField:function(ce){let mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Wn=nn(ce),Mi=Zn(Wn,Ee.__INTERNAL__.name),pi=Mi?document.getElementById(Mi):null;pi&&(0,Tn.Z)(pi,Object.assign({scrollMode:"if-needed",block:"nearest"},mn))},getFieldInstance:ce=>{const mn=Te(ce);return On.current[mn]}}),[Jt,un]);return[Ee]}var gn=St(28726),Vn=function(Jt,un){var On={};for(var Ee in Jt)Object.prototype.hasOwnProperty.call(Jt,Ee)&&un.indexOf(Ee)<0&&(On[Ee]=Jt[Ee]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Ee=Object.getOwnPropertySymbols(Jt);ce<Ee.length;ce++)un.indexOf(Ee[ce])<0&&Object.prototype.propertyIsEnumerable.call(Jt,Ee[ce])&&(On[Ee[ce]]=Jt[Ee[ce]]);return On};const cn=(Jt,un)=>{const On=Xt.useContext(Ve.Z),{getPrefixCls:Ee,direction:ce,form:mn}=Xt.useContext(tn.E_),{prefixCls:Wn,className:Mi,rootClassName:pi,size:ue,disabled:Nn=On,form:ui,colon:Hi,labelAlign:Ge,labelWrap:pn,labelCol:je,wrapperCol:hn,hideRequiredMark:yn,layout:dn="horizontal",scrollToFirstError:kn,requiredMark:Ln,onFinishFailed:Kn,name:Jn,style:Zi,feedbackIcons:en}=Jt,qi=Vn(Jt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Er=(0,_e.Z)(ue),nr=Xt.useContext(gn.Z),sn=(0,Xt.useMemo)(()=>Ln!==void 0?Ln:mn&&mn.requiredMark!==void 0?mn.requiredMark:!yn,[yn,Ln,mn]),si=Hi!=null?Hi:mn==null?void 0:mn.colon,Ai=Ee("form",Wn),[Ki,Di]=Zt(Ai),vr=oe()(Ai,`${Ai}-${dn}`,{[`${Ai}-hide-required-mark`]:sn===!1,[`${Ai}-rtl`]:ce==="rtl",[`${Ai}-${Er}`]:Er},Di,mn==null?void 0:mn.className,Mi,pi),[Pr]=rn(ui),{__INTERNAL__:tr}=Pr;tr.name=Jn;const Oi=(0,Xt.useMemo)(()=>({name:Jn,labelAlign:Ge,labelCol:je,labelWrap:pn,wrapperCol:hn,vertical:dn==="vertical",colon:si,requiredMark:sn,itemRef:tr.itemRef,form:Pr,feedbackIcons:en}),[Jn,Ge,je,hn,dn,si,sn,Pr,en]);Xt.useImperativeHandle(un,()=>Pr);const Lr=(wo,Mn)=>{if(wo){let Or={block:"nearest"};typeof wo=="object"&&(Or=wo),Pr.scrollToField(Mn,Or)}},bn=wo=>{if(Kn==null||Kn(wo),wo.errorFields.length){const Mn=wo.errorFields[0].name;if(kn!==void 0){Lr(kn,Mn);return}mn&&mn.scrollToFirstError!==void 0&&Lr(mn.scrollToFirstError,Mn)}};return Ki(Xt.createElement(Ve.n,{disabled:Nn},Xt.createElement(We.q,{size:Er},Xt.createElement(Nt.RV,Object.assign({},{validateMessages:nr}),Xt.createElement(Nt.q3.Provider,{value:Oi},Xt.createElement(pe.default,Object.assign({id:Jn},qi,{name:Jn,onFinishFailed:bn,form:Pr,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),Zi),className:vr})))))))};var me=Xt.forwardRef(cn),Un=St(41799),ii=St(8654),xn=St(92343),ni=St(11592);function ze(Jt){if(typeof Jt=="function")return Jt;const un=(0,ni.Z)(Jt);return un.length<=1?un[0]:un}const Ie=()=>{const{status:Jt,errors:un=[],warnings:On=[]}=(0,Xt.useContext)(Nt.aM);return{status:Jt,errors:un,warnings:On}};Ie.Context=Nt.aM;var ke=Ie,se=St(16089);function $e(Jt){const[un,On]=Xt.useState(Jt),Ee=(0,Xt.useRef)(null),ce=(0,Xt.useRef)([]),mn=(0,Xt.useRef)(!1);Xt.useEffect(()=>(mn.current=!1,()=>{mn.current=!0,se.Z.cancel(Ee.current),Ee.current=null}),[]);function Wn(Mi){mn.current||(Ee.current===null&&(ce.current=[],Ee.current=(0,se.Z)(()=>{Ee.current=null,On(pi=>{let ue=pi;return ce.current.forEach(Nn=>{ue=Nn(ue)}),ue})})),ce.current.push(Mi))}return[un,Wn]}function Ze(){const{itemRef:Jt}=Xt.useContext(Nt.q3),un=Xt.useRef({});function On(Ee,ce){const mn=ce&&typeof ce=="object"&&ce.ref,Wn=Ee.join("_");return(un.current.name!==Wn||un.current.originRef!==mn)&&(un.current.name=Wn,un.current.originRef=mn,un.current.ref=(0,ii.sQ)(Jt(Ee),mn)),un.current.ref}return On}var ee=St(29194),re=St(34280),Bt=St(2738),xt=St(27382),mt=St(37028);const kt=Jt=>{const{formItemCls:un}=Jt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${un}-control`]:{display:"flex"}}}};var jt=(0,Ce.b)(["Form","item-item"],(Jt,un)=>{let{rootPrefixCls:On}=un;const Ee=Ht(Jt,On);return[kt(Ee)]}),he=Jt=>{const{prefixCls:un,status:On,wrapperCol:Ee,children:ce,errors:mn,warnings:Wn,_internalItemRender:Mi,extra:pi,help:ue,fieldId:Nn,marginBottom:ui,onErrorVisibleChanged:Hi}=Jt,Ge=`${un}-item`,pn=Xt.useContext(Nt.q3),je=Ee||pn.wrapperCol||{},hn=oe()(`${Ge}-control`,je.className),yn=Xt.useMemo(()=>Object.assign({},pn),[pn]);delete yn.labelCol,delete yn.wrapperCol;const dn=Xt.createElement("div",{className:`${Ge}-control-input`},Xt.createElement("div",{className:`${Ge}-control-input-content`},ce)),kn=Xt.useMemo(()=>({prefixCls:un,status:On}),[un,On]),Ln=ui!==null||mn.length||Wn.length?Xt.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Xt.createElement(Nt.Rk.Provider,{value:kn},Xt.createElement(Xe,{fieldId:Nn,errors:mn,warnings:Wn,help:ue,helpStatus:On,className:`${Ge}-explain-connected`,onVisibleChanged:Hi})),!!ui&&Xt.createElement("div",{style:{width:0,height:ui}})):null,Kn={};Nn&&(Kn.id=`${Nn}_extra`);const Jn=pi?Xt.createElement("div",Object.assign({},Kn,{className:`${Ge}-extra`}),pi):null,Zi=Mi&&Mi.mark==="pro_table_render"&&Mi.render?Mi.render(Jt,{input:dn,errorList:Ln,extra:Jn}):Xt.createElement(Xt.Fragment,null,dn,Ln,Jn);return Xt.createElement(Nt.q3.Provider,{value:yn},Xt.createElement(mt.Z,Object.assign({},je,{className:hn}),Zi),Xt.createElement(jt,{prefixCls:un}))},Re=St(61485),on=St(31724),de=St(9763),De=St(6848),Ke=function(Jt,un){var On={};for(var Ee in Jt)Object.prototype.hasOwnProperty.call(Jt,Ee)&&un.indexOf(Ee)<0&&(On[Ee]=Jt[Ee]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Ee=Object.getOwnPropertySymbols(Jt);ce<Ee.length;ce++)un.indexOf(Ee[ce])<0&&Object.prototype.propertyIsEnumerable.call(Jt,Ee[ce])&&(On[Ee[ce]]=Jt[Ee[ce]]);return On};function An(Jt){return Jt?typeof Jt=="object"&&!Xt.isValidElement(Jt)?Jt:{title:Jt}:null}var gi=Jt=>{let{prefixCls:un,label:On,htmlFor:Ee,labelCol:ce,labelAlign:mn,colon:Wn,required:Mi,requiredMark:pi,tooltip:ue}=Jt;var Nn;const[ui]=(0,de.Z)("Form"),{vertical:Hi,labelAlign:Ge,labelCol:pn,labelWrap:je,colon:hn}=Xt.useContext(Nt.q3);if(!On)return null;const yn=ce||pn||{},dn=mn||Ge,kn=`${un}-item-label`,Ln=oe()(kn,dn==="left"&&`${kn}-left`,yn.className,{[`${kn}-wrap`]:!!je});let Kn=On;const Jn=Wn===!0||hn!==!1&&Wn!==!1;Jn&&!Hi&&typeof On=="string"&&On.trim()!==""&&(Kn=On.replace(/[:|]\s*$/,""));const en=An(ue);if(en){const{icon:sn=Xt.createElement(Re.Z,null)}=en,si=Ke(en,["icon"]),Ai=Xt.createElement(De.Z,Object.assign({},si),Xt.cloneElement(sn,{className:`${un}-item-tooltip`,title:""}));Kn=Xt.createElement(Xt.Fragment,null,Kn,Ai)}const qi=pi==="optional",Er=typeof pi=="function";Er?Kn=pi(Kn,{required:!!Mi}):qi&&!Mi&&(Kn=Xt.createElement(Xt.Fragment,null,Kn,Xt.createElement("span",{className:`${un}-item-optional`,title:""},(ui==null?void 0:ui.optional)||((Nn=on.Z.Form)===null||Nn===void 0?void 0:Nn.optional))));const nr=oe()({[`${un}-item-required`]:Mi,[`${un}-item-required-mark-optional`]:qi||Er,[`${un}-item-no-colon`]:!Jn});return Xt.createElement(mt.Z,Object.assign({},yn,{className:Ln}),Xt.createElement("label",{htmlFor:Ee,className:nr,title:typeof On=="string"?On:""},Kn))},fi=St(29679),xi=St(19248),Gi=St(96512),yr=St(58617);const lr={success:fi.Z,warning:Gi.Z,error:xi.Z,validating:yr.Z};function rr(Jt){let{children:un,errors:On,warnings:Ee,hasFeedback:ce,validateStatus:mn,prefixCls:Wn,meta:Mi,noStyle:pi}=Jt;const ue=`${Wn}-item`,{feedbackIcons:Nn}=Xt.useContext(Nt.q3),ui=_n(On,Ee,Mi,null,!!ce,mn),{isFormItemInput:Hi,status:Ge}=Xt.useContext(Nt.aM),pn=Xt.useMemo(()=>{var je;let hn;if(ce){const kn=ce!==!0&&ce.icons||Nn,Ln=ui&&((je=kn==null?void 0:kn({status:ui,errors:On,warnings:Ee}))===null||je===void 0?void 0:je[ui]),Kn=ui&&lr[ui];hn=Ln!==!1&&Kn?Xt.createElement("span",{className:oe()(`${ue}-feedback-icon`,`${ue}-feedback-icon-${ui}`)},Ln||Xt.createElement(Kn,null)):null}let yn=!0,dn=ui||"";return pi&&(yn=Hi,dn=(ui!=null?ui:Ge)||""),{status:dn,errors:On,warnings:Ee,hasFeedback:!!ce,feedbackIcon:hn,isFormItemInput:yn}},[ui,ce,pi,Hi,Ge]);return Xt.createElement(Nt.aM.Provider,{value:pn},un)}var Rr=function(Jt,un){var On={};for(var Ee in Jt)Object.prototype.hasOwnProperty.call(Jt,Ee)&&un.indexOf(Ee)<0&&(On[Ee]=Jt[Ee]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Ee=Object.getOwnPropertySymbols(Jt);ce<Ee.length;ce++)un.indexOf(Ee[ce])<0&&Object.prototype.propertyIsEnumerable.call(Jt,Ee[ce])&&(On[Ee[ce]]=Jt[Ee[ce]]);return On};function Nr(Jt){const{prefixCls:un,className:On,rootClassName:Ee,style:ce,help:mn,errors:Wn,warnings:Mi,validateStatus:pi,meta:ue,hasFeedback:Nn,hidden:ui,children:Hi,fieldId:Ge,required:pn,isRequired:je,onSubItemMetaChange:hn}=Jt,yn=Rr(Jt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),dn=`${un}-item`,{requiredMark:kn}=Xt.useContext(Nt.q3),Ln=Xt.useRef(null),Kn=Ne(Wn),Jn=Ne(Mi),Zi=mn!=null,en=!!(Zi||Wn.length||Mi.length),qi=!!Ln.current&&(0,ee.Z)(Ln.current),[Er,nr]=Xt.useState(null);(0,re.Z)(()=>{if(en&&Ln.current){const Di=getComputedStyle(Ln.current);nr(parseInt(Di.marginBottom,10))}},[en,qi]);const sn=Di=>{Di||nr(null)},Ai=function(){let Di=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const vr=Di?Kn:ue.errors,Pr=Di?Jn:ue.warnings;return _n(vr,Pr,ue,"",!!Nn,pi)}(),Ki=oe()(dn,On,Ee,{[`${dn}-with-help`]:Zi||Kn.length||Jn.length,[`${dn}-has-feedback`]:Ai&&Nn,[`${dn}-has-success`]:Ai==="success",[`${dn}-has-warning`]:Ai==="warning",[`${dn}-has-error`]:Ai==="error",[`${dn}-is-validating`]:Ai==="validating",[`${dn}-hidden`]:ui});return Xt.createElement("div",{className:Ki,style:ce,ref:Ln},Xt.createElement(xt.Z,Object.assign({className:`${dn}-row`},(0,Bt.Z)(yn,["_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"])),Xt.createElement(gi,Object.assign({htmlFor:Ge},Jt,{requiredMark:kn,required:pn!=null?pn:je,prefixCls:un})),Xt.createElement(he,Object.assign({},Jt,ue,{errors:Kn,warnings:Jn,prefixCls:un,status:Ai,help:mn,marginBottom:Er,onErrorVisibleChanged:sn}),Xt.createElement(Nt.qI.Provider,{value:hn},Xt.createElement(rr,{prefixCls:un,meta:ue,errors:ue.errors,warnings:ue.warnings,hasFeedback:Nn,validateStatus:Ai},Hi)))),!!Er&&Xt.createElement("div",{className:`${dn}-margin-offset`,style:{marginBottom:-Er}}))}const Ji="__SPLIT__",Wr=null,Xi=Xt.memo(Jt=>{let{children:un}=Jt;return un},(Jt,un)=>Jt.value===un.value&&Jt.update===un.update&&Jt.childProps.length===un.childProps.length&&Jt.childProps.every((On,Ee)=>On===un.childProps[Ee]));function Et(Jt){return Jt!=null}function ai(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function mi(Jt){const{name:un,noStyle:On,className:Ee,dependencies:ce,prefixCls:mn,shouldUpdate:Wn,rules:Mi,children:pi,required:ue,label:Nn,messageVariables:ui,trigger:Hi="onChange",validateTrigger:Ge,hidden:pn,help:je}=Jt,{getPrefixCls:hn}=Xt.useContext(tn.E_),{name:yn}=Xt.useContext(Nt.q3),dn=ze(pi),kn=typeof dn=="function",Ln=Xt.useContext(Nt.qI),{validateTrigger:Kn}=Xt.useContext(pe.FieldContext),Jn=Ge!==void 0?Ge:Kn,Zi=Et(un),en=hn("form",mn),[qi,Er]=Zt(en),nr=Xt.useContext(pe.ListContext),sn=Xt.useRef(),[si,Ai]=$e({}),[Ki,Di]=(0,Un.Z)(()=>ai()),vr=Mn=>{const Or=nr==null?void 0:nr.getKey(Mn.name);if(Di(Mn.destroy?ai():Mn,!0),On&&je!==!1&&Ln){let ea=Mn.name;if(Mn.destroy)ea=sn.current||ea;else if(Or!==void 0){const[bo,ca]=Or;ea=[bo].concat((0,At.Z)(ca)),sn.current=ea}Ln(Mn,ea)}},Pr=(Mn,Or)=>{Ai(ea=>{const bo=Object.assign({},ea),qo=[].concat((0,At.Z)(Mn.name.slice(0,-1)),(0,At.Z)(Or)).join(Ji);return Mn.destroy?delete bo[qo]:bo[qo]=Mn,bo})},[tr,Oi]=Xt.useMemo(()=>{const Mn=(0,At.Z)(Ki.errors),Or=(0,At.Z)(Ki.warnings);return Object.values(si).forEach(ea=>{Mn.push.apply(Mn,(0,At.Z)(ea.errors||[])),Or.push.apply(Or,(0,At.Z)(ea.warnings||[]))}),[Mn,Or]},[si,Ki.errors,Ki.warnings]),Lr=Ze();function bn(Mn,Or,ea){return On&&!pn?Xt.createElement(rr,{prefixCls:en,hasFeedback:Jt.hasFeedback,validateStatus:Jt.validateStatus,meta:Ki,errors:tr,warnings:Oi,noStyle:!0},Mn):Xt.createElement(Nr,Object.assign({key:"row"},Jt,{className:oe()(Ee,Er),prefixCls:en,fieldId:Or,isRequired:ea,errors:tr,warnings:Oi,meta:Ki,onSubItemMetaChange:Pr}),Mn)}if(!Zi&&!kn&&!ce)return qi(bn(dn));let wo={};return typeof Nn=="string"?wo.label=Nn:un&&(wo.label=String(un)),ui&&(wo=Object.assign(Object.assign({},wo),ui)),qi(Xt.createElement(pe.Field,Object.assign({},Jt,{messageVariables:wo,trigger:Hi,validateTrigger:Jn,onMetaChange:vr}),(Mn,Or,ea)=>{const bo=nn(un).length&&Or?Or.name:[],ca=Zn(bo,yn),qo=ue!==void 0?ue:!!(Mi&&Mi.some(eo=>{if(eo&&typeof eo=="object"&&eo.required&&!eo.warningOnly)return!0;if(typeof eo=="function"){const ko=eo(ea);return ko&&ko.required&&!ko.warningOnly}return!1})),dr=Object.assign({},Mn);let er=null;if(Array.isArray(dn)&&Zi)er=dn;else if(!(kn&&(!(Wn||ce)||Zi))){if(!(ce&&!kn&&!Zi))if((0,xn.l$)(dn)){const eo=Object.assign(Object.assign({},dn.props),dr);if(eo.id||(eo.id=ca),je||tr.length>0||Oi.length>0||Jt.extra){const Vt=[];(je||tr.length>0)&&Vt.push(`${ca}_help`),Jt.extra&&Vt.push(`${ca}_extra`),eo["aria-describedby"]=Vt.join(" ")}tr.length>0&&(eo["aria-invalid"]="true"),qo&&(eo["aria-required"]="true"),(0,ii.Yr)(dn)&&(eo.ref=Lr(bo,dn)),new Set([].concat((0,At.Z)(nn(Hi)),(0,At.Z)(nn(Jn)))).forEach(Vt=>{eo[Vt]=function(){for(var fo,_o,ro,Yo,ya,Ar=arguments.length,Tr=new Array(Ar),uo=0;uo<Ar;uo++)Tr[uo]=arguments[uo];(ro=dr[Vt])===null||ro===void 0||(fo=ro).call.apply(fo,[dr].concat(Tr)),(ya=(Yo=dn.props)[Vt])===null||ya===void 0||(_o=ya).call.apply(_o,[Yo].concat(Tr))}});const ki=[eo["aria-required"],eo["aria-invalid"],eo["aria-describedby"]];er=Xt.createElement(Xi,{value:dr[Jt.valuePropName||"value"],update:dn,childProps:ki},(0,xn.Tm)(dn,eo))}else kn&&(Wn||ce)&&!Zi?er=dn(ea):er=dn}return bn(er,ca,qo)}))}const hr=mi;hr.useStatus=ke;var wr=hr,_i=function(Jt,un){var On={};for(var Ee in Jt)Object.prototype.hasOwnProperty.call(Jt,Ee)&&un.indexOf(Ee)<0&&(On[Ee]=Jt[Ee]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Ee=Object.getOwnPropertySymbols(Jt);ce<Ee.length;ce++)un.indexOf(Ee[ce])<0&&Object.prototype.propertyIsEnumerable.call(Jt,Ee[ce])&&(On[Ee[ce]]=Jt[Ee[ce]]);return On},Zr=Jt=>{var{prefixCls:un,children:On}=Jt,Ee=_i(Jt,["prefixCls","children"]);const{getPrefixCls:ce}=Xt.useContext(tn.E_),mn=ce("form",un),Wn=Xt.useMemo(()=>({prefixCls:mn,status:"error"}),[mn]);return Xt.createElement(pe.List,Object.assign({},Ee),(Mi,pi,ue)=>Xt.createElement(Nt.Rk.Provider,{value:Wn},On(Mi.map(Nn=>Object.assign(Object.assign({},Nn),{fieldKey:Nn.key})),pi,{errors:ue.errors,warnings:ue.warnings})))};function xo(){const{form:Jt}=(0,Xt.useContext)(Nt.q3);return Jt}const an=me;an.Item=wr,an.List=Zr,an.ErrorList=Xe,an.useForm=rn,an.useFormInstance=xo,an.useWatch=pe.useWatch,an.Provider=Nt.RV,an.create=()=>{};var Qe=an},8628:function(Bn,Cn,St){"use strict";var At=St(59301),zt=St(34280),oe=St(56762),Me=St(69507);function Xt(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Nt=(0,At.useRef)({}),Ne=(0,oe.Z)(),Pe=(0,Me.ZP)();return(0,zt.Z)(()=>{const ne=Pe.subscribe(xe=>{Nt.current=xe,Se&&Ne()});return()=>Pe.unsubscribe(ne)},[]),Nt.current}Cn.Z=Xt},9432:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return gt},n:function(){return ht}});var At=St(19248),zt=St(92310),oe=St.n(zt),Me=St(93681),Xt=St(8654),Se=St(59301),Nt=St(19080),Ne=St(36355),Pe=St(1684),ne=St(19716),xe=St(32441),we=St(33234),Ce=St(59412),Tt=St(9937);function et(vt){return!!(vt.prefix||vt.suffix||vt.allowClear)}var nt=function(vt,Pt){var Ft={};for(var wt in vt)Object.prototype.hasOwnProperty.call(vt,wt)&&Pt.indexOf(wt)<0&&(Ft[wt]=vt[wt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,wt=Object.getOwnPropertySymbols(vt);Ot<wt.length;Ot++)Pt.indexOf(wt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(vt,wt[Ot])&&(Ft[wt[Ot]]=vt[wt[Ot]]);return Ft};function ht(vt,Pt){if(!vt)return;vt.focus(Pt);const{cursor:Ft}=Pt||{};if(Ft){const wt=vt.value.length;switch(Ft){case"start":vt.setSelectionRange(0,0);break;case"end":vt.setSelectionRange(wt,wt);break;default:vt.setSelectionRange(0,wt);break}}}var gt=(0,Se.forwardRef)((vt,Pt)=>{var Ft;const{prefixCls:wt,bordered:Ot=!0,status:Ht,size:Zt,disabled:Ut,onBlur:fe,onFocus:Yt,suffix:Xe,allowClear:pe,addonAfter:tn,addonBefore:Ve,className:We,style:_e,styles:Tn,rootClassName:ye,onChange:Gt,classNames:nn}=vt,Zn=nt(vt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:_n,direction:Te,input:rn}=Se.useContext(Ne.E_),gn=_n("input",wt),Vn=(0,Se.useRef)(null),[cn,Hn]=(0,Tt.ZP)(gn),{compactSize:me,compactItemClassnames:Un}=(0,we.ri)(gn,Te),ii=(0,ne.Z)(jt=>{var Lt;return(Lt=Zt!=null?Zt:me)!==null&&Lt!==void 0?Lt:jt}),xn=Se.useContext(Pe.Z),ni=Ut!=null?Ut:xn,{status:ze,hasFeedback:Ie,feedbackIcon:ke}=(0,Se.useContext)(xe.aM),se=(0,Nt.F)(ze,Ht),$e=et(vt)||!!Ie,Ze=(0,Se.useRef)($e);(0,Se.useEffect)(()=>{var jt;$e&&Ze.current,Ze.current=$e},[$e]);const ee=(0,Ce.Z)(Vn,!0),re=jt=>{ee(),fe==null||fe(jt)},Bt=jt=>{ee(),Yt==null||Yt(jt)},xt=jt=>{ee(),Gt==null||Gt(jt)},mt=(Ie||Xe)&&Se.createElement(Se.Fragment,null,Xe,Ie&&ke);let kt;return typeof pe=="object"&&(pe!=null&&pe.clearIcon)?kt=pe:pe&&(kt={clearIcon:Se.createElement(At.Z,null)}),cn(Se.createElement(Me.default,Object.assign({ref:(0,Xt.sQ)(Pt,Vn),prefixCls:gn,autoComplete:rn==null?void 0:rn.autoComplete},Zn,{disabled:ni,onBlur:re,onFocus:Bt,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),_e),styles:Object.assign(Object.assign({},rn==null?void 0:rn.styles),Tn),suffix:mt,allowClear:kt,className:oe()(We,ye,Un,rn==null?void 0:rn.className),onChange:xt,addonAfter:tn&&Se.createElement(we.BR,null,Se.createElement(xe.Ux,{override:!0,status:!0},tn)),addonBefore:Ve&&Se.createElement(we.BR,null,Se.createElement(xe.Ux,{override:!0,status:!0},Ve)),classNames:Object.assign(Object.assign(Object.assign({},nn),rn==null?void 0:rn.classNames),{input:oe()({[`${gn}-sm`]:ii==="small",[`${gn}-lg`]:ii==="large",[`${gn}-rtl`]:Te==="rtl",[`${gn}-borderless`]:!Ot},!$e&&(0,Nt.Z)(gn,se),nn==null?void 0:nn.input,(Ft=rn==null?void 0:rn.classNames)===null||Ft===void 0?void 0:Ft.input,Hn)}),classes:{affixWrapper:oe()({[`${gn}-affix-wrapper-sm`]:ii==="small",[`${gn}-affix-wrapper-lg`]:ii==="large",[`${gn}-affix-wrapper-rtl`]:Te==="rtl",[`${gn}-affix-wrapper-borderless`]:!Ot},(0,Nt.Z)(`${gn}-affix-wrapper`,se,Ie),Hn),wrapper:oe()({[`${gn}-group-rtl`]:Te==="rtl"},Hn),group:oe()({[`${gn}-group-wrapper-sm`]:ii==="small",[`${gn}-group-wrapper-lg`]:ii==="large",[`${gn}-group-wrapper-rtl`]:Te==="rtl",[`${gn}-group-wrapper-disabled`]:ni},(0,Nt.Z)(`${gn}-group-wrapper`,se,Ie),Hn)}})))})},1643:function(Bn,Cn,St){"use strict";var At=St(19248),zt=St(92310),oe=St.n(zt),Me=St(9296),Xt=St(59301),Se=St(19080),Nt=St(36355),Ne=St(1684),Pe=St(19716),ne=St(32441),xe=St(9432),we=St(9937),Ce=function(et,nt){var ht={};for(var st in et)Object.prototype.hasOwnProperty.call(et,st)&&nt.indexOf(st)<0&&(ht[st]=et[st]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,st=Object.getOwnPropertySymbols(et);gt<st.length;gt++)nt.indexOf(st[gt])<0&&Object.prototype.propertyIsEnumerable.call(et,st[gt])&&(ht[st[gt]]=et[st[gt]]);return ht};const Tt=(0,Xt.forwardRef)((et,nt)=>{const{prefixCls:ht,bordered:st=!0,size:gt,disabled:vt,status:Pt,allowClear:Ft,showCount:wt,classNames:Ot,rootClassName:Ht,className:Zt}=et,Ut=Ce(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:fe,direction:Yt}=Xt.useContext(Nt.E_),Xe=(0,Pe.Z)(gt),pe=Xt.useContext(Ne.Z),tn=vt!=null?vt:pe,{status:Ve,hasFeedback:We,feedbackIcon:_e}=Xt.useContext(ne.aM),Tn=(0,Se.F)(Ve,Pt),ye=Xt.useRef(null);Xt.useImperativeHandle(nt,()=>{var Te;return{resizableTextArea:(Te=ye.current)===null||Te===void 0?void 0:Te.resizableTextArea,focus:rn=>{var gn,Vn;(0,xe.n)((Vn=(gn=ye.current)===null||gn===void 0?void 0:gn.resizableTextArea)===null||Vn===void 0?void 0:Vn.textArea,rn)},blur:()=>{var rn;return(rn=ye.current)===null||rn===void 0?void 0:rn.blur()}}});const Gt=fe("input",ht);let nn;typeof Ft=="object"&&(Ft!=null&&Ft.clearIcon)?nn=Ft:Ft&&(nn={clearIcon:Xt.createElement(At.Z,null)});const[Zn,_n]=(0,we.ZP)(Gt);return Zn(Xt.createElement(Me.default,Object.assign({},Ut,{disabled:tn,allowClear:nn,className:oe()(Zt,Ht),classes:{affixWrapper:oe()(`${Gt}-textarea-affix-wrapper`,{[`${Gt}-affix-wrapper-rtl`]:Yt==="rtl",[`${Gt}-affix-wrapper-borderless`]:!st,[`${Gt}-affix-wrapper-sm`]:Xe==="small",[`${Gt}-affix-wrapper-lg`]:Xe==="large",[`${Gt}-textarea-show-count`]:wt},(0,Se.Z)(`${Gt}-affix-wrapper`,Tn),_n)},classNames:Object.assign(Object.assign({},Ot),{textarea:oe()({[`${Gt}-borderless`]:!st,[`${Gt}-sm`]:Xe==="small",[`${Gt}-lg`]:Xe==="large"},(0,Se.Z)(Gt,Tn),_n,Ot==null?void 0:Ot.textarea)}),prefixCls:Gt,suffix:We&&Xt.createElement("span",{className:`${Gt}-textarea-suffix`},_e),showCount:wt,ref:ye})))});Cn.Z=Tt},59412:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return zt}});var At=St(59301);function zt(oe,Me){const Xt=(0,At.useRef)([]),Se=()=>{Xt.current.push(setTimeout(()=>{var Nt,Ne,Pe,ne;!((Nt=oe.current)===null||Nt===void 0)&&Nt.input&&((Ne=oe.current)===null||Ne===void 0?void 0:Ne.input.getAttribute("type"))==="password"&&(!((Pe=oe.current)===null||Pe===void 0)&&Pe.input.hasAttribute("value"))&&((ne=oe.current)===null||ne===void 0||ne.input.removeAttribute("value"))}))};return(0,At.useEffect)(()=>(Me&&Se(),()=>Xt.current.forEach(Nt=>{Nt&&clearTimeout(Nt)})),[]),Se}},92832:function(Bn,Cn,St){"use strict";St.d(Cn,{default:function(){return Xe}});var At=St(92310),zt=St.n(At),oe=St(59301),Me=St(36355),Xt=St(32441),Se=St(9937),Ne=pe=>{const{getPrefixCls:tn,direction:Ve}=(0,oe.useContext)(Me.E_),{prefixCls:We,className:_e}=pe,Tn=tn("input-group",We),ye=tn("input"),[Gt,nn]=(0,Se.ZP)(ye),Zn=zt()(Tn,{[`${Tn}-lg`]:pe.size==="large",[`${Tn}-sm`]:pe.size==="small",[`${Tn}-compact`]:pe.compact,[`${Tn}-rtl`]:Ve==="rtl"},nn,_e),_n=(0,oe.useContext)(Xt.aM),Te=(0,oe.useMemo)(()=>Object.assign(Object.assign({},_n),{isFormItemInput:!1}),[_n]);return Gt(oe.createElement("span",{className:Zn,style:pe.style,onMouseEnter:pe.onMouseEnter,onMouseLeave:pe.onMouseLeave,onFocus:pe.onFocus,onBlur:pe.onBlur},oe.createElement(Xt.aM.Provider,{value:Te},pe.children)))},Pe=St(9432),ne=St(73331),xe=St(15277),we=St(2738),Ce=St(8654),Tt=St(59412),et=function(pe,tn){var Ve={};for(var We in pe)Object.prototype.hasOwnProperty.call(pe,We)&&tn.indexOf(We)<0&&(Ve[We]=pe[We]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,We=Object.getOwnPropertySymbols(pe);_e<We.length;_e++)tn.indexOf(We[_e])<0&&Object.prototype.propertyIsEnumerable.call(pe,We[_e])&&(Ve[We[_e]]=pe[We[_e]]);return Ve};const nt=pe=>pe?oe.createElement(xe.Z,null):oe.createElement(ne.Z,null),ht={click:"onClick",hover:"onMouseOver"};var gt=oe.forwardRef((pe,tn)=>{const{visibilityToggle:Ve=!0}=pe,We=typeof Ve=="object"&&Ve.visible!==void 0,[_e,Tn]=(0,oe.useState)(()=>We?Ve.visible:!1),ye=(0,oe.useRef)(null);oe.useEffect(()=>{We&&Tn(Ve.visible)},[We,Ve]);const Gt=(0,Tt.Z)(ye),nn=()=>{const{disabled:ni}=pe;ni||(_e&&Gt(),Tn(ze=>{var Ie;const ke=!ze;return typeof Ve=="object"&&((Ie=Ve.onVisibleChange)===null||Ie===void 0||Ie.call(Ve,ke)),ke}))},Zn=ni=>{const{action:ze="click",iconRender:Ie=nt}=pe,ke=ht[ze]||"",se=Ie(_e),$e={[ke]:nn,className:`${ni}-icon`,key:"passwordIcon",onMouseDown:Ze=>{Ze.preventDefault()},onMouseUp:Ze=>{Ze.preventDefault()}};return oe.cloneElement(oe.isValidElement(se)?se:oe.createElement("span",null,se),$e)},{className:_n,prefixCls:Te,inputPrefixCls:rn,size:gn}=pe,Vn=et(pe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:cn}=oe.useContext(Me.E_),Hn=cn("input",rn),me=cn("input-password",Te),Un=Ve&&Zn(me),ii=zt()(me,_n,{[`${me}-${gn}`]:!!gn}),xn=Object.assign(Object.assign({},(0,we.Z)(Vn,["suffix","iconRender","visibilityToggle"])),{type:_e?"text":"password",className:ii,prefixCls:Hn,suffix:Un});return gn&&(xn.size=gn),oe.createElement(Pe.Z,Object.assign({ref:(0,Ce.sQ)(tn,ye)},xn))}),vt=St(47472),Pt=St(92343),Ft=St(3113),wt=St(19716),Ot=St(33234),Ht=function(pe,tn){var Ve={};for(var We in pe)Object.prototype.hasOwnProperty.call(pe,We)&&tn.indexOf(We)<0&&(Ve[We]=pe[We]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,We=Object.getOwnPropertySymbols(pe);_e<We.length;_e++)tn.indexOf(We[_e])<0&&Object.prototype.propertyIsEnumerable.call(pe,We[_e])&&(Ve[We[_e]]=pe[We[_e]]);return Ve},Ut=oe.forwardRef((pe,tn)=>{const{prefixCls:Ve,inputPrefixCls:We,className:_e,size:Tn,suffix:ye,enterButton:Gt=!1,addonAfter:nn,loading:Zn,disabled:_n,onSearch:Te,onChange:rn,onCompositionStart:gn,onCompositionEnd:Vn}=pe,cn=Ht(pe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Hn,direction:me}=oe.useContext(Me.E_),Un=oe.useRef(!1),ii=Hn("input-search",Ve),xn=Hn("input",We),{compactSize:ni}=(0,Ot.ri)(ii,me),ze=(0,wt.Z)(he=>{var Re;return(Re=Tn!=null?Tn:ni)!==null&&Re!==void 0?Re:he}),Ie=oe.useRef(null),ke=he=>{he&&he.target&&he.type==="click"&&Te&&Te(he.target.value,he,{source:"clear"}),rn&&rn(he)},se=he=>{var Re;document.activeElement===((Re=Ie.current)===null||Re===void 0?void 0:Re.input)&&he.preventDefault()},$e=he=>{var Re,on;Te&&Te((on=(Re=Ie.current)===null||Re===void 0?void 0:Re.input)===null||on===void 0?void 0:on.value,he,{source:"input"})},Ze=he=>{Un.current||Zn||$e(he)},ee=typeof Gt=="boolean"?oe.createElement(vt.Z,null):null,re=`${ii}-button`;let Bt;const xt=Gt||{},mt=xt.type&&xt.type.__ANT_BUTTON===!0;mt||xt.type==="button"?Bt=(0,Pt.Tm)(xt,Object.assign({onMouseDown:se,onClick:he=>{var Re,on;(on=(Re=xt==null?void 0:xt.props)===null||Re===void 0?void 0:Re.onClick)===null||on===void 0||on.call(Re,he),$e(he)},key:"enterButton"},mt?{className:re,size:ze}:{})):Bt=oe.createElement(Ft.ZP,{className:re,type:Gt?"primary":void 0,size:ze,disabled:_n,key:"enterButton",onMouseDown:se,onClick:$e,loading:Zn,icon:ee},Gt),nn&&(Bt=[Bt,(0,Pt.Tm)(nn,{key:"addonAfter"})]);const kt=zt()(ii,{[`${ii}-rtl`]:me==="rtl",[`${ii}-${ze}`]:!!ze,[`${ii}-with-button`]:!!Gt},_e),jt=he=>{Un.current=!0,gn==null||gn(he)},Lt=he=>{Un.current=!1,Vn==null||Vn(he)};return oe.createElement(Pe.Z,Object.assign({ref:(0,Ce.sQ)(Ie,tn),onPressEnter:Ze},cn,{size:ze,onCompositionStart:jt,onCompositionEnd:Lt,prefixCls:xn,addonAfter:Bt,suffix:ye,onChange:ke,className:kt,disabled:_n}))}),fe=St(1643);const Yt=Pe.Z;Yt.Group=Ne,Yt.Search=Ut,Yt.TextArea=fe.Z,Yt.Password=gt;var Xe=Yt},45818:function(Bn,Cn,St){"use strict";St.d(Cn,{D:function(){return vt},Z:function(){return wt}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(Ht,Zt){return zt.createElement(Xt.Z,(0,At.Z)({},Ht,{ref:Zt,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt,Pe=St(33853),ne=St(38819),xe=St(92310),we=St.n(xe),Ce=St(2738),et=Ot=>!isNaN(parseFloat(Ot))&&isFinite(Ot),nt=St(36355),ht=St(84966),st=function(Ot,Ht){var Zt={};for(var Ut in Ot)Object.prototype.hasOwnProperty.call(Ot,Ut)&&Ht.indexOf(Ut)<0&&(Zt[Ut]=Ot[Ut]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Ut=Object.getOwnPropertySymbols(Ot);fe<Ut.length;fe++)Ht.indexOf(Ut[fe])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Ut[fe])&&(Zt[Ut[fe]]=Ot[Ut[fe]]);return Zt};const gt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},vt=zt.createContext({}),Pt=(()=>{let Ot=0;return function(){let Ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ot+=1,`${Ht}${Ot}`}})();var wt=zt.forwardRef((Ot,Ht)=>{const{prefixCls:Zt,className:Ut,trigger:fe,children:Yt,defaultCollapsed:Xe=!1,theme:pe="dark",style:tn={},collapsible:Ve=!1,reverseArrow:We=!1,width:_e=200,collapsedWidth:Tn=80,zeroWidthTriggerStyle:ye,breakpoint:Gt,onCollapse:nn,onBreakpoint:Zn}=Ot,_n=st(Ot,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Te}=(0,zt.useContext)(ht.Gs),[rn,gn]=(0,zt.useState)("collapsed"in Ot?Ot.collapsed:Xe),[Vn,cn]=(0,zt.useState)(!1);(0,zt.useEffect)(()=>{"collapsed"in Ot&&gn(Ot.collapsed)},[Ot.collapsed]);const Hn=(ze,Ie)=>{"collapsed"in Ot||gn(ze),nn==null||nn(ze,Ie)},me=(0,zt.useRef)();me.current=ze=>{cn(ze.matches),Zn==null||Zn(ze.matches),rn!==ze.matches&&Hn(ze.matches,"responsive")},(0,zt.useEffect)(()=>{function ze(ke){return me.current(ke)}let Ie;if(typeof window!="undefined"){const{matchMedia:ke}=window;if(ke&&Gt&&Gt in gt){Ie=ke(`(max-width: ${gt[Gt]})`);try{Ie.addEventListener("change",ze)}catch(se){Ie.addListener(ze)}ze(Ie)}}return()=>{try{Ie==null||Ie.removeEventListener("change",ze)}catch(ke){Ie==null||Ie.removeListener(ze)}}},[Gt]),(0,zt.useEffect)(()=>{const ze=Pt("ant-sider-");return Te.addSider(ze),()=>Te.removeSider(ze)},[]);const Un=()=>{Hn(!rn,"clickTrigger")},{getPrefixCls:ii}=(0,zt.useContext)(nt.E_),xn=()=>{const ze=ii("layout-sider",Zt),Ie=(0,Ce.Z)(_n,["collapsed"]),ke=rn?Tn:_e,se=et(ke)?`${ke}px`:String(ke),$e=parseFloat(String(Tn||0))===0?zt.createElement("span",{onClick:Un,className:we()(`${ze}-zero-width-trigger`,`${ze}-zero-width-trigger-${We?"right":"left"}`),style:ye},fe||zt.createElement(Ne,null)):null,re={expanded:We?zt.createElement(ne.Z,null):zt.createElement(Pe.Z,null),collapsed:We?zt.createElement(Pe.Z,null):zt.createElement(ne.Z,null)}[rn?"collapsed":"expanded"],Bt=fe!==null?$e||zt.createElement("div",{className:`${ze}-trigger`,onClick:Un,style:{width:se}},fe||re):null,xt=Object.assign(Object.assign({},tn),{flex:`0 0 ${se}`,maxWidth:se,minWidth:se,width:se}),mt=we()(ze,`${ze}-${pe}`,{[`${ze}-collapsed`]:!!rn,[`${ze}-has-trigger`]:Ve&&fe!==null&&!$e,[`${ze}-below`]:!!Vn,[`${ze}-zero-width`]:parseFloat(se)===0},Ut);return zt.createElement("aside",Object.assign({className:mt},Ie,{style:xt,ref:Ht}),zt.createElement("div",{className:`${ze}-children`},Yt),Ve||Vn&&$e?Bt:null)},ni=zt.useMemo(()=>({siderCollapsed:rn}),[rn]);return zt.createElement(vt.Provider,{value:ni},xn())})},84966:function(Bn,Cn,St){"use strict";St.d(Cn,{VY:function(){return vt},$_:function(){return gt},h4:function(){return st},Gs:function(){return Ce},ZP:function(){return Pt}});var At=St(19127),zt=St(92310),oe=St.n(zt),Me=St(2738),Xt=St(59301),Se=St(36355),Nt=St(83116),Pe=Ft=>{const{componentCls:wt,bodyBg:Ot,lightSiderBg:Ht,lightTriggerBg:Zt,lightTriggerColor:Ut}=Ft;return{[`${wt}-sider-light`]:{background:Ht,[`${wt}-sider-trigger`]:{color:Ut,background:Zt},[`${wt}-sider-zero-width-trigger`]:{color:Ut,background:Zt,border:`1px solid ${Ot}`,borderInlineStart:0}}}};const ne=Ft=>{const{antCls:wt,componentCls:Ot,colorText:Ht,triggerColor:Zt,footerBg:Ut,triggerBg:fe,headerHeight:Yt,headerPadding:Xe,headerColor:pe,footerPadding:tn,triggerHeight:Ve,zeroTriggerHeight:We,zeroTriggerWidth:_e,motionDurationMid:Tn,motionDurationSlow:ye,fontSize:Gt,borderRadius:nn,bodyBg:Zn,headerBg:_n,siderBg:Te}=Ft;return{[Ot]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Zn,"&, *":{boxSizing:"border-box"},[`&${Ot}-has-sider`]:{flexDirection:"row",[`> ${Ot}, > ${Ot}-content`]:{width:0}},[`${Ot}-header, &${Ot}-footer`]:{flex:"0 0 auto"},[`${Ot}-sider`]:{position:"relative",minWidth:0,background:Te,transition:`all ${Tn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${wt}-menu${wt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ve},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ve,color:Zt,lineHeight:`${Ve}px`,textAlign:"center",background:fe,cursor:"pointer",transition:`all ${Tn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Yt,insetInlineEnd:-_e,zIndex:1,width:_e,height:We,color:Zt,fontSize:Ft.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Te,borderStartStartRadius:0,borderStartEndRadius:nn,borderEndEndRadius:nn,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ye} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ye}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-_e,borderStartStartRadius:nn,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:nn}}}}},Pe(Ft)),{"&-rtl":{direction:"rtl"}}),[`${Ot}-header`]:{height:Yt,padding:Xe,color:pe,lineHeight:`${Yt}px`,background:_n,[`${wt}-menu`]:{lineHeight:"inherit"}},[`${Ot}-footer`]:{padding:tn,color:Ht,fontSize:Gt,background:Ut},[`${Ot}-content`]:{flex:"auto",minHeight:0}}};var xe=(0,Nt.Z)("Layout",Ft=>[ne(Ft)],Ft=>{const{colorBgLayout:wt,controlHeight:Ot,controlHeightLG:Ht,colorText:Zt,controlHeightSM:Ut,marginXXS:fe,colorTextLightSolid:Yt,colorBgContainer:Xe}=Ft,pe=Ht*1.25;return{colorBgHeader:"#001529",colorBgBody:wt,colorBgTrigger:"#002140",bodyBg:wt,headerBg:"#001529",headerHeight:Ot*2,headerPadding:`0 ${pe}px`,headerColor:Zt,footerPadding:`${Ut}px ${pe}px`,footerBg:wt,siderBg:"#001529",triggerHeight:Ht+fe*2,triggerBg:"#002140",triggerColor:Yt,zeroTriggerWidth:Ht,zeroTriggerHeight:Ht,lightSiderBg:Xe,lightTriggerBg:Xe,lightTriggerColor:Zt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),we=function(Ft,wt){var Ot={};for(var Ht in Ft)Object.prototype.hasOwnProperty.call(Ft,Ht)&&wt.indexOf(Ht)<0&&(Ot[Ht]=Ft[Ht]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Ht=Object.getOwnPropertySymbols(Ft);Zt<Ht.length;Zt++)wt.indexOf(Ht[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Ft,Ht[Zt])&&(Ot[Ht[Zt]]=Ft[Ht[Zt]]);return Ot};const Ce=Xt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Tt(Ft){let{suffixCls:wt,tagName:Ot,displayName:Ht}=Ft;return Zt=>Xt.forwardRef((fe,Yt)=>Xt.createElement(Zt,Object.assign({ref:Yt,suffixCls:wt,tagName:Ot},fe)))}const et=Xt.forwardRef((Ft,wt)=>{const{prefixCls:Ot,suffixCls:Ht,className:Zt,tagName:Ut}=Ft,fe=we(Ft,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Yt}=Xt.useContext(Se.E_),Xe=Yt("layout",Ot),[pe,tn]=xe(Xe),Ve=Ht?`${Xe}-${Ht}`:Xe;return pe(Xt.createElement(Ut,Object.assign({className:oe()(Ot||Ve,Zt,tn),ref:wt},fe)))}),nt=Xt.forwardRef((Ft,wt)=>{const{direction:Ot}=Xt.useContext(Se.E_),[Ht,Zt]=Xt.useState([]),{prefixCls:Ut,className:fe,rootClassName:Yt,children:Xe,hasSider:pe,tagName:tn,style:Ve}=Ft,We=we(Ft,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),_e=(0,Me.Z)(We,["suffixCls"]),{getPrefixCls:Tn,layout:ye}=Xt.useContext(Se.E_),Gt=Tn("layout",Ut),[nn,Zn]=xe(Gt),_n=oe()(Gt,{[`${Gt}-has-sider`]:typeof pe=="boolean"?pe:Ht.length>0,[`${Gt}-rtl`]:Ot==="rtl"},ye==null?void 0:ye.className,fe,Yt,Zn),Te=Xt.useMemo(()=>({siderHook:{addSider:rn=>{Zt(gn=>[].concat((0,At.Z)(gn),[rn]))},removeSider:rn=>{Zt(gn=>gn.filter(Vn=>Vn!==rn))}}}),[]);return nn(Xt.createElement(Ce.Provider,{value:Te},Xt.createElement(tn,Object.assign({ref:wt,className:_n,style:Object.assign(Object.assign({},ye==null?void 0:ye.style),Ve)},_e),Xe)))}),ht=Tt({tagName:"div",displayName:"Layout"})(nt),st=Tt({suffixCls:"header",tagName:"header",displayName:"Header"})(et),gt=Tt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),vt=Tt({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var Pt=ht},40875:function(Bn,Cn,St){"use strict";St.d(Cn,{J:function(){return Se}});var At=St(59301),zt=St(33234),oe=St(70425),Me=function(Nt,Ne){var Pe={};for(var ne in Nt)Object.prototype.hasOwnProperty.call(Nt,ne)&&Ne.indexOf(ne)<0&&(Pe[ne]=Nt[ne]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,ne=Object.getOwnPropertySymbols(Nt);xe<ne.length;xe++)Ne.indexOf(ne[xe])<0&&Object.prototype.propertyIsEnumerable.call(Nt,ne[xe])&&(Pe[ne[xe]]=Nt[ne[xe]]);return Pe};const Xt=At.createContext(null),Se=At.forwardRef((Nt,Ne)=>{const{children:Pe}=Nt,ne=Me(Nt,["children"]),xe=At.useContext(Xt),we=At.useMemo(()=>Object.assign(Object.assign({},xe),ne),[xe,ne.prefixCls,ne.mode,ne.selectable]);return At.createElement(Xt.Provider,{value:we},At.createElement(zt.BR,null,(0,oe.supportNodeRef)(Pe)?At.cloneElement(Pe,{ref:Ne}):Pe))});Cn.Z=Xt},20834:function(Bn,Cn,St){"use strict";St.d(Cn,{default:function(){return ni}});var At=St(15285),zt=St(59301),oe=St(45818),Me=St(92310),Xt=St.n(Me),Se=St(36355),Nt=function(ze,Ie){var ke={};for(var se in ze)Object.prototype.hasOwnProperty.call(ze,se)&&Ie.indexOf(se)<0&&(ke[se]=ze[se]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,se=Object.getOwnPropertySymbols(ze);$e<se.length;$e++)Ie.indexOf(se[$e])<0&&Object.prototype.propertyIsEnumerable.call(ze,se[$e])&&(ke[se[$e]]=ze[se[$e]]);return ke},Pe=ze=>{const{prefixCls:Ie,className:ke,dashed:se}=ze,$e=Nt(ze,["prefixCls","className","dashed"]),{getPrefixCls:Ze}=zt.useContext(Se.E_),ee=Ze("menu",Ie),re=Xt()({[`${ee}-item-divider-dashed`]:!!se},ke);return zt.createElement(At.iz,Object.assign({className:re},$e))},ne=St(11592),xe=St(2738),we=St(6848),Ce=St(92343),et=(0,zt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ht=ze=>{var Ie;const{className:ke,children:se,icon:$e,title:Ze,danger:ee}=ze,{prefixCls:re,firstLevel:Bt,direction:xt,disableMenuItemTitleTooltip:mt,inlineCollapsed:kt}=zt.useContext(et),jt=De=>{const Ke=zt.createElement("span",{className:`${re}-title-content`},se);return(!$e||(0,Ce.l$)(se)&&se.type==="span")&&se&&De&&Bt&&typeof se=="string"?zt.createElement("div",{className:`${re}-inline-collapsed-noicon`},se.charAt(0)):Ke},{siderCollapsed:Lt}=zt.useContext(oe.D);let he=Ze;typeof Ze=="undefined"?he=Bt?se:"":Ze===!1&&(he="");const Re={title:he};!Lt&&!kt&&(Re.title=null,Re.open=!1);const on=(0,ne.Z)(se).length;let de=zt.createElement(At.ck,Object.assign({},(0,xe.Z)(ze,["title","icon","danger"]),{className:Xt()({[`${re}-item-danger`]:ee,[`${re}-item-only-child`]:($e?on+1:on)===1},ke),title:typeof Ze=="string"?Ze:void 0}),(0,Ce.Tm)($e,{className:Xt()((0,Ce.l$)($e)?(Ie=$e.props)===null||Ie===void 0?void 0:Ie.className:"",`${re}-item-icon`)}),jt(kt));return mt||(de=zt.createElement(we.Z,Object.assign({},Re,{placement:xt==="rtl"?"left":"right",overlayClassName:`${re}-inline-collapsed-tooltip`}),de)),de},gt=ze=>{var Ie;const{popupClassName:ke,icon:se,title:$e,theme:Ze}=ze,ee=zt.useContext(et),{prefixCls:re,inlineCollapsed:Bt,theme:xt}=ee,mt=(0,At.Xl)();let kt;if(!se)kt=Bt&&!mt.length&&$e&&typeof $e=="string"?zt.createElement("div",{className:`${re}-inline-collapsed-noicon`},$e.charAt(0)):zt.createElement("span",{className:`${re}-title-content`},$e);else{const Lt=(0,Ce.l$)($e)&&$e.type==="span";kt=zt.createElement(zt.Fragment,null,(0,Ce.Tm)(se,{className:Xt()((0,Ce.l$)(se)?(Ie=se.props)===null||Ie===void 0?void 0:Ie.className:"",`${re}-item-icon`)}),Lt?$e:zt.createElement("span",{className:`${re}-title-content`},$e))}const jt=zt.useMemo(()=>Object.assign(Object.assign({},ee),{firstLevel:!1}),[ee]);return zt.createElement(et.Provider,{value:jt},zt.createElement(At.Wd,Object.assign({},(0,xe.Z)(ze,["icon"]),{title:kt,popupClassName:Xt()(re,ke,`${re}-${Ze||xt}`)})))},vt=St(18785),Pt=St(70425),Ft=St(62892),wt=St(40875),Ot=function(ze,Ie){var ke={};for(var se in ze)Object.prototype.hasOwnProperty.call(ze,se)&&Ie.indexOf(se)<0&&(ke[se]=ze[se]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,se=Object.getOwnPropertySymbols(ze);$e<se.length;$e++)Ie.indexOf(se[$e])<0&&Object.prototype.propertyIsEnumerable.call(ze,se[$e])&&(ke[se[$e]]=ze[se[$e]]);return ke};function Ht(ze){return(ze||[]).map((Ie,ke)=>{if(Ie&&typeof Ie=="object"){const se=Ie,{label:$e,children:Ze,key:ee,type:re}=se,Bt=Ot(se,["label","children","key","type"]),xt=ee!=null?ee:`tmp-${ke}`;return Ze||re==="group"?re==="group"?zt.createElement(At.BW,Object.assign({key:xt},Bt,{title:$e}),Ht(Ze)):zt.createElement(gt,Object.assign({key:xt},Bt,{title:$e}),Ht(Ze)):re==="divider"?zt.createElement(Pe,Object.assign({key:xt},Bt)):zt.createElement(ht,Object.assign({key:xt},Bt),$e)}return null}).filter(Ie=>Ie)}function Zt(ze){return zt.useMemo(()=>ze&&Ht(ze),[ze])}var Ut=St(64993),fe=St(17313),Yt=St(8378),Xe=St(13826),pe=St(29878),tn=St(83116),Ve=St(37613),_e=ze=>{const{componentCls:Ie,motionDurationSlow:ke,horizontalLineHeight:se,colorSplit:$e,lineWidth:Ze,lineType:ee,itemPaddingInline:re}=ze;return{[`${Ie}-horizontal`]:{lineHeight:se,border:0,borderBottom:`${Ze}px ${ee} ${$e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ie}-item, ${Ie}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:re},[`> ${Ie}-item:hover,
> ${Ie}-item-active,
> ${Ie}-submenu ${Ie}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ie}-item, ${Ie}-submenu-title`]:{transition:[`border-color ${ke}`,`background ${ke}`].join(",")},[`${Ie}-submenu-arrow`]:{display:"none"}}}},ye=ze=>{let{componentCls:Ie,menuArrowOffset:ke}=ze;return{[`${Ie}-rtl`]:{direction:"rtl"},[`${Ie}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ie}-rtl${Ie}-vertical,
${Ie}-submenu-rtl ${Ie}-vertical`]:{[`${Ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ke})`},"&::after":{transform:`rotate(45deg) translateY(${ke})`}}}}};const Gt=ze=>Object.assign({},(0,fe.oN)(ze));var Zn=(ze,Ie)=>{const{componentCls:ke,itemColor:se,itemSelectedColor:$e,groupTitleColor:Ze,itemBg:ee,subMenuItemBg:re,itemSelectedBg:Bt,activeBarHeight:xt,activeBarWidth:mt,activeBarBorderWidth:kt,motionDurationSlow:jt,motionEaseInOut:Lt,motionEaseOut:he,itemPaddingInline:Re,motionDurationMid:on,itemHoverColor:de,lineType:De,colorSplit:Ke,itemDisabledColor:An,dangerItemColor:Yn,dangerItemHoverColor:gi,dangerItemSelectedColor:fi,dangerItemActiveBg:xi,dangerItemSelectedBg:Gi,itemHoverBg:yr,itemActiveBg:lr,menuSubMenuBg:rr,horizontalItemSelectedColor:Rr,horizontalItemSelectedBg:Nr,horizontalItemBorderRadius:Ji,horizontalItemHoverBg:Wr,popupBg:Xi}=ze;return{[`${ke}-${Ie}, ${ke}-${Ie} > ${ke}`]:{color:se,background:ee,[`&${ke}-root:focus-visible`]:Object.assign({},Gt(ze)),[`${ke}-item-group-title`]:{color:Ze},[`${ke}-submenu-selected`]:{[`> ${ke}-submenu-title`]:{color:$e}},[`${ke}-item-disabled, ${ke}-submenu-disabled`]:{color:`${An} !important`},[`${ke}-item:not(${ke}-item-selected):not(${ke}-submenu-selected)`]:{[`&:hover, > ${ke}-submenu-title:hover`]:{color:de}},[`&:not(${ke}-horizontal)`]:{[`${ke}-item:not(${ke}-item-selected)`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:lr}},[`${ke}-submenu-title`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:lr}}},[`${ke}-item-danger`]:{color:Yn,[`&${ke}-item:hover`]:{[`&:not(${ke}-item-selected):not(${ke}-submenu-selected)`]:{color:gi}},[`&${ke}-item:active`]:{background:xi}},[`${ke}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ke}-item-selected`]:{color:$e,[`&${ke}-item-danger`]:{color:fi},"a, a:hover":{color:"inherit"}},[`& ${ke}-item-selected`]:{backgroundColor:Bt,[`&${ke}-item-danger`]:{backgroundColor:Gi}},[`${ke}-item, ${ke}-submenu-title`]:{[`&:not(${ke}-item-disabled):focus-visible`]:Object.assign({},Gt(ze))},[`&${ke}-submenu > ${ke}`]:{backgroundColor:rr},[`&${ke}-popup > ${ke}`]:{backgroundColor:Xi},[`&${ke}-horizontal`]:Object.assign(Object.assign({},Ie==="dark"?{borderBottom:0}:{}),{[`> ${ke}-item, > ${ke}-submenu`]:{top:kt,marginTop:-kt,marginBottom:0,borderRadius:Ji,"&::after":{position:"absolute",insetInline:Re,bottom:0,borderBottom:`${xt}px solid transparent`,transition:`border-color ${jt} ${Lt}`,content:'""'},"&:hover, &-active, &-open":{background:Wr,"&::after":{borderBottomWidth:xt,borderBottomColor:Rr}},"&-selected":{color:Rr,backgroundColor:Nr,"&:hover":{backgroundColor:Nr},"&::after":{borderBottomWidth:xt,borderBottomColor:Rr}}}}),[`&${ke}-root`]:{[`&${ke}-inline, &${ke}-vertical`]:{borderInlineEnd:`${kt}px ${De} ${Ke}`}},[`&${ke}-inline`]:{[`${ke}-sub${ke}-inline`]:{background:re},[`${ke}-item, ${ke}-submenu-title`]:kt&&mt?{width:`calc(100% + ${kt}px)`}:{},[`${ke}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${mt}px solid ${$e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${on} ${he}`,`opacity ${on} ${he}`].join(","),content:'""'},[`&${ke}-item-danger`]:{"&::after":{borderInlineEndColor:fi}}},[`${ke}-selected, ${ke}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${on} ${Lt}`,`opacity ${on} ${Lt}`].join(",")}}}}}};const _n=ze=>{const{componentCls:Ie,itemHeight:ke,itemMarginInline:se,padding:$e,menuArrowSize:Ze,marginXS:ee,itemMarginBlock:re}=ze,Bt=$e+Ze+ee;return{[`${Ie}-item`]:{position:"relative",overflow:"hidden"},[`${Ie}-item, ${Ie}-submenu-title`]:{height:ke,lineHeight:`${ke}px`,paddingInline:$e,overflow:"hidden",textOverflow:"ellipsis",marginInline:se,marginBlock:re,width:`calc(100% - ${se*2}px)`},[`> ${Ie}-item,
> ${Ie}-submenu > ${Ie}-submenu-title`]:{height:ke,lineHeight:`${ke}px`},[`${Ie}-item-group-list ${Ie}-submenu-title,
${Ie}-submenu-title`]:{paddingInlineEnd:Bt}}};var rn=ze=>{const{componentCls:Ie,iconCls:ke,itemHeight:se,colorTextLightSolid:$e,dropdownWidth:Ze,controlHeightLG:ee,motionDurationMid:re,motionEaseOut:Bt,paddingXL:xt,itemMarginInline:mt,fontSizeLG:kt,motionDurationSlow:jt,paddingXS:Lt,boxShadowSecondary:he,collapsedWidth:Re,collapsedIconSize:on}=ze,de={height:se,lineHeight:`${se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ie]:{"&-inline, &-vertical":Object.assign({[`&${Ie}-root`]:{boxShadow:"none"}},_n(ze))},[`${Ie}-submenu-popup`]:{[`${Ie}-vertical`]:Object.assign(Object.assign({},_n(ze)),{boxShadow:he})}},{[`${Ie}-submenu-popup ${Ie}-vertical${Ie}-sub`]:{minWidth:Ze,maxHeight:`calc(100vh - ${ee*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ie}-inline`]:{width:"100%",[`&${Ie}-root`]:{[`${Ie}-item, ${Ie}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${jt}`,`background ${jt}`,`padding ${re} ${Bt}`].join(","),[`> ${Ie}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ie}-sub${Ie}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ie}-submenu > ${Ie}-submenu-title`]:de,[`& ${Ie}-item-group-title`]:{paddingInlineStart:xt}},[`${Ie}-item`]:de}},{[`${Ie}-inline-collapsed`]:{width:Re,[`&${Ie}-root`]:{[`${Ie}-item, ${Ie}-submenu ${Ie}-submenu-title`]:{[`> ${Ie}-inline-collapsed-noicon`]:{fontSize:kt,textAlign:"center"}}},[`> ${Ie}-item,
> ${Ie}-item-group > ${Ie}-item-group-list > ${Ie}-item,
> ${Ie}-item-group > ${Ie}-item-group-list > ${Ie}-submenu > ${Ie}-submenu-title,
> ${Ie}-submenu > ${Ie}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${kt/2}px - ${mt}px)`,textOverflow:"clip",[`
${Ie}-submenu-arrow,
${Ie}-submenu-expand-icon
`]:{opacity:0},[`${Ie}-item-icon, ${ke}`]:{margin:0,fontSize:on,lineHeight:`${se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ie}-item-icon, ${ke}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ie}-item-icon, ${ke}`]:{display:"none"},"a, a:hover":{color:$e}},[`${Ie}-item-group-title`]:Object.assign(Object.assign({},fe.vS),{paddingInline:Lt})}}]};const gn=ze=>{const{componentCls:Ie,motionDurationSlow:ke,motionDurationMid:se,motionEaseInOut:$e,motionEaseOut:Ze,iconCls:ee,iconSize:re,iconMarginInlineEnd:Bt}=ze;return{[`${Ie}-item, ${Ie}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ke}`,`background ${ke}`,`padding ${ke} ${$e}`].join(","),[`${Ie}-item-icon, ${ee}`]:{minWidth:re,fontSize:re,transition:[`font-size ${se} ${Ze}`,`margin ${ke} ${$e}`,`color ${ke}`].join(","),"+ span":{marginInlineStart:Bt,opacity:1,transition:[`opacity ${ke} ${$e}`,`margin ${ke}`,`color ${ke}`].join(",")}},[`${Ie}-item-icon`]:Object.assign({},(0,fe.Ro)()),[`&${Ie}-item-only-child`]:{[`> ${ee}, > ${Ie}-item-icon`]:{marginInlineEnd:0}}},[`${Ie}-item-disabled, ${Ie}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ie}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Vn=ze=>{const{componentCls:Ie,motionDurationSlow:ke,motionEaseInOut:se,borderRadius:$e,menuArrowSize:Ze,menuArrowOffset:ee}=ze;return{[`${Ie}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ze.margin,width:Ze,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ke} ${se}, opacity ${ke}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ze*.6,height:Ze*.15,backgroundColor:"currentcolor",borderRadius:$e,transition:[`background ${ke} ${se}`,`transform ${ke} ${se}`,`top ${ke} ${se}`,`color ${ke} ${se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ee})`},"&::after":{transform:`rotate(-45deg) translateY(${ee})`}}}}},cn=ze=>{const{antCls:Ie,componentCls:ke,fontSize:se,motionDurationSlow:$e,motionDurationMid:Ze,motionEaseInOut:ee,paddingXS:re,padding:Bt,colorSplit:xt,lineWidth:mt,zIndexPopup:kt,borderRadiusLG:jt,subMenuItemBorderRadius:Lt,menuArrowSize:he,menuArrowOffset:Re,lineType:on,menuPanelMaskInset:de,groupTitleLineHeight:De,groupTitleFontSize:Ke}=ze;return[{"":{[`${ke}`]:Object.assign(Object.assign({},(0,fe.dF)()),{"&-hidden":{display:"none"}})},[`${ke}-submenu-hidden`]:{display:"none"}},{[ke]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(ze)),(0,fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${$e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ke}-item`]:{flex:"none"}},[`${ke}-item, ${ke}-submenu, ${ke}-submenu-title`]:{borderRadius:ze.itemBorderRadius},[`${ke}-item-group-title`]:{padding:`${re}px ${Bt}px`,fontSize:Ke,lineHeight:De,transition:`all ${$e}`},[`&-horizontal ${ke}-submenu`]:{transition:[`border-color ${$e} ${ee}`,`background ${$e} ${ee}`].join(",")},[`${ke}-submenu, ${ke}-submenu-inline`]:{transition:[`border-color ${$e} ${ee}`,`background ${$e} ${ee}`,`padding ${Ze} ${ee}`].join(",")},[`${ke}-submenu ${ke}-sub`]:{cursor:"initial",transition:[`background ${$e} ${ee}`,`padding ${$e} ${ee}`].join(",")},[`${ke}-title-content`]:{transition:`color ${$e}`},[`${ke}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ke}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xt,borderStyle:on,borderWidth:0,borderTopWidth:mt,marginBlock:mt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),gn(ze)),{[`${ke}-item-group`]:{[`${ke}-item-group-list`]:{margin:0,padding:0,[`${ke}-item, ${ke}-submenu-title`]:{paddingInline:`${se*2}px ${Bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:kt,borderRadius:jt,boxShadow:"none",transformOrigin:"0 0",[`&${ke}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${de}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:de},"\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:ze.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ze.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ze.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ze.paddingXS},[`> ${ke}`]:Object.assign(Object.assign(Object.assign({borderRadius:jt},gn(ze)),Vn(ze)),{[`${ke}-item, ${ke}-submenu > ${ke}-submenu-title`]:{borderRadius:Lt},[`${ke}-submenu-title::after`]:{transition:`transform ${$e} ${ee}`}})}}),Vn(ze)),{[`&-inline-collapsed ${ke}-submenu-arrow,
&-inline ${ke}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Re})`},"&::after":{transform:`rotate(45deg) translateX(-${Re})`}},[`${ke}-submenu-open${ke}-submenu-inline > ${ke}-submenu-title > ${ke}-submenu-arrow`]:{transform:`translateY(-${he*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Re})`},"&::before":{transform:`rotate(45deg) translateX(${Re})`}}})},{[`${Ie}-layout-header`]:{[ke]:{lineHeight:"inherit"}}}]};var Hn=(ze,Ie)=>(0,tn.Z)("Menu",se=>{if(Ie===!1)return[];const{colorBgElevated:$e,colorPrimary:Ze,colorTextLightSolid:ee,controlHeightLG:re,fontSize:Bt,darkItemColor:xt,darkDangerItemColor:mt,darkItemBg:kt,darkSubMenuItemBg:jt,darkItemSelectedColor:Lt,darkItemSelectedBg:he,darkDangerItemSelectedBg:Re,darkItemHoverBg:on,darkGroupTitleColor:de,darkItemHoverColor:De,darkItemDisabledColor:Ke,darkDangerItemHoverColor:An,darkDangerItemSelectedColor:Yn,darkDangerItemActiveBg:gi}=se,fi=Bt/7*5,xi=(0,Ve.TS)(se,{menuArrowSize:fi,menuHorizontalHeight:re*1.15,menuArrowOffset:`${fi*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:$e}),Gi=(0,Ve.TS)(xi,{itemColor:xt,itemHoverColor:De,groupTitleColor:de,itemSelectedColor:Lt,itemBg:kt,popupBg:kt,subMenuItemBg:jt,itemActiveBg:"transparent",itemSelectedBg:he,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:on,itemDisabledColor:Ke,dangerItemColor:mt,dangerItemHoverColor:An,dangerItemSelectedColor:Yn,dangerItemActiveBg:gi,dangerItemSelectedBg:Re,menuSubMenuBg:jt,horizontalItemSelectedColor:ee,horizontalItemSelectedBg:Ze});return[cn(xi),_e(xi),rn(xi),Zn(xi,"light"),Zn(Gi,"dark"),ye(xi),(0,Yt.Z)(xi),(0,Xe.oN)(xi,"slide-up"),(0,Xe.oN)(xi,"slide-down"),(0,pe._y)(xi,"zoom-big")]},se=>{const{colorPrimary:$e,colorError:Ze,colorTextDisabled:ee,colorErrorBg:re,colorText:Bt,colorTextDescription:xt,colorBgContainer:mt,colorFillAlter:kt,colorFillContent:jt,lineWidth:Lt,lineWidthBold:he,controlItemBgActive:Re,colorBgTextHover:on,controlHeightLG:de,lineHeight:De,colorBgElevated:Ke,marginXXS:An,padding:Yn,fontSize:gi,controlHeightSM:fi,fontSizeLG:xi,colorTextLightSolid:Gi,colorErrorHover:yr}=se,lr=new Ut.C(Gi).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:se.zIndexPopupBase+50,radiusItem:se.borderRadiusLG,itemBorderRadius:se.borderRadiusLG,radiusSubMenuItem:se.borderRadiusSM,subMenuItemBorderRadius:se.borderRadiusSM,colorItemText:Bt,itemColor:Bt,colorItemTextHover:Bt,itemHoverColor:Bt,colorItemTextHoverHorizontal:$e,horizontalItemHoverColor:$e,colorGroupTitle:xt,groupTitleColor:xt,colorItemTextSelected:$e,itemSelectedColor:$e,colorItemTextSelectedHorizontal:$e,horizontalItemSelectedColor:$e,colorItemBg:mt,itemBg:mt,colorItemBgHover:on,itemHoverBg:on,colorItemBgActive:jt,itemActiveBg:Re,colorSubItemBg:kt,subMenuItemBg:kt,colorItemBgSelected:Re,itemSelectedBg:Re,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:he,activeBarHeight:he,colorActiveBarBorderSize:Lt,activeBarBorderWidth:Lt,colorItemTextDisabled:ee,itemDisabledColor:ee,colorDangerItemText:Ze,dangerItemColor:Ze,colorDangerItemTextHover:Ze,dangerItemHoverColor:Ze,colorDangerItemTextSelected:Ze,dangerItemSelectedColor:Ze,colorDangerItemBgActive:re,dangerItemActiveBg:re,colorDangerItemBgSelected:re,dangerItemSelectedBg:re,itemMarginInline:se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:de,groupTitleLineHeight:De,collapsedWidth:de*2,popupBg:Ke,itemMarginBlock:An,itemPaddingInline:Yn,horizontalLineHeight:`${de*1.15}px`,iconSize:gi,iconMarginInlineEnd:fi-gi,collapsedIconSize:xi,groupTitleFontSize:gi,darkItemDisabledColor:new Ut.C(Gi).setAlpha(.25).toRgbString(),darkItemColor:lr,darkDangerItemColor:Ze,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Gi,darkItemSelectedBg:$e,darkDangerItemSelectedBg:Ze,darkItemHoverBg:"transparent",darkGroupTitleColor:lr,darkItemHoverColor:Gi,darkDangerItemHoverColor:yr,darkDangerItemSelectedColor:Gi,darkDangerItemActiveBg:Ze}},{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"]]})(ze),me=function(ze,Ie){var ke={};for(var se in ze)Object.prototype.hasOwnProperty.call(ze,se)&&Ie.indexOf(se)<0&&(ke[se]=ze[se]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,se=Object.getOwnPropertySymbols(ze);$e<se.length;$e++)Ie.indexOf(se[$e])<0&&Object.prototype.propertyIsEnumerable.call(ze,se[$e])&&(ke[se[$e]]=ze[se[$e]]);return ke},ii=(0,zt.forwardRef)((ze,Ie)=>{var ke,se;const $e=zt.useContext(wt.Z),Ze=$e||{},{getPrefixCls:ee,getPopupContainer:re,direction:Bt,menu:xt}=zt.useContext(Se.E_),mt=ee(),{prefixCls:kt,className:jt,style:Lt,theme:he="light",expandIcon:Re,_internalDisableMenuItemTitleTooltip:on,inlineCollapsed:de,siderCollapsed:De,items:Ke,children:An,rootClassName:Yn,mode:gi,selectable:fi,onClick:xi,overflowedIndicatorPopupClassName:Gi}=ze,yr=me(ze,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),lr=(0,xe.Z)(yr,["collapsedWidth"]),rr=Zt(Ke)||An;(ke=Ze.validator)===null||ke===void 0||ke.call(Ze,{mode:gi});const Rr=(0,Pt.useEvent)(function(){var Qr;xi==null||xi.apply(void 0,arguments),(Qr=Ze.onClick)===null||Qr===void 0||Qr.call(Ze)}),Nr=Ze.mode||gi,Ji=fi!=null?fi:Ze.selectable,Wr=zt.useMemo(()=>De!==void 0?De:de,[de,De]),Xi={horizontal:{motionName:`${mt}-slide-up`},inline:(0,Ft.Z)(mt),other:{motionName:`${mt}-zoom-big`}},Et=ee("menu",kt||Ze.prefixCls),[ai,mi]=Hn(Et,!$e),hr=Xt()(`${Et}-${he}`,xt==null?void 0:xt.className,jt);let wr;if(typeof Re=="function")wr=Re;else if(Re===null||Re===!1)wr=null;else if(Ze.expandIcon===null||Ze.expandIcon===!1)wr=null;else{const Qr=Re!=null?Re:Ze.expandIcon;wr=(0,Ce.Tm)(Qr,{className:Xt()(`${Et}-submenu-expand-icon`,(0,Ce.l$)(Qr)?(se=Qr.props)===null||se===void 0?void 0:se.className:"")})}const _i=zt.useMemo(()=>({prefixCls:Et,inlineCollapsed:Wr||!1,direction:Bt,firstLevel:!0,theme:he,mode:Nr,disableMenuItemTitleTooltip:on}),[Et,Wr,Bt,on,he]);return ai(zt.createElement(wt.Z.Provider,{value:null},zt.createElement(et.Provider,{value:_i},zt.createElement(At.ZP,Object.assign({getPopupContainer:re,overflowedIndicator:zt.createElement(vt.Z,null),overflowedIndicatorPopupClassName:Xt()(Et,`${Et}-${he}`,Gi),mode:Nr,selectable:Ji,onClick:Rr},lr,{inlineCollapsed:Wr,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Lt),className:hr,prefixCls:Et,direction:Bt,defaultMotions:Xi,expandIcon:wr,ref:Ie,rootClassName:Xt()(Yn,mi)}),rr))))});const xn=(0,zt.forwardRef)((ze,Ie)=>{const ke=(0,zt.useRef)(null),se=zt.useContext(oe.D);return(0,zt.useImperativeHandle)(Ie,()=>({menu:ke.current,focus:$e=>{var Ze;(Ze=ke.current)===null||Ze===void 0||Ze.focus($e)}})),zt.createElement(ii,Object.assign({ref:ke},ze,se))});xn.Item=ht,xn.SubMenu=gt,xn.Divider=Pe,xn.ItemGroup=At.BW;var ni=xn},58421:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ze}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Me=oe,Xt=St(7657),Se=function(re,Bt){return zt.createElement(Xt.Z,(0,At.Z)({},re,{ref:Bt,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt,Pe=St(49198),ne=St(33853),xe=St(38819),we=St(92310),Ce=St.n(we),Tt=St(90493),et=St(44127),nt=St(52884),ht=St(95727),st=St(65711),gt=St(85745),vt=St(26112),Pt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ft=Pt,wt=St(91735),Ot=function(ee){(0,st.Z)(Bt,ee);var re=(0,gt.Z)(Bt);function Bt(){var xt;(0,nt.Z)(this,Bt);for(var mt=arguments.length,kt=new Array(mt),jt=0;jt<mt;jt++)kt[jt]=arguments[jt];return xt=re.call.apply(re,[this].concat(kt)),xt.state={goInputText:""},xt.getValidValue=function(){var Lt=xt.state.goInputText;return!Lt||Number.isNaN(Lt)?void 0:Number(Lt)},xt.buildOptionText=function(Lt){return"".concat(Lt," ").concat(xt.props.locale.items_per_page)},xt.changeSize=function(Lt){xt.props.changeSize(Number(Lt))},xt.handleChange=function(Lt){xt.setState({goInputText:Lt.target.value})},xt.handleBlur=function(Lt){var he=xt.props,Re=he.goButton,on=he.quickGo,de=he.rootPrefixCls,De=xt.state.goInputText;Re||De===""||(xt.setState({goInputText:""}),!(Lt.relatedTarget&&(Lt.relatedTarget.className.indexOf("".concat(de,"-item-link"))>=0||Lt.relatedTarget.className.indexOf("".concat(de,"-item"))>=0))&&on(xt.getValidValue()))},xt.go=function(Lt){var he=xt.state.goInputText;he!==""&&(Lt.keyCode===Ft.ENTER||Lt.type==="click")&&(xt.setState({goInputText:""}),xt.props.quickGo(xt.getValidValue()))},xt}return(0,ht.Z)(Bt,[{key:"getPageSizeOptions",value:function(){var mt=this.props,kt=mt.pageSize,jt=mt.pageSizeOptions;return jt.some(function(Lt){return Lt.toString()===kt.toString()})?jt:jt.concat([kt.toString()]).sort(function(Lt,he){var Re=Number.isNaN(Number(Lt))?0:Number(Lt),on=Number.isNaN(Number(he))?0:Number(he);return Re-on})}},{key:"render",value:function(){var mt=this,kt=this.props,jt=kt.pageSize,Lt=kt.locale,he=kt.rootPrefixCls,Re=kt.changeSize,on=kt.quickGo,de=kt.goButton,De=kt.selectComponentClass,Ke=kt.buildOptionText,An=kt.selectPrefixCls,Yn=kt.disabled,gi=this.state.goInputText,fi="".concat(he,"-options"),xi=De,Gi=null,yr=null,lr=null;if(!Re&&!on)return null;var rr=this.getPageSizeOptions();if(Re&&xi){var Rr=rr.map(function(Nr,Ji){return zt.createElement(xi.Option,{key:Ji,value:Nr.toString()},(Ke||mt.buildOptionText)(Nr))});Gi=zt.createElement(xi,{disabled:Yn,prefixCls:An,showSearch:!1,className:"".concat(fi,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(jt||rr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ji){return Ji.parentNode},"aria-label":Lt.page_size,defaultOpen:!1},Rr)}return on&&(de&&(lr=typeof de=="boolean"?zt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Yn,className:"".concat(fi,"-quick-jumper-button")},Lt.jump_to_confirm):zt.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),yr=zt.createElement("div",{className:"".concat(fi,"-quick-jumper")},Lt.jump_to,zt.createElement("input",{disabled:Yn,type:"text",value:gi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Lt.page}),Lt.page,lr)),zt.createElement("li",{className:"".concat(fi)},Gi,yr)}}]),Bt}(zt.Component);Ot.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ht=Ot,Zt=function(re){var Bt,xt=re.rootPrefixCls,mt=re.page,kt=re.active,jt=re.className,Lt=re.showTitle,he=re.onClick,Re=re.onKeyPress,on=re.itemRender,de="".concat(xt,"-item"),De=Ce()(de,"".concat(de,"-").concat(mt),(Bt={},(0,Tt.Z)(Bt,"".concat(de,"-active"),kt),(0,Tt.Z)(Bt,"".concat(de,"-disabled"),!mt),(0,Tt.Z)(Bt,re.className,jt),Bt)),Ke=function(){he(mt)},An=function(fi){Re(fi,he,mt)},Yn=on(mt,"page",zt.createElement("a",{rel:"nofollow"},mt));return Yn?zt.createElement("li",{title:Lt?mt.toString():null,className:De,onClick:Ke,onKeyPress:An,tabIndex:0},Yn):null},Ut=Zt;function fe(){}function Yt(ee){var re=Number(ee);return typeof re=="number"&&!Number.isNaN(re)&&isFinite(re)&&Math.floor(re)===re}var Xe=function(re,Bt,xt){return xt};function pe(ee,re,Bt){var xt=typeof ee=="undefined"?re.pageSize:ee;return Math.floor((Bt.total-1)/xt)+1}var tn=function(ee){(0,st.Z)(Bt,ee);var re=(0,gt.Z)(Bt);function Bt(xt){var mt;(0,nt.Z)(this,Bt),mt=re.call(this,xt),mt.paginationNode=zt.createRef(),mt.getJumpPrevPage=function(){return Math.max(1,mt.state.current-(mt.props.showLessItems?3:5))},mt.getJumpNextPage=function(){return Math.min(pe(void 0,mt.state,mt.props),mt.state.current+(mt.props.showLessItems?3:5))},mt.getItemIcon=function(Re,on){var de=mt.props.prefixCls,De=Re||zt.createElement("button",{type:"button","aria-label":on,className:"".concat(de,"-item-link")});return typeof Re=="function"&&(De=zt.createElement(Re,(0,et.Z)({},mt.props))),De},mt.isValid=function(Re){var on=mt.props.total;return Yt(Re)&&Re!==mt.state.current&&Yt(on)&&on>0},mt.shouldDisplayQuickJumper=function(){var Re=mt.props,on=Re.showQuickJumper,de=Re.total,De=mt.state.pageSize;return de<=De?!1:on},mt.handleKeyDown=function(Re){(Re.keyCode===Ft.ARROW_UP||Re.keyCode===Ft.ARROW_DOWN)&&Re.preventDefault()},mt.handleKeyUp=function(Re){var on=mt.getValidValue(Re),de=mt.state.currentInputValue;on!==de&&mt.setState({currentInputValue:on}),Re.keyCode===Ft.ENTER?mt.handleChange(on):Re.keyCode===Ft.ARROW_UP?mt.handleChange(on-1):Re.keyCode===Ft.ARROW_DOWN&&mt.handleChange(on+1)},mt.handleBlur=function(Re){var on=mt.getValidValue(Re);mt.handleChange(on)},mt.changePageSize=function(Re){var on=mt.state.current,de=pe(Re,mt.state,mt.props);on=on>de?de:on,de===0&&(on=mt.state.current),typeof Re=="number"&&("pageSize"in mt.props||mt.setState({pageSize:Re}),"current"in mt.props||mt.setState({current:on,currentInputValue:on})),mt.props.onShowSizeChange(on,Re),"onChange"in mt.props&&mt.props.onChange&&mt.props.onChange(on,Re)},mt.handleChange=function(Re){var on=mt.props,de=on.disabled,De=on.onChange,Ke=mt.state,An=Ke.pageSize,Yn=Ke.current,gi=Ke.currentInputValue;if(mt.isValid(Re)&&!de){var fi=pe(void 0,mt.state,mt.props),xi=Re;return Re>fi?xi=fi:Re<1&&(xi=1),"current"in mt.props||mt.setState({current:xi}),xi!==gi&&mt.setState({currentInputValue:xi}),De(xi,An),xi}return Yn},mt.prev=function(){mt.hasPrev()&&mt.handleChange(mt.state.current-1)},mt.next=function(){mt.hasNext()&&mt.handleChange(mt.state.current+1)},mt.jumpPrev=function(){mt.handleChange(mt.getJumpPrevPage())},mt.jumpNext=function(){mt.handleChange(mt.getJumpNextPage())},mt.hasPrev=function(){return mt.state.current>1},mt.hasNext=function(){return mt.state.current<pe(void 0,mt.state,mt.props)},mt.runIfEnter=function(Re,on){if(Re.key==="Enter"||Re.charCode===13){for(var de=arguments.length,De=new Array(de>2?de-2:0),Ke=2;Ke<de;Ke++)De[Ke-2]=arguments[Ke];on.apply(void 0,De)}},mt.runIfEnterPrev=function(Re){mt.runIfEnter(Re,mt.prev)},mt.runIfEnterNext=function(Re){mt.runIfEnter(Re,mt.next)},mt.runIfEnterJumpPrev=function(Re){mt.runIfEnter(Re,mt.jumpPrev)},mt.runIfEnterJumpNext=function(Re){mt.runIfEnter(Re,mt.jumpNext)},mt.handleGoTO=function(Re){(Re.keyCode===Ft.ENTER||Re.type==="click")&&mt.handleChange(mt.state.currentInputValue)},mt.renderPrev=function(Re){var on=mt.props,de=on.prevIcon,De=on.itemRender,Ke=De(Re,"prev",mt.getItemIcon(de,"prev page")),An=!mt.hasPrev();return(0,zt.isValidElement)(Ke)?(0,zt.cloneElement)(Ke,{disabled:An}):Ke},mt.renderNext=function(Re){var on=mt.props,de=on.nextIcon,De=on.itemRender,Ke=De(Re,"next",mt.getItemIcon(de,"next page")),An=!mt.hasNext();return(0,zt.isValidElement)(Ke)?(0,zt.cloneElement)(Ke,{disabled:An}):Ke};var kt=xt.onChange!==fe,jt="current"in xt;jt&&!kt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Lt=xt.defaultCurrent;"current"in xt&&(Lt=xt.current);var he=xt.defaultPageSize;return"pageSize"in xt&&(he=xt.pageSize),Lt=Math.min(Lt,pe(he,void 0,xt)),mt.state={current:Lt,currentInputValue:Lt,pageSize:he},mt}return(0,ht.Z)(Bt,[{key:"componentDidUpdate",value:function(mt,kt){var jt=this.props.prefixCls;if(kt.current!==this.state.current&&this.paginationNode.current){var Lt=this.paginationNode.current.querySelector(".".concat(jt,"-item-").concat(kt.current));if(Lt&&document.activeElement===Lt){var he;Lt==null||(he=Lt.blur)===null||he===void 0||he.call(Lt)}}}},{key:"getValidValue",value:function(mt){var kt=mt.target.value,jt=pe(void 0,this.state,this.props),Lt=this.state.currentInputValue,he;return kt===""?he=kt:Number.isNaN(Number(kt))?he=Lt:kt>=jt?he=jt:he=Number(kt),he}},{key:"getShowSizeChanger",value:function(){var mt=this.props,kt=mt.showSizeChanger,jt=mt.total,Lt=mt.totalBoundaryShowSizeChanger;return typeof kt!="undefined"?kt:jt>Lt}},{key:"render",value:function(){var mt=this.props,kt=mt.prefixCls,jt=mt.className,Lt=mt.style,he=mt.disabled,Re=mt.hideOnSinglePage,on=mt.total,de=mt.locale,De=mt.showQuickJumper,Ke=mt.showLessItems,An=mt.showTitle,Yn=mt.showTotal,gi=mt.simple,fi=mt.itemRender,xi=mt.showPrevNextJumpers,Gi=mt.jumpPrevIcon,yr=mt.jumpNextIcon,lr=mt.selectComponentClass,rr=mt.selectPrefixCls,Rr=mt.pageSizeOptions,Nr=this.state,Ji=Nr.current,Wr=Nr.pageSize,Xi=Nr.currentInputValue;if(Re===!0&&on<=Wr)return null;var Et=pe(void 0,this.state,this.props),ai=[],mi=null,hr=null,wr=null,_i=null,Qr=null,Zr=De&&De.goButton,xo=Ke?1:2,an=Ji-1>0?Ji-1:0,Qe=Ji+1<Et?Ji+1:Et,Jt=(0,vt.Z)(this.props,{aria:!0,data:!0}),un=Yn&&zt.createElement("li",{className:"".concat(kt,"-total-text")},Yn(on,[on===0?0:(Ji-1)*Wr+1,Ji*Wr>on?on:Ji*Wr]));if(gi){Zr&&(typeof Zr=="boolean"?Qr=zt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},de.jump_to_confirm):Qr=zt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Zr),Qr=zt.createElement("li",{title:An?"".concat(de.jump_to).concat(Ji,"/").concat(Et):null,className:"".concat(kt,"-simple-pager")},Qr));var On=this.renderPrev(an);return zt.createElement("ul",(0,At.Z)({className:Ce()(kt,"".concat(kt,"-simple"),(0,Tt.Z)({},"".concat(kt,"-disabled"),he),jt),style:Lt,ref:this.paginationNode},Jt),un,On?zt.createElement("li",{title:An?de.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ce()("".concat(kt,"-prev"),(0,Tt.Z)({},"".concat(kt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},On):null,zt.createElement("li",{title:An?"".concat(Ji,"/").concat(Et):null,className:"".concat(kt,"-simple-pager")},zt.createElement("input",{type:"text",value:Xi,disabled:he,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),zt.createElement("span",{className:"".concat(kt,"-slash")},"/"),Et),zt.createElement("li",{title:An?de.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ce()("".concat(kt,"-next"),(0,Tt.Z)({},"".concat(kt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Qe)),Qr)}if(Et<=3+xo*2){var Ee={locale:de,rootPrefixCls:kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:An,itemRender:fi};Et||ai.push(zt.createElement(Ut,(0,At.Z)({},Ee,{key:"noPager",page:1,className:"".concat(kt,"-item-disabled")})));for(var ce=1;ce<=Et;ce+=1){var mn=Ji===ce;ai.push(zt.createElement(Ut,(0,At.Z)({},Ee,{key:ce,page:ce,active:mn})))}}else{var Wn=Ke?de.prev_3:de.prev_5,Mi=Ke?de.next_3:de.next_5,pi=fi(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Gi,"prev page")),ue=fi(this.getJumpNextPage(),"jump-next",this.getItemIcon(yr,"next page"));xi&&(mi=pi?zt.createElement("li",{title:An?Wn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ce()("".concat(kt,"-jump-prev"),(0,Tt.Z)({},"".concat(kt,"-jump-prev-custom-icon"),!!Gi))},pi):null,hr=ue?zt.createElement("li",{title:An?Mi:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ce()("".concat(kt,"-jump-next"),(0,Tt.Z)({},"".concat(kt,"-jump-next-custom-icon"),!!yr))},ue):null),_i=zt.createElement(Ut,{locale:de,last:!0,rootPrefixCls:kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Et,page:Et,active:!1,showTitle:An,itemRender:fi}),wr=zt.createElement(Ut,{locale:de,rootPrefixCls:kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:An,itemRender:fi});var Nn=Math.max(1,Ji-xo),ui=Math.min(Ji+xo,Et);Ji-1<=xo&&(ui=1+xo*2),Et-Ji<=xo&&(Nn=Et-xo*2);for(var Hi=Nn;Hi<=ui;Hi+=1){var Ge=Ji===Hi;ai.push(zt.createElement(Ut,{locale:de,rootPrefixCls:kt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Hi,page:Hi,active:Ge,showTitle:An,itemRender:fi}))}Ji-1>=xo*2&&Ji!==3&&(ai[0]=(0,zt.cloneElement)(ai[0],{className:"".concat(kt,"-item-after-jump-prev")}),ai.unshift(mi)),Et-Ji>=xo*2&&Ji!==Et-2&&(ai[ai.length-1]=(0,zt.cloneElement)(ai[ai.length-1],{className:"".concat(kt,"-item-before-jump-next")}),ai.push(hr)),Nn!==1&&ai.unshift(wr),ui!==Et&&ai.push(_i)}var pn=!this.hasPrev()||!Et,je=!this.hasNext()||!Et,hn=this.renderPrev(an),yn=this.renderNext(Qe);return zt.createElement("ul",(0,At.Z)({className:Ce()(kt,jt,(0,Tt.Z)({},"".concat(kt,"-disabled"),he)),style:Lt,ref:this.paginationNode},Jt),un,hn?zt.createElement("li",{title:An?de.prev_page:null,onClick:this.prev,tabIndex:pn?null:0,onKeyPress:this.runIfEnterPrev,className:Ce()("".concat(kt,"-prev"),(0,Tt.Z)({},"".concat(kt,"-disabled"),pn)),"aria-disabled":pn},hn):null,ai,yn?zt.createElement("li",{title:An?de.next_page:null,onClick:this.next,tabIndex:je?null:0,onKeyPress:this.runIfEnterNext,className:Ce()("".concat(kt,"-next"),(0,Tt.Z)({},"".concat(kt,"-disabled"),je)),"aria-disabled":je},yn):null,zt.createElement(Ht,{disabled:he,locale:de,rootPrefixCls:kt,selectComponentClass:lr,selectPrefixCls:rr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ji,pageSize:Wr,pageSizeOptions:Rr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Zr}))}}],[{key:"getDerivedStateFromProps",value:function(mt,kt){var jt={};if("current"in mt&&(jt.current=mt.current,mt.current!==kt.current&&(jt.currentInputValue=jt.current)),"pageSize"in mt&&mt.pageSize!==kt.pageSize){var Lt=kt.current,he=pe(mt.pageSize,kt,mt);Lt=Lt>he?he:Lt,"current"in mt||(jt.current=Lt,jt.currentInputValue=Lt),jt.pageSize=mt.pageSize}return jt}}]),Bt}(zt.Component);tn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:fe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:fe,locale:wt.Z,style:{},itemRender:Xe,totalBoundaryShowSizeChanger:50};var Ve=tn,We=St(22075),_e=St(36355),Tn=St(19716),ye=St(8628),Gt=St(9763),nn=St(57809);const Zn=ee=>zt.createElement(nn.default,Object.assign({},ee,{showSearch:!0,size:"small"})),_n=ee=>zt.createElement(nn.default,Object.assign({},ee,{showSearch:!0,size:"middle"}));Zn.Option=nn.default.Option,_n.Option=nn.default.Option;var Te=St(9937),rn=St(17313),gn=St(83116),Vn=St(37613);const cn=ee=>{const{componentCls:re}=ee;return{[`${re}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${re}-item-link`]:{color:ee.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${re}-item-link`]:{color:ee.colorTextDisabled,cursor:"not-allowed"}}},[`&${re}-disabled`]:{cursor:"not-allowed",[`${re}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ee.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ee.colorBorder,backgroundColor:ee.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ee.itemActiveBgDisabled},a:{color:ee.itemActiveColorDisabled}}},[`${re}-item-link`]:{color:ee.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${re}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${re}-simple-pager`]:{color:ee.colorTextDisabled},[`${re}-jump-prev, ${re}-jump-next`]:{[`${re}-item-link-icon`]:{opacity:0},[`${re}-item-ellipsis`]:{opacity:1}}},[`&${re}-simple`]:{[`${re}-prev, ${re}-next`]:{[`&${re}-disabled ${re}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Hn=ee=>{const{componentCls:re}=ee;return{[`&${re}-mini ${re}-total-text, &${re}-mini ${re}-simple-pager`]:{height:ee.itemSizeSM,lineHeight:`${ee.itemSizeSM}px`},[`&${re}-mini ${re}-item`]:{minWidth:ee.itemSizeSM,height:ee.itemSizeSM,margin:0,lineHeight:`${ee.itemSizeSM-2}px`},[`&${re}-mini:not(${re}-disabled) ${re}-item:not(${re}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ee.colorBgTextHover},"&:active":{backgroundColor:ee.colorBgTextActive}},[`&${re}-mini ${re}-prev, &${re}-mini ${re}-next`]:{minWidth:ee.itemSizeSM,height:ee.itemSizeSM,margin:0,lineHeight:`${ee.itemSizeSM}px`},[`&${re}-mini:not(${re}-disabled)`]:{[`${re}-prev, ${re}-next`]:{[`&:hover ${re}-item-link`]:{backgroundColor:ee.colorBgTextHover},[`&:active ${re}-item-link`]:{backgroundColor:ee.colorBgTextActive},[`&${re}-disabled:hover ${re}-item-link`]:{backgroundColor:"transparent"}}},[`
&${re}-mini ${re}-prev ${re}-item-link,
&${re}-mini ${re}-next ${re}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ee.itemSizeSM,lineHeight:`${ee.itemSizeSM}px`}},[`&${re}-mini ${re}-jump-prev, &${re}-mini ${re}-jump-next`]:{height:ee.itemSizeSM,marginInlineEnd:0,lineHeight:`${ee.itemSizeSM}px`},[`&${re}-mini ${re}-options`]:{marginInlineStart:ee.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ee.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ee.itemSizeSM,lineHeight:`${ee.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Te.x0)(ee)),{width:ee.paginationMiniQuickJumperInputWidth,height:ee.controlHeightSM})}}}},me=ee=>{const{componentCls:re}=ee;return{[`
&${re}-simple ${re}-prev,
&${re}-simple ${re}-next
`]:{height:ee.itemSizeSM,lineHeight:`${ee.itemSizeSM}px`,verticalAlign:"top",[`${re}-item-link`]:{height:ee.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ee.colorBgTextHover},"&:active":{backgroundColor:ee.colorBgTextActive},"&::after":{height:ee.itemSizeSM,lineHeight:`${ee.itemSizeSM}px`}}},[`&${re}-simple ${re}-simple-pager`]:{display:"inline-block",height:ee.itemSizeSM,marginInlineEnd:ee.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ee.marginXS,padding:`0 ${ee.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ee.itemInputBg,border:`${ee.lineWidth}px ${ee.lineType} ${ee.colorBorder}`,borderRadius:ee.borderRadius,outline:"none",transition:`border-color ${ee.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ee.colorPrimary},"&:focus":{borderColor:ee.colorPrimaryHover,boxShadow:`${ee.inputOutlineOffset}px 0 ${ee.controlOutlineWidth}px ${ee.controlOutline}`},"&[disabled]":{color:ee.colorTextDisabled,backgroundColor:ee.colorBgContainerDisabled,borderColor:ee.colorBorder,cursor:"not-allowed"}}}}},Un=ee=>{const{componentCls:re}=ee;return{[`${re}-jump-prev, ${re}-jump-next`]:{outline:0,[`${re}-item-container`]:{position:"relative",[`${re}-item-link-icon`]:{color:ee.colorPrimary,fontSize:ee.fontSizeSM,opacity:0,transition:`all ${ee.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${re}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ee.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ee.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ee.paginationEllipsisTextIndent,opacity:1,transition:`all ${ee.motionDurationMid}`}},"&:hover":{[`${re}-item-link-icon`]:{opacity:1},[`${re}-item-ellipsis`]:{opacity:0}}},[`
${re}-prev,
${re}-jump-prev,
${re}-jump-next
`]:{marginInlineEnd:ee.marginXS},[`
${re}-prev,
${re}-next,
${re}-jump-prev,
${re}-jump-next
`]:{display:"inline-block",minWidth:ee.itemSize,height:ee.itemSize,color:ee.colorText,fontFamily:ee.fontFamily,lineHeight:`${ee.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ee.borderRadius,cursor:"pointer",transition:`all ${ee.motionDurationMid}`},[`${re}-prev, ${re}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ee.colorText,cursor:"pointer",userSelect:"none"},[`${re}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ee.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ee.lineWidth}px ${ee.lineType} transparent`,borderRadius:ee.borderRadius,outline:"none",transition:`all ${ee.motionDurationMid}`},[`&:hover ${re}-item-link`]:{backgroundColor:ee.colorBgTextHover},[`&:active ${re}-item-link`]:{backgroundColor:ee.colorBgTextActive},[`&${re}-disabled:hover`]:{[`${re}-item-link`]:{backgroundColor:"transparent"}}},[`${re}-slash`]:{marginInlineEnd:ee.paginationSlashMarginInlineEnd,marginInlineStart:ee.paginationSlashMarginInlineStart},[`${re}-options`]:{display:"inline-block",marginInlineStart:ee.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ee.controlHeight,marginInlineStart:ee.marginXS,lineHeight:`${ee.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Te.ik)(ee)),{width:ee.controlHeightLG*1.25,height:ee.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ee.marginXS,marginInlineEnd:ee.marginXS})}}}},ii=ee=>{const{componentCls:re}=ee;return{[`${re}-item`]:{display:"inline-block",minWidth:ee.itemSize,height:ee.itemSize,marginInlineEnd:ee.marginXS,fontFamily:ee.fontFamily,lineHeight:`${ee.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ee.lineWidth}px ${ee.lineType} transparent`,borderRadius:ee.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ee.paginationItemPaddingInline}px`,color:ee.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${re}-item-active)`]:{"&:hover":{transition:`all ${ee.motionDurationMid}`,backgroundColor:ee.colorBgTextHover},"&:active":{backgroundColor:ee.colorBgTextActive}},"&-active":{fontWeight:ee.fontWeightStrong,backgroundColor:ee.itemActiveBg,borderColor:ee.colorPrimary,a:{color:ee.colorPrimary},"&:hover":{borderColor:ee.colorPrimaryHover},"&:hover a":{color:ee.colorPrimaryHover}}}}},xn=ee=>{const{componentCls:re}=ee;return{[re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,rn.Wf)(ee)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${re}-total-text`]:{display:"inline-block",height:ee.itemSize,marginInlineEnd:ee.marginXS,lineHeight:`${ee.itemSize-2}px`,verticalAlign:"middle"}}),ii(ee)),Un(ee)),me(ee)),Hn(ee)),cn(ee)),{[`@media only screen and (max-width: ${ee.screenLG}px)`]:{[`${re}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ee.screenSM}px)`]:{[`${re}-options`]:{display:"none"}}}),[`&${ee.componentCls}-rtl`]:{direction:"rtl"}}},ni=ee=>{const{componentCls:re}=ee;return{[`${re}${re}-disabled:not(${re}-mini)`]:{"&, &:hover":{[`${re}-item-link`]:{borderColor:ee.colorBorder}},"&:focus-visible":{[`${re}-item-link`]:{borderColor:ee.colorBorder}},[`${re}-item, ${re}-item-link`]:{backgroundColor:ee.colorBgContainerDisabled,borderColor:ee.colorBorder,[`&:hover:not(${re}-item-active)`]:{backgroundColor:ee.colorBgContainerDisabled,borderColor:ee.colorBorder,a:{color:ee.colorTextDisabled}},[`&${re}-item-active`]:{backgroundColor:ee.itemActiveBgDisabled}},[`${re}-prev, ${re}-next`]:{"&:hover button":{backgroundColor:ee.colorBgContainerDisabled,borderColor:ee.colorBorder,color:ee.colorTextDisabled},[`${re}-item-link`]:{backgroundColor:ee.colorBgContainerDisabled,borderColor:ee.colorBorder}}},[`${re}:not(${re}-mini)`]:{[`${re}-prev, ${re}-next`]:{"&:hover button":{borderColor:ee.colorPrimaryHover,backgroundColor:ee.itemBg},[`${re}-item-link`]:{backgroundColor:ee.itemLinkBg,borderColor:ee.colorBorder},[`&:hover ${re}-item-link`]:{borderColor:ee.colorPrimary,backgroundColor:ee.itemBg,color:ee.colorPrimary},[`&${re}-disabled`]:{[`${re}-item-link`]:{borderColor:ee.colorBorder,color:ee.colorTextDisabled}}},[`${re}-item`]:{backgroundColor:ee.itemBg,border:`${ee.lineWidth}px ${ee.lineType} ${ee.colorBorder}`,[`&:hover:not(${re}-item-active)`]:{borderColor:ee.colorPrimary,backgroundColor:ee.itemBg,a:{color:ee.colorPrimary}},"&-active":{borderColor:ee.colorPrimary}}}}},ze=ee=>{const{componentCls:re}=ee;return{[`${re}:not(${re}-disabled)`]:{[`${re}-item`]:Object.assign({},(0,rn.Qy)(ee)),[`${re}-jump-prev, ${re}-jump-next`]:{"&:focus-visible":Object.assign({[`${re}-item-link-icon`]:{opacity:1},[`${re}-item-ellipsis`]:{opacity:0}},(0,rn.oN)(ee))},[`${re}-prev, ${re}-next`]:{[`&:focus-visible ${re}-item-link`]:Object.assign({},(0,rn.oN)(ee))}}}};var Ie=(0,gn.Z)("Pagination",ee=>{const re=(0,Vn.TS)(ee,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ee.marginXXS/2,paginationMiniQuickJumperInputWidth:ee.controlHeightLG*1.1,paginationItemPaddingInline:ee.marginXXS*1.5,paginationEllipsisLetterSpacing:ee.marginXXS/2,paginationSlashMarginInlineStart:ee.marginXXS,paginationSlashMarginInlineEnd:ee.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Te.e5)(ee),(0,Te.TM)(ee));return[xn(re),ze(re),ee.wireframe&&ni(re)]},ee=>({itemBg:ee.colorBgContainer,itemSize:ee.controlHeight,itemSizeSM:ee.controlHeightSM,itemActiveBg:ee.colorBgContainer,itemLinkBg:ee.colorBgContainer,itemActiveColorDisabled:ee.colorTextDisabled,itemActiveBgDisabled:ee.controlItemBgActiveDisabled,itemInputBg:ee.colorBgContainer,miniOptionsSizeChangerTop:0})),ke=function(ee,re){var Bt={};for(var xt in ee)Object.prototype.hasOwnProperty.call(ee,xt)&&re.indexOf(xt)<0&&(Bt[xt]=ee[xt]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,xt=Object.getOwnPropertySymbols(ee);mt<xt.length;mt++)re.indexOf(xt[mt])<0&&Object.prototype.propertyIsEnumerable.call(ee,xt[mt])&&(Bt[xt[mt]]=ee[xt[mt]]);return Bt},$e=ee=>{const{prefixCls:re,selectPrefixCls:Bt,className:xt,rootClassName:mt,style:kt,size:jt,locale:Lt,selectComponentClass:he,responsive:Re,showSizeChanger:on}=ee,de=ke(ee,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:De}=(0,ye.Z)(Re),{getPrefixCls:Ke,direction:An,pagination:Yn={}}=zt.useContext(_e.E_),gi=Ke("pagination",re),[fi,xi]=Ie(gi),Gi=on!=null?on:Yn.showSizeChanger,yr=zt.useMemo(()=>{const Et=zt.createElement("span",{className:`${gi}-item-ellipsis`},"\u2022\u2022\u2022"),ai=zt.createElement("button",{className:`${gi}-item-link`,type:"button",tabIndex:-1},An==="rtl"?zt.createElement(xe.Z,null):zt.createElement(ne.Z,null)),mi=zt.createElement("button",{className:`${gi}-item-link`,type:"button",tabIndex:-1},An==="rtl"?zt.createElement(ne.Z,null):zt.createElement(xe.Z,null)),hr=zt.createElement("a",{className:`${gi}-item-link`},zt.createElement("div",{className:`${gi}-item-container`},An==="rtl"?zt.createElement(Pe.Z,{className:`${gi}-item-link-icon`}):zt.createElement(Ne,{className:`${gi}-item-link-icon`}),Et)),wr=zt.createElement("a",{className:`${gi}-item-link`},zt.createElement("div",{className:`${gi}-item-container`},An==="rtl"?zt.createElement(Ne,{className:`${gi}-item-link-icon`}):zt.createElement(Pe.Z,{className:`${gi}-item-link-icon`}),Et));return{prevIcon:ai,nextIcon:mi,jumpPrevIcon:hr,jumpNextIcon:wr}},[An,gi]),[lr]=(0,Gt.Z)("Pagination",We.Z),rr=Object.assign(Object.assign({},lr),Lt),Rr=(0,Tn.Z)(jt),Nr=Rr==="small"||!!(De&&!Rr&&Re),Ji=Ke("select",Bt),Wr=Ce()({[`${gi}-mini`]:Nr,[`${gi}-rtl`]:An==="rtl"},Yn==null?void 0:Yn.className,xt,mt,xi),Xi=Object.assign(Object.assign({},Yn==null?void 0:Yn.style),kt);return fi(zt.createElement(Ve,Object.assign({},yr,de,{style:Xi,prefixCls:gi,selectPrefixCls:Ji,className:Wr,selectComponentClass:he||(Nr?Zn:_n),locale:rr,showSizeChanger:Gi})))},Ze=$e},93948:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return on}});var At=St(59301),zt=St(29679),oe=St(40001),Me=St(19248),Xt=St(99267),Se=St(92310),Nt=St.n(Se),Ne=St(2738),Pe=St(36355),ne=St(96663),xe=St(44127),we=St(6620),Ce={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Tt=function(){var De=(0,At.useRef)([]),Ke=(0,At.useRef)(null);return(0,At.useEffect)(function(){var An=Date.now(),Yn=!1;De.current.forEach(function(gi){if(gi){Yn=!0;var fi=gi.style;fi.transitionDuration=".3s, .3s, .3s, .06s",Ke.current&&An-Ke.current<100&&(fi.transitionDuration="0s, 0s")}}),Yn&&(Ke.current=Date.now())}),De.current},et=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],nt=function(De){var Ke=(0,xe.Z)((0,xe.Z)({},Ce),De),An=Ke.className,Yn=Ke.percent,gi=Ke.prefixCls,fi=Ke.strokeColor,xi=Ke.strokeLinecap,Gi=Ke.strokeWidth,yr=Ke.style,lr=Ke.trailColor,rr=Ke.trailWidth,Rr=Ke.transition,Nr=(0,we.Z)(Ke,et);delete Nr.gapPosition;var Ji=Array.isArray(Yn)?Yn:[Yn],Wr=Array.isArray(fi)?fi:[fi],Xi=Tt(),Et=Gi/2,ai=100-Gi/2,mi="M ".concat(xi==="round"?Et:0,",").concat(Et,`
L `).concat(xi==="round"?ai:100,",").concat(Et),hr="0 0 100 ".concat(Gi),wr=0;return At.createElement("svg",(0,ne.Z)({className:Nt()("".concat(gi,"-line"),An),viewBox:hr,preserveAspectRatio:"none",style:yr},Nr),At.createElement("path",{className:"".concat(gi,"-line-trail"),d:mi,strokeLinecap:xi,stroke:lr,strokeWidth:rr||Gi,fillOpacity:"0"}),Ji.map(function(_i,Qr){var Zr=1;switch(xi){case"round":Zr=1-Gi/100;break;case"square":Zr=1-Gi/2/100;break;default:Zr=1;break}var xo={strokeDasharray:"".concat(_i*Zr,"px, 100px"),strokeDashoffset:"-".concat(wr,"px"),transition:Rr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},an=Wr[Qr]||Wr[Wr.length-1];return wr+=_i,At.createElement("path",{key:Qr,className:"".concat(gi,"-line-path"),d:mi,strokeLinecap:xi,stroke:an,strokeWidth:Gi,fillOpacity:"0",ref:function(Jt){Xi[Qr]=Jt},style:xo})}))},ht=nt,st=St(20135),gt=St(72071),vt=St(47273),Pt=0,Ft=(0,vt.Z)();function wt(){var de;return Ft?(de=Pt,Pt+=1):de="TEST_OR_SSR",de}var Ot=function(de){var De=At.useState(),Ke=(0,gt.Z)(De,2),An=Ke[0],Yn=Ke[1];return At.useEffect(function(){Yn("rc_progress_".concat(wt()))},[]),de||An},Ht=function(De){var Ke=De.bg,An=De.children;return At.createElement("div",{style:{width:"100%",height:"100%",background:Ke}},An)};function Zt(de,De){return Object.keys(de).map(function(Ke){var An=parseFloat(Ke),Yn="".concat(Math.floor(An*De),"%");return"".concat(de[Ke]," ").concat(Yn)})}var Ut=At.forwardRef(function(de,De){var Ke=de.prefixCls,An=de.color,Yn=de.gradientId,gi=de.radius,fi=de.style,xi=de.ptg,Gi=de.strokeLinecap,yr=de.strokeWidth,lr=de.size,rr=de.gapDegree,Rr=An&&(0,st.Z)(An)==="object",Nr=Rr?"#FFF":void 0,Ji=lr/2,Wr=At.createElement("circle",{className:"".concat(Ke,"-circle-path"),r:gi,cx:Ji,cy:Ji,stroke:Nr,strokeLinecap:Gi,strokeWidth:yr,opacity:xi===0?0:1,style:fi,ref:De});if(!Rr)return Wr;var Xi="".concat(Yn,"-conic"),Et=rr?"".concat(180+rr/2,"deg"):"0deg",ai=Zt(An,(360-rr)/360),mi=Zt(An,1),hr="conic-gradient(from ".concat(Et,", ").concat(ai.join(", "),")"),wr="linear-gradient(to ".concat(rr?"bottom":"top",", ").concat(mi.join(", "),")");return At.createElement(At.Fragment,null,At.createElement("mask",{id:Xi},Wr),At.createElement("foreignObject",{x:0,y:0,width:lr,height:lr,mask:"url(#".concat(Xi,")")},At.createElement(Ht,{bg:wr},At.createElement(Ht,{bg:hr}))))}),fe=Ut,Yt=100,Xe=function(De,Ke,An,Yn,gi,fi,xi,Gi,yr,lr){var rr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Rr=An/100*360*((360-fi)/360),Nr=fi===0?0:{bottom:0,top:180,left:90,right:-90}[xi],Ji=(100-Yn)/100*Ke;yr==="round"&&Yn!==100&&(Ji+=lr/2,Ji>=Ke&&(Ji=Ke-.01));var Wr=Yt/2;return{stroke:typeof Gi=="string"?Gi:void 0,strokeDasharray:"".concat(Ke,"px ").concat(De),strokeDashoffset:Ji+rr,transform:"rotate(".concat(gi+Rr+Nr,"deg)"),transformOrigin:"".concat(Wr,"px ").concat(Wr,"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}},pe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function tn(de){var De=de!=null?de:[];return Array.isArray(De)?De:[De]}var Ve=function(De){var Ke=(0,xe.Z)((0,xe.Z)({},Ce),De),An=Ke.id,Yn=Ke.prefixCls,gi=Ke.steps,fi=Ke.strokeWidth,xi=Ke.trailWidth,Gi=Ke.gapDegree,yr=Gi===void 0?0:Gi,lr=Ke.gapPosition,rr=Ke.trailColor,Rr=Ke.strokeLinecap,Nr=Ke.style,Ji=Ke.className,Wr=Ke.strokeColor,Xi=Ke.percent,Et=(0,we.Z)(Ke,pe),ai=Yt/2,mi=Ot(An),hr="".concat(mi,"-gradient"),wr=ai-fi/2,_i=Math.PI*2*wr,Qr=yr>0?90+yr/2:-90,Zr=_i*((360-yr)/360),xo=(0,st.Z)(gi)==="object"?gi:{count:gi,space:2},an=xo.count,Qe=xo.space,Jt=tn(Xi),un=tn(Wr),On=un.find(function(ue){return ue&&(0,st.Z)(ue)==="object"}),Ee=On&&(0,st.Z)(On)==="object",ce=Ee?"butt":Rr,mn=Xe(_i,Zr,0,100,Qr,yr,lr,rr,ce,fi),Wn=Tt(),Mi=function(){var Nn=0;return Jt.map(function(ui,Hi){var Ge=un[Hi]||un[un.length-1],pn=Xe(_i,Zr,Nn,ui,Qr,yr,lr,Ge,ce,fi);return Nn+=ui,At.createElement(fe,{key:Hi,color:Ge,ptg:ui,radius:wr,prefixCls:Yn,gradientId:hr,style:pn,strokeLinecap:ce,strokeWidth:fi,gapDegree:yr,ref:function(hn){Wn[Hi]=hn},size:Yt})}).reverse()},pi=function(){var Nn=Math.round(an*(Jt[0]/100)),ui=100/an,Hi=0;return new Array(an).fill(null).map(function(Ge,pn){var je=pn<=Nn-1?un[0]:rr,hn=je&&(0,st.Z)(je)==="object"?"url(#".concat(hr,")"):void 0,yn=Xe(_i,Zr,Hi,ui,Qr,yr,lr,je,"butt",fi,Qe);return Hi+=(Zr-yn.strokeDashoffset+Qe)*100/Zr,At.createElement("circle",{key:pn,className:"".concat(Yn,"-circle-path"),r:wr,cx:ai,cy:ai,stroke:hn,strokeWidth:fi,opacity:1,style:yn,ref:function(kn){Wn[pn]=kn}})})};return At.createElement("svg",(0,ne.Z)({className:Nt()("".concat(Yn,"-circle"),Ji),viewBox:"0 0 ".concat(Yt," ").concat(Yt),style:Nr,id:An,role:"presentation"},Et),!an&&At.createElement("circle",{className:"".concat(Yn,"-circle-trail"),r:wr,cx:ai,cy:ai,stroke:rr,strokeLinecap:ce,strokeWidth:xi||fi,style:mn}),an?pi():Mi())},We=Ve,_e={Line:ht,Circle:We},Tn=St(6848),ye=St(93398);function Gt(de){return!de||de<0?0:de>100?100:de}function nn(de){let{success:De,successPercent:Ke}=de,An=Ke;return De&&"progress"in De&&(An=De.progress),De&&"percent"in De&&(An=De.percent),An}const Zn=de=>{let{percent:De,success:Ke,successPercent:An}=de;const Yn=Gt(nn({success:Ke,successPercent:An}));return[Yn,Gt(Gt(De)-Yn)]},_n=de=>{let{success:De={},strokeColor:Ke}=de;const{strokeColor:An}=De;return[An||ye.presetPrimaryColors.green,Ke||null]},Te=(de,De,Ke)=>{var An,Yn,gi,fi;let xi=-1,Gi=-1;if(De==="step"){const yr=Ke.steps,lr=Ke.strokeWidth;typeof de=="string"||typeof de=="undefined"?(xi=de==="small"?2:14,Gi=lr!=null?lr:8):typeof de=="number"?[xi,Gi]=[de,de]:[xi=14,Gi=8]=de,xi*=yr}else if(De==="line"){const yr=Ke==null?void 0:Ke.strokeWidth;typeof de=="string"||typeof de=="undefined"?Gi=yr||(de==="small"?6:8):typeof de=="number"?[xi,Gi]=[de,de]:[xi=-1,Gi=8]=de}else(De==="circle"||De==="dashboard")&&(typeof de=="string"||typeof de=="undefined"?[xi,Gi]=de==="small"?[60,60]:[120,120]:typeof de=="number"?[xi,Gi]=[de,de]:(xi=(Yn=(An=de[0])!==null&&An!==void 0?An:de[1])!==null&&Yn!==void 0?Yn:120,Gi=(fi=(gi=de[0])!==null&&gi!==void 0?gi:de[1])!==null&&fi!==void 0?fi:120));return[xi,Gi]},rn=3,gn=de=>rn/de*100;var cn=de=>{const{prefixCls:De,trailColor:Ke=null,strokeLinecap:An="round",gapPosition:Yn,gapDegree:gi,width:fi=120,type:xi,children:Gi,success:yr,size:lr=fi}=de,[rr,Rr]=Te(lr,"circle");let{strokeWidth:Nr}=de;Nr===void 0&&(Nr=Math.max(gn(rr),6));const Ji={width:rr,height:Rr,fontSize:rr*.15+6},Wr=At.useMemo(()=>{if(gi||gi===0)return gi;if(xi==="dashboard")return 75},[gi,xi]),Xi=Yn||xi==="dashboard"&&"bottom"||void 0,Et=Object.prototype.toString.call(de.strokeColor)==="[object Object]",ai=_n({success:yr,strokeColor:de.strokeColor}),mi=Nt()(`${De}-inner`,{[`${De}-circle-gradient`]:Et}),hr=At.createElement(We,{percent:Zn(de),strokeWidth:Nr,trailWidth:Nr,strokeColor:ai,strokeLinecap:An,trailColor:Ke,prefixCls:De,gapDegree:Wr,gapPosition:Xi});return At.createElement("div",{className:mi,style:Ji},rr<=20?At.createElement(Tn.Z,{title:Gi},At.createElement("span",null,hr)):At.createElement(At.Fragment,null,hr,Gi))},Hn=function(de,De){var Ke={};for(var An in de)Object.prototype.hasOwnProperty.call(de,An)&&De.indexOf(An)<0&&(Ke[An]=de[An]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,An=Object.getOwnPropertySymbols(de);Yn<An.length;Yn++)De.indexOf(An[Yn])<0&&Object.prototype.propertyIsEnumerable.call(de,An[Yn])&&(Ke[An[Yn]]=de[An[Yn]]);return Ke};const me=de=>{let De=[];return Object.keys(de).forEach(Ke=>{const An=parseFloat(Ke.replace(/%/g,""));isNaN(An)||De.push({key:An,value:de[Ke]})}),De=De.sort((Ke,An)=>Ke.key-An.key),De.map(Ke=>{let{key:An,value:Yn}=Ke;return`${Yn} ${An}%`}).join(", ")},Un=(de,De)=>{const{from:Ke=ye.presetPrimaryColors.blue,to:An=ye.presetPrimaryColors.blue,direction:Yn=De==="rtl"?"to left":"to right"}=de,gi=Hn(de,["from","to","direction"]);if(Object.keys(gi).length!==0){const fi=me(gi);return{backgroundImage:`linear-gradient(${Yn}, ${fi})`}}return{backgroundImage:`linear-gradient(${Yn}, ${Ke}, ${An})`}};var xn=de=>{const{prefixCls:De,direction:Ke,percent:An,size:Yn,strokeWidth:gi,strokeColor:fi,strokeLinecap:xi="round",children:Gi,trailColor:yr=null,success:lr}=de,rr=fi&&typeof fi!="string"?Un(fi,Ke):{backgroundColor:fi},Rr=xi==="square"||xi==="butt"?0:void 0,Nr={backgroundColor:yr||void 0,borderRadius:Rr},Ji=Yn!=null?Yn:[-1,gi||(Yn==="small"?6:8)],[Wr,Xi]=Te(Ji,"line",{strokeWidth:gi}),Et=Object.assign({width:`${Gt(An)}%`,height:Xi,borderRadius:Rr},rr),ai=nn(de),mi={width:`${Gt(ai)}%`,height:Xi,borderRadius:Rr,backgroundColor:lr==null?void 0:lr.strokeColor},hr={width:Wr<0?"100%":Wr,height:Xi};return At.createElement(At.Fragment,null,At.createElement("div",{className:`${De}-outer`,style:hr},At.createElement("div",{className:`${De}-inner`,style:Nr},At.createElement("div",{className:`${De}-bg`,style:Et}),ai!==void 0?At.createElement("div",{className:`${De}-success-bg`,style:mi}):null)),Gi)},ze=de=>{const{size:De,steps:Ke,percent:An=0,strokeWidth:Yn=8,strokeColor:gi,trailColor:fi=null,prefixCls:xi,children:Gi}=de,yr=Math.round(Ke*(An/100)),lr=De==="small"?2:14,rr=De!=null?De:[lr,Yn],[Rr,Nr]=Te(rr,"step",{steps:Ke,strokeWidth:Yn}),Ji=Rr/Ke,Wr=new Array(Ke);for(let Xi=0;Xi<Ke;Xi++){const Et=Array.isArray(gi)?gi[Xi]:gi;Wr[Xi]=At.createElement("div",{key:Xi,className:Nt()(`${xi}-steps-item`,{[`${xi}-steps-item-active`]:Xi<=yr-1}),style:{backgroundColor:Xi<=yr-1?Et:fi,width:Ji,height:Nr}})}return At.createElement("div",{className:`${xi}-steps-outer`},Wr,Gi)},Ie=St(93083),ke=St(17313),se=St(83116),$e=St(37613);const Ze=de=>{const De=de?"100%":"-100%";return new Ie.Keyframes(`antProgress${de?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${De}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${De}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ee=de=>{const{componentCls:De,iconCls:Ke}=de;return{[De]:Object.assign(Object.assign({},(0,ke.Wf)(de)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:de.fontSize,marginInlineEnd:de.marginXS,marginBottom:de.marginXS},[`${De}-outer`]:{display:"inline-block",width:"100%"},[`&${De}-show-info`]:{[`${De}-outer`]:{marginInlineEnd:`calc(-2em - ${de.marginXS}px)`,paddingInlineEnd:`calc(2em + ${de.paddingXS}px)`}},[`${De}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:de.remainingColor,borderRadius:de.lineBorderRadius},[`${De}-inner:not(${De}-circle-gradient)`]:{[`${De}-circle-path`]:{stroke:de.defaultColor}},[`${De}-success-bg, ${De}-bg`]:{position:"relative",backgroundColor:de.defaultColor,borderRadius:de.lineBorderRadius,transition:`all ${de.motionDurationSlow} ${de.motionEaseInOutCirc}`},[`${De}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:de.colorSuccess},[`${De}-text`]:{display:"inline-block",width:"2em",marginInlineStart:de.marginXS,color:de.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ke]:{fontSize:de.fontSize}},[`&${De}-status-active`]:{[`${De}-bg::before`]:{position:"absolute",inset:0,backgroundColor:de.colorBgContainer,borderRadius:de.lineBorderRadius,opacity:0,animationName:Ze(),animationDuration:de.progressActiveMotionDuration,animationTimingFunction:de.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${De}-rtl${De}-status-active`]:{[`${De}-bg::before`]:{animationName:Ze(!0)}},[`&${De}-status-exception`]:{[`${De}-bg`]:{backgroundColor:de.colorError},[`${De}-text`]:{color:de.colorError}},[`&${De}-status-exception ${De}-inner:not(${De}-circle-gradient)`]:{[`${De}-circle-path`]:{stroke:de.colorError}},[`&${De}-status-success`]:{[`${De}-bg`]:{backgroundColor:de.colorSuccess},[`${De}-text`]:{color:de.colorSuccess}},[`&${De}-status-success ${De}-inner:not(${De}-circle-gradient)`]:{[`${De}-circle-path`]:{stroke:de.colorSuccess}}})}},re=de=>{const{componentCls:De,iconCls:Ke}=de;return{[De]:{[`${De}-circle-trail`]:{stroke:de.remainingColor},[`&${De}-circle ${De}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${De}-circle ${De}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:de.circleTextColor,fontSize:de.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ke]:{fontSize:`${de.fontSize/de.fontSizeSM}em`}},[`${De}-circle&-status-exception`]:{[`${De}-text`]:{color:de.colorError}},[`${De}-circle&-status-success`]:{[`${De}-text`]:{color:de.colorSuccess}}},[`${De}-inline-circle`]:{lineHeight:1,[`${De}-inner`]:{verticalAlign:"bottom"}}}},Bt=de=>{const{componentCls:De}=de;return{[De]:{[`${De}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:de.progressStepMinWidth,marginInlineEnd:de.progressStepMarginInlineEnd,backgroundColor:de.remainingColor,transition:`all ${de.motionDurationSlow}`,"&-active":{backgroundColor:de.defaultColor}}}}}},xt=de=>{const{componentCls:De,iconCls:Ke}=de;return{[De]:{[`${De}-small&-line, ${De}-small&-line ${De}-text ${Ke}`]:{fontSize:de.fontSizeSM}}}};var mt=(0,se.Z)("Progress",de=>{const De=de.marginXXS/2,Ke=(0,$e.TS)(de,{progressStepMarginInlineEnd:De,progressStepMinWidth:De,progressActiveMotionDuration:"2.4s"});return[ee(Ke),re(Ke),Bt(Ke),xt(Ke)]},de=>({circleTextColor:de.colorText,defaultColor:de.colorInfo,remainingColor:de.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),kt=function(de,De){var Ke={};for(var An in de)Object.prototype.hasOwnProperty.call(de,An)&&De.indexOf(An)<0&&(Ke[An]=de[An]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yn=0,An=Object.getOwnPropertySymbols(de);Yn<An.length;Yn++)De.indexOf(An[Yn])<0&&Object.prototype.propertyIsEnumerable.call(de,An[Yn])&&(Ke[An[Yn]]=de[An[Yn]]);return Ke};const jt=null,Lt=["normal","exception","active","success"];var Re=At.forwardRef((de,De)=>{const{prefixCls:Ke,className:An,rootClassName:Yn,steps:gi,strokeColor:fi,percent:xi=0,size:Gi="default",showInfo:yr=!0,type:lr="line",status:rr,format:Rr,style:Nr}=de,Ji=kt(de,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Wr=At.useMemo(()=>{var Jt,un;const On=nn(de);return parseInt(On!==void 0?(Jt=On!=null?On:0)===null||Jt===void 0?void 0:Jt.toString():(un=xi!=null?xi:0)===null||un===void 0?void 0:un.toString(),10)},[xi,de.success,de.successPercent]),Xi=At.useMemo(()=>!Lt.includes(rr)&&Wr>=100?"success":rr||"normal",[rr,Wr]),{getPrefixCls:Et,direction:ai,progress:mi}=At.useContext(Pe.E_),hr=Et("progress",Ke),[wr,_i]=mt(hr),Qr=At.useMemo(()=>{if(!yr)return null;const Jt=nn(de);let un;const On=Rr||(ce=>`${ce}%`),Ee=lr==="line";return Rr||Xi!=="exception"&&Xi!=="success"?un=On(Gt(xi),Gt(Jt)):Xi==="exception"?un=Ee?At.createElement(Me.Z,null):At.createElement(Xt.Z,null):Xi==="success"&&(un=Ee?At.createElement(zt.Z,null):At.createElement(oe.Z,null)),At.createElement("span",{className:`${hr}-text`,title:typeof un=="string"?un:void 0},un)},[yr,xi,Wr,Xi,lr,hr,Rr]),Zr=Array.isArray(fi)?fi[0]:fi,xo=typeof fi=="string"||Array.isArray(fi)?fi:void 0;let an;lr==="line"?an=gi?At.createElement(ze,Object.assign({},de,{strokeColor:xo,prefixCls:hr,steps:gi}),Qr):At.createElement(xn,Object.assign({},de,{strokeColor:Zr,prefixCls:hr,direction:ai}),Qr):(lr==="circle"||lr==="dashboard")&&(an=At.createElement(cn,Object.assign({},de,{strokeColor:Zr,prefixCls:hr,progressStatus:Xi}),Qr));const Qe=Nt()(hr,`${hr}-status-${Xi}`,`${hr}-${lr==="dashboard"&&"circle"||gi&&"steps"||lr}`,{[`${hr}-inline-circle`]:lr==="circle"&&Te(Gi,"circle")[0]<=20,[`${hr}-show-info`]:yr,[`${hr}-${Gi}`]:typeof Gi=="string",[`${hr}-rtl`]:ai==="rtl"},mi==null?void 0:mi.className,An,Yn,_i);return wr(At.createElement("div",Object.assign({ref:De,style:Object.assign(Object.assign({},mi==null?void 0:mi.style),Nr),className:Qe,role:"progressbar","aria-valuenow":Wr},(0,Ne.Z)(Ji,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),an))}),on=Re},57809:function(Bn,Cn,St){"use strict";var At=St(92310),zt=St.n(At),oe=St(77861),Me=St(2738),Xt=St(59301),Se=St(53487),Nt=St(62892),Ne=St(19080),Pe=St(36355),ne=St(1684),xe=St(93891),we=St(19716),Ce=St(32441),Tt=St(33234),et=St(14154),nt=St(58582),ht=St(84443),st=St(66339),gt=function(Ot,Ht){var Zt={};for(var Ut in Ot)Object.prototype.hasOwnProperty.call(Ot,Ut)&&Ht.indexOf(Ut)<0&&(Zt[Ut]=Ot[Ut]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Ut=Object.getOwnPropertySymbols(Ot);fe<Ut.length;fe++)Ht.indexOf(Ut[fe])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Ut[fe])&&(Zt[Ut[fe]]=Ot[Ut[fe]]);return Zt};const vt="SECRET_COMBOBOX_MODE_DO_NOT_USE",Pt=(Ot,Ht)=>{var Zt,{prefixCls:Ut,bordered:fe=!0,className:Yt,rootClassName:Xe,getPopupContainer:pe,popupClassName:tn,dropdownClassName:Ve,listHeight:We=256,placement:_e,listItemHeight:Tn=24,size:ye,disabled:Gt,notFoundContent:nn,status:Zn,builtinPlacements:_n,dropdownMatchSelectWidth:Te,popupMatchSelectWidth:rn,direction:gn,style:Vn,allowClear:cn}=Ot,Hn=gt(Ot,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:me,getPrefixCls:Un,renderEmpty:ii,direction:xn,virtual:ni,popupMatchSelectWidth:ze,popupOverflow:Ie,select:ke}=Xt.useContext(Pe.E_),se=Un("select",Ut),$e=Un(),Ze=gn!=null?gn:xn,{compactSize:ee,compactItemClassnames:re}=(0,Tt.ri)(se,Ze),[Bt,xt]=(0,et.Z)(se),mt=Xt.useMemo(()=>{const{mode:Xi}=Hn;if(Xi!=="combobox")return Xi===vt?"combobox":Xi},[Hn.mode]),kt=mt==="multiple"||mt==="tags",jt=(0,ht.Z)(Hn.suffixIcon,Hn.showArrow),Lt=(Zt=rn!=null?rn:Te)!==null&&Zt!==void 0?Zt:ze,{status:he,hasFeedback:Re,isFormItemInput:on,feedbackIcon:de}=Xt.useContext(Ce.aM),De=(0,Ne.F)(he,Zn);let Ke;nn!==void 0?Ke=nn:mt==="combobox"?Ke=null:Ke=(ii==null?void 0:ii("Select"))||Xt.createElement(xe.Z,{componentName:"Select"});const{suffixIcon:An,itemIcon:Yn,removeIcon:gi,clearIcon:fi}=(0,st.Z)(Object.assign(Object.assign({},Hn),{multiple:kt,hasFeedback:Re,feedbackIcon:de,showSuffixIcon:jt,prefixCls:se,showArrow:Hn.showArrow,componentName:"Select"})),xi=cn===!0?{clearIcon:fi}:cn,Gi=(0,Me.Z)(Hn,["suffixIcon","itemIcon"]),yr=zt()(tn||Ve,{[`${se}-dropdown-${Ze}`]:Ze==="rtl"},Xe,xt),lr=(0,we.Z)(Xi=>{var Et;return(Et=ye!=null?ye:ee)!==null&&Et!==void 0?Et:Xi}),rr=Xt.useContext(ne.Z),Rr=Gt!=null?Gt:rr,Nr=zt()({[`${se}-lg`]:lr==="large",[`${se}-sm`]:lr==="small",[`${se}-rtl`]:Ze==="rtl",[`${se}-borderless`]:!fe,[`${se}-in-form-item`]:on},(0,Ne.Z)(se,De,Re),re,ke==null?void 0:ke.className,Yt,Xe,xt),Ji=Xt.useMemo(()=>_e!==void 0?_e:Ze==="rtl"?"bottomRight":"bottomLeft",[_e,Ze]),Wr=(0,nt.Z)(_n,Ie);return Bt(Xt.createElement(oe.ZP,Object.assign({ref:Ht,virtual:ni,showSearch:ke==null?void 0:ke.showSearch},Gi,{style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Vn),dropdownMatchSelectWidth:Lt,builtinPlacements:Wr,transitionName:(0,Nt.m)($e,"slide-up",Hn.transitionName),listHeight:We,listItemHeight:Tn,mode:mt,prefixCls:se,placement:Ji,direction:Ze,suffixIcon:An,menuItemSelectedIcon:Yn,removeIcon:gi,allowClear:xi,notFoundContent:Ke,className:Nr,getPopupContainer:pe||me,dropdownClassName:yr,disabled:Rr})))},Ft=Xt.forwardRef(Pt),wt=(0,Se.Z)(Ft);Ft.SECRET_COMBOBOX_MODE_DO_NOT_USE=vt,Ft.Option=oe.Wx,Ft.OptGroup=oe.Xo,Ft._InternalPanelDoNotUseOrYouWillBeFired=wt,Cn.default=Ft},14154:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ft}});var At=St(17313),zt=St(74207),oe=St(37613),Me=St(83116),Xt=St(13826),Se=St(92899);const Nt=wt=>{const{optionHeight:Ot,optionFontSize:Ht,optionLineHeight:Zt,optionPadding:Ut}=wt;return{position:"relative",display:"block",minHeight:Ot,padding:Ut,color:wt.colorText,fontWeight:"normal",fontSize:Ht,lineHeight:Zt,boxSizing:"border-box"}};var Pe=wt=>{const{antCls:Ot,componentCls:Ht}=wt,Zt=`${Ht}-item`,Ut=`&${Ot}-slide-up-enter${Ot}-slide-up-enter-active`,fe=`&${Ot}-slide-up-appear${Ot}-slide-up-appear-active`,Yt=`&${Ot}-slide-up-leave${Ot}-slide-up-leave-active`,Xe=`${Ht}-dropdown-placement-`;return[{[`${Ht}-dropdown`]:Object.assign(Object.assign({},(0,At.Wf)(wt)),{position:"absolute",top:-9999,zIndex:wt.zIndexPopup,boxSizing:"border-box",padding:wt.paddingXXS,overflow:"hidden",fontSize:wt.fontSize,fontVariant:"initial",backgroundColor:wt.colorBgElevated,borderRadius:wt.borderRadiusLG,outline:"none",boxShadow:wt.boxShadowSecondary,[`
${Ut}${Xe}bottomLeft,
${fe}${Xe}bottomLeft
`]:{animationName:Xt.fJ},[`
${Ut}${Xe}topLeft,
${fe}${Xe}topLeft,
${Ut}${Xe}topRight,
${fe}${Xe}topRight
`]:{animationName:Xt.Qt},[`${Yt}${Xe}bottomLeft`]:{animationName:Xt.Uw},[`
${Yt}${Xe}topLeft,
${Yt}${Xe}topRight
`]:{animationName:Xt.ly},"&-hidden":{display:"none"},[`${Zt}`]:Object.assign(Object.assign({},Nt(wt)),{cursor:"pointer",transition:`background ${wt.motionDurationSlow} ease`,borderRadius:wt.borderRadiusSM,"&-group":{color:wt.colorTextDescription,fontSize:wt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},At.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Zt}-option-disabled)`]:{backgroundColor:wt.optionActiveBg},[`&-selected:not(${Zt}-option-disabled)`]:{color:wt.optionSelectedColor,fontWeight:wt.optionSelectedFontWeight,backgroundColor:wt.optionSelectedBg,[`${Zt}-option-state`]:{color:wt.colorPrimary}},"&-disabled":{[`&${Zt}-option-selected`]:{backgroundColor:wt.colorBgContainerDisabled},color:wt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:wt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Xt.oN)(wt,"slide-up"),(0,Xt.oN)(wt,"slide-down"),(0,Se.Fm)(wt,"move-up"),(0,Se.Fm)(wt,"move-down")]};const ne=2,xe=wt=>{let{controlHeightSM:Ot,controlHeight:Ht,lineWidth:Zt}=wt;const Ut=(Ht-Ot)/2-Zt,fe=Math.ceil(Ut/2);return[Ut,fe]};function we(wt,Ot){const{componentCls:Ht,iconCls:Zt}=wt,Ut=`${Ht}-selection-overflow`,fe=wt.multipleSelectItemHeight,[Yt]=xe(wt),Xe=Ot?`${Ht}-${Ot}`:"";return{[`${Ht}-multiple${Xe}`]:{fontSize:wt.fontSize,[Ut]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ht}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Yt-ne}px ${ne*2}px`,borderRadius:wt.borderRadius,[`${Ht}-show-search&`]:{cursor:"text"},[`${Ht}-disabled&`]:{background:wt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ne}px 0`,lineHeight:`${fe}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${Ht}-show-arrow ${Ht}-selector,
&${Ht}-allow-clear ${Ht}-selector
`]:{paddingInlineEnd:wt.fontSizeIcon+wt.controlPaddingHorizontal},[`${Ht}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:fe,marginTop:ne,marginBottom:ne,lineHeight:`${fe-wt.lineWidth*2}px`,background:wt.multipleItemBg,border:`${wt.lineWidth}px ${wt.lineType} ${wt.multipleItemBorderColor}`,borderRadius:wt.borderRadiusSM,cursor:"default",transition:`font-size ${wt.motionDurationSlow}, line-height ${wt.motionDurationSlow}, height ${wt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:ne*2,paddingInlineStart:wt.paddingXS,paddingInlineEnd:wt.paddingXS/2,[`${Ht}-disabled&`]:{color:wt.multipleItemColorDisabled,borderColor:wt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:wt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,At.Ro)()),{display:"inline-flex",alignItems:"center",color:wt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Zt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:wt.colorIconHover}})},[`${Ut}-item + ${Ut}-item`]:{[`${Ht}-selection-search`]:{marginInlineStart:0}},[`${Ht}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:wt.inputPaddingHorizontalBase-Yt,"\n &-input,\n &-mirror\n ":{height:fe,fontFamily:wt.fontFamily,lineHeight:`${fe}px`,transition:`all ${wt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ht}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:wt.inputPaddingHorizontalBase,insetInlineEnd:wt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${wt.motionDurationSlow}`}}}}var Tt=wt=>{const{componentCls:Ot}=wt,Ht=(0,oe.TS)(wt,{controlHeight:wt.controlHeightSM,multipleSelectItemHeight:wt.controlHeightXS,borderRadius:wt.borderRadiusSM,borderRadiusSM:wt.borderRadiusXS}),Zt=(0,oe.TS)(wt,{fontSize:wt.fontSizeLG,controlHeight:wt.controlHeightLG,multipleSelectItemHeight:wt.multipleItemHeightLG,borderRadius:wt.borderRadiusLG,borderRadiusSM:wt.borderRadius}),[,Ut]=xe(wt);return[we(wt),we(Ht,"sm"),{[`${Ot}-multiple${Ot}-sm`]:{[`${Ot}-selection-placeholder`]:{insetInline:wt.controlPaddingHorizontalSM-wt.lineWidth},[`${Ot}-selection-search`]:{marginInlineStart:Ut}}},we(Zt,"lg")]};function et(wt,Ot){const{componentCls:Ht,inputPaddingHorizontalBase:Zt,borderRadius:Ut}=wt,fe=wt.controlHeight-wt.lineWidth*2,Yt=Math.ceil(wt.fontSize*1.25),Xe=Ot?`${Ht}-${Ot}`:"";return{[`${Ht}-single${Xe}`]:{fontSize:wt.fontSize,[`${Ht}-selector`]:Object.assign(Object.assign({},(0,At.Wf)(wt)),{display:"flex",borderRadius:Ut,[`${Ht}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Zt,insetInlineEnd:Zt,bottom:0,"&-input":{width:"100%"}},[`
${Ht}-selection-item,
${Ht}-selection-placeholder
`]:{padding:0,lineHeight:`${fe}px`,transition:`all ${wt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${fe}px`}},[`${Ht}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ht}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ht}-selection-item:after`,`${Ht}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ht}-show-arrow ${Ht}-selection-item,
&${Ht}-show-arrow ${Ht}-selection-placeholder
`]:{paddingInlineEnd:Yt},[`&${Ht}-open ${Ht}-selection-item`]:{color:wt.colorTextPlaceholder},[`&:not(${Ht}-customize-input)`]:{[`${Ht}-selector`]:{width:"100%",height:wt.controlHeight,padding:`0 ${Zt}px`,[`${Ht}-selection-search-input`]:{height:fe},"&:after":{lineHeight:`${fe}px`}}},[`&${Ht}-customize-input`]:{[`${Ht}-selector`]:{"&:after":{display:"none"},[`${Ht}-selection-search`]:{position:"static",width:"100%"},[`${Ht}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Zt}px`,"&:after":{display:"none"}}}}}}}function nt(wt){const{componentCls:Ot}=wt,Ht=wt.controlPaddingHorizontalSM-wt.lineWidth;return[et(wt),et((0,oe.TS)(wt,{controlHeight:wt.controlHeightSM,borderRadius:wt.borderRadiusSM}),"sm"),{[`${Ot}-single${Ot}-sm`]:{[`&:not(${Ot}-customize-input)`]:{[`${Ot}-selection-search`]:{insetInlineStart:Ht,insetInlineEnd:Ht},[`${Ot}-selector`]:{padding:`0 ${Ht}px`},[`&${Ot}-show-arrow ${Ot}-selection-search`]:{insetInlineEnd:Ht+wt.fontSize*1.5},[`
&${Ot}-show-arrow ${Ot}-selection-item,
&${Ot}-show-arrow ${Ot}-selection-placeholder
`]:{paddingInlineEnd:wt.fontSize*1.5}}}},et((0,oe.TS)(wt,{controlHeight:wt.singleItemHeightLG,fontSize:wt.fontSizeLG,borderRadius:wt.borderRadiusLG}),"lg")]}const ht=wt=>{const{componentCls:Ot,selectorBg:Ht}=wt;return{position:"relative",backgroundColor:Ht,border:`${wt.lineWidth}px ${wt.lineType} ${wt.colorBorder}`,transition:`all ${wt.motionDurationMid} ${wt.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ot}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ot}-disabled&`]:{color:wt.colorTextDisabled,background:wt.colorBgContainerDisabled,cursor:"not-allowed",[`${Ot}-multiple&`]:{background:wt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},st=function(wt,Ot){let Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Zt,borderHoverColor:Ut,outlineColor:fe,antCls:Yt}=Ot,Xe=Ht?{[`${Zt}-selector`]:{borderColor:Ut}}:{};return{[wt]:{[`&:not(${Zt}-disabled):not(${Zt}-customize-input):not(${Yt}-pagination-size-changer)`]:Object.assign(Object.assign({},Xe),{[`${Zt}-focused& ${Zt}-selector`]:{borderColor:Ut,boxShadow:`0 0 0 ${Ot.controlOutlineWidth}px ${fe}`,outline:0},[`&:hover ${Zt}-selector`]:{borderColor:Ut}})}}},gt=wt=>{const{componentCls:Ot}=wt;return{[`${Ot}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},vt=wt=>{const{componentCls:Ot,inputPaddingHorizontalBase:Ht,iconCls:Zt}=wt;return{[Ot]:Object.assign(Object.assign({},(0,At.Wf)(wt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ot}-customize-input) ${Ot}-selector`]:Object.assign(Object.assign({},ht(wt)),gt(wt)),[`${Ot}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},At.vS),[`${Ot}-selection-placeholder`]:Object.assign(Object.assign({},At.vS),{flex:1,color:wt.colorTextPlaceholder,pointerEvents:"none"}),[`${Ot}-arrow`]:Object.assign(Object.assign({},(0,At.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ht,height:wt.fontSizeIcon,marginTop:-wt.fontSizeIcon/2,color:wt.colorTextQuaternary,fontSize:wt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Zt]:{verticalAlign:"top",transition:`transform ${wt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ot}-suffix)`]:{pointerEvents:"auto"}},[`${Ot}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ot}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ht,zIndex:1,display:"inline-block",width:wt.fontSizeIcon,height:wt.fontSizeIcon,marginTop:-wt.fontSizeIcon/2,color:wt.colorTextQuaternary,fontSize:wt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:wt.clearBg,cursor:"pointer",opacity:0,transition:`color ${wt.motionDurationMid} ease, opacity ${wt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:wt.colorTextTertiary}},"&:hover":{[`${Ot}-clear`]:{opacity:1}}}),[`${Ot}-has-feedback`]:{[`${Ot}-clear`]:{insetInlineEnd:Ht+wt.fontSize+wt.paddingXS}}}},Pt=wt=>{const{componentCls:Ot}=wt;return[{[Ot]:{[`&-borderless ${Ot}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ot}-in-form-item`]:{width:"100%"}}},vt(wt),nt(wt),Tt(wt),Pe(wt),{[`${Ot}-rtl`]:{direction:"rtl"}},st(Ot,(0,oe.TS)(wt,{borderHoverColor:wt.colorPrimaryHover,outlineColor:wt.controlOutline})),st(`${Ot}-status-error`,(0,oe.TS)(wt,{borderHoverColor:wt.colorErrorHover,outlineColor:wt.colorErrorOutline}),!0),st(`${Ot}-status-warning`,(0,oe.TS)(wt,{borderHoverColor:wt.colorWarningHover,outlineColor:wt.colorWarningOutline}),!0),(0,zt.c)(wt,{borderElCls:`${Ot}-selector`,focusElCls:`${Ot}-focused`})]};var Ft=(0,Me.Z)("Select",(wt,Ot)=>{let{rootPrefixCls:Ht}=Ot;const Zt=(0,oe.TS)(wt,{rootPrefixCls:Ht,inputPaddingHorizontalBase:wt.paddingSM-1,multipleSelectItemHeight:wt.multipleItemHeight});return[Pt(Zt)]},wt=>{const{fontSize:Ot,lineHeight:Ht,controlHeight:Zt,controlPaddingHorizontal:Ut,zIndexPopupBase:fe,colorText:Yt,fontWeightStrong:Xe,controlItemBgActive:pe,controlItemBgHover:tn,colorBgContainer:Ve,colorFillSecondary:We,controlHeightLG:_e,controlHeightSM:Tn,colorBgContainerDisabled:ye,colorTextDisabled:Gt}=wt;return{zIndexPopup:fe+50,optionSelectedColor:Yt,optionSelectedFontWeight:Xe,optionSelectedBg:pe,optionActiveBg:tn,optionPadding:`${(Zt-Ot*Ht)/2}px ${Ut}px`,optionFontSize:Ot,optionLineHeight:Ht,optionHeight:Zt,selectorBg:Ve,clearBg:Ve,singleItemHeightLG:_e,multipleItemBg:We,multipleItemBorderColor:"transparent",multipleItemHeight:Tn,multipleItemHeightLG:Zt,multipleSelectorBgDisabled:ye,multipleItemColorDisabled:Gt,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return zt}});const At=oe=>{const Xt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Xt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Xt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Xt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Xt),{points:["br","tr"],offset:[0,-4]})}};function zt(oe,Me){return oe||At(Me)}},84443:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return At}});function At(zt,oe){return oe!==void 0?oe:zt!==null}},66339:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});var At=St(40001),zt=St(19248),oe=St(99267),Me=St(84105),Xt=St(58617),Se=St(47472),Nt=St(59301);function Ne(Pe){let{suffixIcon:ne,clearIcon:xe,menuItemSelectedIcon:we,removeIcon:Ce,loading:Tt,multiple:et,hasFeedback:nt,prefixCls:ht,showSuffixIcon:st,feedbackIcon:gt,showArrow:vt,componentName:Pt}=Pe;const Ft=xe!=null?xe:Nt.createElement(zt.Z,null),wt=Ut=>ne===null&&!nt&&!vt?null:Nt.createElement(Nt.Fragment,null,st!==!1&&Ut,nt&&gt);let Ot=null;if(ne!==void 0)Ot=wt(ne);else if(Tt)Ot=wt(Nt.createElement(Xt.Z,{spin:!0}));else{const Ut=`${ht}-suffix`;Ot=fe=>{let{open:Yt,showSearch:Xe}=fe;return wt(Yt&&Xe?Nt.createElement(Se.Z,{className:Ut}):Nt.createElement(Me.Z,{className:Ut}))}}let Ht=null;we!==void 0?Ht=we:et?Ht=Nt.createElement(At.Z,null):Ht=null;let Zt=null;return Ce!==void 0?Zt=Ce:Zt=Nt.createElement(oe.Z,null),{clearIcon:Ft,suffixIcon:Ot,itemIcon:Ht,removeIcon:Zt}}},81327:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return ht}});var At=St(59301),zt=St(92310),oe=St.n(zt),Me=St(11592),Xt=St(36355),Se=St(33234);const Nt=At.createContext({latestIndex:0}),Ne=Nt.Provider;var ne=st=>{let{className:gt,index:vt,children:Pt,split:Ft,style:wt}=st;const{latestIndex:Ot}=At.useContext(Nt);return Pt==null?null:At.createElement(At.Fragment,null,At.createElement("div",{className:gt,style:wt},Pt),vt<Ot&&Ft&&At.createElement("span",{className:`${gt}-split`},Ft))},xe=St(2856);function we(st){return["small","middle","large"].includes(st)}function Ce(st){return st?typeof st=="number"&&!Number.isNaN(st):!1}var Tt=function(st,gt){var vt={};for(var Pt in st)Object.prototype.hasOwnProperty.call(st,Pt)&&gt.indexOf(Pt)<0&&(vt[Pt]=st[Pt]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Pt=Object.getOwnPropertySymbols(st);Ft<Pt.length;Ft++)gt.indexOf(Pt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(st,Pt[Ft])&&(vt[Pt[Ft]]=st[Pt[Ft]]);return vt};const nt=At.forwardRef((st,gt)=>{var vt,Pt;const{getPrefixCls:Ft,space:wt,direction:Ot}=At.useContext(Xt.E_),{size:Ht=(wt==null?void 0:wt.size)||"small",align:Zt,className:Ut,rootClassName:fe,children:Yt,direction:Xe="horizontal",prefixCls:pe,split:tn,style:Ve,wrap:We=!1,classNames:_e,styles:Tn}=st,ye=Tt(st,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Gt,nn]=Array.isArray(Ht)?Ht:[Ht,Ht],Zn=we(nn),_n=we(Gt),Te=Ce(nn),rn=Ce(Gt),gn=(0,Me.Z)(Yt,{keepEmpty:!0}),Vn=Zt===void 0&&Xe==="horizontal"?"center":Zt,cn=Ft("space",pe),[Hn,me]=(0,xe.Z)(cn),Un=oe()(cn,wt==null?void 0:wt.className,me,`${cn}-${Xe}`,{[`${cn}-rtl`]:Ot==="rtl",[`${cn}-align-${Vn}`]:Vn,[`${cn}-gap-row-${nn}`]:Zn,[`${cn}-gap-col-${Gt}`]:_n},Ut,fe),ii=oe()(`${cn}-item`,(vt=_e==null?void 0:_e.item)!==null&&vt!==void 0?vt:(Pt=wt==null?void 0:wt.classNames)===null||Pt===void 0?void 0:Pt.item);let xn=0;const ni=gn.map((ke,se)=>{var $e,Ze;ke!=null&&(xn=se);const ee=ke&&ke.key||`${ii}-${se}`;return At.createElement(ne,{className:ii,key:ee,index:se,split:tn,style:($e=Tn==null?void 0:Tn.item)!==null&&$e!==void 0?$e:(Ze=wt==null?void 0:wt.styles)===null||Ze===void 0?void 0:Ze.item},ke)}),ze=At.useMemo(()=>({latestIndex:xn}),[xn]);if(gn.length===0)return null;const Ie={};return We&&(Ie.flexWrap="wrap"),!_n&&rn&&(Ie.columnGap=Gt),!Zn&&Te&&(Ie.rowGap=nn),Hn(At.createElement("div",Object.assign({ref:gt,className:Un,style:Object.assign(Object.assign(Object.assign({},Ie),wt==null?void 0:wt.style),Ve)},ye),At.createElement(Ne,{value:ze},ni)))});nt.Compact=Se.ZP;var ht=nt},15969:function(Bn,Cn,St){"use strict";St.d(Cn,{N:function(){return At}});const At=zt=>({color:zt.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${zt.motionDurationSlow}`,"&:focus, &:hover":{color:zt.colorLinkHover},"&:active":{color:zt.colorLinkActive}})},78673:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Xe}});var At=St(58617),zt=St(92310),oe=St.n(zt),Me=St(96663),Xt=St(90493),Se=St(72071),Nt=St(6620),Ne=St(59301),Pe=St(18929),ne=St(10228),xe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],we=Ne.forwardRef(function(pe,tn){var Ve,We=pe.prefixCls,_e=We===void 0?"rc-switch":We,Tn=pe.className,ye=pe.checked,Gt=pe.defaultChecked,nn=pe.disabled,Zn=pe.loadingIcon,_n=pe.checkedChildren,Te=pe.unCheckedChildren,rn=pe.onClick,gn=pe.onChange,Vn=pe.onKeyDown,cn=(0,Nt.Z)(pe,xe),Hn=(0,Pe.Z)(!1,{value:ye,defaultValue:Gt}),me=(0,Se.Z)(Hn,2),Un=me[0],ii=me[1];function xn(ke,se){var $e=Un;return nn||($e=ke,ii($e),gn==null||gn($e,se)),$e}function ni(ke){ke.which===ne.Z.LEFT?xn(!1,ke):ke.which===ne.Z.RIGHT&&xn(!0,ke),Vn==null||Vn(ke)}function ze(ke){var se=xn(!Un,ke);rn==null||rn(se,ke)}var Ie=oe()(_e,Tn,(Ve={},(0,Xt.Z)(Ve,"".concat(_e,"-checked"),Un),(0,Xt.Z)(Ve,"".concat(_e,"-disabled"),nn),Ve));return Ne.createElement("button",(0,Me.Z)({},cn,{type:"button",role:"switch","aria-checked":Un,disabled:nn,className:Ie,ref:tn,onKeyDown:ni,onClick:ze}),Zn,Ne.createElement("span",{className:"".concat(_e,"-inner")},Ne.createElement("span",{className:"".concat(_e,"-inner-checked")},_n),Ne.createElement("span",{className:"".concat(_e,"-inner-unchecked")},Te)))});we.displayName="Switch";var Ce=we,Tt=St(14088),et=St(36355),nt=St(1684),ht=St(19716),st=St(64993),gt=St(17313),vt=St(83116),Pt=St(37613);const Ft=pe=>{const{componentCls:tn,trackHeightSM:Ve,trackPadding:We,trackMinWidthSM:_e,innerMinMarginSM:Tn,innerMaxMarginSM:ye,handleSizeSM:Gt}=pe,nn=`${tn}-inner`;return{[tn]:{[`&${tn}-small`]:{minWidth:_e,height:Ve,lineHeight:`${Ve}px`,[`${tn}-inner`]:{paddingInlineStart:ye,paddingInlineEnd:Tn,[`${nn}-checked`]:{marginInlineStart:`calc(-100% + ${Gt+We*2}px - ${ye*2}px)`,marginInlineEnd:`calc(100% - ${Gt+We*2}px + ${ye*2}px)`},[`${nn}-unchecked`]:{marginTop:-Ve,marginInlineStart:0,marginInlineEnd:0}},[`${tn}-handle`]:{width:Gt,height:Gt},[`${tn}-loading-icon`]:{top:(Gt-pe.switchLoadingIconSize)/2,fontSize:pe.switchLoadingIconSize},[`&${tn}-checked`]:{[`${tn}-inner`]:{paddingInlineStart:Tn,paddingInlineEnd:ye,[`${nn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${nn}-unchecked`]:{marginInlineStart:`calc(100% - ${Gt+We*2}px + ${ye*2}px)`,marginInlineEnd:`calc(-100% + ${Gt+We*2}px - ${ye*2}px)`}},[`${tn}-handle`]:{insetInlineStart:`calc(100% - ${Gt+We}px)`}},[`&:not(${tn}-disabled):active`]:{[`&:not(${tn}-checked) ${nn}`]:{[`${nn}-unchecked`]:{marginInlineStart:pe.marginXXS/2,marginInlineEnd:-pe.marginXXS/2}},[`&${tn}-checked ${nn}`]:{[`${nn}-checked`]:{marginInlineStart:-pe.marginXXS/2,marginInlineEnd:pe.marginXXS/2}}}}}}},wt=pe=>{const{componentCls:tn,handleSize:Ve}=pe;return{[tn]:{[`${tn}-loading-icon${pe.iconCls}`]:{position:"relative",top:(Ve-pe.fontSize)/2,color:pe.switchLoadingIconColor,verticalAlign:"top"},[`&${tn}-checked ${tn}-loading-icon`]:{color:pe.switchColor}}}},Ot=pe=>{const{componentCls:tn,motion:Ve,trackPadding:We,handleBg:_e,handleShadow:Tn,handleSize:ye}=pe,Gt=`${tn}-handle`;return{[tn]:{[Gt]:{position:"absolute",top:We,insetInlineStart:We,width:ye,height:ye,transition:`all ${pe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:_e,borderRadius:ye/2,boxShadow:Tn,transition:`all ${pe.switchDuration} ease-in-out`,content:'""'}},[`&${tn}-checked ${Gt}`]:{insetInlineStart:`calc(100% - ${ye+We}px)`},[`&:not(${tn}-disabled):active`]:Ve?{[`${Gt}::before`]:{insetInlineEnd:pe.switchHandleActiveInset,insetInlineStart:0},[`&${tn}-checked ${Gt}::before`]:{insetInlineEnd:0,insetInlineStart:pe.switchHandleActiveInset}}:{}}}},Ht=pe=>{const{componentCls:tn,trackHeight:Ve,trackPadding:We,innerMinMargin:_e,innerMaxMargin:Tn,handleSize:ye}=pe,Gt=`${tn}-inner`;return{[tn]:{[Gt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Tn,paddingInlineEnd:_e,transition:`padding-inline-start ${pe.switchDuration} ease-in-out, padding-inline-end ${pe.switchDuration} ease-in-out`,[`${Gt}-checked, ${Gt}-unchecked`]:{display:"block",color:pe.colorTextLightSolid,fontSize:pe.fontSizeSM,transition:`margin-inline-start ${pe.switchDuration} ease-in-out, margin-inline-end ${pe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Gt}-checked`]:{marginInlineStart:`calc(-100% + ${ye+We*2}px - ${Tn*2}px)`,marginInlineEnd:`calc(100% - ${ye+We*2}px + ${Tn*2}px)`},[`${Gt}-unchecked`]:{marginTop:-Ve,marginInlineStart:0,marginInlineEnd:0}},[`&${tn}-checked ${Gt}`]:{paddingInlineStart:_e,paddingInlineEnd:Tn,[`${Gt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Gt}-unchecked`]:{marginInlineStart:`calc(100% - ${ye+We*2}px + ${Tn*2}px)`,marginInlineEnd:`calc(-100% + ${ye+We*2}px - ${Tn*2}px)`}},[`&:not(${tn}-disabled):active`]:{[`&:not(${tn}-checked) ${Gt}`]:{[`${Gt}-unchecked`]:{marginInlineStart:We*2,marginInlineEnd:-We*2}},[`&${tn}-checked ${Gt}`]:{[`${Gt}-checked`]:{marginInlineStart:-We*2,marginInlineEnd:We*2}}}}}},Zt=pe=>{const{componentCls:tn,trackHeight:Ve,trackMinWidth:We}=pe;return{[tn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(pe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:We,height:Ve,lineHeight:`${Ve}px`,verticalAlign:"middle",background:pe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${pe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${tn}-disabled)`]:{background:pe.colorTextTertiary}}),(0,gt.Qy)(pe)),{[`&${tn}-checked`]:{background:pe.switchColor,[`&:hover:not(${tn}-disabled)`]:{background:pe.colorPrimaryHover}},[`&${tn}-loading, &${tn}-disabled`]:{cursor:"not-allowed",opacity:pe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${tn}-rtl`]:{direction:"rtl"}})}};var Ut=(0,vt.Z)("Switch",pe=>{const tn=(0,Pt.TS)(pe,{switchDuration:pe.motionDurationMid,switchColor:pe.colorPrimary,switchDisabledOpacity:pe.opacityLoading,switchLoadingIconSize:pe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${pe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Zt(tn),Ht(tn),Ot(tn),wt(tn),Ft(tn)]},pe=>{const{fontSize:tn,lineHeight:Ve,controlHeight:We,colorWhite:_e}=pe,Tn=tn*Ve,ye=We/2,Gt=2,nn=Tn-Gt*2,Zn=ye-Gt*2;return{trackHeight:Tn,trackHeightSM:ye,trackMinWidth:nn*2+Gt*4,trackMinWidthSM:Zn*2+Gt*2,trackPadding:Gt,handleBg:_e,handleSize:nn,handleSizeSM:Zn,handleShadow:`0 2px 4px 0 ${new st.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:nn/2,innerMaxMargin:nn+Gt+Gt*2,innerMinMarginSM:Zn/2,innerMaxMarginSM:Zn+Gt+Gt*2}}),fe=function(pe,tn){var Ve={};for(var We in pe)Object.prototype.hasOwnProperty.call(pe,We)&&tn.indexOf(We)<0&&(Ve[We]=pe[We]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,We=Object.getOwnPropertySymbols(pe);_e<We.length;_e++)tn.indexOf(We[_e])<0&&Object.prototype.propertyIsEnumerable.call(pe,We[_e])&&(Ve[We[_e]]=pe[We[_e]]);return Ve};const Yt=Ne.forwardRef((pe,tn)=>{const{prefixCls:Ve,size:We,disabled:_e,loading:Tn,className:ye,rootClassName:Gt,style:nn}=pe,Zn=fe(pe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:_n,direction:Te,switch:rn}=Ne.useContext(et.E_),gn=Ne.useContext(nt.Z),Vn=(_e!=null?_e:gn)||Tn,cn=_n("switch",Ve),Hn=Ne.createElement("div",{className:`${cn}-handle`},Tn&&Ne.createElement(At.Z,{className:`${cn}-loading-icon`})),[me,Un]=Ut(cn),ii=(0,ht.Z)(We),xn=oe()(rn==null?void 0:rn.className,{[`${cn}-small`]:ii==="small",[`${cn}-loading`]:Tn,[`${cn}-rtl`]:Te==="rtl"},ye,Gt,Un),ni=Object.assign(Object.assign({},rn==null?void 0:rn.style),nn);return me(Ne.createElement(Tt.Z,{component:"Switch"},Ne.createElement(Ce,Object.assign({},Zn,{prefixCls:cn,className:xn,style:ni,disabled:Vn,ref:tn,loadingIcon:Hn}))))});Yt.__ANT_SWITCH=!0;var Xe=Yt},1710:function(Bn,Cn,St){"use strict";St.d(Cn,{default:function(){return _s}});var At={},zt="rc-table-internal-hook",oe=St(72071),Me=St(6089),Xt=St(34280),Se=St(13697),Nt=St(59301),Ne=St(4676);function Pe(Qt){var ie=Nt.createContext(void 0),Fe=function(qe){var Ye=qe.value,En=qe.children,Pn=Nt.useRef(Ye);Pn.current=Ye;var wn=Nt.useState(function(){return{getValue:function(){return Pn.current},listeners:new Set}}),ei=(0,oe.Z)(wn,1),Rn=ei[0];return(0,Xt.Z)(function(){(0,Ne.unstable_batchedUpdates)(function(){Rn.listeners.forEach(function(qn){qn(Ye)})})},[Ye]),Nt.createElement(ie.Provider,{value:Rn},En)};return{Context:ie,Provider:Fe,defaultValue:Qt}}function ne(Qt,ie){var Fe=(0,Me.Z)(typeof ie=="function"?ie:function(qn){if(ie===void 0)return qn;if(!Array.isArray(ie))return qn[ie];var Ci={};return ie.forEach(function(wi){Ci[wi]=qn[wi]}),Ci}),Be=Nt.useContext(Qt==null?void 0:Qt.Context),qe=Be||{},Ye=qe.listeners,En=qe.getValue,Pn=Nt.useRef();Pn.current=Fe(Be?En():Qt==null?void 0:Qt.defaultValue);var wn=Nt.useState({}),ei=(0,oe.Z)(wn,2),Rn=ei[1];return(0,Xt.Z)(function(){if(!Be)return;function qn(Ci){var wi=Fe(Ci);(0,Se.Z)(Pn.current,wi,!0)||Rn({})}return Ye.add(qn),function(){Ye.delete(qn)}},[Be]),Pn.current}var xe=St(96663),we=St(8654);function Ce(){var Qt=Nt.createContext(null);function ie(){return Nt.useContext(Qt)}function Fe(qe,Ye){var En=(0,we.Yr)(qe),Pn=function(ei,Rn){var qn=En?{ref:Rn}:{},Ci=Nt.useRef(0),wi=Nt.useRef(ei),vi=ie();return vi!==null?Nt.createElement(qe,(0,xe.Z)({},ei,qn)):((!Ye||Ye(wi.current,ei))&&(Ci.current+=1),wi.current=ei,Nt.createElement(Qt.Provider,{value:Ci.current},Nt.createElement(qe,(0,xe.Z)({},ei,qn))))};return En?Nt.forwardRef(Pn):Pn}function Be(qe,Ye){var En=(0,we.Yr)(qe),Pn=function(ei,Rn){var qn=En?{ref:Rn}:{};return ie(),Nt.createElement(qe,(0,xe.Z)({},ei,qn))};return En?Nt.memo(Nt.forwardRef(Pn),Ye):Nt.memo(Pn,Ye)}return{makeImmutable:Fe,responseImmutable:Be,useImmutableMark:ie}}var Tt=Ce(),et=Tt.makeImmutable,nt=Tt.responseImmutable,ht=Tt.useImmutableMark,st=Ce(),gt=st.makeImmutable,vt=st.responseImmutable,Pt=st.useImmutableMark,Ft=Pe(),wt=Ft;function Ot(Qt,ie){var Fe=Nt.useRef(0);Fe.current+=1;var Be=Nt.useRef(Qt),qe=[];Object.keys(Qt||{}).map(function(En){var Pn;(Qt==null?void 0:Qt[En])!==((Pn=Be.current)===null||Pn===void 0?void 0:Pn[En])&&qe.push(En)}),Be.current=Qt;var Ye=Nt.useRef([]);return qe.length&&(Ye.current=qe),Nt.useDebugValue(Fe.current),Nt.useDebugValue(Ye.current.join(", ")),ie&&console.log("".concat(ie,":"),Fe.current,Ye.current),Fe.current}var Ht=null,Zt=Nt.memo(function(){var Qt=Ot();return Nt.createElement("h1",null,"Render Times: ",Qt)});Zt.displayName="RenderBlock";var Ut=St(20135),fe=St(44127),Yt=St(90493),Xe=St(92310),pe=St.n(Xe),tn=St(80547),Ve=St(97938),We=St(48736),_e=Nt.createContext({renderWithProps:!1}),Tn=_e,ye="RC_TABLE_KEY";function Gt(Qt){return Qt==null?[]:Array.isArray(Qt)?Qt:[Qt]}function nn(Qt){var ie=[],Fe={};return Qt.forEach(function(Be){for(var qe=Be||{},Ye=qe.key,En=qe.dataIndex,Pn=Ye||Gt(En).join("-")||ye;Fe[Pn];)Pn="".concat(Pn,"_next");Fe[Pn]=!0,ie.push(Pn)}),ie}function Zn(Qt){return Qt!=null}function _n(Qt){return Qt&&(0,Ut.Z)(Qt)==="object"&&!Array.isArray(Qt)&&!Nt.isValidElement(Qt)}function Te(Qt,ie,Fe,Be,qe,Ye){var En=Nt.useContext(Tn),Pn=Pt(),wn=(0,tn.Z)(function(){if(Zn(Be))return[Be];var ei=ie==null||ie===""?[]:Array.isArray(ie)?ie:[ie],Rn=(0,Ve.Z)(Qt,ei),qn=Rn,Ci=void 0;if(qe){var wi=qe(Rn,Qt,Fe);_n(wi)?(qn=wi.children,Ci=wi.props,En.renderWithProps=!0):qn=wi}return[qn,Ci]},[Pn,Qt,Be,ie,qe,Fe],function(ei,Rn){if(Ye){var qn=(0,oe.Z)(ei,2),Ci=qn[1],wi=(0,oe.Z)(Rn,2),vi=wi[1];return Ye(vi,Ci)}return En.renderWithProps?!0:!(0,Se.Z)(ei,Rn,!0)});return wn}function rn(Qt,ie,Fe,Be){var qe=Qt+ie-1;return Qt<=Be&&qe>=Fe}function gn(Qt,ie){return ne(wt,function(Fe){var Be=rn(Qt,ie||1,Fe.hoverStartRow,Fe.hoverEndRow);return[Be,Fe.onHover]})}var Vn=function(ie){var Fe=ie.ellipsis,Be=ie.rowType,qe=ie.children,Ye,En=Fe===!0?{showTitle:!0}:Fe;return En&&(En.showTitle||Be==="header")&&(typeof qe=="string"||typeof qe=="number"?Ye=qe.toString():Nt.isValidElement(qe)&&typeof qe.props.children=="string"&&(Ye=qe.props.children)),Ye};function cn(Qt){var ie,Fe,Be,qe,Ye,En,Pn,wn,ei=Qt.component,Rn=Qt.children,qn=Qt.ellipsis,Ci=Qt.scope,wi=Qt.prefixCls,vi=Qt.className,Vi=Qt.align,Si=Qt.record,ir=Qt.render,Qi=Qt.dataIndex,sr=Qt.renderIndex,Jr=Qt.shouldCellUpdate,oo=Qt.index,pr=Qt.rowType,Fr=Qt.colSpan,Eo=Qt.rowSpan,ur=Qt.fixLeft,zr=Qt.fixRight,mr=Qt.firstFixLeft,Wi=Qt.lastFixLeft,or=Qt.firstFixRight,jr=Qt.lastFixRight,ao=Qt.appendNode,lo=Qt.additionalProps,ar=lo===void 0?{}:lo,Lo=Qt.isSticky,Ro="".concat(wi,"-cell"),Wo=ne(wt,["supportSticky","allColumnsFixedLeft"]),Ho=Wo.supportSticky,ja=Wo.allColumnsFixedLeft,ta=Te(Si,Qi,sr,Rn,ir,Jr),Po=(0,oe.Z)(ta,2),_r=Po[0],po=Po[1],Ba={},Ca=typeof ur=="number"&&Ho,Ka=typeof zr=="number"&&Ho;Ca&&(Ba.position="sticky",Ba.left=ur),Ka&&(Ba.position="sticky",Ba.right=zr);var vo=(ie=(Fe=(Be=po==null?void 0:po.colSpan)!==null&&Be!==void 0?Be:ar.colSpan)!==null&&Fe!==void 0?Fe:Fr)!==null&&ie!==void 0?ie:1,no=(qe=(Ye=(En=po==null?void 0:po.rowSpan)!==null&&En!==void 0?En:ar.rowSpan)!==null&&Ye!==void 0?Ye:Eo)!==null&&qe!==void 0?qe:1,Co=gn(oo,no),qr=(0,oe.Z)(Co,2),Ir=qr[0],Li=qr[1],Sr=function(ho){var Bs;Si&&Li(oo,oo+no-1),ar==null||(Bs=ar.onMouseEnter)===null||Bs===void 0||Bs.call(ar,ho)},Fo=function(ho){var Bs;Si&&Li(-1,-1),ar==null||(Bs=ar.onMouseLeave)===null||Bs===void 0||Bs.call(ar,ho)};if(vo===0||no===0)return null;var Xo=(Pn=ar.title)!==null&&Pn!==void 0?Pn:Vn({rowType:pr,ellipsis:qn,children:_r}),Xs=pe()(Ro,vi,(wn={},(0,Yt.Z)(wn,"".concat(Ro,"-fix-left"),Ca&&Ho),(0,Yt.Z)(wn,"".concat(Ro,"-fix-left-first"),mr&&Ho),(0,Yt.Z)(wn,"".concat(Ro,"-fix-left-last"),Wi&&Ho),(0,Yt.Z)(wn,"".concat(Ro,"-fix-left-all"),Wi&&ja&&Ho),(0,Yt.Z)(wn,"".concat(Ro,"-fix-right"),Ka&&Ho),(0,Yt.Z)(wn,"".concat(Ro,"-fix-right-first"),or&&Ho),(0,Yt.Z)(wn,"".concat(Ro,"-fix-right-last"),jr&&Ho),(0,Yt.Z)(wn,"".concat(Ro,"-ellipsis"),qn),(0,Yt.Z)(wn,"".concat(Ro,"-with-append"),ao),(0,Yt.Z)(wn,"".concat(Ro,"-fix-sticky"),(Ca||Ka)&&Lo&&Ho),(0,Yt.Z)(wn,"".concat(Ro,"-row-hover"),!po&&Ir),wn),ar.className,po==null?void 0:po.className),ks={};Vi&&(ks.textAlign=Vi);var sl=(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},Ba),ar.style),ks),po==null?void 0:po.style),va=_r;return(0,Ut.Z)(va)==="object"&&!Array.isArray(va)&&!Nt.isValidElement(va)&&(va=null),qn&&(Wi||or)&&(va=Nt.createElement("span",{className:"".concat(Ro,"-content")},va)),Nt.createElement(ei,(0,xe.Z)({},po,ar,{className:Xs,style:sl,title:Xo,scope:Ci,onMouseEnter:Sr,onMouseLeave:Fo,colSpan:vo!==1?vo:null,rowSpan:no!==1?no:null}),ao,va)}var Hn=Nt.memo(cn);function me(Qt,ie,Fe,Be,qe,Ye){var En=Fe[Qt]||{},Pn=Fe[ie]||{},wn,ei;En.fixed==="left"?wn=Be.left[qe==="rtl"?ie:Qt]:Pn.fixed==="right"&&(ei=Be.right[qe==="rtl"?Qt:ie]);var Rn=!1,qn=!1,Ci=!1,wi=!1,vi=Fe[ie+1],Vi=Fe[Qt-1],Si=!(Ye!=null&&Ye.children);if(qe==="rtl"){if(wn!==void 0){var ir=Vi&&Vi.fixed==="left";wi=!ir&&Si}else if(ei!==void 0){var Qi=vi&&vi.fixed==="right";Ci=!Qi&&Si}}else if(wn!==void 0){var sr=vi&&vi.fixed==="left";Rn=!sr&&Si}else if(ei!==void 0){var Jr=Vi&&Vi.fixed==="right";qn=!Jr&&Si}return{fixLeft:wn,fixRight:ei,lastFixLeft:Rn,firstFixRight:qn,lastFixRight:Ci,firstFixLeft:wi,isSticky:Be.isSticky}}var Un=Nt.createContext({}),ii=Un;function xn(Qt){var ie=Qt.className,Fe=Qt.index,Be=Qt.children,qe=Qt.colSpan,Ye=qe===void 0?1:qe,En=Qt.rowSpan,Pn=Qt.align,wn=ne(wt,["prefixCls","direction"]),ei=wn.prefixCls,Rn=wn.direction,qn=Nt.useContext(ii),Ci=qn.scrollColumnIndex,wi=qn.stickyOffsets,vi=qn.flattenColumns,Vi=qn.columns,Si=Fe+Ye-1,ir=Si+1===Ci?Ye+1:Ye,Qi=me(Fe,Fe+ir-1,vi,wi,Rn,Vi==null?void 0:Vi[Fe]);return Nt.createElement(Hn,(0,xe.Z)({className:ie,index:Fe,component:"td",prefixCls:ei,record:null,dataIndex:null,align:Pn,colSpan:ir,rowSpan:En,render:function(){return Be}},Qi))}var ni=St(6620),ze=["children"];function Ie(Qt){var ie=Qt.children,Fe=(0,ni.Z)(Qt,ze);return Nt.createElement("tr",Fe,ie)}function ke(Qt){var ie=Qt.children;return ie}ke.Row=Ie,ke.Cell=xn;var se=ke;function $e(Qt){var ie=Qt.children,Fe=Qt.stickyOffsets,Be=Qt.flattenColumns,qe=Qt.columns,Ye=ne(wt,"prefixCls"),En=Be.length-1,Pn=Be[En],wn=Nt.useMemo(function(){return{stickyOffsets:Fe,flattenColumns:Be,scrollColumnIndex:Pn!=null&&Pn.scrollbar?En:null,columns:qe}},[Pn,Be,En,Fe,qe]);return Nt.createElement(ii.Provider,{value:wn},Nt.createElement("tfoot",{className:"".concat(Ye,"-summary")},ie))}var Ze=vt($e),ee=se,re=St(70425),Bt=St(29301),xt=St(29194),mt=St(24514),kt=St(75152),jt=St(26112);function Lt(Qt,ie,Fe,Be,qe,Ye,En){Qt.push({record:ie,indent:Fe,index:En});var Pn=Ye(ie),wn=qe==null?void 0:qe.has(Pn);if(ie&&Array.isArray(ie[Be])&&wn)for(var ei=0;ei<ie[Be].length;ei+=1)Lt(Qt,ie[Be][ei],Fe+1,Be,qe,Ye,ei)}function he(Qt,ie,Fe,Be){var qe=Nt.useMemo(function(){if(Fe!=null&&Fe.size){for(var Ye=[],En=0;En<(Qt==null?void 0:Qt.length);En+=1){var Pn=Qt[En];Lt(Ye,Pn,0,ie,Fe,Be,En)}return Ye}return Qt==null?void 0:Qt.map(function(wn,ei){return{record:wn,indent:0,index:ei}})},[Qt,ie,Fe,Be]);return qe}function Re(Qt){var ie=Qt.prefixCls,Fe=Qt.children,Be=Qt.component,qe=Qt.cellComponent,Ye=Qt.className,En=Qt.expanded,Pn=Qt.colSpan,wn=Qt.isEmpty,ei=ne(wt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Rn=ei.scrollbarSize,qn=ei.fixHeader,Ci=ei.fixColumn,wi=ei.componentWidth,vi=ei.horizonScroll,Vi=Fe;return(wn?vi&&wi:Ci)&&(Vi=Nt.createElement("div",{style:{width:wi-(qn?Rn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ie,"-expanded-row-fixed")},Vi)),Nt.createElement(Be,{className:Ye,style:{display:En?null:"none"}},Nt.createElement(Hn,{component:qe,prefixCls:ie,colSpan:Pn},Vi))}var on=Re;function de(Qt,ie,Fe,Be){var qe=ne(wt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ye=qe.flattenColumns,En=qe.expandableType,Pn=qe.expandedKeys,wn=qe.childrenColumnName,ei=qe.onTriggerExpand,Rn=qe.rowExpandable,qn=qe.onRow,Ci=qe.expandRowByClick,wi=qe.rowClassName,vi=En==="nest",Vi=En==="row"&&(!Rn||Rn(Qt)),Si=Vi||vi,ir=Pn&&Pn.has(ie),Qi=wn&&Qt&&Qt[wn],sr=(0,re.useEvent)(ei),Jr=qn==null?void 0:qn(Qt,Fe),oo=Jr==null?void 0:Jr.onClick,pr=function(zr){Ci&&Si&&ei(Qt,zr);for(var mr=arguments.length,Wi=new Array(mr>1?mr-1:0),or=1;or<mr;or++)Wi[or-1]=arguments[or];oo==null||oo.apply(void 0,[zr].concat(Wi))},Fr;typeof wi=="string"?Fr=wi:typeof wi=="function"&&(Fr=wi(Qt,Fe,Be));var Eo=nn(Ye);return(0,fe.Z)((0,fe.Z)({},qe),{},{columnsKey:Eo,nestExpandable:vi,expanded:ir,hasNestChildren:Qi,record:Qt,onTriggerExpand:sr,rowSupportExpand:Vi,expandable:Si,rowProps:(0,fe.Z)((0,fe.Z)({},Jr),{},{className:pe()(Fr,Jr==null?void 0:Jr.className),onClick:pr})})}function De(Qt,ie,Fe,Be,qe){var Ye=Qt.record,En=Qt.prefixCls,Pn=Qt.columnsKey,wn=Qt.fixedInfoList,ei=Qt.expandIconColumnIndex,Rn=Qt.nestExpandable,qn=Qt.indentSize,Ci=Qt.expandIcon,wi=Qt.expanded,vi=Qt.hasNestChildren,Vi=Qt.onTriggerExpand,Si=Pn[Fe],ir=wn[Fe],Qi;Fe===(ei||0)&&Rn&&(Qi=Nt.createElement(Nt.Fragment,null,Nt.createElement("span",{style:{paddingLeft:"".concat(qn*Be,"px")},className:"".concat(En,"-row-indent indent-level-").concat(Be)}),Ci({prefixCls:En,expanded:wi,expandable:vi,record:Ye,onExpand:Vi})));var sr;return ie.onCell&&(sr=ie.onCell(Ye,qe)),{key:Si,fixedInfo:ir,appendCellNode:Qi,additionalCellProps:sr||{}}}function Ke(Qt){var ie=Qt.className,Fe=Qt.style,Be=Qt.record,qe=Qt.index,Ye=Qt.renderIndex,En=Qt.rowKey,Pn=Qt.indent,wn=Pn===void 0?0:Pn,ei=Qt.rowComponent,Rn=Qt.cellComponent,qn=Qt.scopeCellComponent,Ci=de(Be,En,qe,wn),wi=Ci.prefixCls,vi=Ci.flattenColumns,Vi=Ci.expandedRowClassName,Si=Ci.expandedRowRender,ir=Ci.rowProps,Qi=Ci.expanded,sr=Ci.rowSupportExpand,Jr=Nt.useState(!1),oo=(0,oe.Z)(Jr,2),pr=oo[0],Fr=oo[1];Nt.useEffect(function(){Qi&&Fr(!0)},[Qi]);var Eo=Nt.createElement(ei,(0,xe.Z)({},ir,{"data-row-key":En,className:pe()(ie,"".concat(wi,"-row"),"".concat(wi,"-row-level-").concat(wn),ir==null?void 0:ir.className),style:(0,fe.Z)((0,fe.Z)({},Fe),ir==null?void 0:ir.style)}),vi.map(function(Wi,or){var jr=Wi.render,ao=Wi.dataIndex,lo=Wi.className,ar=De(Ci,Wi,or,wn,qe),Lo=ar.key,Ro=ar.fixedInfo,Wo=ar.appendCellNode,Ho=ar.additionalCellProps;return Nt.createElement(Hn,(0,xe.Z)({className:lo,ellipsis:Wi.ellipsis,align:Wi.align,scope:Wi.rowScope,component:Wi.rowScope?qn:Rn,prefixCls:wi,key:Lo,record:Be,index:qe,renderIndex:Ye,dataIndex:ao,render:jr,shouldCellUpdate:Wi.shouldCellUpdate},Ro,{appendNode:Wo,additionalProps:Ho}))})),ur;if(sr&&(pr||Qi)){var zr=Si(Be,qe,wn+1,Qi),mr=Vi&&Vi(Be,qe,wn);ur=Nt.createElement(on,{expanded:Qi,className:pe()("".concat(wi,"-expanded-row"),"".concat(wi,"-expanded-row-level-").concat(wn+1),mr),prefixCls:wi,component:ei,cellComponent:Rn,colSpan:vi.length,isEmpty:!1},zr)}return Nt.createElement(Nt.Fragment,null,Eo,ur)}Ke.displayName="BodyRow";var An=vt(Ke);function Yn(Qt){var ie=Qt.columnKey,Fe=Qt.onColumnResize,Be=Nt.useRef();return Nt.useEffect(function(){Be.current&&Fe(ie,Be.current.offsetWidth)},[]),Nt.createElement(Bt.Z,{data:ie},Nt.createElement("td",{ref:Be,style:{padding:0,border:0,height:0}},Nt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function gi(Qt){var ie=Qt.prefixCls,Fe=Qt.columnsKey,Be=Qt.onColumnResize;return Nt.createElement("tr",{"aria-hidden":"true",className:"".concat(ie,"-measure-row"),style:{height:0,fontSize:0}},Nt.createElement(Bt.Z.Collection,{onBatchResize:function(Ye){Ye.forEach(function(En){var Pn=En.data,wn=En.size;Be(Pn,wn.offsetWidth)})}},Fe.map(function(qe){return Nt.createElement(Yn,{key:qe,columnKey:qe,onColumnResize:Be})})))}function fi(Qt){var ie=Qt.data,Fe=Qt.measureColumnWidth,Be=ne(wt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),qe=Be.prefixCls,Ye=Be.getComponent,En=Be.onColumnResize,Pn=Be.flattenColumns,wn=Be.getRowKey,ei=Be.expandedKeys,Rn=Be.childrenColumnName,qn=Be.emptyNode,Ci=he(ie,Rn,ei,wn),wi=Nt.useRef({renderWithProps:!1}),vi=Ye(["body","wrapper"],"tbody"),Vi=Ye(["body","row"],"tr"),Si=Ye(["body","cell"],"td"),ir=Ye(["body","cell"],"th"),Qi;ie.length?Qi=Ci.map(function(Jr,oo){var pr=Jr.record,Fr=Jr.indent,Eo=Jr.index,ur=wn(pr,oo);return Nt.createElement(An,{key:ur,rowKey:ur,record:pr,index:oo,renderIndex:Eo,rowComponent:Vi,cellComponent:Si,scopeCellComponent:ir,getRowKey:wn,indent:Fr})}):Qi=Nt.createElement(on,{expanded:!0,className:"".concat(qe,"-placeholder"),prefixCls:qe,component:Vi,cellComponent:Si,colSpan:Pn.length,isEmpty:!0},qn);var sr=nn(Pn);return Nt.createElement(Tn.Provider,{value:wi.current},Nt.createElement(vi,{className:"".concat(qe,"-tbody")},Fe&&Nt.createElement(gi,{prefixCls:qe,columnsKey:sr,onColumnResize:En}),Qi))}fi.displayName="Body";var xi=vt(fi),Gi=["expandable"],yr="RC_TABLE_INTERNAL_COL_DEFINE";function lr(Qt){var ie=Qt.expandable,Fe=(0,ni.Z)(Qt,Gi),Be;return"expandable"in Qt?Be=(0,fe.Z)((0,fe.Z)({},Fe),ie):Be=Fe,Be.showExpandColumn===!1&&(Be.expandIconColumnIndex=-1),Be}var rr=["columnType"];function Rr(Qt){for(var ie=Qt.colWidths,Fe=Qt.columns,Be=Qt.columCount,qe=[],Ye=Be||Fe.length,En=!1,Pn=Ye-1;Pn>=0;Pn-=1){var wn=ie[Pn],ei=Fe&&Fe[Pn],Rn=ei&&ei[yr];if(wn||Rn||En){var qn=Rn||{},Ci=qn.columnType,wi=(0,ni.Z)(qn,rr);qe.unshift(Nt.createElement("col",(0,xe.Z)({key:Pn,style:{width:wn}},wi))),En=!0}}return Nt.createElement("colgroup",null,qe)}var Nr=Rr,Ji=St(19127),Wr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Xi(Qt,ie){return(0,Nt.useMemo)(function(){for(var Fe=[],Be=0;Be<ie;Be+=1){var qe=Qt[Be];if(qe!==void 0)Fe[Be]=qe;else return null}return Fe},[Qt.join("_"),ie])}var Et=Nt.forwardRef(function(Qt,ie){var Fe=Qt.className,Be=Qt.noData,qe=Qt.columns,Ye=Qt.flattenColumns,En=Qt.colWidths,Pn=Qt.columCount,wn=Qt.stickyOffsets,ei=Qt.direction,Rn=Qt.fixHeader,qn=Qt.stickyTopOffset,Ci=Qt.stickyBottomOffset,wi=Qt.stickyClassName,vi=Qt.onScroll,Vi=Qt.maxContentScroll,Si=Qt.children,ir=(0,ni.Z)(Qt,Wr),Qi=ne(wt,["prefixCls","scrollbarSize","isSticky"]),sr=Qi.prefixCls,Jr=Qi.scrollbarSize,oo=Qi.isSticky,pr=oo&&!Rn?0:Jr,Fr=Nt.useRef(null),Eo=Nt.useCallback(function(lo){(0,we.mH)(ie,lo),(0,we.mH)(Fr,lo)},[]);Nt.useEffect(function(){var lo;function ar(Lo){var Ro=Lo,Wo=Ro.currentTarget,Ho=Ro.deltaX;Ho&&(vi({currentTarget:Wo,scrollLeft:Wo.scrollLeft+Ho}),Lo.preventDefault())}return(lo=Fr.current)===null||lo===void 0||lo.addEventListener("wheel",ar),function(){var Lo;(Lo=Fr.current)===null||Lo===void 0||Lo.removeEventListener("wheel",ar)}},[]);var ur=Nt.useMemo(function(){return Ye.every(function(lo){return lo.width})},[Ye]),zr=Ye[Ye.length-1],mr={fixed:zr?zr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(sr,"-cell-scrollbar")}}},Wi=(0,Nt.useMemo)(function(){return pr?[].concat((0,Ji.Z)(qe),[mr]):qe},[pr,qe]),or=(0,Nt.useMemo)(function(){return pr?[].concat((0,Ji.Z)(Ye),[mr]):Ye},[pr,Ye]),jr=(0,Nt.useMemo)(function(){var lo=wn.right,ar=wn.left;return(0,fe.Z)((0,fe.Z)({},wn),{},{left:ei==="rtl"?[].concat((0,Ji.Z)(ar.map(function(Lo){return Lo+pr})),[0]):ar,right:ei==="rtl"?lo:[].concat((0,Ji.Z)(lo.map(function(Lo){return Lo+pr})),[0]),isSticky:oo})},[pr,wn,oo]),ao=Xi(En,Pn);return Nt.createElement("div",{style:(0,fe.Z)({overflow:"hidden"},oo?{top:qn,bottom:Ci}:{}),ref:Eo,className:pe()(Fe,(0,Yt.Z)({},wi,!!wi))},Nt.createElement("table",{style:{tableLayout:"fixed",visibility:Be||ao?null:"hidden"}},(!Be||!Vi||ur)&&Nt.createElement(Nr,{colWidths:ao?[].concat((0,Ji.Z)(ao),[pr]):[],columCount:Pn+1,columns:or}),Si((0,fe.Z)((0,fe.Z)({},ir),{},{stickyOffsets:jr,columns:Wi,flattenColumns:or}))))});Et.displayName="FixedHolder";var ai=Nt.memo(Et);function mi(Qt){var ie=Qt.cells,Fe=Qt.stickyOffsets,Be=Qt.flattenColumns,qe=Qt.rowComponent,Ye=Qt.cellComponent,En=Qt.tdCellComponent,Pn=Qt.onHeaderRow,wn=Qt.index,ei=ne(wt,["prefixCls","direction"]),Rn=ei.prefixCls,qn=ei.direction,Ci;Pn&&(Ci=Pn(ie.map(function(vi){return vi.column}),wn));var wi=nn(ie.map(function(vi){return vi.column}));return Nt.createElement(qe,Ci,ie.map(function(vi,Vi){var Si=vi.column,ir=me(vi.colStart,vi.colEnd,Be,Fe,qn,Si),Qi;return Si&&Si.onHeaderCell&&(Qi=vi.column.onHeaderCell(Si)),Nt.createElement(Hn,(0,xe.Z)({},vi,{scope:Si.title?vi.colSpan>1?"colgroup":"col":null,ellipsis:Si.ellipsis,align:Si.align,component:Si.title?Ye:En,prefixCls:Rn,key:wi[Vi]},ir,{additionalProps:Qi,rowType:"header"}))}))}mi.displayName="HeaderRow";var hr=mi;function wr(Qt){var ie=[];function Fe(En,Pn){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ie[wn]=ie[wn]||[];var ei=Pn,Rn=En.filter(Boolean).map(function(qn){var Ci={key:qn.key,className:qn.className||"",children:qn.title,column:qn,colStart:ei},wi=1,vi=qn.children;return vi&&vi.length>0&&(wi=Fe(vi,ei,wn+1).reduce(function(Vi,Si){return Vi+Si},0),Ci.hasSubColumns=!0),"colSpan"in qn&&(wi=qn.colSpan),"rowSpan"in qn&&(Ci.rowSpan=qn.rowSpan),Ci.colSpan=wi,Ci.colEnd=Ci.colStart+wi-1,ie[wn].push(Ci),ei+=wi,wi});return Rn}Fe(Qt,0);for(var Be=ie.length,qe=function(Pn){ie[Pn].forEach(function(wn){!("rowSpan"in wn)&&!wn.hasSubColumns&&(wn.rowSpan=Be-Pn)})},Ye=0;Ye<Be;Ye+=1)qe(Ye);return ie}function _i(Qt){var ie=Qt.stickyOffsets,Fe=Qt.columns,Be=Qt.flattenColumns,qe=Qt.onHeaderRow,Ye=ne(wt,["prefixCls","getComponent"]),En=Ye.prefixCls,Pn=Ye.getComponent,wn=Nt.useMemo(function(){return wr(Fe)},[Fe]),ei=Pn(["header","wrapper"],"thead"),Rn=Pn(["header","row"],"tr"),qn=Pn(["header","cell"],"th"),Ci=Pn(["header","cell"],"td");return Nt.createElement(ei,{className:"".concat(En,"-thead")},wn.map(function(wi,vi){var Vi=Nt.createElement(hr,{key:vi,flattenColumns:Be,cells:wi,stickyOffsets:ie,rowComponent:Rn,cellComponent:qn,tdCellComponent:Ci,onHeaderRow:qe,index:vi});return Vi}))}var Qr=vt(_i),Zr=St(11592);function xo(Qt){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ie=="number"?ie:ie.endsWith("%")?Qt*parseFloat(ie)/100:null}function an(Qt,ie){return Nt.useMemo(function(){if(ie&&ie>0){var Fe=0,Be=0;Qt.forEach(function(ei){var Rn=xo(ie,ei.width);Rn?Fe+=Rn:Be+=1});var qe=ie-Fe,Ye=Be,En=qe/Be,Pn=0,wn=Qt.map(function(ei){var Rn=(0,fe.Z)({},ei),qn=xo(ie,Rn.width);if(qn)Rn.width=qn;else{var Ci=Math.floor(En);Rn.width=Ye===1?qe:Ci,qe-=Ci,Ye-=1}return Pn+=Rn.width,Rn});return[wn,Pn]}return[Qt,ie]},[Qt,ie])}var Qe=["children"],Jt=["fixed"];function un(Qt){return(0,Zr.Z)(Qt).filter(function(ie){return Nt.isValidElement(ie)}).map(function(ie){var Fe=ie.key,Be=ie.props,qe=Be.children,Ye=(0,ni.Z)(Be,Qe),En=(0,fe.Z)({key:Fe},Ye);return qe&&(En.children=un(qe)),En})}function On(Qt){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Qt.filter(function(Fe){return Fe&&(0,Ut.Z)(Fe)==="object"}).reduce(function(Fe,Be,qe){var Ye=Be.fixed,En=Ye===!0?"left":Ye,Pn="".concat(ie,"-").concat(qe),wn=Be.children;return wn&&wn.length>0?[].concat((0,Ji.Z)(Fe),(0,Ji.Z)(On(wn,Pn).map(function(ei){return(0,fe.Z)({fixed:En},ei)}))):[].concat((0,Ji.Z)(Fe),[(0,fe.Z)((0,fe.Z)({key:Pn},Be),{},{fixed:En})])},[])}function Ee(Qt){for(var ie=!0,Fe=0;Fe<Qt.length;Fe+=1){var Be=Qt[Fe];if(ie&&Be.fixed!=="left")ie=!1;else if(!ie&&Be.fixed==="left"){warning(!1,"Index ".concat(Fe-1," of `columns` missing `fixed='left'` prop."));break}}for(var qe=!0,Ye=Qt.length-1;Ye>=0;Ye-=1){var En=Qt[Ye];if(qe&&En.fixed!=="right")qe=!1;else if(!qe&&En.fixed==="right"){warning(!1,"Index ".concat(Ye+1," of `columns` missing `fixed='right'` prop."));break}}}function ce(Qt){return Qt.map(function(ie){var Fe=ie.fixed,Be=(0,ni.Z)(ie,Jt),qe=Fe;return Fe==="left"?qe="right":Fe==="right"&&(qe="left"),(0,fe.Z)({fixed:qe},Be)})}function mn(Qt,ie){var Fe=Qt.prefixCls,Be=Qt.columns,qe=Qt.children,Ye=Qt.expandable,En=Qt.expandedKeys,Pn=Qt.columnTitle,wn=Qt.getRowKey,ei=Qt.onTriggerExpand,Rn=Qt.expandIcon,qn=Qt.rowExpandable,Ci=Qt.expandIconColumnIndex,wi=Qt.direction,vi=Qt.expandRowByClick,Vi=Qt.columnWidth,Si=Qt.fixed,ir=Qt.scrollWidth,Qi=Nt.useMemo(function(){return Be||un(qe)},[Be,qe]),sr=Nt.useMemo(function(){if(Ye){var zr,mr=Qi.slice();if(!mr.includes(At)){var Wi=Ci||0;Wi>=0&&mr.splice(Wi,0,At)}var or=mr.indexOf(At);mr=mr.filter(function(ar,Lo){return ar!==At||Lo===or});var jr=Qi[or],ao;(Si==="left"||Si)&&!Ci?ao="left":(Si==="right"||Si)&&Ci===Qi.length?ao="right":ao=jr?jr.fixed:null;var lo=(zr={},(0,Yt.Z)(zr,yr,{className:"".concat(Fe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Yt.Z)(zr,"title",Pn),(0,Yt.Z)(zr,"fixed",ao),(0,Yt.Z)(zr,"className","".concat(Fe,"-row-expand-icon-cell")),(0,Yt.Z)(zr,"width",Vi),(0,Yt.Z)(zr,"render",function(Lo,Ro,Wo){var Ho=wn(Ro,Wo),ja=En.has(Ho),ta=qn?qn(Ro):!0,Po=Rn({prefixCls:Fe,expanded:ja,expandable:ta,record:Ro,onExpand:ei});return vi?Nt.createElement("span",{onClick:function(po){return po.stopPropagation()}},Po):Po}),zr);return mr.map(function(ar){return ar===At?lo:ar})}return Qi.filter(function(ar){return ar!==At})},[Ye,Qi,wn,En,Rn,wi]),Jr=Nt.useMemo(function(){var zr=sr;return ie&&(zr=ie(zr)),zr.length||(zr=[{render:function(){return null}}]),zr},[ie,sr,wi]),oo=Nt.useMemo(function(){return wi==="rtl"?ce(On(Jr)):On(Jr)},[Jr,wi,ir]),pr=an(oo,ir),Fr=(0,oe.Z)(pr,2),Eo=Fr[0],ur=Fr[1];return[Jr,Eo,ur]}var Wn=mn;function Mi(Qt){var ie,Fe=Qt.prefixCls,Be=Qt.record,qe=Qt.onExpand,Ye=Qt.expanded,En=Qt.expandable,Pn="".concat(Fe,"-row-expand-icon");if(!En)return Nt.createElement("span",{className:pe()(Pn,"".concat(Fe,"-row-spaced"))});var wn=function(Rn){qe(Be,Rn),Rn.stopPropagation()};return Nt.createElement("span",{className:pe()(Pn,(ie={},(0,Yt.Z)(ie,"".concat(Fe,"-row-expanded"),Ye),(0,Yt.Z)(ie,"".concat(Fe,"-row-collapsed"),!Ye),ie)),onClick:wn})}function pi(Qt,ie,Fe){var Be=[];function qe(Ye){(Ye||[]).forEach(function(En,Pn){Be.push(ie(En,Pn)),qe(En[Fe])})}return qe(Qt),Be}function ue(Qt,ie,Fe){var Be=lr(Qt),qe=Be.expandIcon,Ye=Be.expandedRowKeys,En=Be.defaultExpandedRowKeys,Pn=Be.defaultExpandAllRows,wn=Be.expandedRowRender,ei=Be.onExpand,Rn=Be.onExpandedRowsChange,qn=Be.childrenColumnName,Ci=qe||Mi,wi=qn||"children",vi=Nt.useMemo(function(){return wn?"row":Qt.expandable&&Qt.internalHooks===zt&&Qt.expandable.__PARENT_RENDER_ICON__||ie.some(function(oo){return oo&&(0,Ut.Z)(oo)==="object"&&oo[wi]})?"nest":!1},[!!wn,ie]),Vi=Nt.useState(function(){return En||(Pn?pi(ie,Fe,wi):[])}),Si=(0,oe.Z)(Vi,2),ir=Si[0],Qi=Si[1],sr=Nt.useMemo(function(){return new Set(Ye||ir||[])},[Ye,ir]),Jr=Nt.useCallback(function(oo){var pr=Fe(oo,ie.indexOf(oo)),Fr,Eo=sr.has(pr);Eo?(sr.delete(pr),Fr=(0,Ji.Z)(sr)):Fr=[].concat((0,Ji.Z)(sr),[pr]),Qi(Fr),ei&&ei(!Eo,oo),Rn&&Rn(Fr)},[Fe,sr,ie,ei,Rn]);return[Be,vi,sr,Ci,wi,Jr]}function Nn(Qt,ie,Fe,Be){var qe=Qt.map(function(Ye,En){return me(En,En,Qt,ie,Fe,Be==null?void 0:Be[En])});return(0,tn.Z)(function(){return qe},[qe],function(Ye,En){return!(0,Se.Z)(Ye,En)})}function ui(Qt){var ie=(0,Nt.useRef)(Qt),Fe=(0,Nt.useState)({}),Be=(0,oe.Z)(Fe,2),qe=Be[1],Ye=(0,Nt.useRef)(null),En=(0,Nt.useRef)([]);function Pn(wn){En.current.push(wn);var ei=Promise.resolve();Ye.current=ei,ei.then(function(){if(Ye.current===ei){var Rn=En.current,qn=ie.current;En.current=[],Rn.forEach(function(Ci){ie.current=Ci(ie.current)}),Ye.current=null,qn!==ie.current&&qe({})}})}return(0,Nt.useEffect)(function(){return function(){Ye.current=null}},[]),[ie.current,Pn]}function Hi(Qt){var ie=(0,Nt.useRef)(Qt||null),Fe=(0,Nt.useRef)();function Be(){window.clearTimeout(Fe.current)}function qe(En){ie.current=En,Be(),Fe.current=window.setTimeout(function(){ie.current=null,Fe.current=void 0},100)}function Ye(){return ie.current}return(0,Nt.useEffect)(function(){return Be},[]),[qe,Ye]}function Ge(){var Qt=Nt.useState(-1),ie=(0,oe.Z)(Qt,2),Fe=ie[0],Be=ie[1],qe=Nt.useState(-1),Ye=(0,oe.Z)(qe,2),En=Ye[0],Pn=Ye[1],wn=Nt.useCallback(function(ei,Rn){Be(ei),Pn(Rn)},[]);return[Fe,En,wn]}var pn=St(47273),je=(0,pn.Z)()?window:null;function hn(Qt,ie){var Fe=(0,Ut.Z)(Qt)==="object"?Qt:{},Be=Fe.offsetHeader,qe=Be===void 0?0:Be,Ye=Fe.offsetSummary,En=Ye===void 0?0:Ye,Pn=Fe.offsetScroll,wn=Pn===void 0?0:Pn,ei=Fe.getContainer,Rn=ei===void 0?function(){return je}:ei,qn=Rn()||je;return Nt.useMemo(function(){var Ci=!!Qt;return{isSticky:Ci,stickyClassName:Ci?"".concat(ie,"-sticky-holder"):"",offsetHeader:qe,offsetSummary:En,offsetScroll:wn,container:qn}},[wn,qe,En,ie,qn])}function yn(Qt,ie,Fe){var Be=(0,Nt.useMemo)(function(){for(var qe=[],Ye=[],En=0,Pn=0,wn=0;wn<ie;wn+=1)if(Fe==="rtl"){Ye[wn]=Pn,Pn+=Qt[wn]||0;var ei=ie-wn-1;qe[ei]=En,En+=Qt[ei]||0}else{qe[wn]=En,En+=Qt[wn]||0;var Rn=ie-wn-1;Ye[Rn]=Pn,Pn+=Qt[Rn]||0}return{left:qe,right:Ye}},[Qt,ie,Fe]);return Be}var dn=yn;function kn(Qt){var ie=Qt.className,Fe=Qt.children;return Nt.createElement("div",{className:ie},Fe)}var Ln=kn,Kn=St(8224),Jn=St(55468),Zi=function(ie,Fe){var Be,qe,Ye=ie.scrollBodyRef,En=ie.onScroll,Pn=ie.offsetScroll,wn=ie.container,ei=ne(wt,"prefixCls"),Rn=((Be=Ye.current)===null||Be===void 0?void 0:Be.scrollWidth)||0,qn=((qe=Ye.current)===null||qe===void 0?void 0:qe.clientWidth)||0,Ci=Rn&&qn*(qn/Rn),wi=Nt.useRef(),vi=ui({scrollLeft:0,isHiddenScrollBar:!1}),Vi=(0,oe.Z)(vi,2),Si=Vi[0],ir=Vi[1],Qi=Nt.useRef({delta:0,x:0}),sr=Nt.useState(!1),Jr=(0,oe.Z)(sr,2),oo=Jr[0],pr=Jr[1],Fr=function(){pr(!1)},Eo=function(or){or.persist(),Qi.current.delta=or.pageX-Si.scrollLeft,Qi.current.x=0,pr(!0),or.preventDefault()},ur=function(or){var jr,ao=or||((jr=window)===null||jr===void 0?void 0:jr.event),lo=ao.buttons;if(!oo||lo===0){oo&&pr(!1);return}var ar=Qi.current.x+or.pageX-Qi.current.x-Qi.current.delta;ar<=0&&(ar=0),ar+Ci>=qn&&(ar=qn-Ci),En({scrollLeft:ar/qn*(Rn+2)}),Qi.current.x=or.pageX},zr=function(){if(Ye.current){var or=(0,Jn.os)(Ye.current).top,jr=or+Ye.current.offsetHeight,ao=wn===window?document.documentElement.scrollTop+window.innerHeight:(0,Jn.os)(wn).top+wn.clientHeight;jr-(0,kt.Z)()<=ao||or>=ao-Pn?ir(function(lo){return(0,fe.Z)((0,fe.Z)({},lo),{},{isHiddenScrollBar:!0})}):ir(function(lo){return(0,fe.Z)((0,fe.Z)({},lo),{},{isHiddenScrollBar:!1})})}},mr=function(or){ir(function(jr){return(0,fe.Z)((0,fe.Z)({},jr),{},{scrollLeft:or/Rn*qn||0})})};return Nt.useImperativeHandle(Fe,function(){return{setScrollLeft:mr}}),Nt.useEffect(function(){var Wi=(0,Kn.Z)(document.body,"mouseup",Fr,!1),or=(0,Kn.Z)(document.body,"mousemove",ur,!1);return zr(),function(){Wi.remove(),or.remove()}},[Ci,oo]),Nt.useEffect(function(){var Wi=(0,Kn.Z)(wn,"scroll",zr,!1),or=(0,Kn.Z)(window,"resize",zr,!1);return function(){Wi.remove(),or.remove()}},[wn]),Nt.useEffect(function(){Si.isHiddenScrollBar||ir(function(Wi){var or=Ye.current;return or?(0,fe.Z)((0,fe.Z)({},Wi),{},{scrollLeft:or.scrollLeft/or.scrollWidth*or.clientWidth}):Wi})},[Si.isHiddenScrollBar]),Rn<=qn||!Ci||Si.isHiddenScrollBar?null:Nt.createElement("div",{style:{height:(0,kt.Z)(),width:qn,bottom:Pn},className:"".concat(ei,"-sticky-scroll")},Nt.createElement("div",{onMouseDown:Eo,ref:wi,className:pe()("".concat(ei,"-sticky-scroll-bar"),(0,Yt.Z)({},"".concat(ei,"-sticky-scroll-bar-active"),oo)),style:{width:"".concat(Ci,"px"),transform:"translate3d(".concat(Si.scrollLeft,"px, 0, 0)")}}))},en=Nt.forwardRef(Zi);function qi(Qt){return null}var Er=qi;function nr(Qt){return null}var sn=nr,si="rc-table",Ai=[],Ki={};function Di(){return"No Data"}function vr(Qt){var ie,Fe=(0,fe.Z)({rowKey:"key",prefixCls:si,emptyText:Di},Qt),Be=Fe.prefixCls,qe=Fe.className,Ye=Fe.rowClassName,En=Fe.style,Pn=Fe.data,wn=Fe.rowKey,ei=Fe.scroll,Rn=Fe.tableLayout,qn=Fe.direction,Ci=Fe.title,wi=Fe.footer,vi=Fe.summary,Vi=Fe.caption,Si=Fe.id,ir=Fe.showHeader,Qi=Fe.components,sr=Fe.emptyText,Jr=Fe.onRow,oo=Fe.onHeaderRow,pr=Fe.internalHooks,Fr=Fe.transformColumns,Eo=Fe.internalRefs,ur=Fe.tailor,zr=Fe.sticky,mr=Pn||Ai,Wi=!!mr.length,or=pr===zt,jr=Nt.useCallback(function(Da,cs){return(0,Ve.Z)(Qi,Da)||cs},[Qi]),ao=Nt.useMemo(function(){return typeof wn=="function"?wn:function(Da){var cs=Da&&Da[wn];return cs}},[wn]),lo=jr(["body"]),ar=Ge(),Lo=(0,oe.Z)(ar,3),Ro=Lo[0],Wo=Lo[1],Ho=Lo[2],ja=ue(Fe,mr,ao),ta=(0,oe.Z)(ja,6),Po=ta[0],_r=ta[1],po=ta[2],Ba=ta[3],Ca=ta[4],Ka=ta[5],vo=ei==null?void 0:ei.x,no=Nt.useState(0),Co=(0,oe.Z)(no,2),qr=Co[0],Ir=Co[1],Li=Wn((0,fe.Z)((0,fe.Z)((0,fe.Z)({},Fe),Po),{},{expandable:!!Po.expandedRowRender,columnTitle:Po.columnTitle,expandedKeys:po,getRowKey:ao,onTriggerExpand:Ka,expandIcon:Ba,expandIconColumnIndex:Po.expandIconColumnIndex,direction:qn,scrollWidth:or&&ur&&typeof vo=="number"?vo:null}),or?Fr:null),Sr=(0,oe.Z)(Li,3),Fo=Sr[0],Xo=Sr[1],Xs=Sr[2],ks=Xs!=null?Xs:vo,sl=Nt.useMemo(function(){return{columns:Fo,flattenColumns:Xo}},[Fo,Xo]),va=Nt.useRef(),Oa=Nt.useRef(),ho=Nt.useRef(),Bs=Nt.useRef(),ll=Nt.useRef(),ka=Nt.useState(!1),Ha=(0,oe.Z)(ka,2),Va=Ha[0],ds=Ha[1],Os=Nt.useState(!1),ra=(0,oe.Z)(Os,2),Ja=ra[0],js=ra[1],Ia=ui(new Map),yo=(0,oe.Z)(Ia,2),ms=yo[0],Is=yo[1],Cu=nn(Xo),ql=Cu.map(function(Da){return ms.get(Da)}),Wa=Nt.useMemo(function(){return ql},[ql.join("_")]),ul=dn(Wa,Xo.length,qn),ls=ei&&Zn(ei.y),is=ei&&Zn(ks)||!!Po.fixed,hu=is&&Xo.some(function(Da){var cs=Da.fixed;return cs}),oh=Nt.useRef(),Il=hn(zr,Be),Gu=Il.isSticky,Ku=Il.offsetHeader,_l=Il.offsetSummary,ba=Il.offsetScroll,Qa=Il.stickyClassName,Hs=Il.container,rs=Nt.useMemo(function(){return vi==null?void 0:vi(mr)},[vi,mr]),Ea=(ls||Gu)&&Nt.isValidElement(rs)&&rs.type===se&&rs.props.fixed,Ws,Sl,bu;ls&&(Sl={overflowY:"scroll",maxHeight:ei.y}),is&&(Ws={overflowX:"auto"},ls||(Sl={overflowY:"hidden"}),bu={width:ks===!0?"auto":ks,minWidth:"100%"});var ac=Nt.useCallback(function(Da,cs){(0,xt.Z)(va.current)&&Is(function(gl){if(gl.get(Da)!==cs){var cu=new Map(gl);return cu.set(Da,cs),cu}return gl})},[]),Ue=Hi(null),wh=(0,oe.Z)(Ue,2),ah=wh[0],Rc=wh[1];function vd(Da,cs){cs&&(typeof cs=="function"?cs(Da):cs.scrollLeft!==Da&&(cs.scrollLeft=Da,cs.scrollLeft!==Da&&setTimeout(function(){cs.scrollLeft=Da},0)))}var Rh=(0,Me.Z)(function(Da){var cs=Da.currentTarget,gl=Da.scrollLeft,cu=qn==="rtl",fu=typeof gl=="number"?gl:cs.scrollLeft,uc=cs||Ki;if(!Rc()||Rc()===uc){var Hh;ah(uc),vd(fu,Oa.current),vd(fu,ho.current),vd(fu,ll.current),vd(fu,(Hh=oh.current)===null||Hh===void 0?void 0:Hh.setScrollLeft)}var Gd=cs||Oa.current;if(Gd){var Tu=Gd.scrollWidth,Yu=Gd.clientWidth;if(Tu===Yu){ds(!1),js(!1);return}cu?(ds(-fu<Tu-Yu),js(-fu>0)):(ds(fu>0),js(fu<Tu-Yu))}}),Ph=function(){is&&ho.current?Rh({currentTarget:ho.current}):(ds(!1),js(!1))},cf=function(cs){var gl=cs.width;gl!==qr&&(Ph(),Ir(va.current?va.current.offsetWidth:gl))},fl=Nt.useRef(!1);Nt.useEffect(function(){fl.current&&Ph()},[is,Pn,Fo.length]),Nt.useEffect(function(){fl.current=!0},[]);var id=Nt.useState(0),Od=(0,oe.Z)(id,2),Id=Od[0],Rd=Od[1],ff=Nt.useState(!0),zd=(0,oe.Z)(ff,2),jd=zd[0],du=zd[1];Nt.useEffect(function(){(!ur||!or)&&(ho.current instanceof Element?Rd((0,kt.o)(ho.current).width):Rd((0,kt.o)(Bs.current).width)),du((0,mt.G)("position","sticky"))},[]),Nt.useEffect(function(){or&&Eo&&(Eo.body.current=ho.current)});var zh=Nt.useCallback(function(Da){return Nt.createElement(Nt.Fragment,null,Nt.createElement(Qr,Da),Ea==="top"&&Nt.createElement(Ze,Da,rs))},[Ea,rs]),zc=Nt.useCallback(function(Da){return Nt.createElement(Ze,Da,rs)},[rs]),Vu=jr(["table"],"table"),jh=Nt.useMemo(function(){return Rn||(hu?ks==="max-content"?"auto":"fixed":ls||Gu||Xo.some(function(Da){var cs=Da.ellipsis;return cs})?"fixed":"auto")},[ls,hu,Xo,Rn,Gu]),rd,od={colWidths:Wa,columCount:Xo.length,stickyOffsets:ul,onHeaderRow:oo,fixHeader:ls,scroll:ei},Rl=Nt.useMemo(function(){return Wi?null:typeof sr=="function"?sr():sr},[Wi,sr]),sc=Nt.createElement(xi,{data:mr,measureColumnWidth:ls||is||Gu}),Hd=Nt.createElement(Nr,{colWidths:Xo.map(function(Da){var cs=Da.width;return cs}),columns:Xo}),tu=Vi!=null?Nt.createElement("caption",{className:"".concat(Be,"-caption")},Vi):void 0,yd=(0,jt.Z)(Fe,{data:!0}),Wd=(0,jt.Z)(Fe,{aria:!0});if(ls||Gu){var lc;typeof lo=="function"?(lc=lo(mr,{scrollbarSize:Id,ref:ho,onScroll:Rh}),od.colWidths=Xo.map(function(Da,cs){var gl=Da.width,cu=cs===Xo.length-1?gl-Id:gl;return typeof cu=="number"&&!Number.isNaN(cu)?cu:0})):lc=Nt.createElement("div",{style:(0,fe.Z)((0,fe.Z)({},Ws),Sl),onScroll:Rh,ref:ho,className:pe()("".concat(Be,"-body"))},Nt.createElement(Vu,(0,xe.Z)({style:(0,fe.Z)((0,fe.Z)({},bu),{},{tableLayout:jh})},Wd),tu,Hd,sc,!Ea&&rs&&Nt.createElement(Ze,{stickyOffsets:ul,flattenColumns:Xo,columns:Fo},rs)));var Ch=(0,fe.Z)((0,fe.Z)((0,fe.Z)({noData:!mr.length,maxContentScroll:is&&ks==="max-content"},od),sl),{},{direction:qn,stickyClassName:Qa,onScroll:Rh});rd=Nt.createElement(Nt.Fragment,null,ir!==!1&&Nt.createElement(ai,(0,xe.Z)({},Ch,{stickyTopOffset:Ku,className:"".concat(Be,"-header"),ref:Oa}),zh),lc,Ea&&Ea!=="top"&&Nt.createElement(ai,(0,xe.Z)({},Ch,{stickyBottomOffset:_l,className:"".concat(Be,"-summary"),ref:ll}),zc),Gu&&Nt.createElement(en,{ref:oh,offsetScroll:ba,scrollBodyRef:ho,onScroll:Rh,container:Hs}))}else rd=Nt.createElement("div",{style:(0,fe.Z)((0,fe.Z)({},Ws),Sl),className:pe()("".concat(Be,"-content")),onScroll:Rh,ref:ho},Nt.createElement(Vu,(0,xe.Z)({style:(0,fe.Z)((0,fe.Z)({},bu),{},{tableLayout:jh})},Wd),tu,Hd,ir!==!1&&Nt.createElement(Qr,(0,xe.Z)({},od,sl)),sc,rs&&Nt.createElement(Ze,{stickyOffsets:ul,flattenColumns:Xo,columns:Fo},rs)));var xl=Nt.createElement("div",(0,xe.Z)({className:pe()(Be,qe,(ie={},(0,Yt.Z)(ie,"".concat(Be,"-rtl"),qn==="rtl"),(0,Yt.Z)(ie,"".concat(Be,"-ping-left"),Va),(0,Yt.Z)(ie,"".concat(Be,"-ping-right"),Ja),(0,Yt.Z)(ie,"".concat(Be,"-layout-fixed"),Rn==="fixed"),(0,Yt.Z)(ie,"".concat(Be,"-fixed-header"),ls),(0,Yt.Z)(ie,"".concat(Be,"-fixed-column"),hu),(0,Yt.Z)(ie,"".concat(Be,"-scroll-horizontal"),is),(0,Yt.Z)(ie,"".concat(Be,"-has-fix-left"),Xo[0]&&Xo[0].fixed),(0,Yt.Z)(ie,"".concat(Be,"-has-fix-right"),Xo[Xo.length-1]&&Xo[Xo.length-1].fixed==="right"),ie)),style:En,id:Si,ref:va},yd),Ci&&Nt.createElement(Ln,{className:"".concat(Be,"-title")},Ci(mr)),Nt.createElement("div",{ref:Bs,className:"".concat(Be,"-container")},rd),wi&&Nt.createElement(Ln,{className:"".concat(Be,"-footer")},wi(mr)));is&&(xl=Nt.createElement(Bt.Z,{onResize:cf},xl));var Zd=Nn(Xo,ul,qn,Fo),Js=Nt.useMemo(function(){return{scrollX:ks,prefixCls:Be,getComponent:jr,scrollbarSize:Id,direction:qn,fixedInfoList:Zd,isSticky:Gu,supportSticky:jd,componentWidth:qr,fixHeader:ls,fixColumn:hu,horizonScroll:is,tableLayout:jh,rowClassName:Ye,expandedRowClassName:Po.expandedRowClassName,expandIcon:Ba,expandableType:_r,expandRowByClick:Po.expandRowByClick,expandedRowRender:Po.expandedRowRender,onTriggerExpand:Ka,expandIconColumnIndex:Po.expandIconColumnIndex,indentSize:Po.indentSize,allColumnsFixedLeft:Xo.every(function(Da){return Da.fixed==="left"}),emptyNode:Rl,columns:Fo,flattenColumns:Xo,onColumnResize:ac,hoverStartRow:Ro,hoverEndRow:Wo,onHover:Ho,rowExpandable:Po.rowExpandable,onRow:Jr,getRowKey:ao,expandedKeys:po,childrenColumnName:Ca}},[ks,Be,jr,Id,qn,Zd,Gu,jd,qr,ls,hu,is,jh,Ye,Po.expandedRowClassName,Ba,_r,Po.expandRowByClick,Po.expandedRowRender,Ka,Po.expandIconColumnIndex,Po.indentSize,Rl,Fo,Xo,ac,Ro,Wo,Ho,Po.rowExpandable,Jr,ao,po,Ca]);return Nt.createElement(wt.Provider,{value:Js},xl)}function Pr(Qt){return gt(vr,Qt)}var tr=Pr();tr.EXPAND_COLUMN=At,tr.INTERNAL_HOOKS=zt,tr.Column=Er,tr.ColumnGroup=sn,tr.Summary=ee;var Oi=tr,Lr=St(45680),bn=Pe(null),wo=Pe(null);function Mn(Qt,ie,Fe){var Be=ie||1;return Fe[Qt+Be]-(Fe[Qt]||0)}function Or(Qt){var ie=Qt.rowInfo,Fe=Qt.column,Be=Qt.colIndex,qe=Qt.indent,Ye=Qt.index,En=Qt.renderIndex,Pn=Qt.record,wn=Qt.style,ei=Qt.className,Rn=Qt.inverse,qn=Qt.getHeight,Ci=Fe.render,wi=Fe.dataIndex,vi=Fe.className,Vi=Fe.width,Si=ne(wo,["columnsOffset"]),ir=Si.columnsOffset,Qi=De(ie,Fe,Be,qe,Ye),sr=Qi.key,Jr=Qi.fixedInfo,oo=Qi.appendCellNode,pr=Qi.additionalCellProps,Fr=pr.style,Eo=pr.colSpan,ur=Eo===void 0?1:Eo,zr=pr.rowSpan,mr=zr===void 0?1:zr,Wi=Be-1,or=Mn(Wi,ur,ir),jr=ur>1?Vi-or:0,ao=(0,fe.Z)((0,fe.Z)((0,fe.Z)({},Fr),wn),{},{flex:"0 0 ".concat(or,"px"),width:"".concat(or,"px"),marginRight:jr,pointerEvents:"auto"}),lo=Nt.useMemo(function(){return Rn?mr<=1:ur===0||mr===0||mr>1},[mr,ur,Rn]);lo?ao.visibility="hidden":Rn&&(ao.height=qn==null?void 0:qn(mr));var ar=lo?function(){return null}:Ci,Lo={};return(mr===0||ur===0)&&(Lo.rowSpan=1,Lo.colSpan=1),Nt.createElement(Hn,(0,xe.Z)({className:pe()(vi,ei),ellipsis:Fe.ellipsis,align:Fe.align,scope:Fe.rowScope,component:"div",prefixCls:ie.prefixCls,key:sr,record:Pn,index:Ye,renderIndex:En,dataIndex:wi,render:ar,shouldCellUpdate:Fe.shouldCellUpdate},Jr,{appendNode:oo,additionalProps:(0,fe.Z)((0,fe.Z)({},pr),{},{style:ao},Lo)}))}var ea=Or,bo=["data","index","className","rowKey","style","extra","getHeight"],ca=Nt.forwardRef(function(Qt,ie){var Fe=Qt.data,Be=Qt.index,qe=Qt.className,Ye=Qt.rowKey,En=Qt.style,Pn=Qt.extra,wn=Qt.getHeight,ei=(0,ni.Z)(Qt,bo),Rn=Fe.record,qn=Fe.indent,Ci=Fe.index,wi=ne(wt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),vi=wi.scrollX,Vi=wi.flattenColumns,Si=wi.prefixCls,ir=wi.fixColumn,Qi=wi.componentWidth,sr=de(Rn,Ye,Be,qn),Jr=sr.rowSupportExpand,oo=sr.expanded,pr=sr.rowProps,Fr=sr.expandedRowRender,Eo=sr.expandedRowClassName,ur;if(Jr&&oo){var zr=Fr(Rn,Be,qn+1,oo),mr=Eo==null?void 0:Eo(Rn,Be,qn),Wi={};ir&&(Wi={style:(0,Yt.Z)({},"--virtual-width","".concat(Qi,"px"))});var or="".concat(Si,"-expanded-row-cell");ur=Nt.createElement("div",{className:pe()("".concat(Si,"-expanded-row"),"".concat(Si,"-expanded-row-level-").concat(qn+1),mr)},Nt.createElement(Hn,{component:"div",prefixCls:Si,className:pe()(or,(0,Yt.Z)({},"".concat(or,"-fixed"),ir)),additionalProps:Wi},zr))}var jr=(0,fe.Z)((0,fe.Z)({},En),{},{width:vi});Pn&&(jr.position="absolute",jr.pointerEvents="none");var ao=Nt.createElement("div",(0,xe.Z)({},pr,ei,{ref:Jr?null:ie,className:pe()(qe,"".concat(Si,"-row"),pr==null?void 0:pr.className,(0,Yt.Z)({},"".concat(Si,"-row-extra"),Pn)),style:(0,fe.Z)((0,fe.Z)({},jr),pr==null?void 0:pr.style)}),Vi.map(function(lo,ar){return Nt.createElement(ea,{key:ar,rowInfo:sr,column:lo,colIndex:ar,indent:qn,index:Be,renderIndex:Ci,record:Rn,inverse:Pn,getHeight:wn})}));return Jr?Nt.createElement("div",{ref:ie},ao,ur):ao}),qo=vt(ca),dr=qo,er=Nt.forwardRef(function(Qt,ie){var Fe=Qt.data,Be=Qt.onScroll,qe=ne(wt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ye=qe.flattenColumns,En=qe.onColumnResize,Pn=qe.getRowKey,wn=qe.expandedKeys,ei=qe.prefixCls,Rn=qe.childrenColumnName,qn=qe.emptyNode,Ci=qe.scrollX,wi=ne(bn),vi=wi.scrollY,Vi=wi.listItemHeight,Si=Nt.useRef(),ir=he(Fe,Rn,wn,Pn),Qi=Nt.useMemo(function(){var ur=0;return Ye.map(function(zr){var mr=zr.width,Wi=zr.key;return ur+=mr,[Wi,mr,ur]})},[Ye]),sr=Nt.useMemo(function(){return Qi.map(function(ur){return ur[2]})},[Qi]);Nt.useEffect(function(){Qi.forEach(function(ur){var zr=(0,oe.Z)(ur,2),mr=zr[0],Wi=zr[1];En(mr,Wi)})},[Qi]),Nt.useImperativeHandle(ie,function(){var ur={};return Object.defineProperty(ur,"scrollLeft",{get:function(){var mr;return((mr=Si.current)===null||mr===void 0?void 0:mr.getScrollInfo().x)||0},set:function(mr){var Wi;(Wi=Si.current)===null||Wi===void 0||Wi.scrollTo({left:mr})}}),ur});var Jr=function(zr,mr){var Wi,or=(Wi=ir[mr])===null||Wi===void 0?void 0:Wi.record,jr=zr.onCell;if(jr){var ao,lo=jr(or,mr);return(ao=lo==null?void 0:lo.rowSpan)!==null&&ao!==void 0?ao:1}return 1},oo=function(zr){var mr=zr.start,Wi=zr.end,or=zr.getSize,jr=zr.offsetY;if(Wi<0)return null;for(var ao=Ye.filter(function(vo){return Jr(vo,mr)===0}),lo=mr,ar=function(no){if(ao=ao.filter(function(Co){return Jr(Co,no)===0}),!ao.length)return lo=no,"break"},Lo=mr;Lo>=0;Lo-=1){var Ro=ar(Lo);if(Ro==="break")break}for(var Wo=Ye.filter(function(vo){return Jr(vo,Wi)!==1}),Ho=Wi,ja=function(no){if(Wo=Wo.filter(function(Co){return Jr(Co,no)!==1}),!Wo.length)return Ho=Math.max(no-1,Wi),"break"},ta=Wi;ta<ir.length;ta+=1){var Po=ja(ta);if(Po==="break")break}for(var _r=[],po=function(no){var Co=ir[no];if(!Co)return"continue";Ye.some(function(qr){return Jr(qr,no)>1})&&_r.push(no)},Ba=lo;Ba<=Ho;Ba+=1)var Ca=po(Ba);var Ka=_r.map(function(vo){var no=ir[vo],Co=Pn(no.record,vo),qr=function(Sr){var Fo=vo+Sr-1,Xo=Pn(ir[Fo].record,Fo),Xs=or(Co,Xo);return Xs.bottom-Xs.top},Ir=or(Co);return Nt.createElement(dr,{key:vo,data:no,rowKey:Co,index:vo,style:{top:-jr+Ir.top},extra:!0,getHeight:qr})});return Ka},pr=Nt.useMemo(function(){return{columnsOffset:sr}},[sr]),Fr="".concat(ei,"-tbody"),Eo;return ir.length?Eo=Nt.createElement(Lr.Z,{fullHeight:!1,ref:Si,className:pe()(Fr,"".concat(Fr,"-virtual")),height:vi,itemHeight:Vi||24,data:ir,itemKey:function(zr){return Pn(zr.record)},scrollWidth:Ci,onVirtualScroll:function(zr){var mr=zr.x;Be({scrollLeft:mr})},extraRender:oo},function(ur,zr,mr){var Wi=Pn(ur.record,zr);return Nt.createElement(dr,(0,xe.Z)({data:ur,rowKey:Wi,index:zr},mr))}):Eo=Nt.createElement("div",{className:pe()("".concat(ei,"-placeholder"))},Nt.createElement(Hn,{component:"div",prefixCls:ei},qn)),Nt.createElement(wo.Provider,{value:pr},Eo)}),eo=vt(er),ko=eo,ki=function(ie,Fe){var Be=Fe.ref,qe=Fe.onScroll;return Nt.createElement(ko,{ref:Be,data:ie,onScroll:qe})},Vt=100;function fo(Qt){var ie=Qt.columns,Fe=Qt.scroll,Be=Qt.prefixCls,qe=Be===void 0?si:Be,Ye=Qt.className,En=Qt.listItemHeight,Pn=Fe||{},wn=Pn.x,ei=Pn.y;typeof wn!="number"&&(wn=((ie||[]).length+1)*Vt),typeof ei!="number"&&(ei=500);var Rn=Nt.useMemo(function(){return{scrollY:ei,listItemHeight:En}},[ei,En]);return Nt.createElement(bn.Provider,{value:Rn},Nt.createElement(Oi,(0,xe.Z)({},Qt,{className:pe()(Ye,"".concat(qe,"-virtual")),scroll:(0,fe.Z)((0,fe.Z)({},Fe),{},{x:wn}),components:{body:ki},columns:ie,internalHooks:zt,tailor:!0})))}function _o(Qt){return gt(fo,Qt)}var ro=_o(),Yo=null;function ya(Qt){return null}var Ar=ya;function Tr(Qt){return null}var uo=Tr,$r=St(2738),Zo=St(68031),oa=St(36355),cr=St(93891),fr=St(19716),ri=St(8628),Mr=St(31724),Io=St(58421),Ma=St(71418),Sa=St(88088);function Ta(Qt){return function(Fe){let{prefixCls:Be,onExpand:qe,record:Ye,expanded:En,expandable:Pn}=Fe;const wn=`${Be}-row-expand-icon`;return Nt.createElement("button",{type:"button",onClick:ei=>{qe(Ye,ei),ei.stopPropagation()},className:pe()(wn,{[`${wn}-spaced`]:!Pn,[`${wn}-expanded`]:Pn&&En,[`${wn}-collapsed`]:Pn&&!En}),"aria-label":En?Qt.collapse:Qt.expand,"aria-expanded":En})}}var Ra=Ta;function Ga(Qt,ie){return"key"in Qt&&Qt.key!==void 0&&Qt.key!==null?Qt.key:Qt.dataIndex?Array.isArray(Qt.dataIndex)?Qt.dataIndex.join("."):Qt.dataIndex:ie}function Vs(Qt,ie){return ie?`${ie}-${Qt}`:`${Qt}`}function us(Qt,ie){return typeof Qt=="function"?Qt(ie):Qt}function Ys(Qt,ie){const Fe=us(Qt,ie);return Object.prototype.toString.call(Fe)==="[object Object]"?"":Fe}var fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},xs=fn,yh=St(7657),El=function(ie,Fe){return Nt.createElement(yh.Z,(0,xe.Z)({},ie,{ref:Fe,icon:xs}))},$o=Nt.forwardRef(El),To=$o,as=St(56762);function ma(Qt){const ie=Nt.useRef(Qt),Fe=(0,as.Z)();return[()=>ie.current,Be=>{ie.current=Be,Fe()}]}var No=St(3113),fa=St(24905),al=St(38854),Yr=St(64165),zo=St(20834),Oo=St(40875),zi=St(5112),gs=St(17574),ws=St(47472),dl=St(92832);function su(Qt){let{value:ie,onChange:Fe,filterSearch:Be,tablePrefixCls:qe,locale:Ye}=Qt;return Be?Nt.createElement("div",{className:`${qe}-filter-dropdown-search`},Nt.createElement(dl.default,{prefix:Nt.createElement(ws.Z,null),placeholder:Ye.filterSearchPlaceholder,onChange:Fe,value:ie,htmlSize:1,className:`${qe}-filter-dropdown-search-input`})):null}var xu=su,Fi=St(10228);const Ua=Qt=>{const{keyCode:ie}=Qt;ie===Fi.Z.ENTER&&Qt.stopPropagation()};var Ql=Nt.forwardRef((Qt,ie)=>Nt.createElement("div",{className:Qt.className,onClick:Fe=>Fe.stopPropagation(),onKeyDown:Ua,ref:ie},Qt.children));function lu(Qt){let ie=[];return(Qt||[]).forEach(Fe=>{let{value:Be,children:qe}=Fe;ie.push(Be),qe&&(ie=[].concat((0,Ji.Z)(ie),(0,Ji.Z)(lu(qe))))}),ie}function uu(Qt){return Qt.some(ie=>{let{children:Fe}=ie;return Fe})}function so(Qt,ie){return typeof ie=="string"||typeof ie=="number"?ie==null?void 0:ie.toString().toLowerCase().includes(Qt.trim().toLowerCase()):!1}function Sh(Qt){let{filters:ie,prefixCls:Fe,filteredKeys:Be,filterMultiple:qe,searchValue:Ye,filterSearch:En}=Qt;return ie.map((Pn,wn)=>{const ei=String(Pn.value);if(Pn.children)return{key:ei||wn,label:Pn.text,popupClassName:`${Fe}-dropdown-submenu`,children:Sh({filters:Pn.children,prefixCls:Fe,filteredKeys:Be,filterMultiple:qe,searchValue:Ye,filterSearch:En})};const Rn=qe?fa.default:zi.ZP,qn={key:Pn.value!==void 0?ei:wn,label:Nt.createElement(Nt.Fragment,null,Nt.createElement(Rn,{checked:Be.includes(ei)}),Nt.createElement("span",null,Pn.text))};return Ye.trim()?typeof En=="function"?En(Ye,Pn)?qn:null:so(Ye,Pn.text)?qn:null:qn})}function Ll(Qt){var ie,Fe;const{tablePrefixCls:Be,prefixCls:qe,column:Ye,dropdownPrefixCls:En,columnKey:Pn,filterMultiple:wn,filterMode:ei="menu",filterSearch:Rn=!1,filterState:qn,triggerFilter:Ci,locale:wi,children:vi,getPopupContainer:Vi}=Qt,{filterDropdownOpen:Si,onFilterDropdownOpenChange:ir,filterResetToDefaultFilteredValue:Qi,defaultFilteredValue:sr,filterDropdownVisible:Jr,onFilterDropdownVisibleChange:oo}=Ye,[pr,Fr]=Nt.useState(!1),Eo=!!(qn&&(!((ie=qn.filteredKeys)===null||ie===void 0)&&ie.length||qn.forceFiltered)),ur=Li=>{Fr(Li),ir==null||ir(Li),oo==null||oo(Li)},zr=(Fe=Si!=null?Si:Jr)!==null&&Fe!==void 0?Fe:pr,mr=qn==null?void 0:qn.filteredKeys,[Wi,or]=ma(mr||[]),jr=Li=>{let{selectedKeys:Sr}=Li;or(Sr)},ao=(Li,Sr)=>{let{node:Fo,checked:Xo}=Sr;jr(wn?{selectedKeys:Li}:{selectedKeys:Xo&&Fo.key?[Fo.key]:[]})};Nt.useEffect(()=>{pr&&jr({selectedKeys:mr||[]})},[mr]);const[lo,ar]=Nt.useState([]),Lo=Li=>{ar(Li)},[Ro,Wo]=Nt.useState(""),Ho=Li=>{const{value:Sr}=Li.target;Wo(Sr)};Nt.useEffect(()=>{pr||Wo("")},[pr]);const ja=Li=>{const Sr=Li&&Li.length?Li:null;if(Sr===null&&(!qn||!qn.filteredKeys)||(0,Se.Z)(Sr,qn==null?void 0:qn.filteredKeys,!0))return null;Ci({column:Ye,key:Pn,filteredKeys:Sr})},ta=()=>{ur(!1),ja(Wi())},Po=function(){let{confirm:Li,closeDropdown:Sr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Li&&ja([]),Sr&&ur(!1),Wo(""),or(Qi?(sr||[]).map(Fo=>String(Fo)):[])},_r=function(){let{closeDropdown:Li}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Li&&ur(!1),ja(Wi())},po=Li=>{Li&&mr!==void 0&&or(mr||[]),ur(Li),!Li&&!Ye.filterDropdown&&ta()},Ba=pe()({[`${En}-menu-without-submenu`]:!uu(Ye.filters||[])}),Ca=Li=>{if(Li.target.checked){const Sr=lu(Ye==null?void 0:Ye.filters).map(Fo=>String(Fo));or(Sr)}else or([])},Ka=Li=>{let{filters:Sr}=Li;return(Sr||[]).map((Fo,Xo)=>{const Xs=String(Fo.value),ks={title:Fo.text,key:Fo.value!==void 0?Xs:Xo};return Fo.children&&(ks.children=Ka({filters:Fo.children})),ks})},vo=Li=>{var Sr;return Object.assign(Object.assign({},Li),{text:Li.title,value:Li.key,children:((Sr=Li.children)===null||Sr===void 0?void 0:Sr.map(Fo=>vo(Fo)))||[]})};let no;if(typeof Ye.filterDropdown=="function")no=Ye.filterDropdown({prefixCls:`${En}-custom`,setSelectedKeys:Li=>jr({selectedKeys:Li}),selectedKeys:Wi(),confirm:_r,clearFilters:Po,filters:Ye.filters,visible:zr,close:()=>{ur(!1)}});else if(Ye.filterDropdown)no=Ye.filterDropdown;else{const Li=Wi()||[],Sr=()=>(Ye.filters||[]).length===0?Nt.createElement(Yr.Z,{image:Yr.Z.PRESENTED_IMAGE_SIMPLE,description:wi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ei==="tree"?Nt.createElement(Nt.Fragment,null,Nt.createElement(xu,{filterSearch:Rn,value:Ro,onChange:Ho,tablePrefixCls:Be,locale:wi}),Nt.createElement("div",{className:`${Be}-filter-dropdown-tree`},wn?Nt.createElement(fa.default,{checked:Li.length===lu(Ye.filters).length,indeterminate:Li.length>0&&Li.length<lu(Ye.filters).length,className:`${Be}-filter-dropdown-checkall`,onChange:Ca},wi.filterCheckall):null,Nt.createElement(gs.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:wn,checkStrictly:!wn,className:`${En}-menu`,onCheck:ao,checkedKeys:Li,selectedKeys:Li,showIcon:!1,treeData:Ka({filters:Ye.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ro.trim()?Xo=>typeof Rn=="function"?Rn(Ro,vo(Xo)):so(Ro,Xo.title):void 0}))):Nt.createElement(Nt.Fragment,null,Nt.createElement(xu,{filterSearch:Rn,value:Ro,onChange:Ho,tablePrefixCls:Be,locale:wi}),Nt.createElement(zo.default,{selectable:!0,multiple:wn,prefixCls:`${En}-menu`,className:Ba,onSelect:jr,onDeselect:jr,selectedKeys:Li,getPopupContainer:Vi,openKeys:lo,onOpenChange:Lo,items:Sh({filters:Ye.filters||[],filterSearch:Rn,prefixCls:qe,filteredKeys:Wi(),filterMultiple:wn,searchValue:Ro})})),Fo=()=>Qi?(0,Se.Z)((sr||[]).map(Xo=>String(Xo)),Li,!0):Li.length===0;no=Nt.createElement(Nt.Fragment,null,Sr(),Nt.createElement("div",{className:`${qe}-dropdown-btns`},Nt.createElement(No.ZP,{type:"link",size:"small",disabled:Fo(),onClick:()=>Po()},wi.filterReset),Nt.createElement(No.ZP,{type:"primary",size:"small",onClick:ta},wi.filterConfirm)))}Ye.filterDropdown&&(no=Nt.createElement(Oo.J,{selectable:void 0},no));const Co=()=>Nt.createElement(Ql,{className:`${qe}-dropdown`},no);let qr;typeof Ye.filterIcon=="function"?qr=Ye.filterIcon(Eo):Ye.filterIcon?qr=Ye.filterIcon:qr=Nt.createElement(To,null);const{direction:Ir}=Nt.useContext(oa.E_);return Nt.createElement("div",{className:`${qe}-column`},Nt.createElement("span",{className:`${Be}-column-title`},vi),Nt.createElement(al.Z,{dropdownRender:Co,trigger:["click"],open:zr,onOpenChange:po,getPopupContainer:Vi,placement:Ir==="rtl"?"bottomLeft":"bottomRight"},Nt.createElement("span",{role:"button",tabIndex:-1,className:pe()(`${qe}-trigger`,{active:Eo}),onClick:Li=>{Li.stopPropagation()}},qr)))}var Ml=Ll;function ml(Qt,ie,Fe){let Be=[];return(Qt||[]).forEach((qe,Ye)=>{var En;const Pn=Vs(Ye,Fe);if(qe.filters||"filterDropdown"in qe||"onFilter"in qe)if("filteredValue"in qe){let wn=qe.filteredValue;"filterDropdown"in qe||(wn=(En=wn==null?void 0:wn.map(String))!==null&&En!==void 0?En:wn),Be.push({column:qe,key:Ga(qe,Pn),filteredKeys:wn,forceFiltered:qe.filtered})}else Be.push({column:qe,key:Ga(qe,Pn),filteredKeys:ie&&qe.defaultFilteredValue?qe.defaultFilteredValue:void 0,forceFiltered:qe.filtered});"children"in qe&&(Be=[].concat((0,Ji.Z)(Be),(0,Ji.Z)(ml(qe.children,ie,Pn))))}),Be}function Wu(Qt,ie,Fe,Be,qe,Ye,En,Pn){return Fe.map((wn,ei)=>{const Rn=Vs(ei,Pn),{filterMultiple:qn=!0,filterMode:Ci,filterSearch:wi}=wn;let vi=wn;if(vi.filters||vi.filterDropdown){const Vi=Ga(vi,Rn),Si=Be.find(ir=>{let{key:Qi}=ir;return Vi===Qi});vi=Object.assign(Object.assign({},vi),{title:ir=>Nt.createElement(Ml,{tablePrefixCls:Qt,prefixCls:`${Qt}-filter`,dropdownPrefixCls:ie,column:vi,columnKey:Vi,filterState:Si,filterMultiple:qn,filterMode:Ci,filterSearch:wi,triggerFilter:Ye,locale:qe,getPopupContainer:En},us(wn.title,ir))})}return"children"in vi&&(vi=Object.assign(Object.assign({},vi),{children:Wu(Qt,ie,vi.children,Be,qe,Ye,En,Rn)})),vi})}function wu(Qt){const ie={};return Qt.forEach(Fe=>{let{key:Be,filteredKeys:qe,column:Ye}=Fe;const{filters:En,filterDropdown:Pn}=Ye;if(Pn)ie[Be]=qe||null;else if(Array.isArray(qe)){const wn=lu(En);ie[Be]=wn.filter(ei=>qe.includes(String(ei)))}else ie[Be]=null}),ie}function vl(Qt,ie){return ie.reduce((Fe,Be)=>{const{column:{onFilter:qe,filters:Ye},filteredKeys:En}=Be;return qe&&En&&En.length?Fe.filter(Pn=>En.some(wn=>{const ei=lu(Ye),Rn=ei.findIndex(Ci=>String(Ci)===String(wn)),qn=Rn!==-1?ei[Rn]:wn;return qe(qn,Pn)})):Fe},Qt)}const Al=Qt=>Qt.flatMap(ie=>"children"in ie?[ie].concat((0,Ji.Z)(Al(ie.children||[]))):[ie]);function Bh(Qt){let{prefixCls:ie,dropdownPrefixCls:Fe,mergedColumns:Be,onFilterChange:qe,getPopupContainer:Ye,locale:En}=Qt;const Pn=Nt.useMemo(()=>Al(Be||[]),[Be]),[wn,ei]=Nt.useState(()=>ml(Pn,!0)),Rn=Nt.useMemo(()=>{const vi=ml(Pn,!1);if(vi.length===0)return vi;let Vi=!0,Si=!0;if(vi.forEach(ir=>{let{filteredKeys:Qi}=ir;Qi!==void 0?Vi=!1:Si=!1}),Vi){const ir=(Pn||[]).map((Qi,sr)=>Ga(Qi,Vs(sr)));return wn.filter(Qi=>{let{key:sr}=Qi;return ir.includes(sr)}).map(Qi=>{const sr=Pn[ir.findIndex(Jr=>Jr===Qi.key)];return Object.assign(Object.assign({},Qi),{column:Object.assign(Object.assign({},Qi.column),sr),forceFiltered:sr.filtered})})}return vi},[Pn,wn]),qn=Nt.useMemo(()=>wu(Rn),[Rn]),Ci=vi=>{const Vi=Rn.filter(Si=>{let{key:ir}=Si;return ir!==vi.key});Vi.push(vi),ei(Vi),qe(wu(Vi),Vi)};return[vi=>Wu(ie,Fe,vi,Rn,En,Ci,Ye),Rn,qn]}var _h=Bh;function Oh(Qt,ie,Fe){const Be=Nt.useRef({});function qe(Ye){if(!Be.current||Be.current.data!==Qt||Be.current.childrenColumnName!==ie||Be.current.getRowKey!==Fe){let Pn=function(wn){wn.forEach((ei,Rn)=>{const qn=Fe(ei,Rn);En.set(qn,ei),ei&&typeof ei=="object"&&ie in ei&&Pn(ei[ie]||[])})};const En=new Map;Pn(Qt),Be.current={data:Qt,childrenColumnName:ie,kvMap:En,getRowKey:Fe}}return Be.current.kvMap.get(Ye)}return[qe]}var gd=St(50371),Ih=function(Qt,ie){var Fe={};for(var Be in Qt)Object.prototype.hasOwnProperty.call(Qt,Be)&&ie.indexOf(Be)<0&&(Fe[Be]=Qt[Be]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Be=Object.getOwnPropertySymbols(Qt);qe<Be.length;qe++)ie.indexOf(Be[qe])<0&&Object.prototype.propertyIsEnumerable.call(Qt,Be[qe])&&(Fe[Be[qe]]=Qt[Be[qe]]);return Fe};const Zu=10;function Bl(Qt,ie){const Fe={current:Qt.current,pageSize:Qt.pageSize};return Object.keys(ie&&typeof ie=="object"?ie:{}).forEach(qe=>{const Ye=Qt[qe];typeof Ye!="function"&&(Fe[qe]=Ye)}),Fe}function Ol(Qt,ie,Fe){const Be=Fe&&typeof Fe=="object"?Fe:{},{total:qe=0}=Be,Ye=Ih(Be,["total"]),[En,Pn]=(0,Nt.useState)(()=>({current:"defaultCurrent"in Ye?Ye.defaultCurrent:1,pageSize:"defaultPageSize"in Ye?Ye.defaultPageSize:Zu})),wn=(0,gd.Z)(En,Ye,{total:qe>0?qe:Qt}),ei=Math.ceil((qe||Qt)/wn.pageSize);wn.current>ei&&(wn.current=ei||1);const Rn=(Ci,wi)=>{Pn({current:Ci!=null?Ci:1,pageSize:wi||wn.pageSize})},qn=(Ci,wi)=>{var vi;Fe&&((vi=Fe.onChange)===null||vi===void 0||vi.call(Fe,Ci,wi)),Rn(Ci,wi),ie(Ci,wi||(wn==null?void 0:wn.pageSize))};return Fe===!1?[{},()=>{}]:[Object.assign(Object.assign({},wn),{onChange:qn}),Rn]}var pd=Ol,td=St(84105),Pu=St(35654),Bo=St(90782),da=St(71430),cl=St(18929);const Ps={},Cs="SELECT_ALL",ts="SELECT_INVERT",hs="SELECT_NONE",Ms=[],bs=(Qt,ie)=>{let Fe=[];return(ie||[]).forEach(Be=>{Fe.push(Be),Be&&typeof Be=="object"&&Qt in Be&&(Fe=[].concat((0,Ji.Z)(Fe),(0,Ji.Z)(bs(Qt,Be[Qt]))))}),Fe};var $l=(Qt,ie)=>{const{preserveSelectedRowKeys:Fe,selectedRowKeys:Be,defaultSelectedRowKeys:qe,getCheckboxProps:Ye,onChange:En,onSelect:Pn,onSelectAll:wn,onSelectInvert:ei,onSelectNone:Rn,onSelectMultiple:qn,columnWidth:Ci,type:wi,selections:vi,fixed:Vi,renderCell:Si,hideSelectAll:ir,checkStrictly:Qi=!0}=ie||{},{prefixCls:sr,data:Jr,pageData:oo,getRecordByKey:pr,getRowKey:Fr,expandType:Eo,childrenColumnName:ur,locale:zr,getPopupContainer:mr}=Qt,[Wi,or]=(0,cl.Z)(Be||qe||Ms,{value:Be}),jr=Nt.useRef(new Map),ao=(0,Nt.useCallback)(vo=>{if(Fe){const no=new Map;vo.forEach(Co=>{let qr=pr(Co);!qr&&jr.current.has(Co)&&(qr=jr.current.get(Co)),no.set(Co,qr)}),jr.current=no}},[pr,Fe]);Nt.useEffect(()=>{ao(Wi)},[Wi]);const{keyEntities:lo}=(0,Nt.useMemo)(()=>{if(Qi)return{keyEntities:null};let vo=Jr;if(Fe){const no=new Set(Jr.map((qr,Ir)=>Fr(qr,Ir))),Co=Array.from(jr.current).reduce((qr,Ir)=>{let[Li,Sr]=Ir;return no.has(Li)?qr:qr.concat(Sr)},[]);vo=[].concat((0,Ji.Z)(vo),(0,Ji.Z)(Co))}return(0,da.I8)(vo,{externalGetKey:Fr,childrenPropName:ur})},[Jr,Fr,Qi,ur,Fe]),ar=(0,Nt.useMemo)(()=>bs(ur,oo),[ur,oo]),Lo=(0,Nt.useMemo)(()=>{const vo=new Map;return ar.forEach((no,Co)=>{const qr=Fr(no,Co),Ir=(Ye?Ye(no):null)||{};vo.set(qr,Ir)}),vo},[ar,Fr,Ye]),Ro=(0,Nt.useCallback)(vo=>{var no;return!!(!((no=Lo.get(Fr(vo)))===null||no===void 0)&&no.disabled)},[Lo,Fr]),[Wo,Ho]=(0,Nt.useMemo)(()=>{if(Qi)return[Wi||[],[]];const{checkedKeys:vo,halfCheckedKeys:no}=(0,Bo.S)(Wi,!0,lo,Ro);return[vo||[],no]},[Wi,Qi,lo,Ro]),ja=(0,Nt.useMemo)(()=>{const vo=wi==="radio"?Wo.slice(0,1):Wo;return new Set(vo)},[Wo,wi]),ta=(0,Nt.useMemo)(()=>wi==="radio"?new Set:new Set(Ho),[Ho,wi]),[Po,_r]=(0,Nt.useState)(null);Nt.useEffect(()=>{ie||or(Ms)},[!!ie]);const po=(0,Nt.useCallback)((vo,no)=>{let Co,qr;ao(vo),Fe?(Co=vo,qr=vo.map(Ir=>jr.current.get(Ir))):(Co=[],qr=[],vo.forEach(Ir=>{const Li=pr(Ir);Li!==void 0&&(Co.push(Ir),qr.push(Li))})),or(Co),En==null||En(Co,qr,{type:no})},[or,pr,En,Fe]),Ba=(0,Nt.useCallback)((vo,no,Co,qr)=>{if(Pn){const Ir=Co.map(Li=>pr(Li));Pn(pr(vo),no,Ir,qr)}po(Co,"single")},[Pn,pr,po]),Ca=(0,Nt.useMemo)(()=>!vi||ir?null:(vi===!0?[Cs,ts,hs]:vi).map(no=>no===Cs?{key:"all",text:zr.selectionAll,onSelect(){po(Jr.map((Co,qr)=>Fr(Co,qr)).filter(Co=>{const qr=Lo.get(Co);return!(qr!=null&&qr.disabled)||ja.has(Co)}),"all")}}:no===ts?{key:"invert",text:zr.selectInvert,onSelect(){const Co=new Set(ja);oo.forEach((Ir,Li)=>{const Sr=Fr(Ir,Li),Fo=Lo.get(Sr);Fo!=null&&Fo.disabled||(Co.has(Sr)?Co.delete(Sr):Co.add(Sr))});const qr=Array.from(Co);ei&&ei(qr),po(qr,"invert")}}:no===hs?{key:"none",text:zr.selectNone,onSelect(){Rn==null||Rn(),po(Array.from(ja).filter(Co=>{const qr=Lo.get(Co);return qr==null?void 0:qr.disabled}),"none")}}:no).map(no=>Object.assign(Object.assign({},no),{onSelect:function(){for(var Co,qr,Ir=arguments.length,Li=new Array(Ir),Sr=0;Sr<Ir;Sr++)Li[Sr]=arguments[Sr];(qr=no.onSelect)===null||qr===void 0||(Co=qr).call.apply(Co,[no].concat(Li)),_r(null)}})),[vi,ja,oo,Fr,ei,po]);return[(0,Nt.useCallback)(vo=>{var no;if(!ie)return vo.filter(ka=>ka!==Ps);let Co=(0,Ji.Z)(vo);const qr=new Set(ja),Ir=ar.map(Fr).filter(ka=>!Lo.get(ka).disabled),Li=Ir.every(ka=>qr.has(ka)),Sr=Ir.some(ka=>qr.has(ka)),Fo=()=>{const ka=[];Li?Ir.forEach(Va=>{qr.delete(Va),ka.push(Va)}):Ir.forEach(Va=>{qr.has(Va)||(qr.add(Va),ka.push(Va))});const Ha=Array.from(qr);wn==null||wn(!Li,Ha.map(Va=>pr(Va)),ka.map(Va=>pr(Va))),po(Ha,"all"),_r(null)};let Xo;if(wi!=="radio"){let ka;if(Ca){const ra={getPopupContainer:mr,items:Ca.map((Ja,js)=>{const{key:Ia,text:yo,onSelect:ms}=Ja;return{key:Ia!=null?Ia:js,onClick:()=>{ms==null||ms(Ir)},label:yo}})};ka=Nt.createElement("div",{className:`${sr}-selection-extra`},Nt.createElement(al.Z,{menu:ra,getPopupContainer:mr},Nt.createElement("span",null,Nt.createElement(td.Z,null))))}const Ha=ar.map((ra,Ja)=>{const js=Fr(ra,Ja),Ia=Lo.get(js)||{};return Object.assign({checked:qr.has(js)},Ia)}).filter(ra=>{let{disabled:Ja}=ra;return Ja}),Va=!!Ha.length&&Ha.length===ar.length,ds=Va&&Ha.every(ra=>{let{checked:Ja}=ra;return Ja}),Os=Va&&Ha.some(ra=>{let{checked:Ja}=ra;return Ja});Xo=!ir&&Nt.createElement("div",{className:`${sr}-selection`},Nt.createElement(fa.default,{checked:Va?ds:!!ar.length&&Li,indeterminate:Va?!ds&&Os:!Li&&Sr,onChange:Fo,disabled:ar.length===0||Va,"aria-label":ka?"Custom selection":"Select all",skipGroup:!0}),ka)}let Xs;wi==="radio"?Xs=(ka,Ha,Va)=>{const ds=Fr(Ha,Va),Os=qr.has(ds);return{node:Nt.createElement(zi.ZP,Object.assign({},Lo.get(ds),{checked:Os,onClick:ra=>ra.stopPropagation(),onChange:ra=>{qr.has(ds)||Ba(ds,!0,[ds],ra.nativeEvent)}})),checked:Os}}:Xs=(ka,Ha,Va)=>{var ds;const Os=Fr(Ha,Va),ra=qr.has(Os),Ja=ta.has(Os),js=Lo.get(Os);let Ia;return Eo==="nest"?Ia=Ja:Ia=(ds=js==null?void 0:js.indeterminate)!==null&&ds!==void 0?ds:Ja,{node:Nt.createElement(fa.default,Object.assign({},js,{indeterminate:Ia,checked:ra,skipGroup:!0,onClick:yo=>yo.stopPropagation(),onChange:yo=>{let{nativeEvent:ms}=yo;const{shiftKey:Is}=ms;let Cu=-1,ql=-1;if(Is&&Qi){const Wa=new Set([Po,Os]);Ir.some((ul,ls)=>{if(Wa.has(ul))if(Cu===-1)Cu=ls;else return ql=ls,!0;return!1})}if(ql!==-1&&Cu!==ql&&Qi){const Wa=Ir.slice(Cu,ql+1),ul=[];ra?Wa.forEach(is=>{qr.has(is)&&(ul.push(is),qr.delete(is))}):Wa.forEach(is=>{qr.has(is)||(ul.push(is),qr.add(is))});const ls=Array.from(qr);qn==null||qn(!ra,ls.map(is=>pr(is)),ul.map(is=>pr(is))),po(ls,"multiple")}else{const Wa=Wo;if(Qi){const ul=ra?(0,Pu._5)(Wa,Os):(0,Pu.L0)(Wa,Os);Ba(Os,!ra,ul,ms)}else{const ul=(0,Bo.S)([].concat((0,Ji.Z)(Wa),[Os]),!0,lo,Ro),{checkedKeys:ls,halfCheckedKeys:is}=ul;let hu=ls;if(ra){const oh=new Set(ls);oh.delete(Os),hu=(0,Bo.S)(Array.from(oh),{checked:!1,halfCheckedKeys:is},lo,Ro).checkedKeys}Ba(Os,!ra,hu,ms)}}_r(ra?null:Os)}})),checked:ra}};const ks=(ka,Ha,Va)=>{const{node:ds,checked:Os}=Xs(ka,Ha,Va);return Si?Si(Os,Ha,Va,ds):ds};if(!Co.includes(Ps))if(Co.findIndex(ka=>{var Ha;return((Ha=ka[yr])===null||Ha===void 0?void 0:Ha.columnType)==="EXPAND_COLUMN"})===0){const[ka,...Ha]=Co;Co=[ka,Ps].concat((0,Ji.Z)(Ha))}else Co=[Ps].concat((0,Ji.Z)(Co));const sl=Co.indexOf(Ps);Co=Co.filter((ka,Ha)=>ka!==Ps||Ha===sl);const va=Co[sl-1],Oa=Co[sl+1];let ho=Vi;ho===void 0&&((Oa==null?void 0:Oa.fixed)!==void 0?ho=Oa.fixed:(va==null?void 0:va.fixed)!==void 0&&(ho=va.fixed)),ho&&va&&((no=va[yr])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"&&va.fixed===void 0&&(va.fixed=ho);const Bs=pe()(`${sr}-selection-col`,{[`${sr}-selection-col-with-dropdown`]:vi&&wi==="checkbox"}),ll={fixed:ho,width:Ci,className:`${sr}-selection-column`,title:ie.columnTitle||Xo,render:ks,onCell:ie.onCell,[yr]:{className:Bs}};return Co.map(ka=>ka===Ps?ll:ka)},[Fr,ar,ie,Wo,ja,ta,Ci,Ca,Eo,Po,Lo,qn,Ba,Ro]),ja]},ps=St(89489),ic=St(59477),md=St(6848);const ed="ascend",kr="descend";function nd(Qt){return typeof Qt.sorter=="object"&&typeof Qt.sorter.multiple=="number"?Qt.sorter.multiple:!1}function Ae(Qt){return typeof Qt=="function"?Qt:Qt&&typeof Qt=="object"&&Qt.compare?Qt.compare:!1}function ti(Qt,ie){return ie?Qt[Qt.indexOf(ie)+1]:Qt[0]}function Ic(Qt,ie,Fe){let Be=[];function qe(Ye,En){Be.push({column:Ye,key:Ga(Ye,En),multiplePriority:nd(Ye),sortOrder:Ye.sortOrder})}return(Qt||[]).forEach((Ye,En)=>{const Pn=Vs(En,Fe);Ye.children?("sortOrder"in Ye&&qe(Ye,Pn),Be=[].concat((0,Ji.Z)(Be),(0,Ji.Z)(Ic(Ye.children,ie,Pn)))):Ye.sorter&&("sortOrder"in Ye?qe(Ye,Pn):ie&&Ye.defaultSortOrder&&Be.push({column:Ye,key:Ga(Ye,Pn),multiplePriority:nd(Ye),sortOrder:Ye.defaultSortOrder}))}),Be}function rc(Qt,ie,Fe,Be,qe,Ye,En,Pn){return(ie||[]).map((wn,ei)=>{const Rn=Vs(ei,Pn);let qn=wn;if(qn.sorter){const Ci=qn.sortDirections||qe,wi=qn.showSorterTooltip===void 0?En:qn.showSorterTooltip,vi=Ga(qn,Rn),Vi=Fe.find(Eo=>{let{key:ur}=Eo;return ur===vi}),Si=Vi?Vi.sortOrder:null,ir=ti(Ci,Si);let Qi;if(wn.sortIcon)Qi=wn.sortIcon({sortOrder:Si});else{const Eo=Ci.includes(ed)&&Nt.createElement(ic.Z,{className:pe()(`${Qt}-column-sorter-up`,{active:Si===ed})}),ur=Ci.includes(kr)&&Nt.createElement(ps.Z,{className:pe()(`${Qt}-column-sorter-down`,{active:Si===kr})});Qi=Nt.createElement("span",{className:pe()(`${Qt}-column-sorter`,{[`${Qt}-column-sorter-full`]:!!(Eo&&ur)})},Nt.createElement("span",{className:`${Qt}-column-sorter-inner`,"aria-hidden":"true"},Eo,ur))}const{cancelSort:sr,triggerAsc:Jr,triggerDesc:oo}=Ye||{};let pr=sr;ir===kr?pr=oo:ir===ed&&(pr=Jr);const Fr=typeof wi=="object"?wi:{title:pr};qn=Object.assign(Object.assign({},qn),{className:pe()(qn.className,{[`${Qt}-column-sort`]:Si}),title:Eo=>{const ur=Nt.createElement("div",{className:`${Qt}-column-sorters`},Nt.createElement("span",{className:`${Qt}-column-title`},us(wn.title,Eo)),Qi);return wi?Nt.createElement(md.Z,Object.assign({},Fr),ur):ur},onHeaderCell:Eo=>{const ur=wn.onHeaderCell&&wn.onHeaderCell(Eo)||{},zr=ur.onClick,mr=ur.onKeyDown;ur.onClick=jr=>{Be({column:wn,key:vi,sortOrder:ir,multiplePriority:nd(wn)}),zr==null||zr(jr)},ur.onKeyDown=jr=>{jr.keyCode===Fi.Z.ENTER&&(Be({column:wn,key:vi,sortOrder:ir,multiplePriority:nd(wn)}),mr==null||mr(jr))};const Wi=Ys(wn.title,{}),or=Wi==null?void 0:Wi.toString();return Si?ur["aria-sort"]=Si==="ascend"?"ascending":"descending":ur["aria-label"]=or||"",ur.className=pe()(ur.className,`${Qt}-column-has-sorters`),ur.tabIndex=0,wn.ellipsis&&(ur.title=(Wi!=null?Wi:"").toString()),ur}})}return"children"in qn&&(qn=Object.assign(Object.assign({},qn),{children:rc(Qt,qn.children,Fe,Be,qe,Ye,En,Rn)})),qn})}function ih(Qt){const{column:ie,sortOrder:Fe}=Qt;return{column:ie,order:Fe,field:ie.dataIndex,columnKey:ie.key}}function rh(Qt){const ie=Qt.filter(Fe=>{let{sortOrder:Be}=Fe;return Be}).map(ih);return ie.length===0&&Qt.length?Object.assign(Object.assign({},ih(Qt[Qt.length-1])),{column:void 0}):ie.length<=1?ie[0]||{}:ie}function xh(Qt,ie,Fe){const Be=ie.slice().sort((En,Pn)=>Pn.multiplePriority-En.multiplePriority),qe=Qt.slice(),Ye=Be.filter(En=>{let{column:{sorter:Pn},sortOrder:wn}=En;return Ae(Pn)&&wn});return Ye.length?qe.sort((En,Pn)=>{for(let wn=0;wn<Ye.length;wn+=1){const ei=Ye[wn],{column:{sorter:Rn},sortOrder:qn}=ei,Ci=Ae(Rn);if(Ci&&qn){const wi=Ci(En,Pn,qn);if(wi!==0)return qn===ed?wi:-wi}}return 0}).map(En=>{const Pn=En[Fe];return Pn?Object.assign(Object.assign({},En),{[Fe]:xh(Pn,ie,Fe)}):En}):qe}function oc(Qt){let{prefixCls:ie,mergedColumns:Fe,onSorterChange:Be,sortDirections:qe,tableLocale:Ye,showSorterTooltip:En}=Qt;const[Pn,wn]=Nt.useState(Ic(Fe,!0)),ei=Nt.useMemo(()=>{let vi=!0;const Vi=Ic(Fe,!1);if(!Vi.length)return Pn;const Si=[];function ir(sr){vi?Si.push(sr):Si.push(Object.assign(Object.assign({},sr),{sortOrder:null}))}let Qi=null;return Vi.forEach(sr=>{Qi===null?(ir(sr),sr.sortOrder&&(sr.multiplePriority===!1?vi=!1:Qi=!0)):(Qi&&sr.multiplePriority!==!1||(vi=!1),ir(sr))}),Si},[Fe,Pn]),Rn=Nt.useMemo(()=>{const vi=ei.map(Vi=>{let{column:Si,sortOrder:ir}=Vi;return{column:Si,order:ir}});return{sortColumns:vi,sortColumn:vi[0]&&vi[0].column,sortOrder:vi[0]&&vi[0].order}},[ei]);function qn(vi){let Vi;vi.multiplePriority===!1||!ei.length||ei[0].multiplePriority===!1?Vi=[vi]:Vi=[].concat((0,Ji.Z)(ei.filter(Si=>{let{key:ir}=Si;return ir!==vi.key})),[vi]),wn(Vi),Be(rh(Vi),Vi)}return[vi=>rc(ie,vi,ei,qn,qe,Ye,En),ei,Rn,()=>rh(ei)]}function Bd(Qt,ie){return Qt.map(Fe=>{const Be=Object.assign({},Fe);return Be.title=us(Fe.title,ie),"children"in Be&&(Be.children=Bd(Be.children,ie)),Be})}function Es(Qt){return[Nt.useCallback(Fe=>Bd(Fe,Qt),[Qt])]}var mo=Pr((Qt,ie)=>{const{_renderTimes:Fe}=Qt,{_renderTimes:Be}=ie;return Fe!==Be}),nl=_o((Qt,ie)=>{const{_renderTimes:Fe}=Qt,{_renderTimes:Be}=ie;return Fe!==Be}),yl=St(64993),ss=St(17313),na=St(83116),Us=St(37613),Kt=Qt=>{const{componentCls:ie}=Qt,Fe=`${Qt.lineWidth}px ${Qt.lineType} ${Qt.tableBorderColor}`,Be=(qe,Ye,En)=>({[`&${ie}-${qe}`]:{[`> ${ie}-container`]:{[`> ${ie}-content, > ${ie}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ie}-expanded-row-fixed`]:{margin:`-${Ye}px -${En+Qt.lineWidth}px`}}}}}});return{[`${ie}-wrapper`]:{[`${ie}${ie}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ie}-title`]:{border:Fe,borderBottom:0},[`> ${ie}-container`]:{borderInlineStart:Fe,borderTop:Fe,[`
> ${ie}-content,
> ${ie}-header,
> ${ie}-body,
> ${ie}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Fe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Fe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ie}-cell-fix-right-first::after`]:{borderInlineEnd:Fe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ie}-expanded-row-fixed`]:{margin:`-${Qt.tablePaddingVertical}px -${Qt.tablePaddingHorizontal+Qt.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Qt.lineWidth,bottom:0,borderInlineEnd:Fe,content:'""'}}}}}},[`&${ie}-scroll-horizontal`]:{[`> ${ie}-container > ${ie}-body`]:{"> table > tbody":{[`
> tr${ie}-expanded-row,
> tr${ie}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Be("middle",Qt.tablePaddingVerticalMiddle,Qt.tablePaddingHorizontalMiddle)),Be("small",Qt.tablePaddingVerticalSmall,Qt.tablePaddingHorizontalSmall)),{[`> ${ie}-footer`]:{border:Fe,borderTop:0}}),[`${ie}-cell`]:{[`${ie}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Qt.lineWidth}px 0 ${Qt.lineWidth}px ${Qt.tableHeaderBg}`}},[`${ie}-bordered ${ie}-cell-scrollbar`]:{borderInlineEnd:Fe}}}},Oe=Qt=>{const{componentCls:ie}=Qt;return{[`${ie}-wrapper`]:{[`${ie}-cell-ellipsis`]:Object.assign(Object.assign({},ss.vS),{wordBreak:"keep-all",[`
&${ie}-cell-fix-left-last,
&${ie}-cell-fix-right-first
`]:{overflow:"visible",[`${ie}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ie}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},vn=Qt=>{const{componentCls:ie}=Qt;return{[`${ie}-wrapper`]:{[`${ie}-tbody > tr${ie}-placeholder`]:{textAlign:"center",color:Qt.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Qt.colorBgContainer}}}}},Sn=St(15969),Xn=Qt=>{const{componentCls:ie,antCls:Fe,controlInteractiveSize:Be,motionDurationSlow:qe,lineWidth:Ye,paddingXS:En,lineType:Pn,tableBorderColor:wn,tableExpandIconBg:ei,tableExpandColumnWidth:Rn,borderRadius:qn,fontSize:Ci,fontSizeSM:wi,lineHeight:vi,tablePaddingVertical:Vi,tablePaddingHorizontal:Si,tableExpandedRowBg:ir,paddingXXS:Qi}=Qt,sr=Be/2-Ye,Jr=sr*2+Ye*3,oo=`${Ye}px ${Pn} ${wn}`,pr=Qi-Ye;return{[`${ie}-wrapper`]:{[`${ie}-expand-icon-col`]:{width:Rn},[`${ie}-row-expand-icon-cell`]:{textAlign:"center",[`${ie}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ie}-row-indent`]:{height:1,float:"left"},[`${ie}-row-expand-icon`]:Object.assign(Object.assign({},(0,Sn.N)(Qt)),{position:"relative",float:"left",boxSizing:"border-box",width:Jr,height:Jr,padding:0,color:"inherit",lineHeight:`${Jr}px`,background:ei,border:oo,borderRadius:qn,transform:`scale(${Be/Jr})`,transition:`all ${qe}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${qe} ease-out`,content:'""'},"&::before":{top:sr,insetInlineEnd:pr,insetInlineStart:pr,height:Ye},"&::after":{top:pr,bottom:pr,insetInlineStart:sr,width:Ye,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${ie}-row-indent + ${ie}-row-expand-icon`]:{marginTop:(Ci*vi-Ye*3)/2-Math.ceil((wi*1.4-Ye*3)/2),marginInlineEnd:En},[`tr${ie}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ir}},[`${Fe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ie}-expanded-row-fixed`]:{position:"relative",margin:`-${Vi}px -${Si}px`,padding:`${Vi}px ${Si}px`}}}},Ii=Qt=>{const{componentCls:ie,antCls:Fe,iconCls:Be,tableFilterDropdownWidth:qe,tableFilterDropdownSearchWidth:Ye,paddingXXS:En,paddingXS:Pn,colorText:wn,lineWidth:ei,lineType:Rn,tableBorderColor:qn,tableHeaderIconColor:Ci,fontSizeSM:wi,tablePaddingHorizontal:vi,borderRadius:Vi,motionDurationSlow:Si,colorTextDescription:ir,colorPrimary:Qi,tableHeaderFilterActiveBg:sr,colorTextDisabled:Jr,tableFilterDropdownBg:oo,tableFilterDropdownHeight:pr,controlItemBgHover:Fr,controlItemBgActive:Eo,boxShadowSecondary:ur,filterDropdownMenuBg:zr}=Qt,mr=`${Fe}-dropdown`,Wi=`${ie}-filter-dropdown`,or=`${Fe}-tree`,jr=`${ei}px ${Rn} ${qn}`;return[{[`${ie}-wrapper`]:{[`${ie}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ie}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-En,marginInline:`${En}px ${-vi/2}px`,padding:`0 ${En}px`,color:Ci,fontSize:wi,borderRadius:Vi,cursor:"pointer",transition:`all ${Si}`,"&:hover":{color:ir,background:sr},"&.active":{color:Qi}}}},{[`${Fe}-dropdown`]:{[Wi]:Object.assign(Object.assign({},(0,ss.Wf)(Qt)),{minWidth:qe,backgroundColor:oo,borderRadius:Vi,boxShadow:ur,overflow:"hidden",[`${mr}-menu`]:{maxHeight:pr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:zr,"&:empty::after":{display:"block",padding:`${Pn}px 0`,color:Jr,fontSize:wi,textAlign:"center",content:'"Not Found"'}},[`${Wi}-tree`]:{paddingBlock:`${Pn}px 0`,paddingInline:Pn,[or]:{padding:0},[`${or}-treenode ${or}-node-content-wrapper:hover`]:{backgroundColor:Fr},[`${or}-treenode-checkbox-checked ${or}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Eo}}},[`${Wi}-search`]:{padding:Pn,borderBottom:jr,"&-input":{input:{minWidth:Ye},[Be]:{color:Jr}}},[`${Wi}-checkall`]:{width:"100%",marginBottom:En,marginInlineStart:En},[`${Wi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Pn-ei}px ${Pn}px`,overflow:"hidden",borderTop:jr}})}},{[`${Fe}-dropdown ${Wi}, ${Wi}-submenu`]:{[`${Fe}-checkbox-wrapper + span`]:{paddingInlineStart:Pn,color:wn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},bi=Qt=>{const{componentCls:ie,lineWidth:Fe,colorSplit:Be,motionDurationSlow:qe,zIndexTableFixed:Ye,tableBg:En,zIndexTableSticky:Pn}=Qt,wn=Be;return{[`${ie}-wrapper`]:{[`
${ie}-cell-fix-left,
${ie}-cell-fix-right
`]:{position:"sticky !important",zIndex:Ye,background:En},[`
${ie}-cell-fix-left-first::after,
${ie}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Fe,width:30,transform:"translateX(100%)",transition:`box-shadow ${qe}`,content:'""',pointerEvents:"none"},[`${ie}-cell-fix-left-all::after`]:{display:"none"},[`
${ie}-cell-fix-right-first::after,
${ie}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Fe,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${qe}`,content:'""',pointerEvents:"none"},[`${ie}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Pn+1,width:30,transition:`box-shadow ${qe}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ie}-ping-left`]:{[`&:not(${ie}-has-fix-left) ${ie}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${wn}`}},[`
${ie}-cell-fix-left-first::after,
${ie}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${wn}`},[`${ie}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ie}-ping-right`]:{[`&:not(${ie}-has-fix-right) ${ie}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${wn}`}},[`
${ie}-cell-fix-right-first::after,
${ie}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${wn}`}}}}},Yi=Qt=>{const{componentCls:ie,antCls:Fe}=Qt;return{[`${ie}-wrapper`]:{[`${ie}-pagination${Fe}-pagination`]:{margin:`${Qt.margin}px 0`},[`${ie}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Qt.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ei=Qt=>{const{componentCls:ie,tableRadius:Fe}=Qt;return{[`${ie}-wrapper`]:{[ie]:{[`${ie}-title, ${ie}-header`]:{borderRadius:`${Fe}px ${Fe}px 0 0`},[`${ie}-title + ${ie}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ie}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Fe,borderStartEndRadius:Fe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Fe},"> *:last-child":{borderStartEndRadius:Fe}}},"&-footer":{borderRadius:`0 0 ${Fe}px ${Fe}px`}}}}},Gr=Qt=>{const{componentCls:ie}=Qt;return{[`${ie}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ie}-pagination-left`]:{justifyContent:"flex-end"},[`${ie}-pagination-right`]:{justifyContent:"flex-start"},[`${ie}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ie}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ie}-row-indent`]:{float:"right"}}}}},Ur=Qt=>{const{componentCls:ie,antCls:Fe,iconCls:Be,fontSizeIcon:qe,padding:Ye,paddingXS:En,tableHeaderIconColor:Pn,tableHeaderIconColorHover:wn,tableSelectionColumnWidth:ei}=Qt;return{[`${ie}-wrapper`]:{[`${ie}-selection-col`]:{width:ei,[`&${ie}-selection-col-with-dropdown`]:{width:ei+qe+Ye/4}},[`${ie}-bordered ${ie}-selection-col`]:{width:ei+En*2,[`&${ie}-selection-col-with-dropdown`]:{width:ei+qe+Ye/4+En*2}},[`
table tr th${ie}-selection-column,
table tr td${ie}-selection-column
`]:{paddingInlineEnd:Qt.paddingXS,paddingInlineStart:Qt.paddingXS,textAlign:"center",[`${Fe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ie}-selection-column${ie}-cell-fix-left`]:{zIndex:Qt.zIndexTableFixed+1},[`table tr th${ie}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ie}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ie}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Qt.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Qt.tablePaddingHorizontal/4}px`,[Be]:{color:Pn,fontSize:qe,verticalAlign:"baseline","&:hover":{color:wn}}}}}},Kr=Qt=>{const{componentCls:ie}=Qt,Fe=(Be,qe,Ye,En)=>({[`${ie}${ie}-${Be}`]:{fontSize:En,[`
${ie}-title,
${ie}-footer,
${ie}-cell,
${ie}-thead > tr > th,
${ie}-tbody > tr > th,
${ie}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${qe}px ${Ye}px`},[`${ie}-filter-trigger`]:{marginInlineEnd:`-${Ye/2}px`},[`${ie}-expanded-row-fixed`]:{margin:`-${qe}px -${Ye}px`},[`${ie}-tbody`]:{[`${ie}-wrapper:only-child ${ie}`]:{marginBlock:`-${qe}px`,marginInline:`${Qt.tableExpandColumnWidth-Ye}px -${Ye}px`}},[`${ie}-selection-column`]:{paddingInlineStart:`${Ye/4}px`}}});return{[`${ie}-wrapper`]:Object.assign(Object.assign({},Fe("middle",Qt.tablePaddingVerticalMiddle,Qt.tablePaddingHorizontalMiddle,Qt.tableFontSizeMiddle)),Fe("small",Qt.tablePaddingVerticalSmall,Qt.tablePaddingHorizontalSmall,Qt.tableFontSizeSmall))}},Uo=Qt=>{const{componentCls:ie,marginXXS:Fe,fontSizeIcon:Be,tableHeaderIconColor:qe,tableHeaderIconColorHover:Ye}=Qt;return{[`${ie}-wrapper`]:{[`${ie}-thead th${ie}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Qt.motionDurationSlow}`,"&:hover":{background:Qt.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Qt.colorPrimary},[`
&${ie}-cell-fix-left:hover,
&${ie}-cell-fix-right:hover
`]:{background:Qt.tableFixedHeaderSortActiveBg}},[`${ie}-thead th${ie}-column-sort`]:{background:Qt.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ie}-column-sort`]:{background:Qt.tableBodySortBg},[`${ie}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ie}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ie}-column-sorter`]:{marginInlineStart:Fe,color:qe,fontSize:0,transition:`color ${Qt.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Be,"&.active":{color:Qt.colorPrimary}},[`${ie}-column-sorter-up + ${ie}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ie}-column-sorters:hover ${ie}-column-sorter`]:{color:Ye}}}},ia=Qt=>{const{componentCls:ie,opacityLoading:Fe,tableScrollThumbBg:Be,tableScrollThumbBgHover:qe,tableScrollThumbSize:Ye,tableScrollBg:En,zIndexTableSticky:Pn,stickyScrollBarBorderRadius:wn}=Qt,ei=`${Qt.lineWidth}px ${Qt.lineType} ${Qt.tableBorderColor}`;return{[`${ie}-wrapper`]:{[`${ie}-sticky`]:{"&-holder":{position:"sticky",zIndex:Pn,background:Qt.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ye}px !important`,zIndex:Pn,display:"flex",alignItems:"center",background:En,borderTop:ei,opacity:Fe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ye,backgroundColor:Be,borderRadius:wn,transition:`all ${Qt.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:qe}}}}}}},Aa=Qt=>{const{componentCls:ie,lineWidth:Fe,tableBorderColor:Be}=Qt,qe=`${Fe}px ${Qt.lineType} ${Be}`;return{[`${ie}-wrapper`]:{[`${ie}-summary`]:{position:"relative",zIndex:Qt.zIndexTableFixed,background:Qt.tableBg,"> tr":{"> th, > td":{borderBottom:qe}}},[`div${ie}-summary`]:{boxShadow:`0 -${Fe}px 0 ${Be}`}}}},es=Qt=>{const{componentCls:ie}=Qt,Fe=`${Qt.lineWidth}px ${Qt.lineType} ${Qt.tableBorderColor}`,Be=`${ie}-expanded-row-cell`;return{[`${ie}-wrapper`]:{[`${ie}-tbody-virtual`]:{[`${ie}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ie}-cell`]:{borderBottom:Fe},[`${ie}-expanded-row`]:{[`${Be}${Be}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Qt.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ie}-bordered`]:{[`${ie}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Fe,position:"absolute"},[`${ie}-cell`]:{borderInlineEnd:Fe,[`&${ie}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Qt.lineWidth,borderInlineStart:Fe}}}}}}};const ga=Qt=>{const{componentCls:ie,fontWeightStrong:Fe,tablePaddingVertical:Be,tablePaddingHorizontal:qe,lineWidth:Ye,lineType:En,tableBorderColor:Pn,tableFontSize:wn,tableBg:ei,tableRadius:Rn,tableHeaderTextColor:qn,motionDurationMid:Ci,tableHeaderBg:wi,tableHeaderCellSplitColor:vi,tableRowHoverBg:Vi,tableSelectedRowBg:Si,tableSelectedRowHoverBg:ir,tableFooterTextColor:Qi,tableFooterBg:sr,paddingContentVerticalLG:Jr}=Qt,oo=`${Ye}px ${En} ${Pn}`;return{[`${ie}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ss.dF)()),{[ie]:Object.assign(Object.assign({},(0,ss.Wf)(Qt)),{fontSize:wn,background:ei,borderRadius:`${Rn}px ${Rn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Rn}px ${Rn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${ie}-cell,
${ie}-thead > tr > th,
${ie}-tbody > tr > th,
${ie}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Jr}px ${qe}px`,overflowWrap:"break-word"},[`${ie}-title`]:{padding:`${Be}px ${qe}px`},[`${ie}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:qn,fontWeight:Fe,textAlign:"start",background:wi,borderBottom:oo,transition:`background ${Ci} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ie}-selection-column):not(${ie}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:vi,transform:"translateY(-50%)",transition:`background-color ${Ci}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ie}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ci}, border-color ${Ci}`,borderBottom:oo,[`
> ${ie}-wrapper:only-child,
> ${ie}-expanded-row-fixed > ${ie}-wrapper:only-child
`]:{[ie]:{marginBlock:`-${Be}px`,marginInline:`${Qt.tableExpandColumnWidth-qe}px -${qe}px`,[`${ie}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:qn,fontWeight:Fe,textAlign:"start",background:wi,borderBottom:oo,transition:`background ${Ci} ease`},[`
&${ie}-row:hover > th,
&${ie}-row:hover > td,
> th${ie}-cell-row-hover,
> td${ie}-cell-row-hover
`]:{background:Vi},[`&${ie}-row-selected`]:{"> th, > td":{background:Si},"&:hover > th, &:hover > td":{background:ir}}}},[`${ie}-footer`]:{padding:`${Be}px ${qe}px`,color:Qi,background:sr}})}};var sa=(0,na.Z)("Table",Qt=>{const{colorTextHeading:ie,colorSplit:Fe,colorIcon:Be,colorIconHover:qe,opacityLoading:Ye,colorBgContainer:En,controlInteractiveSize:Pn,headerBg:wn,headerColor:ei,headerSortActiveBg:Rn,headerSortHoverBg:qn,bodySortBg:Ci,rowHoverBg:wi,rowSelectedBg:vi,rowSelectedHoverBg:Vi,rowExpandedBg:Si,cellPaddingBlock:ir,cellPaddingInline:Qi,cellPaddingBlockMD:sr,cellPaddingInlineMD:Jr,cellPaddingBlockSM:oo,cellPaddingInlineSM:pr,borderColor:Fr,footerBg:Eo,footerColor:ur,headerBorderRadius:zr,cellFontSize:mr,cellFontSizeMD:Wi,cellFontSizeSM:or,headerSplitColor:jr,fixedHeaderSortActiveBg:ao,headerFilterHoverBg:lo,filterDropdownBg:ar,expandIconBg:Lo,selectionColumnWidth:Ro,stickyScrollBarBg:Wo}=Qt,Ho=new yl.C(Be),ja=new yl.C(qe),ta=2,Po=(0,Us.TS)(Qt,{tableFontSize:mr,tableBg:En,tableRadius:zr,tablePaddingVertical:ir,tablePaddingHorizontal:Qi,tablePaddingVerticalMiddle:sr,tablePaddingHorizontalMiddle:Jr,tablePaddingVerticalSmall:oo,tablePaddingHorizontalSmall:pr,tableBorderColor:Fr,tableHeaderTextColor:ei,tableHeaderBg:wn,tableFooterTextColor:ur,tableFooterBg:Eo,tableHeaderCellSplitColor:jr,tableHeaderSortBg:Rn,tableHeaderSortHoverBg:qn,tableHeaderIconColor:Ho.clone().setAlpha(Ho.getAlpha()*Ye).toRgbString(),tableHeaderIconColorHover:ja.clone().setAlpha(ja.getAlpha()*Ye).toRgbString(),tableBodySortBg:Ci,tableFixedHeaderSortActiveBg:ao,tableHeaderFilterActiveBg:lo,tableFilterDropdownBg:ar,tableRowHoverBg:wi,tableSelectedRowBg:vi,tableSelectedRowHoverBg:Vi,zIndexTableFixed:ta,zIndexTableSticky:ta+1,tableFontSizeMiddle:Wi,tableFontSizeSmall:or,tableSelectionColumnWidth:Ro,tableExpandIconBg:Lo,tableExpandColumnWidth:Pn+2*Qt.padding,tableExpandedRowBg:Si,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Wo,tableScrollThumbBgHover:ie,tableScrollBg:Fe});return[ga(Po),Yi(Po),Aa(Po),Uo(Po),Ii(Po),Kt(Po),Ei(Po),Xn(Po),Aa(Po),vn(Po),Ur(Po),bi(Po),ia(Po),Oe(Po),Kr(Po),Gr(Po),es(Po)]},Qt=>{const{colorFillAlter:ie,colorBgContainer:Fe,colorTextHeading:Be,colorFillSecondary:qe,colorFillContent:Ye,controlItemBgActive:En,controlItemBgActiveHover:Pn,padding:wn,paddingSM:ei,paddingXS:Rn,colorBorderSecondary:qn,borderRadiusLG:Ci,fontSize:wi,controlHeight:vi,colorTextPlaceholder:Vi}=Qt,Si=new yl.C(qe).onBackground(Fe).toHexShortString(),ir=new yl.C(Ye).onBackground(Fe).toHexShortString(),Qi=new yl.C(ie).onBackground(Fe).toHexShortString();return{headerBg:Qi,headerColor:Be,headerSortActiveBg:Si,headerSortHoverBg:ir,bodySortBg:Qi,rowHoverBg:Qi,rowSelectedBg:En,rowSelectedHoverBg:Pn,rowExpandedBg:ie,cellPaddingBlock:wn,cellPaddingInline:wn,cellPaddingBlockMD:ei,cellPaddingInlineMD:Rn,cellPaddingBlockSM:Rn,cellPaddingInlineSM:Rn,borderColor:qn,headerBorderRadius:Ci,footerBg:Qi,footerColor:Be,cellFontSize:wi,cellFontSizeMD:wi,cellFontSizeSM:wi,headerSplitColor:qn,fixedHeaderSortActiveBg:Si,headerFilterHoverBg:Ye,filterDropdownMenuBg:Fe,filterDropdownBg:Fe,expandIconBg:Fe,selectionColumnWidth:vi,stickyScrollBarBg:Vi,stickyScrollBarBorderRadius:100}});const wa=[],Xa=(Qt,ie)=>{const{prefixCls:Fe,className:Be,rootClassName:qe,style:Ye,size:En,bordered:Pn,dropdownPrefixCls:wn,dataSource:ei,pagination:Rn,rowSelection:qn,rowKey:Ci="key",rowClassName:wi,columns:vi,children:Vi,childrenColumnName:Si,onChange:ir,getPopupContainer:Qi,loading:sr,expandIcon:Jr,expandable:oo,expandedRowRender:pr,expandIconColumnIndex:Fr,indentSize:Eo,scroll:ur,sortDirections:zr,locale:mr,showSorterTooltip:Wi=!0,virtual:or}=Qt,jr=Nt.useMemo(()=>vi||un(Vi),[vi,Vi]),ao=Nt.useMemo(()=>jr.some(ba=>ba.responsive),[jr]),lo=(0,ri.Z)(ao),ar=Nt.useMemo(()=>{const ba=new Set(Object.keys(lo).filter(Qa=>lo[Qa]));return jr.filter(Qa=>!Qa.responsive||Qa.responsive.some(Hs=>ba.has(Hs)))},[jr,lo]),Lo=(0,$r.Z)(Qt,["className","style","columns"]),{locale:Ro=Mr.Z,direction:Wo,table:Ho,renderEmpty:ja,getPrefixCls:ta,getPopupContainer:Po}=Nt.useContext(oa.E_),_r=(0,fr.Z)(En),po=Object.assign(Object.assign({},Ro.Table),mr),Ba=ei||wa,Ca=ta("table",Fe),Ka=ta("dropdown",wn),vo=Object.assign({childrenColumnName:Si,expandIconColumnIndex:Fr},oo),{childrenColumnName:no="children"}=vo,Co=Nt.useMemo(()=>Ba.some(ba=>ba==null?void 0:ba[no])?"nest":pr||oo&&oo.expandedRowRender?"row":null,[Ba]),qr={body:Nt.useRef()},Ir=Nt.useMemo(()=>typeof Ci=="function"?Ci:ba=>ba==null?void 0:ba[Ci],[Ci]),[Li]=Oh(Ba,no,Ir),Sr={},Fo=function(ba,Qa){let Hs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var rs,Ea,Ws;const Sl=Object.assign(Object.assign({},Sr),ba);Hs&&((rs=Sr.resetPagination)===null||rs===void 0||rs.call(Sr),!((Ea=Sl.pagination)===null||Ea===void 0)&&Ea.current&&(Sl.pagination.current=1),Rn&&Rn.onChange&&Rn.onChange(1,(Ws=Sl.pagination)===null||Ws===void 0?void 0:Ws.pageSize)),ur&&ur.scrollToFirstRowOnChange!==!1&&qr.body.current&&(0,Zo.Z)(0,{getContainer:()=>qr.body.current}),ir==null||ir(Sl.pagination,Sl.filters,Sl.sorter,{currentDataSource:vl(xh(Ba,Sl.sorterStates,no),Sl.filterStates),action:Qa})},Xo=(ba,Qa)=>{Fo({sorter:ba,sorterStates:Qa},"sort",!1)},[Xs,ks,sl,va]=oc({prefixCls:Ca,mergedColumns:ar,onSorterChange:Xo,sortDirections:zr||["ascend","descend"],tableLocale:po,showSorterTooltip:Wi}),Oa=Nt.useMemo(()=>xh(Ba,ks,no),[Ba,ks]);Sr.sorter=va(),Sr.sorterStates=ks;const ho=(ba,Qa)=>{Fo({filters:ba,filterStates:Qa},"filter",!0)},[Bs,ll,ka]=_h({prefixCls:Ca,locale:po,dropdownPrefixCls:Ka,mergedColumns:ar,onFilterChange:ho,getPopupContainer:Qi||Po}),Ha=vl(Oa,ll);Sr.filters=ka,Sr.filterStates=ll;const Va=Nt.useMemo(()=>{const ba={};return Object.keys(ka).forEach(Qa=>{ka[Qa]!==null&&(ba[Qa]=ka[Qa])}),Object.assign(Object.assign({},sl),{filters:ba})},[sl,ka]),[ds]=Es(Va),Os=(ba,Qa)=>{Fo({pagination:Object.assign(Object.assign({},Sr.pagination),{current:ba,pageSize:Qa})},"paginate")},[ra,Ja]=pd(Ha.length,Os,Rn);Sr.pagination=Rn===!1?{}:Bl(ra,Rn),Sr.resetPagination=Ja;const js=Nt.useMemo(()=>{if(Rn===!1||!ra.pageSize)return Ha;const{current:ba=1,total:Qa,pageSize:Hs=Zu}=ra;return Ha.length<Qa?Ha.length>Hs?Ha.slice((ba-1)*Hs,ba*Hs):Ha:Ha.slice((ba-1)*Hs,ba*Hs)},[!!Rn,Ha,ra&&ra.current,ra&&ra.pageSize,ra&&ra.total]),[Ia,yo]=$l({prefixCls:Ca,data:Ha,pageData:js,getRowKey:Ir,getRecordByKey:Li,expandType:Co,childrenColumnName:no,locale:po,getPopupContainer:Qi||Po},qn),ms=(ba,Qa,Hs)=>{let rs;return typeof wi=="function"?rs=pe()(wi(ba,Qa,Hs)):rs=pe()(wi),pe()({[`${Ca}-row-selected`]:yo.has(Ir(ba,Qa))},rs)};vo.__PARENT_RENDER_ICON__=vo.expandIcon,vo.expandIcon=vo.expandIcon||Jr||Ra(po),Co==="nest"&&vo.expandIconColumnIndex===void 0?vo.expandIconColumnIndex=qn?1:0:vo.expandIconColumnIndex>0&&qn&&(vo.expandIconColumnIndex-=1),typeof vo.indentSize!="number"&&(vo.indentSize=typeof Eo=="number"?Eo:15);const Is=Nt.useCallback(ba=>ds(Ia(Bs(Xs(ba)))),[Xs,Bs,Ia]);let Cu,ql;if(Rn!==!1&&(ra!=null&&ra.total)){let ba;ra.size?ba=ra.size:ba=_r==="small"||_r==="middle"?"small":void 0;const Qa=Ea=>Nt.createElement(Io.Z,Object.assign({},ra,{className:pe()(`${Ca}-pagination ${Ca}-pagination-${Ea}`,ra.className),size:ba})),Hs=Wo==="rtl"?"left":"right",{position:rs}=ra;if(rs!==null&&Array.isArray(rs)){const Ea=rs.find(bu=>bu.includes("top")),Ws=rs.find(bu=>bu.includes("bottom")),Sl=rs.every(bu=>`${bu}`=="none");!Ea&&!Ws&&!Sl&&(ql=Qa(Hs)),Ea&&(Cu=Qa(Ea.toLowerCase().replace("top",""))),Ws&&(ql=Qa(Ws.toLowerCase().replace("bottom","")))}else ql=Qa(Hs)}let Wa;typeof sr=="boolean"?Wa={spinning:sr}:typeof sr=="object"&&(Wa=Object.assign({spinning:!0},sr));const[ul,ls]=sa(Ca),[,is]=(0,Sa.Z)(),hu=pe()(`${Ca}-wrapper`,Ho==null?void 0:Ho.className,{[`${Ca}-wrapper-rtl`]:Wo==="rtl"},Be,qe,ls),oh=Object.assign(Object.assign({},Ho==null?void 0:Ho.style),Ye),Il=mr&&mr.emptyText||(ja==null?void 0:ja("Table"))||Nt.createElement(cr.Z,{componentName:"Table"}),Gu=or?nl:mo,Ku={},_l=Nt.useMemo(()=>{const{fontSize:ba,lineHeight:Qa,padding:Hs,paddingXS:rs,paddingSM:Ea}=is,Ws=Math.floor(ba*Qa);switch(_r){case"large":return Hs*2+Ws;case"small":return rs*2+Ws;default:return Ea*2+Ws}},[is,_r]);return or&&(Ku.listItemHeight=_l),ul(Nt.createElement("div",{ref:ie,className:hu,style:oh},Nt.createElement(Ma.Z,Object.assign({spinning:!1},Wa),Cu,Nt.createElement(Gu,Object.assign({},Ku,Lo,{columns:ar,direction:Wo,expandable:vo,prefixCls:Ca,className:pe()({[`${Ca}-middle`]:_r==="middle",[`${Ca}-small`]:_r==="small",[`${Ca}-bordered`]:Pn,[`${Ca}-empty`]:Ba.length===0}),data:js,rowKey:Ir,rowClassName:ms,emptyText:Il,internalHooks:zt,internalRefs:qr,transformColumns:Is})),ql)))};var ns=Nt.forwardRef(Xa);const za=(Qt,ie)=>{const Fe=Nt.useRef(0);return Fe.current+=1,Nt.createElement(ns,Object.assign({},Qt,{ref:ie,_renderTimes:Fe.current}))},Pa=Nt.forwardRef(za);Pa.SELECTION_COLUMN=Ps,Pa.EXPAND_COLUMN=At,Pa.SELECTION_ALL=Cs,Pa.SELECTION_INVERT=ts,Pa.SELECTION_NONE=hs,Pa.Column=Ar,Pa.ColumnGroup=uo,Pa.Summary=ee;var As=Pa,_s=As},17574:function(Bn,Cn,St){"use strict";St.d(Cn,{default:function(){return ye}});var At=St(43858),zt=St(19127),oe=St(52671),Me=St(8657),Xt=St(96663),Se=St(59301),Nt={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"},Ne=Nt,Pe=St(7657),ne=function(nn,Zn){return Se.createElement(Pe.Z,(0,Xt.Z)({},nn,{ref:Zn,icon:Ne}))},xe=Se.forwardRef(ne),we=xe,Ce=St(92310),Tt=St.n(Ce),et=St(35654),nt=St(71430),ht=St(36355),st=St(56082),gt=St(62892),vt=St(20648);const Pt=4;function Ft(Gt){const{dropPosition:nn,dropLevelOffset:Zn,prefixCls:_n,indent:Te,direction:rn="ltr"}=Gt,gn=rn==="ltr"?"left":"right",Vn=rn==="ltr"?"right":"left",cn={[gn]:-Zn*Te+Pt,[Vn]:0};switch(nn){case-1:cn.top=-3;break;case 1:cn.bottom=-3;break;default:cn.bottom=-3,cn[gn]=Te+Pt;break}return Se.createElement("div",{style:cn,className:`${_n}-drop-indicator`})}var wt=St(71997),Ht=Se.forwardRef((Gt,nn)=>{const{getPrefixCls:Zn,direction:_n,virtual:Te,tree:rn}=Se.useContext(ht.E_),{prefixCls:gn,className:Vn,showIcon:cn=!1,showLine:Hn,switcherIcon:me,blockNode:Un=!1,children:ii,checkable:xn=!1,selectable:ni=!0,draggable:ze,motion:Ie,style:ke}=Gt,se=Zn("tree",gn),$e=Zn(),Ze=Ie!=null?Ie:Object.assign(Object.assign({},(0,gt.Z)($e)),{motionAppear:!1}),ee=Object.assign(Object.assign({},Gt),{checkable:xn,selectable:ni,showIcon:cn,motion:Ze,blockNode:Un,showLine:!!Hn,dropIndicatorRender:Ft}),[re,Bt]=(0,vt.ZP)(se),xt=Se.useMemo(()=>{if(!ze)return!1;let kt={};switch(typeof ze){case"function":kt.nodeDraggable=ze;break;case"object":kt=Object.assign({},ze);break;default:break}return kt.icon!==!1&&(kt.icon=kt.icon||Se.createElement(st.Z,null)),kt},[ze]),mt=kt=>Se.createElement(wt.Z,{prefixCls:se,switcherIcon:me,treeNodeProps:kt,showLine:Hn});return re(Se.createElement(At.Z,Object.assign({itemHeight:20,ref:nn,virtual:Te},ee,{style:Object.assign(Object.assign({},rn==null?void 0:rn.style),ke),prefixCls:se,className:Tt()({[`${se}-icon-hide`]:!cn,[`${se}-block-node`]:Un,[`${se}-unselectable`]:!ni,[`${se}-rtl`]:_n==="rtl"},rn==null?void 0:rn.className,Vn,Bt),direction:_n,checkable:xn&&Se.createElement("span",{className:`${se}-checkbox-inner`}),selectable:ni,switcherIcon:mt,draggable:xt}),ii))}),Zt;(function(Gt){Gt[Gt.None=0]="None",Gt[Gt.Start=1]="Start",Gt[Gt.End=2]="End"})(Zt||(Zt={}));function Ut(Gt,nn){function Zn(_n){const{key:Te,children:rn}=_n;nn(Te,_n)!==!1&&Ut(rn||[],nn)}Gt.forEach(Zn)}function fe(Gt){let{treeData:nn,expandedKeys:Zn,startKey:_n,endKey:Te}=Gt;const rn=[];let gn=Zt.None;if(_n&&_n===Te)return[_n];if(!_n||!Te)return[];function Vn(cn){return cn===_n||cn===Te}return Ut(nn,cn=>{if(gn===Zt.End)return!1;if(Vn(cn)){if(rn.push(cn),gn===Zt.None)gn=Zt.Start;else if(gn===Zt.Start)return gn=Zt.End,!1}else gn===Zt.Start&&rn.push(cn);return Zn.includes(cn)}),rn}function Yt(Gt,nn){const Zn=(0,zt.Z)(nn),_n=[];return Ut(Gt,(Te,rn)=>{const gn=Zn.indexOf(Te);return gn!==-1&&(_n.push(rn),Zn.splice(gn,1)),!!Zn.length}),_n}var Xe=function(Gt,nn){var Zn={};for(var _n in Gt)Object.prototype.hasOwnProperty.call(Gt,_n)&&nn.indexOf(_n)<0&&(Zn[_n]=Gt[_n]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,_n=Object.getOwnPropertySymbols(Gt);Te<_n.length;Te++)nn.indexOf(_n[Te])<0&&Object.prototype.propertyIsEnumerable.call(Gt,_n[Te])&&(Zn[_n[Te]]=Gt[_n[Te]]);return Zn};function pe(Gt){const{isLeaf:nn,expanded:Zn}=Gt;return nn?Se.createElement(oe.Z,null):Zn?Se.createElement(Me.Z,null):Se.createElement(we,null)}function tn(Gt){let{treeData:nn,children:Zn}=Gt;return nn||(0,nt.zn)(Zn)}const Ve=(Gt,nn)=>{var{defaultExpandAll:Zn,defaultExpandParent:_n,defaultExpandedKeys:Te}=Gt,rn=Xe(Gt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const gn=Se.useRef(),Vn=Se.useRef(),cn=()=>{const{keyEntities:xt}=(0,nt.I8)(tn(rn));let mt;return Zn?mt=Object.keys(xt):_n?mt=(0,et.r7)(rn.expandedKeys||Te||[],xt):mt=rn.expandedKeys||Te,mt},[Hn,me]=Se.useState(rn.selectedKeys||rn.defaultSelectedKeys||[]),[Un,ii]=Se.useState(()=>cn());Se.useEffect(()=>{"selectedKeys"in rn&&me(rn.selectedKeys)},[rn.selectedKeys]),Se.useEffect(()=>{"expandedKeys"in rn&&ii(rn.expandedKeys)},[rn.expandedKeys]);const xn=(xt,mt)=>{var kt;return"expandedKeys"in rn||ii(xt),(kt=rn.onExpand)===null||kt===void 0?void 0:kt.call(rn,xt,mt)},ni=(xt,mt)=>{var kt;const{multiple:jt}=rn,{node:Lt,nativeEvent:he}=mt,{key:Re=""}=Lt,on=tn(rn),de=Object.assign(Object.assign({},mt),{selected:!0}),De=(he==null?void 0:he.ctrlKey)||(he==null?void 0:he.metaKey),Ke=he==null?void 0:he.shiftKey;let An;jt&&De?(An=xt,gn.current=Re,Vn.current=An,de.selectedNodes=Yt(on,An)):jt&&Ke?(An=Array.from(new Set([].concat((0,zt.Z)(Vn.current||[]),(0,zt.Z)(fe({treeData:on,expandedKeys:Un,startKey:Re,endKey:gn.current}))))),de.selectedNodes=Yt(on,An)):(An=[Re],gn.current=Re,Vn.current=An,de.selectedNodes=Yt(on,An)),(kt=rn.onSelect)===null||kt===void 0||kt.call(rn,An,de),"selectedKeys"in rn||me(An)},{getPrefixCls:ze,direction:Ie}=Se.useContext(ht.E_),{prefixCls:ke,className:se,showIcon:$e=!0,expandAction:Ze="click"}=rn,ee=Xe(rn,["prefixCls","className","showIcon","expandAction"]),re=ze("tree",ke),Bt=Tt()(`${re}-directory`,{[`${re}-directory-rtl`]:Ie==="rtl"},se);return Se.createElement(Ht,Object.assign({icon:pe,ref:nn,blockNode:!0},ee,{showIcon:$e,expandAction:Ze,prefixCls:re,className:Bt,expandedKeys:Un,selectedKeys:Hn,onSelect:ni,onExpand:xn}))};var _e=Se.forwardRef(Ve);const Tn=Ht;Tn.DirectoryTree=_e,Tn.TreeNode=At.O;var ye=Tn},20648:function(Bn,Cn,St){"use strict";St.d(Cn,{TM:function(){return Ce},Yk:function(){return we}});var At=St(93083),zt=St(98447),oe=St(17313),Me=St(8378),Xt=St(37613),Se=St(83116);const Nt=new At.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ne=(Tt,et)=>({[`.${Tt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),Pe=(Tt,et)=>({[`.${Tt}-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:'""'}}}),ne=(Tt,et)=>{const{treeCls:nt,treeNodeCls:ht,treeNodePadding:st,titleHeight:gt,nodeSelectedBg:vt,nodeHoverBg:Pt}=et,Ft=et.paddingXS;return{[nt]:Object.assign(Object.assign({},(0,oe.Wf)(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${nt}-rtl`]:{[`${nt}-switcher`]:{"&_close":{[`${nt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${nt}-active-focused)`]:Object.assign({},(0,oe.oN)(et)),[`${nt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${nt}-block-node`]:{[`${nt}-list-holder-inner`]:{alignItems:"stretch",[`${nt}-node-content-wrapper`]:{flex:"auto"},[`${ht}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:st,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:Nt,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ht}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${st}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${nt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${nt}-node-content-wrapper`]:Object.assign({},(0,oe.oN)(et)),[`&:not(${ht}-disabled).filter-node ${nt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${nt}-draggable-icon`]:{flexShrink:0,width:gt,lineHeight:`${gt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${ht}:hover &`]:{opacity:.45}},[`&${ht}-disabled`]:{[`${nt}-draggable-icon`]:{visibility:"hidden"}}}},[`${nt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:gt}},[`${nt}-draggable-icon`]:{visibility:"hidden"},[`${nt}-switcher`]:Object.assign(Object.assign({},Ne(Tt,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:gt,margin:0,lineHeight:`${gt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${nt}-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:gt/2,bottom:-st,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:gt/2*.8,height:gt/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${nt}-checkbox`]:{top:"initial",marginInlineEnd:Ft},[`${nt}-node-content-wrapper, ${nt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:gt,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${gt}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Pt},[`&${nt}-node-selected`]:{backgroundColor:vt},[`${nt}-iconEle`]:{display:"inline-block",width:gt,height:gt,lineHeight:`${gt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${nt}-unselectable ${nt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${nt}-node-content-wrapper`]:Object.assign({lineHeight:`${gt}px`,userSelect:"none"},Pe(Tt,et)),[`${ht}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${nt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:gt/2,bottom:-st,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${nt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ht}-leaf-last`]:{[`${nt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${gt/2}px !important`}}}}})}},xe=Tt=>{const{treeCls:et,treeNodeCls:nt,treeNodePadding:ht,directoryNodeSelectedBg:st,directoryNodeSelectedColor:gt}=Tt;return{[`${et}${et}-directory`]:{[nt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ht,insetInlineStart:0,transition:`background-color ${Tt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Tt.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${Tt.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:gt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:st},[`${et}-switcher`]:{color:gt},[`${et}-node-content-wrapper`]:{color:gt,background:"transparent"}}}}}},we=(Tt,et)=>{const nt=`.${Tt}`,ht=`${nt}-treenode`,st=et.paddingXS/2,gt=(0,Xt.TS)(et,{treeCls:nt,treeNodeCls:ht,treeNodePadding:st});return[ne(Tt,gt),xe(gt)]},Ce=Tt=>{const{controlHeightSM:et}=Tt;return{titleHeight:et,nodeHoverBg:Tt.controlItemBgHover,nodeSelectedBg:Tt.controlItemBgActive}};Cn.ZP=(0,Se.Z)("Tree",(Tt,et)=>{let{prefixCls:nt}=et;return[{[Tt.componentCls]:(0,zt.C2)(`${nt}-checkbox`,Tt)},we(nt,Tt),(0,Me.Z)(Tt)]},Tt=>{const{colorTextLightSolid:et,colorPrimary:nt}=Tt;return Object.assign(Object.assign({},Ce(Tt)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:nt})})},71997:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return ht}});var At=St(96663),zt=St(59301),oe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Me=oe,Xt=St(7657),Se=function(gt,vt){return zt.createElement(Xt.Z,(0,At.Z)({},gt,{ref:vt,icon:Me}))},Nt=zt.forwardRef(Se),Ne=Nt,Pe=St(52671),ne=St(58617),xe=St(15075),we=St(43531),Ce=St(92310),Tt=St.n(Ce),et=St(92343),ht=st=>{const{prefixCls:gt,switcherIcon:vt,treeNodeProps:Pt,showLine:Ft}=st,{isLeaf:wt,expanded:Ot,loading:Ht}=Pt;if(Ht)return zt.createElement(ne.Z,{className:`${gt}-switcher-loading-icon`});let Zt;if(Ft&&typeof Ft=="object"&&(Zt=Ft.showLeafIcon),wt){if(!Ft)return null;if(typeof Zt!="boolean"&&Zt){const Yt=typeof Zt=="function"?Zt(Pt):Zt,Xe=`${gt}-switcher-line-custom-icon`;return(0,et.l$)(Yt)?(0,et.Tm)(Yt,{className:Tt()(Yt.props.className||"",Xe)}):Yt}return Zt?zt.createElement(Pe.Z,{className:`${gt}-switcher-line-icon`}):zt.createElement("span",{className:`${gt}-switcher-leaf-line`})}const Ut=`${gt}-switcher-icon`,fe=typeof vt=="function"?vt(Pt):vt;return(0,et.l$)(fe)?(0,et.Tm)(fe,{className:Tt()(fe.props.className||"",Ut)}):fe!==void 0?fe:Ft?Ot?zt.createElement(xe.Z,{className:`${gt}-switcher-line-icon`}):zt.createElement(we.Z,{className:`${gt}-switcher-line-icon`}):zt.createElement(Ne,{className:Ut})}},54580:function(Bn,Cn,St){"use strict";St.d(Cn,{default:function(){return pn}});var At=St(59301),zt=St(19127),oe=St(92310),Me=St.n(oe),Xt=St(96663),Se=St(52884),Nt=St(95727),Ne=St(65711),Pe=St(85745),ne=St(90493),xe=St(6620),we=St(49581),Ce=St(20135),Tt=St(73324),et=St(26112);function nt(je,hn){var yn="cannot ".concat(je.method," ").concat(je.action," ").concat(hn.status,"'"),dn=new Error(yn);return dn.status=hn.status,dn.method=je.method,dn.url=je.action,dn}function ht(je){var hn=je.responseText||je.response;if(!hn)return hn;try{return JSON.parse(hn)}catch(yn){return hn}}function st(je){var hn=new XMLHttpRequest;je.onProgress&&hn.upload&&(hn.upload.onprogress=function(Ln){Ln.total>0&&(Ln.percent=Ln.loaded/Ln.total*100),je.onProgress(Ln)});var yn=new FormData;je.data&&Object.keys(je.data).forEach(function(kn){var Ln=je.data[kn];if(Array.isArray(Ln)){Ln.forEach(function(Kn){yn.append("".concat(kn,"[]"),Kn)});return}yn.append(kn,Ln)}),je.file instanceof Blob?yn.append(je.filename,je.file,je.file.name):yn.append(je.filename,je.file),hn.onerror=function(Ln){je.onError(Ln)},hn.onload=function(){return hn.status<200||hn.status>=300?je.onError(nt(je,hn),ht(hn)):je.onSuccess(ht(hn),hn)},hn.open(je.method,je.action,!0),je.withCredentials&&"withCredentials"in hn&&(hn.withCredentials=!0);var dn=je.headers||{};return dn["X-Requested-With"]!==null&&hn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(dn).forEach(function(kn){dn[kn]!==null&&hn.setRequestHeader(kn,dn[kn])}),hn.send(yn),{abort:function(){hn.abort()}}}var gt=+new Date,vt=0;function Pt(){return"rc-upload-".concat(gt,"-").concat(++vt)}var Ft=St(48736),wt=function(je,hn){if(je&&hn){var yn=Array.isArray(hn)?hn:hn.split(","),dn=je.name||"",kn=je.type||"",Ln=kn.replace(/\/.*$/,"");return yn.some(function(Kn){var Jn=Kn.trim();if(/^\*(\/\*)?$/.test(Kn))return!0;if(Jn.charAt(0)==="."){var Zi=dn.toLowerCase(),en=Jn.toLowerCase(),qi=[en];return(en===".jpg"||en===".jpeg")&&(qi=[".jpg",".jpeg"]),qi.some(function(Er){return Zi.endsWith(Er)})}return/\/\*$/.test(Jn)?Ln===Jn.replace(/\/.*$/,""):kn===Jn?!0:/^\w+$/.test(Jn)?((0,Ft.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Jn,"'.Skip for check.")),!0):!1})}return!0};function Ot(je,hn){var yn=je.createReader(),dn=[];function kn(){yn.readEntries(function(Ln){var Kn=Array.prototype.slice.apply(Ln);dn=dn.concat(Kn);var Jn=!Kn.length;Jn?hn(dn):kn()})}kn()}var Ht=function(hn,yn,dn){var kn=function Ln(Kn,Jn){Kn&&(Kn.path=Jn||"",Kn.isFile?Kn.file(function(Zi){dn(Zi)&&(Kn.fullPath&&!Zi.webkitRelativePath&&(Object.defineProperties(Zi,{webkitRelativePath:{writable:!0}}),Zi.webkitRelativePath=Kn.fullPath.replace(/^\//,""),Object.defineProperties(Zi,{webkitRelativePath:{writable:!1}})),yn([Zi]))}):Kn.isDirectory&&Ot(Kn,function(Zi){Zi.forEach(function(en){Ln(en,"".concat(Jn).concat(Kn.name,"/"))})}))};hn.forEach(function(Ln){kn(Ln.webkitGetAsEntry())})},Zt=Ht,Ut=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],fe=function(je){(0,Ne.Z)(yn,je);var hn=(0,Pe.Z)(yn);function yn(){var dn;(0,Se.Z)(this,yn);for(var kn=arguments.length,Ln=new Array(kn),Kn=0;Kn<kn;Kn++)Ln[Kn]=arguments[Kn];return dn=hn.call.apply(hn,[this].concat(Ln)),dn.state={uid:Pt()},dn.reqs={},dn.fileInput=void 0,dn._isMounted=void 0,dn.onChange=function(Jn){var Zi=dn.props,en=Zi.accept,qi=Zi.directory,Er=Jn.target.files,nr=(0,zt.Z)(Er).filter(function(sn){return!qi||wt(sn,en)});dn.uploadFiles(nr),dn.reset()},dn.onClick=function(Jn){var Zi=dn.fileInput;if(Zi){var en=Jn.target,qi=dn.props.onClick;if(en&&en.tagName==="BUTTON"){var Er=Zi.parentNode;Er.focus(),en.blur()}Zi.click(),qi&&qi(Jn)}},dn.onKeyDown=function(Jn){Jn.key==="Enter"&&dn.onClick(Jn)},dn.onFileDrop=function(Jn){var Zi=dn.props.multiple;if(Jn.preventDefault(),Jn.type!=="dragover")if(dn.props.directory)Zt(Array.prototype.slice.call(Jn.dataTransfer.items),dn.uploadFiles,function(qi){return wt(qi,dn.props.accept)});else{var en=(0,zt.Z)(Jn.dataTransfer.files).filter(function(qi){return wt(qi,dn.props.accept)});Zi===!1&&(en=en.slice(0,1)),dn.uploadFiles(en)}},dn.uploadFiles=function(Jn){var Zi=(0,zt.Z)(Jn),en=Zi.map(function(qi){return qi.uid=Pt(),dn.processFile(qi,Zi)});Promise.all(en).then(function(qi){var Er=dn.props.onBatchStart;Er==null||Er(qi.map(function(nr){var sn=nr.origin,si=nr.parsedFile;return{file:sn,parsedFile:si}})),qi.filter(function(nr){return nr.parsedFile!==null}).forEach(function(nr){dn.post(nr)})})},dn.processFile=function(){var Jn=(0,Tt.Z)((0,we.Z)().mark(function Zi(en,qi){var Er,nr,sn,si,Ai,Ki,Di,vr,Pr;return(0,we.Z)().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:if(Er=dn.props.beforeUpload,nr=en,!Er){Oi.next=14;break}return Oi.prev=3,Oi.next=6,Er(en,qi);case 6:nr=Oi.sent,Oi.next=12;break;case 9:Oi.prev=9,Oi.t0=Oi.catch(3),nr=!1;case 12:if(nr!==!1){Oi.next=14;break}return Oi.abrupt("return",{origin:en,parsedFile:null,action:null,data:null});case 14:if(sn=dn.props.action,typeof sn!="function"){Oi.next=21;break}return Oi.next=18,sn(en);case 18:si=Oi.sent,Oi.next=22;break;case 21:si=sn;case 22:if(Ai=dn.props.data,typeof Ai!="function"){Oi.next=29;break}return Oi.next=26,Ai(en);case 26:Ki=Oi.sent,Oi.next=30;break;case 29:Ki=Ai;case 30:return Di=((0,Ce.Z)(nr)==="object"||typeof nr=="string")&&nr?nr:en,Di instanceof File?vr=Di:vr=new File([Di],en.name,{type:en.type}),Pr=vr,Pr.uid=en.uid,Oi.abrupt("return",{origin:en,data:Ki,parsedFile:Pr,action:si});case 35:case"end":return Oi.stop()}},Zi,null,[[3,9]])}));return function(Zi,en){return Jn.apply(this,arguments)}}(),dn.saveFileInput=function(Jn){dn.fileInput=Jn},dn}return(0,Nt.Z)(yn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(kn){var Ln=this,Kn=kn.data,Jn=kn.origin,Zi=kn.action,en=kn.parsedFile;if(this._isMounted){var qi=this.props,Er=qi.onStart,nr=qi.customRequest,sn=qi.name,si=qi.headers,Ai=qi.withCredentials,Ki=qi.method,Di=Jn.uid,vr=nr||st,Pr={action:Zi,filename:sn,data:Kn,file:en,headers:si,withCredentials:Ai,method:Ki||"post",onProgress:function(Oi){var Lr=Ln.props.onProgress;Lr==null||Lr(Oi,en)},onSuccess:function(Oi,Lr){var bn=Ln.props.onSuccess;bn==null||bn(Oi,en,Lr),delete Ln.reqs[Di]},onError:function(Oi,Lr){var bn=Ln.props.onError;bn==null||bn(Oi,Lr,en),delete Ln.reqs[Di]}};Er(Jn),this.reqs[Di]=vr(Pr)}}},{key:"reset",value:function(){this.setState({uid:Pt()})}},{key:"abort",value:function(kn){var Ln=this.reqs;if(kn){var Kn=kn.uid?kn.uid:kn;Ln[Kn]&&Ln[Kn].abort&&Ln[Kn].abort(),delete Ln[Kn]}else Object.keys(Ln).forEach(function(Jn){Ln[Jn]&&Ln[Jn].abort&&Ln[Jn].abort(),delete Ln[Jn]})}},{key:"render",value:function(){var kn=this.props,Ln=kn.component,Kn=kn.prefixCls,Jn=kn.className,Zi=kn.disabled,en=kn.id,qi=kn.style,Er=kn.multiple,nr=kn.accept,sn=kn.capture,si=kn.children,Ai=kn.directory,Ki=kn.openFileDialogOnClick,Di=kn.onMouseEnter,vr=kn.onMouseLeave,Pr=(0,xe.Z)(kn,Ut),tr=Me()((0,ne.Z)((0,ne.Z)((0,ne.Z)({},Kn,!0),"".concat(Kn,"-disabled"),Zi),Jn,Jn)),Oi=Ai?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Lr=Zi?{}:{onClick:Ki?this.onClick:function(){},onKeyDown:Ki?this.onKeyDown:function(){},onMouseEnter:Di,onMouseLeave:vr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return At.createElement(Ln,(0,Xt.Z)({},Lr,{className:tr,role:"button",style:qi}),At.createElement("input",(0,Xt.Z)({},(0,et.Z)(Pr,{aria:!0,data:!0}),{id:en,disabled:Zi,type:"file",ref:this.saveFileInput,onClick:function(wo){return wo.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:nr},Oi,{multiple:Er,onChange:this.onChange},sn!=null?{capture:sn}:{})),si)}}]),yn}(At.Component),Yt=fe;function Xe(){}var pe=function(je){(0,Ne.Z)(yn,je);var hn=(0,Pe.Z)(yn);function yn(){var dn;(0,Se.Z)(this,yn);for(var kn=arguments.length,Ln=new Array(kn),Kn=0;Kn<kn;Kn++)Ln[Kn]=arguments[Kn];return dn=hn.call.apply(hn,[this].concat(Ln)),dn.uploader=void 0,dn.saveUploader=function(Jn){dn.uploader=Jn},dn}return(0,Nt.Z)(yn,[{key:"abort",value:function(kn){this.uploader.abort(kn)}},{key:"render",value:function(){return At.createElement(Yt,(0,Xt.Z)({},this.props,{ref:this.saveUploader}))}}]),yn}(At.Component);pe.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Xe,onError:Xe,onSuccess:Xe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var tn=pe,Ve=tn,We=St(18929),_e=St(4676),Tn=St(36355),ye=St(1684),Gt=St(9763),nn=St(31724),Zn={icon:function(hn,yn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:yn}},{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:hn}}]}},name:"file",theme:"twotone"},_n=Zn,Te=St(7657),rn=function(hn,yn){return At.createElement(Te.Z,(0,Xt.Z)({},hn,{ref:yn,icon:_n}))},gn=At.forwardRef(rn),Vn=gn,cn=St(58617),Hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},me=Hn,Un=function(hn,yn){return At.createElement(Te.Z,(0,Xt.Z)({},hn,{ref:yn,icon:me}))},ii=At.forwardRef(Un),xn=ii,ni={icon:function(hn,yn){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:hn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:yn}},{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:yn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:yn}},{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:hn}}]}},name:"picture",theme:"twotone"},ze=ni,Ie=function(hn,yn){return At.createElement(Te.Z,(0,Xt.Z)({},hn,{ref:yn,icon:ze}))},ke=At.forwardRef(Ie),se=ke,$e=St(77900),Ze=St(56762),ee=St(62892),re=St(92343),Bt=St(3113);function xt(je){return Object.assign(Object.assign({},je),{lastModified:je.lastModified,lastModifiedDate:je.lastModifiedDate,name:je.name,size:je.size,type:je.type,uid:je.uid,percent:0,originFileObj:je})}function mt(je,hn){const yn=(0,zt.Z)(hn),dn=yn.findIndex(kn=>{let{uid:Ln}=kn;return Ln===je.uid});return dn===-1?yn.push(je):yn[dn]=je,yn}function kt(je,hn){const yn=je.uid!==void 0?"uid":"name";return hn.filter(dn=>dn[yn]===je[yn])[0]}function jt(je,hn){const yn=je.uid!==void 0?"uid":"name",dn=hn.filter(kn=>kn[yn]!==je[yn]);return dn.length===hn.length?null:dn}const Lt=function(){const hn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),dn=hn[hn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(dn)||[""])[0]},he=je=>je.indexOf("image/")===0,Re=je=>{if(je.type&&!je.thumbUrl)return he(je.type);const hn=je.thumbUrl||je.url||"",yn=Lt(hn);return/^data:image\//.test(hn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(yn)?!0:!(/^data:/.test(hn)||yn)},on=200;function de(je){return new Promise(hn=>{if(!je.type||!he(je.type)){hn("");return}const yn=document.createElement("canvas");yn.width=on,yn.height=on,yn.style.cssText=`position: fixed; left: 0; top: 0; width: ${on}px; height: ${on}px; z-index: 9999; display: none;`,document.body.appendChild(yn);const dn=yn.getContext("2d"),kn=new Image;if(kn.onload=()=>{const{width:Ln,height:Kn}=kn;let Jn=on,Zi=on,en=0,qi=0;Ln>Kn?(Zi=Kn*(on/Ln),qi=-(Zi-Jn)/2):(Jn=Ln*(on/Kn),en=-(Jn-Zi)/2),dn.drawImage(kn,en,qi,Jn,Zi);const Er=yn.toDataURL();document.body.removeChild(yn),window.URL.revokeObjectURL(kn.src),hn(Er)},kn.crossOrigin="anonymous",je.type.startsWith("image/svg+xml")){const Ln=new FileReader;Ln.onload=()=>{Ln.result&&(kn.src=Ln.result)},Ln.readAsDataURL(je)}else if(je.type.startsWith("image/gif")){const Ln=new FileReader;Ln.onload=()=>{Ln.result&&hn(Ln.result)},Ln.readAsDataURL(je)}else kn.src=window.URL.createObjectURL(je)})}var De=St(26227),Ke=St(41464),An=St(15277),Yn=St(93948),gi=St(6848),xi=At.forwardRef((je,hn)=>{let{prefixCls:yn,className:dn,style:kn,locale:Ln,listType:Kn,file:Jn,items:Zi,progress:en,iconRender:qi,actionIconRender:Er,itemRender:nr,isImgUrl:sn,showPreviewIcon:si,showRemoveIcon:Ai,showDownloadIcon:Ki,previewIcon:Di,removeIcon:vr,downloadIcon:Pr,onPreview:tr,onDownload:Oi,onClose:Lr}=je;var bn,wo;const{status:Mn}=Jn,[Or,ea]=At.useState(Mn);At.useEffect(()=>{Mn!=="removed"&&ea(Mn)},[Mn]);const[bo,ca]=At.useState(!1);At.useEffect(()=>{const oa=setTimeout(()=>{ca(!0)},300);return()=>{clearTimeout(oa)}},[]);const qo=qi(Jn);let dr=At.createElement("div",{className:`${yn}-icon`},qo);if(Kn==="picture"||Kn==="picture-card"||Kn==="picture-circle")if(Or==="uploading"||!Jn.thumbUrl&&!Jn.url){const oa=Me()(`${yn}-list-item-thumbnail`,{[`${yn}-list-item-file`]:Or!=="uploading"});dr=At.createElement("div",{className:oa},qo)}else{const oa=sn!=null&&sn(Jn)?At.createElement("img",{src:Jn.thumbUrl||Jn.url,alt:Jn.name,className:`${yn}-list-item-image`,crossOrigin:Jn.crossOrigin}):qo,cr=Me()(`${yn}-list-item-thumbnail`,{[`${yn}-list-item-file`]:sn&&!sn(Jn)});dr=At.createElement("a",{className:cr,onClick:fr=>tr(Jn,fr),href:Jn.url||Jn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},oa)}const er=Me()(`${yn}-list-item`,`${yn}-list-item-${Or}`),eo=typeof Jn.linkProps=="string"?JSON.parse(Jn.linkProps):Jn.linkProps,ko=Ai?Er((typeof vr=="function"?vr(Jn):vr)||At.createElement(De.Z,null),()=>Lr(Jn),yn,Ln.removeFile):null,ki=Ki&&Or==="done"?Er((typeof Pr=="function"?Pr(Jn):Pr)||At.createElement(Ke.Z,null),()=>Oi(Jn),yn,Ln.downloadFile):null,Vt=Kn!=="picture-card"&&Kn!=="picture-circle"&&At.createElement("span",{key:"download-delete",className:Me()(`${yn}-list-item-actions`,{picture:Kn==="picture"})},ki,ko),fo=Me()(`${yn}-list-item-name`),_o=Jn.url?[At.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:fo,title:Jn.name},eo,{href:Jn.url,onClick:oa=>tr(Jn,oa)}),Jn.name),Vt]:[At.createElement("span",{key:"view",className:fo,onClick:oa=>tr(Jn,oa),title:Jn.name},Jn.name),Vt],ro={pointerEvents:"none",opacity:.5},Yo=si?At.createElement("a",{href:Jn.url||Jn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Jn.url||Jn.thumbUrl?void 0:ro,onClick:oa=>tr(Jn,oa),title:Ln.previewFile},typeof Di=="function"?Di(Jn):Di||At.createElement(An.Z,null)):null,ya=(Kn==="picture-card"||Kn==="picture-circle")&&Or!=="uploading"&&At.createElement("span",{className:`${yn}-list-item-actions`},Yo,Or==="done"&&ki,ko),{getPrefixCls:Ar}=At.useContext(Tn.E_),Tr=Ar(),uo=At.createElement("div",{className:er},dr,_o,ya,bo&&At.createElement($e.default,{motionName:`${Tr}-fade`,visible:Or==="uploading",motionDeadline:2e3},oa=>{let{className:cr}=oa;const fr="percent"in Jn?At.createElement(Yn.Z,Object.assign({},en,{type:"line",percent:Jn.percent,"aria-label":Jn["aria-label"],"aria-labelledby":Jn["aria-labelledby"]})):null;return At.createElement("div",{className:Me()(`${yn}-list-item-progress`,cr)},fr)})),$r=Jn.response&&typeof Jn.response=="string"?Jn.response:((bn=Jn.error)===null||bn===void 0?void 0:bn.statusText)||((wo=Jn.error)===null||wo===void 0?void 0:wo.message)||Ln.uploadError,Zo=Or==="error"?At.createElement(gi.Z,{title:$r,getPopupContainer:oa=>oa.parentNode},uo):uo;return At.createElement("div",{className:Me()(`${yn}-list-item-container`,dn),style:kn,ref:hn},nr?nr(Zo,Jn,Zi,{download:Oi.bind(null,Jn),preview:tr.bind(null,Jn),remove:Lr.bind(null,Jn)}):Zo)});const Gi=(je,hn)=>{const{listType:yn="text",previewFile:dn=de,onPreview:kn,onDownload:Ln,onRemove:Kn,locale:Jn,iconRender:Zi,isImageUrl:en=Re,prefixCls:qi,items:Er=[],showPreviewIcon:nr=!0,showRemoveIcon:sn=!0,showDownloadIcon:si=!1,removeIcon:Ai,previewIcon:Ki,downloadIcon:Di,progress:vr={size:[-1,2],showInfo:!1},appendAction:Pr,appendActionVisible:tr=!0,itemRender:Oi,disabled:Lr}=je,bn=(0,Ze.Z)(),[wo,Mn]=At.useState(!1);At.useEffect(()=>{yn!=="picture"&&yn!=="picture-card"&&yn!=="picture-circle"||(Er||[]).forEach(ro=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ro.originFileObj instanceof File||ro.originFileObj instanceof Blob)||ro.thumbUrl!==void 0||(ro.thumbUrl="",dn&&dn(ro.originFileObj).then(Yo=>{ro.thumbUrl=Yo||"",bn()}))})},[yn,Er,dn]),At.useEffect(()=>{Mn(!0)},[]);const Or=(ro,Yo)=>{if(kn)return Yo==null||Yo.preventDefault(),kn(ro)},ea=ro=>{typeof Ln=="function"?Ln(ro):ro.url&&window.open(ro.url)},bo=ro=>{Kn==null||Kn(ro)},ca=ro=>{if(Zi)return Zi(ro,yn);const Yo=ro.status==="uploading",ya=en&&en(ro)?At.createElement(se,null):At.createElement(Vn,null);let Ar=Yo?At.createElement(cn.Z,null):At.createElement(xn,null);return yn==="picture"?Ar=Yo?At.createElement(cn.Z,null):ya:(yn==="picture-card"||yn==="picture-circle")&&(Ar=Yo?Jn.uploading:ya),Ar},qo=(ro,Yo,ya,Ar)=>{const Tr={type:"text",size:"small",title:Ar,onClick:uo=>{Yo(),(0,re.l$)(ro)&&ro.props.onClick&&ro.props.onClick(uo)},className:`${ya}-list-item-action`,disabled:Lr};if((0,re.l$)(ro)){const uo=(0,re.Tm)(ro,Object.assign(Object.assign({},ro.props),{onClick:()=>{}}));return At.createElement(Bt.ZP,Object.assign({},Tr,{icon:uo}))}return At.createElement(Bt.ZP,Object.assign({},Tr),At.createElement("span",null,ro))};At.useImperativeHandle(hn,()=>({handlePreview:Or,handleDownload:ea}));const{getPrefixCls:dr}=At.useContext(Tn.E_),er=dr("upload",qi),eo=dr(),ko=Me()(`${er}-list`,`${er}-list-${yn}`),ki=(0,zt.Z)(Er.map(ro=>({key:ro.uid,file:ro})));let fo={motionDeadline:2e3,motionName:`${er}-${yn==="picture-card"||yn==="picture-circle"?"animate-inline":"animate"}`,keys:ki,motionAppear:wo};const _o=At.useMemo(()=>{const ro=Object.assign({},(0,ee.Z)(eo));return delete ro.onAppearEnd,delete ro.onEnterEnd,delete ro.onLeaveEnd,ro},[eo]);return yn!=="picture-card"&&yn!=="picture-circle"&&(fo=Object.assign(Object.assign({},_o),fo)),At.createElement("div",{className:ko},At.createElement($e.CSSMotionList,Object.assign({},fo,{component:!1}),ro=>{let{key:Yo,file:ya,className:Ar,style:Tr}=ro;return At.createElement(xi,{key:Yo,locale:Jn,prefixCls:er,className:Ar,style:Tr,file:ya,items:Er,progress:vr,listType:yn,isImgUrl:en,showPreviewIcon:nr,showRemoveIcon:sn,showDownloadIcon:si,removeIcon:Ai,previewIcon:Ki,downloadIcon:Di,iconRender:ca,actionIconRender:qo,itemRender:Oi,onPreview:Or,onDownload:ea,onClose:bo})}),Pr&&At.createElement($e.default,Object.assign({},fo,{visible:tr,forceRender:!0}),ro=>{let{className:Yo,style:ya}=ro;return(0,re.Tm)(Pr,Ar=>({className:Me()(Ar.className,Yo),style:Object.assign(Object.assign(Object.assign({},ya),{pointerEvents:Yo?"none":void 0}),Ar.style)}))}))};var lr=At.forwardRef(Gi),rr=St(17313),Rr=St(8378),Nr=St(83116),Ji=St(37613),Xi=je=>{const{componentCls:hn,iconCls:yn}=je;return{[`${hn}-wrapper`]:{[`${hn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:je.colorFillAlter,border:`${je.lineWidth}px dashed ${je.colorBorder}`,borderRadius:je.borderRadiusLG,cursor:"pointer",transition:`border-color ${je.motionDurationSlow}`,[hn]:{padding:`${je.padding}px 0`},[`${hn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${hn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${hn}-disabled):hover`]:{borderColor:je.colorPrimaryHover},[`p${hn}-drag-icon`]:{marginBottom:je.margin,[yn]:{color:je.colorPrimary,fontSize:je.uploadThumbnailSize}},[`p${hn}-text`]:{margin:`0 0 ${je.marginXXS}px`,color:je.colorTextHeading,fontSize:je.fontSizeLG},[`p${hn}-hint`]:{color:je.colorTextDescription,fontSize:je.fontSize},[`&${hn}-disabled`]:{cursor:"not-allowed",[`p${hn}-drag-icon ${yn},
p${hn}-text,
p${hn}-hint
`]:{color:je.colorTextDisabled}}}}}},ai=je=>{const{componentCls:hn,antCls:yn,iconCls:dn,fontSize:kn,lineHeight:Ln}=je,Kn=`${hn}-list-item`,Jn=`${Kn}-actions`,Zi=`${Kn}-action`,en=Math.round(kn*Ln);return{[`${hn}-wrapper`]:{[`${hn}-list`]:Object.assign(Object.assign({},(0,rr.dF)()),{lineHeight:je.lineHeight,[Kn]:{position:"relative",height:je.lineHeight*kn,marginTop:je.marginXS,fontSize:kn,display:"flex",alignItems:"center",transition:`background-color ${je.motionDurationSlow}`,"&:hover":{backgroundColor:je.controlItemBgHover},[`${Kn}-name`]:Object.assign(Object.assign({},rr.vS),{padding:`0 ${je.paddingXS}px`,lineHeight:Ln,flex:"auto",transition:`all ${je.motionDurationSlow}`}),[Jn]:{[Zi]:{opacity:0},[`${Zi}${yn}-btn-sm`]:{height:en,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Zi}:focus-visible,
&.picture ${Zi}
`]:{opacity:1},[dn]:{color:je.actionsColor,transition:`all ${je.motionDurationSlow}`},[`&:hover ${dn}`]:{color:je.colorText}},[`${hn}-icon ${dn}`]:{color:je.colorTextDescription,fontSize:kn},[`${Kn}-progress`]:{position:"absolute",bottom:-je.uploadProgressOffset,width:"100%",paddingInlineStart:kn+je.paddingXS,fontSize:kn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Kn}:hover ${Zi}`]:{opacity:1,color:je.colorText},[`${Kn}-error`]:{color:je.colorError,[`${Kn}-name, ${hn}-icon ${dn}`]:{color:je.colorError},[Jn]:{[`${dn}, ${dn}:hover`]:{color:je.colorError},[Zi]:{opacity:1}}},[`${hn}-list-item-container`]:{transition:`opacity ${je.motionDurationSlow}, height ${je.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},mi=St(93083),hr=St(1950);const wr=new mi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),_i=new mi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Zr=je=>{const{componentCls:hn}=je,yn=`${hn}-animate-inline`;return[{[`${hn}-wrapper`]:{[`${yn}-appear, ${yn}-enter, ${yn}-leave`]:{animationDuration:je.motionDurationSlow,animationTimingFunction:je.motionEaseInOutCirc,animationFillMode:"forwards"},[`${yn}-appear, ${yn}-enter`]:{animationName:wr},[`${yn}-leave`]:{animationName:_i}}},{[`${hn}-wrapper`]:(0,hr.J$)(je)},wr,_i]},xo=St(93398),an=St(64993);const Qe=je=>{const{componentCls:hn,iconCls:yn,uploadThumbnailSize:dn,uploadProgressOffset:kn}=je,Ln=`${hn}-list`,Kn=`${Ln}-item`;return{[`${hn}-wrapper`]:{[`
${Ln}${Ln}-picture,
${Ln}${Ln}-picture-card,
${Ln}${Ln}-picture-circle
`]:{[Kn]:{position:"relative",height:dn+je.lineWidth*2+je.paddingXS*2,padding:je.paddingXS,border:`${je.lineWidth}px ${je.lineType} ${je.colorBorder}`,borderRadius:je.borderRadiusLG,"&:hover":{background:"transparent"},[`${Kn}-thumbnail`]:Object.assign(Object.assign({},rr.vS),{width:dn,height:dn,lineHeight:`${dn+je.paddingSM}px`,textAlign:"center",flex:"none",[yn]:{fontSize:je.fontSizeHeading2,color:je.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Kn}-progress`]:{bottom:kn,width:`calc(100% - ${je.paddingSM*2}px)`,marginTop:0,paddingInlineStart:dn+je.paddingXS}},[`${Kn}-error`]:{borderColor:je.colorError,[`${Kn}-thumbnail ${yn}`]:{[`svg path[fill='${xo.blue[0]}']`]:{fill:je.colorErrorBg},[`svg path[fill='${xo.blue.primary}']`]:{fill:je.colorError}}},[`${Kn}-uploading`]:{borderStyle:"dashed",[`${Kn}-name`]:{marginBottom:kn}}},[`${Ln}${Ln}-picture-circle ${Kn}`]:{[`&, &::before, ${Kn}-thumbnail`]:{borderRadius:"50%"}}}}},Jt=je=>{const{componentCls:hn,iconCls:yn,fontSizeLG:dn,colorTextLightSolid:kn}=je,Ln=`${hn}-list`,Kn=`${Ln}-item`,Jn=je.uploadPicCardSize;return{[`
${hn}-wrapper${hn}-picture-card-wrapper,
${hn}-wrapper${hn}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,rr.dF)()),{display:"inline-block",width:"100%",[`${hn}${hn}-select`]:{width:Jn,height:Jn,marginInlineEnd:je.marginXS,marginBottom:je.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:je.colorFillAlter,border:`${je.lineWidth}px dashed ${je.colorBorder}`,borderRadius:je.borderRadiusLG,cursor:"pointer",transition:`border-color ${je.motionDurationSlow}`,[`> ${hn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${hn}-disabled):hover`]:{borderColor:je.colorPrimary}},[`${Ln}${Ln}-picture-card, ${Ln}${Ln}-picture-circle`]:{[`${Ln}-item-container`]:{display:"inline-block",width:Jn,height:Jn,marginBlock:`0 ${je.marginXS}px`,marginInline:`0 ${je.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Kn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${je.paddingXS*2}px)`,height:`calc(100% - ${je.paddingXS*2}px)`,backgroundColor:je.colorBgMask,opacity:0,transition:`all ${je.motionDurationSlow}`,content:'" "'}},[`${Kn}:hover`]:{[`&::before, ${Kn}-actions`]:{opacity:1}},[`${Kn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${je.motionDurationSlow}`,[`${yn}-eye, ${yn}-download, ${yn}-delete`]:{zIndex:10,width:dn,margin:`0 ${je.marginXXS}px`,fontSize:dn,cursor:"pointer",transition:`all ${je.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Kn}-actions, ${Kn}-actions:hover`]:{[`${yn}-eye, ${yn}-download, ${yn}-delete`]:{color:new an.C(kn).setAlpha(.65).toRgbString(),"&:hover":{color:kn}}},[`${Kn}-thumbnail, ${Kn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Kn}-name`]:{display:"none",textAlign:"center"},[`${Kn}-file + ${Kn}-name`]:{position:"absolute",bottom:je.margin,display:"block",width:`calc(100% - ${je.paddingXS*2}px)`},[`${Kn}-uploading`]:{[`&${Kn}`]:{backgroundColor:je.colorFillAlter},[`&::before, ${yn}-eye, ${yn}-download, ${yn}-delete`]:{display:"none"}},[`${Kn}-progress`]:{bottom:je.marginXL,width:`calc(100% - ${je.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${hn}-wrapper${hn}-picture-circle-wrapper`]:{[`${hn}${hn}-select`]:{borderRadius:"50%"}}}};var On=je=>{const{componentCls:hn}=je;return{[`${hn}-rtl`]:{direction:"rtl"}}};const Ee=je=>{const{componentCls:hn,colorTextDisabled:yn}=je;return{[`${hn}-wrapper`]:Object.assign(Object.assign({},(0,rr.Wf)(je)),{[hn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${hn}-select`]:{display:"inline-block"},[`${hn}-disabled`]:{color:yn,cursor:"not-allowed"}})}};var ce=(0,Nr.Z)("Upload",je=>{const{fontSizeHeading3:hn,fontSize:yn,lineHeight:dn,lineWidth:kn,controlHeightLG:Ln}=je,Kn=Math.round(yn*dn),Jn=(0,Ji.TS)(je,{uploadThumbnailSize:hn*2,uploadProgressOffset:Kn/2+kn,uploadPicCardSize:Ln*2.55});return[Ee(Jn),Xi(Jn),Qe(Jn),Jt(Jn),ai(Jn),Zr(Jn),On(Jn),(0,Rr.Z)(Jn)]},je=>({actionsColor:je.colorTextDescription})),mn=function(je,hn,yn,dn){function kn(Ln){return Ln instanceof yn?Ln:new yn(function(Kn){Kn(Ln)})}return new(yn||(yn=Promise))(function(Ln,Kn){function Jn(qi){try{en(dn.next(qi))}catch(Er){Kn(Er)}}function Zi(qi){try{en(dn.throw(qi))}catch(Er){Kn(Er)}}function en(qi){qi.done?Ln(qi.value):kn(qi.value).then(Jn,Zi)}en((dn=dn.apply(je,hn||[])).next())})};const Wn=`__LIST_IGNORE_${Date.now()}__`,Mi=(je,hn)=>{const{fileList:yn,defaultFileList:dn,onRemove:kn,showUploadList:Ln=!0,listType:Kn="text",onPreview:Jn,onDownload:Zi,onChange:en,onDrop:qi,previewFile:Er,disabled:nr,locale:sn,iconRender:si,isImageUrl:Ai,progress:Ki,prefixCls:Di,className:vr,type:Pr="select",children:tr,style:Oi,itemRender:Lr,maxCount:bn,data:wo={},multiple:Mn=!1,action:Or="",accept:ea="",supportServerRender:bo=!0,rootClassName:ca}=je,qo=At.useContext(ye.Z),dr=nr!=null?nr:qo,[er,eo]=(0,We.Z)(dn||[],{value:yn,postState:$o=>$o!=null?$o:[]}),[ko,ki]=At.useState("drop"),Vt=At.useRef(null);At.useMemo(()=>{const $o=Date.now();(yn||[]).forEach((To,as)=>{!To.uid&&!Object.isFrozen(To)&&(To.uid=`__AUTO__${$o}_${as}__`)})},[yn]);const fo=($o,To,as)=>{let ma=(0,zt.Z)(To),No=!1;bn===1?ma=ma.slice(-1):bn&&(No=ma.length>bn,ma=ma.slice(0,bn)),(0,_e.flushSync)(()=>{eo(ma)});const fa={file:$o,fileList:ma};as&&(fa.event=as),(!No||ma.some(al=>al.uid===$o.uid))&&(0,_e.flushSync)(()=>{en==null||en(fa)})},_o=($o,To)=>mn(void 0,void 0,void 0,function*(){const{beforeUpload:as,transformFile:ma}=je;let No=$o;if(as){const fa=yield as($o,To);if(fa===!1)return!1;if(delete $o[Wn],fa===Wn)return Object.defineProperty($o,Wn,{value:!0,configurable:!0}),!1;typeof fa=="object"&&fa&&(No=fa)}return ma&&(No=yield ma(No)),No}),ro=$o=>{const To=$o.filter(No=>!No.file[Wn]);if(!To.length)return;const as=To.map(No=>xt(No.file));let ma=(0,zt.Z)(er);as.forEach(No=>{ma=mt(No,ma)}),as.forEach((No,fa)=>{let al=No;if(To[fa].parsedFile)No.status="uploading";else{const{originFileObj:Yr}=No;let zo;try{zo=new File([Yr],Yr.name,{type:Yr.type})}catch(Oo){zo=new Blob([Yr],{type:Yr.type}),zo.name=Yr.name,zo.lastModifiedDate=new Date,zo.lastModified=new Date().getTime()}zo.uid=No.uid,al=zo}fo(al,ma)})},Yo=($o,To,as)=>{try{typeof $o=="string"&&($o=JSON.parse($o))}catch(fa){}if(!kt(To,er))return;const ma=xt(To);ma.status="done",ma.percent=100,ma.response=$o,ma.xhr=as;const No=mt(ma,er);fo(ma,No)},ya=($o,To)=>{if(!kt(To,er))return;const as=xt(To);as.status="uploading",as.percent=$o.percent;const ma=mt(as,er);fo(as,ma,$o)},Ar=($o,To,as)=>{if(!kt(as,er))return;const ma=xt(as);ma.error=$o,ma.response=To,ma.status="error";const No=mt(ma,er);fo(ma,No)},Tr=$o=>{let To;Promise.resolve(typeof kn=="function"?kn($o):kn).then(as=>{var ma;if(as===!1)return;const No=jt($o,er);No&&(To=Object.assign(Object.assign({},$o),{status:"removed"}),er==null||er.forEach(fa=>{const al=To.uid!==void 0?"uid":"name";fa[al]===To[al]&&!Object.isFrozen(fa)&&(fa.status="removed")}),(ma=Vt.current)===null||ma===void 0||ma.abort(To),fo(To,No))})},uo=$o=>{ki($o.type),$o.type==="drop"&&(qi==null||qi($o))};At.useImperativeHandle(hn,()=>({onBatchStart:ro,onSuccess:Yo,onProgress:ya,onError:Ar,fileList:er,upload:Vt.current}));const{getPrefixCls:$r,direction:Zo,upload:oa}=At.useContext(Tn.E_),cr=$r("upload",Di),fr=Object.assign(Object.assign({onBatchStart:ro,onError:Ar,onProgress:ya,onSuccess:Yo},je),{data:wo,multiple:Mn,action:Or,accept:ea,supportServerRender:bo,prefixCls:cr,disabled:dr,beforeUpload:_o,onChange:void 0});delete fr.className,delete fr.style,(!tr||dr)&&delete fr.id;const[ri,Mr]=ce(cr),[Io]=(0,Gt.Z)("Upload",nn.Z.Upload),{showRemoveIcon:Ma,showPreviewIcon:Sa,showDownloadIcon:Ta,removeIcon:Ra,previewIcon:Ga,downloadIcon:Vs}=typeof Ln=="boolean"?{}:Ln,us=($o,To)=>Ln?At.createElement(lr,{prefixCls:cr,listType:Kn,items:er,previewFile:Er,onPreview:Jn,onDownload:Zi,onRemove:Tr,showRemoveIcon:!dr&&Ma,showPreviewIcon:Sa,showDownloadIcon:Ta,removeIcon:Ra,previewIcon:Ga,downloadIcon:Vs,iconRender:si,locale:Object.assign(Object.assign({},Io),sn),isImageUrl:Ai,progress:Ki,appendAction:$o,appendActionVisible:To,itemRender:Lr,disabled:dr}):$o,Ys=Me()(`${cr}-wrapper`,vr,ca,Mr,oa==null?void 0:oa.className,{[`${cr}-rtl`]:Zo==="rtl",[`${cr}-picture-card-wrapper`]:Kn==="picture-card",[`${cr}-picture-circle-wrapper`]:Kn==="picture-circle"}),fn=Object.assign(Object.assign({},oa==null?void 0:oa.style),Oi);if(Pr==="drag"){const $o=Me()(Mr,cr,`${cr}-drag`,{[`${cr}-drag-uploading`]:er.some(To=>To.status==="uploading"),[`${cr}-drag-hover`]:ko==="dragover",[`${cr}-disabled`]:dr,[`${cr}-rtl`]:Zo==="rtl"});return ri(At.createElement("span",{className:Ys},At.createElement("div",{className:$o,style:fn,onDrop:uo,onDragOver:uo,onDragLeave:uo},At.createElement(Ve,Object.assign({},fr,{ref:Vt,className:`${cr}-btn`}),At.createElement("div",{className:`${cr}-drag-container`},tr))),us()))}const xs=Me()(cr,`${cr}-select`,{[`${cr}-disabled`]:dr}),El=($o=>At.createElement("div",{className:xs,style:$o},At.createElement(Ve,Object.assign({},fr,{ref:Vt}))))(tr?void 0:{display:"none"});return ri(Kn==="picture-card"||Kn==="picture-circle"?At.createElement("span",{className:Ys},us(El,!!tr)):At.createElement("span",{className:Ys},El,us()))};var ue=At.forwardRef(Mi),Nn=function(je,hn){var yn={};for(var dn in je)Object.prototype.hasOwnProperty.call(je,dn)&&hn.indexOf(dn)<0&&(yn[dn]=je[dn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,dn=Object.getOwnPropertySymbols(je);kn<dn.length;kn++)hn.indexOf(dn[kn])<0&&Object.prototype.propertyIsEnumerable.call(je,dn[kn])&&(yn[dn[kn]]=je[dn[kn]]);return yn},Hi=At.forwardRef((je,hn)=>{var{style:yn,height:dn}=je,kn=Nn(je,["style","height"]);return At.createElement(ue,Object.assign({ref:hn},kn,{type:"drag",style:Object.assign(Object.assign({},yn),{height:dn})}))});const Ge=ue;Ge.Dragger=Hi,Ge.LIST_IGNORE=Wn;var pn=Ge},99498:function(Bn,Cn,St){(function(At){At(St(89780))})(function(At){At.defineOption("placeholder","",function(Ne,Pe,ne){var xe=ne&&ne!=At.Init;if(Pe&&!xe)Ne.on("blur",Xt),Ne.on("change",Se),Ne.on("swapDoc",Se),At.on(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose=function(){Me(Ne)}),Se(Ne);else if(!Pe&&xe){Ne.off("blur",Xt),Ne.off("change",Se),Ne.off("swapDoc",Se),At.off(Ne.getInputField(),"compositionupdate",Ne.state.placeholderCompose),zt(Ne);var we=Ne.getWrapperElement();we.className=we.className.replace(" CodeMirror-empty","")}Pe&&!Ne.hasFocus()&&Xt(Ne)});function zt(Ne){Ne.state.placeholder&&(Ne.state.placeholder.parentNode.removeChild(Ne.state.placeholder),Ne.state.placeholder=null)}function oe(Ne){zt(Ne);var Pe=Ne.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=Ne.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var ne=Ne.getOption("placeholder");typeof ne=="string"&&(ne=document.createTextNode(ne)),Pe.appendChild(ne),Ne.display.lineSpace.insertBefore(Pe,Ne.display.lineSpace.firstChild)}function Me(Ne){setTimeout(function(){var Pe=!1,ne=Ne.getInputField();ne.nodeName=="TEXTAREA"?Pe=!ne.value:Ne.lineCount()==1&&(Pe=!/[^\u200b]/.test(ne.querySelector(".CodeMirror-line").textContent)),Pe?oe(Ne):zt(Ne)},20)}function Xt(Ne){Nt(Ne)&&oe(Ne)}function Se(Ne){var Pe=Ne.getWrapperElement(),ne=Nt(Ne);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(ne?" CodeMirror-empty":""),ne?oe(Ne):zt(Ne)}function Nt(Ne){return Ne.lineCount()===1&&Ne.getLine(0)===""}})},25717:function(Bn,Cn,St){(function(At){At(St(89780))})(function(At){var zt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},oe=At.Pos;At.defineOption("autoCloseBrackets",!1,function(et,nt,ht){ht&&ht!=At.Init&&(et.removeKeyMap(Xt),et.state.closeBrackets=null),nt&&(Se(Me(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(Xt))});function Me(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:zt[nt]}var Xt={Backspace:Pe,Enter:ne};function Se(et){for(var nt=0;nt<et.length;nt++){var ht=et.charAt(nt),st="'"+ht+"'";Xt[st]||(Xt[st]=Nt(ht))}}Se(zt.pairs+"`");function Nt(et){return function(nt){return we(nt,et)}}function Ne(et){var nt=et.state.closeBrackets;if(!nt||nt.override)return nt;var ht=et.getModeAt(et.getCursor());return ht.closeBrackets||nt}function Pe(et){var nt=Ne(et);if(!nt||et.getOption("disableInput"))return At.Pass;for(var ht=Me(nt,"pairs"),st=et.listSelections(),gt=0;gt<st.length;gt++){if(!st[gt].empty())return At.Pass;var vt=Ce(et,st[gt].head);if(!vt||ht.indexOf(vt)%2!=0)return At.Pass}for(var gt=st.length-1;gt>=0;gt--){var Pt=st[gt].head;et.replaceRange("",oe(Pt.line,Pt.ch-1),oe(Pt.line,Pt.ch+1),"+delete")}}function ne(et){var nt=Ne(et),ht=nt&&Me(nt,"explode");if(!ht||et.getOption("disableInput"))return At.Pass;for(var st=et.listSelections(),gt=0;gt<st.length;gt++){if(!st[gt].empty())return At.Pass;var vt=Ce(et,st[gt].head);if(!vt||ht.indexOf(vt)%2!=0)return At.Pass}et.operation(function(){var Pt=et.lineSeparator()||`
`;et.replaceSelection(Pt+Pt,null),et.execCommand("goCharLeft"),st=et.listSelections();for(var Ft=0;Ft<st.length;Ft++){var wt=st[Ft].head.line;et.indentLine(wt,null,!0),et.indentLine(wt+1,null,!0)}})}function xe(et){var nt=At.cmpPos(et.anchor,et.head)>0;return{anchor:new oe(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new oe(et.head.line,et.head.ch+(nt?1:-1))}}function we(et,nt){var ht=Ne(et);if(!ht||et.getOption("disableInput"))return At.Pass;var st=Me(ht,"pairs"),gt=st.indexOf(nt);if(gt==-1)return At.Pass;for(var vt=Me(ht,"closeBefore"),Pt=Me(ht,"triples"),Ft=st.charAt(gt+1)==nt,wt=et.listSelections(),Ot=gt%2==0,Ht,Zt=0;Zt<wt.length;Zt++){var Ut=wt[Zt],fe=Ut.head,Yt,Xe=et.getRange(fe,oe(fe.line,fe.ch+1));if(Ot&&!Ut.empty())Yt="surround";else if((Ft||!Ot)&&Xe==nt)Ft&&Tt(et,fe)?Yt="both":Pt.indexOf(nt)>=0&&et.getRange(fe,oe(fe.line,fe.ch+3))==nt+nt+nt?Yt="skipThree":Yt="skip";else if(Ft&&fe.ch>1&&Pt.indexOf(nt)>=0&&et.getRange(oe(fe.line,fe.ch-2),fe)==nt+nt){if(fe.ch>2&&/\bstring/.test(et.getTokenTypeAt(oe(fe.line,fe.ch-2))))return At.Pass;Yt="addFour"}else if(Ft){var pe=fe.ch==0?" ":et.getRange(oe(fe.line,fe.ch-1),fe);if(!At.isWordChar(Xe)&&pe!=nt&&!At.isWordChar(pe))Yt="both";else return At.Pass}else if(Ot&&(Xe.length===0||/\s/.test(Xe)||vt.indexOf(Xe)>-1))Yt="both";else return At.Pass;if(!Ht)Ht=Yt;else if(Ht!=Yt)return At.Pass}var tn=gt%2?st.charAt(gt-1):nt,Ve=gt%2?nt:st.charAt(gt+1);et.operation(function(){if(Ht=="skip")et.execCommand("goCharRight");else if(Ht=="skipThree")for(var We=0;We<3;We++)et.execCommand("goCharRight");else if(Ht=="surround"){for(var _e=et.getSelections(),We=0;We<_e.length;We++)_e[We]=tn+_e[We]+Ve;et.replaceSelections(_e,"around"),_e=et.listSelections().slice();for(var We=0;We<_e.length;We++)_e[We]=xe(_e[We]);et.setSelections(_e)}else Ht=="both"?(et.replaceSelection(tn+Ve,null),et.triggerElectric(tn+Ve),et.execCommand("goCharLeft")):Ht=="addFour"&&(et.replaceSelection(tn+tn+tn+tn,"before"),et.execCommand("goCharRight"))})}function Ce(et,nt){var ht=et.getRange(oe(nt.line,nt.ch-1),oe(nt.line,nt.ch+1));return ht.length==2?ht:null}function Tt(et,nt){var ht=et.getTokenAt(oe(nt.line,nt.ch+1));return/\bstring/.test(ht.type)&&ht.start==nt.ch&&(nt.ch==0||!/\bstring/.test(et.getTokenTypeAt(nt)))}})},6313:function(Bn,Cn,St){(function(At){At(St(89780),St(32855))})(function(At){At.defineOption("autoCloseTags",!1,function(Pe,ne,xe){if(xe!=At.Init&&xe&&Pe.removeKeyMap("autoCloseTags"),!!ne){var we={name:"autoCloseTags"};(typeof ne!="object"||ne.whenClosing!==!1)&&(we["'/'"]=function(Ce){return Se(Ce)}),(typeof ne!="object"||ne.whenOpening!==!1)&&(we["'>'"]=function(Ce){return Me(Ce)}),Pe.addKeyMap(we)}});var zt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],oe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Me(Pe){if(Pe.getOption("disableInput"))return At.Pass;for(var ne=Pe.listSelections(),xe=[],we=Pe.getOption("autoCloseTags"),Ce=0;Ce<ne.length;Ce++){if(!ne[Ce].empty())return At.Pass;var Tt=ne[Ce].head,et=Pe.getTokenAt(Tt),nt=At.innerMode(Pe.getMode(),et.state),ht=nt.state,st=nt.mode.xmlCurrentTag&&nt.mode.xmlCurrentTag(ht),gt=st&&st.name;if(!gt)return At.Pass;var vt=nt.mode.configuration=="html",Pt=typeof we=="object"&&we.dontCloseTags||vt&&zt,Ft=typeof we=="object"&&we.indentTags||vt&&oe;et.end>Tt.ch&&(gt=gt.slice(0,gt.length-et.end+Tt.ch));var wt=gt.toLowerCase();if(!gt||et.type=="string"&&(et.end!=Tt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&st.close||et.string.indexOf("/")==Tt.ch-et.start-1||Pt&&Nt(Pt,wt)>-1||Ne(Pe,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ht)||[],gt,Tt,!0))return At.Pass;var Ot=typeof we=="object"&&we.emptyTags;if(Ot&&Nt(Ot,gt)>-1){xe[Ce]={text:"/>",newPos:At.Pos(Tt.line,Tt.ch+2)};continue}var Ht=Ft&&Nt(Ft,wt)>-1;xe[Ce]={indent:Ht,text:">"+(Ht?`
`:"")+"</"+gt+">",newPos:Ht?At.Pos(Tt.line+1,0):At.Pos(Tt.line,Tt.ch+1)}}for(var Zt=typeof we=="object"&&we.dontIndentOnAutoClose,Ce=ne.length-1;Ce>=0;Ce--){var Ut=xe[Ce];Pe.replaceRange(Ut.text,ne[Ce].head,ne[Ce].anchor,"+insert");var fe=Pe.listSelections().slice(0);fe[Ce]={head:Ut.newPos,anchor:Ut.newPos},Pe.setSelections(fe),!Zt&&Ut.indent&&(Pe.indentLine(Ut.newPos.line,null,!0),Pe.indentLine(Ut.newPos.line+1,null,!0))}}function Xt(Pe,ne){for(var xe=Pe.listSelections(),we=[],Ce=ne?"/":"</",Tt=Pe.getOption("autoCloseTags"),et=typeof Tt=="object"&&Tt.dontIndentOnSlash,nt=0;nt<xe.length;nt++){if(!xe[nt].empty())return At.Pass;var ht=xe[nt].head,st=Pe.getTokenAt(ht),gt=At.innerMode(Pe.getMode(),st.state),vt=gt.state;if(ne&&(st.type=="string"||st.string.charAt(0)!="<"||st.start!=ht.ch-1))return At.Pass;var Pt,Ft=gt.mode.name!="xml"&&Pe.getMode().name=="htmlmixed";if(Ft&&gt.mode.name=="javascript")Pt=Ce+"script";else if(Ft&&gt.mode.name=="css")Pt=Ce+"style";else{var wt=gt.mode.xmlCurrentContext&&gt.mode.xmlCurrentContext(vt);if(!wt||wt.length&&Ne(Pe,wt,wt[wt.length-1],ht))return At.Pass;Pt=Ce+wt[wt.length-1]}Pe.getLine(ht.line).charAt(st.end)!=">"&&(Pt+=">"),we[nt]=Pt}if(Pe.replaceSelections(we),xe=Pe.listSelections(),!et)for(var nt=0;nt<xe.length;nt++)(nt==xe.length-1||xe[nt].head.line<xe[nt+1].head.line)&&Pe.indentLine(xe[nt].head.line)}function Se(Pe){return Pe.getOption("disableInput")?At.Pass:Xt(Pe,!0)}At.commands.closeTag=function(Pe){return Xt(Pe)};function Nt(Pe,ne){if(Pe.indexOf)return Pe.indexOf(ne);for(var xe=0,we=Pe.length;xe<we;++xe)if(Pe[xe]==ne)return xe;return-1}function Ne(Pe,ne,xe,we,Ce){if(!At.scanForClosingTag)return!1;var Tt=Math.min(Pe.lastLine()+1,we.line+500),et=At.scanForClosingTag(Pe,we,null,Tt);if(!et||et.tag!=xe)return!1;for(var nt=Ce?1:0,ht=ne.length-1;ht>=0&&ne[ht]==xe;ht--)++nt;we=et.to;for(var ht=1;ht<nt;ht++){var st=At.scanForClosingTag(Pe,we,null,Tt);if(!st||st.tag!=xe)return!1;we=st.to}return!0}})},32855:function(Bn,Cn,St){(function(At){At(St(89780))})(function(At){"use strict";var zt=At.Pos;function oe(ht,st){return ht.line-st.line||ht.ch-st.ch}var Me="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",Xt=Me+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Se=new RegExp("<(/?)(["+Me+"]["+Xt+"]*)","g");function Nt(ht,st,gt,vt){this.line=st,this.ch=gt,this.cm=ht,this.text=ht.getLine(st),this.min=vt?Math.max(vt.from,ht.firstLine()):ht.firstLine(),this.max=vt?Math.min(vt.to-1,ht.lastLine()):ht.lastLine()}function Ne(ht,st){var gt=ht.cm.getTokenTypeAt(zt(ht.line,st));return gt&&/\btag\b/.test(gt)}function Pe(ht){if(!(ht.line>=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function ne(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function xe(ht){for(;;){var st=ht.text.indexOf(">",ht.ch);if(st==-1){if(Pe(ht))continue;return}if(!Ne(ht,st+1)){ht.ch=st+1;continue}var gt=ht.text.lastIndexOf("/",st),vt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,st));return ht.ch=st+1,vt?"selfClose":"regular"}}function we(ht){for(;;){var st=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(st==-1){if(ne(ht))continue;return}if(!Ne(ht,st+1)){ht.ch=st;continue}Se.lastIndex=st,ht.ch=st;var gt=Se.exec(ht.text);if(gt&&gt.index==st)return gt}}function Ce(ht){for(;;){Se.lastIndex=ht.ch;var st=Se.exec(ht.text);if(!st){if(Pe(ht))continue;return}if(!Ne(ht,st.index+1)){ht.ch=st.index+1;continue}return ht.ch=st.index+st[0].length,st}}function Tt(ht){for(;;){var st=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(st==-1){if(ne(ht))continue;return}if(!Ne(ht,st+1)){ht.ch=st;continue}var gt=ht.text.lastIndexOf("/",st),vt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,st));return ht.ch=st+1,vt?"selfClose":"regular"}}function et(ht,st){for(var gt=[];;){var vt=Ce(ht),Pt,Ft=ht.line,wt=ht.ch-(vt?vt[0].length:0);if(!vt||!(Pt=xe(ht)))return;if(Pt!="selfClose")if(vt[1]){for(var Ot=gt.length-1;Ot>=0;--Ot)if(gt[Ot]==vt[2]){gt.length=Ot;break}if(Ot<0&&(!st||st==vt[2]))return{tag:vt[2],from:zt(Ft,wt),to:zt(ht.line,ht.ch)}}else gt.push(vt[2])}}function nt(ht,st){for(var gt=[];;){var vt=Tt(ht);if(!vt)return;if(vt=="selfClose"){we(ht);continue}var Pt=ht.line,Ft=ht.ch,wt=we(ht);if(!wt)return;if(wt[1])gt.push(wt[2]);else{for(var Ot=gt.length-1;Ot>=0;--Ot)if(gt[Ot]==wt[2]){gt.length=Ot;break}if(Ot<0&&(!st||st==wt[2]))return{tag:wt[2],from:zt(ht.line,ht.ch),to:zt(Pt,Ft)}}}}At.registerHelper("fold","xml",function(ht,st){for(var gt=new Nt(ht,st.line,0);;){var vt=Ce(gt);if(!vt||gt.line!=st.line)return;var Pt=xe(gt);if(!Pt)return;if(!vt[1]&&Pt!="selfClose"){var Ft=zt(gt.line,gt.ch),wt=et(gt,vt[2]);return wt&&oe(wt.from,Ft)>0?{from:Ft,to:wt.from}:null}}}),At.findMatchingTag=function(ht,st,gt){var vt=new Nt(ht,st.line,st.ch,gt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var Pt=xe(vt),Ft=Pt&&zt(vt.line,vt.ch),wt=Pt&&we(vt);if(!(!Pt||!wt||oe(vt,st)>0)){var Ot={from:zt(vt.line,vt.ch),to:Ft,tag:wt[2]};return Pt=="selfClose"?{open:Ot,close:null,at:"open"}:wt[1]?{open:nt(vt,wt[2]),close:Ot,at:"close"}:(vt=new Nt(ht,Ft.line,Ft.ch,gt),{open:Ot,close:et(vt,wt[2]),at:"open"})}}},At.findEnclosingTag=function(ht,st,gt,vt){for(var Pt=new Nt(ht,st.line,st.ch,gt);;){var Ft=nt(Pt,vt);if(!Ft)break;var wt=new Nt(ht,st.line,st.ch,gt),Ot=et(wt,Ft.tag);if(Ot)return{open:Ft,close:Ot}}},At.scanForClosingTag=function(ht,st,gt,vt){var Pt=new Nt(ht,st.line,st.ch,vt?{from:0,to:vt}:null);return et(Pt,gt)}})},89780:function(Bn){(function(Cn,St){Bn.exports=St()})(this,function(){"use strict";var Cn=navigator.userAgent,St=navigator.platform,At=/gecko\/\d/i.test(Cn),zt=/MSIE \d/.test(Cn),oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cn),Me=/Edge\/(\d+)/.exec(Cn),Xt=zt||oe||Me,Se=Xt&&(zt?document.documentMode||6:+(Me||oe)[1]),Nt=!Me&&/WebKit\//.test(Cn),Ne=Nt&&/Qt\/\d+\.\d+/.test(Cn),Pe=!Me&&/Chrome\//.test(Cn),ne=/Opera\//.test(Cn),xe=/Apple Computer/.test(navigator.vendor),we=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Cn),Ce=/PhantomJS/.test(Cn),Tt=!Me&&/AppleWebKit/.test(Cn)&&/Mobile\/\w+/.test(Cn),et=/Android/.test(Cn),nt=Tt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Cn),ht=Tt||/Mac/.test(St),st=/\bCrOS\b/.test(Cn),gt=/win/i.test(St),vt=ne&&Cn.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(ne=!1,Nt=!0);var Pt=ht&&(Ne||ne&&(vt==null||vt<12.11)),Ft=At||Xt&&Se>=9;function wt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Ot=function(it,at){var ct=it.className,dt=wt(at).exec(ct);if(dt){var pt=ct.slice(dt.index+dt[0].length);it.className=ct.slice(0,dt.index)+(pt?dt[1]+pt:"")}};function Ht(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function Zt(it,at){return Ht(it).appendChild(at)}function Ut(it,at,ct,dt){var pt=document.createElement(it);if(ct&&(pt.className=ct),dt&&(pt.style.cssText=dt),typeof at=="string")pt.appendChild(document.createTextNode(at));else if(at)for(var Mt=0;Mt<at.length;++Mt)pt.appendChild(at[Mt]);return pt}function fe(it,at,ct,dt){var pt=Ut(it,at,ct,dt);return pt.setAttribute("role","presentation"),pt}var Yt;document.createRange?Yt=function(it,at,ct,dt){var pt=document.createRange();return pt.setEnd(dt||it,ct),pt.setStart(it,at),pt}:Yt=function(it,at,ct){var dt=document.body.createTextRange();try{dt.moveToElementText(it.parentNode)}catch(pt){return dt}return dt.collapse(!0),dt.moveEnd("character",ct),dt.moveStart("character",at),dt};function Xe(it,at){if(at.nodeType==3&&(at=at.parentNode),it.contains)return it.contains(at);do if(at.nodeType==11&&(at=at.host),at==it)return!0;while(at=at.parentNode)}function pe(){var it;try{it=document.activeElement}catch(at){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function tn(it,at){var ct=it.className;wt(at).test(ct)||(it.className+=(ct?" ":"")+at)}function Ve(it,at){for(var ct=it.split(" "),dt=0;dt<ct.length;dt++)ct[dt]&&!wt(ct[dt]).test(at)&&(at+=" "+ct[dt]);return at}var We=function(it){it.select()};Tt?We=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Xt&&(We=function(it){try{it.select()}catch(at){}});function _e(it){var at=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,at)}}function Tn(it,at,ct){at||(at={});for(var dt in it)it.hasOwnProperty(dt)&&(ct!==!1||!at.hasOwnProperty(dt))&&(at[dt]=it[dt]);return at}function ye(it,at,ct,dt,pt){at==null&&(at=it.search(/[^\s\u00a0]/),at==-1&&(at=it.length));for(var Mt=dt||0,Rt=pt||0;;){var _t=it.indexOf(" ",Mt);if(_t<0||_t>=at)return Rt+(at-Mt);Rt+=_t-Mt,Rt+=ct-Rt%ct,Mt=_t+1}}var Gt=function(){this.id=null,this.f=null,this.time=0,this.handler=_e(this.onTimeout,this)};Gt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Gt.prototype.set=function(it,at){this.f=at;var ct=+new Date+it;(!this.id||ct<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=ct)};function nn(it,at){for(var ct=0;ct<it.length;++ct)if(it[ct]==at)return ct;return-1}var Zn=50,_n={toString:function(){return"CodeMirror.Pass"}},Te={scroll:!1},rn={origin:"*mouse"},gn={origin:"+move"};function Vn(it,at,ct){for(var dt=0,pt=0;;){var Mt=it.indexOf(" ",dt);Mt==-1&&(Mt=it.length);var Rt=Mt-dt;if(Mt==it.length||pt+Rt>=at)return dt+Math.min(Rt,at-pt);if(pt+=Mt-dt,pt+=ct-pt%ct,dt=Mt+1,pt>=at)return dt}}var cn=[""];function Hn(it){for(;cn.length<=it;)cn.push(me(cn)+" ");return cn[it]}function me(it){return it[it.length-1]}function Un(it,at){for(var ct=[],dt=0;dt<it.length;dt++)ct[dt]=at(it[dt],dt);return ct}function ii(it,at,ct){for(var dt=0,pt=ct(at);dt<it.length&&ct(it[dt])<=pt;)dt++;it.splice(dt,0,at)}function xn(){}function ni(it,at){var ct;return Object.create?ct=Object.create(it):(xn.prototype=it,ct=new xn),at&&Tn(at,ct),ct}var ze=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ie(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||ze.test(it))}function ke(it,at){return at?at.source.indexOf("\\w")>-1&&Ie(it)?!0:at.test(it):Ie(it)}function se(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var $e=/[\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 Ze(it){return it.charCodeAt(0)>=768&&$e.test(it)}function ee(it,at,ct){for(;(ct<0?at>0:at<it.length)&&Ze(it.charAt(at));)at+=ct;return at}function re(it,at,ct){for(var dt=at>ct?-1:1;;){if(at==ct)return at;var pt=(at+ct)/2,Mt=dt<0?Math.ceil(pt):Math.floor(pt);if(Mt==at)return it(Mt)?at:ct;it(Mt)?ct=Mt:at=Mt+dt}}function Bt(it,at,ct,dt){if(!it)return dt(at,ct,"ltr",0);for(var pt=!1,Mt=0;Mt<it.length;++Mt){var Rt=it[Mt];(Rt.from<ct&&Rt.to>at||at==ct&&Rt.to==at)&&(dt(Math.max(Rt.from,at),Math.min(Rt.to,ct),Rt.level==1?"rtl":"ltr",Mt),pt=!0)}pt||dt(at,ct,"ltr")}var xt=null;function mt(it,at,ct){var dt;xt=null;for(var pt=0;pt<it.length;++pt){var Mt=it[pt];if(Mt.from<at&&Mt.to>at)return pt;Mt.to==at&&(Mt.from!=Mt.to&&ct=="before"?dt=pt:xt=pt),Mt.from==at&&(Mt.from!=Mt.to&&ct!="before"?dt=pt:xt=pt)}return dt!=null?dt:xt}var kt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(ve){return ve<=247?it.charAt(ve):1424<=ve&&ve<=1524?"R":1536<=ve&&ve<=1785?at.charAt(ve-1536):1774<=ve&&ve<=2220?"r":8192<=ve&&ve<=8203?"w":ve==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,Mt=/[LRr]/,Rt=/[Lb1n]/,_t=/[1n]/;function $t(ve,ln,Le){this.level=ve,this.from=ln,this.to=Le}return function(ve,ln){var Le=ln=="ltr"?"L":"R";if(ve.length==0||ln=="ltr"&&!dt.test(ve))return!1;for(var zn=ve.length,Dn=[],Ni=0;Ni<zn;++Ni)Dn.push(ct(ve.charCodeAt(Ni)));for(var Bi=0,$i=Le;Bi<zn;++Bi){var br=Dn[Bi];br=="m"?Dn[Bi]=$i:$i=br}for(var io=0,Vr=Le;io<zn;++io){var So=Dn[io];So=="1"&&Vr=="r"?Dn[io]="n":Mt.test(So)&&(Vr=So,So=="r"&&(Dn[io]="R"))}for(var Qo=1,Hr=Dn[0];Qo<zn-1;++Qo){var pa=Dn[Qo];pa=="+"&&Hr=="1"&&Dn[Qo+1]=="1"?Dn[Qo]="1":pa==","&&Hr==Dn[Qo+1]&&(Hr=="1"||Hr=="n")&&(Dn[Qo]=Hr),Hr=pa}for(var Zs=0;Zs<zn;++Zs){var Fl=Dn[Zs];if(Fl==",")Dn[Zs]="N";else if(Fl=="%"){var tl=void 0;for(tl=Zs+1;tl<zn&&Dn[tl]=="%";++tl);for(var Ou=Zs&&Dn[Zs-1]=="!"||tl<zn&&Dn[tl]=="1"?"1":"N",gu=Zs;gu<tl;++gu)Dn[gu]=Ou;Zs=tl-1}}for(var Pl=0,Uu=Le;Pl<zn;++Pl){var eu=Dn[Pl];Uu=="L"&&eu=="1"?Dn[Pl]="L":Mt.test(eu)&&(Uu=eu)}for(var Cl=0;Cl<zn;++Cl)if(pt.test(Dn[Cl])){var _a=void 0;for(_a=Cl+1;_a<zn&&pt.test(Dn[_a]);++_a);for(var il=(Cl?Dn[Cl-1]:Le)=="L",jl=(_a<zn?Dn[_a]:Le)=="L",nu=il==jl?il?"L":"R":Le,Gh=Cl;Gh<_a;++Gh)Dn[Gh]=nu;Cl=_a-1}for(var el=[],Eh,hl=0;hl<zn;)if(Rt.test(Dn[hl])){var Qf=hl;for(++hl;hl<zn&&Rt.test(Dn[hl]);++hl);el.push(new $t(0,Qf,hl))}else{var hh=hl,Xu=el.length,Iu=ln=="rtl"?1:0;for(++hl;hl<zn&&Dn[hl]!="L";++hl);for(var Ns=hh;Ns<hl;)if(_t.test(Dn[Ns])){hh<Ns&&(el.splice(Xu,0,new $t(1,hh,Ns)),Xu+=Iu);var Hl=Ns;for(++Ns;Ns<hl&&_t.test(Dn[Ns]);++Ns);el.splice(Xu,0,new $t(2,Hl,Ns)),Xu+=Iu,hh=Ns}else++Ns;hh<hl&&el.splice(Xu,0,new $t(1,hh,hl))}return ln=="ltr"&&(el[0].level==1&&(Eh=ve.match(/^\s+/))&&(el[0].from=Eh[0].length,el.unshift(new $t(0,0,Eh[0].length))),me(el).level==1&&(Eh=ve.match(/\s+$/))&&(me(el).to-=Eh[0].length,el.push(new $t(0,zn-Eh[0].length,zn)))),ln=="rtl"?el.reverse():el}}();function jt(it,at){var ct=it.order;return ct==null&&(ct=it.order=kt(it.text,at)),ct}var Lt=[],he=function(it,at,ct){if(it.addEventListener)it.addEventListener(at,ct,!1);else if(it.attachEvent)it.attachEvent("on"+at,ct);else{var dt=it._handlers||(it._handlers={});dt[at]=(dt[at]||Lt).concat(ct)}};function Re(it,at){return it._handlers&&it._handlers[at]||Lt}function on(it,at,ct){if(it.removeEventListener)it.removeEventListener(at,ct,!1);else if(it.detachEvent)it.detachEvent("on"+at,ct);else{var dt=it._handlers,pt=dt&&dt[at];if(pt){var Mt=nn(pt,ct);Mt>-1&&(dt[at]=pt.slice(0,Mt).concat(pt.slice(Mt+1)))}}}function de(it,at){var ct=Re(it,at);if(ct.length)for(var dt=Array.prototype.slice.call(arguments,2),pt=0;pt<ct.length;++pt)ct[pt].apply(null,dt)}function De(it,at,ct){return typeof at=="string"&&(at={type:at,preventDefault:function(){this.defaultPrevented=!0}}),de(it,ct||at.type,it,at),xi(at)||at.codemirrorIgnore}function Ke(it){var at=it._handlers&&it._handlers.cursorActivity;if(at)for(var ct=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),dt=0;dt<at.length;++dt)nn(ct,at[dt])==-1&&ct.push(at[dt])}function An(it,at){return Re(it,at).length>0}function Yn(it){it.prototype.on=function(at,ct){he(this,at,ct)},it.prototype.off=function(at,ct){on(this,at,ct)}}function gi(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function fi(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function xi(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Gi(it){gi(it),fi(it)}function yr(it){return it.target||it.srcElement}function lr(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),ht&&it.ctrlKey&&at==1&&(at=3),at}var rr=function(){if(Xt&&Se<9)return!1;var it=Ut("div");return"draggable"in it||"dragDrop"in it}(),Rr;function Nr(it){if(Rr==null){var at=Ut("span","\u200B");Zt(it,Ut("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Rr=at.offsetWidth<=1&&at.offsetHeight>2&&!(Xt&&Se<8))}var ct=Rr?Ut("span","\u200B"):Ut("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var Ji;function Wr(it){if(Ji!=null)return Ji;var at=Zt(it,document.createTextNode("A\u062EA")),ct=Yt(at,0,1).getBoundingClientRect(),dt=Yt(at,1,2).getBoundingClientRect();return Ht(it),!ct||ct.left==ct.right?!1:Ji=dt.right-ct.right<3}var Xi=`
b`.split(/\n/).length!=3?function(it){for(var at=0,ct=[],dt=it.length;at<=dt;){var pt=it.indexOf(`
`,at);pt==-1&&(pt=it.length);var Mt=it.slice(at,it.charAt(pt-1)=="\r"?pt-1:pt),Rt=Mt.indexOf("\r");Rt!=-1?(ct.push(Mt.slice(0,Rt)),at+=Rt+1):(ct.push(Mt),at=pt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},Et=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(at){return!1}}:function(it){var at;try{at=it.ownerDocument.selection.createRange()}catch(ct){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},ai=function(){var it=Ut("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),mi=null;function hr(it){if(mi!=null)return mi;var at=Zt(it,Ut("span","x")),ct=at.getBoundingClientRect(),dt=Yt(at,0,1).getBoundingClientRect();return mi=Math.abs(ct.left-dt.left)>1}var wr={},_i={};function Qr(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),wr[it]=at}function Zr(it,at){_i[it]=at}function xo(it){if(typeof it=="string"&&_i.hasOwnProperty(it))it=_i[it];else if(it&&typeof it.name=="string"&&_i.hasOwnProperty(it.name)){var at=_i[it.name];typeof at=="string"&&(at={name:at}),it=ni(at,it),it.name=at.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return xo("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return xo("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function an(it,at){at=xo(at);var ct=wr[at.name];if(!ct)return an(it,"text/plain");var dt=ct(it,at);if(Qe.hasOwnProperty(at.name)){var pt=Qe[at.name];for(var Mt in pt)pt.hasOwnProperty(Mt)&&(dt.hasOwnProperty(Mt)&&(dt["_"+Mt]=dt[Mt]),dt[Mt]=pt[Mt])}if(dt.name=at.name,at.helperType&&(dt.helperType=at.helperType),at.modeProps)for(var Rt in at.modeProps)dt[Rt]=at.modeProps[Rt];return dt}var Qe={};function Jt(it,at){var ct=Qe.hasOwnProperty(it)?Qe[it]:Qe[it]={};Tn(at,ct)}function un(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var ct={};for(var dt in at){var pt=at[dt];pt instanceof Array&&(pt=pt.concat([])),ct[dt]=pt}return ct}function On(it,at){for(var ct;it.innerMode&&(ct=it.innerMode(at),!(!ct||ct.mode==it));)at=ct.state,it=ct.mode;return ct||{mode:it,state:at}}function Ee(it,at,ct){return it.startState?it.startState(at,ct):!0}var ce=function(it,at,ct){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};ce.prototype.eol=function(){return this.pos>=this.string.length},ce.prototype.sol=function(){return this.pos==this.lineStart},ce.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ce.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ce.prototype.eat=function(it){var at=this.string.charAt(this.pos),ct;if(typeof it=="string"?ct=at==it:ct=at&&(it.test?it.test(at):it(at)),ct)return++this.pos,at},ce.prototype.eatWhile=function(it){for(var at=this.pos;this.eat(it););return this.pos>at},ce.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},ce.prototype.skipToEnd=function(){this.pos=this.string.length},ce.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},ce.prototype.backUp=function(it){this.pos-=it},ce.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},ce.prototype.indentation=function(){return ye(this.string,null,this.tabSize)-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},ce.prototype.match=function(it,at,ct){if(typeof it=="string"){var dt=function(Rt){return ct?Rt.toLowerCase():Rt},pt=this.string.substr(this.pos,it.length);if(dt(pt)==dt(it))return at!==!1&&(this.pos+=it.length),!0}else{var Mt=this.string.slice(this.pos).match(it);return Mt&&Mt.index>0?null:(Mt&&at!==!1&&(this.pos+=Mt[0].length),Mt)}},ce.prototype.current=function(){return this.string.slice(this.start,this.pos)},ce.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},ce.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},ce.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function mn(it,at){if(at-=it.first,at<0||at>=it.size)throw new Error("There is no line "+(at+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var dt=0;;++dt){var pt=ct.children[dt],Mt=pt.chunkSize();if(at<Mt){ct=pt;break}at-=Mt}return ct.lines[at]}function Wn(it,at,ct){var dt=[],pt=at.line;return it.iter(at.line,ct.line+1,function(Mt){var Rt=Mt.text;pt==ct.line&&(Rt=Rt.slice(0,ct.ch)),pt==at.line&&(Rt=Rt.slice(at.ch)),dt.push(Rt),++pt}),dt}function Mi(it,at,ct){var dt=[];return it.iter(at,ct,function(pt){dt.push(pt.text)}),dt}function pi(it,at){var ct=at-it.height;if(ct)for(var dt=it;dt;dt=dt.parent)dt.height+=ct}function ue(it){if(it.parent==null)return null;for(var at=it.parent,ct=nn(at.lines,it),dt=at.parent;dt;at=dt,dt=dt.parent)for(var pt=0;dt.children[pt]!=at;++pt)ct+=dt.children[pt].chunkSize();return ct+at.first}function Nn(it,at){var ct=it.first;t:do{for(var dt=0;dt<it.children.length;++dt){var pt=it.children[dt],Mt=pt.height;if(at<Mt){it=pt;continue t}at-=Mt,ct+=pt.chunkSize()}return ct}while(!it.lines);for(var Rt=0;Rt<it.lines.length;++Rt){var _t=it.lines[Rt],$t=_t.height;if(at<$t)break;at-=$t}return ct+Rt}function ui(it,at){return at>=it.first&&at<it.first+it.size}function Hi(it,at){return String(it.lineNumberFormatter(at+it.firstLineNumber))}function Ge(it,at,ct){if(ct===void 0&&(ct=null),!(this instanceof Ge))return new Ge(it,at,ct);this.line=it,this.ch=at,this.sticky=ct}function pn(it,at){return it.line-at.line||it.ch-at.ch}function je(it,at){return it.sticky==at.sticky&&pn(it,at)==0}function hn(it){return Ge(it.line,it.ch)}function yn(it,at){return pn(it,at)<0?at:it}function dn(it,at){return pn(it,at)<0?it:at}function kn(it,at){return Math.max(it.first,Math.min(at,it.first+it.size-1))}function Ln(it,at){if(at.line<it.first)return Ge(it.first,0);var ct=it.first+it.size-1;return at.line>ct?Ge(ct,mn(it,ct).text.length):Kn(at,mn(it,at.line).text.length)}function Kn(it,at){var ct=it.ch;return ct==null||ct>at?Ge(it.line,at):ct<0?Ge(it.line,0):it}function Jn(it,at){for(var ct=[],dt=0;dt<at.length;dt++)ct[dt]=Ln(it,at[dt]);return ct}var Zi=function(it,at){this.state=it,this.lookAhead=at},en=function(it,at,ct,dt){this.state=at,this.doc=it,this.line=ct,this.maxLookAhead=dt||0,this.baseTokens=null,this.baseTokenPos=1};en.prototype.lookAhead=function(it){var at=this.doc.getLine(this.line+it);return at!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),at},en.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var at=this.baseTokens[this.baseTokenPos+1];return{type:at&&at.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},en.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},en.fromSaved=function(it,at,ct){return at instanceof Zi?new en(it,un(it.mode,at.state),ct,at.lookAhead):new en(it,un(it.mode,at),ct)},en.prototype.save=function(it){var at=it!==!1?un(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Zi(at,this.maxLookAhead):at};function qi(it,at,ct,dt){var pt=[it.state.modeGen],Mt={};Pr(it,at.text,it.doc.mode,ct,function(ve,ln){return pt.push(ve,ln)},Mt,dt);for(var Rt=ct.state,_t=function(ve){ct.baseTokens=pt;var ln=it.state.overlays[ve],Le=1,zn=0;ct.state=!0,Pr(it,at.text,ln.mode,ct,function(Dn,Ni){for(var Bi=Le;zn<Dn;){var $i=pt[Le];$i>Dn&&pt.splice(Le,1,Dn,pt[Le+1],$i),Le+=2,zn=Math.min(Dn,$i)}if(Ni)if(ln.opaque)pt.splice(Bi,Le-Bi,Dn,"overlay "+Ni),Le=Bi+2;else for(;Bi<Le;Bi+=2){var br=pt[Bi+1];pt[Bi+1]=(br?br+" ":"")+"overlay "+Ni}},Mt),ct.state=Rt,ct.baseTokens=null,ct.baseTokenPos=1},$t=0;$t<it.state.overlays.length;++$t)_t($t);return{styles:pt,classes:Mt.bgClass||Mt.textClass?Mt:null}}function Er(it,at,ct){if(!at.styles||at.styles[0]!=it.state.modeGen){var dt=nr(it,ue(at)),pt=at.text.length>it.options.maxHighlightLength&&un(it.doc.mode,dt.state),Mt=qi(it,at,dt);pt&&(dt.state=pt),at.stateAfter=dt.save(!pt),at.styles=Mt.styles,Mt.classes?at.styleClasses=Mt.classes:at.styleClasses&&(at.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function nr(it,at,ct){var dt=it.doc,pt=it.display;if(!dt.mode.startState)return new en(dt,!0,at);var Mt=tr(it,at,ct),Rt=Mt>dt.first&&mn(dt,Mt-1).stateAfter,_t=Rt?en.fromSaved(dt,Rt,Mt):new en(dt,Ee(dt.mode),Mt);return dt.iter(Mt,at,function($t){sn(it,$t.text,_t);var ve=_t.line;$t.stateAfter=ve==at-1||ve%5==0||ve>=pt.viewFrom&&ve<pt.viewTo?_t.save():null,_t.nextLine()}),ct&&(dt.modeFrontier=_t.line),_t}function sn(it,at,ct,dt){var pt=it.doc.mode,Mt=new ce(at,it.options.tabSize,ct);for(Mt.start=Mt.pos=dt||0,at==""&&si(pt,ct.state);!Mt.eol();)Ai(pt,Mt,ct.state),Mt.start=Mt.pos}function si(it,at){if(it.blankLine)return it.blankLine(at);if(it.innerMode){var ct=On(it,at);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function Ai(it,at,ct,dt){for(var pt=0;pt<10;pt++){dt&&(dt[0]=On(it,ct).mode);var Mt=it.token(at,ct);if(at.pos>at.start)return Mt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Ki=function(it,at,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=ct};function Di(it,at,ct,dt){var pt=it.doc,Mt=pt.mode,Rt;at=Ln(pt,at);var _t=mn(pt,at.line),$t=nr(it,at.line,ct),ve=new ce(_t.text,it.options.tabSize,$t),ln;for(dt&&(ln=[]);(dt||ve.pos<at.ch)&&!ve.eol();)ve.start=ve.pos,Rt=Ai(Mt,ve,$t.state),dt&&ln.push(new Ki(ve,Rt,un(pt.mode,$t.state)));return dt?ln:new Ki(ve,Rt,$t.state)}function vr(it,at){if(it)for(;;){var ct=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ct)break;it=it.slice(0,ct.index)+it.slice(ct.index+ct[0].length);var dt=ct[1]?"bgClass":"textClass";at[dt]==null?at[dt]=ct[2]:new RegExp("(?:^|\\s)"+ct[2]+"(?:$|\\s)").test(at[dt])||(at[dt]+=" "+ct[2])}return it}function Pr(it,at,ct,dt,pt,Mt,Rt){var _t=ct.flattenSpans;_t==null&&(_t=it.options.flattenSpans);var $t=0,ve=null,ln=new ce(at,it.options.tabSize,dt),Le,zn=it.options.addModeClass&&[null];for(at==""&&vr(si(ct,dt.state),Mt);!ln.eol();){if(ln.pos>it.options.maxHighlightLength?(_t=!1,Rt&&sn(it,at,dt,ln.pos),ln.pos=at.length,Le=null):Le=vr(Ai(ct,ln,dt.state,zn),Mt),zn){var Dn=zn[0].name;Dn&&(Le="m-"+(Le?Dn+" "+Le:Dn))}if(!_t||ve!=Le){for(;$t<ln.start;)$t=Math.min(ln.start,$t+5e3),pt($t,ve);ve=Le}ln.start=ln.pos}for(;$t<ln.pos;){var Ni=Math.min(ln.pos,$t+5e3);pt(Ni,ve),$t=Ni}}function tr(it,at,ct){for(var dt,pt,Mt=it.doc,Rt=ct?-1:at-(it.doc.mode.innerMode?1e3:100),_t=at;_t>Rt;--_t){if(_t<=Mt.first)return Mt.first;var $t=mn(Mt,_t-1),ve=$t.stateAfter;if(ve&&(!ct||_t+(ve instanceof Zi?ve.lookAhead:0)<=Mt.modeFrontier))return _t;var ln=ye($t.text,null,it.options.tabSize);(pt==null||dt>ln)&&(pt=_t-1,dt=ln)}return pt}function Oi(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontier<at-10)){for(var ct=it.first,dt=at-1;dt>ct;dt--){var pt=mn(it,dt).stateAfter;if(pt&&(!(pt instanceof Zi)||dt+pt.lookAhead<at)){ct=dt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var Lr=!1,bn=!1;function wo(){Lr=!0}function Mn(){bn=!0}function Or(it,at,ct){this.marker=it,this.from=at,this.to=ct}function ea(it,at){if(it)for(var ct=0;ct<it.length;++ct){var dt=it[ct];if(dt.marker==at)return dt}}function bo(it,at){for(var ct,dt=0;dt<it.length;++dt)it[dt]!=at&&(ct||(ct=[])).push(it[dt]);return ct}function ca(it,at){it.markedSpans=it.markedSpans?it.markedSpans.concat([at]):[at],at.marker.attachLine(it)}function qo(it,at,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var Mt=it[pt],Rt=Mt.marker,_t=Mt.from==null||(Rt.inclusiveLeft?Mt.from<=at:Mt.from<at);if(_t||Mt.from==at&&Rt.type=="bookmark"&&(!ct||!Mt.marker.insertLeft)){var $t=Mt.to==null||(Rt.inclusiveRight?Mt.to>=at:Mt.to>at);(dt||(dt=[])).push(new Or(Rt,Mt.from,$t?null:Mt.to))}}return dt}function dr(it,at,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var Mt=it[pt],Rt=Mt.marker,_t=Mt.to==null||(Rt.inclusiveRight?Mt.to>=at:Mt.to>at);if(_t||Mt.from==at&&Rt.type=="bookmark"&&(!ct||Mt.marker.insertLeft)){var $t=Mt.from==null||(Rt.inclusiveLeft?Mt.from<=at:Mt.from<at);(dt||(dt=[])).push(new Or(Rt,$t?null:Mt.from-at,Mt.to==null?null:Mt.to-at))}}return dt}function er(it,at){if(at.full)return null;var ct=ui(it,at.from.line)&&mn(it,at.from.line).markedSpans,dt=ui(it,at.to.line)&&mn(it,at.to.line).markedSpans;if(!ct&&!dt)return null;var pt=at.from.ch,Mt=at.to.ch,Rt=pn(at.from,at.to)==0,_t=qo(ct,pt,Rt),$t=dr(dt,Mt,Rt),ve=at.text.length==1,ln=me(at.text).length+(ve?pt:0);if(_t)for(var Le=0;Le<_t.length;++Le){var zn=_t[Le];if(zn.to==null){var Dn=ea($t,zn.marker);Dn?ve&&(zn.to=Dn.to==null?null:Dn.to+ln):zn.to=pt}}if($t)for(var Ni=0;Ni<$t.length;++Ni){var Bi=$t[Ni];if(Bi.to!=null&&(Bi.to+=ln),Bi.from==null){var $i=ea(_t,Bi.marker);$i||(Bi.from=ln,ve&&(_t||(_t=[])).push(Bi))}else Bi.from+=ln,ve&&(_t||(_t=[])).push(Bi)}_t&&(_t=eo(_t)),$t&&$t!=_t&&($t=eo($t));var br=[_t];if(!ve){var io=at.text.length-2,Vr;if(io>0&&_t)for(var So=0;So<_t.length;++So)_t[So].to==null&&(Vr||(Vr=[])).push(new Or(_t[So].marker,null,null));for(var Qo=0;Qo<io;++Qo)br.push(Vr);br.push($t)}return br}function eo(it){for(var at=0;at<it.length;++at){var ct=it[at];ct.from!=null&&ct.from==ct.to&&ct.marker.clearWhenEmpty!==!1&&it.splice(at--,1)}return it.length?it:null}function ko(it,at,ct){var dt=null;if(it.iter(at.line,ct.line+1,function(Dn){if(Dn.markedSpans)for(var Ni=0;Ni<Dn.markedSpans.length;++Ni){var Bi=Dn.markedSpans[Ni].marker;Bi.readOnly&&(!dt||nn(dt,Bi)==-1)&&(dt||(dt=[])).push(Bi)}}),!dt)return null;for(var pt=[{from:at,to:ct}],Mt=0;Mt<dt.length;++Mt)for(var Rt=dt[Mt],_t=Rt.find(0),$t=0;$t<pt.length;++$t){var ve=pt[$t];if(!(pn(ve.to,_t.from)<0||pn(ve.from,_t.to)>0)){var ln=[$t,1],Le=pn(ve.from,_t.from),zn=pn(ve.to,_t.to);(Le<0||!Rt.inclusiveLeft&&!Le)&&ln.push({from:ve.from,to:_t.from}),(zn>0||!Rt.inclusiveRight&&!zn)&&ln.push({from:_t.to,to:ve.to}),pt.splice.apply(pt,ln),$t+=ln.length-3}}return pt}function ki(it){var at=it.markedSpans;if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.detachLine(it);it.markedSpans=null}}function Vt(it,at){if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.attachLine(it);it.markedSpans=at}}function fo(it){return it.inclusiveLeft?-1:0}function _o(it){return it.inclusiveRight?1:0}function ro(it,at){var ct=it.lines.length-at.lines.length;if(ct!=0)return ct;var dt=it.find(),pt=at.find(),Mt=pn(dt.from,pt.from)||fo(it)-fo(at);if(Mt)return-Mt;var Rt=pn(dt.to,pt.to)||_o(it)-_o(at);return Rt||at.id-it.id}function Yo(it,at){var ct=bn&&it.markedSpans,dt;if(ct)for(var pt=void 0,Mt=0;Mt<ct.length;++Mt)pt=ct[Mt],pt.marker.collapsed&&(at?pt.from:pt.to)==null&&(!dt||ro(dt,pt.marker)<0)&&(dt=pt.marker);return dt}function ya(it){return Yo(it,!0)}function Ar(it){return Yo(it,!1)}function Tr(it,at){var ct=bn&&it.markedSpans,dt;if(ct)for(var pt=0;pt<ct.length;++pt){var Mt=ct[pt];Mt.marker.collapsed&&(Mt.from==null||Mt.from<at)&&(Mt.to==null||Mt.to>at)&&(!dt||ro(dt,Mt.marker)<0)&&(dt=Mt.marker)}return dt}function uo(it,at,ct,dt,pt){var Mt=mn(it,at),Rt=bn&&Mt.markedSpans;if(Rt)for(var _t=0;_t<Rt.length;++_t){var $t=Rt[_t];if($t.marker.collapsed){var ve=$t.marker.find(0),ln=pn(ve.from,ct)||fo($t.marker)-fo(pt),Le=pn(ve.to,dt)||_o($t.marker)-_o(pt);if(!(ln>=0&&Le<=0||ln<=0&&Le>=0)&&(ln<=0&&($t.marker.inclusiveRight&&pt.inclusiveLeft?pn(ve.to,ct)>=0:pn(ve.to,ct)>0)||ln>=0&&($t.marker.inclusiveRight&&pt.inclusiveLeft?pn(ve.from,dt)<=0:pn(ve.from,dt)<0)))return!0}}}function $r(it){for(var at;at=ya(it);)it=at.find(-1,!0).line;return it}function Zo(it){for(var at;at=Ar(it);)it=at.find(1,!0).line;return it}function oa(it){for(var at,ct;at=Ar(it);)it=at.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function cr(it,at){var ct=mn(it,at),dt=$r(ct);return ct==dt?at:ue(dt)}function fr(it,at){if(at>it.lastLine())return at;var ct=mn(it,at),dt;if(!ri(it,ct))return at;for(;dt=Ar(ct);)ct=dt.find(1,!0).line;return ue(ct)+1}function ri(it,at){var ct=bn&&at.markedSpans;if(ct){for(var dt=void 0,pt=0;pt<ct.length;++pt)if(dt=ct[pt],!!dt.marker.collapsed){if(dt.from==null)return!0;if(!dt.marker.widgetNode&&dt.from==0&&dt.marker.inclusiveLeft&&Mr(it,at,dt))return!0}}}function Mr(it,at,ct){if(ct.to==null){var dt=ct.marker.find(1,!0);return Mr(it,dt.line,ea(dt.line.markedSpans,ct.marker))}if(ct.marker.inclusiveRight&&ct.to==at.text.length)return!0;for(var pt=void 0,Mt=0;Mt<at.markedSpans.length;++Mt)if(pt=at.markedSpans[Mt],pt.marker.collapsed&&!pt.marker.widgetNode&&pt.from==ct.to&&(pt.to==null||pt.to!=ct.from)&&(pt.marker.inclusiveLeft||ct.marker.inclusiveRight)&&Mr(it,at,pt))return!0}function Io(it){it=$r(it);for(var at=0,ct=it.parent,dt=0;dt<ct.lines.length;++dt){var pt=ct.lines[dt];if(pt==it)break;at+=pt.height}for(var Mt=ct.parent;Mt;ct=Mt,Mt=ct.parent)for(var Rt=0;Rt<Mt.children.length;++Rt){var _t=Mt.children[Rt];if(_t==ct)break;at+=_t.height}return at}function Ma(it){if(it.height==0)return 0;for(var at=it.text.length,ct,dt=it;ct=ya(dt);){var pt=ct.find(0,!0);dt=pt.from.line,at+=pt.from.ch-pt.to.ch}for(dt=it;ct=Ar(dt);){var Mt=ct.find(0,!0);at-=dt.text.length-Mt.from.ch,dt=Mt.to.line,at+=dt.text.length-Mt.to.ch}return at}function Sa(it){var at=it.display,ct=it.doc;at.maxLine=mn(ct,ct.first),at.maxLineLength=Ma(at.maxLine),at.maxLineChanged=!0,ct.iter(function(dt){var pt=Ma(dt);pt>at.maxLineLength&&(at.maxLineLength=pt,at.maxLine=dt)})}var Ta=function(it,at,ct){this.text=it,Vt(this,at),this.height=ct?ct(this):1};Ta.prototype.lineNo=function(){return ue(this)},Yn(Ta);function Ra(it,at,ct,dt){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),ki(it),Vt(it,ct);var pt=dt?dt(it):1;pt!=it.height&&pi(it,pt)}function Ga(it){it.parent=null,ki(it)}var Vs={},us={};function Ys(it,at){if(!it||/^\s*$/.test(it))return null;var ct=at.addModeClass?us:Vs;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function fn(it,at){var ct=fe("span",null,null,Nt?"padding-right: .1px":null),dt={pre:fe("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};at.measure={};for(var pt=0;pt<=(at.rest?at.rest.length:0);pt++){var Mt=pt?at.rest[pt-1]:at.line,Rt=void 0;dt.pos=0,dt.addToken=yh,Wr(it.display.measure)&&(Rt=jt(Mt,it.doc.direction))&&(dt.addToken=$o(dt.addToken,Rt)),dt.map=[];var _t=at!=it.display.externalMeasured&&ue(Mt);as(Mt,dt,Er(it,Mt,_t)),Mt.styleClasses&&(Mt.styleClasses.bgClass&&(dt.bgClass=Ve(Mt.styleClasses.bgClass,dt.bgClass||"")),Mt.styleClasses.textClass&&(dt.textClass=Ve(Mt.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(Nr(it.display.measure))),pt==0?(at.measure.map=dt.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(dt.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(Nt){var $t=dt.content.lastChild;(/\bcm-tab\b/.test($t.className)||$t.querySelector&&$t.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return de(it,"renderLine",it,at.line,dt.pre),dt.pre.className&&(dt.textClass=Ve(dt.pre.className,dt.textClass||"")),dt}function xs(it){var at=Ut("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function yh(it,at,ct,dt,pt,Mt,Rt){if(at){var _t=it.splitSpaces?El(at,it.trailingSpace):at,$t=it.cm.state.specialChars,ve=!1,ln;if(!$t.test(at))it.col+=at.length,ln=document.createTextNode(_t),it.map.push(it.pos,it.pos+at.length,ln),Xt&&Se<9&&(ve=!0),it.pos+=at.length;else{ln=document.createDocumentFragment();for(var Le=0;;){$t.lastIndex=Le;var zn=$t.exec(at),Dn=zn?zn.index-Le:at.length-Le;if(Dn){var Ni=document.createTextNode(_t.slice(Le,Le+Dn));Xt&&Se<9?ln.appendChild(Ut("span",[Ni])):ln.appendChild(Ni),it.map.push(it.pos,it.pos+Dn,Ni),it.col+=Dn,it.pos+=Dn}if(!zn)break;Le+=Dn+1;var Bi=void 0;if(zn[0]==" "){var $i=it.cm.options.tabSize,br=$i-it.col%$i;Bi=ln.appendChild(Ut("span",Hn(br),"cm-tab")),Bi.setAttribute("role","presentation"),Bi.setAttribute("cm-text"," "),it.col+=br}else zn[0]=="\r"||zn[0]==`
`?(Bi=ln.appendChild(Ut("span",zn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bi.setAttribute("cm-text",zn[0]),it.col+=1):(Bi=it.cm.options.specialCharPlaceholder(zn[0]),Bi.setAttribute("cm-text",zn[0]),Xt&&Se<9?ln.appendChild(Ut("span",[Bi])):ln.appendChild(Bi),it.col+=1);it.map.push(it.pos,it.pos+1,Bi),it.pos++}}if(it.trailingSpace=_t.charCodeAt(at.length-1)==32,ct||dt||pt||ve||Mt||Rt){var io=ct||"";dt&&(io+=dt),pt&&(io+=pt);var Vr=Ut("span",[ln],io,Mt);if(Rt)for(var So in Rt)Rt.hasOwnProperty(So)&&So!="style"&&So!="class"&&Vr.setAttribute(So,Rt[So]);return it.content.appendChild(Vr)}it.content.appendChild(ln)}}function El(it,at){if(it.length>1&&!/ /.test(it))return it;for(var ct=at,dt="",pt=0;pt<it.length;pt++){var Mt=it.charAt(pt);Mt==" "&&ct&&(pt==it.length-1||it.charCodeAt(pt+1)==32)&&(Mt="\xA0"),dt+=Mt,ct=Mt==" "}return dt}function $o(it,at){return function(ct,dt,pt,Mt,Rt,_t,$t){pt=pt?pt+" cm-force-border":"cm-force-border";for(var ve=ct.pos,ln=ve+dt.length;;){for(var Le=void 0,zn=0;zn<at.length&&(Le=at[zn],!(Le.to>ve&&Le.from<=ve));zn++);if(Le.to>=ln)return it(ct,dt,pt,Mt,Rt,_t,$t);it(ct,dt.slice(0,Le.to-ve),pt,Mt,null,_t,$t),Mt=null,dt=dt.slice(Le.to-ve),ve=Le.to}}}function To(it,at,ct,dt){var pt=!dt&&ct.widgetNode;pt&&it.map.push(it.pos,it.pos+at,pt),!dt&&it.cm.display.input.needsContentAttribute&&(pt||(pt=it.content.appendChild(document.createElement("span"))),pt.setAttribute("cm-marker",ct.id)),pt&&(it.cm.display.input.setUneditable(pt),it.content.appendChild(pt)),it.pos+=at,it.trailingSpace=!1}function as(it,at,ct){var dt=it.markedSpans,pt=it.text,Mt=0;if(!dt){for(var Rt=1;Rt<ct.length;Rt+=2)at.addToken(at,pt.slice(Mt,Mt=ct[Rt]),Ys(ct[Rt+1],at.cm.options));return}for(var _t=pt.length,$t=0,ve=1,ln="",Le,zn,Dn=0,Ni,Bi,$i,br,io;;){if(Dn==$t){Ni=Bi=$i=zn="",io=null,br=null,Dn=1/0;for(var Vr=[],So=void 0,Qo=0;Qo<dt.length;++Qo){var Hr=dt[Qo],pa=Hr.marker;if(pa.type=="bookmark"&&Hr.from==$t&&pa.widgetNode)Vr.push(pa);else if(Hr.from<=$t&&(Hr.to==null||Hr.to>$t||pa.collapsed&&Hr.to==$t&&Hr.from==$t)){if(Hr.to!=null&&Hr.to!=$t&&Dn>Hr.to&&(Dn=Hr.to,Bi=""),pa.className&&(Ni+=" "+pa.className),pa.css&&(zn=(zn?zn+";":"")+pa.css),pa.startStyle&&Hr.from==$t&&($i+=" "+pa.startStyle),pa.endStyle&&Hr.to==Dn&&(So||(So=[])).push(pa.endStyle,Hr.to),pa.title&&((io||(io={})).title=pa.title),pa.attributes)for(var Zs in pa.attributes)(io||(io={}))[Zs]=pa.attributes[Zs];pa.collapsed&&(!br||ro(br.marker,pa)<0)&&(br=Hr)}else Hr.from>$t&&Dn>Hr.from&&(Dn=Hr.from)}if(So)for(var Fl=0;Fl<So.length;Fl+=2)So[Fl+1]==Dn&&(Bi+=" "+So[Fl]);if(!br||br.from==$t)for(var tl=0;tl<Vr.length;++tl)To(at,0,Vr[tl]);if(br&&(br.from||0)==$t){if(To(at,(br.to==null?_t+1:br.to)-$t,br.marker,br.from==null),br.to==null)return;br.to==$t&&(br=!1)}}if($t>=_t)break;for(var Ou=Math.min(_t,Dn);;){if(ln){var gu=$t+ln.length;if(!br){var Pl=gu>Ou?ln.slice(0,Ou-$t):ln;at.addToken(at,Pl,Le?Le+Ni:Ni,$i,$t+Pl.length==Dn?Bi:"",zn,io)}if(gu>=Ou){ln=ln.slice(Ou-$t),$t=Ou;break}$t=gu,$i=""}ln=pt.slice(Mt,Mt=ct[ve++]),Le=Ys(ct[ve++],at.cm.options)}}}function ma(it,at,ct){this.line=at,this.rest=oa(at),this.size=this.rest?ue(me(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=ri(it,at)}function No(it,at,ct){for(var dt=[],pt,Mt=at;Mt<ct;Mt=pt){var Rt=new ma(it.doc,mn(it.doc,Mt),Mt);pt=Mt+Rt.size,dt.push(Rt)}return dt}var fa=null;function al(it){fa?fa.ops.push(it):it.ownsGroup=fa={ops:[it],delayedCallbacks:[]}}function Yr(it){var at=it.delayedCallbacks,ct=0;do{for(;ct<at.length;ct++)at[ct].call(null);for(var dt=0;dt<it.ops.length;dt++){var pt=it.ops[dt];if(pt.cursorActivityHandlers)for(;pt.cursorActivityCalled<pt.cursorActivityHandlers.length;)pt.cursorActivityHandlers[pt.cursorActivityCalled++].call(null,pt.cm)}}while(ct<at.length)}function zo(it,at){var ct=it.ownsGroup;if(ct)try{Yr(ct)}finally{fa=null,at(ct)}}var Oo=null;function zi(it,at){var ct=Re(it,at);if(ct.length){var dt=Array.prototype.slice.call(arguments,2),pt;fa?pt=fa.delayedCallbacks:Oo?pt=Oo:(pt=Oo=[],setTimeout(gs,0));for(var Mt=function(_t){pt.push(function(){return ct[_t].apply(null,dt)})},Rt=0;Rt<ct.length;++Rt)Mt(Rt)}}function gs(){var it=Oo;Oo=null;for(var at=0;at<it.length;++at)it[at]()}function ws(it,at,ct,dt){for(var pt=0;pt<at.changes.length;pt++){var Mt=at.changes[pt];Mt=="text"?Fi(it,at):Mt=="gutter"?Ls(it,at,ct,dt):Mt=="class"?Ua(it,at):Mt=="widget"&&Ql(it,at,dt)}at.changes=null}function dl(it){return it.node==it.text&&(it.node=Ut("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Xt&&Se<8&&(it.node.style.zIndex=2)),it.node}function su(it,at){var ct=at.bgClass?at.bgClass+" "+(at.line.bgClass||""):at.line.bgClass;if(ct&&(ct+=" CodeMirror-linebackground"),at.background)ct?at.background.className=ct:(at.background.parentNode.removeChild(at.background),at.background=null);else if(ct){var dt=dl(at);at.background=dt.insertBefore(Ut("div",null,ct),dt.firstChild),it.display.input.setUneditable(at.background)}}function xu(it,at){var ct=it.display.externalMeasured;return ct&&ct.line==at.line?(it.display.externalMeasured=null,at.measure=ct.measure,ct.built):fn(it,at)}function Fi(it,at){var ct=at.text.className,dt=xu(it,at);at.text==at.node&&(at.node=dt.pre),at.text.parentNode.replaceChild(dt.pre,at.text),at.text=dt.pre,dt.bgClass!=at.bgClass||dt.textClass!=at.textClass?(at.bgClass=dt.bgClass,at.textClass=dt.textClass,Ua(it,at)):ct&&(at.text.className=ct)}function Ua(it,at){su(it,at),at.line.wrapClass?dl(at).className=at.line.wrapClass:at.node!=at.text&&(at.node.className="");var ct=at.textClass?at.textClass+" "+(at.line.textClass||""):at.line.textClass;at.text.className=ct||""}function Ls(it,at,ct,dt){if(at.gutter&&(at.node.removeChild(at.gutter),at.gutter=null),at.gutterBackground&&(at.node.removeChild(at.gutterBackground),at.gutterBackground=null),at.line.gutterClass){var pt=dl(at);at.gutterBackground=Ut("div",null,"CodeMirror-gutter-background "+at.line.gutterClass,"left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px; width: "+dt.gutterTotalWidth+"px"),it.display.input.setUneditable(at.gutterBackground),pt.insertBefore(at.gutterBackground,at.text)}var Mt=at.line.gutterMarkers;if(it.options.lineNumbers||Mt){var Rt=dl(at),_t=at.gutter=Ut("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(_t),Rt.insertBefore(_t,at.text),at.line.gutterClass&&(_t.className+=" "+at.line.gutterClass),it.options.lineNumbers&&(!Mt||!Mt["CodeMirror-linenumbers"])&&(at.lineNumber=_t.appendChild(Ut("div",Hi(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+dt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Mt)for(var $t=0;$t<it.display.gutterSpecs.length;++$t){var ve=it.display.gutterSpecs[$t].className,ln=Mt.hasOwnProperty(ve)&&Mt[ve];ln&&_t.appendChild(Ut("div",[ln],"CodeMirror-gutter-elt","left: "+dt.gutterLeft[ve]+"px; width: "+dt.gutterWidth[ve]+"px"))}}}function Ql(it,at,ct){at.alignable&&(at.alignable=null);for(var dt=wt("CodeMirror-linewidget"),pt=at.node.firstChild,Mt=void 0;pt;pt=Mt)Mt=pt.nextSibling,dt.test(pt.className)&&at.node.removeChild(pt);uu(it,at,ct)}function lu(it,at,ct,dt){var pt=xu(it,at);return at.text=at.node=pt.pre,pt.bgClass&&(at.bgClass=pt.bgClass),pt.textClass&&(at.textClass=pt.textClass),Ua(it,at),Ls(it,at,ct,dt),uu(it,at,dt),at.node}function uu(it,at,ct){if(so(it,at.line,at,ct,!0),at.rest)for(var dt=0;dt<at.rest.length;dt++)so(it,at.rest[dt],at,ct,!1)}function so(it,at,ct,dt,pt){if(at.widgets)for(var Mt=dl(ct),Rt=0,_t=at.widgets;Rt<_t.length;++Rt){var $t=_t[Rt],ve=Ut("div",[$t.node],"CodeMirror-linewidget"+($t.className?" "+$t.className:""));$t.handleMouseEvents||ve.setAttribute("cm-ignore-events","true"),Sh($t,ve,ct,dt),it.display.input.setUneditable(ve),pt&&$t.above?Mt.insertBefore(ve,ct.gutter||ct.text):Mt.appendChild(ve),zi($t,"redraw")}}function Sh(it,at,ct,dt){if(it.noHScroll){(ct.alignable||(ct.alignable=[])).push(at);var pt=dt.wrapperWidth;at.style.left=dt.fixedPos+"px",it.coverGutter||(pt-=dt.gutterTotalWidth,at.style.paddingLeft=dt.gutterTotalWidth+"px"),at.style.width=pt+"px"}it.coverGutter&&(at.style.zIndex=5,at.style.position="relative",it.noHScroll||(at.style.marginLeft=-dt.gutterTotalWidth+"px"))}function Ll(it){if(it.height!=null)return it.height;var at=it.doc.cm;if(!at)return 0;if(!Xe(document.body,it.node)){var ct="position: relative;";it.coverGutter&&(ct+="margin-left: -"+at.display.gutters.offsetWidth+"px;"),it.noHScroll&&(ct+="width: "+at.display.wrapper.clientWidth+"px;"),Zt(at.display.measure,Ut("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function Ml(it,at){for(var ct=yr(at);ct!=it.wrapper;ct=ct.parentNode)if(!ct||ct.nodeType==1&&ct.getAttribute("cm-ignore-events")=="true"||ct.parentNode==it.sizer&&ct!=it.mover)return!0}function ml(it){return it.lineSpace.offsetTop}function Wu(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function wu(it){if(it.cachedPaddingH)return it.cachedPaddingH;var at=Zt(it.measure,Ut("pre","x","CodeMirror-line-like")),ct=window.getComputedStyle?window.getComputedStyle(at):at.currentStyle,dt={left:parseInt(ct.paddingLeft),right:parseInt(ct.paddingRight)};return!isNaN(dt.left)&&!isNaN(dt.right)&&(it.cachedPaddingH=dt),dt}function vl(it){return Zn-it.display.nativeBarWidth}function Al(it){return it.display.scroller.clientWidth-vl(it)-it.display.barWidth}function Bh(it){return it.display.scroller.clientHeight-vl(it)-it.display.barHeight}function _h(it,at,ct){var dt=it.options.lineWrapping,pt=dt&&Al(it);if(!at.measure.heights||dt&&at.measure.width!=pt){var Mt=at.measure.heights=[];if(dt){at.measure.width=pt;for(var Rt=at.text.firstChild.getClientRects(),_t=0;_t<Rt.length-1;_t++){var $t=Rt[_t],ve=Rt[_t+1];Math.abs($t.bottom-ve.bottom)>2&&Mt.push(($t.bottom+ve.top)/2-ct.top)}}Mt.push(ct.bottom-ct.top)}}function Oh(it,at,ct){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var dt=0;dt<it.rest.length;dt++)if(it.rest[dt]==at)return{map:it.measure.maps[dt],cache:it.measure.caches[dt]};for(var pt=0;pt<it.rest.length;pt++)if(ue(it.rest[pt])>ct)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function gd(it,at){at=$r(at);var ct=ue(at),dt=it.display.externalMeasured=new ma(it.doc,at,ct);dt.lineN=ct;var pt=dt.built=fn(it,dt);return dt.text=pt.pre,Zt(it.display.lineMeasure,pt.pre),dt}function Ih(it,at,ct,dt){return Ol(it,Bl(it,at),ct,dt)}function Zu(it,at){if(at>=it.display.viewFrom&&at<it.display.viewTo)return it.display.view[yl(it,at)];var ct=it.display.externalMeasured;if(ct&&at>=ct.lineN&&at<ct.lineN+ct.size)return ct}function Bl(it,at){var ct=ue(at),dt=Zu(it,ct);dt&&!dt.text?dt=null:dt&&dt.changes&&(ws(it,dt,ct,oc(it)),it.curOp.forceUpdate=!0),dt||(dt=gd(it,at));var pt=Oh(dt,at,ct);return{line:at,view:dt,rect:null,map:pt.map,cache:pt.cache,before:pt.before,hasHeights:!1}}function Ol(it,at,ct,dt,pt){at.before&&(ct=-1);var Mt=ct+(dt||""),Rt;return at.cache.hasOwnProperty(Mt)?Rt=at.cache[Mt]:(at.rect||(at.rect=at.view.text.getBoundingClientRect()),at.hasHeights||(_h(it,at.view,at.rect),at.hasHeights=!0),Rt=Bo(it,at,ct,dt),Rt.bogus||(at.cache[Mt]=Rt)),{left:Rt.left,right:Rt.right,top:pt?Rt.rtop:Rt.top,bottom:pt?Rt.rbottom:Rt.bottom}}var pd={left:0,right:0,top:0,bottom:0};function td(it,at,ct){for(var dt,pt,Mt,Rt,_t,$t,ve=0;ve<it.length;ve+=3)if(_t=it[ve],$t=it[ve+1],at<_t?(pt=0,Mt=1,Rt="left"):at<$t?(pt=at-_t,Mt=pt+1):(ve==it.length-3||at==$t&&it[ve+3]>at)&&(Mt=$t-_t,pt=Mt-1,at>=$t&&(Rt="right")),pt!=null){if(dt=it[ve+2],_t==$t&&ct==(dt.insertLeft?"left":"right")&&(Rt=ct),ct=="left"&&pt==0)for(;ve&&it[ve-2]==it[ve-3]&&it[ve-1].insertLeft;)dt=it[(ve-=3)+2],Rt="left";if(ct=="right"&&pt==$t-_t)for(;ve<it.length-3&&it[ve+3]==it[ve+4]&&!it[ve+5].insertLeft;)dt=it[(ve+=3)+2],Rt="right";break}return{node:dt,start:pt,end:Mt,collapse:Rt,coverStart:_t,coverEnd:$t}}function Pu(it,at){var ct=pd;if(at=="left")for(var dt=0;dt<it.length&&(ct=it[dt]).left==ct.right;dt++);else for(var pt=it.length-1;pt>=0&&(ct=it[pt]).left==ct.right;pt--);return ct}function Bo(it,at,ct,dt){var pt=td(at.map,ct,dt),Mt=pt.node,Rt=pt.start,_t=pt.end,$t=pt.collapse,ve;if(Mt.nodeType==3){for(var ln=0;ln<4;ln++){for(;Rt&&Ze(at.line.text.charAt(pt.coverStart+Rt));)--Rt;for(;pt.coverStart+_t<pt.coverEnd&&Ze(at.line.text.charAt(pt.coverStart+_t));)++_t;if(Xt&&Se<9&&Rt==0&&_t==pt.coverEnd-pt.coverStart?ve=Mt.parentNode.getBoundingClientRect():ve=Pu(Yt(Mt,Rt,_t).getClientRects(),dt),ve.left||ve.right||Rt==0)break;_t=Rt,Rt=Rt-1,$t="right"}Xt&&Se<11&&(ve=da(it.display.measure,ve))}else{Rt>0&&($t=dt="right");var Le;it.options.lineWrapping&&(Le=Mt.getClientRects()).length>1?ve=Le[dt=="right"?Le.length-1:0]:ve=Mt.getBoundingClientRect()}if(Xt&&Se<9&&!Rt&&(!ve||!ve.left&&!ve.right)){var zn=Mt.parentNode.getClientRects()[0];zn?ve={left:zn.left,right:zn.left+xh(it.display),top:zn.top,bottom:zn.bottom}:ve=pd}for(var Dn=ve.top-at.rect.top,Ni=ve.bottom-at.rect.top,Bi=(Dn+Ni)/2,$i=at.view.measure.heights,br=0;br<$i.length-1&&!(Bi<$i[br]);br++);var io=br?$i[br-1]:0,Vr=$i[br],So={left:($t=="right"?ve.right:ve.left)-at.rect.left,right:($t=="left"?ve.left:ve.right)-at.rect.left,top:io,bottom:Vr};return!ve.left&&!ve.right&&(So.bogus=!0),it.options.singleCursorHeightPerLine||(So.rtop=Dn,So.rbottom=Ni),So}function da(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!hr(it))return at;var ct=screen.logicalXDPI/screen.deviceXDPI,dt=screen.logicalYDPI/screen.deviceYDPI;return{left:at.left*ct,right:at.right*ct,top:at.top*dt,bottom:at.bottom*dt}}function cl(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var at=0;at<it.rest.length;at++)it.measure.caches[at]={}}function Ps(it){it.display.externalMeasure=null,Ht(it.display.lineMeasure);for(var at=0;at<it.display.view.length;at++)cl(it.display.view[at])}function Cs(it){Ps(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function ts(){return Pe&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hs(){return Pe&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ms(it){var at=0;if(it.widgets)for(var ct=0;ct<it.widgets.length;++ct)it.widgets[ct].above&&(at+=Ll(it.widgets[ct]));return at}function bs(it,at,ct,dt,pt){if(!pt){var Mt=Ms(at);ct.top+=Mt,ct.bottom+=Mt}if(dt=="line")return ct;dt||(dt="local");var Rt=Io(at);if(dt=="local"?Rt+=ml(it.display):Rt-=it.display.viewOffset,dt=="page"||dt=="window"){var _t=it.display.lineSpace.getBoundingClientRect();Rt+=_t.top+(dt=="window"?0:hs());var $t=_t.left+(dt=="window"?0:ts());ct.left+=$t,ct.right+=$t}return ct.top+=Rt,ct.bottom+=Rt,ct}function nh(it,at,ct){if(ct=="div")return at;var dt=at.left,pt=at.top;if(ct=="page")dt-=ts(),pt-=hs();else if(ct=="local"||!ct){var Mt=it.display.sizer.getBoundingClientRect();dt+=Mt.left,pt+=Mt.top}var Rt=it.display.lineSpace.getBoundingClientRect();return{left:dt-Rt.left,top:pt-Rt.top}}function $l(it,at,ct,dt,pt){return dt||(dt=mn(it.doc,at.line)),bs(it,dt,Ih(it,dt,at.ch,pt),ct)}function ps(it,at,ct,dt,pt,Mt){dt=dt||mn(it.doc,at.line),pt||(pt=Bl(it,dt));function Rt(Ni,Bi){var $i=Ol(it,pt,Ni,Bi?"right":"left",Mt);return Bi?$i.left=$i.right:$i.right=$i.left,bs(it,dt,$i,ct)}var _t=jt(dt,it.doc.direction),$t=at.ch,ve=at.sticky;if($t>=dt.text.length?($t=dt.text.length,ve="before"):$t<=0&&($t=0,ve="after"),!_t)return Rt(ve=="before"?$t-1:$t,ve=="before");function ln(Ni,Bi,$i){var br=_t[Bi],io=br.level==1;return Rt($i?Ni-1:Ni,io!=$i)}var Le=mt(_t,$t,ve),zn=xt,Dn=ln($t,Le,ve=="before");return zn!=null&&(Dn.other=ln($t,zn,ve!="before")),Dn}function ic(it,at){var ct=0;at=Ln(it.doc,at),it.options.lineWrapping||(ct=xh(it.display)*at.ch);var dt=mn(it.doc,at.line),pt=Io(dt)+ml(it.display);return{left:ct,right:ct,top:pt,bottom:pt+dt.height}}function md(it,at,ct,dt,pt){var Mt=Ge(it,at,ct);return Mt.xRel=pt,dt&&(Mt.outside=dt),Mt}function ed(it,at,ct){var dt=it.doc;if(ct+=it.display.viewOffset,ct<0)return md(dt.first,0,null,-1,-1);var pt=Nn(dt,ct),Mt=dt.first+dt.size-1;if(pt>Mt)return md(dt.first+dt.size-1,mn(dt,Mt).text.length,null,1,1);at<0&&(at=0);for(var Rt=mn(dt,pt);;){var _t=ti(it,Rt,pt,at,ct),$t=Tr(Rt,_t.ch+(_t.xRel>0||_t.outside>0?1:0));if(!$t)return _t;var ve=$t.find(1);if(ve.line==pt)return ve;Rt=mn(dt,pt=ve.line)}}function kr(it,at,ct,dt){dt-=Ms(at);var pt=at.text.length,Mt=re(function(Rt){return Ol(it,ct,Rt-1).bottom<=dt},pt,0);return pt=re(function(Rt){return Ol(it,ct,Rt).top>dt},Mt,pt),{begin:Mt,end:pt}}function nd(it,at,ct,dt){ct||(ct=Bl(it,at));var pt=bs(it,at,Ol(it,ct,dt),"line").top;return kr(it,at,ct,pt)}function Ae(it,at,ct,dt){return it.bottom<=ct?!1:it.top>ct?!0:(dt?it.left:it.right)>at}function ti(it,at,ct,dt,pt){pt-=Io(at);var Mt=Bl(it,at),Rt=Ms(at),_t=0,$t=at.text.length,ve=!0,ln=jt(at,it.doc.direction);if(ln){var Le=(it.options.lineWrapping?rc:Ic)(it,at,ct,Mt,ln,dt,pt);ve=Le.level!=1,_t=ve?Le.from:Le.to-1,$t=ve?Le.to:Le.from-1}var zn=null,Dn=null,Ni=re(function(Qo){var Hr=Ol(it,Mt,Qo);return Hr.top+=Rt,Hr.bottom+=Rt,Ae(Hr,dt,pt,!1)?(Hr.top<=pt&&Hr.left<=dt&&(zn=Qo,Dn=Hr),!0):!1},_t,$t),Bi,$i,br=!1;if(Dn){var io=dt-Dn.left<Dn.right-dt,Vr=io==ve;Ni=zn+(Vr?0:1),$i=Vr?"after":"before",Bi=io?Dn.left:Dn.right}else{!ve&&(Ni==$t||Ni==_t)&&Ni++,$i=Ni==0?"after":Ni==at.text.length?"before":Ol(it,Mt,Ni-(ve?1:0)).bottom+Rt<=pt==ve?"after":"before";var So=ps(it,Ge(ct,Ni,$i),"line",at,Mt);Bi=So.left,br=pt<So.top?-1:pt>=So.bottom?1:0}return Ni=ee(at.text,Ni,1),md(ct,Ni,$i,br,dt-Bi)}function Ic(it,at,ct,dt,pt,Mt,Rt){var _t=re(function(Le){var zn=pt[Le],Dn=zn.level!=1;return Ae(ps(it,Ge(ct,Dn?zn.to:zn.from,Dn?"before":"after"),"line",at,dt),Mt,Rt,!0)},0,pt.length-1),$t=pt[_t];if(_t>0){var ve=$t.level!=1,ln=ps(it,Ge(ct,ve?$t.from:$t.to,ve?"after":"before"),"line",at,dt);Ae(ln,Mt,Rt,!0)&&ln.top>Rt&&($t=pt[_t-1])}return $t}function rc(it,at,ct,dt,pt,Mt,Rt){var _t=kr(it,at,dt,Rt),$t=_t.begin,ve=_t.end;/\s/.test(at.text.charAt(ve-1))&&ve--;for(var ln=null,Le=null,zn=0;zn<pt.length;zn++){var Dn=pt[zn];if(!(Dn.from>=ve||Dn.to<=$t)){var Ni=Dn.level!=1,Bi=Ol(it,dt,Ni?Math.min(ve,Dn.to)-1:Math.max($t,Dn.from)).right,$i=Bi<Mt?Mt-Bi+1e9:Bi-Mt;(!ln||Le>$i)&&(ln=Dn,Le=$i)}}return ln||(ln=pt[pt.length-1]),ln.from<$t&&(ln={from:$t,to:ln.to,level:ln.level}),ln.to>ve&&(ln={from:ln.from,to:ve,level:ln.level}),ln}var ih;function rh(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(ih==null){ih=Ut("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)ih.appendChild(document.createTextNode("x")),ih.appendChild(Ut("br"));ih.appendChild(document.createTextNode("x"))}Zt(it.measure,ih);var ct=ih.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),Ht(it.measure),ct||1}function xh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=Ut("span","xxxxxxxxxx"),ct=Ut("pre",[at],"CodeMirror-line-like");Zt(it.measure,ct);var dt=at.getBoundingClientRect(),pt=(dt.right-dt.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function oc(it){for(var at=it.display,ct={},dt={},pt=at.gutters.clientLeft,Mt=at.gutters.firstChild,Rt=0;Mt;Mt=Mt.nextSibling,++Rt){var _t=it.display.gutterSpecs[Rt].className;ct[_t]=Mt.offsetLeft+Mt.clientLeft+pt,dt[_t]=Mt.clientWidth}return{fixedPos:Bd(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:ct,gutterWidth:dt,wrapperWidth:at.wrapper.clientWidth}}function Bd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Es(it){var at=rh(it.display),ct=it.options.lineWrapping,dt=ct&&Math.max(5,it.display.scroller.clientWidth/xh(it.display)-3);return function(pt){if(ri(it.doc,pt))return 0;var Mt=0;if(pt.widgets)for(var Rt=0;Rt<pt.widgets.length;Rt++)pt.widgets[Rt].height&&(Mt+=pt.widgets[Rt].height);return ct?Mt+(Math.ceil(pt.text.length/dt)||1)*at:Mt+at}}function mo(it){var at=it.doc,ct=Es(it);at.iter(function(dt){var pt=ct(dt);pt!=dt.height&&pi(dt,pt)})}function nl(it,at,ct,dt){var pt=it.display;if(!ct&&yr(at).getAttribute("cm-not-content")=="true")return null;var Mt,Rt,_t=pt.lineSpace.getBoundingClientRect();try{Mt=at.clientX-_t.left,Rt=at.clientY-_t.top}catch(Le){return null}var $t=ed(it,Mt,Rt),ve;if(dt&&$t.xRel>0&&(ve=mn(it.doc,$t.line).text).length==$t.ch){var ln=ye(ve,ve.length,it.options.tabSize)-ve.length;$t=Ge($t.line,Math.max(0,Math.round((Mt-wu(it.display).left)/xh(it.display))-ln))}return $t}function yl(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var ct=it.display.view,dt=0;dt<ct.length;dt++)if(at-=ct[dt].size,at<0)return dt}function ss(it,at,ct,dt){at==null&&(at=it.doc.first),ct==null&&(ct=it.doc.first+it.doc.size),dt||(dt=0);var pt=it.display;if(dt&&ct<pt.viewTo&&(pt.updateLineNumbers==null||pt.updateLineNumbers>at)&&(pt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=pt.viewTo)bn&&cr(it.doc,at)<pt.viewTo&&Us(it);else if(ct<=pt.viewFrom)bn&&fr(it.doc,ct+dt)>pt.viewFrom?Us(it):(pt.viewFrom+=dt,pt.viewTo+=dt);else if(at<=pt.viewFrom&&ct>=pt.viewTo)Us(it);else if(at<=pt.viewFrom){var Mt=It(it,ct,ct+dt,1);Mt?(pt.view=pt.view.slice(Mt.index),pt.viewFrom=Mt.lineN,pt.viewTo+=dt):Us(it)}else if(ct>=pt.viewTo){var Rt=It(it,at,at,-1);Rt?(pt.view=pt.view.slice(0,Rt.index),pt.viewTo=Rt.lineN):Us(it)}else{var _t=It(it,at,at,-1),$t=It(it,ct,ct+dt,1);_t&&$t?(pt.view=pt.view.slice(0,_t.index).concat(No(it,_t.lineN,$t.lineN)).concat(pt.view.slice($t.index)),pt.viewTo+=dt):Us(it)}var ve=pt.externalMeasured;ve&&(ct<ve.lineN?ve.lineN+=dt:at<ve.lineN+ve.size&&(pt.externalMeasured=null))}function na(it,at,ct){it.curOp.viewChanged=!0;var dt=it.display,pt=it.display.externalMeasured;if(pt&&at>=pt.lineN&&at<pt.lineN+pt.size&&(dt.externalMeasured=null),!(at<dt.viewFrom||at>=dt.viewTo)){var Mt=dt.view[yl(it,at)];if(Mt.node!=null){var Rt=Mt.changes||(Mt.changes=[]);nn(Rt,ct)==-1&&Rt.push(ct)}}}function Us(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function It(it,at,ct,dt){var pt=yl(it,at),Mt,Rt=it.display.view;if(!bn||ct==it.doc.first+it.doc.size)return{index:pt,lineN:ct};for(var _t=it.display.viewFrom,$t=0;$t<pt;$t++)_t+=Rt[$t].size;if(_t!=at){if(dt>0){if(pt==Rt.length-1)return null;Mt=_t+Rt[pt].size-at,pt++}else Mt=_t-at;at+=Mt,ct+=Mt}for(;cr(it.doc,ct)!=ct;){if(pt==(dt<0?0:Rt.length-1))return null;ct+=dt*Rt[pt-(dt<0?1:0)].size,pt+=dt}return{index:pt,lineN:ct}}function Kt(it,at,ct){var dt=it.display,pt=dt.view;pt.length==0||at>=dt.viewTo||ct<=dt.viewFrom?(dt.view=No(it,at,ct),dt.viewFrom=at):(dt.viewFrom>at?dt.view=No(it,at,dt.viewFrom).concat(dt.view):dt.viewFrom<at&&(dt.view=dt.view.slice(yl(it,at))),dt.viewFrom=at,dt.viewTo<ct?dt.view=dt.view.concat(No(it,dt.viewTo,ct)):dt.viewTo>ct&&(dt.view=dt.view.slice(0,yl(it,ct)))),dt.viewTo=ct}function te(it){for(var at=it.display.view,ct=0,dt=0;dt<at.length;dt++){var pt=at[dt];!pt.hidden&&(!pt.node||pt.changes)&&++ct}return ct}function Oe(it){it.display.input.showSelection(it.display.input.prepareSelection())}function He(it,at){at===void 0&&(at=!0);for(var ct=it.doc,dt={},pt=dt.cursors=document.createDocumentFragment(),Mt=dt.selection=document.createDocumentFragment(),Rt=0;Rt<ct.sel.ranges.length;Rt++)if(!(!at&&Rt==ct.sel.primIndex)){var _t=ct.sel.ranges[Rt];if(!(_t.from().line>=it.display.viewTo||_t.to().line<it.display.viewFrom)){var $t=_t.empty();($t||it.options.showCursorWhenSelecting)&&vn(it,_t.head,pt),$t||jn(it,_t,Mt)}}return dt}function vn(it,at,ct){var dt=ps(it,at,"div",null,null,!it.options.singleCursorHeightPerLine),pt=ct.appendChild(Ut("div","\xA0","CodeMirror-cursor"));if(pt.style.left=dt.left+"px",pt.style.top=dt.top+"px",pt.style.height=Math.max(0,dt.bottom-dt.top)*it.options.cursorHeight+"px",dt.other){var Mt=ct.appendChild(Ut("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Mt.style.display="",Mt.style.left=dt.other.left+"px",Mt.style.top=dt.other.top+"px",Mt.style.height=(dt.other.bottom-dt.other.top)*.85+"px"}}function Sn(it,at){return it.top-at.top||it.left-at.left}function jn(it,at,ct){var dt=it.display,pt=it.doc,Mt=document.createDocumentFragment(),Rt=wu(it.display),_t=Rt.left,$t=Math.max(dt.sizerWidth,Al(it)-dt.sizer.offsetLeft)-Rt.right,ve=pt.direction=="ltr";function ln(Vr,So,Qo,Hr){So<0&&(So=0),So=Math.round(So),Hr=Math.round(Hr),Mt.appendChild(Ut("div",null,"CodeMirror-selected","position: absolute; left: "+Vr+`px;
top: `+So+"px; width: "+(Qo==null?$t-Vr:Qo)+`px;
height: `+(Hr-So)+"px"))}function Le(Vr,So,Qo){var Hr=mn(pt,Vr),pa=Hr.text.length,Zs,Fl;function tl(Pl,Uu){return $l(it,Ge(Vr,Pl),"div",Hr,Uu)}function Ou(Pl,Uu,eu){var Cl=nd(it,Hr,null,Pl),_a=Uu=="ltr"==(eu=="after")?"left":"right",il=eu=="after"?Cl.begin:Cl.end-(/\s/.test(Hr.text.charAt(Cl.end-1))?2:1);return tl(il,_a)[_a]}var gu=jt(Hr,pt.direction);return Bt(gu,So||0,Qo==null?pa:Qo,function(Pl,Uu,eu,Cl){var _a=eu=="ltr",il=tl(Pl,_a?"left":"right"),jl=tl(Uu-1,_a?"right":"left"),nu=So==null&&Pl==0,Gh=Qo==null&&Uu==pa,el=Cl==0,Eh=!gu||Cl==gu.length-1;if(jl.top-il.top<=3){var hl=(ve?nu:Gh)&&el,Qf=(ve?Gh:nu)&&Eh,hh=hl?_t:(_a?il:jl).left,Xu=Qf?$t:(_a?jl:il).right;ln(hh,il.top,Xu-hh,il.bottom)}else{var Iu,Ns,Hl,xd;_a?(Iu=ve&&nu&&el?_t:il.left,Ns=ve?$t:Ou(Pl,eu,"before"),Hl=ve?_t:Ou(Uu,eu,"after"),xd=ve&&Gh&&Eh?$t:jl.right):(Iu=ve?Ou(Pl,eu,"before"):_t,Ns=!ve&&nu&&el?$t:il.right,Hl=!ve&&Gh&&Eh?_t:jl.left,xd=ve?Ou(Uu,eu,"after"):$t),ln(Iu,il.top,Ns-Iu,il.bottom),il.bottom<jl.top&&ln(_t,il.bottom,null,jl.top),ln(Hl,jl.top,xd-Hl,jl.bottom)}(!Zs||Sn(il,Zs)<0)&&(Zs=il),Sn(jl,Zs)<0&&(Zs=jl),(!Fl||Sn(il,Fl)<0)&&(Fl=il),Sn(jl,Fl)<0&&(Fl=jl)}),{start:Zs,end:Fl}}var zn=at.from(),Dn=at.to();if(zn.line==Dn.line)Le(zn.line,zn.ch,Dn.ch);else{var Ni=mn(pt,zn.line),Bi=mn(pt,Dn.line),$i=$r(Ni)==$r(Bi),br=Le(zn.line,zn.ch,$i?Ni.text.length+1:null).end,io=Le(Dn.line,$i?0:null,Dn.ch).start;$i&&(br.top<io.top-2?(ln(br.right,br.top,null,br.bottom),ln(_t,io.top,io.left,io.bottom)):ln(br.right,br.top,io.left-br.right,br.bottom)),br.bottom<io.top&&ln(_t,br.bottom,null,io.top)}ct.appendChild(Mt)}function Xn(it){if(it.state.focused){var at=it.display;clearInterval(at.blinker);var ct=!0;at.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?at.blinker=setInterval(function(){it.hasFocus()||bi(it),at.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function hi(it){it.state.focused||(it.display.input.focus(),li(it))}function Ii(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,bi(it))},100)}function li(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(de(it,"focus",it,at),it.state.focused=!0,tn(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Nt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),Xn(it))}function bi(it,at){it.state.delayingBlurEvent||(it.state.focused&&(de(it,"blur",it,at),it.state.focused=!1,Ot(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function oi(it){for(var at=it.display,ct=at.lineDiv.offsetTop,dt=0;dt<at.view.length;dt++){var pt=at.view[dt],Mt=it.options.lineWrapping,Rt=void 0,_t=0;if(!pt.hidden){if(Xt&&Se<8){var $t=pt.node.offsetTop+pt.node.offsetHeight;Rt=$t-ct,ct=$t}else{var ve=pt.node.getBoundingClientRect();Rt=ve.bottom-ve.top,!Mt&&pt.text.firstChild&&(_t=pt.text.firstChild.getBoundingClientRect().right-ve.left-1)}var ln=pt.line.height-Rt;if((ln>.005||ln<-.005)&&(pi(pt.line,Rt),Yi(pt.line),pt.rest))for(var Le=0;Le<pt.rest.length;Le++)Yi(pt.rest[Le]);if(_t>it.display.sizerWidth){var zn=Math.ceil(_t/xh(it.display));zn>it.display.maxLineLength&&(it.display.maxLineLength=zn,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function Yi(it){if(it.widgets)for(var at=0;at<it.widgets.length;++at){var ct=it.widgets[at],dt=ct.node.parentNode;dt&&(ct.height=dt.offsetHeight)}}function In(it,at,ct){var dt=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;dt=Math.floor(dt-ml(it));var pt=ct&&ct.bottom!=null?ct.bottom:dt+it.wrapper.clientHeight,Mt=Nn(at,dt),Rt=Nn(at,pt);if(ct&&ct.ensure){var _t=ct.ensure.from.line,$t=ct.ensure.to.line;_t<Mt?(Mt=_t,Rt=Nn(at,Io(mn(at,_t))+it.wrapper.clientHeight)):Math.min($t,at.lastLine())>=Rt&&(Mt=Nn(at,Io(mn(at,$t))-it.wrapper.clientHeight),Rt=$t)}return{from:Mt,to:Math.max(Rt,Mt+1)}}function Ei(it,at){if(!De(it,"scrollCursorIntoView")){var ct=it.display,dt=ct.sizer.getBoundingClientRect(),pt=null;if(at.top+dt.top<0?pt=!0:at.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(pt=!1),pt!=null&&!Ce){var Mt=Ut("div","\u200B",null,`position: absolute;
top: `+(at.top-ct.viewOffset-ml(it.display))+`px;
height: `+(at.bottom-at.top+vl(it)+ct.barHeight)+`px;
left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(Mt),Mt.scrollIntoView(pt),it.display.lineSpace.removeChild(Mt)}}}function Ui(it,at,ct,dt){dt==null&&(dt=0);var pt;!it.options.lineWrapping&&at==ct&&(at=at.ch?Ge(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,ct=at.sticky=="before"?Ge(at.line,at.ch+1,"before"):at);for(var Mt=0;Mt<5;Mt++){var Rt=!1,_t=ps(it,at),$t=!ct||ct==at?_t:ps(it,ct);pt={left:Math.min(_t.left,$t.left),top:Math.min(_t.top,$t.top)-dt,right:Math.max(_t.left,$t.left),bottom:Math.max(_t.bottom,$t.bottom)+dt};var ve=Dr(it,pt),ln=it.doc.scrollTop,Le=it.doc.scrollLeft;if(ve.scrollTop!=null&&(ia(it,ve.scrollTop),Math.abs(it.doc.scrollTop-ln)>1&&(Rt=!0)),ve.scrollLeft!=null&&(Aa(it,ve.scrollLeft),Math.abs(it.doc.scrollLeft-Le)>1&&(Rt=!0)),!Rt)break}return pt}function Gr(it,at){var ct=Dr(it,at);ct.scrollTop!=null&&ia(it,ct.scrollTop),ct.scrollLeft!=null&&Aa(it,ct.scrollLeft)}function Dr(it,at){var ct=it.display,dt=rh(it.display);at.top<0&&(at.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,Mt=Bh(it),Rt={};at.bottom-at.top>Mt&&(at.bottom=at.top+Mt);var _t=it.doc.height+Wu(ct),$t=at.top<dt,ve=at.bottom>_t-dt;if(at.top<pt)Rt.scrollTop=$t?0:at.top;else if(at.bottom>pt+Mt){var ln=Math.min(at.top,(ve?_t:at.bottom)-Mt);ln!=pt&&(Rt.scrollTop=ln)}var Le=it.options.fixedGutter?0:ct.gutters.offsetWidth,zn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-Le,Dn=Al(it)-ct.gutters.offsetWidth,Ni=at.right-at.left>Dn;return Ni&&(at.right=at.left+Dn),at.left<10?Rt.scrollLeft=0:at.left<zn?Rt.scrollLeft=Math.max(0,at.left+Le-(Ni?0:10)):at.right>Dn+zn-3&&(Rt.scrollLeft=at.right+(Ni?0:10)-Dn),Rt}function Ur(it,at){at!=null&&(Uo(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function Xr(it){Uo(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function Kr(it,at,ct){(at!=null||ct!=null)&&Uo(it),at!=null&&(it.curOp.scrollLeft=at),ct!=null&&(it.curOp.scrollTop=ct)}function Ri(it,at){Uo(it),it.curOp.scrollToPos=at}function Uo(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var ct=ic(it,at.from),dt=ic(it,at.to);jo(it,ct,dt,at.margin)}}function jo(it,at,ct,dt){var pt=Dr(it,{left:Math.min(at.left,ct.left),top:Math.min(at.top,ct.top)-dt,right:Math.max(at.right,ct.right),bottom:Math.max(at.bottom,ct.bottom)+dt});Kr(it,pt.scrollLeft,pt.scrollTop)}function ia(it,at){Math.abs(it.doc.scrollTop-at)<2||(At||ir(it,{top:at}),Na(it,at,!0),At&&ir(it),ei(it,100))}function Na(it,at,ct){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!ct)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function Aa(it,at,ct,dt){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!dt)&&(it.doc.scrollLeft=at,oo(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function xa(it){var at=it.display,ct=at.gutters.offsetWidth,dt=Math.round(it.doc.height+Wu(it.display));return{clientHeight:at.scroller.clientHeight,viewHeight:at.wrapper.clientHeight,scrollWidth:at.scroller.scrollWidth,clientWidth:at.scroller.clientWidth,viewWidth:at.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:dt,scrollHeight:dt+vl(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:ct}}var es=function(it,at,ct){this.cm=ct;var dt=this.vert=Ut("div",[Ut("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=Ut("div",[Ut("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=pt.tabIndex=-1,it(dt),it(pt),he(dt,"scroll",function(){dt.clientHeight&&at(dt.scrollTop,"vertical")}),he(pt,"scroll",function(){pt.clientWidth&&at(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Xt&&Se<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};es.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,dt=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=at?dt+"px":"0";var pt=it.viewHeight-(at?dt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+pt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(at){this.horiz.style.display="block",this.horiz.style.right=ct?dt+"px":"0",this.horiz.style.left=it.barLeft+"px";var Mt=it.viewWidth-it.barLeft-(ct?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Mt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?dt:0,bottom:at?dt:0}},es.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},es.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},es.prototype.zeroWidthHack=function(){var it=ht&&!we?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Gt,this.disableVert=new Gt},es.prototype.enableZeroWidthBar=function(it,at,ct){it.style.pointerEvents="auto";function dt(){var pt=it.getBoundingClientRect(),Mt=ct=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);Mt!=it?it.style.pointerEvents="none":at.set(1e3,dt)}at.set(1e3,dt)},es.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var ga=function(){};ga.prototype.update=function(){return{bottom:0,right:0}},ga.prototype.setScrollLeft=function(){},ga.prototype.setScrollTop=function(){},ga.prototype.clear=function(){};function sa(it,at){at||(at=xa(it));var ct=it.display.barWidth,dt=it.display.barHeight;wa(it,at);for(var pt=0;pt<4&&ct!=it.display.barWidth||dt!=it.display.barHeight;pt++)ct!=it.display.barWidth&&it.options.lineWrapping&&oi(it),wa(it,xa(it)),ct=it.display.barWidth,dt=it.display.barHeight}function wa(it,at){var ct=it.display,dt=ct.scrollbars.update(at);ct.sizer.style.paddingRight=(ct.barWidth=dt.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=dt.bottom)+"px",ct.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=dt.bottom+"px",ct.scrollbarFiller.style.width=dt.right+"px"):ct.scrollbarFiller.style.display="",dt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=dt.bottom+"px",ct.gutterFiller.style.width=at.gutterWidth+"px"):ct.gutterFiller.style.display=""}var Xa={native:es,null:ga};function ns(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Ot(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Xa[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),he(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,ct){ct=="horizontal"?Aa(it,at):ia(it,at)},it),it.display.scrollbars.addClass&&tn(it.display.wrapper,it.display.scrollbars.addClass)}var za=0;function Pa(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:++za},al(it.curOp)}function As(it){var at=it.curOp;at&&zo(at,function(ct){for(var dt=0;dt<ct.ops.length;dt++)ct.ops[dt].cm.curOp=null;_s(ct)})}function _s(it){for(var at=it.ops,ct=0;ct<at.length;ct++)Qt(at[ct]);for(var dt=0;dt<at.length;dt++)ie(at[dt]);for(var pt=0;pt<at.length;pt++)Fe(at[pt]);for(var Mt=0;Mt<at.length;Mt++)Be(at[Mt]);for(var Rt=0;Rt<at.length;Rt++)qe(at[Rt])}function Qt(it){var at=it.cm,ct=at.display;Ci(at),it.updateMaxLine&&Sa(at),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<ct.viewFrom||it.scrollToPos.to.line>=ct.viewTo)||ct.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new qn(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function ie(it){it.updatedDisplay=it.mustUpdate&&Vi(it.cm,it.update)}function Fe(it){var at=it.cm,ct=at.display;it.updatedDisplay&&oi(at),it.barMeasure=xa(at),ct.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=Ih(at,ct.maxLine,ct.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+vl(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-Al(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function Be(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<at.doc.scrollLeft&&Aa(at,Math.min(at.display.scroller.scrollLeft,it.maxScrollLeft),!0),at.display.maxLineChanged=!1);var ct=it.focus&&it.focus==pe();it.preparedSelection&&at.display.input.showSelection(it.preparedSelection,ct),(it.updatedDisplay||it.startHeight!=at.doc.height)&&sa(at,it.barMeasure),it.updatedDisplay&&Jr(at,it.barMeasure),it.selectionChanged&&Xn(at),at.state.focused&&it.updateInput&&at.display.input.reset(it.typing),ct&&hi(it.cm)}function qe(it){var at=it.cm,ct=at.display,dt=at.doc;if(it.updatedDisplay&&Si(at,it.update),ct.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ct.wheelStartX=ct.wheelStartY=null),it.scrollTop!=null&&Na(at,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Aa(at,it.scrollLeft,!0,!0),it.scrollToPos){var pt=Ui(at,Ln(dt,it.scrollToPos.from),Ln(dt,it.scrollToPos.to),it.scrollToPos.margin);Ei(at,pt)}var Mt=it.maybeHiddenMarkers,Rt=it.maybeUnhiddenMarkers;if(Mt)for(var _t=0;_t<Mt.length;++_t)Mt[_t].lines.length||de(Mt[_t],"hide");if(Rt)for(var $t=0;$t<Rt.length;++$t)Rt[$t].lines.length&&de(Rt[$t],"unhide");ct.wrapper.offsetHeight&&(dt.scrollTop=at.display.scroller.scrollTop),it.changeObjs&&de(at,"changes",at,it.changeObjs),it.update&&it.update.finish()}function Ye(it,at){if(it.curOp)return at();Pa(it);try{return at()}finally{As(it)}}function En(it,at){return function(){if(it.curOp)return at.apply(it,arguments);Pa(it);try{return at.apply(it,arguments)}finally{As(it)}}}function Pn(it){return function(){if(this.curOp)return it.apply(this,arguments);Pa(this);try{return it.apply(this,arguments)}finally{As(this)}}}function wn(it){return function(){var at=this.cm;if(!at||at.curOp)return it.apply(this,arguments);Pa(at);try{return it.apply(this,arguments)}finally{As(at)}}}function ei(it,at){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(at,_e(Rn,it))}function Rn(it){var at=it.doc;if(!(at.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,dt=nr(it,at.highlightFrontier),pt=[];at.iter(dt.line,Math.min(at.first+at.size,it.display.viewTo+500),function(Mt){if(dt.line>=it.display.viewFrom){var Rt=Mt.styles,_t=Mt.text.length>it.options.maxHighlightLength?un(at.mode,dt.state):null,$t=qi(it,Mt,dt,!0);_t&&(dt.state=_t),Mt.styles=$t.styles;var ve=Mt.styleClasses,ln=$t.classes;ln?Mt.styleClasses=ln:ve&&(Mt.styleClasses=null);for(var Le=!Rt||Rt.length!=Mt.styles.length||ve!=ln&&(!ve||!ln||ve.bgClass!=ln.bgClass||ve.textClass!=ln.textClass),zn=0;!Le&&zn<Rt.length;++zn)Le=Rt[zn]!=Mt.styles[zn];Le&&pt.push(dt.line),Mt.stateAfter=dt.save(),dt.nextLine()}else Mt.text.length<=it.options.maxHighlightLength&&sn(it,Mt.text,dt),Mt.stateAfter=dt.line%5==0?dt.save():null,dt.nextLine();if(+new Date>ct)return ei(it,it.options.workDelay),!0}),at.highlightFrontier=dt.line,at.modeFrontier=Math.max(at.modeFrontier,dt.line),pt.length&&Ye(it,function(){for(var Mt=0;Mt<pt.length;Mt++)na(it,pt[Mt],"text")})}}var qn=function(it,at,ct){var dt=it.display;this.viewport=at,this.visible=In(dt,it.doc,at),this.editorIsHidden=!dt.wrapper.offsetWidth,this.wrapperHeight=dt.wrapper.clientHeight,this.wrapperWidth=dt.wrapper.clientWidth,this.oldDisplayWidth=Al(it),this.force=ct,this.dims=oc(it),this.events=[]};qn.prototype.signal=function(it,at){An(it,at)&&this.events.push(arguments)},qn.prototype.finish=function(){for(var it=0;it<this.events.length;it++)de.apply(null,this.events[it])};function Ci(it){var at=it.display;!at.scrollbarsClipped&&at.scroller.offsetWidth&&(at.nativeBarWidth=at.scroller.offsetWidth-at.scroller.clientWidth,at.heightForcer.style.height=vl(it)+"px",at.sizer.style.marginBottom=-at.nativeBarWidth+"px",at.sizer.style.borderRightWidth=vl(it)+"px",at.scrollbarsClipped=!0)}function wi(it){if(it.hasFocus())return null;var at=pe();if(!at||!Xe(it.display.lineDiv,at))return null;var ct={activeElt:at};if(window.getSelection){var dt=window.getSelection();dt.anchorNode&&dt.extend&&Xe(it.display.lineDiv,dt.anchorNode)&&(ct.anchorNode=dt.anchorNode,ct.anchorOffset=dt.anchorOffset,ct.focusNode=dt.focusNode,ct.focusOffset=dt.focusOffset)}return ct}function vi(it){if(!(!it||!it.activeElt||it.activeElt==pe())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Xe(document.body,it.anchorNode)&&Xe(document.body,it.focusNode))){var at=window.getSelection(),ct=document.createRange();ct.setEnd(it.anchorNode,it.anchorOffset),ct.collapse(!1),at.removeAllRanges(),at.addRange(ct),at.extend(it.focusNode,it.focusOffset)}}function Vi(it,at){var ct=it.display,dt=it.doc;if(at.editorIsHidden)return Us(it),!1;if(!at.force&&at.visible.from>=ct.viewFrom&&at.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&te(it)==0)return!1;pr(it)&&(Us(it),at.dims=oc(it));var pt=dt.first+dt.size,Mt=Math.max(at.visible.from-it.options.viewportMargin,dt.first),Rt=Math.min(pt,at.visible.to+it.options.viewportMargin);ct.viewFrom<Mt&&Mt-ct.viewFrom<20&&(Mt=Math.max(dt.first,ct.viewFrom)),ct.viewTo>Rt&&ct.viewTo-Rt<20&&(Rt=Math.min(pt,ct.viewTo)),bn&&(Mt=cr(it.doc,Mt),Rt=fr(it.doc,Rt));var _t=Mt!=ct.viewFrom||Rt!=ct.viewTo||ct.lastWrapHeight!=at.wrapperHeight||ct.lastWrapWidth!=at.wrapperWidth;Kt(it,Mt,Rt),ct.viewOffset=Io(mn(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var $t=te(it);if(!_t&&$t==0&&!at.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var ve=wi(it);return $t>4&&(ct.lineDiv.style.display="none"),Qi(it,ct.updateLineNumbers,at.dims),$t>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,vi(ve),Ht(ct.cursorDiv),Ht(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,_t&&(ct.lastWrapHeight=at.wrapperHeight,ct.lastWrapWidth=at.wrapperWidth,ei(it,400)),ct.updateLineNumbers=null,!0}function Si(it,at){for(var ct=at.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||at.oldDisplayWidth==Al(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+Wu(it.display)-Bh(it),ct.top)}),at.visible=In(it.display,it.doc,ct),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else dt&&(at.visible=In(it.display,it.doc,ct));if(!Vi(it,at))break;oi(it);var pt=xa(it);Oe(it),sa(it,pt),Jr(it,pt),at.force=!1}at.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(at.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function ir(it,at){var ct=new qn(it,at);if(Vi(it,ct)){oi(it),Si(it,ct);var dt=xa(it);Oe(it),sa(it,dt),Jr(it,dt),ct.finish()}}function Qi(it,at,ct){var dt=it.display,pt=it.options.lineNumbers,Mt=dt.lineDiv,Rt=Mt.firstChild;function _t(Ni){var Bi=Ni.nextSibling;return Nt&&ht&&it.display.currentWheelTarget==Ni?Ni.style.display="none":Ni.parentNode.removeChild(Ni),Bi}for(var $t=dt.view,ve=dt.viewFrom,ln=0;ln<$t.length;ln++){var Le=$t[ln];if(!Le.hidden)if(!Le.node||Le.node.parentNode!=Mt){var zn=lu(it,Le,ve,ct);Mt.insertBefore(zn,Rt)}else{for(;Rt!=Le.node;)Rt=_t(Rt);var Dn=pt&&at!=null&&at<=ve&&Le.lineNumber;Le.changes&&(nn(Le.changes,"gutter")>-1&&(Dn=!1),ws(it,Le,ve,ct)),Dn&&(Ht(Le.lineNumber),Le.lineNumber.appendChild(document.createTextNode(Hi(it.options,ve)))),Rt=Le.node.nextSibling}ve+=Le.size}for(;Rt;)Rt=_t(Rt)}function sr(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function Jr(it,at){it.display.sizer.style.minHeight=at.docHeight+"px",it.display.heightForcer.style.top=at.docHeight+"px",it.display.gutters.style.height=at.docHeight+it.display.barHeight+vl(it)+"px"}function oo(it){var at=it.display,ct=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var dt=Bd(at)-at.scroller.scrollLeft+it.doc.scrollLeft,pt=at.gutters.offsetWidth,Mt=dt+"px",Rt=0;Rt<ct.length;Rt++)if(!ct[Rt].hidden){it.options.fixedGutter&&(ct[Rt].gutter&&(ct[Rt].gutter.style.left=Mt),ct[Rt].gutterBackground&&(ct[Rt].gutterBackground.style.left=Mt));var _t=ct[Rt].alignable;if(_t)for(var $t=0;$t<_t.length;$t++)_t[$t].style.left=Mt}it.options.fixedGutter&&(at.gutters.style.left=dt+pt+"px")}}function pr(it){if(!it.options.lineNumbers)return!1;var at=it.doc,ct=Hi(it.options,at.first+at.size-1),dt=it.display;if(ct.length!=dt.lineNumChars){var pt=dt.measure.appendChild(Ut("div",[Ut("div",ct)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Mt=pt.firstChild.offsetWidth,Rt=pt.offsetWidth-Mt;return dt.lineGutter.style.width="",dt.lineNumInnerWidth=Math.max(Mt,dt.lineGutter.offsetWidth-Rt)+1,dt.lineNumWidth=dt.lineNumInnerWidth+Rt,dt.lineNumChars=dt.lineNumInnerWidth?ct.length:-1,dt.lineGutter.style.width=dt.lineNumWidth+"px",sr(it.display),!0}return!1}function Fr(it,at){for(var ct=[],dt=!1,pt=0;pt<it.length;pt++){var Mt=it[pt],Rt=null;if(typeof Mt!="string"&&(Rt=Mt.style,Mt=Mt.className),Mt=="CodeMirror-linenumbers")if(at)dt=!0;else continue;ct.push({className:Mt,style:Rt})}return at&&!dt&&ct.push({className:"CodeMirror-linenumbers",style:null}),ct}function Eo(it){var at=it.gutters,ct=it.gutterSpecs;Ht(at),it.lineGutter=null;for(var dt=0;dt<ct.length;++dt){var pt=ct[dt],Mt=pt.className,Rt=pt.style,_t=at.appendChild(Ut("div",null,"CodeMirror-gutter "+Mt));Rt&&(_t.style.cssText=Rt),Mt=="CodeMirror-linenumbers"&&(it.lineGutter=_t,_t.style.width=(it.lineNumWidth||1)+"px")}at.style.display=ct.length?"":"none",sr(it)}function ur(it){Eo(it.display),ss(it),oo(it)}function zr(it,at,ct,dt){var pt=this;this.input=ct,pt.scrollbarFiller=Ut("div",null,"CodeMirror-scrollbar-filler"),pt.scrollbarFiller.setAttribute("cm-not-content","true"),pt.gutterFiller=Ut("div",null,"CodeMirror-gutter-filler"),pt.gutterFiller.setAttribute("cm-not-content","true"),pt.lineDiv=fe("div",null,"CodeMirror-code"),pt.selectionDiv=Ut("div",null,null,"position: relative; z-index: 1"),pt.cursorDiv=Ut("div",null,"CodeMirror-cursors"),pt.measure=Ut("div",null,"CodeMirror-measure"),pt.lineMeasure=Ut("div",null,"CodeMirror-measure"),pt.lineSpace=fe("div",[pt.measure,pt.lineMeasure,pt.selectionDiv,pt.cursorDiv,pt.lineDiv],null,"position: relative; outline: none");var Mt=fe("div",[pt.lineSpace],"CodeMirror-lines");pt.mover=Ut("div",[Mt],null,"position: relative"),pt.sizer=Ut("div",[pt.mover],"CodeMirror-sizer"),pt.sizerWidth=null,pt.heightForcer=Ut("div",null,null,"position: absolute; height: "+Zn+"px; width: 1px;"),pt.gutters=Ut("div",null,"CodeMirror-gutters"),pt.lineGutter=null,pt.scroller=Ut("div",[pt.sizer,pt.heightForcer,pt.gutters],"CodeMirror-scroll"),pt.scroller.setAttribute("tabIndex","-1"),pt.wrapper=Ut("div",[pt.scrollbarFiller,pt.gutterFiller,pt.scroller],"CodeMirror"),Xt&&Se<8&&(pt.gutters.style.zIndex=-1,pt.scroller.style.paddingRight=0),!Nt&&!(At&&nt)&&(pt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(pt.wrapper):it(pt.wrapper)),pt.viewFrom=pt.viewTo=at.first,pt.reportedViewFrom=pt.reportedViewTo=at.first,pt.view=[],pt.renderedView=null,pt.externalMeasured=null,pt.viewOffset=0,pt.lastWrapHeight=pt.lastWrapWidth=0,pt.updateLineNumbers=null,pt.nativeBarWidth=pt.barHeight=pt.barWidth=0,pt.scrollbarsClipped=!1,pt.lineNumWidth=pt.lineNumInnerWidth=pt.lineNumChars=null,pt.alignWidgets=!1,pt.cachedCharWidth=pt.cachedTextHeight=pt.cachedPaddingH=null,pt.maxLine=null,pt.maxLineLength=0,pt.maxLineChanged=!1,pt.wheelDX=pt.wheelDY=pt.wheelStartX=pt.wheelStartY=null,pt.shift=!1,pt.selForContextMenu=null,pt.activeTouch=null,pt.gutterSpecs=Fr(dt.gutters,dt.lineNumbers),Eo(pt),ct.init(pt)}var mr=0,Wi=null;Xt?Wi=-.53:At?Wi=15:Pe?Wi=-.7:xe&&(Wi=-1/3);function or(it){var at=it.wheelDeltaX,ct=it.wheelDeltaY;return at==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(at=it.detail),ct==null&&it.detail&&it.axis==it.VERTICAL_AXIS?ct=it.detail:ct==null&&(ct=it.wheelDelta),{x:at,y:ct}}function jr(it){var at=or(it);return at.x*=Wi,at.y*=Wi,at}function ao(it,at){var ct=or(at),dt=ct.x,pt=ct.y,Mt=it.display,Rt=Mt.scroller,_t=Rt.scrollWidth>Rt.clientWidth,$t=Rt.scrollHeight>Rt.clientHeight;if(dt&&_t||pt&&$t){if(pt&&ht&&Nt){t:for(var ve=at.target,ln=Mt.view;ve!=Rt;ve=ve.parentNode)for(var Le=0;Le<ln.length;Le++)if(ln[Le].node==ve){it.display.currentWheelTarget=ve;break t}}if(dt&&!At&&!ne&&Wi!=null){pt&&$t&&ia(it,Math.max(0,Rt.scrollTop+pt*Wi)),Aa(it,Math.max(0,Rt.scrollLeft+dt*Wi)),(!pt||pt&&$t)&&gi(at),Mt.wheelStartX=null;return}if(pt&&Wi!=null){var zn=pt*Wi,Dn=it.doc.scrollTop,Ni=Dn+Mt.wrapper.clientHeight;zn<0?Dn=Math.max(0,Dn+zn-50):Ni=Math.min(it.doc.height,Ni+zn+50),ir(it,{top:Dn,bottom:Ni})}mr<20&&(Mt.wheelStartX==null?(Mt.wheelStartX=Rt.scrollLeft,Mt.wheelStartY=Rt.scrollTop,Mt.wheelDX=dt,Mt.wheelDY=pt,setTimeout(function(){if(Mt.wheelStartX!=null){var Bi=Rt.scrollLeft-Mt.wheelStartX,$i=Rt.scrollTop-Mt.wheelStartY,br=$i&&Mt.wheelDY&&$i/Mt.wheelDY||Bi&&Mt.wheelDX&&Bi/Mt.wheelDX;Mt.wheelStartX=Mt.wheelStartY=null,br&&(Wi=(Wi*mr+br)/(mr+1),++mr)}},200)):(Mt.wheelDX+=dt,Mt.wheelDY+=pt))}}var lo=function(it,at){this.ranges=it,this.primIndex=at};lo.prototype.primary=function(){return this.ranges[this.primIndex]},lo.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var at=0;at<this.ranges.length;at++){var ct=this.ranges[at],dt=it.ranges[at];if(!je(ct.anchor,dt.anchor)||!je(ct.head,dt.head))return!1}return!0},lo.prototype.deepCopy=function(){for(var it=[],at=0;at<this.ranges.length;at++)it[at]=new ar(hn(this.ranges[at].anchor),hn(this.ranges[at].head));return new lo(it,this.primIndex)},lo.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},lo.prototype.contains=function(it,at){at||(at=it);for(var ct=0;ct<this.ranges.length;ct++){var dt=this.ranges[ct];if(pn(at,dt.from())>=0&&pn(it,dt.to())<=0)return ct}return-1};var ar=function(it,at){this.anchor=it,this.head=at};ar.prototype.from=function(){return dn(this.anchor,this.head)},ar.prototype.to=function(){return yn(this.anchor,this.head)},ar.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Lo(it,at,ct){var dt=it&&it.options.selectionsMayTouch,pt=at[ct];at.sort(function(zn,Dn){return pn(zn.from(),Dn.from())}),ct=nn(at,pt);for(var Mt=1;Mt<at.length;Mt++){var Rt=at[Mt],_t=at[Mt-1],$t=pn(_t.to(),Rt.from());if(dt&&!Rt.empty()?$t>0:$t>=0){var ve=dn(_t.from(),Rt.from()),ln=yn(_t.to(),Rt.to()),Le=_t.empty()?Rt.from()==Rt.head:_t.from()==_t.head;Mt<=ct&&--ct,at.splice(--Mt,2,new ar(Le?ln:ve,Le?ve:ln))}}return new lo(at,ct)}function Ro(it,at){return new lo([new ar(it,at||it)],0)}function Wo(it){return it.text?Ge(it.from.line+it.text.length-1,me(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Ho(it,at){if(pn(it,at.from)<0)return it;if(pn(it,at.to)<=0)return Wo(at);var ct=it.line+at.text.length-(at.to.line-at.from.line)-1,dt=it.ch;return it.line==at.to.line&&(dt+=Wo(at).ch-at.to.ch),Ge(ct,dt)}function ja(it,at){for(var ct=[],dt=0;dt<it.sel.ranges.length;dt++){var pt=it.sel.ranges[dt];ct.push(new ar(Ho(pt.anchor,at),Ho(pt.head,at)))}return Lo(it.cm,ct,it.sel.primIndex)}function ta(it,at,ct){return it.line==at.line?Ge(ct.line,it.ch-at.ch+ct.ch):Ge(ct.line+(it.line-at.line),it.ch)}function Po(it,at,ct){for(var dt=[],pt=Ge(it.first,0),Mt=pt,Rt=0;Rt<at.length;Rt++){var _t=at[Rt],$t=ta(_t.from,pt,Mt),ve=ta(Wo(_t),pt,Mt);if(pt=_t.to,Mt=ve,ct=="around"){var ln=it.sel.ranges[Rt],Le=pn(ln.head,ln.anchor)<0;dt[Rt]=new ar(Le?ve:$t,Le?$t:ve)}else dt[Rt]=new ar($t,$t)}return new lo(dt,it.sel.primIndex)}function _r(it){it.doc.mode=an(it.options,it.doc.modeOption),po(it)}function po(it){it.doc.iter(function(at){at.stateAfter&&(at.stateAfter=null),at.styles&&(at.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,ei(it,100),it.state.modeGen++,it.curOp&&ss(it)}function Ba(it,at){return at.from.ch==0&&at.to.ch==0&&me(at.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Ca(it,at,ct,dt){function pt(io){return ct?ct[io]:null}function Mt(io,Vr,So){Ra(io,Vr,So,dt),zi(io,"change",io,at)}function Rt(io,Vr){for(var So=[],Qo=io;Qo<Vr;++Qo)So.push(new Ta(ve[Qo],pt(Qo),dt));return So}var _t=at.from,$t=at.to,ve=at.text,ln=mn(it,_t.line),Le=mn(it,$t.line),zn=me(ve),Dn=pt(ve.length-1),Ni=$t.line-_t.line;if(at.full)it.insert(0,Rt(0,ve.length)),it.remove(ve.length,it.size-ve.length);else if(Ba(it,at)){var Bi=Rt(0,ve.length-1);Mt(Le,Le.text,Dn),Ni&&it.remove(_t.line,Ni),Bi.length&&it.insert(_t.line,Bi)}else if(ln==Le)if(ve.length==1)Mt(ln,ln.text.slice(0,_t.ch)+zn+ln.text.slice($t.ch),Dn);else{var $i=Rt(1,ve.length-1);$i.push(new Ta(zn+ln.text.slice($t.ch),Dn,dt)),Mt(ln,ln.text.slice(0,_t.ch)+ve[0],pt(0)),it.insert(_t.line+1,$i)}else if(ve.length==1)Mt(ln,ln.text.slice(0,_t.ch)+ve[0]+Le.text.slice($t.ch),pt(0)),it.remove(_t.line+1,Ni);else{Mt(ln,ln.text.slice(0,_t.ch)+ve[0],pt(0)),Mt(Le,zn+Le.text.slice($t.ch),Dn);var br=Rt(1,ve.length-1);Ni>1&&it.remove(_t.line+1,Ni-1),it.insert(_t.line+1,br)}zi(it,"change",it,at)}function Ka(it,at,ct){function dt(pt,Mt,Rt){if(pt.linked)for(var _t=0;_t<pt.linked.length;++_t){var $t=pt.linked[_t];if($t.doc!=Mt){var ve=Rt&&$t.sharedHist;ct&&!ve||(at($t.doc,ve),dt($t.doc,pt,ve))}}}dt(it,null,!0)}function vo(it,at){if(at.cm)throw new Error("This document is already in use.");it.doc=at,at.cm=it,mo(it),_r(it),no(it),it.options.lineWrapping||Sa(it),it.options.mode=at.modeOption,ss(it)}function no(it){(it.doc.direction=="rtl"?tn:Ot)(it.display.lineDiv,"CodeMirror-rtl")}function Co(it){Ye(it,function(){no(it),ss(it)})}function qr(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 Ir(it,at){var ct={from:hn(at.from),to:Wo(at),text:Wn(it,at.from,at.to)};return sl(it,ct,at.from.line,at.to.line+1),Ka(it,function(dt){return sl(dt,ct,at.from.line,at.to.line+1)},!0),ct}function Li(it){for(;it.length;){var at=me(it);if(at.ranges)it.pop();else break}}function Sr(it,at){if(at)return Li(it.done),me(it.done);if(it.done.length&&!me(it.done).ranges)return me(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),me(it.done)}function Fo(it,at,ct,dt){var pt=it.history;pt.undone.length=0;var Mt=+new Date,Rt,_t;if((pt.lastOp==dt||pt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&pt.lastModTime>Mt-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(Rt=Sr(pt,pt.lastOp==dt)))_t=me(Rt.changes),pn(at.from,at.to)==0&&pn(at.from,_t.to)==0?_t.to=Wo(at):Rt.changes.push(Ir(it,at));else{var $t=me(pt.done);for((!$t||!$t.ranges)&&ks(it.sel,pt.done),Rt={changes:[Ir(it,at)],generation:pt.generation},pt.done.push(Rt);pt.done.length>pt.undoDepth;)pt.done.shift(),pt.done[0].ranges||pt.done.shift()}pt.done.push(ct),pt.generation=++pt.maxGeneration,pt.lastModTime=pt.lastSelTime=Mt,pt.lastOp=pt.lastSelOp=dt,pt.lastOrigin=pt.lastSelOrigin=at.origin,_t||de(it,"historyAdded")}function Xo(it,at,ct,dt){var pt=at.charAt(0);return pt=="*"||pt=="+"&&ct.ranges.length==dt.ranges.length&&ct.somethingSelected()==dt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Xs(it,at,ct,dt){var pt=it.history,Mt=dt&&dt.origin;ct==pt.lastSelOp||Mt&&pt.lastSelOrigin==Mt&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==Mt||Xo(it,Mt,me(pt.done),at))?pt.done[pt.done.length-1]=at:ks(at,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=Mt,pt.lastSelOp=ct,dt&&dt.clearRedo!==!1&&Li(pt.undone)}function ks(it,at){var ct=me(at);ct&&ct.ranges&&ct.equals(it)||at.push(it)}function sl(it,at,ct,dt){var pt=at["spans_"+it.id],Mt=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,dt),function(Rt){Rt.markedSpans&&((pt||(pt=at["spans_"+it.id]={}))[Mt]=Rt.markedSpans),++Mt})}function va(it){if(!it)return null;for(var at,ct=0;ct<it.length;++ct)it[ct].marker.explicitlyCleared?at||(at=it.slice(0,ct)):at&&at.push(it[ct]);return at?at.length?at:null:it}function Oa(it,at){var ct=at["spans_"+it.id];if(!ct)return null;for(var dt=[],pt=0;pt<at.text.length;++pt)dt.push(va(ct[pt]));return dt}function ho(it,at){var ct=Oa(it,at),dt=er(it,at);if(!ct)return dt;if(!dt)return ct;for(var pt=0;pt<ct.length;++pt){var Mt=ct[pt],Rt=dt[pt];if(Mt&&Rt)t:for(var _t=0;_t<Rt.length;++_t){for(var $t=Rt[_t],ve=0;ve<Mt.length;++ve)if(Mt[ve].marker==$t.marker)continue t;Mt.push($t)}else Rt&&(ct[pt]=Rt)}return ct}function Bs(it,at,ct){for(var dt=[],pt=0;pt<it.length;++pt){var Mt=it[pt];if(Mt.ranges){dt.push(ct?lo.prototype.deepCopy.call(Mt):Mt);continue}var Rt=Mt.changes,_t=[];dt.push({changes:_t});for(var $t=0;$t<Rt.length;++$t){var ve=Rt[$t],ln=void 0;if(_t.push({from:ve.from,to:ve.to,text:ve.text}),at)for(var Le in ve)(ln=Le.match(/^spans_(\d+)$/))&&nn(at,Number(ln[1]))>-1&&(me(_t)[Le]=ve[Le],delete ve[Le])}}return dt}function ll(it,at,ct,dt){if(dt){var pt=it.anchor;if(ct){var Mt=pn(at,pt)<0;Mt!=pn(ct,pt)<0?(pt=at,at=ct):Mt!=pn(at,ct)<0&&(at=ct)}return new ar(pt,at)}else return new ar(ct||at,at)}function ka(it,at,ct,dt,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),Ja(it,new lo([ll(it.sel.primary(),at,ct,pt)],0),dt)}function Ha(it,at,ct){for(var dt=[],pt=it.cm&&(it.cm.display.shift||it.extend),Mt=0;Mt<it.sel.ranges.length;Mt++)dt[Mt]=ll(it.sel.ranges[Mt],at[Mt],null,pt);var Rt=Lo(it.cm,dt,it.sel.primIndex);Ja(it,Rt,ct)}function Va(it,at,ct,dt){var pt=it.sel.ranges.slice(0);pt[at]=ct,Ja(it,Lo(it.cm,pt,it.sel.primIndex),dt)}function ds(it,at,ct,dt){Ja(it,Ro(at,ct),dt)}function Os(it,at,ct){var dt={ranges:at.ranges,update:function(pt){this.ranges=[];for(var Mt=0;Mt<pt.length;Mt++)this.ranges[Mt]=new ar(Ln(it,pt[Mt].anchor),Ln(it,pt[Mt].head))},origin:ct&&ct.origin};return de(it,"beforeSelectionChange",it,dt),it.cm&&de(it.cm,"beforeSelectionChange",it.cm,dt),dt.ranges!=at.ranges?Lo(it.cm,dt.ranges,dt.ranges.length-1):at}function ra(it,at,ct){var dt=it.history.done,pt=me(dt);pt&&pt.ranges?(dt[dt.length-1]=at,js(it,at,ct)):Ja(it,at,ct)}function Ja(it,at,ct){js(it,at,ct),Xs(it,it.sel,it.cm?it.cm.curOp.id:NaN,ct)}function js(it,at,ct){(An(it,"beforeSelectionChange")||it.cm&&An(it.cm,"beforeSelectionChange"))&&(at=Os(it,at,ct));var dt=ct&&ct.bias||(pn(at.primary().head,it.sel.primary().head)<0?-1:1);Ia(it,ms(it,at,dt,!0)),!(ct&&ct.scroll===!1)&&it.cm&&Xr(it.cm)}function Ia(it,at){at.equals(it.sel)||(it.sel=at,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,Ke(it.cm)),zi(it,"cursorActivity",it))}function yo(it){Ia(it,ms(it,it.sel,null,!1))}function ms(it,at,ct,dt){for(var pt,Mt=0;Mt<at.ranges.length;Mt++){var Rt=at.ranges[Mt],_t=at.ranges.length==it.sel.ranges.length&&it.sel.ranges[Mt],$t=Cu(it,Rt.anchor,_t&&_t.anchor,ct,dt),ve=Cu(it,Rt.head,_t&&_t.head,ct,dt);(pt||$t!=Rt.anchor||ve!=Rt.head)&&(pt||(pt=at.ranges.slice(0,Mt)),pt[Mt]=new ar($t,ve))}return pt?Lo(it.cm,pt,at.primIndex):at}function Is(it,at,ct,dt,pt){var Mt=mn(it,at.line);if(Mt.markedSpans)for(var Rt=0;Rt<Mt.markedSpans.length;++Rt){var _t=Mt.markedSpans[Rt],$t=_t.marker,ve="selectLeft"in $t?!$t.selectLeft:$t.inclusiveLeft,ln="selectRight"in $t?!$t.selectRight:$t.inclusiveRight;if((_t.from==null||(ve?_t.from<=at.ch:_t.from<at.ch))&&(_t.to==null||(ln?_t.to>=at.ch:_t.to>at.ch))){if(pt&&(de($t,"beforeCursorEnter"),$t.explicitlyCleared))if(Mt.markedSpans){--Rt;continue}else break;if(!$t.atomic)continue;if(ct){var Le=$t.find(dt<0?1:-1),zn=void 0;if((dt<0?ln:ve)&&(Le=ql(it,Le,-dt,Le&&Le.line==at.line?Mt:null)),Le&&Le.line==at.line&&(zn=pn(Le,ct))&&(dt<0?zn<0:zn>0))return Is(it,Le,at,dt,pt)}var Dn=$t.find(dt<0?-1:1);return(dt<0?ve:ln)&&(Dn=ql(it,Dn,dt,Dn.line==at.line?Mt:null)),Dn?Is(it,Dn,at,dt,pt):null}}return at}function Cu(it,at,ct,dt,pt){var Mt=dt||1,Rt=Is(it,at,ct,Mt,pt)||!pt&&Is(it,at,ct,Mt,!0)||Is(it,at,ct,-Mt,pt)||!pt&&Is(it,at,ct,-Mt,!0);return Rt||(it.cantEdit=!0,Ge(it.first,0))}function ql(it,at,ct,dt){return ct<0&&at.ch==0?at.line>it.first?Ln(it,Ge(at.line-1)):null:ct>0&&at.ch==(dt||mn(it,at.line)).text.length?at.line<it.first+it.size-1?Ge(at.line+1,0):null:new Ge(at.line,at.ch+ct)}function Wa(it){it.setSelection(Ge(it.firstLine(),0),Ge(it.lastLine()),Te)}function ul(it,at,ct){var dt={canceled:!1,from:at.from,to:at.to,text:at.text,origin:at.origin,cancel:function(){return dt.canceled=!0}};return ct&&(dt.update=function(pt,Mt,Rt,_t){pt&&(dt.from=Ln(it,pt)),Mt&&(dt.to=Ln(it,Mt)),Rt&&(dt.text=Rt),_t!==void 0&&(dt.origin=_t)}),de(it,"beforeChange",it,dt),it.cm&&de(it.cm,"beforeChange",it.cm,dt),dt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:dt.from,to:dt.to,text:dt.text,origin:dt.origin}}function ls(it,at,ct){if(it.cm){if(!it.cm.curOp)return En(it.cm,ls)(it,at,ct);if(it.cm.state.suppressEdits)return}if(!((An(it,"beforeChange")||it.cm&&An(it.cm,"beforeChange"))&&(at=ul(it,at,!0),!at))){var dt=Lr&&!ct&&ko(it,at.from,at.to);if(dt)for(var pt=dt.length-1;pt>=0;--pt)is(it,{from:dt[pt].from,to:dt[pt].to,text:pt?[""]:at.text,origin:at.origin});else is(it,at)}}function is(it,at){if(!(at.text.length==1&&at.text[0]==""&&pn(at.from,at.to)==0)){var ct=ja(it,at);Fo(it,at,ct,it.cm?it.cm.curOp.id:NaN),Il(it,at,ct,er(it,at));var dt=[];Ka(it,function(pt,Mt){!Mt&&nn(dt,pt.history)==-1&&(Qa(pt.history,at),dt.push(pt.history)),Il(pt,at,null,er(pt,at))})}}function hu(it,at,ct){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!ct)){for(var pt=it.history,Mt,Rt=it.sel,_t=at=="undo"?pt.done:pt.undone,$t=at=="undo"?pt.undone:pt.done,ve=0;ve<_t.length&&(Mt=_t[ve],!(ct?Mt.ranges&&!Mt.equals(it.sel):!Mt.ranges));ve++);if(ve!=_t.length){for(pt.lastOrigin=pt.lastSelOrigin=null;;)if(Mt=_t.pop(),Mt.ranges){if(ks(Mt,$t),ct&&!Mt.equals(it.sel)){Ja(it,Mt,{clearRedo:!1});return}Rt=Mt}else if(dt){_t.push(Mt);return}else break;var ln=[];ks(Rt,$t),$t.push({changes:ln,generation:pt.generation}),pt.generation=Mt.generation||++pt.maxGeneration;for(var Le=An(it,"beforeChange")||it.cm&&An(it.cm,"beforeChange"),zn=function(Bi){var $i=Mt.changes[Bi];if($i.origin=at,Le&&!ul(it,$i,!1))return _t.length=0,{};ln.push(Ir(it,$i));var br=Bi?ja(it,$i):me(_t);Il(it,$i,br,ho(it,$i)),!Bi&&it.cm&&it.cm.scrollIntoView({from:$i.from,to:Wo($i)});var io=[];Ka(it,function(Vr,So){!So&&nn(io,Vr.history)==-1&&(Qa(Vr.history,$i),io.push(Vr.history)),Il(Vr,$i,null,ho(Vr,$i))})},Dn=Mt.changes.length-1;Dn>=0;--Dn){var Ni=zn(Dn);if(Ni)return Ni.v}}}}function oh(it,at){if(at!=0&&(it.first+=at,it.sel=new lo(Un(it.sel.ranges,function(pt){return new ar(Ge(pt.anchor.line+at,pt.anchor.ch),Ge(pt.head.line+at,pt.head.ch))}),it.sel.primIndex),it.cm)){ss(it.cm,it.first,it.first-at,at);for(var ct=it.cm.display,dt=ct.viewFrom;dt<ct.viewTo;dt++)na(it.cm,dt,"gutter")}}function Il(it,at,ct,dt){if(it.cm&&!it.cm.curOp)return En(it.cm,Il)(it,at,ct,dt);if(at.to.line<it.first){oh(it,at.text.length-1-(at.to.line-at.from.line));return}if(!(at.from.line>it.lastLine())){if(at.from.line<it.first){var pt=at.text.length-1-(it.first-at.from.line);oh(it,pt),at={from:Ge(it.first,0),to:Ge(at.to.line+pt,at.to.ch),text:[me(at.text)],origin:at.origin}}var Mt=it.lastLine();at.to.line>Mt&&(at={from:at.from,to:Ge(Mt,mn(it,Mt).text.length),text:[at.text[0]],origin:at.origin}),at.removed=Wn(it,at.from,at.to),ct||(ct=ja(it,at)),it.cm?Gu(it.cm,at,dt):Ca(it,at,dt),js(it,ct,Te),it.cantEdit&&Cu(it,Ge(it.firstLine(),0))&&(it.cantEdit=!1)}}function Gu(it,at,ct){var dt=it.doc,pt=it.display,Mt=at.from,Rt=at.to,_t=!1,$t=Mt.line;it.options.lineWrapping||($t=ue($r(mn(dt,Mt.line))),dt.iter($t,Rt.line+1,function(Dn){if(Dn==pt.maxLine)return _t=!0,!0})),dt.sel.contains(at.from,at.to)>-1&&Ke(it),Ca(dt,at,ct,Es(it)),it.options.lineWrapping||(dt.iter($t,Mt.line+at.text.length,function(Dn){var Ni=Ma(Dn);Ni>pt.maxLineLength&&(pt.maxLine=Dn,pt.maxLineLength=Ni,pt.maxLineChanged=!0,_t=!1)}),_t&&(it.curOp.updateMaxLine=!0)),Oi(dt,Mt.line),ei(it,400);var ve=at.text.length-(Rt.line-Mt.line)-1;at.full?ss(it):Mt.line==Rt.line&&at.text.length==1&&!Ba(it.doc,at)?na(it,Mt.line,"text"):ss(it,Mt.line,Rt.line+1,ve);var ln=An(it,"changes"),Le=An(it,"change");if(Le||ln){var zn={from:Mt,to:Rt,text:at.text,removed:at.removed,origin:at.origin};Le&&zi(it,"change",it,zn),ln&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(zn)}it.display.selForContextMenu=null}function Ku(it,at,ct,dt,pt){var Mt;dt||(dt=ct),pn(dt,ct)<0&&(Mt=[dt,ct],ct=Mt[0],dt=Mt[1]),typeof at=="string"&&(at=it.splitLines(at)),ls(it,{from:ct,to:dt,text:at,origin:pt})}function _l(it,at,ct,dt){ct<it.line?it.line+=dt:at<it.line&&(it.line=at,it.ch=0)}function ba(it,at,ct,dt){for(var pt=0;pt<it.length;++pt){var Mt=it[pt],Rt=!0;if(Mt.ranges){Mt.copied||(Mt=it[pt]=Mt.deepCopy(),Mt.copied=!0);for(var _t=0;_t<Mt.ranges.length;_t++)_l(Mt.ranges[_t].anchor,at,ct,dt),_l(Mt.ranges[_t].head,at,ct,dt);continue}for(var $t=0;$t<Mt.changes.length;++$t){var ve=Mt.changes[$t];if(ct<ve.from.line)ve.from=Ge(ve.from.line+dt,ve.from.ch),ve.to=Ge(ve.to.line+dt,ve.to.ch);else if(at<=ve.to.line){Rt=!1;break}}Rt||(it.splice(0,pt+1),pt=0)}}function Qa(it,at){var ct=at.from.line,dt=at.to.line,pt=at.text.length-(dt-ct)-1;ba(it.done,ct,dt,pt),ba(it.undone,ct,dt,pt)}function Hs(it,at,ct,dt){var pt=at,Mt=at;return typeof at=="number"?Mt=mn(it,kn(it,at)):pt=ue(at),pt==null?null:(dt(Mt,pt)&&it.cm&&na(it.cm,pt,ct),Mt)}function rs(it){this.lines=it,this.parent=null;for(var at=0,ct=0;ct<it.length;++ct)it[ct].parent=this,at+=it[ct].height;this.height=at}rs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,at){for(var ct=it,dt=it+at;ct<dt;++ct){var pt=this.lines[ct];this.height-=pt.height,Ga(pt),zi(pt,"delete")}this.lines.splice(it,at)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,at,ct){this.height+=ct,this.lines=this.lines.slice(0,it).concat(at).concat(this.lines.slice(it));for(var dt=0;dt<at.length;++dt)at[dt].parent=this},iterN:function(it,at,ct){for(var dt=it+at;it<dt;++it)if(ct(this.lines[it]))return!0}};function Ea(it){this.children=it;for(var at=0,ct=0,dt=0;dt<it.length;++dt){var pt=it[dt];at+=pt.chunkSize(),ct+=pt.height,pt.parent=this}this.size=at,this.height=ct,this.parent=null}Ea.prototype={chunkSize:function(){return this.size},removeInner:function(it,at){this.size-=at;for(var ct=0;ct<this.children.length;++ct){var dt=this.children[ct],pt=dt.chunkSize();if(it<pt){var Mt=Math.min(at,pt-it),Rt=dt.height;if(dt.removeInner(it,Mt),this.height-=Rt-dt.height,pt==Mt&&(this.children.splice(ct--,1),dt.parent=null),(at-=Mt)==0)break;it=0}else it-=pt}if(this.size-at<25&&(this.children.length>1||!(this.children[0]instanceof rs))){var _t=[];this.collapse(_t),this.children=[new rs(_t)],this.children[0].parent=this}},collapse:function(it){for(var at=0;at<this.children.length;++at)this.children[at].collapse(it)},insertInner:function(it,at,ct){this.size+=at.length,this.height+=ct;for(var dt=0;dt<this.children.length;++dt){var pt=this.children[dt],Mt=pt.chunkSize();if(it<=Mt){if(pt.insertInner(it,at,ct),pt.lines&&pt.lines.length>50){for(var Rt=pt.lines.length%25+25,_t=Rt;_t<pt.lines.length;){var $t=new rs(pt.lines.slice(_t,_t+=25));pt.height-=$t.height,this.children.splice(++dt,0,$t),$t.parent=this}pt.lines=pt.lines.slice(0,Rt),this.maybeSpill()}break}it-=Mt}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var at=it.children.splice(it.children.length-5,5),ct=new Ea(at);if(it.parent){it.size-=ct.size,it.height-=ct.height;var pt=nn(it.parent.children,it);it.parent.children.splice(pt+1,0,ct)}else{var dt=new Ea(it.children);dt.parent=it,it.children=[dt,ct],it=dt}ct.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,at,ct){for(var dt=0;dt<this.children.length;++dt){var pt=this.children[dt],Mt=pt.chunkSize();if(it<Mt){var Rt=Math.min(at,Mt-it);if(pt.iterN(it,Rt,ct))return!0;if((at-=Rt)==0)break;it=0}else it-=Mt}}};var Ws=function(it,at,ct){if(ct)for(var dt in ct)ct.hasOwnProperty(dt)&&(this[dt]=ct[dt]);this.doc=it,this.node=at};Ws.prototype.clear=function(){var it=this.doc.cm,at=this.line.widgets,ct=this.line,dt=ue(ct);if(!(dt==null||!at)){for(var pt=0;pt<at.length;++pt)at[pt]==this&&at.splice(pt--,1);at.length||(ct.widgets=null);var Mt=Ll(this);pi(ct,Math.max(0,ct.height-Mt)),it&&(Ye(it,function(){Sl(it,ct,-Mt),na(it,dt,"widget")}),zi(it,"lineWidgetCleared",it,this,dt))}},Ws.prototype.changed=function(){var it=this,at=this.height,ct=this.doc.cm,dt=this.line;this.height=null;var pt=Ll(this)-at;pt&&(ri(this.doc,dt)||pi(dt,dt.height+pt),ct&&Ye(ct,function(){ct.curOp.forceUpdate=!0,Sl(ct,dt,pt),zi(ct,"lineWidgetChanged",ct,it,ue(dt))}))},Yn(Ws);function Sl(it,at,ct){Io(at)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Ur(it,ct)}function bu(it,at,ct,dt){var pt=new Ws(it,ct,dt),Mt=it.cm;return Mt&&pt.noHScroll&&(Mt.display.alignWidgets=!0),Hs(it,at,"widget",function(Rt){var _t=Rt.widgets||(Rt.widgets=[]);if(pt.insertAt==null?_t.push(pt):_t.splice(Math.min(_t.length-1,Math.max(0,pt.insertAt)),0,pt),pt.line=Rt,Mt&&!ri(it,Rt)){var $t=Io(Rt)<it.scrollTop;pi(Rt,Rt.height+Ll(pt)),$t&&Ur(Mt,pt.height),Mt.curOp.forceUpdate=!0}return!0}),Mt&&zi(Mt,"lineWidgetAdded",Mt,pt,typeof at=="number"?at:ue(at)),pt}var ac=0,Ue=function(it,at){this.lines=[],this.type=at,this.doc=it,this.id=++ac};Ue.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,at=it&&!it.curOp;if(at&&Pa(it),An(this,"clear")){var ct=this.find();ct&&zi(this,"clear",ct.from,ct.to)}for(var dt=null,pt=null,Mt=0;Mt<this.lines.length;++Mt){var Rt=this.lines[Mt],_t=ea(Rt.markedSpans,this);it&&!this.collapsed?na(it,ue(Rt),"text"):it&&(_t.to!=null&&(pt=ue(Rt)),_t.from!=null&&(dt=ue(Rt))),Rt.markedSpans=bo(Rt.markedSpans,_t),_t.from==null&&this.collapsed&&!ri(this.doc,Rt)&&it&&pi(Rt,rh(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var $t=0;$t<this.lines.length;++$t){var ve=$r(this.lines[$t]),ln=Ma(ve);ln>it.display.maxLineLength&&(it.display.maxLine=ve,it.display.maxLineLength=ln,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&ss(it,dt,pt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&yo(it.doc)),it&&zi(it,"markerCleared",it,this,dt,pt),at&&As(it),this.parent&&this.parent.clear()}},Ue.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var ct,dt,pt=0;pt<this.lines.length;++pt){var Mt=this.lines[pt],Rt=ea(Mt.markedSpans,this);if(Rt.from!=null&&(ct=Ge(at?Mt:ue(Mt),Rt.from),it==-1))return ct;if(Rt.to!=null&&(dt=Ge(at?Mt:ue(Mt),Rt.to),it==1))return dt}return ct&&{from:ct,to:dt}},Ue.prototype.changed=function(){var it=this,at=this.find(-1,!0),ct=this,dt=this.doc.cm;!at||!dt||Ye(dt,function(){var pt=at.line,Mt=ue(at.line),Rt=Zu(dt,Mt);if(Rt&&(cl(Rt),dt.curOp.selectionChanged=dt.curOp.forceUpdate=!0),dt.curOp.updateMaxLine=!0,!ri(ct.doc,pt)&&ct.height!=null){var _t=ct.height;ct.height=null;var $t=Ll(ct)-_t;$t&&pi(pt,pt.height+$t)}zi(dt,"markerChanged",dt,it)})},Ue.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(!at.maybeHiddenMarkers||nn(at.maybeHiddenMarkers,this)==-1)&&(at.maybeUnhiddenMarkers||(at.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},Ue.prototype.detachLine=function(it){if(this.lines.splice(nn(this.lines,it),1),!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(at.maybeHiddenMarkers||(at.maybeHiddenMarkers=[])).push(this)}},Yn(Ue);function wh(it,at,ct,dt,pt){if(dt&&dt.shared)return Rc(it,at,ct,dt,pt);if(it.cm&&!it.cm.curOp)return En(it.cm,wh)(it,at,ct,dt,pt);var Mt=new Ue(it,pt),Rt=pn(at,ct);if(dt&&Tn(dt,Mt,!1),Rt>0||Rt==0&&Mt.clearWhenEmpty!==!1)return Mt;if(Mt.replacedWith&&(Mt.collapsed=!0,Mt.widgetNode=fe("span",[Mt.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||Mt.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(Mt.widgetNode.insertLeft=!0)),Mt.collapsed){if(uo(it,at.line,at,ct,Mt)||at.line!=ct.line&&uo(it,ct.line,at,ct,Mt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Mn()}Mt.addToHistory&&Fo(it,{from:at,to:ct,origin:"markText"},it.sel,NaN);var _t=at.line,$t=it.cm,ve;if(it.iter(_t,ct.line+1,function(Le){$t&&Mt.collapsed&&!$t.options.lineWrapping&&$r(Le)==$t.display.maxLine&&(ve=!0),Mt.collapsed&&_t!=at.line&&pi(Le,0),ca(Le,new Or(Mt,_t==at.line?at.ch:null,_t==ct.line?ct.ch:null)),++_t}),Mt.collapsed&&it.iter(at.line,ct.line+1,function(Le){ri(it,Le)&&pi(Le,0)}),Mt.clearOnEnter&&he(Mt,"beforeCursorEnter",function(){return Mt.clear()}),Mt.readOnly&&(wo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Mt.collapsed&&(Mt.id=++ac,Mt.atomic=!0),$t){if(ve&&($t.curOp.updateMaxLine=!0),Mt.collapsed)ss($t,at.line,ct.line+1);else if(Mt.className||Mt.startStyle||Mt.endStyle||Mt.css||Mt.attributes||Mt.title)for(var ln=at.line;ln<=ct.line;ln++)na($t,ln,"text");Mt.atomic&&yo($t.doc),zi($t,"markerAdded",$t,Mt)}return Mt}var ah=function(it,at){this.markers=it,this.primary=at;for(var ct=0;ct<it.length;++ct)it[ct].parent=this};ah.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();zi(this,"clear")}},ah.prototype.find=function(it,at){return this.primary.find(it,at)},Yn(ah);function Rc(it,at,ct,dt,pt){dt=Tn(dt),dt.shared=!1;var Mt=[wh(it,at,ct,dt,pt)],Rt=Mt[0],_t=dt.widgetNode;return Ka(it,function($t){_t&&(dt.widgetNode=_t.cloneNode(!0)),Mt.push(wh($t,Ln($t,at),Ln($t,ct),dt,pt));for(var ve=0;ve<$t.linked.length;++ve)if($t.linked[ve].isParent)return;Rt=me(Mt)}),new ah(Mt,Rt)}function vd(it){return it.findMarks(Ge(it.first,0),it.clipPos(Ge(it.lastLine())),function(at){return at.parent})}function Rh(it,at){for(var ct=0;ct<at.length;ct++){var dt=at[ct],pt=dt.find(),Mt=it.clipPos(pt.from),Rt=it.clipPos(pt.to);if(pn(Mt,Rt)){var _t=wh(it,Mt,Rt,dt.primary,dt.primary.type);dt.markers.push(_t),_t.parent=dt}}}function Ph(it){for(var at=function(dt){var pt=it[dt],Mt=[pt.primary.doc];Ka(pt.primary.doc,function($t){return Mt.push($t)});for(var Rt=0;Rt<pt.markers.length;Rt++){var _t=pt.markers[Rt];nn(Mt,_t.doc)==-1&&(_t.parent=null,pt.markers.splice(Rt--,1))}},ct=0;ct<it.length;ct++)at(ct)}var cf=0,fl=function(it,at,ct,dt,pt){if(!(this instanceof fl))return new fl(it,at,ct,dt,pt);ct==null&&(ct=0),Ea.call(this,[new rs([new Ta("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var Mt=Ge(ct,0);this.sel=Ro(Mt),this.history=new qr(null),this.id=++cf,this.modeOption=at,this.lineSep=dt,this.direction=pt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Ca(this,{from:Mt,to:Mt,text:it}),Ja(this,Ro(Mt),Te)};fl.prototype=ni(Ea.prototype,{constructor:fl,iter:function(it,at,ct){ct?this.iterN(it-this.first,at-it,ct):this.iterN(this.first,this.first+this.size,it)},insert:function(it,at){for(var ct=0,dt=0;dt<at.length;++dt)ct+=at[dt].height;this.insertInner(it-this.first,at,ct)},remove:function(it,at){this.removeInner(it-this.first,at)},getValue:function(it){var at=Mi(this,this.first,this.first+this.size);return it===!1?at:at.join(it||this.lineSeparator())},setValue:wn(function(it){var at=Ge(this.first,0),ct=this.first+this.size-1;ls(this,{from:at,to:Ge(ct,mn(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Kr(this.cm,0,0),Ja(this,Ro(at),Te)}),replaceRange:function(it,at,ct,dt){at=Ln(this,at),ct=ct?Ln(this,ct):at,Ku(this,it,at,ct,dt)},getRange:function(it,at,ct){var dt=Wn(this,Ln(this,it),Ln(this,at));return ct===!1?dt:dt.join(ct||this.lineSeparator())},getLine:function(it){var at=this.getLineHandle(it);return at&&at.text},getLineHandle:function(it){if(ui(this,it))return mn(this,it)},getLineNumber:function(it){return ue(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=mn(this,it)),$r(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return Ln(this,it)},getCursor:function(it){var at=this.sel.primary(),ct;return it==null||it=="head"?ct=at.head:it=="anchor"?ct=at.anchor:it=="end"||it=="to"||it===!1?ct=at.to():ct=at.from(),ct},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:wn(function(it,at,ct){ds(this,Ln(this,typeof it=="number"?Ge(it,at||0):it),null,ct)}),setSelection:wn(function(it,at,ct){ds(this,Ln(this,it),Ln(this,at||it),ct)}),extendSelection:wn(function(it,at,ct){ka(this,Ln(this,it),at&&Ln(this,at),ct)}),extendSelections:wn(function(it,at){Ha(this,Jn(this,it),at)}),extendSelectionsBy:wn(function(it,at){var ct=Un(this.sel.ranges,it);Ha(this,Jn(this,ct),at)}),setSelections:wn(function(it,at,ct){if(it.length){for(var dt=[],pt=0;pt<it.length;pt++)dt[pt]=new ar(Ln(this,it[pt].anchor),Ln(this,it[pt].head));at==null&&(at=Math.min(it.length-1,this.sel.primIndex)),Ja(this,Lo(this.cm,dt,at),ct)}}),addSelection:wn(function(it,at,ct){var dt=this.sel.ranges.slice(0);dt.push(new ar(Ln(this,it),Ln(this,at||it))),Ja(this,Lo(this.cm,dt,dt.length-1),ct)}),getSelection:function(it){for(var at=this.sel.ranges,ct,dt=0;dt<at.length;dt++){var pt=Wn(this,at[dt].from(),at[dt].to());ct=ct?ct.concat(pt):pt}return it===!1?ct:ct.join(it||this.lineSeparator())},getSelections:function(it){for(var at=[],ct=this.sel.ranges,dt=0;dt<ct.length;dt++){var pt=Wn(this,ct[dt].from(),ct[dt].to());it!==!1&&(pt=pt.join(it||this.lineSeparator())),at[dt]=pt}return at},replaceSelection:function(it,at,ct){for(var dt=[],pt=0;pt<this.sel.ranges.length;pt++)dt[pt]=it;this.replaceSelections(dt,at,ct||"+input")},replaceSelections:wn(function(it,at,ct){for(var dt=[],pt=this.sel,Mt=0;Mt<pt.ranges.length;Mt++){var Rt=pt.ranges[Mt];dt[Mt]={from:Rt.from(),to:Rt.to(),text:this.splitLines(it[Mt]),origin:ct}}for(var _t=at&&at!="end"&&Po(this,dt,at),$t=dt.length-1;$t>=0;$t--)ls(this,dt[$t]);_t?ra(this,_t):this.cm&&Xr(this.cm)}),undo:wn(function(){hu(this,"undo")}),redo:wn(function(){hu(this,"redo")}),undoSelection:wn(function(){hu(this,"undo",!0)}),redoSelection:wn(function(){hu(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,ct=0,dt=0;dt<it.done.length;dt++)it.done[dt].ranges||++at;for(var pt=0;pt<it.undone.length;pt++)it.undone[pt].ranges||++ct;return{undo:at,redo:ct}},clearHistory:function(){var it=this;this.history=new qr(this.history.maxGeneration),Ka(this,function(at){return at.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:Bs(this.history.done),undone:Bs(this.history.undone)}},setHistory:function(it){var at=this.history=new qr(this.history.maxGeneration);at.done=Bs(it.done.slice(0),null,!0),at.undone=Bs(it.undone.slice(0),null,!0)},setGutterMarker:wn(function(it,at,ct){return Hs(this,it,"gutter",function(dt){var pt=dt.gutterMarkers||(dt.gutterMarkers={});return pt[at]=ct,!ct&&se(pt)&&(dt.gutterMarkers=null),!0})}),clearGutter:wn(function(it){var at=this;this.iter(function(ct){ct.gutterMarkers&&ct.gutterMarkers[it]&&Hs(at,ct,"gutter",function(){return ct.gutterMarkers[it]=null,se(ct.gutterMarkers)&&(ct.gutterMarkers=null),!0})})}),lineInfo:function(it){var at;if(typeof it=="number"){if(!ui(this,it)||(at=it,it=mn(this,it),!it))return null}else if(at=ue(it),at==null)return null;return{line:at,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:wn(function(it,at,ct){return Hs(this,it,at=="gutter"?"gutter":"class",function(dt){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass";if(!dt[pt])dt[pt]=ct;else{if(wt(ct).test(dt[pt]))return!1;dt[pt]+=" "+ct}return!0})}),removeLineClass:wn(function(it,at,ct){return Hs(this,it,at=="gutter"?"gutter":"class",function(dt){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass",Mt=dt[pt];if(Mt)if(ct==null)dt[pt]=null;else{var Rt=Mt.match(wt(ct));if(!Rt)return!1;var _t=Rt.index+Rt[0].length;dt[pt]=Mt.slice(0,Rt.index)+(!Rt.index||_t==Mt.length?"":" ")+Mt.slice(_t)||null}else return!1;return!0})}),addLineWidget:wn(function(it,at,ct){return bu(this,it,at,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,at,ct){return wh(this,Ln(this,it),Ln(this,at),ct,ct&&ct.type||"range")},setBookmark:function(it,at){var ct={replacedWith:at&&(at.nodeType==null?at.widget:at),insertLeft:at&&at.insertLeft,clearWhenEmpty:!1,shared:at&&at.shared,handleMouseEvents:at&&at.handleMouseEvents};return it=Ln(this,it),wh(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=Ln(this,it);var at=[],ct=mn(this,it.line).markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt){var pt=ct[dt];(pt.from==null||pt.from<=it.ch)&&(pt.to==null||pt.to>=it.ch)&&at.push(pt.marker.parent||pt.marker)}return at},findMarks:function(it,at,ct){it=Ln(this,it),at=Ln(this,at);var dt=[],pt=it.line;return this.iter(it.line,at.line+1,function(Mt){var Rt=Mt.markedSpans;if(Rt)for(var _t=0;_t<Rt.length;_t++){var $t=Rt[_t];!($t.to!=null&&pt==it.line&&it.ch>=$t.to||$t.from==null&&pt!=it.line||$t.from!=null&&pt==at.line&&$t.from>=at.ch)&&(!ct||ct($t.marker))&&dt.push($t.marker.parent||$t.marker)}++pt}),dt},getAllMarks:function(){var it=[];return this.iter(function(at){var ct=at.markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt)ct[dt].from!=null&&it.push(ct[dt].marker)}),it},posFromIndex:function(it){var at,ct=this.first,dt=this.lineSeparator().length;return this.iter(function(pt){var Mt=pt.text.length+dt;if(Mt>it)return at=it,!0;it-=Mt,++ct}),Ln(this,Ge(ct,at))},indexFromPos:function(it){it=Ln(this,it);var at=it.ch;if(it.line<this.first||it.ch<0)return 0;var ct=this.lineSeparator().length;return this.iter(this.first,it.line,function(dt){at+=dt.text.length+ct}),at},copy:function(it){var at=new fl(Mi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return at.scrollTop=this.scrollTop,at.scrollLeft=this.scrollLeft,at.sel=this.sel,at.extend=!1,it&&(at.history.undoDepth=this.history.undoDepth,at.setHistory(this.getHistory())),at},linkedDoc:function(it){it||(it={});var at=this.first,ct=this.first+this.size;it.from!=null&&it.from>at&&(at=it.from),it.to!=null&&it.to<ct&&(ct=it.to);var dt=new fl(Mi(this,at,ct),it.mode||this.modeOption,at,this.lineSep,this.direction);return it.sharedHist&&(dt.history=this.history),(this.linked||(this.linked=[])).push({doc:dt,sharedHist:it.sharedHist}),dt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Rh(dt,vd(this)),dt},unlinkDoc:function(it){if(it instanceof qa&&(it=it.doc),this.linked)for(var at=0;at<this.linked.length;++at){var ct=this.linked[at];if(ct.doc==it){this.linked.splice(at,1),it.unlinkDoc(this),Ph(vd(this));break}}if(it.history==this.history){var dt=[it.id];Ka(it,function(pt){return dt.push(pt.id)},!0),it.history=new qr(null),it.history.done=Bs(this.history.done,dt),it.history.undone=Bs(this.history.undone,dt)}},iterLinkedDocs:function(it){Ka(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):Xi(it)},lineSeparator:function(){return this.lineSep||`
`},setDirection:wn(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(at){return at.order=null}),this.cm&&Co(this.cm))})}),fl.prototype.eachLine=fl.prototype.iter;var id=0;function Od(it){var at=this;if(ff(at),!(De(at,it)||Ml(at.display,it))){gi(it),Xt&&(id=+new Date);var ct=nl(at,it,!0),dt=it.dataTransfer.files;if(!(!ct||at.isReadOnly()))if(dt&&dt.length&&window.FileReader&&window.File)for(var pt=dt.length,Mt=Array(pt),Rt=0,_t=function(){++Rt==pt&&En(at,function(){ct=Ln(at.doc,ct);var Dn={from:ct,to:ct,text:at.doc.splitLines(Mt.filter(function(Ni){return Ni!=null}).join(at.doc.lineSeparator())),origin:"paste"};ls(at.doc,Dn),ra(at.doc,Ro(Ln(at.doc,ct),Ln(at.doc,Wo(Dn))))})()},$t=function(Dn,Ni){if(at.options.allowDropFileTypes&&nn(at.options.allowDropFileTypes,Dn.type)==-1){_t();return}var Bi=new FileReader;Bi.onerror=function(){return _t()},Bi.onload=function(){var $i=Bi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($i)){_t();return}Mt[Ni]=$i,_t()},Bi.readAsText(Dn)},ve=0;ve<dt.length;ve++)$t(dt[ve],ve);else{if(at.state.draggingText&&at.doc.sel.contains(ct)>-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var ln=it.dataTransfer.getData("Text");if(ln){var Le;if(at.state.draggingText&&!at.state.draggingText.copy&&(Le=at.listSelections()),js(at.doc,Ro(ct,ct)),Le)for(var zn=0;zn<Le.length;++zn)Ku(at.doc,"",Le[zn].anchor,Le[zn].head,"drag");at.replaceSelection(ln,"around","paste"),at.display.input.focus()}}catch(Dn){}}}}function Id(it,at){if(Xt&&(!it.state.draggingText||+new Date-id<100)){Gi(at);return}if(!(De(it,at)||Ml(it.display,at))&&(at.dataTransfer.setData("Text",it.getSelection()),at.dataTransfer.effectAllowed="copyMove",at.dataTransfer.setDragImage&&!xe)){var ct=Ut("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),at.dataTransfer.setDragImage(ct,0,0),ne&&ct.parentNode.removeChild(ct)}}function Rd(it,at){var ct=nl(it,at);if(ct){var dt=document.createDocumentFragment();vn(it,ct,dt),it.display.dragCursor||(it.display.dragCursor=Ut("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Zt(it.display.dragCursor,dt)}}function ff(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function zd(it){if(document.getElementsByClassName){for(var at=document.getElementsByClassName("CodeMirror"),ct=[],dt=0;dt<at.length;dt++){var pt=at[dt].CodeMirror;pt&&ct.push(pt)}ct.length&&ct[0].operation(function(){for(var Mt=0;Mt<ct.length;Mt++)it(ct[Mt])})}}var jd=!1;function du(){jd||(zh(),jd=!0)}function zh(){var it;he(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,zd(zc)},100))}),he(window,"blur",function(){return zd(bi)})}function zc(it){var at=it.display;at.cachedCharWidth=at.cachedTextHeight=at.cachedPaddingH=null,at.scrollbarsClipped=!1,it.setSize()}for(var Vu={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},jh=0;jh<10;jh++)Vu[jh+48]=Vu[jh+96]=String(jh);for(var rd=65;rd<=90;rd++)Vu[rd]=String.fromCharCode(rd);for(var od=1;od<=12;od++)Vu[od+111]=Vu[od+63235]="F"+od;var Rl={};Rl.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"},Rl.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"},Rl.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"},Rl.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"]},Rl.default=ht?Rl.macDefault:Rl.pcDefault;function sc(it){var at=it.split(/-(?!$)/);it=at[at.length-1];for(var ct,dt,pt,Mt,Rt=0;Rt<at.length-1;Rt++){var _t=at[Rt];if(/^(cmd|meta|m)$/i.test(_t))Mt=!0;else if(/^a(lt)?$/i.test(_t))ct=!0;else if(/^(c|ctrl|control)$/i.test(_t))dt=!0;else if(/^s(hift)?$/i.test(_t))pt=!0;else throw new Error("Unrecognized modifier name: "+_t)}return ct&&(it="Alt-"+it),dt&&(it="Ctrl-"+it),Mt&&(it="Cmd-"+it),pt&&(it="Shift-"+it),it}function Hd(it){var at={};for(var ct in it)if(it.hasOwnProperty(ct)){var dt=it[ct];if(/^(name|fallthrough|(de|at)tach)$/.test(ct))continue;if(dt=="..."){delete it[ct];continue}for(var pt=Un(ct.split(" "),sc),Mt=0;Mt<pt.length;Mt++){var Rt=void 0,_t=void 0;Mt==pt.length-1?(_t=pt.join(" "),Rt=dt):(_t=pt.slice(0,Mt+1).join(" "),Rt="...");var $t=at[_t];if(!$t)at[_t]=Rt;else if($t!=Rt)throw new Error("Inconsistent bindings for "+_t)}delete it[ct]}for(var ve in at)it[ve]=at[ve];return it}function tu(it,at,ct,dt){at=Ch(at);var pt=at.call?at.call(it,dt):at[it];if(pt===!1)return"nothing";if(pt==="...")return"multi";if(pt!=null&&ct(pt))return"handled";if(at.fallthrough){if(Object.prototype.toString.call(at.fallthrough)!="[object Array]")return tu(it,at.fallthrough,ct,dt);for(var Mt=0;Mt<at.fallthrough.length;Mt++){var Rt=tu(it,at.fallthrough[Mt],ct,dt);if(Rt)return Rt}}}function yd(it){var at=typeof it=="string"?it:Vu[it.keyCode];return at=="Ctrl"||at=="Alt"||at=="Shift"||at=="Mod"}function Wd(it,at,ct){var dt=it;return at.altKey&&dt!="Alt"&&(it="Alt-"+it),(Pt?at.metaKey:at.ctrlKey)&&dt!="Ctrl"&&(it="Ctrl-"+it),(Pt?at.ctrlKey:at.metaKey)&&dt!="Mod"&&(it="Cmd-"+it),!ct&&at.shiftKey&&dt!="Shift"&&(it="Shift-"+it),it}function lc(it,at){if(ne&&it.keyCode==34&&it.char)return!1;var ct=Vu[it.keyCode];return ct==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ct=it.code),Wd(ct,it,at))}function Ch(it){return typeof it=="string"?Rl[it]:it}function xl(it,at){for(var ct=it.doc.sel.ranges,dt=[],pt=0;pt<ct.length;pt++){for(var Mt=at(ct[pt]);dt.length&&pn(Mt.from,me(dt).to)<=0;){var Rt=dt.pop();if(pn(Rt.from,Mt.from)<0){Mt.from=Rt.from;break}}dt.push(Mt)}Ye(it,function(){for(var _t=dt.length-1;_t>=0;_t--)Ku(it.doc,"",dt[_t].from,dt[_t].to,"+delete");Xr(it)})}function Zd(it,at,ct){var dt=ee(it.text,at+ct,ct);return dt<0||dt>it.text.length?null:dt}function Js(it,at,ct){var dt=Zd(it,at.ch,ct);return dt==null?null:new Ge(at.line,dt,ct<0?"after":"before")}function Da(it,at,ct,dt,pt){if(it){at.doc.direction=="rtl"&&(pt=-pt);var Mt=jt(ct,at.doc.direction);if(Mt){var Rt=pt<0?me(Mt):Mt[0],_t=pt<0==(Rt.level==1),$t=_t?"after":"before",ve;if(Rt.level>0||at.doc.direction=="rtl"){var ln=Bl(at,ct);ve=pt<0?ct.text.length-1:0;var Le=Ol(at,ln,ve).top;ve=re(function(zn){return Ol(at,ln,zn).top==Le},pt<0==(Rt.level==1)?Rt.from:Rt.to-1,ve),$t=="before"&&(ve=Zd(ct,ve,1))}else ve=pt<0?Rt.to:Rt.from;return new Ge(dt,ve,$t)}}return new Ge(dt,pt<0?ct.text.length:0,pt<0?"before":"after")}function cs(it,at,ct,dt){var pt=jt(at,it.doc.direction);if(!pt)return Js(at,ct,dt);ct.ch>=at.text.length?(ct.ch=at.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var Mt=mt(pt,ct.ch,ct.sticky),Rt=pt[Mt];if(it.doc.direction=="ltr"&&Rt.level%2==0&&(dt>0?Rt.to>ct.ch:Rt.from<ct.ch))return Js(at,ct,dt);var _t=function(br,io){return Zd(at,br instanceof Ge?br.ch:br,io)},$t,ve=function(br){return it.options.lineWrapping?($t=$t||Bl(it,at),nd(it,at,$t,br)):{begin:0,end:at.text.length}},ln=ve(ct.sticky=="before"?_t(ct,-1):ct.ch);if(it.doc.direction=="rtl"||Rt.level==1){var Le=Rt.level==1==dt<0,zn=_t(ct,Le?1:-1);if(zn!=null&&(Le?zn<=Rt.to&&zn<=ln.end:zn>=Rt.from&&zn>=ln.begin)){var Dn=Le?"before":"after";return new Ge(ct.line,zn,Dn)}}var Ni=function(br,io,Vr){for(var So=function(Zs,Fl){return Fl?new Ge(ct.line,_t(Zs,1),"before"):new Ge(ct.line,Zs,"after")};br>=0&&br<pt.length;br+=io){var Qo=pt[br],Hr=io>0==(Qo.level!=1),pa=Hr?Vr.begin:_t(Vr.end,-1);if(Qo.from<=pa&&pa<Qo.to||(pa=Hr?Qo.from:_t(Qo.to,-1),Vr.begin<=pa&&pa<Vr.end))return So(pa,Hr)}},Bi=Ni(Mt+dt,dt,ln);if(Bi)return Bi;var $i=dt>0?ln.end:_t(ln.begin,-1);return $i!=null&&!(dt>0&&$i==at.text.length)&&(Bi=Ni(dt>0?0:pt.length-1,dt,ve($i)),Bi)?Bi:null}var gl={selectAll:Wa,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Te)},killLine:function(it){return xl(it,function(at){if(at.empty()){var ct=mn(it.doc,at.head.line).text.length;return at.head.ch==ct&&at.head.line<it.lastLine()?{from:at.head,to:Ge(at.head.line+1,0)}:{from:at.head,to:Ge(at.head.line,ct)}}else return{from:at.from(),to:at.to()}})},deleteLine:function(it){return xl(it,function(at){return{from:Ge(at.from().line,0),to:Ln(it.doc,Ge(at.to().line+1,0))}})},delLineLeft:function(it){return xl(it,function(at){return{from:Ge(at.from().line,0),to:at.from()}})},delWrappedLineLeft:function(it){return xl(it,function(at){var ct=it.charCoords(at.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return{from:dt,to:at.from()}})},delWrappedLineRight:function(it){return xl(it,function(at){var ct=it.charCoords(at.head,"div").top+5,dt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div");return{from:at.from(),to:dt}})},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(Ge(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(Ge(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(at){return cu(it,at.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(at){return uc(it,at.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(at){return fu(it,at.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div")},gn)},goLineLeft:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:0,top:ct},"div")},gn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return dt.ch<it.getLine(dt.line).search(/\S/)?uc(it,at.head):dt},gn)},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 at=[],ct=it.listSelections(),dt=it.options.tabSize,pt=0;pt<ct.length;pt++){var Mt=ct[pt].from(),Rt=ye(it.getLine(Mt.line),Mt.ch,dt);at.push(Hn(dt-Rt%dt))}it.replaceSelections(at)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return Ye(it,function(){for(var at=it.listSelections(),ct=[],dt=0;dt<at.length;dt++)if(at[dt].empty()){var pt=at[dt].head,Mt=mn(it.doc,pt.line).text;if(Mt){if(pt.ch==Mt.length&&(pt=new Ge(pt.line,pt.ch-1)),pt.ch>0)pt=new Ge(pt.line,pt.ch+1),it.replaceRange(Mt.charAt(pt.ch-1)+Mt.charAt(pt.ch-2),Ge(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var Rt=mn(it.doc,pt.line-1).text;Rt&&(pt=new Ge(pt.line,1),it.replaceRange(Mt.charAt(0)+it.doc.lineSeparator()+Rt.charAt(Rt.length-1),Ge(pt.line-1,Rt.length-1),pt,"+transpose"))}}ct.push(new ar(pt,pt))}it.setSelections(ct)})},newlineAndIndent:function(it){return Ye(it,function(){for(var at=it.listSelections(),ct=at.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),at[ct].anchor,at[ct].head,"+input");at=it.listSelections();for(var dt=0;dt<at.length;dt++)it.indentLine(at[dt].from().line,null,!0);Xr(it)})},openLine:function(it){return it.replaceSelection(`
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function cu(it,at){var ct=mn(it.doc,at),dt=$r(ct);return dt!=ct&&(at=ue(dt)),Da(!0,it,dt,at,1)}function fu(it,at){var ct=mn(it.doc,at),dt=Zo(ct);return dt!=ct&&(at=ue(dt)),Da(!0,it,ct,at,-1)}function uc(it,at){var ct=cu(it,at.line),dt=mn(it.doc,ct.line),pt=jt(dt,it.doc.direction);if(!pt||pt[0].level==0){var Mt=Math.max(ct.ch,dt.text.search(/\S/)),Rt=at.line==ct.line&&at.ch<=Mt&&at.ch;return Ge(ct.line,Rt?0:Mt,ct.sticky)}return ct}function Hh(it,at,ct){if(typeof at=="string"&&(at=gl[at],!at))return!1;it.display.input.ensurePolled();var dt=it.display.shift,pt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),ct&&(it.display.shift=!1),pt=at(it)!=_n}finally{it.display.shift=dt,it.state.suppressEdits=!1}return pt}function Gd(it,at,ct){for(var dt=0;dt<it.state.keyMaps.length;dt++){var pt=tu(at,it.state.keyMaps[dt],ct,it);if(pt)return pt}return it.options.extraKeys&&tu(at,it.options.extraKeys,ct,it)||tu(at,it.options.keyMap,ct,it)}var Tu=new Gt;function Yu(it,at,ct,dt){var pt=it.state.keySeq;if(pt){if(yd(at))return"handled";if(/\'$/.test(at)?it.state.keySeq=null:Tu.set(50,function(){it.state.keySeq==pt&&(it.state.keySeq=null,it.display.input.reset())}),gf(it,pt+" "+at,ct,dt))return!0}return gf(it,at,ct,dt)}function gf(it,at,ct,dt){var pt=Gd(it,at,dt);return pt=="multi"&&(it.state.keySeq=at),pt=="handled"&&zi(it,"keyHandled",it,at,ct),(pt=="handled"||pt=="multi")&&(gi(ct),Xn(it)),!!pt}function pf(it,at){var ct=lc(at,!0);return ct?at.shiftKey&&!it.state.keySeq?Yu(it,"Shift-"+ct,at,function(dt){return Hh(it,dt,!0)})||Yu(it,ct,at,function(dt){if(typeof dt=="string"?/^go[A-Z]/.test(dt):dt.motion)return Hh(it,dt)}):Yu(it,ct,at,function(dt){return Hh(it,dt)}):!1}function hc(it,at,ct){return Yu(it,"'"+ct+"'",at,function(dt){return Hh(it,dt,!0)})}var Du=null;function mf(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&(at.curOp.focus=pe(),!De(at,it))){Xt&&Se<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;at.display.shift=ct==16||it.shiftKey;var dt=pf(at,it);ne&&(Du=dt?ct:null,!dt&&ct==88&&!ai&&(ht?it.metaKey:it.ctrlKey)&&at.replaceSelection("",null,"cut")),At&&!ht&&!dt&&ct==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ct==18&&!/\bCodeMirror-crosshair\b/.test(at.display.lineDiv.className)&&Wf(at)}}function Wf(it){var at=it.display.lineDiv;tn(at,"CodeMirror-crosshair");function ct(dt){(dt.keyCode==18||!dt.altKey)&&(Ot(at,"CodeMirror-crosshair"),on(document,"keyup",ct),on(document,"mouseover",ct))}he(document,"keyup",ct),he(document,"mouseover",ct)}function vf(it){it.keyCode==16&&(this.doc.sel.shift=!1),De(this,it)}function sh(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&!(Ml(at.display,it)||De(at,it)||it.ctrlKey&&!it.altKey||ht&&it.metaKey)){var ct=it.keyCode,dt=it.charCode;if(ne&&ct==Du){Du=null,gi(it);return}if(!(ne&&(!it.which||it.which<10)&&pf(at,it))){var pt=String.fromCharCode(dt==null?ct:dt);pt!="\b"&&(hc(at,it,pt)||at.display.input.onKeyPress(it))}}}var Sg=400,Zf=function(it,at,ct){this.time=it,this.pos=at,this.button=ct};Zf.prototype.compare=function(it,at,ct){return this.time+Sg>it&&pn(at,this.pos)==0&&ct==this.button};var dc,Sd;function Gf(it,at){var ct=+new Date;return Sd&&Sd.compare(ct,it,at)?(dc=Sd=null,"triple"):dc&&dc.compare(ct,it,at)?(Sd=new Zf(ct,it,at),dc=null,"double"):(dc=new Zf(ct,it,at),Sd=null,"single")}function bh(it){var at=this,ct=at.display;if(!(De(at,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,Ml(ct,it)){Nt||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!Jo(at,it)){var dt=nl(at,it),pt=lr(it),Mt=dt?Gf(dt,pt):"single";window.focus(),pt==1&&at.state.selectingText&&at.state.selectingText(it),!(dt&&Kf(at,pt,dt,Mt,it))&&(pt==1?dt?yf(at,dt,Mt,it):yr(it)==ct.scroller&&gi(it):pt==2?(dt&&ka(at.doc,dt),setTimeout(function(){return ct.input.focus()},20)):pt==3&&(Ft?at.display.input.onContextMenu(it):Ii(at)))}}}function Kf(it,at,ct,dt,pt){var Mt="Click";return dt=="double"?Mt="Double"+Mt:dt=="triple"&&(Mt="Triple"+Mt),Mt=(at==1?"Left":at==2?"Middle":"Right")+Mt,Yu(it,Wd(Mt,pt),pt,function(Rt){if(typeof Rt=="string"&&(Rt=gl[Rt]),!Rt)return!1;var _t=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),_t=Rt(it,ct)!=_n}finally{it.state.suppressEdits=!1}return _t})}function jc(it,at,ct){var dt=it.getOption("configureMouse"),pt=dt?dt(it,at,ct):{};if(pt.unit==null){var Mt=st?ct.shiftKey&&ct.metaKey:ct.altKey;pt.unit=Mt?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(pt.extend==null||it.doc.extend)&&(pt.extend=it.doc.extend||ct.shiftKey),pt.addNew==null&&(pt.addNew=ht?ct.metaKey:ct.ctrlKey),pt.moveOnDrag==null&&(pt.moveOnDrag=!(ht?ct.altKey:ct.ctrlKey)),pt}function yf(it,at,ct,dt){Xt?setTimeout(_e(hi,it),0):it.curOp.focus=pe();var pt=jc(it,ct,dt),Mt=it.doc.sel,Rt;it.options.dragDrop&&rr&&!it.isReadOnly()&&ct=="single"&&(Rt=Mt.contains(at))>-1&&(pn((Rt=Mt.ranges[Rt]).from(),at)<0||at.xRel>0)&&(pn(Rt.to(),at)>0||at.xRel<0)?Hc(it,dt,at,pt):sp(it,dt,at,pt)}function Hc(it,at,ct,dt){var pt=it.display,Mt=!1,Rt=En(it,function(ve){Nt&&(pt.scroller.draggable=!1),it.state.draggingText=!1,on(pt.wrapper.ownerDocument,"mouseup",Rt),on(pt.wrapper.ownerDocument,"mousemove",_t),on(pt.scroller,"dragstart",$t),on(pt.scroller,"drop",Rt),Mt||(gi(ve),dt.addNew||ka(it.doc,ct,null,null,dt.extend),Nt&&!xe||Xt&&Se==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),_t=function(ve){Mt=Mt||Math.abs(at.clientX-ve.clientX)+Math.abs(at.clientY-ve.clientY)>=10},$t=function(){return Mt=!0};Nt&&(pt.scroller.draggable=!0),it.state.draggingText=Rt,Rt.copy=!dt.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),he(pt.wrapper.ownerDocument,"mouseup",Rt),he(pt.wrapper.ownerDocument,"mousemove",_t),he(pt.scroller,"dragstart",$t),he(pt.scroller,"drop",Rt),Ii(it),setTimeout(function(){return pt.input.focus()},20)}function Vf(it,at,ct){if(ct=="char")return new ar(at,at);if(ct=="word")return it.findWordAt(at);if(ct=="line")return new ar(Ge(at.line,0),Ln(it.doc,Ge(at.line+1,0)));var dt=ct(it,at);return new ar(dt.from,dt.to)}function sp(it,at,ct,dt){var pt=it.display,Mt=it.doc;gi(at);var Rt,_t,$t=Mt.sel,ve=$t.ranges;if(dt.addNew&&!dt.extend?(_t=Mt.sel.contains(ct),_t>-1?Rt=ve[_t]:Rt=new ar(ct,ct)):(Rt=Mt.sel.primary(),_t=Mt.sel.primIndex),dt.unit=="rectangle")dt.addNew||(Rt=new ar(ct,ct)),ct=nl(it,at,!0,!0),_t=-1;else{var ln=Vf(it,ct,dt.unit);dt.extend?Rt=ll(Rt,ln.anchor,ln.head,dt.extend):Rt=ln}dt.addNew?_t==-1?(_t=ve.length,Ja(Mt,Lo(it,ve.concat([Rt]),_t),{scroll:!1,origin:"*mouse"})):ve.length>1&&ve[_t].empty()&&dt.unit=="char"&&!dt.extend?(Ja(Mt,Lo(it,ve.slice(0,_t).concat(ve.slice(_t+1)),0),{scroll:!1,origin:"*mouse"}),$t=Mt.sel):Va(Mt,_t,Rt,rn):(_t=0,Ja(Mt,new lo([Rt],0),rn),$t=Mt.sel);var Le=ct;function zn(Vr){if(pn(Le,Vr)!=0)if(Le=Vr,dt.unit=="rectangle"){for(var So=[],Qo=it.options.tabSize,Hr=ye(mn(Mt,ct.line).text,ct.ch,Qo),pa=ye(mn(Mt,Vr.line).text,Vr.ch,Qo),Zs=Math.min(Hr,pa),Fl=Math.max(Hr,pa),tl=Math.min(ct.line,Vr.line),Ou=Math.min(it.lastLine(),Math.max(ct.line,Vr.line));tl<=Ou;tl++){var gu=mn(Mt,tl).text,Pl=Vn(gu,Zs,Qo);Zs==Fl?So.push(new ar(Ge(tl,Pl),Ge(tl,Pl))):gu.length>Pl&&So.push(new ar(Ge(tl,Pl),Ge(tl,Vn(gu,Fl,Qo))))}So.length||So.push(new ar(ct,ct)),Ja(Mt,Lo(it,$t.ranges.slice(0,_t).concat(So),_t),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Vr)}else{var Uu=Rt,eu=Vf(it,Vr,dt.unit),Cl=Uu.anchor,_a;pn(eu.anchor,Cl)>0?(_a=eu.head,Cl=dn(Uu.from(),eu.anchor)):(_a=eu.anchor,Cl=yn(Uu.to(),eu.head));var il=$t.ranges.slice(0);il[_t]=$a(it,new ar(Ln(Mt,Cl),_a)),Ja(Mt,Lo(it,il,_t),rn)}}var Dn=pt.wrapper.getBoundingClientRect(),Ni=0;function Bi(Vr){var So=++Ni,Qo=nl(it,Vr,!0,dt.unit=="rectangle");if(Qo)if(pn(Qo,Le)!=0){it.curOp.focus=pe(),zn(Qo);var Hr=In(pt,Mt);(Qo.line>=Hr.to||Qo.line<Hr.from)&&setTimeout(En(it,function(){Ni==So&&Bi(Vr)}),150)}else{var pa=Vr.clientY<Dn.top?-20:Vr.clientY>Dn.bottom?20:0;pa&&setTimeout(En(it,function(){Ni==So&&(pt.scroller.scrollTop+=pa,Bi(Vr))}),50)}}function $i(Vr){it.state.selectingText=!1,Ni=1/0,Vr&&(gi(Vr),pt.input.focus()),on(pt.wrapper.ownerDocument,"mousemove",br),on(pt.wrapper.ownerDocument,"mouseup",io),Mt.history.lastSelOrigin=null}var br=En(it,function(Vr){Vr.buttons===0||!lr(Vr)?$i(Vr):Bi(Vr)}),io=En(it,$i);it.state.selectingText=io,he(pt.wrapper.ownerDocument,"mousemove",br),he(pt.wrapper.ownerDocument,"mouseup",io)}function $a(it,at){var ct=at.anchor,dt=at.head,pt=mn(it.doc,ct.line);if(pn(ct,dt)==0&&ct.sticky==dt.sticky)return at;var Mt=jt(pt);if(!Mt)return at;var Rt=mt(Mt,ct.ch,ct.sticky),_t=Mt[Rt];if(_t.from!=ct.ch&&_t.to!=ct.ch)return at;var $t=Rt+(_t.from==ct.ch==(_t.level!=1)?0:1);if($t==0||$t==Mt.length)return at;var ve;if(dt.line!=ct.line)ve=(dt.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var ln=mt(Mt,dt.ch,dt.sticky),Le=ln-Rt||(dt.ch-ct.ch)*(_t.level==1?-1:1);ln==$t-1||ln==$t?ve=Le<0:ve=Le>0}var zn=Mt[$t+(ve?-1:0)],Dn=ve==(zn.level==1),Ni=Dn?zn.from:zn.to,Bi=Dn?"after":"before";return ct.ch==Ni&&ct.sticky==Bi?at:new ar(new Ge(ct.line,Ni,Bi),dt)}function Mo(it,at,ct,dt){var pt,Mt;if(at.touches)pt=at.touches[0].clientX,Mt=at.touches[0].clientY;else try{pt=at.clientX,Mt=at.clientY}catch(zn){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&gi(at);var Rt=it.display,_t=Rt.lineDiv.getBoundingClientRect();if(Mt>_t.bottom||!An(it,ct))return xi(at);Mt-=_t.top-Rt.viewOffset;for(var $t=0;$t<it.display.gutterSpecs.length;++$t){var ve=Rt.gutters.childNodes[$t];if(ve&&ve.getBoundingClientRect().right>=pt){var ln=Nn(it.doc,Mt),Le=it.display.gutterSpecs[$t];return de(it,ct,it,ln,Le.className,at),xi(at)}}}function Jo(it,at){return Mo(it,at,"gutterClick",!0)}function Ya(it,at){Ml(it.display,at)||Qs(it,at)||De(it,at,"contextmenu")||Ft||it.display.input.onContextMenu(at)}function Qs(it,at){return An(it,"gutterContextMenu")?Mo(it,at,"gutterContextMenu",!1):!1}function ad(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Cs(it)}var zl={toString:function(){return"CodeMirror.Init"}},Wh={},lh={};function cc(it){var at=it.optionHandlers;function ct(dt,pt,Mt,Rt){it.defaults[dt]=pt,Mt&&(at[dt]=Rt?function(_t,$t,ve){ve!=zl&&Mt(_t,$t,ve)}:Mt)}it.defineOption=ct,it.Init=zl,ct("value","",function(dt,pt){return dt.setValue(pt)},!0),ct("mode",null,function(dt,pt){dt.doc.modeOption=pt,_r(dt)},!0),ct("indentUnit",2,_r,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(dt){po(dt),Cs(dt),ss(dt)},!0),ct("lineSeparator",null,function(dt,pt){if(dt.doc.lineSep=pt,!!pt){var Mt=[],Rt=dt.doc.first;dt.doc.iter(function($t){for(var ve=0;;){var ln=$t.text.indexOf(pt,ve);if(ln==-1)break;ve=ln+pt.length,Mt.push(Ge(Rt,ln))}Rt++});for(var _t=Mt.length-1;_t>=0;_t--)Ku(dt.doc,pt,Mt[_t],Ge(Mt[_t].line,Mt[_t].ch+pt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,pt,Mt){dt.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),Mt!=zl&&dt.refresh()}),ct("specialCharPlaceholder",xs,function(dt){return dt.refresh()},!0),ct("electricChars",!0),ct("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(dt,pt){return dt.getInputField().spellcheck=pt},!0),ct("autocorrect",!1,function(dt,pt){return dt.getInputField().autocorrect=pt},!0),ct("autocapitalize",!1,function(dt,pt){return dt.getInputField().autocapitalize=pt},!0),ct("rtlMoveVisually",!gt),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(dt){ad(dt),ur(dt)},!0),ct("keyMap","default",function(dt,pt,Mt){var Rt=Ch(pt),_t=Mt!=zl&&Ch(Mt);_t&&_t.detach&&_t.detach(dt,Rt),Rt.attach&&Rt.attach(dt,_t||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,uh,!0),ct("gutters",[],function(dt,pt){dt.display.gutterSpecs=Fr(pt,dt.options.lineNumbers),ur(dt)},!0),ct("fixedGutter",!0,function(dt,pt){dt.display.gutters.style.left=pt?Bd(dt.display)+"px":"0",dt.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(dt){return sa(dt)},!0),ct("scrollbarStyle","native",function(dt){ns(dt),sa(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(dt,pt){dt.display.gutterSpecs=Fr(dt.options.gutters,pt),ur(dt)},!0),ct("firstLineNumber",1,ur,!0),ct("lineNumberFormatter",function(dt){return dt},ur,!0),ct("showCursorWhenSelecting",!1,Oe,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(dt,pt){pt=="nocursor"&&(bi(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(pt)}),ct("screenReaderLabel",null,function(dt,pt){pt=pt===""?null:pt,dt.display.input.screenReaderLabelChanged(pt)}),ct("disableInput",!1,function(dt,pt){pt||dt.display.input.reset()},!0),ct("dragDrop",!0,Zh),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,Oe,!0),ct("singleCursorHeightPerLine",!0,Oe,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,po,!0),ct("addModeClass",!1,po,!0),ct("pollInterval",100),ct("undoDepth",200,function(dt,pt){return dt.doc.history.undoDepth=pt}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(dt){return dt.refresh()},!0),ct("maxHighlightLength",1e4,po,!0),ct("moveInputWithCursor",!0,function(dt,pt){pt||dt.display.input.resetPosition()}),ct("tabindex",null,function(dt,pt){return dt.display.input.getField().tabIndex=pt||""}),ct("autofocus",null),ct("direction","ltr",function(dt,pt){return dt.doc.setDirection(pt)},!0),ct("phrases",null)}function Zh(it,at,ct){var dt=ct&&ct!=zl;if(!at!=!dt){var pt=it.display.dragFunctions,Mt=at?he:on;Mt(it.display.scroller,"dragstart",pt.start),Mt(it.display.scroller,"dragenter",pt.enter),Mt(it.display.scroller,"dragover",pt.over),Mt(it.display.scroller,"dragleave",pt.leave),Mt(it.display.scroller,"drop",pt.drop)}}function uh(it){it.options.lineWrapping?(tn(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Ot(it.display.wrapper,"CodeMirror-wrap"),Sa(it)),mo(it),ss(it),Cs(it),setTimeout(function(){return sa(it)},100)}function qa(it,at){var ct=this;if(!(this instanceof qa))return new qa(it,at);this.options=at=at?Tn(at):{},Tn(Wh,at,!1);var dt=at.value;typeof dt=="string"?dt=new fl(dt,at.mode,null,at.lineSeparator,at.direction):at.mode&&(dt.modeOption=at.mode),this.doc=dt;var pt=new qa.inputStyles[at.inputStyle](this),Mt=this.display=new zr(it,dt,pt,at);Mt.wrapper.CodeMirror=this,ad(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ns(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 Gt,keySeq:null,specialChars:null},at.autofocus&&!nt&&Mt.input.focus(),Xt&&Se<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),Sf(this),du(),Pa(this),this.curOp.forceUpdate=!0,vo(this,dt),at.autofocus&&!nt||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&li(ct)},20):bi(this);for(var Rt in lh)lh.hasOwnProperty(Rt)&&lh[Rt](this,at[Rt],zl);pr(this),at.finishInit&&at.finishInit(this);for(var _t=0;_t<Wc.length;++_t)Wc[_t](this);As(this),Nt&&at.lineWrapping&&getComputedStyle(Mt.lineDiv).textRendering=="optimizelegibility"&&(Mt.lineDiv.style.textRendering="auto")}qa.defaults=Wh,qa.optionHandlers=lh;function Sf(it){var at=it.display;he(at.scroller,"mousedown",En(it,bh)),Xt&&Se<11?he(at.scroller,"dblclick",En(it,function($t){if(!De(it,$t)){var ve=nl(it,$t);if(!(!ve||Jo(it,$t)||Ml(it.display,$t))){gi($t);var ln=it.findWordAt(ve);ka(it.doc,ln.anchor,ln.head)}}})):he(at.scroller,"dblclick",function($t){return De(it,$t)||gi($t)}),he(at.scroller,"contextmenu",function($t){return Ya(it,$t)}),he(at.input.getField(),"contextmenu",function($t){at.scroller.contains($t.target)||Ya(it,$t)});var ct,dt={end:0};function pt(){at.activeTouch&&(ct=setTimeout(function(){return at.activeTouch=null},1e3),dt=at.activeTouch,dt.end=+new Date)}function Mt($t){if($t.touches.length!=1)return!1;var ve=$t.touches[0];return ve.radiusX<=1&&ve.radiusY<=1}function Rt($t,ve){if(ve.left==null)return!0;var ln=ve.left-$t.left,Le=ve.top-$t.top;return ln*ln+Le*Le>20*20}he(at.scroller,"touchstart",function($t){if(!De(it,$t)&&!Mt($t)&&!Jo(it,$t)){at.input.ensurePolled(),clearTimeout(ct);var ve=+new Date;at.activeTouch={start:ve,moved:!1,prev:ve-dt.end<=300?dt:null},$t.touches.length==1&&(at.activeTouch.left=$t.touches[0].pageX,at.activeTouch.top=$t.touches[0].pageY)}}),he(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),he(at.scroller,"touchend",function($t){var ve=at.activeTouch;if(ve&&!Ml(at,$t)&&ve.left!=null&&!ve.moved&&new Date-ve.start<300){var ln=it.coordsChar(at.activeTouch,"page"),Le;!ve.prev||Rt(ve,ve.prev)?Le=new ar(ln,ln):!ve.prev.prev||Rt(ve,ve.prev.prev)?Le=it.findWordAt(ln):Le=new ar(Ge(ln.line,0),Ln(it.doc,Ge(ln.line+1,0))),it.setSelection(Le.anchor,Le.head),it.focus(),gi($t)}pt()}),he(at.scroller,"touchcancel",pt),he(at.scroller,"scroll",function(){at.scroller.clientHeight&&(ia(it,at.scroller.scrollTop),Aa(it,at.scroller.scrollLeft,!0),de(it,"scroll",it))}),he(at.scroller,"mousewheel",function($t){return ao(it,$t)}),he(at.scroller,"DOMMouseScroll",function($t){return ao(it,$t)}),he(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function($t){De(it,$t)||Gi($t)},over:function($t){De(it,$t)||(Rd(it,$t),Gi($t))},start:function($t){return Id(it,$t)},drop:En(it,Od),leave:function($t){De(it,$t)||ff(it)}};var _t=at.input.getField();he(_t,"keyup",function($t){return vf.call(it,$t)}),he(_t,"keydown",En(it,mf)),he(_t,"keypress",En(it,sh)),he(_t,"focus",function($t){return li(it,$t)}),he(_t,"blur",function($t){return bi(it,$t)})}var Wc=[];qa.defineInitHook=function(it){return Wc.push(it)};function kl(it,at,ct,dt){var pt=it.doc,Mt;ct==null&&(ct="add"),ct=="smart"&&(pt.mode.indent?Mt=nr(it,at).state:ct="prev");var Rt=it.options.tabSize,_t=mn(pt,at),$t=ye(_t.text,null,Rt);_t.stateAfter&&(_t.stateAfter=null);var ve=_t.text.match(/^\s*/)[0],ln;if(!dt&&!/\S/.test(_t.text))ln=0,ct="not";else if(ct=="smart"&&(ln=pt.mode.indent(Mt,_t.text.slice(ve.length),_t.text),ln==_n||ln>150)){if(!dt)return;ct="prev"}ct=="prev"?at>pt.first?ln=ye(mn(pt,at-1).text,null,Rt):ln=0:ct=="add"?ln=$t+it.options.indentUnit:ct=="subtract"?ln=$t-it.options.indentUnit:typeof ct=="number"&&(ln=$t+ct),ln=Math.max(0,ln);var Le="",zn=0;if(it.options.indentWithTabs)for(var Dn=Math.floor(ln/Rt);Dn;--Dn)zn+=Rt,Le+=" ";if(zn<ln&&(Le+=Hn(ln-zn)),Le!=ve)return Ku(pt,Le,Ge(at,0),Ge(at,ve.length),"+input"),_t.stateAfter=null,!0;for(var Ni=0;Ni<pt.sel.ranges.length;Ni++){var Bi=pt.sel.ranges[Ni];if(Bi.head.line==at&&Bi.head.ch<ve.length){var $i=Ge(at,ve.length);Va(pt,Ni,new ar($i,$i));break}}}var Bu=null;function Zc(it){Bu=it}function Yf(it,at,ct,dt,pt){var Mt=it.doc;it.display.shift=!1,dt||(dt=Mt.sel);var Rt=+new Date-200,_t=pt=="paste"||it.state.pasteIncoming>Rt,$t=Xi(at),ve=null;if(_t&&dt.ranges.length>1)if(Bu&&Bu.text.join(`
`)==at){if(dt.ranges.length%Bu.text.length==0){ve=[];for(var ln=0;ln<Bu.text.length;ln++)ve.push(Mt.splitLines(Bu.text[ln]))}}else $t.length==dt.ranges.length&&it.options.pasteLinesPerSelection&&(ve=Un($t,function(br){return[br]}));for(var Le=it.curOp.updateInput,zn=dt.ranges.length-1;zn>=0;zn--){var Dn=dt.ranges[zn],Ni=Dn.from(),Bi=Dn.to();Dn.empty()&&(ct&&ct>0?Ni=Ge(Ni.line,Ni.ch-ct):it.state.overwrite&&!_t?Bi=Ge(Bi.line,Math.min(mn(Mt,Bi.line).text.length,Bi.ch+me($t).length)):_t&&Bu&&Bu.lineWise&&Bu.text.join(`
`)==$t.join(`
`)&&(Ni=Bi=Ge(Ni.line,0)));var $i={from:Ni,to:Bi,text:ve?ve[zn%ve.length]:$t,origin:pt||(_t?"paste":it.state.cutIncoming>Rt?"cut":"+input")};ls(it.doc,$i),zi(it,"inputRead",it,$i)}at&&!_t&&up(it,at),Xr(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Le),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function lp(it,at){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&Ye(at,function(){return Yf(at,ct,0,null,"paste")}),!0}function up(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,dt=ct.ranges.length-1;dt>=0;dt--){var pt=ct.ranges[dt];if(!(pt.head.ch>100||dt&&ct.ranges[dt-1].head.line==pt.head.line)){var Mt=it.getModeAt(pt.head),Rt=!1;if(Mt.electricChars){for(var _t=0;_t<Mt.electricChars.length;_t++)if(at.indexOf(Mt.electricChars.charAt(_t))>-1){Rt=kl(it,pt.head.line,"smart");break}}else Mt.electricInput&&Mt.electricInput.test(mn(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(Rt=kl(it,pt.head.line,"smart"));Rt&&zi(it,"electricInput",it,pt.head.line)}}}function hp(it){for(var at=[],ct=[],dt=0;dt<it.doc.sel.ranges.length;dt++){var pt=it.doc.sel.ranges[dt].head.line,Mt={anchor:Ge(pt,0),head:Ge(pt+1,0)};ct.push(Mt),at.push(it.getRange(Mt.anchor,Mt.head))}return{text:at,ranges:ct}}function dp(it,at,ct,dt){it.setAttribute("autocorrect",ct?"":"off"),it.setAttribute("autocapitalize",dt?"":"off"),it.setAttribute("spellcheck",!!at)}function cp(){var it=Ut("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),at=Ut("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Nt?it.style.width="1000px":it.setAttribute("wrap","off"),Tt&&(it.style.border="1px solid black"),dp(it),at}function fc(it){var at=it.optionHandlers,ct=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(dt,pt){var Mt=this.options,Rt=Mt[dt];Mt[dt]==pt&&dt!="mode"||(Mt[dt]=pt,at.hasOwnProperty(dt)&&En(this,at[dt])(this,pt,Rt),de(this,"optionChange",this,dt))},getOption:function(dt){return this.options[dt]},getDoc:function(){return this.doc},addKeyMap:function(dt,pt){this.state.keyMaps[pt?"push":"unshift"](Ch(dt))},removeKeyMap:function(dt){for(var pt=this.state.keyMaps,Mt=0;Mt<pt.length;++Mt)if(pt[Mt]==dt||pt[Mt].name==dt)return pt.splice(Mt,1),!0},addOverlay:Pn(function(dt,pt){var Mt=dt.token?dt:it.getMode(this.options,dt);if(Mt.startState)throw new Error("Overlays may not be stateful.");ii(this.state.overlays,{mode:Mt,modeSpec:dt,opaque:pt&&pt.opaque,priority:pt&&pt.priority||0},function(Rt){return Rt.priority}),this.state.modeGen++,ss(this)}),removeOverlay:Pn(function(dt){for(var pt=this.state.overlays,Mt=0;Mt<pt.length;++Mt){var Rt=pt[Mt].modeSpec;if(Rt==dt||typeof dt=="string"&&Rt.name==dt){pt.splice(Mt,1),this.state.modeGen++,ss(this);return}}}),indentLine:Pn(function(dt,pt,Mt){typeof pt!="string"&&typeof pt!="number"&&(pt==null?pt=this.options.smartIndent?"smart":"prev":pt=pt?"add":"subtract"),ui(this.doc,dt)&&kl(this,dt,pt,Mt)}),indentSelection:Pn(function(dt){for(var pt=this.doc.sel.ranges,Mt=-1,Rt=0;Rt<pt.length;Rt++){var _t=pt[Rt];if(_t.empty())_t.head.line>Mt&&(kl(this,_t.head.line,dt,!0),Mt=_t.head.line,Rt==this.doc.sel.primIndex&&Xr(this));else{var $t=_t.from(),ve=_t.to(),ln=Math.max(Mt,$t.line);Mt=Math.min(this.lastLine(),ve.line-(ve.ch?0:1))+1;for(var Le=ln;Le<Mt;++Le)kl(this,Le,dt);var zn=this.doc.sel.ranges;$t.ch==0&&pt.length==zn.length&&zn[Rt].from().ch>0&&Va(this.doc,Rt,new ar($t,zn[Rt].to()),Te)}}}),getTokenAt:function(dt,pt){return Di(this,dt,pt)},getLineTokens:function(dt,pt){return Di(this,Ge(dt),pt,!0)},getTokenTypeAt:function(dt){dt=Ln(this.doc,dt);var pt=Er(this,mn(this.doc,dt.line)),Mt=0,Rt=(pt.length-1)/2,_t=dt.ch,$t;if(_t==0)$t=pt[2];else for(;;){var ve=Mt+Rt>>1;if((ve?pt[ve*2-1]:0)>=_t)Rt=ve;else if(pt[ve*2+1]<_t)Mt=ve+1;else{$t=pt[ve*2+2];break}}var ln=$t?$t.indexOf("overlay "):-1;return ln<0?$t:ln==0?null:$t.slice(0,ln-1)},getModeAt:function(dt){var pt=this.doc.mode;return pt.innerMode?it.innerMode(pt,this.getTokenAt(dt).state).mode:pt},getHelper:function(dt,pt){return this.getHelpers(dt,pt)[0]},getHelpers:function(dt,pt){var Mt=[];if(!ct.hasOwnProperty(pt))return Mt;var Rt=ct[pt],_t=this.getModeAt(dt);if(typeof _t[pt]=="string")Rt[_t[pt]]&&Mt.push(Rt[_t[pt]]);else if(_t[pt])for(var $t=0;$t<_t[pt].length;$t++){var ve=Rt[_t[pt][$t]];ve&&Mt.push(ve)}else _t.helperType&&Rt[_t.helperType]?Mt.push(Rt[_t.helperType]):Rt[_t.name]&&Mt.push(Rt[_t.name]);for(var ln=0;ln<Rt._global.length;ln++){var Le=Rt._global[ln];Le.pred(_t,this)&&nn(Mt,Le.val)==-1&&Mt.push(Le.val)}return Mt},getStateAfter:function(dt,pt){var Mt=this.doc;return dt=kn(Mt,dt==null?Mt.first+Mt.size-1:dt),nr(this,dt+1,pt).state},cursorCoords:function(dt,pt){var Mt,Rt=this.doc.sel.primary();return dt==null?Mt=Rt.head:typeof dt=="object"?Mt=Ln(this.doc,dt):Mt=dt?Rt.from():Rt.to(),ps(this,Mt,pt||"page")},charCoords:function(dt,pt){return $l(this,Ln(this.doc,dt),pt||"page")},coordsChar:function(dt,pt){return dt=nh(this,dt,pt||"page"),ed(this,dt.left,dt.top)},lineAtHeight:function(dt,pt){return dt=nh(this,{top:dt,left:0},pt||"page").top,Nn(this.doc,dt+this.display.viewOffset)},heightAtLine:function(dt,pt,Mt){var Rt=!1,_t;if(typeof dt=="number"){var $t=this.doc.first+this.doc.size-1;dt<this.doc.first?dt=this.doc.first:dt>$t&&(dt=$t,Rt=!0),_t=mn(this.doc,dt)}else _t=dt;return bs(this,_t,{top:0,left:0},pt||"page",Mt||Rt).top+(Rt?this.doc.height-Io(_t):0)},defaultTextHeight:function(){return rh(this.display)},defaultCharWidth:function(){return xh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,pt,Mt,Rt,_t){var $t=this.display;dt=ps(this,Ln(this.doc,dt));var ve=dt.bottom,ln=dt.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),$t.sizer.appendChild(pt),Rt=="over")ve=dt.top;else if(Rt=="above"||Rt=="near"){var Le=Math.max($t.wrapper.clientHeight,this.doc.height),zn=Math.max($t.sizer.clientWidth,$t.lineSpace.clientWidth);(Rt=="above"||dt.bottom+pt.offsetHeight>Le)&&dt.top>pt.offsetHeight?ve=dt.top-pt.offsetHeight:dt.bottom+pt.offsetHeight<=Le&&(ve=dt.bottom),ln+pt.offsetWidth>zn&&(ln=zn-pt.offsetWidth)}pt.style.top=ve+"px",pt.style.left=pt.style.right="",_t=="right"?(ln=$t.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):(_t=="left"?ln=0:_t=="middle"&&(ln=($t.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=ln+"px"),Mt&&Gr(this,{left:ln,top:ve,right:ln+pt.offsetWidth,bottom:ve+pt.offsetHeight})},triggerOnKeyDown:Pn(mf),triggerOnKeyPress:Pn(sh),triggerOnKeyUp:vf,triggerOnMouseDown:Pn(bh),execCommand:function(dt){if(gl.hasOwnProperty(dt))return gl[dt].call(null,this)},triggerElectric:Pn(function(dt){up(this,dt)}),findPosH:function(dt,pt,Mt,Rt){var _t=1;pt<0&&(_t=-1,pt=-pt);for(var $t=Ln(this.doc,dt),ve=0;ve<pt&&($t=Uf(this.doc,$t,_t,Mt,Rt),!$t.hitSide);++ve);return $t},moveH:Pn(function(dt,pt){var Mt=this;this.extendSelectionsBy(function(Rt){return Mt.display.shift||Mt.doc.extend||Rt.empty()?Uf(Mt.doc,Rt.head,dt,pt,Mt.options.rtlMoveVisually):dt<0?Rt.from():Rt.to()},gn)}),deleteH:Pn(function(dt,pt){var Mt=this.doc.sel,Rt=this.doc;Mt.somethingSelected()?Rt.replaceSelection("",null,"+delete"):xl(this,function(_t){var $t=Uf(Rt,_t.head,dt,pt,!1);return dt<0?{from:$t,to:_t.head}:{from:_t.head,to:$t}})}),findPosV:function(dt,pt,Mt,Rt){var _t=1,$t=Rt;pt<0&&(_t=-1,pt=-pt);for(var ve=Ln(this.doc,dt),ln=0;ln<pt;++ln){var Le=ps(this,ve,"div");if($t==null?$t=Le.left:Le.left=$t,ve=gc(this,Le,_t,Mt),ve.hitSide)break}return ve},moveV:Pn(function(dt,pt){var Mt=this,Rt=this.doc,_t=[],$t=!this.display.shift&&!Rt.extend&&Rt.sel.somethingSelected();if(Rt.extendSelectionsBy(function(ln){if($t)return dt<0?ln.from():ln.to();var Le=ps(Mt,ln.head,"div");ln.goalColumn!=null&&(Le.left=ln.goalColumn),_t.push(Le.left);var zn=gc(Mt,Le,dt,pt);return pt=="page"&&ln==Rt.sel.primary()&&Ur(Mt,$l(Mt,zn,"div").top-Le.top),zn},gn),_t.length)for(var ve=0;ve<Rt.sel.ranges.length;ve++)Rt.sel.ranges[ve].goalColumn=_t[ve]}),findWordAt:function(dt){var pt=this.doc,Mt=mn(pt,dt.line).text,Rt=dt.ch,_t=dt.ch;if(Mt){var $t=this.getHelper(dt,"wordChars");(dt.sticky=="before"||_t==Mt.length)&&Rt?--Rt:++_t;for(var ve=Mt.charAt(Rt),ln=ke(ve,$t)?function(Le){return ke(Le,$t)}:/\s/.test(ve)?function(Le){return/\s/.test(Le)}:function(Le){return!/\s/.test(Le)&&!ke(Le)};Rt>0&&ln(Mt.charAt(Rt-1));)--Rt;for(;_t<Mt.length&&ln(Mt.charAt(_t));)++_t}return new ar(Ge(dt.line,Rt),Ge(dt.line,_t))},toggleOverwrite:function(dt){dt!=null&&dt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?tn(this.display.cursorDiv,"CodeMirror-overwrite"):Ot(this.display.cursorDiv,"CodeMirror-overwrite"),de(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==pe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Pn(function(dt,pt){Kr(this,dt,pt)}),getScrollInfo:function(){var dt=this.display.scroller;return{left:dt.scrollLeft,top:dt.scrollTop,height:dt.scrollHeight-vl(this)-this.display.barHeight,width:dt.scrollWidth-vl(this)-this.display.barWidth,clientHeight:Bh(this),clientWidth:Al(this)}},scrollIntoView:Pn(function(dt,pt){dt==null?(dt={from:this.doc.sel.primary().head,to:null},pt==null&&(pt=this.options.cursorScrollMargin)):typeof dt=="number"?dt={from:Ge(dt,0),to:null}:dt.from==null&&(dt={from:dt,to:null}),dt.to||(dt.to=dt.from),dt.margin=pt||0,dt.from.line!=null?Ri(this,dt):jo(this,dt.from,dt.to,dt.margin)}),setSize:Pn(function(dt,pt){var Mt=this,Rt=function($t){return typeof $t=="number"||/^\d+$/.test(String($t))?$t+"px":$t};dt!=null&&(this.display.wrapper.style.width=Rt(dt)),pt!=null&&(this.display.wrapper.style.height=Rt(pt)),this.options.lineWrapping&&Ps(this);var _t=this.display.viewFrom;this.doc.iter(_t,this.display.viewTo,function($t){if($t.widgets){for(var ve=0;ve<$t.widgets.length;ve++)if($t.widgets[ve].noHScroll){na(Mt,_t,"widget");break}}++_t}),this.curOp.forceUpdate=!0,de(this,"refresh",this)}),operation:function(dt){return Ye(this,dt)},startOperation:function(){return Pa(this)},endOperation:function(){return As(this)},refresh:Pn(function(){var dt=this.display.cachedTextHeight;ss(this),this.curOp.forceUpdate=!0,Cs(this),Kr(this,this.doc.scrollLeft,this.doc.scrollTop),sr(this.display),(dt==null||Math.abs(dt-rh(this.display))>.5||this.options.lineWrapping)&&mo(this),de(this,"refresh",this)}),swapDoc:Pn(function(dt){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),vo(this,dt),Cs(this),this.display.input.reset(),Kr(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,zi(this,"swapDoc",this,pt),pt}),phrase:function(dt){var pt=this.options.phrases;return pt&&Object.prototype.hasOwnProperty.call(pt,dt)?pt[dt]:dt},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Yn(it),it.registerHelper=function(dt,pt,Mt){ct.hasOwnProperty(dt)||(ct[dt]=it[dt]={_global:[]}),ct[dt][pt]=Mt},it.registerGlobalHelper=function(dt,pt,Mt,Rt){it.registerHelper(dt,pt,Rt),ct[dt]._global.push({pred:Mt,val:Rt})}}function Uf(it,at,ct,dt,pt){var Mt=at,Rt=ct,_t=mn(it,at.line),$t=pt&&it.direction=="rtl"?-ct:ct;function ve(){var io=at.line+$t;return io<it.first||io>=it.first+it.size?!1:(at=new Ge(io,at.ch,at.sticky),_t=mn(it,io))}function ln(io){var Vr;if(dt=="codepoint"){var So=_t.text.charCodeAt(at.ch+(dt>0?0:-1));isNaN(So)?Vr=null:Vr=new Ge(at.line,Math.max(0,Math.min(_t.text.length,at.ch+ct*(So>=55296&&So<56320?2:1))),-ct)}else pt?Vr=cs(it.cm,_t,at,ct):Vr=Js(_t,at,ct);if(Vr==null)if(!io&&ve())at=Da(pt,it.cm,_t,at.line,$t);else return!1;else at=Vr;return!0}if(dt=="char"||dt=="codepoint")ln();else if(dt=="column")ln(!0);else if(dt=="word"||dt=="group")for(var Le=null,zn=dt=="group",Dn=it.cm&&it.cm.getHelper(at,"wordChars"),Ni=!0;!(ct<0&&!ln(!Ni));Ni=!1){var Bi=_t.text.charAt(at.ch)||`
`,$i=ke(Bi,Dn)?"w":zn&&Bi==`
`?"n":!zn||/\s/.test(Bi)?null:"p";if(zn&&!Ni&&!$i&&($i="s"),Le&&Le!=$i){ct<0&&(ct=1,ln(),at.sticky="after");break}if($i&&(Le=$i),ct>0&&!ln(!Ni))break}var br=Cu(it,at,Mt,Rt,!0);return je(Mt,br)&&(br.hitSide=!0),br}function gc(it,at,ct,dt){var pt=it.doc,Mt=at.left,Rt;if(dt=="page"){var _t=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),$t=Math.max(_t-.5*rh(it.display),3);Rt=(ct>0?at.bottom:at.top)+ct*$t}else dt=="line"&&(Rt=ct>0?at.bottom+3:at.top-3);for(var ve;ve=ed(it,Mt,Rt),!!ve.outside;){if(ct<0?Rt<=0:Rt>=pt.height){ve.hitSide=!0;break}Rt+=ct*5}return ve}var Fs=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Gt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Fs.prototype.init=function(it){var at=this,ct=this,dt=ct.cm,pt=ct.div=it.lineDiv;dp(pt,dt.options.spellcheck,dt.options.autocorrect,dt.options.autocapitalize);function Mt(_t){for(var $t=_t.target;$t;$t=$t.parentNode){if($t==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test($t.className))break}return!1}he(pt,"paste",function(_t){!Mt(_t)||De(dt,_t)||lp(_t,dt)||Se<=11&&setTimeout(En(dt,function(){return at.updateFromDOM()}),20)}),he(pt,"compositionstart",function(_t){at.composing={data:_t.data,done:!1}}),he(pt,"compositionupdate",function(_t){at.composing||(at.composing={data:_t.data,done:!1})}),he(pt,"compositionend",function(_t){at.composing&&(_t.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),he(pt,"touchstart",function(){return ct.forceCompositionEnd()}),he(pt,"input",function(){at.composing||at.readFromDOMSoon()});function Rt(_t){if(!(!Mt(_t)||De(dt,_t))){if(dt.somethingSelected())Zc({lineWise:!1,text:dt.getSelections()}),_t.type=="cut"&&dt.replaceSelection("",null,"cut");else if(dt.options.lineWiseCopyCut){var $t=hp(dt);Zc({lineWise:!0,text:$t.text}),_t.type=="cut"&&dt.operation(function(){dt.setSelections($t.ranges,0,Te),dt.replaceSelection("",null,"cut")})}else return;if(_t.clipboardData){_t.clipboardData.clearData();var ve=Bu.text.join(`
`);if(_t.clipboardData.setData("Text",ve),_t.clipboardData.getData("Text")==ve){_t.preventDefault();return}}var ln=cp(),Le=ln.firstChild;dt.display.lineSpace.insertBefore(ln,dt.display.lineSpace.firstChild),Le.value=Bu.text.join(`
`);var zn=document.activeElement;We(Le),setTimeout(function(){dt.display.lineSpace.removeChild(ln),zn.focus(),zn==pt&&ct.showPrimarySelection()},50)}}he(pt,"copy",Rt),he(pt,"cut",Rt)},Fs.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Fs.prototype.prepareSelection=function(){var it=He(this.cm,!1);return it.focus=document.activeElement==this.div,it},Fs.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Fs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fs.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,ct=at.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(at.display.viewTo==at.display.viewFrom||dt.line>=at.display.viewTo||pt.line<at.display.viewFrom){it.removeAllRanges();return}var Mt=Xf(at,it.anchorNode,it.anchorOffset),Rt=Xf(at,it.focusNode,it.focusOffset);if(!(Mt&&!Mt.bad&&Rt&&!Rt.bad&&pn(dn(Mt,Rt),dt)==0&&pn(yn(Mt,Rt),pt)==0)){var _t=at.display.view,$t=dt.line>=at.display.viewFrom&&xg(at,dt)||{node:_t[0].measure.map[2],offset:0},ve=pt.line<at.display.viewTo&&xg(at,pt);if(!ve){var ln=_t[_t.length-1].measure,Le=ln.maps?ln.maps[ln.maps.length-1]:ln.map;ve={node:Le[Le.length-1],offset:Le[Le.length-2]-Le[Le.length-3]}}if(!$t||!ve){it.removeAllRanges();return}var zn=it.rangeCount&&it.getRangeAt(0),Dn;try{Dn=Yt($t.node,$t.offset,ve.offset,ve.node)}catch(Ni){}Dn&&(!At&&at.state.focused?(it.collapse($t.node,$t.offset),Dn.collapsed||(it.removeAllRanges(),it.addRange(Dn))):(it.removeAllRanges(),it.addRange(Dn)),zn&&it.anchorNode==null?it.addRange(zn):At&&this.startGracePeriod()),this.rememberSelection()}},Fs.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)},Fs.prototype.showMultipleSelections=function(it){Zt(this.cm.display.cursorDiv,it.cursors),Zt(this.cm.display.selectionDiv,it.selection)},Fs.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},Fs.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var at=it.getRangeAt(0).commonAncestorContainer;return Xe(this.div,at)},Fs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Fs.prototype.blur=function(){this.div.blur()},Fs.prototype.getField=function(){return this.div},Fs.prototype.supportsTouch=function(){return!0},Fs.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():Ye(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function at(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,at))}this.polling.set(this.cm.options.pollInterval,at)},Fs.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},Fs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),at=this.cm;if(et&&Pe&&this.cm.display.gutterSpecs.length&&fp(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ct=Xf(at,it.anchorNode,it.anchorOffset),dt=Xf(at,it.focusNode,it.focusOffset);ct&&dt&&Ye(at,function(){Ja(at.doc,Ro(ct,dt),Te),(ct.bad||dt.bad)&&(at.curOp.selectionChanged=!0)})}}},Fs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,at=it.display,ct=it.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(dt.ch==0&&dt.line>it.firstLine()&&(dt=Ge(dt.line-1,mn(it.doc,dt.line-1).length)),pt.ch==mn(it.doc,pt.line).text.length&&pt.line<it.lastLine()&&(pt=Ge(pt.line+1,0)),dt.line<at.viewFrom||pt.line>at.viewTo-1)return!1;var Mt,Rt,_t;dt.line==at.viewFrom||(Mt=yl(it,dt.line))==0?(Rt=ue(at.view[0].line),_t=at.view[0].node):(Rt=ue(at.view[Mt].line),_t=at.view[Mt-1].node.nextSibling);var $t=yl(it,pt.line),ve,ln;if($t==at.view.length-1?(ve=at.viewTo-1,ln=at.lineDiv.lastChild):(ve=ue(at.view[$t+1].line)-1,ln=at.view[$t+1].node.previousSibling),!_t)return!1;for(var Le=it.doc.splitLines(wf(it,_t,ln,Rt,ve)),zn=Wn(it.doc,Ge(Rt,0),Ge(ve,mn(it.doc,ve).text.length));Le.length>1&&zn.length>1;)if(me(Le)==me(zn))Le.pop(),zn.pop(),ve--;else if(Le[0]==zn[0])Le.shift(),zn.shift(),Rt++;else break;for(var Dn=0,Ni=0,Bi=Le[0],$i=zn[0],br=Math.min(Bi.length,$i.length);Dn<br&&Bi.charCodeAt(Dn)==$i.charCodeAt(Dn);)++Dn;for(var io=me(Le),Vr=me(zn),So=Math.min(io.length-(Le.length==1?Dn:0),Vr.length-(zn.length==1?Dn:0));Ni<So&&io.charCodeAt(io.length-Ni-1)==Vr.charCodeAt(Vr.length-Ni-1);)++Ni;if(Le.length==1&&zn.length==1&&Rt==dt.line)for(;Dn&&Dn>dt.ch&&io.charCodeAt(io.length-Ni-1)==Vr.charCodeAt(Vr.length-Ni-1);)Dn--,Ni++;Le[Le.length-1]=io.slice(0,io.length-Ni).replace(/^\u200b+/,""),Le[0]=Le[0].slice(Dn).replace(/\u200b+$/,"");var Qo=Ge(Rt,Dn),Hr=Ge(ve,zn.length?me(zn).length-Ni:0);if(Le.length>1||Le[0]||pn(Qo,Hr))return Ku(it.doc,Le,Qo,Hr,"+input"),!0},Fs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fs.prototype.reset=function(){this.forceCompositionEnd()},Fs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fs.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))},Fs.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&Ye(this.cm,function(){return ss(it.cm)})},Fs.prototype.setUneditable=function(it){it.contentEditable="false"},Fs.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||En(this.cm,Yf)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Fs.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Fs.prototype.onContextMenu=function(){},Fs.prototype.resetPosition=function(){},Fs.prototype.needsContentAttribute=!0;function xg(it,at){var ct=Zu(it,at.line);if(!ct||ct.hidden)return null;var dt=mn(it.doc,at.line),pt=Oh(ct,dt,at.line),Mt=jt(dt,it.doc.direction),Rt="left";if(Mt){var _t=mt(Mt,at.ch);Rt=_t%2?"right":"left"}var $t=td(pt.map,at.ch,Rt);return $t.offset=$t.collapse=="right"?$t.end:$t.start,$t}function fp(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function xf(it,at){return at&&(it.bad=!0),it}function wf(it,at,ct,dt,pt){var Mt="",Rt=!1,_t=it.doc.lineSeparator(),$t=!1;function ve(Dn){return function(Ni){return Ni.id==Dn}}function ln(){Rt&&(Mt+=_t,$t&&(Mt+=_t),Rt=$t=!1)}function Le(Dn){Dn&&(ln(),Mt+=Dn)}function zn(Dn){if(Dn.nodeType==1){var Ni=Dn.getAttribute("cm-text");if(Ni){Le(Ni);return}var Bi=Dn.getAttribute("cm-marker"),$i;if(Bi){var br=it.findMarks(Ge(dt,0),Ge(pt+1,0),ve(+Bi));br.length&&($i=br[0].find(0))&&Le(Wn(it.doc,$i.from,$i.to).join(_t));return}if(Dn.getAttribute("contenteditable")=="false")return;var io=/^(pre|div|p|li|table|br)$/i.test(Dn.nodeName);if(!/^br$/i.test(Dn.nodeName)&&Dn.textContent.length==0)return;io&&ln();for(var Vr=0;Vr<Dn.childNodes.length;Vr++)zn(Dn.childNodes[Vr]);/^(pre|p)$/i.test(Dn.nodeName)&&($t=!0),io&&(Rt=!0)}else Dn.nodeType==3&&Le(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;zn(at),at!=ct;)at=at.nextSibling,$t=!1;return Mt}function Xf(it,at,ct){var dt;if(at==it.display.lineDiv){if(dt=it.display.lineDiv.childNodes[ct],!dt)return xf(it.clipPos(Ge(it.display.viewTo-1)),!0);at=null,ct=0}else for(dt=at;;dt=dt.parentNode){if(!dt||dt==it.display.lineDiv)return null;if(dt.parentNode&&dt.parentNode==it.display.lineDiv)break}for(var pt=0;pt<it.display.view.length;pt++){var Mt=it.display.view[pt];if(Mt.node==dt)return dm(Mt,at,ct)}}function dm(it,at,ct){var dt=it.text.firstChild,pt=!1;if(!at||!Xe(dt,at))return xf(Ge(ue(it.line),0),!0);if(at==dt&&(pt=!0,at=dt.childNodes[ct],ct=0,!at)){var Mt=it.rest?me(it.rest):it.line;return xf(Ge(ue(Mt),Mt.text.length),pt)}var Rt=at.nodeType==3?at:null,_t=at;for(!Rt&&at.childNodes.length==1&&at.firstChild.nodeType==3&&(Rt=at.firstChild,ct&&(ct=Rt.nodeValue.length));_t.parentNode!=dt;)_t=_t.parentNode;var $t=it.measure,ve=$t.maps;function ln($i,br,io){for(var Vr=-1;Vr<(ve?ve.length:0);Vr++)for(var So=Vr<0?$t.map:ve[Vr],Qo=0;Qo<So.length;Qo+=3){var Hr=So[Qo+2];if(Hr==$i||Hr==br){var pa=ue(Vr<0?it.line:it.rest[Vr]),Zs=So[Qo]+io;return(io<0||Hr!=$i)&&(Zs=So[Qo+(io?1:0)]),Ge(pa,Zs)}}}var Le=ln(Rt,_t,ct);if(Le)return xf(Le,pt);for(var zn=_t.nextSibling,Dn=Rt?Rt.nodeValue.length-ct:0;zn;zn=zn.nextSibling){if(Le=ln(zn,zn.firstChild,0),Le)return xf(Ge(Le.line,Le.ch-Dn),pt);Dn+=zn.textContent.length}for(var Ni=_t.previousSibling,Bi=ct;Ni;Ni=Ni.previousSibling){if(Le=ln(Ni,Ni.firstChild,-1),Le)return xf(Ge(Le.line,Le.ch+Bi),pt);Bi+=Ni.textContent.length}}var wl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Gt,this.hasSelection=!1,this.composing=null};wl.prototype.init=function(it){var at=this,ct=this,dt=this.cm;this.createField(it);var pt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Tt&&(pt.style.width="0px"),he(pt,"input",function(){Xt&&Se>=9&&at.hasSelection&&(at.hasSelection=null),ct.poll()}),he(pt,"paste",function(Rt){De(dt,Rt)||lp(Rt,dt)||(dt.state.pasteIncoming=+new Date,ct.fastPoll())});function Mt(Rt){if(!De(dt,Rt)){if(dt.somethingSelected())Zc({lineWise:!1,text:dt.getSelections()});else if(dt.options.lineWiseCopyCut){var _t=hp(dt);Zc({lineWise:!0,text:_t.text}),Rt.type=="cut"?dt.setSelections(_t.ranges,null,Te):(ct.prevInput="",pt.value=_t.text.join(`
`),We(pt))}else return;Rt.type=="cut"&&(dt.state.cutIncoming=+new Date)}}he(pt,"cut",Mt),he(pt,"copy",Mt),he(it.scroller,"paste",function(Rt){if(!(Ml(it,Rt)||De(dt,Rt))){if(!pt.dispatchEvent){dt.state.pasteIncoming=+new Date,ct.focus();return}var _t=new Event("paste");_t.clipboardData=Rt.clipboardData,pt.dispatchEvent(_t)}}),he(it.lineSpace,"selectstart",function(Rt){Ml(it,Rt)||gi(Rt)}),he(pt,"compositionstart",function(){var Rt=dt.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:Rt,range:dt.markText(Rt,dt.getCursor("to"),{className:"CodeMirror-composing"})}}),he(pt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},wl.prototype.createField=function(it){this.wrapper=cp(),this.textarea=this.wrapper.firstChild},wl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},wl.prototype.prepareSelection=function(){var it=this.cm,at=it.display,ct=it.doc,dt=He(it);if(it.options.moveInputWithCursor){var pt=ps(it,ct.sel.primary().head,"div"),Mt=at.wrapper.getBoundingClientRect(),Rt=at.lineDiv.getBoundingClientRect();dt.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,pt.top+Rt.top-Mt.top)),dt.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,pt.left+Rt.left-Mt.left))}return dt},wl.prototype.showSelection=function(it){var at=this.cm,ct=at.display;Zt(ct.cursorDiv,it.cursors),Zt(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},wl.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var ct=at.getSelection();this.textarea.value=ct,at.state.focused&&We(this.textarea),Xt&&Se>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Xt&&Se>=9&&(this.hasSelection=null))}},wl.prototype.getField=function(){return this.textarea},wl.prototype.supportsTouch=function(){return!1},wl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||pe()!=this.textarea))try{this.textarea.focus()}catch(it){}},wl.prototype.blur=function(){this.textarea.blur()},wl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},wl.prototype.receivedFocus=function(){this.slowPoll()},wl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},wl.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function ct(){var dt=at.poll();!dt&&!it?(it=!0,at.polling.set(60,ct)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,ct)},wl.prototype.poll=function(){var it=this,at=this.cm,ct=this.textarea,dt=this.prevInput;if(this.contextMenuPending||!at.state.focused||Et(ct)&&!dt&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var pt=ct.value;if(pt==dt&&!at.somethingSelected())return!1;if(Xt&&Se>=9&&this.hasSelection===pt||ht&&/[\uf700-\uf7ff]/.test(pt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var Mt=pt.charCodeAt(0);if(Mt==8203&&!dt&&(dt="\u200B"),Mt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Rt=0,_t=Math.min(dt.length,pt.length);Rt<_t&&dt.charCodeAt(Rt)==pt.charCodeAt(Rt);)++Rt;return Ye(at,function(){Yf(at,pt.slice(Rt),dt.length-Rt,null,it.composing?"*compose":null),pt.length>1e3||pt.indexOf(`
`)>-1?ct.value=it.prevInput="":it.prevInput=pt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},wl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},wl.prototype.onKeyPress=function(){Xt&&Se>=9&&(this.hasSelection=null),this.fastPoll()},wl.prototype.onContextMenu=function(it){var at=this,ct=at.cm,dt=ct.display,pt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var Mt=nl(ct,it),Rt=dt.scroller.scrollTop;if(!Mt||ne)return;var _t=ct.options.resetSelectionOnContextMenu;_t&&ct.doc.sel.contains(Mt)==-1&&En(ct,Ja)(ct.doc,Ro(Mt),Te);var $t=pt.style.cssText,ve=at.wrapper.style.cssText,ln=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(it.clientY-ln.top-5)+"px; left: "+(it.clientX-ln.left-5)+`px;
z-index: 1000; background: `+(Xt?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Le;Nt&&(Le=window.scrollY),dt.input.focus(),Nt&&window.scrollTo(null,Le),dt.input.reset(),ct.somethingSelected()||(pt.value=at.prevInput=" "),at.contextMenuPending=Dn,dt.selForContextMenu=ct.doc.sel,clearTimeout(dt.detectingSelectAll);function zn(){if(pt.selectionStart!=null){var Bi=ct.somethingSelected(),$i="\u200B"+(Bi?pt.value:"");pt.value="\u21DA",pt.value=$i,at.prevInput=Bi?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=$i.length,dt.selForContextMenu=ct.doc.sel}}function Dn(){if(at.contextMenuPending==Dn&&(at.contextMenuPending=!1,at.wrapper.style.cssText=ve,pt.style.cssText=$t,Xt&&Se<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=Rt),pt.selectionStart!=null)){(!Xt||Xt&&Se<9)&&zn();var Bi=0,$i=function(){dt.selForContextMenu==ct.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&at.prevInput=="\u200B"?En(ct,Wa)(ct):Bi++<10?dt.detectingSelectAll=setTimeout($i,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout($i,200)}}if(Xt&&Se>=9&&zn(),Ft){Gi(it);var Ni=function(){on(window,"mouseup",Ni),setTimeout(Dn,20)};he(window,"mouseup",Ni)}else setTimeout(Dn,50)},wl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},wl.prototype.setUneditable=function(){},wl.prototype.needsContentAttribute=!1;function cm(it,at){if(at=at?Tn(at):{},at.value=it.value,!at.tabindex&&it.tabIndex&&(at.tabindex=it.tabIndex),!at.placeholder&&it.placeholder&&(at.placeholder=it.placeholder),at.autofocus==null){var ct=pe();at.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function dt(){it.value=_t.getValue()}var pt;if(it.form&&(he(it.form,"submit",dt),!at.leaveSubmitMethodAlone)){var Mt=it.form;pt=Mt.submit;try{var Rt=Mt.submit=function(){dt(),Mt.submit=pt,Mt.submit(),Mt.submit=Rt}}catch($t){}}at.finishInit=function($t){$t.save=dt,$t.getTextArea=function(){return it},$t.toTextArea=function(){$t.toTextArea=isNaN,dt(),it.parentNode.removeChild($t.getWrapperElement()),it.style.display="",it.form&&(on(it.form,"submit",dt),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var _t=qa(function($t){return it.parentNode.insertBefore($t,it.nextSibling)},at);return _t}function Pf(it){it.off=on,it.on=he,it.wheelEventPixels=jr,it.Doc=fl,it.splitLines=Xi,it.countColumn=ye,it.findColumn=Vn,it.isWordChar=Ie,it.Pass=_n,it.signal=de,it.Line=Ta,it.changeEnd=Wo,it.scrollbarModel=Xa,it.Pos=Ge,it.cmpPos=pn,it.modes=wr,it.mimeModes=_i,it.resolveMode=xo,it.getMode=an,it.modeExtensions=Qe,it.extendMode=Jt,it.copyState=un,it.startState=Ee,it.innerMode=On,it.commands=gl,it.keyMap=Rl,it.keyName=lc,it.isModifierKey=yd,it.lookupKey=tu,it.normalizeKeyMap=Hd,it.StringStream=ce,it.SharedTextMarker=ah,it.TextMarker=Ue,it.LineWidget=Ws,it.e_preventDefault=gi,it.e_stopPropagation=fi,it.e_stop=Gi,it.addClass=tn,it.contains=Xe,it.rmClass=Ot,it.keyNames=Vu}cc(qa),fc(qa);var Kd="iter insert remove copy getEditor constructor".split(" ");for(var Jf in fl.prototype)fl.prototype.hasOwnProperty(Jf)&&nn(Kd,Jf)<0&&(qa.prototype[Jf]=function(it){return function(){return it.apply(this.doc,arguments)}}(fl.prototype[Jf]));return Yn(fl),qa.inputStyles={textarea:wl,contenteditable:Fs},qa.defineMode=function(it){!qa.defaults.mode&&it!="null"&&(qa.defaults.mode=it),Qr.apply(this,arguments)},qa.defineMIME=Zr,qa.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),qa.defineMIME("text/plain","null"),qa.defineExtension=function(it,at){qa.prototype[it]=at},qa.defineDocExtension=function(it,at){fl.prototype[it]=at},qa.fromTextArea=cm,Pf(qa),qa.version="5.58.2",qa})},25419:function(Bn,Cn,St){(function(At){At(St(89780),St(15525),St(98101))})(function(At){"use strict";At.defineMode("markdown",function(zt,oe){var Me=At.getMode(zt,"text/html"),Xt=Me.name=="null";function Se(ye){if(At.findModeByName){var Gt=At.findModeByName(ye);Gt&&(ye=Gt.mime||Gt.mimes[0])}var nn=At.getMode(zt,ye);return nn.name=="null"?null:nn}oe.highlightFormatting===void 0&&(oe.highlightFormatting=!1),oe.maxBlockquoteDepth===void 0&&(oe.maxBlockquoteDepth=0),oe.taskLists===void 0&&(oe.taskLists=!1),oe.strikethrough===void 0&&(oe.strikethrough=!1),oe.emoji===void 0&&(oe.emoji=!1),oe.fencedCodeBlockHighlighting===void 0&&(oe.fencedCodeBlockHighlighting=!0),oe.fencedCodeBlockDefaultMode===void 0&&(oe.fencedCodeBlockDefaultMode="text/plain"),oe.xml===void 0&&(oe.xml=!0),oe.tokenTypeOverrides===void 0&&(oe.tokenTypeOverrides={});var Nt={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 Ne in Nt)Nt.hasOwnProperty(Ne)&&oe.tokenTypeOverrides[Ne]&&(Nt[Ne]=oe.tokenTypeOverrides[Ne]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,ne=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,xe=/^\[(x| )\](?=\s)/i,we=oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ce=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Tt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ht=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,st=" ";function gt(ye,Gt,nn){return Gt.f=Gt.inline=nn,nn(ye,Gt)}function vt(ye,Gt,nn){return Gt.f=Gt.block=nn,nn(ye,Gt)}function Pt(ye){return!ye||!/\S/.test(ye.string)}function Ft(ye){if(ye.linkTitle=!1,ye.linkHref=!1,ye.linkText=!1,ye.em=!1,ye.strong=!1,ye.strikethrough=!1,ye.quote=0,ye.indentedCode=!1,ye.f==Ot){var Gt=Xt;if(!Gt){var nn=At.innerMode(Me,ye.htmlState);Gt=nn.mode.name=="xml"&&nn.state.tagStart===null&&!nn.state.context&&nn.state.tokenize.isInText}Gt&&(ye.f=fe,ye.block=wt,ye.htmlState=null)}return ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,ye.prevLine=ye.thisLine,ye.thisLine={stream:null},null}function wt(ye,Gt){var nn=ye.column()===Gt.indentation,Zn=Pt(Gt.prevLine.stream),_n=Gt.indentedCode,Te=Gt.prevLine.hr,rn=Gt.list!==!1,gn=(Gt.listStack[Gt.listStack.length-1]||0)+3;Gt.indentedCode=!1;var Vn=Gt.indentation;if(Gt.indentationDiff===null&&(Gt.indentationDiff=Gt.indentation,rn)){for(Gt.list=null;Vn<Gt.listStack[Gt.listStack.length-1];)Gt.listStack.pop(),Gt.listStack.length?Gt.indentation=Gt.listStack[Gt.listStack.length-1]:Gt.list=!1;Gt.list!==!1&&(Gt.indentationDiff=Vn-Gt.listStack[Gt.listStack.length-1])}var cn=!Zn&&!Te&&!Gt.prevLine.header&&(!rn||!_n)&&!Gt.prevLine.fencedCodeEnd,Hn=(Gt.list===!1||Te||Zn)&&Gt.indentation<=gn&&ye.match(Pe),me=null;if(Gt.indentationDiff>=4&&(_n||Gt.prevLine.fencedCodeEnd||Gt.prevLine.header||Zn))return ye.skipToEnd(),Gt.indentedCode=!0,Nt.code;if(ye.eatSpace())return null;if(nn&&Gt.indentation<=gn&&(me=ye.match(we))&&me[1].length<=6)return Gt.quote=0,Gt.header=me[1].length,Gt.thisLine.header=!0,oe.highlightFormatting&&(Gt.formatting="header"),Gt.f=Gt.inline,Zt(Gt);if(Gt.indentation<=gn&&ye.eat(">"))return Gt.quote=nn?1:Gt.quote+1,oe.highlightFormatting&&(Gt.formatting="quote"),ye.eatSpace(),Zt(Gt);if(!Hn&&!Gt.setext&&nn&&Gt.indentation<=gn&&(me=ye.match(ne))){var Un=me[1]?"ol":"ul";return Gt.indentation=Vn+ye.current().length,Gt.list=!0,Gt.quote=0,Gt.listStack.push(Gt.indentation),Gt.em=!1,Gt.strong=!1,Gt.code=!1,Gt.strikethrough=!1,oe.taskLists&&ye.match(xe,!1)&&(Gt.taskList=!0),Gt.f=Gt.inline,oe.highlightFormatting&&(Gt.formatting=["list","list-"+Un]),Zt(Gt)}else{if(nn&&Gt.indentation<=gn&&(me=ye.match(et,!0)))return Gt.quote=0,Gt.fencedEndRE=new RegExp(me[1]+"+ *$"),Gt.localMode=oe.fencedCodeBlockHighlighting&&Se(me[2]||oe.fencedCodeBlockDefaultMode),Gt.localMode&&(Gt.localState=At.startState(Gt.localMode)),Gt.f=Gt.block=Ht,oe.highlightFormatting&&(Gt.formatting="code-block"),Gt.code=-1,Zt(Gt);if(Gt.setext||(!cn||!rn)&&!Gt.quote&&Gt.list===!1&&!Gt.code&&!Hn&&!nt.test(ye.string)&&(me=ye.lookAhead(1))&&(me=me.match(Ce)))return Gt.setext?(Gt.header=Gt.setext,Gt.setext=0,ye.skipToEnd(),oe.highlightFormatting&&(Gt.formatting="header")):(Gt.header=me[0].charAt(0)=="="?1:2,Gt.setext=Gt.header),Gt.thisLine.header=!0,Gt.f=Gt.inline,Zt(Gt);if(Hn)return ye.skipToEnd(),Gt.hr=!0,Gt.thisLine.hr=!0,Nt.hr;if(ye.peek()==="[")return gt(ye,Gt,Ve)}return gt(ye,Gt,Gt.inline)}function Ot(ye,Gt){var nn=Me.token(ye,Gt.htmlState);if(!Xt){var Zn=At.innerMode(Me,Gt.htmlState);(Zn.mode.name=="xml"&&Zn.state.tagStart===null&&!Zn.state.context&&Zn.state.tokenize.isInText||Gt.md_inside&&ye.current().indexOf(">")>-1)&&(Gt.f=fe,Gt.block=wt,Gt.htmlState=null)}return nn}function Ht(ye,Gt){var nn=Gt.listStack[Gt.listStack.length-1]||0,Zn=Gt.indentation<nn,_n=nn+3;if(Gt.fencedEndRE&&Gt.indentation<=_n&&(Zn||ye.match(Gt.fencedEndRE))){oe.highlightFormatting&&(Gt.formatting="code-block");var Te;return Zn||(Te=Zt(Gt)),Gt.localMode=Gt.localState=null,Gt.block=wt,Gt.f=fe,Gt.fencedEndRE=null,Gt.code=0,Gt.thisLine.fencedCodeEnd=!0,Zn?vt(ye,Gt,Gt.block):Te}else return Gt.localMode?Gt.localMode.token(ye,Gt.localState):(ye.skipToEnd(),Nt.code)}function Zt(ye){var Gt=[];if(ye.formatting){Gt.push(Nt.formatting),typeof ye.formatting=="string"&&(ye.formatting=[ye.formatting]);for(var nn=0;nn<ye.formatting.length;nn++)Gt.push(Nt.formatting+"-"+ye.formatting[nn]),ye.formatting[nn]==="header"&&Gt.push(Nt.formatting+"-"+ye.formatting[nn]+"-"+ye.header),ye.formatting[nn]==="quote"&&(!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=ye.quote?Gt.push(Nt.formatting+"-"+ye.formatting[nn]+"-"+ye.quote):Gt.push("error"))}if(ye.taskOpen)return Gt.push("meta"),Gt.length?Gt.join(" "):null;if(ye.taskClosed)return Gt.push("property"),Gt.length?Gt.join(" "):null;if(ye.linkHref?Gt.push(Nt.linkHref,"url"):(ye.strong&&Gt.push(Nt.strong),ye.em&&Gt.push(Nt.em),ye.strikethrough&&Gt.push(Nt.strikethrough),ye.emoji&&Gt.push(Nt.emoji),ye.linkText&&Gt.push(Nt.linkText),ye.code&&Gt.push(Nt.code),ye.image&&Gt.push(Nt.image),ye.imageAltText&&Gt.push(Nt.imageAltText,"link"),ye.imageMarker&&Gt.push(Nt.imageMarker)),ye.header&&Gt.push(Nt.header,Nt.header+"-"+ye.header),ye.quote&&(Gt.push(Nt.quote),!oe.maxBlockquoteDepth||oe.maxBlockquoteDepth>=ye.quote?Gt.push(Nt.quote+"-"+ye.quote):Gt.push(Nt.quote+"-"+oe.maxBlockquoteDepth)),ye.list!==!1){var Zn=(ye.listStack.length-1)%3;Zn?Zn===1?Gt.push(Nt.list2):Gt.push(Nt.list3):Gt.push(Nt.list1)}return ye.trailingSpaceNewLine?Gt.push("trailing-space-new-line"):ye.trailingSpace&&Gt.push("trailing-space-"+(ye.trailingSpace%2?"a":"b")),Gt.length?Gt.join(" "):null}function Ut(ye,Gt){if(ye.match(Tt,!0))return Zt(Gt)}function fe(ye,Gt){var nn=Gt.text(ye,Gt);if(typeof nn!="undefined")return nn;if(Gt.list)return Gt.list=null,Zt(Gt);if(Gt.taskList){var Zn=ye.match(xe,!0)[1]===" ";return Zn?Gt.taskOpen=!0:Gt.taskClosed=!0,oe.highlightFormatting&&(Gt.formatting="task"),Gt.taskList=!1,Zt(Gt)}if(Gt.taskOpen=!1,Gt.taskClosed=!1,Gt.header&&ye.match(/^#+$/,!0))return oe.highlightFormatting&&(Gt.formatting="header"),Zt(Gt);var _n=ye.next();if(Gt.linkTitle){Gt.linkTitle=!1;var Te=_n;_n==="("&&(Te=")"),Te=(Te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rn="^\\s*(?:[^"+Te+"\\\\]+|\\\\\\\\|\\\\.)"+Te;if(ye.match(new RegExp(rn),!0))return Nt.linkHref}if(_n==="`"){var gn=Gt.formatting;oe.highlightFormatting&&(Gt.formatting="code"),ye.eatWhile("`");var Vn=ye.current().length;if(Gt.code==0&&(!Gt.quote||Vn==1))return Gt.code=Vn,Zt(Gt);if(Vn==Gt.code){var cn=Zt(Gt);return Gt.code=0,cn}else return Gt.formatting=gn,Zt(Gt)}else if(Gt.code)return Zt(Gt);if(_n==="\\"&&(ye.next(),oe.highlightFormatting)){var Hn=Zt(Gt),me=Nt.formatting+"-escape";return Hn?Hn+" "+me:me}if(_n==="!"&&ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Gt.imageMarker=!0,Gt.image=!0,oe.highlightFormatting&&(Gt.formatting="image"),Zt(Gt);if(_n==="["&&Gt.imageMarker&&ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Gt.imageMarker=!1,Gt.imageAltText=!0,oe.highlightFormatting&&(Gt.formatting="image"),Zt(Gt);if(_n==="]"&&Gt.imageAltText){oe.highlightFormatting&&(Gt.formatting="image");var Hn=Zt(Gt);return Gt.imageAltText=!1,Gt.image=!1,Gt.inline=Gt.f=Xe,Hn}if(_n==="["&&!Gt.image)return Gt.linkText&&ye.match(/^.*?\]/)||(Gt.linkText=!0,oe.highlightFormatting&&(Gt.formatting="link")),Zt(Gt);if(_n==="]"&&Gt.linkText){oe.highlightFormatting&&(Gt.formatting="link");var Hn=Zt(Gt);return Gt.linkText=!1,Gt.inline=Gt.f=ye.match(/\(.*?\)| ?\[.*?\]/,!1)?Xe:fe,Hn}if(_n==="<"&&ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Gt.f=Gt.inline=Yt,oe.highlightFormatting&&(Gt.formatting="link");var Hn=Zt(Gt);return Hn?Hn+=" ":Hn="",Hn+Nt.linkInline}if(_n==="<"&&ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Gt.f=Gt.inline=Yt,oe.highlightFormatting&&(Gt.formatting="link");var Hn=Zt(Gt);return Hn?Hn+=" ":Hn="",Hn+Nt.linkEmail}if(oe.xml&&_n==="<"&&ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Un=ye.string.indexOf(">",ye.pos);if(Un!=-1){var ii=ye.string.substring(ye.start,Un);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ii)&&(Gt.md_inside=!0)}return ye.backUp(1),Gt.htmlState=At.startState(Me),vt(ye,Gt,Ot)}if(oe.xml&&_n==="<"&&ye.match(/^\/\w*?>/))return Gt.md_inside=!1,"tag";if(_n==="*"||_n==="_"){for(var xn=1,ni=ye.pos==1?" ":ye.string.charAt(ye.pos-2);xn<3&&ye.eat(_n);)xn++;var ze=ye.peek()||" ",Ie=!/\s/.test(ze)&&(!ht.test(ze)||/\s/.test(ni)||ht.test(ni)),ke=!/\s/.test(ni)&&(!ht.test(ni)||/\s/.test(ze)||ht.test(ze)),se=null,$e=null;if(xn%2&&(!Gt.em&&Ie&&(_n==="*"||!ke||ht.test(ni))?se=!0:Gt.em==_n&&ke&&(_n==="*"||!Ie||ht.test(ze))&&(se=!1)),xn>1&&(!Gt.strong&&Ie&&(_n==="*"||!ke||ht.test(ni))?$e=!0:Gt.strong==_n&&ke&&(_n==="*"||!Ie||ht.test(ze))&&($e=!1)),$e!=null||se!=null){oe.highlightFormatting&&(Gt.formatting=se==null?"strong":$e==null?"em":"strong em"),se===!0&&(Gt.em=_n),$e===!0&&(Gt.strong=_n);var cn=Zt(Gt);return se===!1&&(Gt.em=!1),$e===!1&&(Gt.strong=!1),cn}}else if(_n===" "&&(ye.eat("*")||ye.eat("_"))){if(ye.peek()===" ")return Zt(Gt);ye.backUp(1)}if(oe.strikethrough){if(_n==="~"&&ye.eatWhile(_n)){if(Gt.strikethrough){oe.highlightFormatting&&(Gt.formatting="strikethrough");var cn=Zt(Gt);return Gt.strikethrough=!1,cn}else if(ye.match(/^[^\s]/,!1))return Gt.strikethrough=!0,oe.highlightFormatting&&(Gt.formatting="strikethrough"),Zt(Gt)}else if(_n===" "&&ye.match(/^~~/,!0)){if(ye.peek()===" ")return Zt(Gt);ye.backUp(2)}}if(oe.emoji&&_n===":"&&ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Gt.emoji=!0,oe.highlightFormatting&&(Gt.formatting="emoji");var Ze=Zt(Gt);return Gt.emoji=!1,Ze}return _n===" "&&(ye.match(/^ +$/,!1)?Gt.trailingSpace++:Gt.trailingSpace&&(Gt.trailingSpaceNewLine=!0)),Zt(Gt)}function Yt(ye,Gt){var nn=ye.next();if(nn===">"){Gt.f=Gt.inline=fe,oe.highlightFormatting&&(Gt.formatting="link");var Zn=Zt(Gt);return Zn?Zn+=" ":Zn="",Zn+Nt.linkInline}return ye.match(/^[^>]+/,!0),Nt.linkInline}function Xe(ye,Gt){if(ye.eatSpace())return null;var nn=ye.next();return nn==="("||nn==="["?(Gt.f=Gt.inline=tn(nn==="("?")":"]"),oe.highlightFormatting&&(Gt.formatting="link-string"),Gt.linkHref=!0,Zt(Gt)):"error"}var pe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function tn(ye){return function(Gt,nn){var Zn=Gt.next();if(Zn===ye){nn.f=nn.inline=fe,oe.highlightFormatting&&(nn.formatting="link-string");var _n=Zt(nn);return nn.linkHref=!1,_n}return Gt.match(pe[ye]),nn.linkHref=!0,Zt(nn)}}function Ve(ye,Gt){return ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(Gt.f=We,ye.next(),oe.highlightFormatting&&(Gt.formatting="link"),Gt.linkText=!0,Zt(Gt)):gt(ye,Gt,fe)}function We(ye,Gt){if(ye.match(/^\]:/,!0)){Gt.f=Gt.inline=_e,oe.highlightFormatting&&(Gt.formatting="link");var nn=Zt(Gt);return Gt.linkText=!1,nn}return ye.match(/^([^\]\\]|\\.)+/,!0),Nt.linkText}function _e(ye,Gt){return ye.eatSpace()?null:(ye.match(/^[^\s]+/,!0),ye.peek()===void 0?Gt.linkTitle=!0:ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Gt.f=Gt.inline=fe,Nt.linkHref+" url")}var Tn={startState:function(){return{f:wt,prevLine:{stream:null},thisLine:{stream:null},block:wt,htmlState:null,indentation:0,inline:fe,text:Ut,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(ye){return{f:ye.f,prevLine:ye.prevLine,thisLine:ye.thisLine,block:ye.block,htmlState:ye.htmlState&&At.copyState(Me,ye.htmlState),indentation:ye.indentation,localMode:ye.localMode,localState:ye.localMode?At.copyState(ye.localMode,ye.localState):null,inline:ye.inline,text:ye.text,formatting:!1,linkText:ye.linkText,linkTitle:ye.linkTitle,linkHref:ye.linkHref,code:ye.code,em:ye.em,strong:ye.strong,strikethrough:ye.strikethrough,emoji:ye.emoji,header:ye.header,setext:ye.setext,hr:ye.hr,taskList:ye.taskList,list:ye.list,listStack:ye.listStack.slice(0),quote:ye.quote,indentedCode:ye.indentedCode,trailingSpace:ye.trailingSpace,trailingSpaceNewLine:ye.trailingSpaceNewLine,md_inside:ye.md_inside,fencedEndRE:ye.fencedEndRE}},token:function(ye,Gt){if(Gt.formatting=!1,ye!=Gt.thisLine.stream){if(Gt.header=0,Gt.hr=!1,ye.match(/^\s*$/,!0))return Ft(Gt),null;if(Gt.prevLine=Gt.thisLine,Gt.thisLine={stream:ye},Gt.taskList=!1,Gt.trailingSpace=0,Gt.trailingSpaceNewLine=!1,!Gt.localState&&(Gt.f=Gt.block,Gt.f!=Ot)){var nn=ye.match(/^\s*/,!0)[0].replace(/\t/g,st).length;if(Gt.indentation=nn,Gt.indentationDiff=null,nn>0)return null}}return Gt.f(ye,Gt)},innerMode:function(ye){return ye.block==Ot?{state:ye.htmlState,mode:Me}:ye.localState?{state:ye.localState,mode:ye.localMode}:{state:ye,mode:Tn}},indent:function(ye,Gt,nn){return ye.block==Ot&&Me.indent?Me.indent(ye.htmlState,Gt,nn):ye.localState&&ye.localMode.indent?ye.localMode.indent(ye.localState,Gt,nn):At.Pass},blankLine:Ft,getType:Zt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Tn},"xml"),At.defineMIME("text/markdown","markdown"),At.defineMIME("text/x-markdown","markdown")})},98101:function(Bn,Cn,St){(function(At){At(St(89780))})(function(At){"use strict";At.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 zt=0;zt<At.modeInfo.length;zt++){var oe=At.modeInfo[zt];oe.mimes&&(oe.mime=oe.mimes[0])}At.findModeByMIME=function(Me){Me=Me.toLowerCase();for(var Xt=0;Xt<At.modeInfo.length;Xt++){var Se=At.modeInfo[Xt];if(Se.mime==Me)return Se;if(Se.mimes){for(var Nt=0;Nt<Se.mimes.length;Nt++)if(Se.mimes[Nt]==Me)return Se}}if(/\+xml$/.test(Me))return At.findModeByMIME("application/xml");if(/\+json$/.test(Me))return At.findModeByMIME("application/json")},At.findModeByExtension=function(Me){Me=Me.toLowerCase();for(var Xt=0;Xt<At.modeInfo.length;Xt++){var Se=At.modeInfo[Xt];if(Se.ext){for(var Nt=0;Nt<Se.ext.length;Nt++)if(Se.ext[Nt]==Me)return Se}}},At.findModeByFileName=function(Me){for(var Xt=0;Xt<At.modeInfo.length;Xt++){var Se=At.modeInfo[Xt];if(Se.file&&Se.file.test(Me))return Se}var Nt=Me.lastIndexOf("."),Ne=Nt>-1&&Me.substring(Nt+1,Me.length);if(Ne)return At.findModeByExtension(Ne)},At.findModeByName=function(Me){Me=Me.toLowerCase();for(var Xt=0;Xt<At.modeInfo.length;Xt++){var Se=At.modeInfo[Xt];if(Se.name.toLowerCase()==Me)return Se;if(Se.alias){for(var Nt=0;Nt<Se.alias.length;Nt++)if(Se.alias[Nt].toLowerCase()==Me)return Se}}}})},67549:function(Bn,Cn,St){(function(At){At(St(89780))})(function(At){"use strict";At.defineMode("stex",function(zt,oe){"use strict";function Me(Tt,et){Tt.cmdState.push(et)}function Xt(Tt){return Tt.cmdState.length>0?Tt.cmdState[Tt.cmdState.length-1]:null}function Se(Tt){var et=Tt.cmdState.pop();et&&et.closeBracket()}function Nt(Tt){for(var et=Tt.cmdState,nt=et.length-1;nt>=0;nt--){var ht=et[nt];if(ht.name!="DEFAULT")return ht}return{styleIdentifier:function(){return null}}}function Ne(Tt,et,nt){return function(){this.name=Tt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Pe={};Pe.importmodule=Ne("importmodule","tag",["string","builtin"]),Pe.documentclass=Ne("documentclass","tag",["","atom"]),Pe.usepackage=Ne("usepackage","tag",["atom"]),Pe.begin=Ne("begin","tag",["atom"]),Pe.end=Ne("end","tag",["atom"]),Pe.label=Ne("label","tag",["atom"]),Pe.ref=Ne("ref","tag",["atom"]),Pe.eqref=Ne("eqref","tag",["atom"]),Pe.cite=Ne("cite","tag",["atom"]),Pe.bibitem=Ne("bibitem","tag",["atom"]),Pe.Bibitem=Ne("Bibitem","tag",["atom"]),Pe.RBibitem=Ne("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ne(Tt,et){Tt.f=et}function xe(Tt,et){var nt;if(Tt.match(/^\\[a-zA-Z@]+/)){var ht=Tt.current().slice(1);return nt=Pe.hasOwnProperty(ht)?Pe[ht]:Pe.DEFAULT,nt=new nt,Me(et,nt),ne(et,Ce),nt.style}if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/\\]/))return"tag";if(Tt.match("\\["))return ne(et,function(gt,vt){return we(gt,vt,"\\]")}),"keyword";if(Tt.match("\\("))return ne(et,function(gt,vt){return we(gt,vt,"\\)")}),"keyword";if(Tt.match("$$"))return ne(et,function(gt,vt){return we(gt,vt,"$$")}),"keyword";if(Tt.match("$"))return ne(et,function(gt,vt){return we(gt,vt,"$")}),"keyword";var st=Tt.next();if(st=="%")return Tt.skipToEnd(),"comment";if(st=="}"||st=="]"){if(nt=Xt(et),nt)nt.closeBracket(st),ne(et,Ce);else return"error";return"bracket"}else return st=="{"||st=="["?(nt=Pe.DEFAULT,nt=new nt,Me(et,nt),"bracket"):/\d/.test(st)?(Tt.eatWhile(/[\w.%]/),"atom"):(Tt.eatWhile(/[\w\-_]/),nt=Nt(et),nt.name=="begin"&&(nt.argument=Tt.current()),nt.styleIdentifier())}function we(Tt,et,nt){if(Tt.eatSpace())return null;if(nt&&Tt.match(nt))return ne(et,xe),"keyword";if(Tt.match(/^\\[a-zA-Z@]+/))return"tag";if(Tt.match(/^[a-zA-Z]+/))return"variable-2";if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/]/)||Tt.match(/^[\^_&]/))return"tag";if(Tt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Tt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Tt.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Tt.skipToEnd(),"comment"):"error"}function Ce(Tt,et){var nt=Tt.peek(),ht;return nt=="{"||nt=="["?(ht=Xt(et),ht.openBracket(nt),Tt.eat(nt),ne(et,xe),"bracket"):/[ \t\r]/.test(nt)?(Tt.eat(nt),null):(ne(et,xe),Se(et),xe(Tt,et))}return{startState:function(){var Tt=oe.inMathMode?function(et,nt){return we(et,nt)}:xe;return{cmdState:[],f:Tt}},copyState:function(Tt){return{cmdState:Tt.cmdState.slice(),f:Tt.f}},token:function(Tt,et){return et.f(Tt,et)},blankLine:function(Tt){Tt.f=xe,Tt.cmdState.length=0},lineComment:"%"}}),At.defineMIME("text/x-stex","stex"),At.defineMIME("text/x-latex","stex")})},15525:function(Bn,Cn,St){(function(At){At(St(89780))})(function(At){"use strict";var zt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};At.defineMode("xml",function(Me,Xt){var Se=Me.indentUnit,Nt={},Ne=Xt.htmlMode?zt:oe;for(var Pe in Ne)Nt[Pe]=Ne[Pe];for(var Pe in Xt)Nt[Pe]=Xt[Pe];var ne,xe;function we(Yt,Xe){function pe(We){return Xe.tokenize=We,We(Yt,Xe)}var tn=Yt.next();if(tn=="<")return Yt.eat("!")?Yt.eat("[")?Yt.match("CDATA[")?pe(et("atom","]]>")):null:Yt.match("--")?pe(et("comment","-->")):Yt.match("DOCTYPE",!0,!0)?(Yt.eatWhile(/[\w\._\-]/),pe(nt(1))):null:Yt.eat("?")?(Yt.eatWhile(/[\w\._\-]/),Xe.tokenize=et("meta","?>"),"meta"):(ne=Yt.eat("/")?"closeTag":"openTag",Xe.tokenize=Ce,"tag bracket");if(tn=="&"){var Ve;return Yt.eat("#")?Yt.eat("x")?Ve=Yt.eatWhile(/[a-fA-F\d]/)&&Yt.eat(";"):Ve=Yt.eatWhile(/[\d]/)&&Yt.eat(";"):Ve=Yt.eatWhile(/[\w\.\-:]/)&&Yt.eat(";"),Ve?"atom":"error"}else return Yt.eatWhile(/[^&<]/),null}we.isInText=!0;function Ce(Yt,Xe){var pe=Yt.next();if(pe==">"||pe=="/"&&Yt.eat(">"))return Xe.tokenize=we,ne=pe==">"?"endTag":"selfcloseTag","tag bracket";if(pe=="=")return ne="equals",null;if(pe=="<"){Xe.tokenize=we,Xe.state=vt,Xe.tagName=Xe.tagStart=null;var tn=Xe.tokenize(Yt,Xe);return tn?tn+" tag error":"tag error"}else return/[\'\"]/.test(pe)?(Xe.tokenize=Tt(pe),Xe.stringStartCol=Yt.column(),Xe.tokenize(Yt,Xe)):(Yt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Tt(Yt){var Xe=function(pe,tn){for(;!pe.eol();)if(pe.next()==Yt){tn.tokenize=Ce;break}return"string"};return Xe.isInAttribute=!0,Xe}function et(Yt,Xe){return function(pe,tn){for(;!pe.eol();){if(pe.match(Xe)){tn.tokenize=we;break}pe.next()}return Yt}}function nt(Yt){return function(Xe,pe){for(var tn;(tn=Xe.next())!=null;){if(tn=="<")return pe.tokenize=nt(Yt+1),pe.tokenize(Xe,pe);if(tn==">")if(Yt==1){pe.tokenize=we;break}else return pe.tokenize=nt(Yt-1),pe.tokenize(Xe,pe)}return"meta"}}function ht(Yt,Xe,pe){this.prev=Yt.context,this.tagName=Xe,this.indent=Yt.indented,this.startOfLine=pe,(Nt.doNotIndent.hasOwnProperty(Xe)||Yt.context&&Yt.context.noIndent)&&(this.noIndent=!0)}function st(Yt){Yt.context&&(Yt.context=Yt.context.prev)}function gt(Yt,Xe){for(var pe;;){if(!Yt.context||(pe=Yt.context.tagName,!Nt.contextGrabbers.hasOwnProperty(pe)||!Nt.contextGrabbers[pe].hasOwnProperty(Xe)))return;st(Yt)}}function vt(Yt,Xe,pe){return Yt=="openTag"?(pe.tagStart=Xe.column(),Pt):Yt=="closeTag"?Ft:vt}function Pt(Yt,Xe,pe){return Yt=="word"?(pe.tagName=Xe.current(),xe="tag",Ht):Nt.allowMissingTagName&&Yt=="endTag"?(xe="tag bracket",Ht(Yt,Xe,pe)):(xe="error",Pt)}function Ft(Yt,Xe,pe){if(Yt=="word"){var tn=Xe.current();return pe.context&&pe.context.tagName!=tn&&Nt.implicitlyClosed.hasOwnProperty(pe.context.tagName)&&st(pe),pe.context&&pe.context.tagName==tn||Nt.matchClosing===!1?(xe="tag",wt):(xe="tag error",Ot)}else return Nt.allowMissingTagName&&Yt=="endTag"?(xe="tag bracket",wt(Yt,Xe,pe)):(xe="error",Ot)}function wt(Yt,Xe,pe){return Yt!="endTag"?(xe="error",wt):(st(pe),vt)}function Ot(Yt,Xe,pe){return xe="error",wt(Yt,Xe,pe)}function Ht(Yt,Xe,pe){if(Yt=="word")return xe="attribute",Zt;if(Yt=="endTag"||Yt=="selfcloseTag"){var tn=pe.tagName,Ve=pe.tagStart;return pe.tagName=pe.tagStart=null,Yt=="selfcloseTag"||Nt.autoSelfClosers.hasOwnProperty(tn)?gt(pe,tn):(gt(pe,tn),pe.context=new ht(pe,tn,Ve==pe.indented)),vt}return xe="error",Ht}function Zt(Yt,Xe,pe){return Yt=="equals"?Ut:(Nt.allowMissing||(xe="error"),Ht(Yt,Xe,pe))}function Ut(Yt,Xe,pe){return Yt=="string"?fe:Yt=="word"&&Nt.allowUnquoted?(xe="string",Ht):(xe="error",Ht(Yt,Xe,pe))}function fe(Yt,Xe,pe){return Yt=="string"?fe:Ht(Yt,Xe,pe)}return{startState:function(Yt){var Xe={tokenize:we,state:vt,indented:Yt||0,tagName:null,tagStart:null,context:null};return Yt!=null&&(Xe.baseIndent=Yt),Xe},token:function(Yt,Xe){if(!Xe.tagName&&Yt.sol()&&(Xe.indented=Yt.indentation()),Yt.eatSpace())return null;ne=null;var pe=Xe.tokenize(Yt,Xe);return(pe||ne)&&pe!="comment"&&(xe=null,Xe.state=Xe.state(ne||pe,Yt,Xe),xe&&(pe=xe=="error"?pe+" error":xe)),pe},indent:function(Yt,Xe,pe){var tn=Yt.context;if(Yt.tokenize.isInAttribute)return Yt.tagStart==Yt.indented?Yt.stringStartCol+1:Yt.indented+Se;if(tn&&tn.noIndent)return At.Pass;if(Yt.tokenize!=Ce&&Yt.tokenize!=we)return pe?pe.match(/^(\s*)/)[0].length:0;if(Yt.tagName)return Nt.multilineTagIndentPastTag!==!1?Yt.tagStart+Yt.tagName.length+2:Yt.tagStart+Se*(Nt.multilineTagIndentFactor||1);if(Nt.alignCDATA&&/<!\[CDATA\[/.test(Xe))return 0;var Ve=Xe&&/^<(\/)?([\w_:\.-]*)/.exec(Xe);if(Ve&&Ve[1])for(;tn;)if(tn.tagName==Ve[2]){tn=tn.prev;break}else if(Nt.implicitlyClosed.hasOwnProperty(tn.tagName))tn=tn.prev;else break;else if(Ve)for(;tn;){var We=Nt.contextGrabbers[tn.tagName];if(We&&We.hasOwnProperty(Ve[2]))tn=tn.prev;else break}for(;tn&&tn.prev&&!tn.startOfLine;)tn=tn.prev;return tn?tn.indent+Se:Yt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Nt.htmlMode?"html":"xml",helperType:Nt.htmlMode?"html":"xml",skipAttribute:function(Yt){Yt.state==Ut&&(Yt.state=Ht)},xmlCurrentTag:function(Yt){return Yt.tagName?{name:Yt.tagName,close:Yt.type=="closeTag"}:null},xmlCurrentContext:function(Yt){for(var Xe=[],pe=Yt.context;pe;pe=pe.prev)pe.tagName&&Xe.push(pe.tagName);return Xe.reverse()}}}),At.defineMIME("text/xml","xml"),At.defineMIME("application/xml","xml"),At.mimeModes.hasOwnProperty("text/html")||At.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Bn,Cn,St){"use strict";St.d(Cn,{$u:function(){return Pe},BD:function(){return xn},E9:function(){return Ne},FF:function(){return Rr},FJ:function(){return vt},Hn:function(){return gt},KX:function(){return Ft},NB:function(){return Bt},S0:function(){return me},UL:function(){return ne},Vk:function(){return st},Vm:function(){return mt},YI:function(){return Un},ZA:function(){return oe},Zt:function(){return xe},al:function(){return se},bn:function(){return ke},bx:function(){return ni},g2:function(){return ii},h1:function(){return Ut},hD:function(){return Yn},l4:function(){return Se},rU:function(){return xt},s_:function(){return ze},uz:function(){return re},z6:function(){return we}}),Bn=St.hmd(Bn),function(){var Et;function ai(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function mi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:ai(a)}}function hr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var wr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},_i;if(typeof Object.setPrototypeOf=="function")_i=Object.setPrototypeOf;else{var Qr;t:{var Zr={a:!0},xo={};try{xo.__proto__=Zr,Qr=xo.a;break t}catch(a){}Qr=!1}_i=Qr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var an=_i;function Qe(a,y){if(a.prototype=wr(y.prototype),a.prototype.constructor=a,an)an(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var Jt=typeof St.g!="undefined"&&St.g!=null?St.g:self,un=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},On=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Ee(a,y){if(y){var x=Jt;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&&On(x,a,{writable:!0,value:y})}}Ee("Object.assign",function(a){return a||un}),Ee("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 ce=typeof globalThis=="object"&&globalThis||typeof St.g=="object"&&St.g.global===St.g&&St.g||typeof self=="object"&&self.self===self&&self||{};ce.requestAnimationFrame===void 0&&(ce.setImmediate===void 0?ce.requestAnimationFrame=function(a){ce.setTimeout(a,0)}:ce.requestAnimationFrame=ce.setImmediate);function mn(){}function Wn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&ce.clearTimeout(x),x=Mi(function(){x=-1,a.apply(b,E)},y)}}function Mi(a,y){return ce.setTimeout(a,y)}function pi(a){return ce.document.createElement(a)}function ue(a){throw Error(a)}function Nn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),ue(a)}function ui(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),ue(x+" is not in the range "+y+": "+a)}function Hi(a){ce.console&&ce.console.log(a)}function Ge(a){return typeof a=="object"&&a!==null}function pn(a){return Array.isArray(a)||ce.NodeList&&a instanceof ce.NodeList||ce.HTMLCollection&&a instanceof ce.HTMLCollection}function je(a){return Array.prototype.slice.call(a)}function hn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):ue("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function yn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):ue("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function dn(){var a=nr.pop();return a===void 0?[]:a}function kn(a){a.length=0,nr.push(a)}function Ln(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(Ge(a)&&a.constructor)return Ln(a.constructor);return typeof a}function Kn(a){var y=a;return Ge(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 Jn(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 Zi(a,y,x){Object.defineProperty(In.prototype,a,{get:y,set:x})}function en(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="",tt=0;tt<a.length;tt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var qi=ce.navigator!==void 0&&0<ce.navigator.userAgent.indexOf("Trident/7"),Er=ce.navigator!==void 0&&ce.navigator.platform!==void 0&&ce.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,nr=[];Object.freeze([]),mn.className="Util",mn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",mn.adym="gojs.net",mn.vfo="28e645fdb266",mn.className="Util";function sn(a,y,x){Or(this),this.j=a,this.xa=y,this.o=x}sn.prototype.toString=function(){return"EnumValue."+this.xa};function si(a,y){return y==null||y===""?null:a[y]}Jt.Object.defineProperties(sn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),sn.className="EnumValue";function Ai(){this.ew=[]}Ai.prototype.toString=function(){return this.ew.join("")},Ai.prototype.add=function(a){a!==""&&this.ew.push(a)},Ai.className="StringBuilder";function Ki(){}Ki.className="PropertyCollection";var Di={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){ce.console&&ce.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(tt,rt){return function(){throw Error("Property "+tt.Zl[rt.Tj]+" of "+tt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function vr(){}vr.prototype.reset=function(){},vr.prototype.next=function(){return!1},vr.prototype.Ad=function(){return!1},vr.prototype.first=function(){return null},vr.prototype.any=function(){return!1},vr.prototype.all=function(){return!0},vr.prototype.each=function(){return this},vr.prototype.map=function(){return this},vr.prototype.filter=function(){return this},vr.prototype.de=function(){},vr.prototype.toString=function(){return"EmptyIterator"},Jt.Object.defineProperties(vr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),vr.prototype.first=vr.prototype.first,vr.prototype.hasNext=vr.prototype.Ad,vr.prototype.next=vr.prototype.next,vr.prototype.reset=vr.prototype.reset;var Pr=null;vr.className="EmptyIterator",Pr=new vr;function tr(a){this.key=-1,this.value=a}tr.prototype.reset=function(){this.key=-1},tr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},tr.prototype.Ad=function(){return this.next()},tr.prototype.first=function(){return this.key=0,this.value},tr.prototype.any=function(a){return this.key=-1,a(this.value)},tr.prototype.all=function(a){return this.key=-1,a(this.value)},tr.prototype.each=function(a){return this.key=-1,a(this.value),this},tr.prototype.map=function(a){return new tr(a(this.value))},tr.prototype.filter=function(a){return a(this.value)?new tr(this.value):Pr},tr.prototype.de=function(){this.value=null},tr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Jt.Object.defineProperties(tr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),tr.prototype.first=tr.prototype.first,tr.prototype.hasNext=tr.prototype.Ad,tr.prototype.next=tr.prototype.next,tr.prototype.reset=tr.prototype.reset,tr.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 tt=y[z];(E===null||E(tt))&&x.push(a(tt))}return a=new bn,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 tt=y[z];(E===null||E(tt))&&a(tt)&&x.push(tt)}return a=new bn,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},Jt.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 Lr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Lr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Lr.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)},Lr.prototype.Ad=function(){return this.next()},Lr.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},Lr.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},Lr.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},Lr.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},Lr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new bn,a.s=x,a.xb(),a.iterator},Lr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new bn,a.s=x,a.xb(),a.iterator},Lr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Lr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Jt.Object.defineProperties(Lr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Lr.prototype.first=Lr.prototype.first,Lr.prototype.hasNext=Lr.prototype.Ad,Lr.prototype.next=Lr.prototype.next,Lr.prototype.reset=Lr.prototype.reset,Lr.className="ListIteratorBackwards";function bn(a){Or(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&ue("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Et=bn.prototype,Et.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.toString=function(){return"List()#"+bo(this)},Et.add=function(a){return a===null?this:(this._isFrozen&&Nn(this,a),this.s.push(a),this.xb(),this)},Et.push=function(a){this.add(a)},Et.addAll=function(a){if(a===null)return this;this._isFrozen&&Nn(this);var y=this.s;if(pn(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},Et.clear=function(){this._isFrozen&&Nn(this),this.s.length=0,this.xb()},Et.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Et.has=function(a){return this.contains(a)},Et.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Et.M=function(a){var y=this.s;return(0>a||a>=y.length)&&ui(a,"0 <= i < length",bn,"elt:i"),y[a]},Et.get=function(a){return this.M(a)},Et.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&ui(a,"0 <= i < length",bn,"setElt:i"),this._isFrozen&&Nn(this,a),x[a]=y},Et.set=function(a,y){this.cd(a,y)},Et.first=function(){var a=this.s;return a.length===0?null:a[0]},Et.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Et.pop=function(){this._isFrozen&&Nn(this);var a=this.s;return 0<a.length?a.pop():null},bn.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},bn.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},bn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},bn.prototype.map=function(a){for(var y=new bn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},bn.prototype.filter=function(a){for(var y=new bn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var tt=b[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},Et=bn.prototype,Et.Gb=function(a,y){0>a&&ui(a,">= 0",bn,"insertAt:i"),this._isFrozen&&Nn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Et.remove=function(a){if(a===null)return!1;this._isFrozen&&Nn(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)},Et.delete=function(a){return this.remove(a)},Et.mb=function(a){var y=this.s;(0>a||a>=y.length)&&ui(a,"0 <= i < length",bn,"removeAt:i"),this._isFrozen&&Nn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Et.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&&Nn(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},bn.prototype.copy=function(){var a=new bn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Et=bn.prototype,Et.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Et.Iv=function(){for(var a=new Mn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Et.sort=function(a){return this._isFrozen&&Nn(this),this.s.sort(a),this.xb(),this},Et.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Nn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&ui(y,"0 <= from < length",bn,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},Et.reverse=function(){return this._isFrozen&&Nn(this),this.s.reverse(),this.xb(),this},Jt.Object.defineProperties(bn.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return Pr;var a=this.Sa;return a!==null?(a.reset(),a):new Oi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Pr;var a=this.Hg;return a!==null?(a.reset(),a):new Lr(this)}}}),bn.prototype.reverse=bn.prototype.reverse,bn.prototype.sortRange=bn.prototype.zi,bn.prototype.sort=bn.prototype.sort,bn.prototype.toSet=bn.prototype.Iv,bn.prototype.toArray=bn.prototype.Fa,bn.prototype.removeRange=bn.prototype.removeRange,bn.prototype.removeAt=bn.prototype.mb,bn.prototype.delete=bn.prototype.delete,bn.prototype.remove=bn.prototype.remove,bn.prototype.insertAt=bn.prototype.Gb,bn.prototype.pop=bn.prototype.pop,bn.prototype.last=bn.prototype.jc,bn.prototype.first=bn.prototype.first,bn.prototype.set=bn.prototype.set,bn.prototype.setElt=bn.prototype.cd,bn.prototype.get=bn.prototype.get,bn.prototype.elt=bn.prototype.M,bn.prototype.indexOf=bn.prototype.indexOf,bn.prototype.has=bn.prototype.has,bn.prototype.contains=bn.prototype.contains,bn.prototype.clear=bn.prototype.clear,bn.prototype.addAll=bn.prototype.addAll,bn.prototype.push=bn.prototype.push,bn.prototype.add=bn.prototype.add,bn.prototype.thaw=bn.prototype.ka,bn.prototype.freeze=bn.prototype.freeze,bn.className="List";function wo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}wo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},wo.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)},wo.prototype.Ad=function(){return this.next()},wo.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},wo.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},wo.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},wo.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},wo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new bn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},wo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new bn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},wo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},wo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Jt.Object.defineProperties(wo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),wo.prototype.first=wo.prototype.first,wo.prototype.hasNext=wo.prototype.Ad,wo.prototype.next=wo.prototype.next,wo.prototype.reset=wo.prototype.reset,wo.className="SetIterator";function Mn(a){Or(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&ue("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Et=Mn.prototype,Et.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.toString=function(){return"Set()#"+bo(this)},Et.add=function(a){if(a===null)return this;this._isFrozen&&Nn(this,a);var y=a;return Ge(a)&&(y=ea(a)),this.Tb[y]===void 0&&(this.Sb++,a=new eo(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},Et.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Nn(this),pn(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},Et.contains=function(a){if(a===null)return!1;var y=a;return Ge(a)&&(y=bo(a),y===void 0)?!1:this.Tb[y]!==void 0},Et.has=function(a){return this.contains(a)},Et.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Et.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Et.first=function(){var a=this.ea;return a===null?null:a.value},Mn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Mn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Mn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Mn.prototype.map=function(a){for(var y=new Mn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Mn.prototype.filter=function(a){for(var y=new Mn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Et=Mn.prototype,Et.remove=function(a){if(a===null)return!1;this._isFrozen&&Nn(this,a);var y=a;if(Ge(a)&&(y=bo(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},Et.delete=function(a){return this.remove(a)},Et.hp=function(a){if(a===null)return this;if(this._isFrozen&&Nn(this),pn(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},Et.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Nn(this);var y=new Mn;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},Et.clear=function(){this._isFrozen&&Nn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Mn.prototype.copy=function(){var a=new Mn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Mn.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},Mn.prototype.Hv=function(){var a=new bn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Or(a){a.__gohashid=ca++}function ea(a){var y=a.__gohashid;return y===void 0&&(y=ca++,a.__gohashid=y),y}function bo(a){return a.__gohashid}Jt.Object.defineProperties(Mn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Pr;var a=this.Sa;return a!==null?(a.reset(),a):new wo(this)}}}),Mn.prototype.toList=Mn.prototype.Hv,Mn.prototype.toArray=Mn.prototype.Fa,Mn.prototype.clear=Mn.prototype.clear,Mn.prototype.retainAll=Mn.prototype.pA,Mn.prototype.removeAll=Mn.prototype.hp,Mn.prototype.delete=Mn.prototype.delete,Mn.prototype.remove=Mn.prototype.remove,Mn.prototype.first=Mn.prototype.first,Mn.prototype.containsAny=Mn.prototype.Ty,Mn.prototype.containsAll=Mn.prototype.Sy,Mn.prototype.has=Mn.prototype.has,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.addAll=Mn.prototype.addAll,Mn.prototype.add=Mn.prototype.add,Mn.prototype.thaw=Mn.prototype.ka,Mn.prototype.freeze=Mn.prototype.freeze;var ca=1;Mn.className="Set",Mn.uniqueHash=Or,Mn.hashIdUnique=ea,Mn.hashId=bo;function qo(a){this.ma=a,this.qa=a.Ja,this.sa=null}qo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},qo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},qo.prototype.Ad=function(){return this.next()},qo.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},qo.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},qo.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},qo.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},qo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new bn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},qo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new bn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},qo.prototype.de=function(){this.value=this.key=null,this.qa=-1},qo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Jt.Object.defineProperties(qo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),qo.prototype.first=qo.prototype.first,qo.prototype.hasNext=qo.prototype.Ad,qo.prototype.next=qo.prototype.next,qo.prototype.reset=qo.prototype.reset,qo.className="MapKeySetIterator";function dr(a){Mn.call(this),Or(this),this._isFrozen=!0,this.ma=a}Qe(dr,Mn),Et=dr.prototype,Et.freeze=function(){return this},Et.ka=function(){return this},Et.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Et.add=function(){ue("This Set is read-only: "+this.toString())},Et.contains=function(a){return this.ma.contains(a)},Et.has=function(a){return this.contains(a)},Et.remove=function(){ue("This Set is read-only: "+this.toString())},Et.delete=function(a){return this.remove(a)},Et.clear=function(){ue("This Set is read-only: "+this.toString())},Et.first=function(){var a=this.ma.ea;return a!==null?a.key:null},dr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},dr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},dr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},dr.prototype.map=function(a){for(var y=new Mn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},dr.prototype.filter=function(a){for(var y=new Mn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},dr.prototype.copy=function(){return new dr(this.ma)},dr.prototype.Iv=function(){var a=new Mn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},dr.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},dr.prototype.Hv=function(){var a=new bn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Jt.Object.defineProperties(dr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Pr:new qo(this.ma)}}}),dr.prototype.toList=dr.prototype.Hv,dr.prototype.toArray=dr.prototype.Fa,dr.prototype.toSet=dr.prototype.Iv,dr.prototype.first=dr.prototype.first,dr.prototype.clear=dr.prototype.clear,dr.prototype.delete=dr.prototype.delete,dr.prototype.remove=dr.prototype.remove,dr.prototype.has=dr.prototype.has,dr.prototype.contains=dr.prototype.contains,dr.prototype.add=dr.prototype.add,dr.prototype.thaw=dr.prototype.ka,dr.prototype.freeze=dr.prototype.freeze,dr.className="MapKeySet";function er(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}er.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},er.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)},er.prototype.Ad=function(){return this.next()},er.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},er.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},er.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},er.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},er.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new bn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},er.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new bn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},er.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},er.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Jt.Object.defineProperties(er.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),er.prototype.first=er.prototype.first,er.prototype.hasNext=er.prototype.Ad,er.prototype.next=er.prototype.next,er.prototype.reset=er.prototype.reset,er.className="MapValueSetIterator";function eo(a,y){this.key=a,this.value=y,this.ll=this.va=null}eo.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},eo.className="KeyValuePair";function ko(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ko.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ko.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)},ko.prototype.Ad=function(){return this.next()},ko.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},ko.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},ko.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},ko.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},ko.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new bn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ko.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new bn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ko.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ko.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Jt.Object.defineProperties(ko.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ko.prototype.first=ko.prototype.first,ko.prototype.hasNext=ko.prototype.Ad,ko.prototype.next=ko.prototype.next,ko.prototype.reset=ko.prototype.reset,ko.className="MapIterator";function ki(a){Or(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"&&ue("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Et=ki.prototype,Et.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.toString=function(){return"Map()#"+bo(this)},Et.add=function(a,y){this._isFrozen&&Nn(this,a);var x=a;Ge(a)&&(x=ea(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new eo(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},Et.set=function(a,y){return this.add(a,y)},Et.addAll=function(a){if(a===null)return this;if(pn(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 ki)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},Et.first=function(){return this.ea},ki.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ki.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ki.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},ki.prototype.map=function(a){for(var y=new ki,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},ki.prototype.filter=function(a){for(var y=new ki,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Et=ki.prototype,Et.contains=function(a){var y=a;return Ge(a)&&(y=bo(a),y===void 0)?!1:this.Tb[y]!==void 0},Et.has=function(a){return this.contains(a)},Et.I=function(a){var y=a;return Ge(a)&&(y=bo(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Et.get=function(a){return this.I(a)},Et.remove=function(a){if(a===null)return!1;this._isFrozen&&Nn(this,a);var y=a;if(Ge(a)&&(y=bo(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},Et.delete=function(a){return this.remove(a)},Et.clear=function(){this._isFrozen&&Nn(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()},ki.prototype.copy=function(){var a=new ki,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},ki.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 eo(E.key,E.value),x++}return y},ki.prototype.Lf=function(){return new dr(this)},Jt.Object.defineProperties(ki.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Pr;var a=this.Sa;return a!==null?(a.reset(),a):new ko(this)}},iteratorKeys:{get:function(){return 0>=this.count?Pr:new qo(this)}},iteratorValues:{get:function(){if(0>=this.count)return Pr;var a=this.jf;return a!==null?(a.reset(),a):new er(this)}}}),ki.prototype.toKeySet=ki.prototype.Lf,ki.prototype.toArray=ki.prototype.Fa,ki.prototype.clear=ki.prototype.clear,ki.prototype.delete=ki.prototype.delete,ki.prototype.remove=ki.prototype.remove,ki.prototype.get=ki.prototype.get,ki.prototype.getValue=ki.prototype.I,ki.prototype.has=ki.prototype.has,ki.prototype.contains=ki.prototype.contains,ki.prototype.first=ki.prototype.first,ki.prototype.addAll=ki.prototype.addAll,ki.prototype.set=ki.prototype.set,ki.prototype.add=ki.prototype.add,ki.prototype.thaw=ki.prototype.ka,ki.prototype.freeze=ki.prototype.freeze,ki.className="Map";function Vt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):ue("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var fo,_o,ro,Yo,ya;Vt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Vt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Vt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Vt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Vt.prototype.copy=function(){var a=new Vt;return a.x=this.x,a.y=this.y,a},Et=Vt.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&ue("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ar(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Vt(x,E)}return new Vt}function Tr(a){return a.x.toString()+" "+a.y.toString()}Et.toString=function(){return"Point("+this.x+","+this.y+")"},Et.D=function(a){return a instanceof Vt?this.x===a.x&&this.y===a.y:!1},Et.hi=function(a,y){return this.x===a&&this.y===y},Et.Xa=function(a){return Ae.B(this.x,a.x)&&Ae.B(this.y,a.y)},Et.add=function(a){return this.x+=a.x,this.y+=a.y,this},Et.re=function(a){return this.x-=a.x,this.y-=a.y,this},Et.offset=function(a,y){return this.x+=a,this.y+=y,this},Vt.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},Et=Vt.prototype,Et.scale=function(a,y){return this.x*=a,this.y*=y,this},Et.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Et.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Et.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},Et.ab=function(a){return uo(a.x-this.x,a.y-this.y)},Et.direction=function(a,y){return uo(a-this.x,y-this.y)};function uo(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}Et.Ry=function(a,y){return Ae.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Et.fA=function(a,y,x,b){return Ae.qh(a,y,x,b,this.x,this.y,this),this},Et.gA=function(a,y){return Ae.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Et.uA=function(a,y,x,b){return Ae.No(this.x,this.y,a,y,x,b,this),this},Et.vA=function(a,y){return Ae.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Et.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},Et.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},Et.transform=function(a){return a.Ga(this),this};function $r(a,y){return y.Cd(a),a}function Zo(a,y,x,b,E,z){var tt=E-x,rt=z-b,ot=tt*tt+rt*rt;x-=a,b-=y;var lt=-x*tt-b*rt;return 0>=lt||lt>=ot?(tt=E-a,rt=z-y,Math.min(x*x+b*b,tt*tt+rt*rt)):(a=tt*b-rt*x,a*a/ot)}function oa(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function cr(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)}Et.w=function(){return isFinite(this.x)&&isFinite(this.y)},Vt.alloc=function(){var a=fr.pop();return a===void 0?new Vt:a},Vt.allocAt=function(a,y){var x=fr.pop();return x===void 0?new Vt(a,y):(x.x=a,x.y=y,x)},Vt.free=function(a){fr.push(a)},Vt.prototype.isReal=Vt.prototype.w,Vt.prototype.setSpot=Vt.prototype.yi,Vt.prototype.setRectSpot=Vt.prototype.xi,Vt.prototype.snapToGridPoint=Vt.prototype.vA,Vt.prototype.snapToGrid=Vt.prototype.uA,Vt.prototype.projectOntoLineSegmentPoint=Vt.prototype.gA,Vt.prototype.projectOntoLineSegment=Vt.prototype.fA,Vt.intersectingLineSegments=function(a,y,x,b,E,z,tt,rt){return Ae.Rl(a,y,x,b,E,z,tt,rt)},Vt.prototype.compareWithLineSegmentPoint=Vt.prototype.Ry,Vt.compareWithLineSegment=function(a,y,x,b,E,z){return Ae.Fl(a,y,x,b,E,z)},Vt.prototype.direction=Vt.prototype.direction,Vt.prototype.directionPoint=Vt.prototype.ab,Vt.prototype.normalize=Vt.prototype.normalize,Vt.prototype.distanceSquared=Vt.prototype.zd,Vt.prototype.distanceSquaredPoint=Vt.prototype.Bf,Vt.prototype.scale=Vt.prototype.scale,Vt.prototype.rotate=Vt.prototype.rotate,Vt.prototype.offset=Vt.prototype.offset,Vt.prototype.subtract=Vt.prototype.re,Vt.prototype.add=Vt.prototype.add,Vt.prototype.equalsApprox=Vt.prototype.Xa,Vt.prototype.equalTo=Vt.prototype.hi,Vt.prototype.equals=Vt.prototype.D,Vt.prototype.set=Vt.prototype.set,Vt.prototype.setTo=Vt.prototype.sg;var fr=[];Vt.className="Point",Vt.parse=Ar,Vt.stringify=Tr,Vt.distanceLineSegmentSquared=Zo,Vt.distanceSquared=oa,Vt.direction=cr,Vt.Origin=fo=new Vt(0,0).ja(),Vt.InfiniteTopLeft=_o=new Vt(-1/0,-1/0).ja(),Vt.InfiniteBottomRight=ro=new Vt(1/0,1/0).ja(),Vt.SixPoint=Yo=new Vt(6,6).ja(),Vt.NoPoint=ya=new Vt(NaN,NaN).ja(),Vt.parse=Ar,Vt.stringify=Tr,Vt.distanceLineSegmentSquared=Zo,Vt.distanceSquared=oa,Vt.direction=cr;function ri(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):ue("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Mr,Io,Ma,Sa,Ta,Ra,Ga;ri.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ri.prototype.h=function(a,y){return this.width=a,this.height=y,this},ri.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ri.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ri.prototype.copy=function(){var a=new ri;return a.width=this.width,a.height=this.height,a},Et=ri.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&ue("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vs(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 ri(x,E)}return new ri}function us(a){return a.width.toString()+" "+a.height.toString()}Et.toString=function(){return"Size("+this.width+","+this.height+")"},Et.D=function(a){return a instanceof ri?this.width===a.width&&this.height===a.height:!1},Et.hi=function(a,y){return this.width===a&&this.height===y},Et.Xa=function(a){return Ae.B(this.width,a.width)&&Ae.B(this.height,a.height)},Et.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},Et.w=function(){return isFinite(this.width)&&isFinite(this.height)},ri.alloc=function(){var a=Ys.pop();return a===void 0?new ri:a},ri.free=function(a){Ys.push(a)},ri.prototype.isReal=ri.prototype.w,ri.prototype.inflate=ri.prototype.Bc,ri.prototype.equalsApprox=ri.prototype.Xa,ri.prototype.equalTo=ri.prototype.hi,ri.prototype.equals=ri.prototype.D,ri.prototype.set=ri.prototype.set,ri.prototype.setTo=ri.prototype.sg;var Ys=[];ri.className="Size",ri.parse=Vs,ri.stringify=us,ri.ZeroSize=Mr=new ri(0,0).ja(),ri.OneSize=Io=new ri(1,1).ja(),ri.SixSize=Ma=new ri(6,6).ja(),ri.EightSize=Sa=new ri(8,8).ja(),ri.TenSize=Ta=new ri(10,10).ja(),ri.InfiniteSize=Ra=new ri(1/0,1/0).ja(),ri.NoSize=Ga=new ri(NaN,NaN).ja(),ri.parse=Vs,ri.stringify=us;function fn(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 Vt?(x=a.x,a=a.y,y instanceof Vt?(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 ri?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):ue("Incorrect second argument supplied to Rect constructor "+y)):ue("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Et=fn.prototype,Et.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Et.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function xs(a,y,x){a.width=y,a.height=x}Et.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Et.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Et.dd=function(a){return this.x=a.x,this.y=a.y,this},Et.tA=function(a){return this.width=a.width,this.height=a.height,this},fn.prototype.copy=function(){var a=new fn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Et=fn.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&ue("cannot thaw constant: "+this),this._isFrozen=!1,this};function yh(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 tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new fn(x,E,z,tt)}return new fn}function El(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Et.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Et.D=function(a){return a instanceof fn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Et.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Et.Xa=function(a){return Ae.B(this.x,a.x)&&Ae.B(this.y,a.y)&&Ae.B(this.width,a.width)&&Ae.B(this.height,a.height)};function $o(a,y){return Ae.$(a.x,y.x)&&Ae.$(a.y,y.y)&&Ae.$(a.width,y.width)&&Ae.$(a.height,y.height)}Et.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Et.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},Et.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},Et.offset=function(a,y){return this.x+=a,this.y+=y,this},Et.Bc=function(a,y){return To(this,y,a,y,a)},Et.Co=function(a){return To(this,a.top,a.right,a.bottom,a.left)},Et.Fv=function(a){return To(this,-a.top,-a.right,-a.bottom,-a.left)},Et.Hz=function(a,y,x,b){return To(this,a,y,x,b)};function To(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}Et.Ex=function(a){return as(this,a.x,a.y,a.width,a.height)},Et.Uu=function(a,y,x,b){return as(this,a,y,x,b)};function as(a,y,x,b,E){var z=Math.max(a.x,y),tt=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=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Et.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Et.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 ma(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))}Et.Ye=function(a){return No(this,a.x,a.y,0,0)},Et.ed=function(a){return No(this,a.x,a.y,a.width,a.height)},Et.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),No(this,a,y,x,b)};function No(a,y,x,b,E){var z=Math.min(a.x,y),tt=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=tt,a.width=y-z,a.height=x-tt,a}Et.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 fa(a,y,x,b,E,z,tt,rt){return tt===void 0&&(tt=0),rt===void 0&&(rt=0),a<=E&&E+tt<=a+x&&y<=z&&z+rt<=y+b}function al(a,y,x,b,E,z,tt,rt){return a>tt+E||E>x+a?!1:!(y>rt+z||z>b+y)}Et.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Et.Mz=function(){return this.width===0&&this.height===0},fn.alloc=function(){var a=Oo.pop();return a===void 0?new fn:a},fn.allocAt=function(a,y,x,b){var E=Oo.pop();return E===void 0?new fn(a,y,x,b):E.h(a,y,x,b)},fn.free=function(a){Oo.push(a)},Jt.Object.defineProperties(fn.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 Vt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ri(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Vt(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}}}),fn.prototype.isEmpty=fn.prototype.Mz,fn.prototype.isReal=fn.prototype.w,fn.intersectsLineSegment=function(a,y,x,b,E,z,tt,rt){return Ae.Fx(a,y,x,b,E,z,tt,rt)},fn.prototype.setSpot=fn.prototype.yi,fn.prototype.union=fn.prototype.Kv,fn.prototype.unionRect=fn.prototype.ed,fn.prototype.unionPoint=fn.prototype.Ye,fn.prototype.intersects=fn.prototype.Vu,fn.prototype.intersectsRect=fn.prototype.Yc,fn.prototype.intersect=fn.prototype.Uu,fn.prototype.intersectRect=fn.prototype.Ex,fn.prototype.grow=fn.prototype.Hz,fn.prototype.subtractMargin=fn.prototype.Fv,fn.prototype.addMargin=fn.prototype.Co,fn.prototype.inflate=fn.prototype.Bc,fn.prototype.offset=fn.prototype.offset,fn.prototype.contains=fn.prototype.contains,fn.prototype.containsRect=fn.prototype.Re,fn.prototype.containsPoint=fn.prototype.ca,fn.prototype.equalsApprox=fn.prototype.Xa,fn.prototype.equalTo=fn.prototype.hi,fn.prototype.equals=fn.prototype.D,fn.prototype.setSize=fn.prototype.tA,fn.prototype.setPoint=fn.prototype.dd,fn.prototype.set=fn.prototype.set,fn.prototype.setTo=fn.prototype.sg;var Yr=null,zo=null,Oo=[];fn.className="Rect",fn.parse=yh,fn.stringify=El,fn.contains=fa,fn.intersects=al,fn.ZeroRect=Yr=new fn(0,0,0,0).ja(),fn.NoRect=zo=new fn(NaN,NaN,NaN,NaN).ja(),fn.parse=yh,fn.stringify=El,fn.contains=fa,fn.intersects=al;function zi(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):ue("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}zi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},zi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},zi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},zi.prototype.copy=function(){var a=new zi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Et=zi.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&ue("cannot thaw constant: "+this),this._isFrozen=!1,this};function gs(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 zi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new zi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new zi(x,E);for(var tt=NaN;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),isNaN(tt)?new zi(x,E):new zi(x,E,z,tt)}return new zi}function ws(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Et.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Et.D=function(a){return a instanceof zi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Et.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Et.Xa=function(a){return Ae.B(this.top,a.top)&&Ae.B(this.right,a.right)&&Ae.B(this.bottom,a.bottom)&&Ae.B(this.left,a.left)},Et.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},zi.alloc=function(){var a=xu.pop();return a===void 0?new zi:a},zi.free=function(a){xu.push(a)},zi.prototype.isReal=zi.prototype.w,zi.prototype.equalsApprox=zi.prototype.Xa,zi.prototype.equalTo=zi.prototype.hi,zi.prototype.equals=zi.prototype.D,zi.prototype.set=zi.prototype.set,zi.prototype.setTo=zi.prototype.sg;var dl=null,su=null,xu=[];zi.className="Margin",zi.parse=gs,zi.stringify=ws,zi.ZeroMargin=dl=new zi(0,0,0,0).ja(),zi.TwoMargin=su=new zi(2,2,2,2).ja(),zi.parse=gs,zi.stringify=ws;function Fi(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Ua,Ls,Ql,lu,uu,so,Sh,Ll,Ml,ml,Wu,wu,vl,Al,Bh,_h,Oh,gd,Ih,Zu,Bl,Ol,pd,td,Pu,Bo,da,cl,Ps,Cs,ts,hs,Ms,bs,nh,$l;Fi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Fi.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Fi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Fi.prototype.copy=function(){var a=new Fi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Et=Fi.prototype,Et.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Et.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return Object.isFrozen(this)&&ue("cannot thaw constant: "+this),this._isFrozen=!1,this};function ps(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ic(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ua;if(a==="TopLeft")return Ls;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Ql;if(a==="TopRight")return lu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return uu;if(a==="Center")return so;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Sh;if(a==="BottomLeft")return Ll;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Ml;if(a==="BottomRight")return ml;if(a==="TopSide")return Wu;if(a==="LeftSide")return wu;if(a==="RightSide")return vl;if(a==="BottomSide")return Al;if(a==="TopBottomSides")return Bh;if(a==="LeftRightSides")return _h;if(a==="TopLeftSides")return Oh;if(a==="TopRightSides")return gd;if(a==="BottomLeftSides")return Ih;if(a==="BottomRightSides")return Zu;if(a==="NotTopSide")return Bl;if(a==="NotLeftSide")return Ol;if(a==="NotRightSide")return pd;if(a==="NotBottomSide")return td;if(a==="AllSides")return Pu;if(a==="Default")return Bo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(tt=parseFloat(b)),new Fi(x,E,z,tt)}return new Fi}function md(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Et.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(Ua)?"None":this.D(Ls)?"TopLeft":this.D(Ql)?"Top":this.D(lu)?"TopRight":this.D(uu)?"Left":this.D(so)?"Center":this.D(Sh)?"Right":this.D(Ll)?"BottomLeft":this.D(Ml)?"Bottom":this.D(ml)?"BottomRight":this.D(Wu)?"TopSide":this.D(wu)?"LeftSide":this.D(vl)?"RightSide":this.D(Al)?"BottomSide":this.D(Bh)?"TopBottomSides":this.D(_h)?"LeftRightSides":this.D(Oh)?"TopLeftSides":this.D(gd)?"TopRightSides":this.D(Ih)?"BottomLeftSides":this.D(Zu)?"BottomRightSides":this.D(Bl)?"NotTopSide":this.D(Ol)?"NotLeftSide":this.D(pd)?"NotRightSide":this.D(td)?"NotBottomSide":this.D(Pu)?"AllSides":this.D(Bo)?"Default":"None"},Et.D=function(a){return a instanceof Fi?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Et.gv=function(){return new Fi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Et.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(da))a=wu;else if(a.D(cl))a=vl;else if(a.D(Ps))a=Wu;else if(a.D(Cs))a=Al;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Et.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Et.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Et.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Et.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Et.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Fi.alloc=function(){var a=ed.pop();return a===void 0?new Fi:a},Fi.free=function(a){ed.push(a)},Fi.prototype.isDefault=Fi.prototype.Xb,Fi.prototype.isNone=Fi.prototype.ys,Fi.prototype.isSide=Fi.prototype.$c,Fi.prototype.isNoSpot=Fi.prototype.Mc,Fi.prototype.isSpot=Fi.prototype.sb,Fi.prototype.includesSide=Fi.prototype.Hf,Fi.prototype.opposite=Fi.prototype.gv,Fi.prototype.equals=Fi.prototype.D,Fi.prototype.set=Fi.prototype.set,Fi.prototype.setTo=Fi.prototype.sg;var ed=[];Fi.className="Spot",Fi.parse=ic,Fi.stringify=md,Fi.None=Ua=ps(new Fi(0,0,0,0),0).ja(),Fi.Default=Bo=ps(new Fi(0,0,-1,0),-1).ja(),Fi.TopLeft=Ls=new Fi(0,0,0,0).ja(),Fi.TopCenter=Ql=new Fi(.5,0,0,0).ja(),Fi.TopRight=lu=new Fi(1,0,0,0).ja(),Fi.LeftCenter=uu=new Fi(0,.5,0,0).ja(),Fi.Center=so=new Fi(.5,.5,0,0).ja(),Fi.RightCenter=Sh=new Fi(1,.5,0,0).ja(),Fi.BottomLeft=Ll=new Fi(0,1,0,0).ja(),Fi.BottomCenter=Ml=new Fi(.5,1,0,0).ja(),Fi.BottomRight=ml=new Fi(1,1,0,0).ja(),Fi.MiddleTop=ts=Ql,Fi.MiddleLeft=hs=uu,Fi.MiddleRight=Ms=Sh,Fi.MiddleBottom=bs=Ml,Fi.Top=Ps=Ql,Fi.Left=da=uu,Fi.Right=cl=Sh,Fi.Bottom=Cs=Ml,Fi.TopSide=Wu=ps(new Fi(0,0,1,1),1).ja(),Fi.LeftSide=wu=ps(new Fi(0,0,1,2),1).ja(),Fi.RightSide=vl=ps(new Fi(0,0,1,4),1).ja(),Fi.BottomSide=Al=ps(new Fi(0,0,1,8),1).ja(),Fi.TopBottomSides=Bh=ps(new Fi(0,0,1,9),1).ja(),Fi.LeftRightSides=_h=ps(new Fi(0,0,1,6),1).ja(),Fi.TopLeftSides=Oh=ps(new Fi(0,0,1,3),1).ja(),Fi.TopRightSides=gd=ps(new Fi(0,0,1,5),1).ja(),Fi.BottomLeftSides=Ih=ps(new Fi(0,0,1,10),1).ja(),Fi.BottomRightSides=Zu=ps(new Fi(0,0,1,12),1).ja(),Fi.NotTopSide=Bl=ps(new Fi(0,0,1,14),1).ja(),Fi.NotLeftSide=Ol=ps(new Fi(0,0,1,13),1).ja(),Fi.NotRightSide=pd=ps(new Fi(0,0,1,11),1).ja(),Fi.NotBottomSide=td=ps(new Fi(0,0,1,7),1).ja(),Fi.AllSides=Pu=ps(new Fi(0,0,1,15),1).ja(),nh=new Fi(.156,.156).ja(),$l=new Fi(.844,.844).ja(),Fi.parse=ic,Fi.stringify=md;function kr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}kr.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},kr.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},kr.prototype.copy=function(){var a=new kr;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},kr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},kr.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},kr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},kr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},kr.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},kr.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,tt=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*tt+this.m21*a+this.dx,this.dy=this.m12*tt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},kr.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},kr.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,tt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Et=kr.prototype,Et.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Et.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Et.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)},Et.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))},Et.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))},Et.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,tt=this.m12,rt=this.m21,ot=this.m22,lt=this.dx,ut=this.dy,ft=y*z+x*rt+lt,yt=y*tt+x*ot+ut,Ct=b*z+x*rt+lt,bt=b*tt+x*ot+ut;return x=y*z+E*rt+lt,y=y*tt+E*ot+ut,z=b*z+E*rt+lt,b=b*tt+E*ot+ut,E=Math.min(ft,Ct),ft=Math.max(ft,Ct),Ct=Math.min(yt,bt),yt=Math.max(yt,bt),E=Math.min(E,x),ft=Math.max(ft,x),Ct=Math.min(Ct,y),yt=Math.max(yt,y),E=Math.min(E,z),ft=Math.max(ft,z),Ct=Math.min(Ct,b),yt=Math.max(yt,b),a.h(E,Ct,ft-E,yt-Ct),a},kr.alloc=function(){var a=nd.pop();return a===void 0?new kr:a},kr.free=function(a){nd.push(a)},kr.prototype.transformRect=kr.prototype.pp,kr.prototype.transformPoint=kr.prototype.Ga,kr.prototype.scale=kr.prototype.scale,kr.prototype.translate=kr.prototype.translate,kr.prototype.rotate=kr.prototype.rotate,kr.prototype.invert=kr.prototype.Vj,kr.prototype.multiplyInverted=kr.prototype.bv,kr.prototype.multiply=kr.prototype.multiply,kr.prototype.reset=kr.prototype.reset,kr.prototype.isIdentity=kr.prototype.ws,kr.prototype.equals=kr.prototype.D,kr.prototype.setTransform=kr.prototype.setTransform,kr.prototype.set=kr.prototype.set;var nd=[];kr.className="Transform",kr.xF="54a702f3e53909c447824c6706603faf4c";var Ae={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ae.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ae.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,tt){if(0>=E&&(E=1e-6),a<x)var rt=a,ot=x;else rt=x,ot=a;if(y<b)var lt=y,ut=b;else lt=b,ut=y;if(a===x)return lt<=tt&&tt<=ut&&a-E<=z&&z<=a+E;if(y===b)return rt<=z&&z<=ot&&y-E<=tt&&tt<=y+E;if(ot+=E,rt-=E,rt<=z&&z<=ot&&(ut+=E,lt-=E,lt<=tt&&tt<=ut))if(ot-rt>ut-lt)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=tt&&tt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(tt=(x-a)/(b-y)*(tt-y)+a,tt-E<=z&&z<=tt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,tt,rt,ot,lt,ut,ft){if(Ae.Yb(a,y,tt,rt,ft,x,b)&&Ae.Yb(a,y,tt,rt,ft,E,z))return Ae.Yb(a,y,tt,rt,ft,lt,ut);var yt=(a+x)/2,Ct=(y+b)/2,bt=(x+E)/2,Dt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(yt+bt)/2,x=(Ct+Dt)/2,bt=(bt+E)/2,Dt=(Dt+z)/2;var qt=(b+bt)/2,Wt=(x+Dt)/2;return Ae.cs(a,y,yt,Ct,b,x,qt,Wt,ot,lt,ut,ft)||Ae.cs(qt,Wt,bt,Dt,E,z,tt,rt,ot,lt,ut,ft)},ax:function(a,y,x,b,E,z,tt,rt,ot){var lt=(x+E)/2,ut=(b+z)/2;return ot.h((((a+x)/2+lt)/2+(lt+(E+tt)/2)/2)/2,(((y+b)/2+ut)/2+(ut+(z+rt)/2)/2)/2),ot},My:function(a,y,x,b,E,z,tt,rt){var ot=(x+E)/2,lt=(b+z)/2;return cr(((a+x)/2+ot)/2,((y+b)/2+lt)/2,(ot+(E+tt)/2)/2,(lt+(z+rt)/2)/2)},Dl:function(a,y,x,b,E,z,tt,rt,ot,lt){if(Ae.Yb(a,y,tt,rt,ot,x,b)&&Ae.Yb(a,y,tt,rt,ot,E,z))No(lt,a,y,0,0),No(lt,tt,rt,0,0);else{var ut=(a+x)/2,ft=(y+b)/2,yt=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+yt)/2,x=(ft+Ct)/2,yt=(yt+E)/2,Ct=(Ct+z)/2;var bt=(b+yt)/2,Dt=(x+Ct)/2;Ae.Dl(a,y,ut,ft,b,x,bt,Dt,ot,lt),Ae.Dl(bt,Dt,yt,Ct,E,z,tt,rt,ot,lt)}return lt},Qe:function(a,y,x,b,E,z,tt,rt,ot,lt){if(Ae.Yb(a,y,tt,rt,ot,x,b)&&Ae.Yb(a,y,tt,rt,ot,E,z))lt.length===0&&(lt.push(a),lt.push(y)),lt.push(tt),lt.push(rt);else{var ut=(a+x)/2,ft=(y+b)/2,yt=(x+E)/2,Ct=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(ut+yt)/2,x=(ft+Ct)/2,yt=(yt+E)/2,Ct=(Ct+z)/2;var bt=(b+yt)/2,Dt=(x+Ct)/2;Ae.Qe(a,y,ut,ft,b,x,bt,Dt,ot,lt),Ae.Qe(bt,Dt,yt,Ct,E,z,tt,rt,ot,lt)}return lt},jv:function(a,y,x,b,E,z,tt,rt,ot,lt){if(Ae.Yb(a,y,E,z,lt,x,b))return Ae.Yb(a,y,E,z,lt,rt,ot);var ut=(a+x)/2,ft=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var yt=(ut+x)/2,Ct=(ft+b)/2;return Ae.jv(a,y,ut,ft,yt,Ct,tt,rt,ot,lt)||Ae.jv(yt,Ct,x,b,E,z,tt,rt,ot,lt)},OA:function(a,y,x,b,E,z,tt){return tt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),tt},iv:function(a,y,x,b,E,z,tt,rt){if(Ae.Yb(a,y,E,z,tt,x,b))No(rt,a,y,0,0),No(rt,E,z,0,0);else{var ot=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(ot+x)/2,ft=(lt+b)/2;Ae.iv(a,y,ot,lt,ut,ft,tt,rt),Ae.iv(ut,ft,x,b,E,z,tt,rt)}return rt},ep:function(a,y,x,b,E,z,tt,rt){if(Ae.Yb(a,y,E,z,tt,x,b))rt.length===0&&(rt.push(a),rt.push(y)),rt.push(E),rt.push(z);else{var ot=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(ot+x)/2,ft=(lt+b)/2;Ae.ep(a,y,ot,lt,ut,ft,tt,rt),Ae.ep(ut,ft,x,b,E,z,tt,rt)}return rt},Eo:function(a,y,x,b,E,z,tt,rt,ot,lt,ut,ft,yt,Ct){if(Ae.Yb(a,y,tt,rt,yt,x,b)&&Ae.Yb(a,y,tt,rt,yt,E,z))return!Ae.Rl(a,y,tt,rt,ot,lt,ut,ft)||(yt=(a-tt)*(lt-ft)-(y-rt)*(ot-ut),yt===0)?!1:(Ct.h(((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-lt*ut))/yt,((a*rt-y*tt)*(lt-ft)-(y-rt)*(ot*ft-lt*ut))/yt),!0);var bt=(a+x)/2,Dt=(y+b)/2,qt=(x+E)/2,Wt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(bt+qt)/2,x=(Dt+Wt)/2,qt=(qt+E)/2,Wt=(Wt+z)/2;var ae=(b+qt)/2,le=(x+Wt)/2,ge=1/0,be=!1,Je=0,di=0;return Ae.Eo(a,y,bt,Dt,b,x,ae,le,ot,lt,ut,ft,yt,Ct)&&(a=(Ct.x-ot)*(Ct.x-ot)+(Ct.y-lt)*(Ct.y-lt),a<ge&&(ge=a,be=!0,Je=Ct.x,di=Ct.y)),Ae.Eo(ae,le,qt,Wt,E,z,tt,rt,ot,lt,ut,ft,yt,Ct)&&(Ct.x-ot)*(Ct.x-ot)+(Ct.y-lt)*(Ct.y-lt)<ge&&(be=!0,Je=Ct.x,di=Ct.y),be&&(Ct.x=Je,Ct.y=di),be},Fo:function(a,y,x,b,E,z,tt,rt,ot,lt,ut,ft,yt){var Ct=0;if(Ae.Yb(a,y,tt,rt,yt,x,b)&&Ae.Yb(a,y,tt,rt,yt,E,z)){if(yt=(a-tt)*(lt-ft)-(y-rt)*(ot-ut),yt===0)return Ct;var bt=((a*rt-y*tt)*(ot-ut)-(a-tt)*(ot*ft-lt*ut))/yt,Dt=((a*rt-y*tt)*(lt-ft)-(y-rt)*(ot*ft-lt*ut))/yt;if(bt>=ut)return Ct;if((ot>ut?ot-ut:ut-ot)<(lt>ft?lt-ft:ft-lt)){if(y<rt?(ot=y,a=rt):(ot=rt,a=y),Dt<ot||Dt>a)return Ct}else if(a<tt?(ot=a,a=tt):ot=tt,bt<ot||bt>a)return Ct;0<yt?Ct++:0>yt&&Ct--}else{bt=(a+x)/2,Dt=(y+b)/2;var qt=(x+E)/2,Wt=(b+z)/2;E=(E+tt)/2,z=(z+rt)/2,b=(bt+qt)/2,x=(Dt+Wt)/2,qt=(qt+E)/2,Wt=(Wt+z)/2;var ae=(b+qt)/2,le=(x+Wt)/2;Ct+=Ae.Fo(a,y,bt,Dt,b,x,ae,le,ot,lt,ut,ft,yt),Ct+=Ae.Fo(ae,le,qt,Wt,E,z,tt,rt,ot,lt,ut,ft,yt)}return Ct},qh:function(a,y,x,b,E,z,tt){return Ae.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(tt.h(a,x),!1):z>y?(tt.h(a,y),!1):(tt.h(a,z),!0)):Ae.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(tt.h(b,y),!1):E>a?(tt.h(a,y),!1):(tt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(tt.h(a,y),!1):1.000005<E?(tt.h(x,b),!1):(tt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,tt,rt,ot){return Ae.B(a,x)&&Ae.B(y,b)?(ot.h(a,y),!1):Ae.$(E,tt)?Ae.$(a,x)?(Ae.qh(a,y,x,b,E,z,ot),!1):Ae.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,ot):(rt=(rt-z)/(tt-E),Ae.$(a,x)?(x=rt*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(ot.h(a,E),!1):x>y?(ot.h(a,y),!1):(ot.h(a,x),!0)):(tt=(b-y)/(x-a),Ae.$(rt,tt)?(Ae.qh(a,y,x,b,E,z,ot),!1):(E=(tt*a-rt*E+z-y)/(tt-rt),Ae.$(tt,0)?(a<x?(b=a,a=x):b=x,E<b?(ot.h(b,y),!1):E>a?(ot.h(a,y),!1):(ot.h(E,y),!0)):Ae.qh(a,y,x,b,E,tt*(E-a)+y,ot))))},MA:function(a,y,x,b,E){return Ae.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,tt,rt,ot,lt){function ut(qt,Wt){var ae=(qt-a)*(qt-a)+(Wt-y)*(Wt-y);ae<ft&&(ft=ae,ot.h(qt,Wt))}var ft=1/0;ut(ot.x,ot.y);var yt=0,Ct=0,bt=0,Dt=0;if(E<tt?(yt=E,Ct=tt):(yt=tt,Ct=E),z<rt?(bt=E,Dt=tt):(bt=tt,Dt=E),yt=(Ct-yt)/2+lt,lt=(Dt-bt)/2+lt,E=(E+tt)/2,z=(z+rt)/2,yt===0||lt===0)return ot;if(.5>(x>a?x-a:a-x)){if(yt=1-(x-E)*(x-E)/(yt*yt),0>yt)return ot;yt=Math.sqrt(yt),b=-lt*yt+z,ut(x,lt*yt+z),ut(x,b)}else{if(x=(b-y)/(x-a),b=1/(yt*yt)+x*x/(lt*lt),rt=2*x*(y-x*a)/(lt*lt)-2*x*z/(lt*lt)-2*E/(yt*yt),yt=rt*rt-4*b*(2*x*a*z/(lt*lt)-2*y*z/(lt*lt)+z*z/(lt*lt)+E*E/(yt*yt)-1+(y-x*a)*(y-x*a)/(lt*lt)),0>yt)return ot;yt=Math.sqrt(yt),lt=(-rt+yt)/(2*b),ut(lt,x*lt-x*a+y),yt=(-rt-yt)/(2*b),ut(yt,x*yt-x*a+y)}return ot},Ff:function(a,y,x,b,E,z,tt,rt,ot){var lt=1e21,ut=a,ft=y;if(Ae.Ve(a,y,a,b,E,z,tt,rt,ot)){var yt=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z);yt<lt&&(lt=yt,ut=ot.x,ft=ot.y)}return Ae.Ve(x,y,x,b,E,z,tt,rt,ot)&&(yt=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z),yt<lt&&(lt=yt,ut=ot.x,ft=ot.y)),Ae.Ve(a,y,x,y,E,z,tt,rt,ot)&&(y=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z),y<lt&&(lt=y,ut=ot.x,ft=ot.y)),Ae.Ve(a,b,x,b,E,z,tt,rt,ot)&&(a=(ot.x-E)*(ot.x-E)+(ot.y-z)*(ot.y-z),a<lt&&(lt=a,ut=ot.x,ft=ot.y)),ot.h(ut,ft),1e21>lt},us:function(a,y,x){return Ae.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,tt,rt){var ot=a+x,lt=y+b;return E===tt?(z<rt?(tt=z,z=rt):tt=rt,a<=E&&E<=ot&&tt<=lt&&z>=y):z===rt?(E<tt?(rt=E,E=tt):rt=tt,y<=z&&z<=lt&&rt<=ot&&E>=a):!!(fa(a,y,x,b,E,z)||fa(a,y,x,b,tt,rt)||Ae.Rl(a,y,ot,y,E,z,tt,rt)||Ae.Rl(ot,y,ot,lt,E,z,tt,rt)||Ae.Rl(ot,lt,a,lt,E,z,tt,rt)||Ae.Rl(a,lt,a,y,E,z,tt,rt))},Rl:function(a,y,x,b,E,z,tt,rt){return a===x&&y===b&&E===tt&&z===rt?a===E&&y===z:0>=Ae.Fl(a,y,x,b,E,z)*Ae.Fl(a,y,x,b,tt,rt)&&0>=Ae.Fl(E,z,tt,rt,a,y)*Ae.Fl(E,z,tt,rt,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 tt=Math.PI;z||(b*=tt/180,E*=tt/180);var rt=b>E?-1:1;z=[];var ot=tt/2,lt=b;if(b=Math.min(2*tt,Math.abs(E-b)),1e-5>b)return ot=lt+rt*Math.min(b,ot),rt=a+x*Math.cos(lt),lt=y+x*Math.sin(lt),a+=x*Math.cos(ot),y+=x*Math.sin(ot),x=(rt+a)/2,ot=(lt+y)/2,z.push([rt,lt,x,ot,x,ot,a,y]),z;for(;1e-5<b;)E=lt+rt*Math.min(b,ot),z.push(Ae.Vy(x,lt,E,a,y)),b-=Math.abs(E-lt),lt=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,tt=a*Math.cos(z),rt=a*Math.sin(z),ot=-rt,lt=tt*tt+ot*ot,ut=lt+tt*tt+ot*rt;return lt=4/3*(Math.sqrt(2*lt*ut)-ut)/(tt*rt-ot*tt),rt=tt-lt*ot,tt=ot+lt*tt,ot=-tt,lt=z+y,z=Math.cos(lt),lt=Math.sin(lt),[b+a*Math.cos(y),E+a*Math.sin(y),b+rt*z-tt*lt,E+rt*lt+tt*z,b+rt*z-ot*lt,E+rt*lt+ot*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,tt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var rt=x;return x+E-a<E/2&&(rt=x+E),a=b,b+z-y<z/2&&(a=b+z),tt.h(rt,a),tt},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 tt=1,rt=0;else tt=0,rt=1;var ot=tt===0?a:y,lt=tt===0?x:b;return(tt===0?E:z)&&(lt=-lt),tt=rt,x=tt===0?x:b,(tt===0?E:z)&&(x=-x),Ae.az(ot,tt===0?a:y,lt,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 tt=y*b,rt=-z+tt,ot=-z+Math.sqrt(a*a+tt*tt);y=rt;for(var lt=0;9999999999>lt&&(y=.5*(rt+ot),!(y===rt||y===ot));++lt){var ut=a/(y+E),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0<ut)rt=y;else if(0>ut)ot=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Ki,um:new Ki,Mf:new Ki,Nf:0,vm:100};Ae.za=Ae.AA;function ti(a){Or(this),this.l=2,a===void 0&&(a=ti.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===ti.o?this.ee=new bn:(ti.V===null&&(ti.V=new bn().freeze()),this.ee=ti.V),this.aq=this.ee.Ja,this.Ip=new fn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ls,this.gg=ml,this.Rk=this.Sk=NaN,this.Uf=zn}ti.prototype.copy=function(){var a=new ti;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===ti.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},ti.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},ti.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==ti.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},ti.prototype.ka=function(){if(Object.isFrozen(this)&&ue("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==ti.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},ti.prototype.Xa=function(a){if(!(a instanceof ti))return!1;if(this.type!==a.type)return this.type===ti.j&&a.type===ti.o?Ic(this,a):a.type===ti.j&&this.type===ti.o?Ic(a,this):!1;if(this.type===ti.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Ae.B(this.startX,a.startX)&&Ae.B(this.startY,a.startY)&&Ae.B(this.endX,a.endX)&&Ae.B(this.endY,a.endY)};function Ic(a,y){return a.type!==ti.j||y.type!==ti.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ae.B(a.startX,y.startX)&&Ae.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===na&&Ae.B(a.endX,y.endX)&&Ae.B(a.endY,y.endY))))}ti.ia=function(a){return a.toString()},ti.prototype.qb=function(a){a.classType===ti&&(this.type=a)},ti.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ti.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case ti.u:var y=new fn(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case ti.F:if(y=new fn(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case ti.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},ti.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},ti.parse=function(a,y){function x(){return Dt>=ge-1?!0:lt[Dt+1].match(be)!==null}function b(){return Dt++,lt[Dt]}function E(xr){var gr=parseFloat(b()),Do=parseFloat(b());qt===qt.toLowerCase()&&(gr=le.x+gr,Do=le.y+Do),xr.h(gr,Do)}function z(){return E(le),le}function tt(){return E(ae),ae}function rt(){var xr=Wt.toLowerCase();return xr!=="c"&&xr!=="s"&&xr!=="q"&&xr!=="t"?le:new Vt(2*le.x-ae.x,2*le.y-ae.y)}y===void 0&&(y=!1);var ot=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ot,"$1 $2"),a=a.replace(ot,"$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 lt=a.split(" ");for(a=0;a<lt.length;a++){var ut=lt[a];if(ut.match(/(\.[0-9]*)(\.)/gm)!==null){ot=dn();for(var ft="",yt=!1,Ct=0;Ct<ut.length;Ct++){var bt=ut[Ct];bt!=="."||yt?bt==="."?(ot.push(ft),ft="."):ft+=bt:(yt=!0,ft+=bt)}for(ot.push(ft),lt.splice(a,1),ut=0;ut<ot.length;ut++)lt.splice(a+ut,0,ot[ut]);a+=ot.length-1,kn(ot)}}var Dt=-1,qt="",Wt="";ot=new Vt(0,0);var ae=new Vt(0,0),le=new Vt(0,0),ge=lt.length;a=FS(null),yt=ft=ut=!1,Ct=!0,bt=null;for(var be=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Dt>=ge-1);)if(Wt=qt,qt=b(),qt!=="")switch(qt.toUpperCase()){case"X":Ct=!0,ft=ut=!1;break;case"M":for(bt=z(),a.mc===null||Ct===!0?(Bg(a,bt.x,bt.y,ut,!ft,yt),Ct=!1):a.moveTo(bt.x,bt.y),ot.assign(le);!x();)bt=z(),a.lineTo(bt.x,bt.y);break;case"L":for(;!x();)bt=z(),a.lineTo(bt.x,bt.y);break;case"H":for(;!x();)le=new Vt((qt===qt.toLowerCase()?le.x:0)+parseFloat(b()),le.y),a.lineTo(le.x,le.y);break;case"V":for(;!x();)le=new Vt(le.x,(qt===qt.toLowerCase()?le.y:0)+parseFloat(b())),a.lineTo(le.x,le.y);break;case"C":for(;!x();){bt=new Vt,E(bt);var Je=tt(),di=z();yc(a,bt.x,bt.y,Je.x,Je.y,di.x,di.y)}break;case"S":for(;!x();)bt=rt(),Je=tt(),di=z(),yc(a,bt.x,bt.y,Je.x,Je.y,di.x,di.y);break;case"Q":for(;!x();)bt=tt(),Je=z(),Zm(a,bt.x,bt.y,Je.x,Je.y);break;case"T":for(;!x();)ae=bt=rt(),Je=z(),Zm(a,bt.x,bt.y,Je.x,Je.y);break;case"B":for(;!x();){bt=parseFloat(b()),Je=parseFloat(b()),di=parseFloat(b());var Pi=parseFloat(b()),yi=parseFloat(b()),Qn=yi,Fn=!1;x()||(Qn=parseFloat(b()),x()||(Fn=parseFloat(b())!==0)),qt===qt.toLowerCase()&&(di+=le.x,Pi+=le.y),a.arcTo(bt,Je,di,Pi,yi,Qn,Fn)}break;case"A":for(;!x();)bt=Math.abs(parseFloat(b())),Je=Math.abs(parseFloat(b())),di=parseFloat(b()),yi=Pi=!1,Fn=Qn=0,Qn=b(),Qn.length===1?(Pi=!!parseFloat(Qn),yi=!!parseFloat(b()),Qn=parseFloat(b())):Qn.length===2?(Pi=!!parseFloat(Qn[0]),yi=!!parseFloat(Qn[1]),Qn=parseFloat(b())):(Pi=!!parseFloat(Qn[0]),yi=!!parseFloat(Qn[1]),Qn=parseFloat(Qn.slice(2))),Fn=parseFloat(b()),qt===qt.toLowerCase()&&(Qn=le.x+Qn,Fn=le.y+Fn),le.h(Qn,Fn),Px(a,bt,Je,di,Pi,yi,Qn,Fn);break;case"Z":wx(a),le.assign(ot);break;case"F":for(bt="",Je=1;lt[Dt+Je];)if(lt[Dt+Je]==="0")yt=!0,Je++;else if(lt[Dt+Je].match(/[Uu]/)!==null)Je++;else if(lt[Dt+Je].match(be)===null)Je++;else{bt=lt[Dt+Je];break}bt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(bt="",Je=1;lt[Dt+Je];)if(lt[Dt+Je].match(/[Ff]/)!==null)Je++;else if(lt[Dt+Je].match(be)===null)Je++;else{bt=lt[Dt+Je];break}bt.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(ot=a.os,Gm=a,y)for(y=ot.figures.iterator;y.next();)y.value.isFilled=!0;return ot},ti.Ha=function(a,y){for(var x=a.length,b=Vt.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}Vt.free(b)},ti.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===ti.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},ti.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===ti.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var tt=b[z];tt._isInvalidBounds=!1,tt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),rc(this,a,!1),No(a,0,0,0,0),a.freeze()},ti.prototype.ix=function(){var a=new fn;return rc(this,a,!0),a};function rc(a,y,x){switch(a.type){case ti.j:case ti.u:case ti.F:x?y.h(a.od,a.pd,0,0):No(y,a.od,a.pd,0,0),No(y,a.Dc,a.Ec,0,0);break;case ti.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):No(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,rt=tt.length,ot=z.startX,lt=z.startY,ut=0;ut<rt;ut++){var ft=tt[ut];switch(ft.type){case na:case ss:ot=ft.endX,lt=ft.endY,No(y,ot,lt,0,0);break;case Us:Ae.Dl(ot,lt,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,y),ot=ft.endX,lt=ft.endY;break;case It:Ae.iv(ot,lt,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),ot=ft.endX,lt=ft.endY;break;case Kt:case te:var yt=ft.type===Kt?nl(ft,z):yl(ft,z,ot,lt),Ct=yt.length;if(Ct===0){ot=ft.type===Kt?ft.centerX:ft.endX,lt=ft.type===Kt?ft.centerY:ft.endY,No(y,ot,lt,0,0);break}ft=null;for(var bt=0;bt<Ct;bt++)ft=yt[bt],Ae.Dl(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,y);ft!==null&&(ot=ft[6],lt=ft[7]);break;default:ue("Unknown Segment type: "+ft.type)}}}break;default:ue("Unknown Geometry type: "+a.type)}}ti.prototype.normalize=function(){this._isFrozen&&Nn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Vt(-a.x,-a.y)},ti.prototype.offset=function(a,y){return this._isFrozen&&Nn(this),this.transform(1,0,0,1,a,y),this},ti.prototype.scale=function(a,y){return this._isFrozen&&Nn(this),this.transform(a,0,0,y,0,0),this},ti.prototype.rotate=function(a,y,x){this._isFrozen&&Nn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=kr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),kr.free(b),this},Et=ti.prototype,Et.transform=function(a,y,x,b,E,z){switch(this.type){case ti.j:case ti.u:case ti.F:var tt=this.od,rt=this.pd;this.od=tt*a+rt*x+E,this.pd=tt*y+rt*b+z,tt=this.Dc,rt=this.Ec,this.Dc=tt*a+rt*x+E,this.Ec=tt*y+rt*b+z;break;case ti.o:for(var ot=this.figures.s,lt=ot.length,ut=0;ut<lt;ut++){var ft=ot[ut];tt=ft.startX,rt=ft.startY,ft.startX=tt*a+rt*x+E,ft.startY=tt*y+rt*b+z,ft=ft.segments.s;for(var yt=ft.length,Ct=0;Ct<yt;Ct++){var bt=ft[Ct];switch(bt.type){case na:case ss:tt=bt.endX,rt=bt.endY,bt.endX=tt*a+rt*x+E,bt.endY=tt*y+rt*b+z;break;case Us:tt=bt.point1X,rt=bt.point1Y,bt.point1X=tt*a+rt*x+E,bt.point1Y=tt*y+rt*b+z,tt=bt.point2X,rt=bt.point2Y,bt.point2X=tt*a+rt*x+E,bt.point2Y=tt*y+rt*b+z,tt=bt.endX,rt=bt.endY,bt.endX=tt*a+rt*x+E,bt.endY=tt*y+rt*b+z;break;case It:tt=bt.point1X,rt=bt.point1Y,bt.point1X=tt*a+rt*x+E,bt.point1Y=tt*y+rt*b+z,tt=bt.endX,rt=bt.endY,bt.endX=tt*a+rt*x+E,bt.endY=tt*y+rt*b+z;break;case Kt:tt=bt.centerX,rt=bt.centerY,bt.centerX=tt*a+rt*x+E,bt.centerY=tt*y+rt*b+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),bt.startAngle+=tt),0>a&&(bt.startAngle=180-bt.startAngle,bt.sweepAngle=-bt.sweepAngle),0>b&&(bt.startAngle=-bt.startAngle,bt.sweepAngle=-bt.sweepAngle),bt.radiusX*=Math.sqrt(a*a+x*x),bt.radiusY!==void 0&&(bt.radiusY*=Math.sqrt(y*y+b*b));break;case te:if(tt=bt.endX,rt=bt.endY,bt.endX=tt*a+rt*x+E,bt.endY=tt*y+rt*b+z,bt.radiusX===0||bt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),bt.xAxisRotation+=tt),0>a&&(bt.xAxisRotation=180-bt.xAxisRotation,bt.isClockwiseArc=!bt.isClockwiseArc),0>b&&(bt.xAxisRotation=-bt.xAxisRotation,bt.isClockwiseArc=!bt.isClockwiseArc),bt.radiusX*=Math.sqrt(a*a+x*x),bt.radiusY*=Math.sqrt(y*y+b*b);break;default:ue("Unknown Segment type: "+bt.type)}}}}return this._isInvalidBounds=!0,this},Et.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case ti.j:return Ae.Yb(x,b,E,z,y,a.x,a.y);case ti.u:var tt=fn.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=tt.ca(a),fn.free(tt),a;case ti.F:tt=Math.min(x,E)-y;var rt=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:(tt=a.x-(tt+x),rt=a.y-(rt+y),1>=tt*tt/(x*x)+rt*rt/(y*y));case ti.o:return ih(this,a,y,!0,!1);default:return!1}};function ih(a,y,x,b,E){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,rt=0,ot,lt,ut,ft,yt=a.figures.s,Ct=yt.length,bt=0;bt<Ct;bt++){var Dt=yt[bt],qt=!Dt.isEvenOdd;if(Dt.isFilled){if(b&&Dt.ca(z,y,x))return!0;var Wt=Dt.segments;ot=Dt.startX,lt=Dt.startY;for(var ae=ot,le=lt,ge=Wt.s,be=0;be<=Wt.length;be++){var Je=void 0;if(be!==Wt.length){Je=ge[be];var di=Je.type;a=Je.endX,ft=Je.endY}else di=na,a=ae,ft=le;switch(di){case ss:if(ae=rh(z,y,tt,y,ot,lt,ae,le),isNaN(ae))return!0;rt+=ae,ae=a,le=ft;break;case na:if(ot=rh(z,y,tt,y,ot,lt,a,ft),isNaN(ot))return!0;rt+=ot;break;case Us:ut=Ae.Fo(ot,lt,Je.point1X,Je.point1Y,Je.point2X,Je.point2Y,a,ft,tt,y,z,y,.5),rt+=ut;break;case It:ut=Ae.Fo(ot,lt,(ot+2*Je.point1X)/3,(lt+2*Je.point1Y)/3,(2*Je.point1X+a)/3,(2*Je.point1Y+ft)/3,a,ft,tt,y,z,y,.5),rt+=ut;break;case Kt:case te:di=Je.type===Kt?nl(Je,Dt):yl(Je,Dt,ot,lt);var Pi=di.length;if(Pi===0){if(ot=rh(z,y,tt,y,ot,lt,Je.type===Kt?Je.centerX:Je.endX,Je.type===Kt?Je.centerY:Je.endY),isNaN(ot))return!0;rt+=ot;break}Je=null;for(var yi=0;yi<Pi;yi++){if(Je=di[yi],yi===0){if(ut=rh(z,y,tt,y,ot,lt,Je[0],Je[1]),isNaN(ut))return!0;rt+=ut}ut=Ae.Fo(Je[0],Je[1],Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],tt,y,z,y,.5),rt+=ut}Je!==null&&(a=Je[6],ft=Je[7]);break;default:ue("Unknown Segment type: "+Je.type)}ot=a,lt=ft}if(qt){if(rt!==0)return!0}else if(rt%2!==0)return!0;rt=0}else if(Dt.ca(z,y,E?x:x+2))return!0}return!1}function rh(a,y,x,b,E,z,tt,rt){if(Ae.Yb(E,z,tt,rt,.05,a,y))return NaN;var ot=(a-x)*(z-rt);if(ot===0)return 0;var lt=((a*b-y*x)*(E-tt)-(a-x)*(E*rt-z*tt))/ot;if(y=(a*b-y*x)*(z-rt)/ot,lt>=a)return 0;if((E>tt?E-tt:tt-E)<(z>rt?z-rt:rt-z)){if(z<rt){if(y<z||y>rt)return 0}else if(y<rt||y>z)return 0}else if(E<tt){if(lt<E||lt>tt)return 0}else if(lt<tt||lt>E)return 0;return 0<ot?1:-1}function xh(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Et.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Vt),this.type===ti.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var ot=b[rt],lt=ot.length;for(a=0;a<lt;a++){var ut=ot[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,x=x[rt],rt=x[2*a],E=x[2*a+1],y.h(rt+(x[2*a+2]-rt)*b,E+(x[2*a+3]-E)*b),y;tt+=ut}}return y},Et.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===ti.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,tt=0;tt<b;tt++){var rt=x[tt],ot=rt.length;for(a=0;a<ot;a++){var lt=rt[a];if(z+lt>=E)return E=y[tt],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+=lt}}return NaN},Et.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===ti.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,rt=0;rt<E;rt++){var ot=b[rt],lt=ot.length;for(a=0;a<lt;a++){var ut=ot[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,ut=x[rt],x=ut[2*a],rt=ut[2*a+1],E=ut[2*a+2],a=ut[2*a+3],y[0]=x+(E-x)*b,y[1]=rt+(a-rt)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-rt)?0:1>Math.abs(E-x)?0<=a-rt?90:270:1>Math.abs(a-rt)?0<=E-x?0:180:180*Math.atan2(a-rt,E-x)/Math.PI,y;tt+=ut}}return y},Et.xx=function(a){if(this.type===ti.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var tt=x;b=E}else tt=E,b=x;return a<=tt?tt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-tt)}if(x===E)return y<b?tt=y:(tt=b,b=y),z<=tt?tt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-tt);tt=(b-y)*(b-y)+(E-x)*(E-x);var rt=Vt.alloc();return Ae.qh(y,x,b,E,z,a,rt),a=rt.x,z=rt.y,Vt.free(rt),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===ti.u){tt=this.startX,rt=this.startY;var ot=this.endX;if(E=this.endY,tt!==ot||rt!==E){y=ot-tt,x=E-rt,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,tt),ot),a=Math.min(Math.max(a,rt),E),tt=Math.abs(b-tt),ot=Math.abs(b-ot),rt=Math.abs(a-rt),E=Math.abs(a-E);var lt=Math.min(tt,ot,rt,E);if(lt===rt)return b/z;if(lt===ot)return(y+a)/z;if(lt===E)return(2*y+x-b)/z;if(lt===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Vt.alloc(),E=1/0,rt=tt=0,ot=y.length;for(var ut=lt=0,ft=0;ft<ot;ft++)for(var yt=y[ft],Ct=x[ft],bt=yt.length,Dt=0;Dt<bt;Dt+=2){var qt=yt[Dt],Wt=yt[Dt+1];if(Dt!==0){Ae.qh(lt,ut,qt,Wt,a.x,a.y,b);var ae=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);ae<E&&(E=ae,tt=rt,tt+=Math.sqrt((b.x-lt)*(b.x-lt)+(b.y-ut)*(b.y-ut))),rt+=Ct[(Dt-2)/2]}lt=qt,ut=Wt}return Vt.free(b),a=tt/z,0>a?0:1<a?1:a}return 0};function oc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===ti.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===ti.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===ti.F){var z=new Es;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new mo(Kt);if(tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(a.startX+a.endX)/2,tt.centerY=(a.startY+a.endY)/2,tt.radiusX=Math.abs(a.startX-a.endX)/2,tt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(tt),a=nl(tt,z),E=a.length,E===0)b.push(tt.centerX),b.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var rt=0;rt<E;rt++){var ot=a[rt];Ae.Qe(tt,z,ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],.5,b),tt=ot[6],z=ot[7]}}y.push(b),x.push(Bd(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),tt=E.startX,z=E.startY,rt=tt,ot=z;for(var lt=E.segments.s,ut=lt.length,ft=0;ft<ut;ft++){var yt=lt[ft];switch(yt.type){case ss:4<=b.length&&(y.push(b),x.push(Bd(b))),b=[],b.push(yt.endX),b.push(yt.endY),tt=yt.endX,z=yt.endY,rt=tt,ot=z;break;case na:b.push(yt.endX),b.push(yt.endY),tt=yt.endX,z=yt.endY;break;case Us:Ae.Qe(tt,z,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.5,b),tt=yt.endX,z=yt.endY;break;case It:Ae.ep(tt,z,yt.point1X,yt.point1Y,yt.endX,yt.endY,.5,b),tt=yt.endX,z=yt.endY;break;case Kt:var Ct=nl(yt,E),bt=Ct.length;if(bt===0){b.push(yt.centerX),b.push(yt.centerY),tt=yt.centerX,z=yt.centerY;break}for(var Dt=0;Dt<bt;Dt++){var qt=Ct[Dt];Ae.Qe(tt,z,qt[2],qt[3],qt[4],qt[5],qt[6],qt[7],.5,b),tt=qt[6],z=qt[7]}break;case te:if(Ct=yl(yt,E,tt,z),bt=Ct.length,Dt=yt.endX,qt=yt.endY,bt===0){b.push(Dt),b.push(qt),tt=Dt,z=qt;break}for(Dt=0;Dt<bt;Dt++)qt=Ct[Dt],Ae.Qe(tt,z,qt[2],qt[3],qt[4],qt[5],qt[6],qt[7],.5,b),tt=qt[6],z=qt[7];break;default:ue("Segment not of valid type: "+yt.type)}yt.isClosed&&(b.push(rt),b.push(ot))}4<=b.length&&(y.push(b),x.push(Bd(b)))}}}function Bd(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var tt=a[z],rt=a[z+1];z!==0&&y.push(Math.sqrt(oa(x,b,tt,rt))),x=tt,b=rt}return y}Et.add=function(a){return this.ee.add(a),this},Et.pm=function(a,y,x,b,E,z,tt,rt){return this._isFrozen&&Nn(this),this.fg=new Fi(a,y,E,z).freeze(),this.gg=new Fi(x,b,tt,rt).freeze(),this},Jt.Object.defineProperties(ti.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return oc(this),this.tk}},flattenedLengths:{get:function(){return oc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===ti.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===ti.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,tt=0;tt<z;tt++)a+=E[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Nn(this,a),this.na=a,a===ti.o?this.ee=new bn:(ti.V===null&&(ti.V=new bn().freeze()),this.ee=ti.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Nn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Nn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Nn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Nn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Nn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Nn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Nn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Nn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),ti.prototype.setSpots=ti.prototype.pm,ti.prototype.add=ti.prototype.add,ti.prototype.getFractionForPoint=ti.prototype.xx,ti.prototype.getPointAndAngleAlongPath=ti.prototype.Qu,ti.prototype.getAngleAlongPath=ti.prototype.wx,ti.prototype.getPointAlongPath=ti.prototype.Pu,ti.prototype.containsPoint=ti.prototype.ca,ti.prototype.transform=ti.prototype.transform,ti.prototype.rotate=ti.prototype.rotate,ti.prototype.scale=ti.prototype.scale,ti.prototype.offset=ti.prototype.offset,ti.prototype.normalize=ti.prototype.normalize,ti.prototype.computeBoundsWithoutOrigin=ti.prototype.ix,ti.prototype.equalsApprox=ti.prototype.Xa,ti.className="Geometry",ti.j=new sn(ti,"Line",0),ti.u=new sn(ti,"Rectangle",1),ti.F=new sn(ti,"Ellipse",2),ti.o=new sn(ti,"Path",3),ti.V=null,ti.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",ti.className="Geometry",ti.stringify=ti.ia,ti.fillPath=ti.nb,ti.parse=ti.parse,ti.Line=ti.j,ti.Rectangle=ti.u,ti.Ellipse=ti.F,ti.Path=ti.o;function Es(a,y,x,b,E){Or(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new bn,this.sr=this.pl.Ja,this.fw=null}Es.prototype.copy=function(){var a=new Es;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},Et=Es.prototype,Et.Xa=function(a){if(!(a instanceof Es&&Ae.B(this.startX,a.startX)&&Ae.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},Et.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},Et.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},Et.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},Et.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},Et.add=function(a){return this.pl.add(a),this},Et.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,tt=E,rt=this.segments.s,ot=rt.length,lt=0;lt<ot;lt++){var ut=rt[lt];switch(ut.type){case ss:z=ut.endX,tt=ut.endY,b=ut.endX,E=ut.endY;break;case na:if(Ae.Yb(b,E,ut.endX,ut.endY,x,a,y))return!0;b=ut.endX,E=ut.endY;break;case Us:if(Ae.cs(b,E,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case It:if(Ae.jv(b,E,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case Kt:case te:var ft=ut.type===Kt?nl(ut,this):yl(ut,this,b,E),yt=ft.length,Ct=ut.type===Kt?ut.centerX:ut.endX,bt=ut.type===Kt?ut.centerY:ut.endY;if(yt===0){if(Ae.Yb(b,E,Ct,bt,x,a,y))return!0;b=Ct,E=bt;break}for(Ct=null,bt=0;bt<yt;bt++)if(Ct=ft[bt],bt===0&&Ae.Yb(b,E,Ct[0],Ct[1],x,a,y)||Ae.cs(Ct[0],Ct[1],Ct[2],Ct[3],Ct[4],Ct[5],Ct[6],Ct[7],.5,a,y,x))return!0;Ct!==null&&(b=Ct[6],E=Ct[7]);break;default:ue("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(b!==z||E!==tt)&&Ae.Yb(b,E,z,tt,x,a,y))return!0}return!1},Jt.Object.defineProperties(Es.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&&Nn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Nn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Nn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Nn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Nn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Nn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Es.prototype.add=Es.prototype.add,Es.prototype.equalsApprox=Es.prototype.Xa,Es.className="PathFigure";function mo(a,y,x,b,E,z,tt,rt){Or(this),a===void 0&&(a=na),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),tt===void 0&&(tt=0),a===te?(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 tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),rt&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===Kt&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===Kt&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}mo.prototype.copy=function(){var a=new mo;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Et=mo.prototype,Et.Xa=function(a){if(!(a instanceof mo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ss:case na:return Ae.B(this.endX,a.endX)&&Ae.B(this.endY,a.endY);case Us:return Ae.B(this.endX,a.endX)&&Ae.B(this.endY,a.endY)&&Ae.B(this.point1X,a.point1X)&&Ae.B(this.point1Y,a.point1Y)&&Ae.B(this.point2X,a.point2X)&&Ae.B(this.point2Y,a.point2Y);case It:return Ae.B(this.endX,a.endX)&&Ae.B(this.endY,a.endY)&&Ae.B(this.point1X,a.point1X)&&Ae.B(this.point1Y,a.point1Y);case Kt:return Ae.B(this.startAngle,a.startAngle)&&Ae.B(this.sweepAngle,a.sweepAngle)&&Ae.B(this.centerX,a.centerX)&&Ae.B(this.centerY,a.centerY)&&Ae.B(this.radiusX,a.radiusX)&&Ae.B(this.radiusY,a.radiusY);case te:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ae.B(this.xAxisRotation,a.xAxisRotation)&&Ae.B(this.endX,a.endX)&&Ae.B(this.endY,a.endY)&&Ae.B(this.radiusX,a.radiusX)&&Ae.B(this.radiusY,a.radiusY);default:return!1}},Et.qb=function(a){a.classType===mo&&(this.type=a)},Et.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ss:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case na:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Us:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case It: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 Kt: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 te: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":"")},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.close=function(){return this.isClosed=!0,this};function nl(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=Ae.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var tt=kr.alloc();tt.reset(),x<b?tt.scale(1,b/x):tt.scale(x/b,1),ti.Ha(z,tt),kr.free(tt)}for(x=z.length,b=0;b<x;b++)tt=z[b],tt[0]+=y,tt[1]+=E,tt[2]+=y,tt[3]+=E,tt[4]+=y,tt[5]+=E,tt[6]+=y,tt[7]+=E;return a.ae=z,a.ae}function yl(a,y,x,b){function E(Dt,qt,Wt,ae){return(Dt*ae<qt*Wt?-1:1)*Math.acos((Dt*Wt+qt*ae)/(Math.sqrt(Dt*Dt+qt*qt)*Math.sqrt(Wt*Wt+ae*ae)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var tt=Math.PI/180*a.Ne,rt=a.isLargeArc,ot=a.isClockwiseArc,lt=a.Dc,ut=a.Ec,ft=Math.cos(tt),yt=Math.sin(tt),Ct=ft*(x-lt)/2+yt*(b-ut)/2;tt=-yt*(x-lt)/2+ft*(b-ut)/2;var bt=Ct*Ct/(y*y)+tt*tt/(z*z);return 1<bt&&(y*=Math.sqrt(bt),z*=Math.sqrt(bt)),bt=(rt===ot?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*Ct*Ct)/(y*y*tt*tt+z*z*Ct*Ct)),isNaN(bt)&&(bt=0),rt=bt*y*tt/z,bt=bt*-z*Ct/y,isNaN(rt)&&(rt=0),isNaN(bt)&&(bt=0),x=(x+lt)/2+ft*rt-yt*bt,b=(b+ut)/2+yt*rt+ft*bt,ut=E(1,0,(Ct-rt)/y,(tt-bt)/z),ft=(Ct-rt)/y,lt=(tt-bt)/z,Ct=(-Ct-rt)/y,rt=(-tt-bt)/z,tt=E(ft,lt,Ct,rt),Ct=(ft*Ct+lt*rt)/(Math.sqrt(ft*ft+lt*lt)*Math.sqrt(Ct*Ct+rt*rt)),-1>=Ct?tt=Math.PI:1<=Ct&&(tt=0),!ot&&0<tt&&(tt-=2*Math.PI),ot&&0>tt&&(tt+=2*Math.PI),ot=y>z?1:y/z,Ct=y>z?z/y:1,y=Ae.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=kr.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(ot,Ct),ti.Ha(y,z),kr.free(z),a.ae=y,a.ae}Jt.Object.defineProperties(mo.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&Nn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Nn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Nn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Nn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&ui(a,">= zero",mo,"radiusX"),this._isFrozen&&Nn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&ui(a,">= zero",mo,"radiusY"),this._isFrozen&&Nn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Nn(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&&Nn(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&&Nn(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&&Nn(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&&Nn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),mo.prototype.equalsApprox=mo.prototype.Xa;var ss=new sn(mo,"Move",0),na=new sn(mo,"Line",1),Us=new sn(mo,"Bezier",2),It=new sn(mo,"QuadraticBezier",3),Kt=new sn(mo,"Arc",4),te=new sn(mo,"SvgArc",4);mo.className="PathSegment",mo.Move=ss,mo.Line=na,mo.Bezier=Us,mo.QuadraticBezier=It,mo.Arc=Kt,mo.SvgArc=te;function Oe(){this.H=null,this.xu=new Vt(0,0).freeze(),this.mt=new Vt(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}Oe.prototype.copy=function(){var a=new Oe;return this.clone(a)},Oe.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},Oe.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},Oe.prototype.So=function(a,y){var x=this.diagram;return x===null||Wd(x,a,y),y},Oe.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Wd(x,a,y),y.assign(x.Ps(y))),y},Jt.Object.defineProperties(Oe.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}}}),Oe.prototype.getMultiTouchDocumentPoint=Oe.prototype.Bz,Oe.prototype.getMultiTouchViewPoint=Oe.prototype.So,Oe.className="InputEvent";function He(){this.H=null,this.xa="",this.ar=this.Lr=null}He.prototype.copy=function(){var a=new He;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},He.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Jt.Object.defineProperties(He.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}}}),He.className="DiagramEvent";function vn(){this.Fm=jn,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}vn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},vn.prototype.copy=function(){var a=new vn;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=Ge(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Ge(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Ge(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Ge(y)&&typeof y.J=="function"?y.J():y,a},vn.prototype.qb=function(a){a.classType===vn&&(this.change=a)},vn.prototype.toString=function(){var a="";return a=this.change===Sn?a+"* ":this.change===jn?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===Sn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Kn(this.object)),this.oldValue!==null&&(a+=" old: "+Kn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Kn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},vn.prototype.I=function(a){return a?this.oldValue:this.newValue},vn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},vn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},vn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},vn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},vn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Jt.Object.defineProperties(vn.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===Sn&&(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}}}),vn.prototype.redo=vn.prototype.redo,vn.prototype.canRedo=vn.prototype.canRedo,vn.prototype.undo=vn.prototype.undo,vn.prototype.canUndo=vn.prototype.canUndo,vn.prototype.getParam=vn.prototype.Dz,vn.prototype.getValue=vn.prototype.I,vn.prototype.clear=vn.prototype.clear;var Sn=new sn(vn,"Transaction",-1),jn=new sn(vn,"Property",0),Xn=new sn(vn,"Insert",1),hi=new sn(vn,"Remove",2);vn.className="ChangedEvent",vn.Transaction=Sn,vn.Property=jn,vn.Insert=Xn,vn.Remove=hi;function Ii(){this.o=new bn().freeze(),this.xa="",this.j=!1}Ii.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
`+b.toString())}}return y},Ii.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},Ii.prototype.canUndo=function(){return this.isComplete},Ii.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Ii.prototype.canRedo=function(){return this.isComplete},Ii.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},Ii.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new ki,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===jn&&b.object){var E=y.get(b.object);E||(E=new ki,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()}},Jt.Object.defineProperties(Ii.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Ii.prototype.optimize=Ii.prototype.ak,Ii.prototype.redo=Ii.prototype.redo,Ii.prototype.canRedo=Ii.prototype.canRedo,Ii.prototype.undo=Ii.prototype.undo,Ii.prototype.canUndo=Ii.prototype.canUndo,Ii.prototype.clear=Ii.prototype.clear,Ii.className="Transaction";function li(){this.Pt=new Mn,this.Jd=!1,this.u=new bn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new bn().freeze(),this.hl=new bn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}li.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
`+this.history.M(b).toString(a-1);return y},li.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},li.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Et=li.prototype,Et.Xw=function(a){this.Pt.add(a)},Et.Rx=function(a){this.Pt.remove(a)},Et.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},Et.eb=function(a){return a===void 0&&(a=""),bi(this,!0,a)},Et.Kf=function(){return bi(this,!1,"")};function bi(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Hi("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 tt=a.Ie.count;0<tt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(tt-1),a.Ie.freeze()),tt=a.hl.count,0<tt&&(z=a.hl.M(tt-1),a.hl.mb(tt-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}Et.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},li.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},li.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){Hi("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},li.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},li.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){Hi("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},li.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new vn;for(b.change=Sn,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},li.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ii);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||Hi("Change not within a transaction: "+x.toString()))}},li.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Jt.Object.defineProperties(li.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),li.prototype.handleChanged=li.prototype.Tu,li.prototype.redo=li.prototype.redo,li.prototype.undo=li.prototype.undo,li.prototype.canUndo=li.prototype.canUndo,li.prototype.discardHistoryAfterIndex=li.prototype.lx,li.prototype.rollbackTransaction=li.prototype.Kf,li.prototype.commitTransaction=li.prototype.eb,li.prototype.startTransaction=li.prototype.Ea,li.prototype.removeModel=li.prototype.Rx,li.prototype.addModel=li.prototype.Xw,li.prototype.clear=li.prototype.clear,li.className="UndoManager";function oi(){Or(this),this.H=ah,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Oe,this.Zr=-1}oi.prototype.toString=function(){return this.name!==""?this.name+" Tool":Ln(this.constructor)},oi.prototype.updateAdornments=function(){},oi.prototype.canStart=function(){return this.isEnabled},oi.prototype.doStart=function(){},oi.prototype.doActivate=function(){this.isActive=!0},oi.prototype.doDeactivate=function(){this.isActive=!1},oi.prototype.doStop=function(){},oi.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},oi.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},oi.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},oi.prototype.doMouseMove=function(){},oi.prototype.doMouseUp=function(){this.stopTool()},oi.prototype.doMouseWheel=function(){},oi.prototype.canStartMultiTouch=function(){return!0},oi.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Vt.allocAt(NaN,NaN)),b=y.So(1,Vt.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}Vt.free(x),Vt.free(b)},oi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Vt.allocAt(NaN,NaN)),b=y.So(1,Vt.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 Vt((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 tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var rt=a.zoomPoint;a.zoomPoint=E,tt.resetZoom(z),a.zoomPoint=rt}y.bubbles=!1}Vt.free(x),Vt.free(b)},oi.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},oi.prototype.doKeyUp=function(){},oi.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},oi.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},oi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Er?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||(Er?y.meta:y.control)||y.shift||a.clearSelection()}},oi.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,Yi(a,b,x),b.handled};function Yi(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)}}}oi.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,tt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var rt=z.mouseLeave;if(rt!==null&&(b===z||b!==null&&b.rg(z)||(rt(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;b!==null&&(tt=b.mouseEnter,!(tt!==null&&(z===b||z!==null&&z.rg(b)||(tt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,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}},oi.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},oi.prototype.doCurrentObjectChanged=function(){},oi.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===Gr&&!y.shift||E===Ui&&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===Gr&&y.shift||E===Ui&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var tt=z.deltaX;z=z.deltaY;var rt="pixel";if(tt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(rt,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(rt,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:rt="pixel";break;case 1:rt="line";break;case 2:rt="page"}tt!==0&&a.allowHorizontalScroll&&(tt*=a.scrollHorizontalLineChange/16,a.scroll(rt,0<tt?"right":"left",Math.abs(tt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(rt,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},oi.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},oi.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Mi(function(){x.doWaitAfter(b)},a)},oi.prototype.cancelWaitAfter=function(){this.Zr!==-1&&ce.clearTimeout(this.Zr),this.Zr=-1},oi.prototype.doWaitAfter=function(){},oi.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ao);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},oi.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},Jt.Object.defineProperties(oi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Ue&&(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}}}),oi.prototype.startTransaction=oi.prototype.Ea,oi.className="Tool";function In(){oi.call(this),this.name="ToolManager",this.hb=new bn,this.ob=new bn,this.Hb=new bn,this.F=this.V=850,this.o=new ri(2,2).ja(),this.Ha=5e3,this.ia=Ui,this.u=Ur,this.Mp=this.j=null,this.zj=-1}Qe(In,oi),In.prototype.initializeStandardTools=function(){},In.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ao&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},In.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Xr&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Kr){y.bubbles=!0;return}if(this.gestureBehavior===Xr)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===Ui?this.mouseWheelBehavior=Gr:this.mouseWheelBehavior===Gr&&(this.mouseWheelBehavior=Ui)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},In.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Kr){y.bubbles=!0;return}if(this.gestureBehavior===Xr)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}}Ei(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Ei(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}In.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ao&&(y===a||y.rg(a))||this.hideToolTip()},In.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()))},In.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)},In.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof Ao)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},In.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ao){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof or&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(ce.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Mi(function(){E.hideToolTip()},a)}},In.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}},In.prototype.hideToolTip=function(){this.zj!==-1&&(ce.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ao?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof or&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},In.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()},In.prototype.doMouseWheel=function(){this.standardMouseWheel()},In.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},In.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},In.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},In.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},In.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)},Jt.Object.defineProperties(In.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof Ao?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),In.prototype.replaceStandardTool=In.prototype.gb;var Ui=new sn(In,"WheelScroll",0),Gr=new sn(In,"WheelZoom",1),Dr=new sn(In,"WheelNone",2),Ur=new sn(In,"GestureZoom",3),Xr=new sn(In,"GestureCancel",4),Kr=new sn(In,"GestureNone",5);In.className="ToolManager",In.WheelScroll=Ui,In.WheelZoom=Gr,In.WheelNone=Dr,In.GestureZoom=Ur,In.GestureCancel=Xr,In.GestureNone=Kr;function Ri(){oi.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 Vt(NaN,NaN),this.Fr=new Vt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Mn().freeze(),this.ia=new at,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Uo;Qe(Ri,oi),Ri.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},Ri.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},Ri.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,(Er?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Ri.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),Be=null,this.isActive=!0,this.tl.set(a.position),jo(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&fl(a),hc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Be=this,qe=this.diagram,this.doSimulatedDragOut()))};function jo(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof $n?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new vi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Ri.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Ri.prototype.Pd=function(a){return a===void 0?new Kd(fo):this.isGridSnapEnabled?new Kd(new Vt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Kd(a.copy())},Ri.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ia(this),Du(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Uo.count){for(var y=Uo,x=y.length,b=0;b<x;b++){var E=y.M(b);es(E),xa(E),ia(E),E.diagram.ug()}y.clear()}es(this),this.tl.h(NaN,NaN),qe!==null&&(qe.currentCursor=""),Be=qe=null,xa(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),id(a,!0)},Ri.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ia(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Xa(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Na(){var a=Be;xa(a),sa(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ri.prototype.doCancel=function(){xa(this),sa(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Ri.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Ri.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Aa(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")):sa(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 ki,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 $n&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,jo(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,wc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function xa(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 $n&&(x.value.point=new Vt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function es(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function ga(a,y,x){var b=a.diagram,E=a.startPoint,z=Vt.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Vt.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(fl(b),b.hk())}Ri.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Yu(b,a,y,this.dragOptions,x)};function sa(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 $n&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),wc(b,-E.x,-E.y)}y.bd()}}function wa(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Pa(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=Xa(a,E,b),!a.isActive&&Be===null)return;var rt=b!==null?b.part:null;if(rt===null||x.handlesDragDropForTopLevelParts&&rt.isTopLevel&&!(rt instanceof Cr)){var ot=x.mouseDragOver;ot!==null&&(ot(E),tt=!0)}if(!a.isActive&&Be===null||(a.doDragOver(y,b),!a.isActive&&Be===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Ri.prototype.findDragOverObject=function(a){var y=this;return Vu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ao||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Ri.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 Xa(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 tt=0;tt<E;tt++){var rt=a.Cg[tt],ot=rt.mouseDragLeave;if(ot!==null&&(ot(y,rt,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Be===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=ns(E);for(E=a.Cg.length,x=0;x<E&&(tt=a.Cg[x],rt=tt.mouseDragEnter,rt===null||(rt(y,tt,z),b=!0,!y.handled));x++);return b}function ns(a){var y=a.panel;return y!==null?y:a instanceof ji&&!(a instanceof Cr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function za(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(lt){return b.findValidLinkablePort(lt,x)});a=Vt.alloc();var z=1/0,tt=null;for(E=E.iterator;E.next();){var rt=E.value;if(rt.part!==null){var ot=rt.ga(so,a);ot=y.Bf(ot),ot<z&&(tt=rt,z=ot)}}return Vt.free(a),tt}function Pa(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,tt=null;x.fromNode===null&&(z=za(a,x.i(0),!1),z!==null&&(tt=z.part));var rt=null,ot=null;x.toNode===null&&(rt=za(a,x.i(x.pointsCount-1),!0),rt!==null&&(ot=rt.part)),E.isValidLink(tt,z,ot,rt)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=ot,rt!==null&&(x.toPortId=rt.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Vi(E,tt,z,ot,rt):Vi(E,null,null,null,null)}}}}Ri.prototype.doDragOver=function(){};function As(a,y){var x=a.diagram;a.dragsLink&&Pa(a,!0),ia(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 tt=z.mouseDrop;if(tt!==null&&(tt(E,z),E.handled))break;_s(a,E,z),z=ns(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Be!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof ci&&z.linksConnected.each(function(rt){rt.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Be!==null){for(a=fn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof ci&&Qt(x,b,a);fn.free(a)}}}function _s(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Cr||(x=a.mouseDrop,x!==null&&x(y))}function Qt(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 $n},!0,function(E){return E instanceof $n},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Ri.prototype.doDropOnto=function(){},Ri.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()?(Aa(this,!1),hc(a,this.copiedParts),ga(this,this.copiedParts,!1),Du(a,this.copiedParts)):this.mayMove()?(xa(this),ga(this,this.draggedParts,!0)):this.mayDragOut()?(Aa(this,!1),ga(this,this.copiedParts,!1)):xa(this),wa(this,a.lastInput.documentPoint))}},Ri.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?(xa(this),Aa(this,!0),hc(a,this.copiedParts),ga(this,this.copiedParts,!1),Du(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,xa(this),this.mayMove()&&(ga(this,this.draggedParts,!0),wa(this,a.lastInput.documentPoint))),this.Ym=!0,As(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&ie(this),a.Ya(),Du(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Ri.prototype.simulatedMouseMove=function(a,y,x){if(Be===null)return!1;var b=Be.diagram;x instanceof Ue||(x=null);var E=qe;return x!==E&&(E!==null&&E!==b&&(E.ug(),Be.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),qe=x,x!==null&&x!==b&&(Na(),E=x.toolManager.findTool("Dragging"),E!==null&&(Uo.contains(E)||Uo.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)},Ri.prototype.simulatedMouseUp=function(a,y,x){if(Be===null)return!1;var b=qe,E=Be.diagram;if(x===null)return Be.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Be.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;qe=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Na(),Uo.contains(b)||Uo.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 Vt),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=Be,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function ie(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof ci&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Ri.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Er?!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())},Ri.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())},Ri.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())},Ri.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Ri.prototype.Az=function(){return Be},Ri.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Be;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ri.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),xl(a),a.animationManager.Cc(),a=Be,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ri.prototype.doSimulatedDragLeave=function(){var a=Be;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ri.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Be;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Fe(this,y.draggedParts.Lf(),!1,a.firstInput),ga(this,this.copiedParts,!1),wa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ri.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Be;if(y!==null){var x=y.diagram;if(y.Ym=!0,xa(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Fe(this,y.draggedParts.Lf(),!0,a.lastInput),ga(this,this.copiedParts,!1);var b=new Mn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),As(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 Fe(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=fn.alloc();E=b=1/0;for(var tt=-1/0,rt=-1/0,ot=y.iterator;ot.next();){var lt=ot.value;if(lt.isVisible()){var ut=lt.location;lt=ut.x,ut=ut.y,isNaN(lt)||isNaN(ut)||(lt<b&&(b=lt),ut<E&&(E=ut),lt>tt&&(tt=lt),ut>rt&&(rt=ut))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,tt-b,rt-E),b=z.x+z.width/2,E=z.y+z.height/2,fn.free(z),z=a.Fr,tt=new ki,rt=Vt.alloc(),ot=y.iterator;ot.next();)lt=ot.value,lt instanceof $n&&lt.canCopy()&&(ut=x.I(lt),ut!==null&&(ut.points=lt.points,wc(ut,z.x-b,z.y-E),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)lt=y.value,lt.Zc()&&lt.canCopy()&&(ot=x.I(lt),ot!==null&&(lt=lt.location,rt.h(z.x-(b-lt.x),z.y-(E-lt.y)),ot.location=rt,ot.Va(),tt.add(ot,a.Pd(rt))));Vt.free(rt),a.copiedParts=tt,jo(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,wc(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Ri.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Ri.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Vt},Jt.Object.defineProperties(Ri.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}}}),Ri.prototype.getDraggingSource=Ri.prototype.Az;var Be=null,qe=null;Ri.className="DraggingTool",Uo=new bn,Zi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),In.prototype.doCancel=function(){Be!==null&&Be.doCancel(),oi.prototype.doCancel.call(this)};function Ye(){oi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new $n,y=new Br;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Br,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new ci,y=new Br,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Io,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new ci,y=new Br,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Io,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 ki,this.Of=this.gj=this.Pf=null}Qe(Ye,oi),Ye.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Ye.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),tt=ri.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,b.desiredSize=tt,ri.free(tt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=so,z=Vt.alloc(),x.location=y.ga(so,z),Vt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},Ye.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Io,y.fromSpot=Ua,y.toSpot=Ua),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},Ye.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Ye.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof ci){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)}},Ye.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof ci))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof ci)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},Ye.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(ft){return E.findValidLinkablePort(ft,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,rt=tt.part;if(rt instanceof ci){var ot=tt.ga(so,Vt.alloc()),lt=x.x-ot.x,ut=x.y-ot.y;Vt.free(ot),ot=lt*lt+ut*ut,ot<b&&(lt=this.validPortsCache.I(tt),lt!==null?lt&&(y=tt,b=ot):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,rt,tt)||!a&&this.isValidLink(rt,tt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(tt,!0),y=tt,b=ot):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof ci&&(x.layer===null||x.layer.allowLink))?y:null},Ye.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},Ye.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},Ye.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},Ye.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof ci))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof ci))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},Ye.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)},Ye.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 Mn;return b.add(a),En(this,x,y,b)};function En(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),En(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),En(a,y.labeledLink,x,b))))}Ye.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==Yf){if(b===dp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Pn(this,a,y,x,!0)}if(b===cp){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Pn(this,a,y,x,!0)}if(b===lp)return a===y?a=!0:(b=new Mn,b.add(y),a=wn(this,b,a,y,x)),!a;if(b===up)return!Pn(this,a,y,x,!1);if(b===hp)return a===y?a=!0:(b=new Mn,b.add(y),a=ei(this,b,a,y,x)),!a}return!0};function Pn(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 tt=z.value;if(tt!==b&&(!E||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&Pn(a,tt,x,b,E)))return!0}return!1}function wn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&wn(a,y,tt,b,E)))return!0}return!1}function ei(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 tt=z.value;if(tt!==E){var rt=tt.fromNode;if(tt=tt.toNode,rt=rt===x?tt:rt,rt!==x&&ei(a,y,rt,b,E))return!0}}return!1}Jt.Object.defineProperties(Ye.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}}}),Ye.className="LinkingBaseTool";function Rn(){Ye.call(this),this.name="Linking",this.V={},this.F=null,this.K=qn,this.Xd=null}Qe(Rn,Ye),Rn.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},Rn.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 ci)))return null;var x=this.direction;if(x===qn||x===Ci){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===qn||x===wi)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Rn.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 ci&&(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 ci&&(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)},Rn.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()},Rn.prototype.doStop=function(){Ye.prototype.doStop.call(this),this.startObject=null},Rn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var rt=tt.part;rt instanceof ci&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=rt,E=tt):(y=rt,x=tt,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?(tt===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)}}},Rn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof $n)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)},Rn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},Rn.prototype.doNoLink=function(){},Jt.Object.defineProperties(Rn.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 qn=new sn(Rn,"Either",0),Ci=new sn(Rn,"ForwardsOnly",0),wi=new sn(Rn,"BackwardsOnly",0);Rn.className="LinkingTool",Rn.Either=qn,Rn.ForwardsOnly=Ci,Rn.BackwardsOnly=wi;function vi(){Ye.call(this),this.name="Relinking";var a=new Br;a.figure="Diamond",a.desiredSize=Sa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Br,a.figure="Diamond",a.desiredSize=Sa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new fn}Qe(vi,Ye),vi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof $n){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},vi.prototype.makeAdornment=function(a,y){var x=new Ao;return x.type=Gn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},vi.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},vi.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Ao&&x.adornedPart instanceof $n))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=Mr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Mr),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},vi.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Rg||x===Pc)&&(x=Gl),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},vi.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},vi.prototype.doStop=function(){Ye.prototype.doStop.call(this),this.handle=null},vi.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof ci&&(this.isForwards?(b=tt,E=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},vi.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},vi.prototype.doNoRelink=function(){};function Vi(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)}Jt.Object.defineProperties(vi.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Ao))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),vi.className="RelinkingTool",Zi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Zi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Si(){oi.call(this),this.name="LinkReshaping";var a=new Br;a.figure="Rectangle",a.desiredSize=Ma,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Br,a.figure="Diamond",a.desiredSize=Sa,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Vt,this.Yq=new bn}Qe(Si,oi),Si.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Qi},Si.prototype.om=function(a,y){a.reshapingBehavior=y},Si.prototype.updateAdornments=function(a){if(a!==null&&a instanceof $n){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)}},Si.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ao,E.type=Gn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=b?1:0;if(y.resegmentable&&y.computeCurve()!==zu)for(var rt=x+tt;rt<z-tt;rt++){var ot=this.makeResegmentHandle(a,rt);ot!==null&&(ot.segmentIndex=rt,ot.segmentFraction=.5,ot.fromMaxLinks=999,E.add(ot))}for(tt=x+1;tt<z;tt++)if(rt=this.makeHandle(a,tt),rt!==null){if(rt.segmentIndex=tt,tt!==x)if(tt===x+1&&b){ot=y.i(x);var lt=y.i(x+1);Ae.B(ot.x,lt.x)&&Ae.B(ot.y,lt.y)&&(lt=y.i(x-1)),Ae.B(ot.x,lt.x)?(this.om(rt,Jr),rt.cursor="n-resize"):Ae.B(ot.y,lt.y)&&(this.om(rt,sr),rt.cursor="w-resize")}else tt===z-1&&b?(ot=y.i(z-1),lt=y.i(z),Ae.B(ot.x,lt.x)&&Ae.B(ot.y,lt.y)&&(ot=y.i(z+1)),Ae.B(ot.x,lt.x)?(this.om(rt,Jr),rt.cursor="n-resize"):Ae.B(ot.y,lt.y)&&(this.om(rt,sr),rt.cursor="w-resize")):tt!==z&&(this.om(rt,oo),rt.cursor="move");E.add(rt)}E.adornedObject=a}return E},Si.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Si.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Si.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},Si.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 $n){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}}},Si.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Si.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Si.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Si.prototype.getResegmentingPoint=function(){return this.handle.ga(so)},Si.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Si.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 tt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(ir(this,tt,b,E,z,!0)||ir(this,tt,b,E,z,!1))){var rt=y.points.copy();ir(this,tt,b,E,z,!0)?(rt.cd(x-2,new Vt(tt.x,(z.y+tt.y)/2)),rt.cd(x+1,new Vt(z.x,(z.y+tt.y)/2))):(rt.cd(x-2,new Vt((z.x+tt.x)/2,tt.y)),rt.cd(x+1,new Vt((z.x+tt.x)/2,z.y))),rt.mb(x),rt.mb(x-1),y.points=rt,y.Wb()}else tt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(ir(this,b,E,z,tt,!0)||ir(this,b,E,z,tt,!1))&&(rt=y.points.copy(),ir(this,b,E,z,tt,!0)?(rt.cd(x-1,new Vt(b.x,(b.y+tt.y)/2)),rt.cd(x+2,new Vt(tt.x,(b.y+tt.y)/2))):(rt.cd(x-1,new Vt((b.x+tt.x)/2,b.y)),rt.cd(x+2,new Vt((b.x+tt.x)/2,tt.y))),rt.mb(x+1),rt.mb(x),y.points=rt,y.Wb())}}else tt=Vt.alloc(),Ae.qh(b.x,b.y,z.x,z.y,E.x,E.y,tt)&&tt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Vt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function ir(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}Si.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===Jr?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===sr&&(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===Jr?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===sr&&(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),tt=y.i(b+1);Ae.B(z.x,E.x)&&Ae.B(E.y,tt.y)?(Ae.B(z.x,y.i(b-2).x)&&!Ae.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),Ae.B(tt.y,y.i(b+2).y)&&!Ae.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)):Ae.B(z.y,E.y)&&Ae.B(E.x,tt.x)?(Ae.B(z.y,y.i(b-2).y)&&!Ae.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),Ae.B(tt.x,y.i(b+2).x)&&!Ae.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):Ae.B(z.x,E.x)&&Ae.B(E.x,tt.x)?(Ae.B(z.x,y.i(b-2).x)&&!Ae.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),Ae.B(tt.x,y.i(b+2).x)&&!Ae.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):Ae.B(z.y,E.y)&&Ae.B(E.y,tt.y)&&(Ae.B(z.y,y.i(b-2).y)&&!Ae.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),Ae.B(tt.y,y.i(b+2).y)&&!Ae.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.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(so,Vt.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Vt.alloc()),y.L(0,b.x,b.y),Vt.free(z),Vt.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(so,Vt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Vt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Vt.free(x),Vt.free(a));y.zf()},Si.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case oo:return a;case Jr:return new Vt(y.i(x).x,a.y);case sr:return new Vt(a.x,y.i(x).y);default:case Qi:return y.i(x)}},Jt.Object.defineProperties(Si.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ao))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Si.prototype.setReshapingBehavior=Si.prototype.om,Si.prototype.getReshapingBehavior=Si.prototype.Ru;var Qi=new sn(Si,"None",0),sr=new sn(Si,"Horizontal",1),Jr=new sn(Si,"Vertical",2),oo=new sn(Si,"All",3);Si.className="LinkReshapingTool",Si.None=Qi,Si.Horizontal=sr,Si.Vertical=Jr,Si.All=oo,Zi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function pr(){oi.call(this),this.name="Resizing",this.o=new ri(1,1).freeze(),this.j=new ri(9999,9999).freeze(),this.yg=new ri(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Br;a.alignmentFocus=so,a.figure="Rectangle",a.desiredSize=Ma,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Vt,this.Dw=new ri,this.Tn=new Vt,this.rt=new ri(0,0),this.qt=new ri(1/0,1/0),this.pt=new ri(1,1)}Qe(pr,oi),pr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof $n)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),Vc(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},pr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ao,y.type=Gn.Spot,y.locationSpot=so;var x=new Zl;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ls)),y.add(this.makeHandle(a,lu)),y.add(this.makeHandle(a,ml)),y.add(this.makeHandle(a,Ll)),y.add(this.makeHandle(a,ts)),y.add(this.makeHandle(a,Ms)),y.add(this.makeHandle(a,bs)),y.add(this.makeHandle(a,hs))}else if(ch(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},pr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},pr.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=so),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 Gn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},pr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},pr.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},pr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},pr.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},pr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},pr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Vt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Vt.free(E)}},pr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Vt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Vt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},pr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Cr){var b=new bn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new at;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},pr.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=so);var tt=this.adornedObject.naturalBounds,rt=tt.x,ot=tt.y,lt=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var yt=tt.height;0>=ft&&(ft=1),0>=yt&&(yt=1),ft=yt/ft}return yt=Vt.alloc(),Ae.No(a.x,a.y,rt,ot,E.width,E.height,yt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(yt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.y=Math.max(yt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=lt-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(yt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.height=Math.max(Math.min(yt.y-ot,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=lt-a.width)):(a.x=Math.max(yt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=lt-a.x,z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(yt.x-rt,b.width),x.width),a.y=Math.max(yt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(yt.x-rt,b.width),x.width),a.height=Math.max(Math.min(yt.y-ot,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(yt.x-rt,b.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=ot+.5*(ut-ot-a.height))):0>=y.y?(a.y=Math.max(yt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))):1<=y.y&&(a.height=Math.max(Math.min(yt.y-ot,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=rt+.5*(lt-rt-a.width))),Vt.free(yt),a},pr.prototype.computeReshape=function(){var a=Dn;return this.adornedObject instanceof Br&&(a=bv(this.adornedObject)),!(a===Ni||this.diagram.lastInput.shift)},pr.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},pr.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},pr.prototype.computeCellSize=function(){var a=new ri(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},Jt.Object.defineProperties(pr.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Ao))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ao)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),pr.className="ResizingTool",Zi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Fr(){oi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Vt,this.ue=null;var a=new Br;a.figure="Ellipse",a.desiredSize=Sa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Vt(NaN,NaN),this.u=0,this.F=50}Qe(Fr,oi),Fr.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)}},Fr.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ao,y.type=Gn.Position,y.locationSpot=so;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(ch(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Fr.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},Fr.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)},Fr.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(so)},Fr.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)},Fr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Vt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Fr.prototype.stopTransaction=function(){var a=this.diagram,y=oi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Fr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Fr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Fr.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()},Fr.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()}},Fr.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},Jt.Object.defineProperties(Fr.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ao))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ao)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Fr.className="RotatingTool",Zi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Eo(){oi.call(this),this.name="ClickSelecting"}Qe(Eo,oi),Eo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Eo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Eo.className="ClickSelectingTool";function ur(){oi.call(this),this.name="Action",this.pk=null}Qe(ur,oi),ur.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},ur.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()},ur.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))}},ur.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()},ur.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())},ur.prototype.doStop=function(){this.pk=null},ur.className="ActionTool";function zr(){oi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Vt(0,0)}Qe(zr,oi),zr.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)},zr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},zr.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof ji)x.Zc()&&(ch(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);Ge(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Vt.allocAt(a.x,a.y);this.isGridSnapEnabled&&pf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Vt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Jt.Object.defineProperties(zr.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}}}),zr.className="ClickCreatingTool";function mr(){oi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ji;a.layerName="Tool",a.selectable=!1;var y=new Br;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Qe(mr,oi),mr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},mr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},mr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},mr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=ri.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),ri.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},mr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},mr.prototype.computeBoxBounds=function(){var a=this.diagram;return new fn(a.firstInput.documentPoint,a.lastInput.documentPoint)},mr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Er?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new bn,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Jt.Object.defineProperties(mr.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),mr.className="DragSelectingTool";function Wi(){oi.call(this),this.name="Panning",this.Xt=new Vt,this.xy=new Vt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(ce.document,"scroll",a.Kw,!1),a.stopTool()}}Qe(Wi,oi),Wi.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())},Wi.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(ce.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Wi.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Wi.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Wi.prototype.doMouseMove=function(){this.move()},Wi.prototype.doMouseUp=function(){this.move(),this.stopTool()},Wi.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)}},Jt.Object.defineProperties(Wi.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Wi.className="PanningTool",Zi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Zi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Zi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Zi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Zi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function or(){this.F=this.u=this.j=this.o=null}Jt.Object.defineProperties(or.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),or.className="HTMLInfo";function jr(a,y,x){this.text=a,this.hx=y,this.visible=x}jr.className="ContextMenuButtonInfo";function ao(){oi.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Vt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Qe(ao,oi);function lo(a){var y=new or;y.show=function(E,z,tt){tt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},Ho=y,a.tu=function(){a.stopTool()},y=pi("div");var x=pi("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=pi("style");ce.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",ar,!1),b.addEventListener(y,"selectstart",ar,!1),b.addEventListener(x,"contextmenu",ar,!1)),y.className="goCXforeground",x.className="goCXbackground",ce.document.body&&(ce.document.body.appendChild(y),ce.document.body.appendChild(x)),Po=y,ta=x,ja=!0}function ar(a){return a.preventDefault(),!1}ao.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)},ao.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},ao.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},ao.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Ue||(a instanceof Le?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},ao.prototype.doActivate=function(){},ao.prototype.doMouseDown=function(){if(oi.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ao){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Lo(this)},ao.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ao){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Lo(this)};function Lo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof or||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Ro(a,!0),a.isActive||a.stopTool())}ao.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Ro(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Ho,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Le?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ao&&!a.currentContextMenu.visible&&a.stopTool()}}ao.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},ao.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ao){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof or&&a.show(y,x,this);this.currentContextMenu=a},ao.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}},ao.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ao?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof or&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Wo(a){var y=new bn;return y.add(new jr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new jr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new jr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new jr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new jr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new jr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new jr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new jr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new jr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new jr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new jr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new jr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new jr("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}ao.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Wo(this)),Po.innerHTML="",ta.addEventListener("pointerdown",this.tu,!1);var y=this,x=pi("ul");x.className="goCXul",Po.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=pi("li"),z.className="goCXli";var tt=pi("a");tt.className="goCXa",tt.href="#",tt.ky=E.hx,tt.addEventListener("pointerdown",function(rt){return this.ky(a),y.stopTool(),rt.preventDefault(),!1},!1),tt.textContent=E.text,z.appendChild(tt),x.appendChild(z)}}Po.style.display="block",ta.style.display="block"},ao.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Ho){Po.style.display="none",ta.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ta,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Jt.Object.defineProperties(ao.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ao?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return ja===!1&&Ho===null&&qa&&lo(this),Ho},set:function(a){a===null&&(ja=!0),Ho=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Ho=null,ja=!1,ta=null,Po=null;ao.className="ContextMenuTool",Zi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function _r(){oi.call(this),this.name="TextEditing",this.Zh=new la,this.ia=null,this.V=qr,this.vj=null,this.qa=Li,this.u=1,this.F=!0,this.o=null,this.j=new or,this.kt=null,po(this,this.j)}Qe(_r,oi);function po(a,y){if(qa){var x=pi("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(no)):E==="Tab"?(a.acceptText(vo),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Li){var b=a.kt;a.qa===Sr&&(a.qa=Fo),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Li){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 la&&z instanceof _r)if(z.state===Xs)x.style.border="3px solid red",x.focus();else{var tt=b.ga(so),rt=E.position,ot=E.scale,lt=b.Df()*ot;lt<z.minimumEditorScale&&(lt=z.minimumEditorScale);var ut=b.naturalBounds.width*lt+6,ft=b.naturalBounds.height*lt+2,yt=(tt.x-rt.x)*ot;tt=(tt.y-rt.y)*ot,rt=b.verticalAlignment,ot=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*lt,ft=rt.y*ft-rt.y*ot+rt.offsetY-(.5*ft-.5*ot)-ot/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*lt+"%",x.style.lineHeight="normal",x.style.width=ut+"px",x.style.left=(yt-ut/2|0)-1+"px",x.style.top=(tt+ft|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=lt,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)}}}_r.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||sl&&sl!==this&&(sl.acceptText(Ka),sl&&sl!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof la&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===qr&&!y.isSelected||this.starting===Ir&&2>a.lastInput.clickCount)):!1},_r.prototype.doStart=function(){sl=this,this.textBlock!==null&&this.doActivate()},_r.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 la&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Sr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new fn(this.textBlock.ga(Ls),this.textBlock.ga(ml));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},_r.prototype.doCancel=function(){this.stopTool()},_r.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},_r.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ka)},_r.prototype.acceptText=function(a){switch(a){case Ka:this.qa===ks?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Sr||this.qa===Xs||this.qa===Fo)&&(this.qa=Xo,Ba(this));break;case Ca:case no:case vo:(no!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Sr||this.qa===Xs||this.qa===Fo)&&(this.qa=Xo,Ba(this))}};function Ba(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=ks,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=Xs,a.doError(E,z))}}_r.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)},_r.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},_r.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Li,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},_r.prototype.doStop=function(){sl=null},_r.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)))},_r.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Jt.Object.defineProperties(_r.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)}}}),_r.prototype.measureTemporaryTextBlock=_r.prototype.Lx;var Ca=new sn(_r,"LostFocus",0),Ka=new sn(_r,"MouseDown",1),vo=new sn(_r,"Tab",2),no=new sn(_r,"Enter",3),Co=new sn(_r,"SingleClick",0),qr=new sn(_r,"SingleClickSelected",1),Ir=new sn(_r,"DoubleClick",2),Li=new sn(_r,"StateNone",0),Sr=new sn(_r,"StateActive",1),Fo=new sn(_r,"StateEditing",2),Xo=new sn(_r,"StateValidating",3),Xs=new sn(_r,"StateInvalid",4),ks=new sn(_r,"StateValidated",5),sl=null;_r.className="TextEditingTool",_r.LostFocus=Ca,_r.MouseDown=Ka,_r.Tab=vo,_r.Enter=no,_r.SingleClick=Co,_r.SingleClickSelected=qr,_r.DoubleClick=Ir,_r.StateNone=Li,_r.StateActive=Sr,_r.StateEditing=Fo,_r.StateValidating=Xo,_r.StateInvalid=Xs,_r.StateValidated=ks,Zi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function va(a){ms||(Ia(),ms=!0),this.H=ah,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Is,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Mn,this.ce=new Wa,this.ce.Yd=this,this.Ei=new Mn,this.pu=new Mn,this.Sr=new Mn,this.pr=new Mn,a&&Object.assign(this,a)}va.prototype.Xe=function(a){this.H=a},va.prototype.canStart=function(){return!0};function Oa(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Js(a.H),a.zb=!0)}function ho(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Is?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===ql&&y.vc.clear(),a.Qw=!!(a.Pk===Cu&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),ul(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==kl&&b!==null&&(delete b.start.scale,delete b.end.scale),ce.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&fl(x),Od(x),a.zb=!1,y.start(),y.bc&&(Va(a),x.Ya(),oh(y,0),xl(x,!0),ds(a),x.R("AnimationStarting",a)))}))}}function Bs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function ll(a,y,x,b){a.isTicking||Bs(a)||y instanceof $n&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Et=va.prototype,Et.fv=function(a){return this.ce.fv(a)},Et.Xu=function(a){return this.ce.Xu(a)};function ka(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 tt=z.value;if(tt.bc!==!1){t:if(0<tt.yl.count)var rt=!0;else{for(rt=tt.vc.iterator;rt.next();){var ot=rt.key;if(ot instanceof Le&&ot.diagram!==null||ot instanceof Ue){rt=!0;break t}}rt=!1}rt?hu(tt,!1):tt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Va(E),xl(E.H),ds(E)),ce.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),ce.requestAnimationFrame(function(){x()}))}function Ha(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Va(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 ds(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Et.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),ul(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),ul(y,this.H)},Et.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))},Et.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ja(this,a))},Et.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ls(this.ce,y,"position",y.position,y.position),Ja(this,a))};function Os(a,y,x){!a.zb||y.D(x)||Bs(a)||(a.H.pi||(y=x.copy()),ls(a.ce,a.H,"position",y,x))}function ra(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ja(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function js(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],tt=a[1],rt=a[2];a=a[3];var ot=y[0],lt=y[1],ut=y[2];return y=y[3],rt===0||rt===100?(z=ot,tt=lt):(ut===0||ut===100)&&(ot=z,lt=tt),180<Math.abs(ot-z)&&(ot>z?z+=360:ot+=360),z=E(x,z,ot-z,b)%360,tt=E(x,tt,lt-tt,b),rt=E(x,rt,ut-rt,b),x=E(x,a,y-a,b),"hsla("+z+", "+tt+"%, "+rt+"%, "+x+")"}function Ia(){function a(x,b,E,z,tt,rt){x.position=new Vt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}var y=new ki;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new Vt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("location",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!0):x.location=new Vt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:placeholder",function(x,b,E,z,tt,rt){tt<rt?x.mm(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt),!1):x.position=new Vt(z(tt,b.x,E.x-b.x,rt),z(tt,b.y,E.y-b.y,rt))}),y.add("position:nodeCollapse",function(x,b,E,z,tt,rt){var ot=x.actualBounds,lt=E.actualBounds;E=lt.x+lt.width/2-ot.width/2,ot=lt.y+lt.height/2-ot.height/2,tt<rt?x.mm(z(tt,b.x,E-b.x,rt),z(tt,b.y,ot-b.y,rt),!1):x.position=new Vt(z(tt,b.x,E-b.x,rt),z(tt,b.y,ot-b.y,rt))}),y.add("desiredSize",function(x,b,E,z,tt,rt){x.desiredSize=new fn(z(tt,b.width,E.width-b.width,rt),z(tt,b.height,E.height-b.height,rt))}),y.add("width",function(x,b,E,z,tt,rt){x.width=z(tt,b,E-b,rt)}),y.add("height",function(x,b,E,z,tt,rt){x.height=z(tt,b,E-b,rt)}),y.add("fill",function(x,b,E,z,tt,rt){x.fill=js(b,E,tt,rt,z)}),y.add("stroke",function(x,b,E,z,tt,rt){x.stroke=js(b,E,tt,rt,z)}),y.add("strokeWidth",function(x,b,E,z,tt,rt){x.strokeWidth=z(tt,b,E-b,rt)}),y.add("strokeDashOffset",function(x,b,E,z,tt,rt){x.strokeDashOffset=z(tt,b,E-b,rt)}),y.add("background",function(x,b,E,z,tt,rt){x.background=js(b,E,tt,rt,z)}),y.add("areaBackground",function(x,b,E,z,tt,rt){x.areaBackground=js(b,E,tt,rt,z)}),y.add("opacity",function(x,b,E,z,tt,rt){x.opacity=z(tt,b,E-b,rt)}),y.add("scale",function(x,b,E,z,tt,rt){x.scale=z(tt,b,E-b,rt)}),y.add("angle",function(x,b,E,z,tt,rt){x.angle=z(tt,b,E-b,rt)}),yo=y}Jt.Object.defineProperties(va.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&&ui(a,">= 1",va,"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}}}),va.prototype.stopAnimation=va.prototype.Cc;var yo=null,ms=!1,Is=new sn(va,"Default",1),Cu=new sn(va,"AnimateLocations",2),ql=new sn(va,"None",3);va.className="AnimationManager",va.defineAnimationEffect=function(a,y){ms||(Ia(),ms=!0),yo.add(a,y)},va.Default=Is,va.AnimateLocations=Cu,va.None=ql;function Wa(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=Il,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=fo,this.vc=new ki,this.Tt=new ki,this.yl=new Mn,this.Ut=new Mn,this.dw=fc,a&&Object.assign(this,a)}Wa.prototype.suspend=function(){this.Xk=!0},Wa.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,hu(this,!0),Va(this.Yd),xl(this.H),ds(this.Yd),this.H.redraw()};function ul(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Et=Wa.prototype,Et.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 Ue?a=x:x instanceof Le&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===Is&&this===y.defaultAnimation&&(this.Lp=Gu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Uf),Va(y),this.yl.each(function(b){b.data=null,a.add(b)}),ds(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ka(y,this),this)},Et.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Et.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Ue?this.H=a:a instanceof Le&&a.diagram!==null&&(this.H=a.diagram)),a instanceof ji){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ls(this,a,y,x,b,E),this};function ls(a,y,x,b,E,z){var tt=a.vc;if(y instanceof Ue&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Yd(b),av(),b=[Ru.j,Ru.u,Ru.o,Ru.F],Yd(E),av(),E=[Ru.j,Ru.u,Ru.o,Ru.F]),tt.contains(y)){var rt=tt.I(y),ot=rt.start,lt=rt.end;ot[x]===void 0&&(ot[x]=is(b)),lt[x]=is(E)}else ot={},lt={},ot[x]=is(b),lt[x]=is(E),rt=ot.position,y instanceof Le&&rt instanceof Vt&&!rt.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&rt.assign(lt.position),rt=new Ku(ot,lt,z),tt.add(y,rt);tt=ot[x],tt instanceof Vt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof ji?rt.Ku.location=is(y.location):z&&(rt.Ku[x]=is(b))}function is(a){return a instanceof Vt||a instanceof ri?a.copy():a}Et.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Et.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function hu(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),Va(x),oh(a,E),xl(a.H,!0),ds(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 oh(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Le&&z.diagram===null)){var tt=b.value,rt=E?tt.end:tt.start;tt=E?tt.start:tt.end;var ot=yo,lt;for(lt in tt)lt==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||ot.get(lt)===null||ot.get(lt)(z,rt[lt],tt[lt],a.Lp,y,x,a)}}}Et.stop=function(){return this.bc?(this.Ml(!0),this):this},Et.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,Va(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=yo;b.next();){var tt=b.key,rt=b.value,ot=E?rt.end:rt.start,lt=E?rt.start:rt.end,ut=rt.Ku,ft;for(ft in lt)if(z.get(ft)!==null){var yt=ft;!rt.Hu||yt!=="position:nodeCollapse"&&yt!=="position:placeholder"||(yt="position"),z.get(yt)(tt,ot[ft],ut[ft]!==void 0?ut[ft]:rt.Hu?ot[ft]:lt[ft],this.Lp,this.Gd,this.Gd,this)}rt.Hu&&ut.location!==void 0&&tt instanceof ji&&(tt.location=ut.location),rt.nv&&tt instanceof ji&&tt.Zb(!1)}if(y.As.clear(),id(y,!1),y.Ya(),y.N(),xl(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)E=ft.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}xl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),ds(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),ul(this,null),x.Ml(this),y.$b())}},Et.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Cr&&(b=y.placeholder),b!==null?(x=b.ga(Ls),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Vt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Cr)for(a=a.memberParts;a.next();)b=a.value,b instanceof ci&&this.Cj(b,y)},Et.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Cr&&(x=y.placeholder),x!==null){var b=x.ga(Ls);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 Cr)for(a=a.memberParts;a.next();)b=a.value,b instanceof ci&&this.Aj(b,y)}},Et.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Jt.Object.defineProperties(Wa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&ui(a,">= 1",Wa,"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:ue("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}}}),Wa.prototype.getTemporaryState=Wa.prototype.Ez,Wa.prototype.stop=Wa.prototype.stop,Wa.prototype.add=Wa.prototype.add,Wa.prototype.addTemporaryPart=Wa.prototype.Iy;function Il(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Gu(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Wa.className="Animation",Wa.EaseLinear=function(a,y,x,b){return x*a/b+y},Wa.EaseInOutQuad=Il,Wa.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Wa.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Wa.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Wa.EaseOutExpo=Gu;function Ku(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Ku.className="AnimationState";function _l(a,y,x){this.xd=null,this.rf=a,this.so=x||Qa,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Hs))}_l.prototype.copy=function(){var a=new _l(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 ba(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))}Jt.Object.defineProperties(_l.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 Qa=new sn(_l,"Default",1),Hs=new sn(_l,"Immediate",2),rs=new sn(_l,"Bundled",3);_l.className="AnimationTrigger",_l.Default=Qa,_l.Immediate=Hs,_l.Bundled=rs;function Ea(a){Or(this),this.H=null,this.Pa=new bn,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Et=Ea.prototype,Et.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Cl(x)}a.clear(),this.Zq.length=0},Et.Xe=function(a){this.H=a},Et.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,tt=0,rt=this.Pa.iterator;rt.next();){var ot=rt.value;ot instanceof Cr?E++:ot instanceof ci?b++:ot instanceof $n?z++:ot instanceof Ao?tt++:x++}if(rt="",0<x&&(rt+=x+" Parts "),0<b&&(rt+=b+" Nodes "),0<E&&(rt+=E+" Groups "),0<z&&(rt+=z+" Links "),0<tt&&(rt+=tt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,rt+=`
`+x.toString(),b=x.data,b!==null&&bo(b)&&(rt+=" #"+bo(b)),x instanceof ci?rt+=" "+Kn(b):x instanceof $n&&(rt+=" "+Kn(x.fromNode)+" "+Kn(x.toNode));return y+" "+this.Pa.count+": "+rt},Et.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=Vt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var rt=z[tt];if((b!==!0||Vc(rt)!==!1)&&rt.isVisible()&&(E.assign(a),$r(E,rt.oe),rt=rt.ic(E,y,x),rt!==null&&(y!==null&&(rt=y(rt)),rt!==null&&(x===null||x(rt)))))return Vt.free(E),rt}return Vt.free(E),null},Et.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof bn||b instanceof Mn||(b=new Mn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Vt.alloc(),tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((E!==!0||Vc(ot)!==!1)&&ot.isVisible()){z.assign(a),$r(z,ot.oe);var lt=ot;ot.ji(z,y,x,b)&&(y!==null&&(lt=y(lt)),lt===null||x!==null&&!x(lt)||b.add(lt))}}return Vt.free(z),b},Et.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof bn||E instanceof Mn||(E=new Mn),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,rt=tt.length;rt--;){var ot=tt[rt];if((z!==!0||Vc(ot)!==!1)&&ot.isVisible()){var lt=ot;ot.Cf(a,y,x,b,E)&&(y!==null&&(lt=y(lt)),lt===null||x!==null&&!x(lt)||E.add(lt))}}return E},Et.Nu=function(a,y,x,b,E,z,tt){if(this.Uh===!1)return E;for(var rt=this.Pa.s,ot=rt.length;ot--;){var lt=rt[ot];if((tt!==!0||Vc(lt)!==!1)&&z(lt)&&lt.isVisible()){var ut=lt;lt.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},Et.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof bn||E instanceof Mn)&&(z=E),E=!0),z instanceof bn||z instanceof Mn||(z=new Mn),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var rt=Vt.alloc(),ot=Vt.alloc(),lt=this.Pa.s,ut=lt.length;ut--;){var ft=lt[ut];if((tt!==!0||Vc(ft)!==!1)&&ft.isVisible()){rt.assign(a),$r(rt,ft.oe),ot.h(a.x+y,a.y),$r(ot,ft.oe);var yt=ft;ft.og(rt,ot,x,b,E,z)&&(x!==null&&(yt=x(yt)),yt===null||b!==null&&!b(yt)||z.add(yt))}}return Vt.free(rt),Vt.free(ot),z},Et.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=dn();for(var E=dn(),z=0;z<b;z++){var tt=x[z];if(tt.vw=z,tt instanceof $n){if(tt.fd===!1)continue}else if(tt instanceof Ao&&tt.adornedPart!==null)continue;var rt=tt.actualBounds;tt.isVisible()&&ma(rt,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&E.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],Ov(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)Ov(E[y]);kn(a),kn(E)}}};function Ws(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Et.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=Ws(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,rt=fn.alloc(),ot=0;ot<b;ot++)this.Oj(a,x[ot],y,z,tt,rt,!0);if(fn.free(rt),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Sl(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var tt=Ws(a,y),rt=a.Zq;rt.length=0;for(var ot=x.scale,lt=fn.alloc(),ut=0;ut<z;ut++){var ft=E[ut];b.contains(ft)&&a.Oj(y,ft,x,rt,ot,lt,!1)}fn.free(lt),y.globalAlpha=tt}}}Et.Oj=function(a,y,x,b,E,z,tt){if(tt&&!Vc(y))a.Hs(y);else{if(b!==null&&y instanceof $n&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,b=y.containingGroup;b!==null;)tt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(tt=!0,z.assign(b.tb)),b=b.containingGroup;var rt=y.actualBounds;if(b=!1,tt&&y.isVisible()){if(!z.Yc(rt)){a.Hs(y);return}b=!z.Re(rt)}b&&(a.save(),a instanceof Eu?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),rt.width*E>x.Oq||rt.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&&(_a(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(_a(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),_a(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))}},Et.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(jn,a,this,y,x,b,E)},Et.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Cl(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),bu(this,a,y),a},Et.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,Cl(y),a};function bu(a,y,x){if(y=ac(a,y,x),x instanceof Cr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];if(rt===x&&(y=tt,0<=b)||0>b&&rt.containingGroup===x&&(b=tt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&bu(a,-1,y)}x.svg!==null&&x.svg.remove()}function ac(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var rt=y+1,ot=NaN;rt<E&&(ot=a.M(rt).zOrder,!!isNaN(ot));)rt++;if(!isNaN(tt)&&tt>b)for(;;){if(z===-1||tt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(ot)&&ot<b)for(;;){if(rt===E||ot>=b){if(rt--,rt===y)break;return a.mb(y),a.Gb(rt,x),rt}for(ot=NaN;++rt<E&&(ot=a.M(rt).zOrder,isNaN(ot)););}return y}Jt.Object.defineProperties(Ea.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===""&&ue("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&ue("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)&&ui(a,"0 <= value <= 1",Ea,"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))}}}),Ea.prototype.findObjectsNear=Ea.prototype.og,Ea.prototype.findObjectsIn=Ea.prototype.Cf,Ea.prototype.findObjectsAt=Ea.prototype.ji,Ea.prototype.findObjectAt=Ea.prototype.ic,Ea.className="Layer";function Ue(a,y){if(dm||(wl(),dm=!0),Or(this),ah=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,qa){var x=this,b=function(){x.removeEventListener(ce.document,"DOMContentLoaded",b,!1),x.setRTL()};ce.document.body!==null?this.setRTL():x.addEventListener(ce.document,"DOMContentLoaded",b,!1)}this.ol=null,Zh.add("Model",Ko);var E=this;return this.Hb=function(z){var tt=E.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var rt=z.change;z.modelChange===""&&rt===jn&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Rc(this),this.model=hy(),this.Wg=!0,Id(this),this.layout=new Fa,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new cm,a!==void 0&&(typeof a=="string"||ce.Element&&a instanceof Element?Ph(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var wh,ah;function Rc(a){a.Yd=new va,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new bn,a.pj=new ki,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Vt(NaN,NaN).freeze(),a.du=new Vt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Vt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new kr,a.zu=new Vt(NaN,NaN).freeze(),a.ut=new fn(NaN,NaN,NaN,NaN).freeze(),a.rj=new zi(0,0,0,0).freeze(),a.sj=fc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=kl,a.zk=Bo,a.Fg=kl,a.pq=Bo,a.yt=Ls,a.Bt=Ls,a.Fc=!0,a.pn=!1,a.De=new Mn,a.Eh=new ki,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new zi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Oe,a.bq.diagram=a,a.Qg=new Oe,a.Qg.diagram=a,a.cj=new Oe,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,sp(a),a.ai=new Mn,a.Ht=!0,a.uu=gc,a.pw=!1,a.wu=Yf,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new ki,a.Xn=new bn,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new zi(5).freeze(),a.Hw=new Mn().freeze(),a.Nt=999999999,a.nw=new Mn().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 Mn,a.ow=new Mn,a.Xh=null,a.aw=new ri(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Vt,bounds:new fn,Py:new ri,bA:new ri,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new fn(NaN,NaN,NaN,NaN).freeze(),a.wo=new ri(NaN,NaN).freeze(),a.Sp=new fn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new ki;var y=new ci,x=new la;x.bind(new vs("text","",Kn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new ci,x=new la,x.stroke="brown",x.bind(new vs("text","",Kn)),y.add(x),a.Lg.add("Comment",y),y=new ci,y.selectable=!1,y.avoidable=!1,x=new Br,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new ri(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new ki,y=new Cr,y.selectionObjectName="GROUPPANEL",y.type=Gn.Vertical,x=new la,x.font="bold 12pt sans-serif",x.bind(new vs("text","",Kn)),y.add(x),x=new Gn(Gn.Auto),x.name="GROUPPANEL";var b=new Br;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Zl,b.padding=new zi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new ki,y=new $n,x=new Br,x.isPanelMain=!0,y.add(x),x=new Br,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new $n,x=new Br,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ao,y.type=Gn.Auto,x=new Br,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Zl,x.margin=new zi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ao,y.type=Gn.Link,x=new Br,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new Ko,a.toolManager=new In,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new at,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Rh(),a.eq=null,a.fq=ya,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 Vt,a.zy=500,a.wp=new Vt,a.wq=!1}Ue.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Sf=null,Wc="",vd(this,!1),this.Xn.clear(),Tg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function vd(a,y){a.animationManager.Cc(!0),a.Hw=new Mn().freeze(),a.nw=new Mn().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=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var rt=a.Wa.s[y].parts;rt.next();){var ot=rt.value;ot!==E&&ot.data===null&&z.push(ot)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<tt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Tg(),a.Og.clear(),nr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Rh(){return null}Ue.prototype.reset=function(){this.clear(),this.vb=!0,Rc(this),bh(this),this.Wg=!0,Id(this),this.layout=new Fa,this.Wg=!1,this.model=hy(),this.model.undoManager=new li,this.vb=this.rn=!1,this.N()},Ue.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=ce.document.body);var y=pi("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},Ue.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=ce.document.body);var y=0;if(qa){var x=uh;y=wh,x===null&&(x=uh=pi("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=wh=pi("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||Er||(y=11)}this.Db=y,this.Gw=!0},Ue.prototype.qb=function(a){a.classType===Ue&&(this.autoScale=a)},Ue.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
`+x.value.toString(a-1);return y};function Ph(a,y){if(qa){if(y!=null||ue("Diagram setup requires an argument DIV."),a.Ka!==null&&ue("Diagram has already completed setup."),typeof y=="string"?a.Ka=ce.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:ue("No DIV or DIV id supplied: "+y),a.Ka===null&&ue("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&ue("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ce.ResizeObserver){var x=Wn(function(){a.$b()},250);a.ol=new ce.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ce.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=ce.go;var E=new dh(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",ce.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),uc(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new dh(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,qa){E=pi("div");var z=pi("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=ff,E.addEventListener("pointerdown",zd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Wn(function(){a.Yh=null,a.N()},300),a.Ov=Wn(function(){Od(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var rt=Rl(a,tt,!0);rt.bubbles=!0;var ot=0,lt=0;rt.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(ot=0<tt.deltaX?1:-1),tt.deltaY!==0&&(lt=0<tt.deltaY?1:-1),rt.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-ot:-lt):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(ot=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(lt=0<tt.wheelDeltaY?-1:1),rt.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-ot:-lt):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(rt.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),tu(rt,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,Rl(a,tt,!0),tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())},a.ui=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.Yt;rt[tt.pointerId]===void 0&&(rt[tt.pointerId]=tt),rt=a.oj;var ot=!1;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)if(rt[1]!==null&&rt[1].pointerId===tt.pointerId)rt[1]=tt,ot=!0;else if(rt[0]===null)rt[0]=tt;else if(rt[1]===null)rt[1]=tt,ot=!0;else{tt.preventDefault();return}else rt[0]=tt;(rt=tt.pointerType==="touch"||tt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var lt=ot;ot=Hd(a,tt,!0,!1,!0,lt),yd(a,tt,ot),ot.targetDiagram=sc(tt,tt.target),ot.targetObject=null,lt||ot.clone(a.bq),lt=a.uw,rt=rt?25:10,tt.timeStamp-a.tw<a.zy&&!(Math.abs(lt.x-tt.screenX)>rt||Math.abs(lt.y-tt.screenY)>rt)?a.yq++:a.yq=1,ot.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():tu(ot,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=a.oj;if(rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType){if(rt[1]!==null&&rt[1].pointerId===tt.pointerId){rt[1]=tt;return}if(rt[0]===null)rt[0]=tt;else return}else rt[0]=tt;if(rt[0].pointerId===tt.pointerId){rt=Hd(a,tt,!1,!1,!1,rt[1]!==null);var ot=ce.document.elementFromPoint(tt.clientX,tt.clientY)||null;ot!==null&&ot.shadowRoot!==void 0&&ot.shadowRoot!==null&&(ot=ot.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var lt=a,ut=tt;ot&&ot.H&&(ut=tt,lt=ot.H),rt.targetDiagram=lt,yd(a,ut,rt),rt.targetObject=null,a.doMouseMove(),tu(rt,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var rt=tt.pointerType==="touch"||tt.pointerType==="pen",ot=a.Yt;if(rt&&a.qu)delete ot[tt.pointerId],tt.preventDefault();else if(ot=a.oj,ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType)ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null);else{ot[0]=null,ot=Hd(a,tt,!1,!0,!0,!1);var lt=ce.document.elementFromPoint(tt.clientX,tt.clientY)||null;lt!==null&&lt.shadowRoot!==void 0&&lt.shadowRoot!==null&&(lt=lt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),lt!==null&&lt.H instanceof Ue&&lt.H!==a&&yd(lt.H,tt,ot),lt===null&&(lt=tt.target),yd(a,tt,ot),ot.clickCount=a.yq,ot.targetDiagram=sc(tt,lt),ot.targetObject=null,a.doMouseUp(),tu(ot,tt),rt&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var rt=a.Yt;rt[tt.pointerId]&&delete rt[tt.pointerId],rt=a.oj,rt[0]!==null&&rt[0].pointerId===tt.pointerId&&(rt[0]=null),rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var rt=a.oj;rt[0]!==null&&rt[0].pointerId===tt.pointerId?(rt[0]=null,a.wq=!1):rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null)},a.Vp=b.Z["d"+Jf[1]+Jf[2]+"wI"+wf.slice(1,5)]["b"+Tx.slice(1,y)](b.Z,Xf,y,y),b.Vc(!0),cf(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Ue.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Ue.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function cf(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(ce,"resize",a.Ov,!1)}function fl(a){30<a.Sq&&(a.Yh=1)}function id(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Di&&Di.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Ue.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:ce.devicePixelRatio||1},Ue.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Ue.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Ue.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Ue.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Ue.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Ue.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Ue.prototype.doFocus=function(){this.focus()},Ue.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=ce.scrollX||ce.pageXOffset,y=ce.scrollY||ce.pageYOffset;this.ta.focus(),ce.scrollTo(a,y)}},Ue.prototype.Oy=function(){this.H.R("GainedFocus")},Ue.prototype.Ny=function(){this.H.R("LostFocus")};function Od(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===kl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Id(a){var y=new Ea;y.name="Background",a.Al(y),y=new Ea,y.name="",a.Al(y),y=new Ea,y.name="Foreground",a.Al(y),y=new Ea,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Ea,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Ea,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Rd(a){var y=new Gn(Gn.Grid);y.name="GRID";var x=new Br;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Br,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Br,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Br,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Br,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Br,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ji,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function ff(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Hh(this.H)}function zd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Hh(this.H)}Ue.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,tt=b.x-z.left,rt=b.y-z.top,ot=b.width+z.left+z.right,lt=b.height+z.top+z.bottom,ut=b.right+z.right;z=b.bottom+z.bottom;var ft=E.x;b=E.y;var yt=E.width,Ct=E.height,bt=E.right,Dt=E.bottom;E=this.scale;var qt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":qt=qt+a.scrollWidth-a.clientWidth;break;case"reverse":qt=a.scrollWidth-qt-a.clientWidth}var Wt=qt;yt<ot||Ct<lt?(qt=Vt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Wt&&(qt.x=Wt/E+tt,this.ju=Wt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(qt.y=a.scrollTop/E+rt,this.lu=a.scrollTop),this.position=qt,Vt.free(qt),this.Ee=this.qr=!1):(qt=Vt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=qt.h(Wt+tt,this.position.y)),ut>bt&&(this.position=qt.h(-(y.scrollWidth-this.Aa)+Wt-this.Aa/E+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(rt<b&&(this.position=qt.h(this.position.x,a.scrollTop+rt)),z>Dt&&(this.position=qt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Vt.free(qt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ut=b.right,bt=E.right,z=b.bottom,Dt=E.bottom,tt=b.x,ft=E.x,rt=b.y,b=E.y,yt>=ot&&tt>=ft&&ut<=bt&&(x.style.width="1px"),Ct>=lt&&rt>=b&&z<=Dt&&(x.style.height="1px"))}},Ue.prototype.computeBounds=function(a){return a===void 0&&(a=new fn),Js(this),jd(this,a)};function jd(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var tt=b[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var rt=tt.length,ot=0;ot<rt;ot++){var lt=tt[ot];lt.isInDocumentBounds&&lt.isVisible()&&(lt=lt.actualBounds,lt.w()&&(x?(x=!1,y.assign(lt)):y.ed(lt)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Ue.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(pn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof $n||(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 $n||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new fn(NaN,NaN,0,0):x};function du(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=Vt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=fn.allocAt(0,0,b.width,b.height);var E=Vt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,fn.free(b),Vt.free(E),Vt.free(x)}x=a.yh,y&&a.Fg!==kl&&(x=a.Fg);var z=x!==kl?zh(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var tt=a.ya/z,rt=a.zk,ot=a.pq;y&&!rt.sb()&&(ot.sb()||ot.Xb())&&(rt=ot.Xb()?so:ot),zc(a,a.documentBounds,E,tt,rt,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Ae.B(z.x,x)&&Ae.B(z.y,b)&&Ae.B(z.width,E)&&Ae.B(z.height,tt)||a.onViewportBoundsChanged(new fn(x,b,E,tt),z,y,!1)}}function zh(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),rt=z/E,ot=tt/b;return y===Bu?(y=Math.min(ot,rt),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Zc?(y=ot>rt?(tt-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}Ue.prototype.zoomToFit=function(){var a=this.sj;this.sj=fc,this.scale=zh(this,Bu),a!==fc&&(du(this,!1),zc(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Et=Ue.prototype,Et.BA=function(a,y){y===void 0&&(y=Bu);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Bu||y===Zc)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Zc?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Vt(a.x,a.y)}},Et.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Vt(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))},Et.zz=function(a){if(a instanceof Le){this.eq=a;var y=Vt.alloc();this.fq=this.op(a.ga(Ls,y)),Vt.free(y)}else this.eq=null,this.fq=ya};function zc(a,y,x,b,E,z){var tt=Vt.allocAt(a.pa.x,a.pa.y),rt=tt.x,ot=tt.y;if(a.eq!==null){var lt=Vt.alloc();lt=a.eq.ga(Ls,lt),rt=lt.x-a.fq.x/a.scale,ot=lt.y-a.fq.y/a.scale,E=Ua,Vt.free(lt)}(z||a.scrollMode===fc)&&(E.sb()&&(x>y.width&&(rt=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(ot=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?(rt=Math.min(rt+x/2,y.right+Math.max(z,E.right)-x/2),rt=Math.max(rt,y.left-Math.max(z,E.left)+x/2),rt-=x/2):rt>y.left?rt=y.left:rt<y.right-x&&(rt=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(ot=Math.min(ot+b/2,y.bottom+Math.max(x,E.bottom)-b/2),ot=Math.max(ot,y.top-Math.max(x,E.top)+b/2),ot-=b/2):ot>y.top?ot=y.top:ot<y.bottom-b&&(ot=y.bottom-b)),tt.x=isFinite(rt)?rt:-a.yb.left,tt.y=isFinite(ot)?ot:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,tt),tt.x=y.x,tt.y=y.y),Os(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),bh(a),Vt.free(tt)}Et.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Vu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof ji)return a}else if(a=Vu(this,a,function(x){return x.part}),a instanceof ji)return a;return null},Et.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Js(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Vu(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Js(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}Et.lz=function(a,y,x){return y===void 0&&(y=!0),jh(this,a,function(b){return b.part},y?function(b){return b instanceof ji&&b.canSelect()}:null,x)};function jh(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof bn||E instanceof Mn||(E=new Mn),Js(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Et.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof bn||b instanceof Mn||(b=new Mn),Js(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Et.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),rd(this,a,function(E){return E instanceof ji&&(!x||E.canSelect())},y,b)},Et.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof bn||E instanceof Mn||(E=new Mn),Js(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,b,E)}return E},Et.Nu=function(a,y,x,b,E,z){var tt=new Mn;Js(this);for(var rt=this.Wa.iteratorBackwards;rt.next();){var ot=rt.value;ot.visible&&ot.Nu(a,y,x,b,tt,E,z)}return tt};function rd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof bn||E instanceof Mn||(E=new Mn),Js(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,b,E)}return E}Et.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),od(this,a,y,function(z){return z instanceof ji&&(!b||z.canSelect())},x,E)},Et.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof bn||E instanceof Mn)&&(z=E),E=!0),z instanceof bn||z instanceof Mn||(z=new Mn),Js(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var rt=tt.value;rt.visible&&rt.og(a,y,x,b,E,z)}return z};function od(a,y,x,b,E,z){var tt=null;for(tt===void 0&&(tt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof bn||E instanceof Mn)&&(z=E),E=!0),z instanceof bn||z instanceof Mn||(z=new Mn),Js(a),a=a.Wa.iteratorBackwards;a.next();){var rt=a.value;rt.visible&&!rt.isTemporary&&rt.og(y,x,tt,b,E,z)}return z}Ue.prototype.acceptEvent=function(a){return Rl(this,a,a instanceof MouseEvent)};function Rl(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?yd(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),Er&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=sc(y,y.target),b.targetObject=null,b}function sc(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Hd(a,y,x,b,E,z){var tt=a.Qg;return a.Qg=a.cj,a.cj=tt,tt.diagram=a,tt.clickCount=1,a=tt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),tt.modifiers=a,tt.event=y,tt.timestamp=y.timeStamp,tt.button=y.button,tt.buttons=y.buttons,Er&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=b,tt.handled=!1,tt.bubbles=E,tt.isMultiTouch=z,tt}function tu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Ue.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Rl(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(),tu(x,a)},Ue.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Rl(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(),tu(x,a)},Ue.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Rl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),tu(x,a)},Ue.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Rl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),tu(x,a)},Ue.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Vt(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?$r(new Vt(y,a),this.Ab):new Vt(y,a)};function yd(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,tt=0,rt=0;b!==null&&(b=b.getBoundingClientRect(),tt=y.clientX-E/b.width*b.left,rt=y.clientY-z/b.height*b.top),x.viewPoint.h(tt,rt),a.Ab!==null?(y=Vt.allocAt(tt,rt),a.Ab.Cd(y),x.documentPoint.assign(y),Vt.free(y)):x.documentPoint.h(tt,rt)}function Wd(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}Ue.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function lc(a){a.ld||Js(a),a.Va()}Ue.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Et=Ue.prototype,Et.Pz=function(){return this.kg},Et.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,xl(this),this.hf=!1,this.du=new Vt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Mi(function(){b.ld=!1,Oa(y,"Model"),a(b)},1)},Et.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;ce.requestAnimationFrame(function(){y.kg&&y.bd()})}},Et.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),xl(this))};function Ch(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Hh(a)||(y&&Js(a),x&&du(a,!1))}function xl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];Ns(rt,!1),rt.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(ot){ot.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Od(a),Ch(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(sh(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Js(a),z=!1,(!a.hf||a.xh)&&(a.hf?Hc(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Hc(a,!1)),z=!0),a.Jk=!1,Js(a),a.ou||lc(a),Ch(a,!0,!1),tt=!1,z?(x=fn.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Zd(a)),a.R("LayoutCompleted"),Ch(a,!0,!1),fn.free(x)):x.Ok&&x.Qw&&(a.Fg!==kl?a.scale=zh(a,a.Fg):a.yh!==kl?a.scale=zh(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),du(a,!0)),z&&tt&&a.eb("Initial Layout"),Js(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Zd(a){if(a.Fg!==kl)a.scale=zh(a,a.Fg);else if(a.yh!==kl)a.scale=zh(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}du(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),sh(a)}function Js(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Mn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Cr&&b.U&65536&&(b.U=b.U^65536)})}}Et.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Cr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Cr&&x.isVisible()&&Da(this,x);for(a.reset();a.next();)x=a.value,x instanceof $n&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Ao&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Da(a,y){for(var x=dn(),b=dn(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Cr?(Iu(z)||Hl(z)||Kc(z))&&Da(a,z):z instanceof $n?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(kn(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();kn(b)}Et.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Et.gc=function(a){if(this.Ka!==null){if(this.ta===null&&ue("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){fu(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,tt=Math.round(y.y*E)/E,rt=this.Ab;for(rt.reset(),E!==1&&rt.scale(E),y.x===0&&y.y===0||rt.translate(-z,-tt),a.ti=null,Xy(a,rt.m11,rt.m12,rt.m21,rt.m22,rt.dx,rt.dy),this.pb!==1&&(a.globalAlpha=this.pb),gl(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?Pf(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(kr.prototype.Cd=kr.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,fu(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(),tt=this.Mb,rt=this.pa;var ot=this.Ca,lt=Math.round(rt.x*ot)/ot,ut=Math.round(rt.y*ot)/ot;for(ot!==1&&z.scale(ot),rt.x===0&&rt.y===0||z.translate(-lt,-ut),a.setTransform(tt,0,0,tt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),gl(this,a),rt=0;rt<E;rt++)a.setTransform(tt,0,0,tt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[rt].gc(a,this);if(y=!1,this.Yf?Pf(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(kr.prototype.Cd=kr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Di&&Di.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 cs(a,y,x,b,E,z,tt,rt,ot,lt){if(a.Ka!==null){a.ta===null&&ue("No canvas specified"),tt===void 0&&(tt=null),rt===void 0&&(rt=null),ot===void 0&&(ot=!1),lt===void 0&&(lt=!1),fu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=E;var ft=a.Wa.s,yt=ft.length;try{var Ct=new fn(z.x,z.y,b.width/E,b.height/E),bt=Ct.copy();bt.Co(x),sh(a,bt),Js(a),a.Fd(ft,yt,a,Ct),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),rt!==null&&rt!==""&&(y.fillStyle=rt,y.ox(0,0,b.width,b.height));var Dt=a.Mb;y.scale(Dt,Dt);var qt=kr.alloc();qt.reset(),qt.translate(x.left,x.top),qt.scale(E),z.x===0&&z.y===0||qt.translate(-z.x,-z.y),y.setTransform(qt.m11,qt.m12,qt.m21,qt.m22,qt.dx,qt.dy),y.yc(),y instanceof Eu&&Xy(y,qt.m11,qt.m12,qt.m21,qt.m22,qt.dx,qt.dy),kr.free(qt),gl(a,y),y.globalAlpha=a.pb;var Wt=a.Qj("Grid");if(tt){var ae=new Mn,le=tt.iterator;for(le.reset();le.next();){var ge=le.value;ge instanceof ji&&(lt||ge.layer!==Wt)&&(ge.Gj(),ae.add(ge))}for(lt=0;lt<yt;lt++)Sl(ft[lt],y,a,ae,ot);ae.each(function(Je){return Je.Gj()})}else for(ae=0;ae<yt;ae++){var be=ft[ae];be===Wt?lt&&be.gc(y,a,!0):be.gc(y,a,ot)}a.$i=!1,a.Yf&&Pf(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,yt,a,a.viewportBounds),sh(a),a.ib instanceof Eu&&(a.ib.Nj.PA(),a.redraw())}}}Et.Gf=function(a){return this.Rg[a]},Et.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Et.Tx=function(){this.Rg=new Ki,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Er||qi),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function gl(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Et.Ql=function(a){return this.on[a]},Et.sA=function(a,y){this.on[a]=y},Et.Sx=function(){this.on=new Ki,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Et.set=function(a){return Object.assign(this,a),this},Et.Du=function(a){return this.nm(a)},Et.nm=function(a){return cu(this,a),this};function cu(a,y){var x=a instanceof Gn,b=a instanceof Ue,E;for(E in y){E===""&&ue("Setting properties requires non-empty property names");var z=a,tt=E;if(x||b){var rt=E.indexOf(".");if(0<rt){var ot=E.substring(0,rt);x?z=a.fb(ot):(z=a[ot],z==null&&(z=a.toolManager[ot])),Ge(z)?tt=E.substr(rt+1):ue("Unable to find object named: "+ot+" in "+a.toString()+" when trying to set property: "+E)}}if(tt[0]!=="_"&&!Jn(z,tt))if(b&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(b&&tt==="Changed"){a.Pe(y[tt]);continue}else if(b&&Jn(a.toolManager,tt))z=a.toolManager;else if(b&&$a(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof Ti&&tt==="Changed"){a.Pe(y[tt]);continue}else ue('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[E],tt[0]==="_"&&z instanceof Le&&z.Vw(tt)}}Et.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new ki,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Et.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")},Ue.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Uf&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=fn.alloc(),Kf(this,this.computeBounds(b)),fn.free(b)),b=this.ta,b===null||b instanceof sd)))){var tt=this.Mb;E=this.Aa*tt;var rt=this.ya*tt,ot=this.scale*tt;z=Math.round(Math.round(y.x*ot)-Math.round(a.x*ot)),y=Math.round(Math.round(y.y*ot)-Math.round(a.y*ot)),ot=this.jw,a=this.oy,ot.width!==E&&(ot.width=E),ot.height!==rt&&(ot.height=rt),a.clearRect(0,0,E,rt),ot=190*tt;var lt=70*tt,ut=Math.max(z,0),ft=Math.max(y,0),yt=Math.floor(E-ut),Ct=Math.floor(rt-ft);a.drawImage(b.Oa,ut,ft,yt,Ct,0,0,yt,Ct),Pf(this.Yf,this)&&a.clearRect(0,0,ot,lt),b=dn(),a=dn(),Ct=Math.abs(z),yt=Math.abs(y);var bt=ut===0?0:E-Ct;ut=Vt.allocAt(bt,0),Ct=Vt.allocAt(Ct+bt,rt),a.push(new fn(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y)));var Dt=this.Ab;if(Dt.reset(),Dt.scale(tt,tt),this.Ca!==1&&Dt.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&Dt.translate(-tt.x,-tt.y),$r(ut,Dt),$r(Ct,Dt),b.push(new fn(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),bt=ft===0?0:rt-yt,ut.h(0,bt),Ct.h(E,yt+bt),a.push(new fn(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),$r(ut,Dt),$r(Ct,Dt),b.push(new fn(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),Pf(this.Yf,this)&&(E=0<z?0:-z,rt=0<y?0:-y,ut.h(E,rt),Ct.h(ot+E,lt+rt),a.push(new fn(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y))),$r(ut,Dt),$r(Ct,Dt),b.push(new fn(Math.min(ut.x,Ct.x),Math.min(ut.y,Ct.y),Math.abs(ut.x-Ct.x),Math.abs(ut.y-Ct.y)))),Vt.free(ut),Vt.free(Ct),Ch(this,!1,!0),this.Ka===null&&ue("No div specified"),this.ta===null&&ue("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(fu(this),rt=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*rt,this.ya*rt),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,ot=Math.round(z.x*tt)/tt,lt=Math.round(z.y*tt)/tt,y=this.Ab,y.reset(),tt!==1&&y.scale(tt),z.x===0&&z.y===0||y.translate(-ot,-lt),E.save(),E.beginPath(),z=a.length,tt=0;tt<z;tt++)ot=a[tt],ot.width!==0&&ot.height!==0&&E.rect(Math.floor(ot.x),Math.floor(ot.y),Math.ceil(ot.width),Math.ceil(ot.height));for(E.clip(),E.setTransform(rt,0,0,rt,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),gl(this,E),E.globalAlpha=this.pb,rt=0;rt<z;rt++)if(tt=y[rt],ot=b,tt.visible&&tt.pb!==0){lt=Ws(tt,E),ft=tt.Zq,ft.length=0,ut=this.scale,yt=fn.alloc(),Ct=tt.Pa.s,Dt=Ct.length,bt=ot.length;for(var qt=0;qt<Dt;qt++){var Wt=Ct[qt],ae=kf(Wt,Wt.actualBounds);t:{for(var le=2/ut,ge=4/ut,be=0;be<bt;be++){var Je=ot[be];if(Je.width!==0&&Je.height!==0&&ae.Vu(Je.x-le,Je.y-le,Je.width+ge,Je.height+ge)){ae=!0;break t}}ae=!1}ae&&tt.Oj(E,Wt,this,ft,ut,yt,!0)}fn.free(yt),E.globalAlpha=lt}E.restore(),E.Vc(!0),this.Yf&&Pf(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}kn(b),kn(a),this.ld=!1}}else this.bd();x&&(fl(this),this.bd(),id(this,!0))}else x?(fl(this),this.bd(),id(this,!0)):this.bd()}};function fu(a){a.pn!==!1&&(a.pn=!1,uc(a,a.Aa,a.ya))}function uc(a,y,x){bh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Hh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,tt=a.gf?a.Db:0,rt=a.Be?a.Db:0,ot=E.clientWidth||x+tt,lt=E.clientHeight||b+rt,ut=a.viewportBounds;E=ut.x;var ft=ut.y,yt=ut.width,Ct=ut.height;if((ot!==x+tt||lt!==b+rt)&&(a.gf=!1,a.Be=!1,rt=tt=0,a.Aa=ot,a.ya=lt,z=a.pn=!0,bh(a)),!a.hf||!a.viewportBounds.w())return!0;var bt=a.ku,Dt=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var qt=a.documentBounds,Wt=0,ae=0,le=0,ge=0,be=ut.width,Je=ut.height,di=a.rj;a.contentAlignment.sb()?(qt.width>be&&(Wt=di.left,ae=di.right),qt.height>Je&&(le=di.top,ge=di.bottom)):(Wt=di.left,ae=di.right,le=di.top,ge=di.bottom);var Pi=qt.width+Wt+ae,yi=qt.height+le+ge;di=a.scale;var Qn=Pi>ot/di,Fn=yi>lt/di;if(!(z||a.gf||a.Be||Qn||Fn))return!0;Wt=qt.x-Wt,ot=ut.x,ae=qt.right+ae,lt=ut.right+tt,le=qt.y-le;var xr=ut.y;qt=qt.bottom+ge,ut=ut.bottom+rt;var gr="1px";if(ge="1px",a.scrollMode===fc&&(Qn||Fn)&&(Qn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Qn=1,Wt+1<ot&&(Qn=Math.max((ot-Wt)*di+a.Aa,Qn)),ae>lt+1&&(Qn=Math.max((ae-lt)*di+a.Aa,Qn)),be+tt+1<Pi&&(Qn=Math.max((Pi-be)*di+a.Aa,Qn)),gr=Qn.toString()+"px"),Fn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Qn=1,le+1<xr&&(Qn=Math.max((xr-le)*di+a.ya,Qn)),qt>ut+1&&(Qn=Math.max((qt-ut)*di+a.ya,Qn)),Je+rt+1<yi&&(Qn=Math.max((yi-Je)*di+a.ya,Qn)),ge=Qn.toString()+"px")),Qn=gr!=="1px",Fn=ge!=="1px",Qn&&Fn||!Qn&&!Fn||(Fn&&(lt-=a.Db),Qn&&(ut-=a.Db),Pi<be+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Wt+1<ot&&(tt=Math.max((ot-Wt)*di+a.Aa,tt)),ae>lt+1&&(tt=Math.max((ae-lt)*di+a.Aa,tt)),be+1<Pi&&(tt=Math.max((Pi-be)*di+a.Aa,tt)),gr=tt.toString()+"px"),Qn=gr!=="1px",tt=a.ya,Qn!==a.Be&&(tt=Qn?a.ya-a.Db:a.ya+a.Db),yi<Je+rt||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(rt=1,le+1<xr&&(rt=Math.max((xr-le)*di+tt,rt)),qt>ut+1&&(rt=Math.max((qt-ut)*di+tt,rt)),Je+1<yi&&(rt=Math.max((yi-Je)*di+tt,rt)),ge=rt.toString()+"px"),Fn=ge!=="1px"),a.qr&&Qn===a.Be&&Fn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Qn!==a.Be&&(gr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Qn,Dt.style.width=gr,Fn!==a.gf&&(ge==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(rt=Vt.alloc(),Fn?(y.style.left=a.Db+"px",a.position=rt.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=rt.h(a.pa.x-a.Db/a.scale,a.pa.y)),Vt.free(rt))),z&&bh(a),a.gf=Fn,Dt.style.height=ge,a.gu=!0,z&&(a.pn=!0),y=bt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(be+1<Pi?y=(a.position.x-Wt)*di:Wt+1<ot?y=bt.scrollWidth-bt.clientWidth:ae>lt+1&&(y=a.position.x*di)),a.tn)switch(a.bu){case"negative":y=-(bt.scrollWidth-y-bt.clientWidth);break;case"reverse":y=bt.scrollWidth-y-bt.clientWidth}return bt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Je+1<yi?bt.scrollTop=(a.position.y-le)*di:le+1<xr?bt.scrollTop=bt.scrollHeight-bt.clientHeight:qt>ut+1&&(bt.scrollTop=a.position.y*di)),ot=a.Aa,lt=a.ya,bt.style.width=ot+(a.gf?a.Db:0)+"px",bt.style.height=lt+(a.Be?a.Db:0)+"px",x!==ot||b!==lt||a.animationManager.zb?(x=fn.allocAt(E,ft,yt,Ct),a.onViewportBoundsChanged(x,a.viewportBounds,di,z),fn.free(x),!1):!0}Et=Ue.prototype,Et.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&ue("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&&ue('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(Xn,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Et.oi=function(a){this.partManager.oi(a);var y=this;Lf(a,function(x){dc(y,x)}),(a instanceof Ao||a instanceof Cr&&a.placeholder!==null)&&a.v(),a.data!==null&&Lf(a,function(x){sy(y.partManager,x)}),Hl(a)!==!0&&Kc(a)!==!0||this.De.add(a),RS(a,!0,this),jS(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},Et.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Lf(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),jS(a)?(a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(kf(a,a.actualBounds)),this.$b()},Et.remove=function(a){Gd(this,a,!0)};function Gd(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(hi,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Et.Is=function(a,y){if(y===void 0&&(y=!1),pn(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 Mn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Et.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Ue.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=gf(this)),this.toolManager!==null){var E=new ki;if(a!==null)if(pn(a))for(var z=0;z<a.length;z++)Tu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Tu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Tu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Tu(this,E,a.value,x,b);for(a=this.links;a.next();)Tu(this,E,a.value,x,b)}Yu(this,E,y,b,x)}};function Tu(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=gf(a)),x instanceof ci){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Cr&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Tu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var rt=tt.fromNode,ot=tt.toNode;rt!==null&&y.contains(rt)&&ot!==null&&y.contains(ot)&&Tu(a,y,tt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Tu(a,y,x.value,b,E)}else if(x instanceof $n)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Tu(a,y,x.value,b,E);else x instanceof Ao||y.add(x,a.Pd(E,x,x.location))}function Yu(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Vt.alloc(),tt=Vt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||hc(a,y);for(var rt=dn(),ot=dn(),lt=y.iterator,ut=Vt.alloc();lt.next();){var ft=lt.key,yt=lt.value;if(ft.Zc()){var Ct=mf(a,ft,y);Ct!==null?rt.push(new it(ft,yt,Ct)):(!E||ft.canMove())&&(Ct=yt.point,z.assign(Ct),a.computeMove(ft,z.add(tt),b,ut),ft.location=ut,yt.shifted===void 0&&(yt.shifted=new Vt),yt.shifted.assign(ut.re(Ct)))}else lt.key instanceof $n&&ot.push(lt.sa)}for(Vt.free(ut),E=rt.length,lt=0;lt<E;lt++)ft=rt[lt],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new Vt),ft.node.location=z.add(ft.Su.shifted);for(E=Vt.alloc(),lt=Vt.alloc(),ft=ot.length,yt=0;yt<ft;yt++){var bt=ot[yt];if(Ct=bt.key,Ct instanceof $n)if(Ct.suspendsRouting){Ct.Tg=null,ut=Ct.fromNode;var Dt=Ct.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Dt=bt.value.point,Ct.dragComputation===null)y.add(Ct,a.Pd(b,Ct,tt)),wc(Ct,tt.x-Dt.x,tt.y-Dt.y);else{bt=Vt.allocAt(0,0),(ut=Ct.i(0))&&ut.w()&&bt.assign(ut);var qt=ut=Vt.alloc().assign(bt).add(tt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(qt=Vt.alloc(),pf(a,Ct,ut,qt,b)),ut.assign(Ct.dragComputation(Ct,ut,qt)).re(bt),y.add(Ct,a.Pd(b,Ct,ut)),wc(Ct,ut.x-Dt.x,ut.y-Dt.y),Vt.free(bt),Vt.free(ut),qt!==ut&&Vt.free(qt)}else ut!==null&&(E.assign(ut.location),qt=y.I(ut),qt!==null&&E.re(qt.point)),Dt!==null&&(lt.assign(Dt.location),qt=y.I(Dt),qt!==null&&lt.re(qt.point)),ut!==null&&Dt!==null?E.Xa(lt)?(ut=bt.value.point,Dt=z,Dt.assign(E),Dt.re(ut),y.add(Ct,a.Pd(b,Ct,E)),wc(Ct,Dt.x,Dt.y)):(Ct.suspendsRouting=!1,Ct.bb()):(bt=bt.value.point,ut=ut!==null?E:Dt!==null?lt:tt,y.add(Ct,a.Pd(b,Ct,ut)),wc(Ct,ut.x-bt.x,ut.y-bt.y))}else(Ct.fromNode===null||Ct.toNode===null)&&(ut=bt.value.point,y.add(Ct,a.Pd(b,Ct,tt)),wc(Ct,tt.x-ut.x,tt.y-ut.y))}Vt.free(z),Vt.free(tt),Vt.free(E),Vt.free(lt),kn(rt),kn(ot),x||(Js(a),Du(a,y))}}Ue.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Vt),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Vt.alloc(),pf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var tt=a.minLocation,rt=tt.x;isNaN(rt)&&(rt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),tt=tt.y,isNaN(tt)&&(tt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var ot=a.maxLocation,lt=ot.x;return isNaN(lt)&&(lt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ot=ot.y,isNaN(ot)&&(ot=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(rt,Math.min(x.x,lt)),Math.max(tt,Math.min(x.y,ot))),E!==y&&Vt.free(E),b};function gf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function pf(a,y,x,b,E){if(E===void 0&&(E=gf(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var tt=E.gridSnapOrigin,rt=tt.x;if(tt=tt.y,E=E.gridSnapCellSpot,z!==null){var ot=z.gridCellSize;isNaN(a)&&(a=ot.width),isNaN(y)&&(y=ot.height),z=z.gridOrigin,isNaN(rt)&&(rt=z.x),isNaN(tt)&&(tt=z.y)}z=Vt.allocAt(0,0),z.yi(0,0,a,y,E),Ae.No(x.x,x.y,rt+z.x,tt+z.y,a,y,b),Vt.free(z)}}function hc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof $n&&(y.suspendsRouting=!0)}function Du(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof $n&&(x.suspendsRouting=!1,Uv(x)&&x.bb())}a.Mr=!1}}function mf(a,y,x){return y=y.containingGroup,y!==null&&(a=mf(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Et=Ue.prototype,Et.Pd=function(a,y,x){if(x===void 0)return new Kd(fo);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Kd(new Vt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Kd(x.copy())};function Wf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&ue("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&ue("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&ue("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&ue("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&&ue("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Et.Al=function(a){Wf(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(Xn,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Et.Ww=function(a,y){Wf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(hi,"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(Xn,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Et.Cy=function(a,y){Wf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(hi,"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(Xn,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Et.kA=function(a){if(a.diagram!==this&&ue("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(hi,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Et.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Et.Yw=function(a){return this.pf===null&&(this.pf=new bn),this.pf.add(a),this.model.Pe(a),this},Et.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Et.Pe=function(a){return this.zg===null&&(this.zg=new bn),this.zg.add(a),this},Et.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Et.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Sn&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Et.cb=function(a,y,x,b,E,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var rt=new vn;rt.diagram=this,rt.change=a,rt.propertyName=y,rt.object=x,rt.oldValue=b,rt.oldParam=z,rt.newValue=E,rt.newParam=tt,this.ds(rt)},Et.g=function(a,y,x,b,E){this.cb(jn,a,this,y,x,b,E)},Ue.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===jn){var E=a.object;if(La(E,a.propertyName,a.I(y)),E instanceof Le){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===Xn){var tt=a.object,rt=a.newParam,ot=a.newValue;if(tt instanceof Gn)if(typeof rt=="number"&&ot instanceof Le){y?tt.pc(rt):tt.Gb(rt,ot);var lt=tt.part;lt!==null&&lt.Wb()}else typeof rt=="number"&&ot instanceof Ts&&(ot.isRow?hS(tt,rt,y?void 0:ot):dS(tt,rt,y?void 0:ot));else if(tt instanceof Ea){var ut=a.oldParam===!0;typeof rt=="number"&&ot instanceof ji&&(y?(ot.isSelected=!1,ot.isHighlighted=!1,ot.Wb(),tt.pc(ut?rt:-1,ot,ut)):tt.oi(rt,ot,ut))}else tt instanceof Ue?typeof rt=="number"&&ot instanceof Ea&&(y?this.Wa.mb(rt):(ot.Xe(this),this.Wa.Gb(rt,ot))):ue("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===hi){var ft=a.object,yt=a.oldParam,Ct=a.oldValue;if(ft instanceof Gn)typeof yt=="number"&&Ct instanceof Le?y?ft.Gb(yt,Ct):ft.pc(yt):typeof yt=="number"&&Ct instanceof Ts&&(Ct.isRow?hS(ft,yt,y?Ct:void 0):dS(ft,yt,y?Ct:void 0));else if(ft instanceof Ea){var bt=a.newParam===!0;typeof yt=="number"&&Ct instanceof ji&&(y?0>ft.Pa.indexOf(Ct)&&ft.oi(yt,Ct,bt):(Ct.isSelected=!1,Ct.isHighlighted=!1,Ct.Wb(),ft.pc(bt?yt:-1,Ct,bt)))}else ft instanceof Ue?typeof yt=="number"&&Ct instanceof Ea&&(y?(Ct.Xe(this),this.Wa.Gb(yt,Ct)):this.Wa.mb(yt)):ue("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Sn&&ue("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Ue.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ue.prototype.eb=function(a){return this.undoManager.eb(a)},Ue.prototype.Kf=function(){return this.undoManager.Kf()},Ue.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}},Ue.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Ue.prototype.rp=function(){this.partManager.rp()};function vf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,bh(a),a.N(),a.Ee=!0,b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,bh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,rt=a.zoomPoint.x,ot=a.zoomPoint.y,lt=a.contentAlignment;isNaN(rt)&&(lt.$c()?lt.Hf(wu)?rt=0:lt.Hf(vl)&&(rt=z-1):rt=lt.sb()?lt.x*(z-1):z/2),isNaN(ot)&&(lt.$c()?lt.Hf(Wu)?ot=0:lt.Hf(Al)&&(ot=tt-1):ot=lt.sb()?lt.y*(tt-1):tt/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=Vt.allocAt(a.pa.x+rt/y-rt/x,a.pa.y+ot/y-ot/x),a.position=z,Vt.free(z),a.Ca=x,bh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),du(a,!1),b.zb&&(Bs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Ue.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!==kl||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof In&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Ei(E,this)),this.vb||this.invalidateViewport(a,y),sh(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 sh(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=ri.alloc(),E=1,z=1,tt=x.O.s,rt=tt.length,ot=0;ot<rt;ot++){var lt=tt[ot],ut=Math.abs(lt.interval);2>ut||(pv(lt.figure)?z=z*ut/Ae.vx(z,ut):E=E*ut/Ae.vx(E,ut))}if(tt=x.gridCellSize,b.h(z*tt.width,E*tt.height),y!==void 0)E=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=fn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){fn.free(y);return}E=y.width,z=y.height,a=y.x,tt=y.y,fn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Vt.alloc(),Ae.No(a,tt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),ri.free(b),x.part.location=y,Vt.free(y)}}Ue.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)}},Ue.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))},Ue.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),pn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof ji||ue("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof ji||ue("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Ue.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()}},Et=Ue.prototype,Et.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Et.Jz=function(a){a=new Mn().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof ji||ue("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Et.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Vt.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)),Vt.free(z);return}ue("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):ue("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Vt.free(z)},Et.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)},Et.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Et.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)},Et.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,tt=y.m11,rt=y.m12,ot=y.m21,lt=y.m22,ut=y.dx,ft=y.dy,yt=x*tt+b*ot+ut;y=x*rt+b*lt+ft;var Ct=E*tt+b*ot+ut;return a=E*rt+b*lt+ft,b=x*tt+z*ot+ut,x=x*rt+z*lt+ft,tt=E*tt+z*ot+ut,E=E*rt+z*lt+ft,z=Math.min(yt,Ct),yt=Math.max(yt,Ct),Ct=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),yt=Math.max(yt,b),Ct=Math.min(Ct,x),y=Math.max(y,x),z=Math.min(z,tt),yt=Math.max(yt,tt),Ct=Math.min(Ct,E),y=Math.max(y,E),new fn(z,Ct,yt-z,y-Ct)},Et.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),$r(a.copy(),this.Ab)};function Sg(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Zf(a){return a=Zh.get(a),a!==null?new a:new Ko}Ue.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Sn&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(ot){return ot.diagram=E}),a.mouseMoveTools.each(function(ot){return ot.diagram=E}),a.mouseUpTools.each(function(ot){return ot.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===Sn){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Js(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ho(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&(Sg(this),this.As.clear(),Ha(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var rt=this;Mi(function(){rt.currentTool.standardMouseOver(),rt.Rt=!1},10)}}}finally{this.aa=!0}}}};function dc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Sd(a,y[b])}function Sd(a,y){if(y instanceof ru){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Mn&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function Gf(a,y){if(y instanceof ru){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 Mn&&x.Bg.remove(a),Tg(b));break}}}}}Ue.prototype.Wd=function(){this.partManager.Wd()},Ue.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Ue.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Ue.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Ue.prototype.Vb=function(a){return this.partManager.Vb(a)},Ue.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Et=Ue.prototype,Et.Lc=function(a){return this.partManager.Lc(a)},Et.ii=function(a){return this.partManager.ii(a)},Et.Kc=function(a){return this.partManager.Kc(a)},Et.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:hr(mi(y)))},Et.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:hr(mi(y)))};function bh(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Kf(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),du(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Et.Va=function(){if(this.Zi){var a=fn.alloc();Kf(this,this.computeBounds(a)),fn.free(a)}},Et.rz=function(){for(var a=new Mn,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},Et.qz=function(){return this.ai.iterator},Et.Uz=function(a){Js(this),a&&jc(this,!0),this.ld?Hc(this,!1):(this.Jk=!0,xl(this))};function jc(a,y){for(var x=a.ai.iterator;x.next();)yf(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function yf(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)yf(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Hc(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Oa(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)Vf(a,tt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Js(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||ho(z),a.aa=x}}}function Vf(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Vf(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),Da(a,y),E.isValidLayout=!0):a.xh=!0)}}Et.yz=function(){for(var a=new bn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function sp(a){function y(E){var z=E.toLowerCase(),tt=new bn;x.add(E,tt),x.add(z,tt),b.add(E,E),b.add(z,E)}var x=new ki,b=new ki;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 $a(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Mo(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;ue("Unknown DiagramEvent name: "+y)}Et.Bj=function(a,y){return a=Mo(this,a),a!==null&&a.add(y),this},Et.am=function(a,y){a=Mo(this,a),a!==null&&a.remove(y)},Et.R=function(a,y,x){var b=Mo(this,a),E=new He;if(E.diagram=this,a=$a(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 Jo(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Et.Yj=function(a,y){return Ya(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Ue.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?jd(this,a):a.assign(this.documentBounds)};function Ya(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Op(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=Qs(a,x)),x===null){y=fn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,rt=tt.layer;rt!==null&&rt.visible&&!rt.isTemporary&&ad(a,tt,b,y)}fn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=fn.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof ci&&ad(a,tt,b,y);fn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&r1(E);return E}function Qs(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?Qs(a,y.containingGroup):null}function ad(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(zg(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Cc,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=Cc}else if(y instanceof Cr)for(y=y.memberParts;y.next();)E=y.value,E instanceof ci&&ad(a,E,x,b)}}function zl(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Ue.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Wh(this)};function Wh(a){a.vk===-1&&(a.vk=Mi(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=fn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Kf(a,y),fn.free(y),a.Fc=!0,a.bd(),Wh(a))}},a.vp))}Ue.prototype.ug=function(){this.vk!==-1&&(ce.clearTimeout(this.vk),this.vk=-1)},Ue.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=fn.allocAt(0,0,b.width*E,b.height*E);var z=Vt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<b.x+x.left/2&&(z.x-=tt),a.x<b.x+x.left/4&&(z.x-=4*tt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>b.x+b.width-x.right/2&&(z.x+=tt),a.x>b.x+b.width-x.right/4&&(z.x+=4*tt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<b.y+x.top/2&&(z.y-=tt),a.y<b.y+x.top/4&&(z.y-=4*tt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>b.y+b.height-x.bottom/2&&(z.y+=tt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(fo)||(y=new Vt(y.x+z.x/E,y.y+z.y/E)),fn.free(b),Vt.free(z),y},Et=Ue.prototype,Et.Cs=function(){return null},Et.av=function(){return null},Et.bs=function(a,y){this.pj.add(a,y)},Et.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Cr&&(y.$p=null)})};function lh(a,y,x){function b(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-lt>ot?y(x,E,rt):ce.requestAnimationFrame(b)}for(var E=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var rt=a,ot=x.callbackTimeout||300,lt=+new Date;return ce.requestAnimationFrame(function(){b()}),null}Et.Wz=function(a){return qa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Et.Jx=function(a){return a===void 0&&(a={}),lh(this,this.Xz,a)},Et.Xz=function(a,y,x){var b=cc(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case wf+"data":E=b.getImageData(0,0,x.width,x.height);break;case wf:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&ue('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function cc(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&ue("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 tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new ri(1/0,1/0):new ri(2e3,2e3));var rt=y.position||null,ot=y.parts||null,lt=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var yt=y.document||document,Ct=y.elementFinished||null,bt=y.showTemporary;bt===void 0&&(bt=!ft),y=y.showGrid,y===void 0&&(y=bt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof lt=="number"?lt=new zi(lt):lt instanceof zi||ue("MakeImage padding must be a Margin or a number."),lt.left=Math.max(lt.left,0),lt.right=Math.max(lt.right,0),lt.top=Math.max(lt.top,0),lt.bottom=Math.max(lt.bottom,0),a.ib.Vc(!0),ft=new dh(null,yt,void 0,!0);var Dt=ft.context;if(!(E||z||ot||rt))return ft.width=a.Aa+Math.ceil(lt.left+lt.right),ft.height=a.ya+Math.ceil(lt.top+lt.bottom),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=yt,b.hs=Ct,cs(a,b.context,lt,new ri(ft.width,ft.height),a.Ca,a.pa,ot,ut,bt,y),b.context):(a.Xm=!1,cs(a,Dt,lt,new ri(ft.width,ft.height),a.Ca,a.pa,ot,ut,bt,y),a.Xm=!0,ft.context);var qt=a.Pp,Wt=a.documentBounds.copy();if(Wt.Fv(a.yb),bt)for(var ae=a.Wa.s,le=ae.length,ge=0;ge<le;ge++){var be=ae[ge];if(be.visible&&be.isTemporary){be=be.Pa.s;for(var Je=be.length,di=0;di<Je;di++){var Pi=be[di];Pi.isInDocumentBounds&&Pi.isVisible()&&(Pi=Pi.actualBounds,Pi.w()&&Wt.ed(Pi))}}}if(ae=new Vt(Wt.x,Wt.y),ot!==null){for(le=new fn(0,0,0,0),ge=!0,be=ot.iterator,be.reset();be.next();)Je=be.value,Je instanceof ji&&(di=Je.layer,di!==null&&!di.visible||di!==null&&!bt&&di.isTemporary||!Je.isVisible()||(Je=Je.actualBounds,Je.w()&&(ge?(ge=!1,le.assign(Je)):le.ed(Je))));Wt.width=le.width,Wt.height=le.height,ae.x=le.x,ae.y=le.y}return rt!==null&&rt.w()&&(ae=rt,z||(z=qt)),le=rt=0,lt!==null&&(rt=lt.left+lt.right,le=lt.top+lt.bottom),ge=be=0,E!==null&&(be=E.width,ge=E.height,isFinite(be)&&(be=Math.max(0,be-rt)),isFinite(ge)&&(ge=Math.max(0,ge-le))),E!==null&&z!==null?(z==="NaN"&&(z=qt),E.w()?(E=be,Wt=ge):isNaN(ge)?(E=be,Wt=Wt.height*z):(E=Wt.width*z,Wt=ge)):E!==null?E.w()?(z=Math.min(be/Wt.width,ge/Wt.height),E=be,Wt=ge):isNaN(ge)?(z=be/Wt.width,E=be,Wt=Wt.height*z):(z=ge/Wt.height,E=Wt.width*z,Wt=ge):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-rt)/Wt.width,(tt.height-le)/Wt.height),z>qt?(z=qt,E=Wt.width,Wt=Wt.height):(E=tt.width,Wt=tt.height)):(E=Wt.width*z,Wt=Wt.height*z):(z=qt,E=Wt.width,Wt=Wt.height),lt!==null?(E+=rt,Wt+=le):lt=new zi(0),tt!==null&&(qt=tt.width,tt=tt.height,isNaN(qt)&&(qt=2e3),isNaN(tt)&&(tt=2e3),isFinite(qt)&&(E=Math.min(E,qt)),isFinite(tt)&&(Wt=Math.min(Wt,tt))),ft.width=Math.ceil(E),ft.height=Math.ceil(Wt),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=yt,b.hs=Ct,cs(a,b.context,lt,new ri(Math.ceil(E),Math.ceil(Wt)),z,ae,ot,ut,bt,y),b.context):(a.Xm=!1,cs(a,Dt,lt,new ri(Math.ceil(E),Math.ceil(Wt)),z,ae,ot,ut,bt,y),a.Xm=!0,ft.context)}Jt.Object.defineProperties(Ue.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new sd(this,ce.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new sd(this,ce.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(ce,"resize",this.Ov,!1),this.removeEventListener(ce,"wheel",this.$j,!0),ah===this&&(ah=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Ph(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&ui(a,"0 <= value <= 1",Ue,"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),du(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),du(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),du(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),du(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&ui(a,">= 0",Ue,"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&&ui(a,">= 0",Ue,"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 ui(a,">= 0",Ue,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||Sg(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&ue("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=vd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Oa(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Zf(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(ce,"pointermove",this.dk,!0),this.addEventListener(ce,"pointerdown",this.ui,!0),this.addEventListener(ce,"pointerup",this.fk,!0),this.addEventListener(ce,"pointerout",this.ek,!0),this.addEventListener(ce,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(ce,"wheel",this.$j,!0),this.addEventListener(ce,"selectstart",this.preventDefault,!1)):(this.removeEventListener(ce,"pointermove",this.dk,!0),this.removeEventListener(ce,"pointerdown",this.ui,!0),this.removeEventListener(ce,"pointerup",this.fk,!0),this.removeEventListener(ce,"pointerout",this.ek,!0),this.removeEventListener(ce,"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(ce,"wheel",this.$j,!0),this.removeEventListener(ce,"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=Vt.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Os(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?bh(this):(this.vb=!0,a=this.scale,zc(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Vt.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=Rd(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Rd(this)),a.type!==Gn.Grid&&ue("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),sh(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),bh(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||ue("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 zi(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===fc&&du(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,du(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,vf(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&vf(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==kl&&du(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()||ue("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()||ue("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)):ui(a,"> 0",Ue,"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)):ui(a,"> 0",Ue,"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),du(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 zi(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&&ue("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)Ep(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==gc&&a!==Fs&&a!==xg&&ue("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 ri(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 zi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Jt.Object.defineProperties(Ue,{licenseKey:{get:function(){return fp.jc()},set:function(a){fp.add(a.replace(/\s/g,""))}},version:{get:function(){return xf}}}),Ue.prototype.makeImageData=Ue.prototype.Jx,Ue.prototype.makeImage=Ue.prototype.Wz,Ue.prototype.cacheGroupExternalLinks=Ue.prototype.Fu,Ue.prototype.addRenderer=Ue.prototype.bs,Ue.prototype.makeSVG=Ue.prototype.av,Ue.prototype.makeSvg=Ue.prototype.Cs,Ue.prototype.stopAutoScroll=Ue.prototype.ug,Ue.prototype.doAutoScroll=Ue.prototype.gs,Ue.prototype.isUnoccupied=Ue.prototype.Yj,Ue.prototype.raiseDiagramEvent=Ue.prototype.R,Ue.prototype.removeDiagramListener=Ue.prototype.am,Ue.prototype.addDiagramListener=Ue.prototype.Bj,Ue.prototype.findTreeRoots=Ue.prototype.yz,Ue.prototype.layoutDiagram=Ue.prototype.Uz,Ue.prototype.findTopLevelGroups=Ue.prototype.qz,Ue.prototype.findTopLevelNodesAndLinks=Ue.prototype.rz,Ue.prototype.ensureBounds=Ue.prototype.Va,Ue.prototype.findLinksByExample=Ue.prototype.ls,Ue.prototype.findNodesByExample=Ue.prototype.ms,Ue.prototype.findLinkForData=Ue.prototype.Kc,Ue.prototype.findNodeForData=Ue.prototype.ii,Ue.prototype.findPartForData=Ue.prototype.Lc,Ue.prototype.findLinkForKey=Ue.prototype.findLinkForKey,Ue.prototype.findNodeForKey=Ue.prototype.Vb,Ue.prototype.findPartForKey=Ue.prototype.findPartForKey,Ue.prototype.rebuildParts=Ue.prototype.Wd,Ue.prototype.transformViewToDoc=Ue.prototype.Ps,Ue.prototype.transformRectDocToView=Ue.prototype.zA,Ue.prototype.transformDocToView=Ue.prototype.op,Ue.prototype.centerRect=Ue.prototype.es,Ue.prototype.scrollToRect=Ue.prototype.tv,Ue.prototype.scroll=Ue.prototype.scroll,Ue.prototype.highlightCollection=Ue.prototype.Jz,Ue.prototype.highlight=Ue.prototype.Iz,Ue.prototype.selectCollection=Ue.prototype.rA,Ue.prototype.select=Ue.prototype.select,Ue.prototype.updateAllRelationshipsFromData=Ue.prototype.rp,Ue.prototype.updateAllTargetBindings=Ue.prototype.updateAllTargetBindings,Ue.prototype.commit=Ue.prototype.commit,Ue.prototype.rollbackTransaction=Ue.prototype.Kf,Ue.prototype.commitTransaction=Ue.prototype.eb,Ue.prototype.startTransaction=Ue.prototype.Ea,Ue.prototype.raiseChanged=Ue.prototype.g,Ue.prototype.raiseChangedEvent=Ue.prototype.cb,Ue.prototype.removeChangedListener=Ue.prototype.ik,Ue.prototype.addChangedListener=Ue.prototype.Pe,Ue.prototype.removeModelChangedListener=Ue.prototype.mA,Ue.prototype.addModelChangedListener=Ue.prototype.Yw,Ue.prototype.findLayer=Ue.prototype.Qj,Ue.prototype.removeLayer=Ue.prototype.kA,Ue.prototype.addLayerAfter=Ue.prototype.Cy,Ue.prototype.addLayerBefore=Ue.prototype.Ww,Ue.prototype.addLayer=Ue.prototype.Al,Ue.prototype.moveParts=Ue.prototype.moveParts,Ue.prototype.copyParts=Ue.prototype.Kj,Ue.prototype.removeParts=Ue.prototype.Is,Ue.prototype.remove=Ue.prototype.remove,Ue.prototype.add=Ue.prototype.add,Ue.prototype.clearDelayedGeometries=Ue.prototype.bx,Ue.prototype.setProperties=Ue.prototype.nm,Ue.prototype.attach=Ue.prototype.Du,Ue.prototype.set=Ue.prototype.set,Ue.prototype.resetInputOptions=Ue.prototype.Sx,Ue.prototype.setInputOption=Ue.prototype.sA,Ue.prototype.getInputOption=Ue.prototype.Ql,Ue.prototype.resetRenderingHints=Ue.prototype.Tx,Ue.prototype.setRenderingHint=Ue.prototype.Xx,Ue.prototype.getRenderingHint=Ue.prototype.Gf,Ue.prototype.maybeUpdate=Ue.prototype.bd,Ue.prototype.requestUpdate=Ue.prototype.$b,Ue.prototype.delayInitialization=Ue.prototype.Xy,Ue.prototype.isUpdateRequested=Ue.prototype.Pz,Ue.prototype.invalidateDocumentBounds=Ue.prototype.Ya,Ue.prototype.findObjectsNear=Ue.prototype.og,Ue.prototype.findPartsNear=Ue.prototype.mz,Ue.prototype.findObjectsIn=Ue.prototype.Cf,Ue.prototype.findPartsIn=Ue.prototype.ux,Ue.prototype.findObjectsAt=Ue.prototype.ji,Ue.prototype.findPartsAt=Ue.prototype.lz,Ue.prototype.findObjectAt=Ue.prototype.ic,Ue.prototype.findPartAt=Ue.prototype.Ol,Ue.prototype.focusObject=Ue.prototype.zz,Ue.prototype.alignDocument=Ue.prototype.Jy,Ue.prototype.zoomToRect=Ue.prototype.BA,Ue.prototype.zoomToFit=Ue.prototype.zoomToFit,Ue.prototype.diagramScroll=Ue.prototype.kx,Ue.prototype.focus=Ue.prototype.focus;var Zh=new ki,uh=null,qa=ce.document!==void 0,Sf=null,Wc="",kl=new sn(Ue,"None",0),Bu=new sn(Ue,"Uniform",1),Zc=new sn(Ue,"UniformToFill",2),Yf=new sn(Ue,"CycleAll",10),lp=new sn(Ue,"CycleNotDirected",11),up=new sn(Ue,"CycleNotDirectedFast",12),hp=new sn(Ue,"CycleNotUndirected",13),dp=new sn(Ue,"CycleDestinationTree",14),cp=new sn(Ue,"CycleSourceTree",15),fc=new sn(Ue,"DocumentScroll",1),Uf=new sn(Ue,"InfiniteScroll",2),gc=new sn(Ue,"TreeParentCollapsed",21),Fs=new sn(Ue,"AllParentsCollapsed",22),xg=new sn(Ue,"AnyParentsCollapsed",23),fp=new bn,xf="2.3.10",wf="image",Xf=null,dm=!1;function wl(){if(qa){var a=ce.document.createElement("canvas"),y=a.getContext("2d"),x=en("7ca11abfd022028846");y[x]=en("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",mn.Dx+"4ae6247590da4bb21c324ba3a84e385776",kr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ae.za],E=1;5>E;E++)y[en("7ca11abfd7330390")](en(b[E-1]),10,15*E);for(y[x]=en("39f046ebb36e4b"),x=1;5>x;x++)y[en("7ca11abfd7330390")](en(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(kr.prototype.Cd=kr.prototype.Eu),Xf=a}}Ue.className="Diagram",Ue.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ce.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Ue?y.H:null},Ue.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},Ue.useDOM=function(a){qa=a?ce.document!==void 0:!1},Ue.isUsingDOM=function(){return qa},Ue.None=kl,Ue.Uniform=Bu,Ue.UniformToFill=Zc,Ue.CycleAll=Yf,Ue.CycleNotDirected=lp,Ue.CycleNotDirectedFast=up,Ue.CycleNotUndirected=hp,Ue.CycleDestinationTree=dp,Ue.CycleSourceTree=cp,Ue.DocumentScroll=fc,Ue.InfiniteScroll=Uf,Ue.TreeParentCollapsed=gc,Ue.AllParentsCollapsed=Fs,Ue.AnyParentsCollapsed=xg;function cm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Pf(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=ce[en("76a715b2f73f148a")][en("72ba13b5")]||"";if(a.Rc=!0,qa){var b=Ue[en("76a115b6ed251eaf4692")];if(b)for(var E=fp.iterator;E.next()&&(b=E.value,b=en(b).split(en("39e9")),!(6>b.length));){var z=en(b[1]).split(".");if(b[4]!=="7da71ca0")break;var tt=en(mn[en("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var rt=ce[en("74a900bae4370f8b51")][en("6fbb13a1c2311e8a57")].toLowerCase();if(tt=rt[en("73a612b6fb191d")](en("3aad1ab6e022098b4dc4")),z=en(b[2]),-1<tt&&(rt=rt[en("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<rt&&rt<tt),!a.Rc))break;for(tt=x[en("76ad18b4f73e")],rt=x[en("73a612b6fb191d")](en("35e7"))+2;rt<tt;rt++)y+=x[rt];if(tt=y[en("73a612b6fb191d")](z),0>tt&&z!==en("7da71ca0ad381e90")&&(tt=y[en("73a612b6fb191d")](en("76a715b2ef3e149757"))),0>tt&&(tt=y[en("73a612b6fb191d")](en("76a715b2ef3e149757"))),0>tt&&(tt=y[en("73a612b6fb191d")](en("2bfa41fdb3784bca12"))),0>tt&&(tt=x[en("73a612b6fb191d")](en("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[en("73a612b6fb191d")](en("35"))||y[en("73a612b6fb191d")](en("35"))===-1),!a.Rc||x[en("73a612b6fb191d")](en("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[en("73a612b6fb191d")](z)),!a.Rc)||(tt=ce[en("76a715b2f73f148a")][en("69ad17a1e03e")],rt=tt[en("73a612b6fb191d")](en("7fb002b6ed25128b4da25b2e")),-1<rt&&(a.Rc=!(tt[en("73a612b6fb191d")](z)>rt),!a.Rc)))break;if(z[0]==="#"){tt=ce.document.createElement("div");for(var ot=b[0].replace(/[A-Za-z]/g,"");4>ot.length;)ot+="9";if(rt=ot,ot=ot.substr(ot.length-4),b="",b+=["gsh","gsf"][parseInt(ot.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(ot.substr(0,1),10)%4],tt[en("79a417a0f0181a8946")]=b,ce.document[en("78a712aa")]){ce.document[en("78a712aa")][en("7bb806b6ed32388c4a875b")](tt),ot=ce.getComputedStyle(tt).getPropertyValue(en("78a704b7e62456904c9b12701b6532a8"));var lt=ce.getComputedStyle(tt).getPropertyValue(en("75b817b0ea2202"));if(ce.document[en("78a712aa")][en("68ad1bbcf533388c4a875b")](tt),ot){if(tt=ce[en("77a902b0eb1b1e804a8a")],lt==="0."+parseInt(rt,10)%100||ot.indexOf(parseInt(z[1]+z[2],16))!==-1&&ot.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(en("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(b===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[en("76ad18b4f73e")],E=x[en("73a612b6fb191d")](en("35e7"))+2;E<ut;E++)y+=x[E];x=y[en("73a612b6fb191d")](en("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[en("73a612b6fb191d")](en("35")))}}}return 0<a.Rc&&a!==a.wy}cm.className="DiagramHelper";function Kd(a){this.j=a===void 0?new Vt:a,this.o=new Vt}Jt.Object.defineProperties(Kd.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Jf="DraggingInfo";Kd.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function at(){this.reset()}at.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new ri(NaN,NaN).freeze(),this.gridSnapCellSpot=Ls,this.gridSnapOrigin=new Vt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},at.className="DraggingOptions";function ct(a,y){if(typeof a=="string"||ce.Element&&a instanceof Element)var x=Ue.call(this,a)||this;else x=Ue.call(this)||this,y=a;return dt(x),y&&x.nm(y),x}Qe(ct,Ue);function dt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Ql,a.layout=new rl}ct.prototype.reset=function(){Ue.prototype.reset.call(this),dt(this)},ct.className="Palette";function pt(a,y){if(typeof a=="string"||ce.Element&&a instanceof Element)var x=Ue.call(this,a)||this;else x=Ue.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new ji;var E=new Br;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 zi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new _t,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var tt=z.viewportBounds,rt=b.lastInput.documentPoint;z.position=new Vt(rt.x-tt.width/2,rt.y-tt.height/2)}},x.Pf=function(){b.Ya(),Rt(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&&Rt(b)},x.autoScale=Bu,x.vb=!1,y&&Object.assign(x,y),x}Qe(pt,Ue),pt.prototype.computePixelRatio=function(){return 1},pt.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(fu(this),this.ql===null){var x=new dh(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),Mt(this)}finally{this.ta=a,this.ib=y}}}Ue.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&ue("No div specified"),this.ta===null&&ue("No canvas specified"),!(this.ta instanceof sd)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){fu(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?Mt(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 Mt(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=fn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),sh(y,E),fn.free(E),Js(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var rt=y[tt],ot=a;if(rt.visible&&rt.opacity!==0){var lt=rt.diagram.grid.part;if(!x&&rt.isTemporary)b&&lt.layer===rt&&(rt=Ws(rt,E),lt.gc(E,ot),E.globalAlpha=rt);else{for(var ut=Ws(rt,E),ft=ot.scale,yt=fn.alloc(),Ct=rt.Pa.s,bt=Ct.length,Dt=0;Dt<bt;Dt++){var qt=Ct[Dt];(b||qt!==lt)&&rt.Oj(E,qt,ot,null,ft,yt,!1)}fn.free(yt),E.globalAlpha=ut}}}}}function Rt(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=ri.alloc();E.h(x.width,x.height),b.desiredSize=E,ri.free(E),a=2/a.scale,b instanceof Br&&(b.strokeWidth=a),y.location=new Vt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Yr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Rt(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))},Jt.Object.defineProperties(pt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pt&&ue("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),Rt(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),Rt(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)}}}),pt.className="Overview";function _t(){Ri.call(this),this.j=null}Qe(_t,Ri),_t.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 Vt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Vt(a.x-this.j.x,a.y-this.j.y)),!0)},_t.prototype.doActivate=function(){this.j=null,Ri.prototype.doActivate.call(this)},_t.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},_t.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 Vt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Vt(a.x-this.j.x,a.y-this.j.y)}}},_t.className="OverviewDraggingTool";function $t(){Or(this),this.H=ah,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=Yr,this.hb=!0,this.cg=null,this.ob=200}$t.prototype.toString=function(){return"CommandHandler"},$t.prototype.Xe=function(a){this.H=a},$t.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Er?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()},$t.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},$t.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof In&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},$t.prototype.canStopCommand=function(){return!0},$t.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=""}},$t.prototype.canSelectAll=function(){return this.diagram.allowSelect},$t.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 Mn,x=a.selection.iterator;x.next();)Yc(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},$t.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},$t.prototype.copySelection=function(){var a=this.diagram,y=new Mn;for(a=a.selection.iterator;a.next();)Yc(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},$t.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},$t.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},$t.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},$t.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Sf=null,Wc="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new bn,x.addAll(z),Sf=x,Wc=y.model.dataFormat}}y.R("ClipboardChanged",x)},$t.prototype.pasteFromClipboard=function(){var a=new Mn,y=Sf;if(y===null)return a;var x=this.diagram;if(Wc!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,tt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=tt.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},$t.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);Yu(y,z,new Vt(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=""}},$t.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Sf===null||Sf.count===0||Wc!==a.model.dataFormat)},$t.prototype.undo=function(){this.diagram.undoManager.undo()},$t.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},$t.prototype.redo=function(){this.diagram.undoManager.redo()},$t.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},$t.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===kl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},$t.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==kl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},$t.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===kl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},$t.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==kl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},$t.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},$t.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},$t.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Oa(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=Yr):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),ho(y)},$t.prototype.canZoomToFit=function(){return this.diagram.allowZoom},$t.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(ot){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;Oa(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=ve(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 ot=E.pop();0<E.length&&ot instanceof ci&&ot.isTreeExpanded&&(!(ot instanceof Cr)||ot.isSubGraphExpanded);)ot=E.pop();0<E.length?(ot instanceof ji&&y.tv(ot.actualBounds),ot instanceof ci&&!ot.isTreeExpanded&&(ot.isTreeExpanded=!0),ot instanceof Cr&&!ot.isSubGraphExpanded&&(ot.isSubGraphExpanded=!0)):(ot instanceof ji&&y.es(ot.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){Mi(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",tt),z()}}else{var rt=y.position.copy();y.es(a.actualBounds),rt.Xa(y.position)&&x.Cc()}}};function ve(a,y,x){if(y.isVisible())return x;if(y instanceof Ao)ve(a,y.adornedPart,x);else if(y instanceof $n){var b=y.fromNode;b!==null&&ve(a,b,x),y=y.toNode,y!==null&&ve(a,y,x)}else y instanceof ci&&(b=y.labeledLink,b!==null&&ve(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),ve(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),ve(a,y,x));return x}$t.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof ji)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},$t.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Oa(y.animationManager,"Collapse Tree");var x=new bn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ci&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},$t.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ci&&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 ci&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},$t.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Oa(y.animationManager,"Expand Tree");var x=new bn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof ci&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},$t.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ci)||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 ci&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},$t.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new bn,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&E.add(tt)}for(var rt=new bn,ot=E.iterator;ot.next();){var lt=ot.value;z=!1;for(var ut=E.iterator;ut.next();)if(lt.Td(ut.value)){z=!0;break}z||rt.add(lt)}if(0<rt.count){var ft=rt.first().containingGroup;if(ft!==null)for(;ft!==null;){E=!1;for(var yt=rt.iterator;yt.next();)if(!yt.value.Td(ft)){E=!0;break}if(E)ft=ft.containingGroup;else break}if(x instanceof Cr)ch(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Ct=y.copyNodeData(x);Ge(Ct)&&(y.xf(Ct),b=a.ii(Ct))}if(b!==null){ft!==null&&this.isValidMember(ft,b)&&(b.containingGroup=ft);for(var bt=rt.iterator;bt.next();){var Dt=bt.value;this.isValidMember(b,Dt)&&(Dt.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},$t.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 ln(a){var y=dn();for(a=a.iterator;a.next();){var x=a.value;x instanceof $n||y.push(x)}a=new Mn,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,tt=0;tt<x;tt++)if(E.Td(y[tt])){z=!1;break}z&&a.add(E)}return kn(y),a}$t.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof $n)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},$t.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new bn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Cr&&z.canUngroup()&&b.add(z)}var tt=new bn;if(0<b.count){y.clearSelection(!0);for(var rt=b.iterator;rt.next();){var ot=rt.value;ot.expandSubGraph();var lt=ot.containingGroup,ut=lt!==null&&lt.data!==null?x.wa(lt.data):void 0;tt.addAll(ot.memberParts);for(var ft=tt.iterator;ft.next();){var yt=ft.value;if(yt.isSelected=!0,!(yt instanceof $n)){var Ct=yt.data;Ct!==null?x.mp(Ct,ut):yt.containingGroup=lt}}y.remove(ot)}}y.R("SelectionUngrouped",b,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},$t.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 Cr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Cr&&y.canUngroup())return!0;return!1},$t.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=ln(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},$t.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Oa(y.animationManager,"Collapse SubGraph");var x=new bn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Cr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},$t.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Cr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Cr&&y.isSubGraphExpanded)return!0;return!1},$t.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Oa(y.animationManager,"Expand SubGraph");var x=new bn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Cr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},$t.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Cr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Cr&&!y.isSubGraphExpanded)return!0;return!1},$t.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 la&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},$t.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 la))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 la&&x.editable}),a!==null))return!0;return!1},$t.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 Le?E=a.ga(so):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Vt(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,Ro(x,!1,a)}},$t.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)},$t.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 ki,a===null)return b;for(var z=a.iterator;z.next();)Tu(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 $n&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Jt.Object.defineProperties($t.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||ue("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}}}),$t.className="CommandHandler",Rh=function(){return new $t};function Le(){Or(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Vt(NaN,NaN).freeze(),this.jd=Ga,this.Ab=new kr,this.wh=new kr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=dl,this.uc=new fn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new fn(NaN,NaN,NaN,NaN).freeze(),this.dc=new fn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Bo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var zn,Dn,Ni,Bi,$i,br,io,Vr,So,Qo;Le.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=je(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Le.prototype.Vw=function(a){var y=this.Dh;if(pn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Le.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Le.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},Le.prototype.copy=function(){return this.clone()},Et=Le.prototype,Et.qb=function(a){a.classType===$n?a.name.indexOf("Orient")===0?this.segmentOrientation=a:ue("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Le&&(this.stretch=a)},Et.toString=function(){return Ln(this.constructor)+"#"+bo(this)},Et.th=function(){this.A!==null&&(this.A.nc=!0)};function Hr(a){a.A===null?a.A=new $f:a.A.nc&&(a.A=a.A.copy())}Et.Xc=function(){if(this.ba===null){var a=new gp;a.Xi=Ua,a.yj=Ua,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Et.cb=function(a,y,x,b,E,z,tt){var rt=this.part;if(rt!==null&&(rt.gk(a,y,x,b,E,z,tt),x===this&&a===jn&&hl(this)&&pa(this,rt,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 ki),tt=z.undoManager.transactionLevel===0,a.startCondition===Hs?tt=!0:a.startCondition===rs&&(tt=!1),tt?(z=new Wa,ba(a,z),tt=this.jo.get(a),tt!==null&&tt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Oa(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Gn&&x===rt&&(rt.l&16777216)!==0&&rt.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)rt=x[E],rt instanceof Gn&&Lf(rt,function(ot){ot.data!==null&&ot.l&16777216&&ot.La(y)})};function pa(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,tt=null;if(z.sourceName!==null){if(tt=L1(z,b,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,rt.model.modelData,x,b)}else{if(rt=b.data,rt===null)continue;var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,rt,x,b)}tt===a&&(rt=b.ks(z.Ai),rt!==null&&z.Mv(rt,tt,x))}}Et.ks=function(a){return this.bindingId===a?this:null},Et.g=function(a,y,x){this.cb(jn,a,this,y,x)},Et.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 kr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Zs(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Et.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Zo(a.x,a.y,0,0,0,b.height)<=y||Zo(a.x,a.y,0,b.height,b.width,b.height)<=y||Zo(a.x,a.y,b.width,b.height,b.width,0)<=y||Zo(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},Et.se=function(){return!0},Et.ca=function(a){var y=Vt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Vt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),tt=z/2,rt=this.naturalBounds;b=this.Df()*b.scale;var ot=1/b;if(rt.width*b<E&&rt.height*b<E)return a=fa(x.x-tt*ot,x.y-tt*ot,x.width+z*ot,x.height+z*ot,y.x,y.y),Vt.free(y),a}return E=!1,(this instanceof Ao||this instanceof Br?fa(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)),Vt.free(y),E},Et.gh=function(a){var y=this.naturalBounds;return fa(0,0,y.width,y.height,a.x,a.y)},Et.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=fn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Vt.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)))),Vt.free(E),fn.free(y),b},Et.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Vt.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)))),Vt.free(E),b},Et.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Vt.allocAt(0,0),E=Vt.allocAt(0,x.height),z=Vt.allocAt(x.width,x.height),tt=Vt.allocAt(x.width,0),rt=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))rt=!0;else{x=fn.allocAt(0,0,x.width,x.height);var ot=Vt.allocAt(a.x,a.y);x.ca(y.Cd(ot))?rt=!0:(ot.h(a.x,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.bottom),x.ca(y.Cd(ot))?rt=!0:(ot.h(a.right,a.y),x.ca(y.Cd(ot))&&(rt=!0)))),Vt.free(ot),fn.free(x),!rt&&(Ae.us(a,b,E)||Ae.us(a,E,z)||Ae.us(a,z,tt)||Ae.us(a,tt,b))&&(rt=!0)}return Vt.free(b),Vt.free(E),Vt.free(z),Vt.free(tt),rt},Et.ga=function(a,y){if(y===void 0&&(y=new Vt),a instanceof Fi){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Et.mi=function(a){a===void 0&&(a=new fn);var y=this.naturalBounds,x=this.oe,b=Vt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),No(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),No(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),No(a,b.x,b.y,0,0),Vt.free(b),a},Et.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},Et.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Et.qs=function(a,y){return y===void 0&&(y=new Vt),y.assign(a),this.oe.Cd(y),y},Et.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Et.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),yt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ae.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(tt=a*rt+y*lt+ft,a=a*ot+y*ut+yt,y=x*rt+b*lt+ft,x=x*ot+b*ut+yt,E.h(0,0),b=this.naturalBounds,x=Ae.Ff(0,0,b.width,b.height,tt,a,y,x,E),E.transform(z),x)},Le.prototype.measure=function(a,y,x,b){if(Iu(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 tt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+tt:a,y=isFinite(E.width)?E.width+tt:y):(a=isFinite(E.width)?E.width+tt:a,y=isFinite(E.height)?E.height+tt:y),E=x||0,tt=b||0;var rt=this instanceof Gn;switch(nu(this,!0)){case Dn:tt=E=0,rt&&(y=a=1/0);break;case zn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(tt=y);break;case Bi:isFinite(a)&&a>x&&(E=a),tt=0,rt&&(y=1/0);break;case $i:isFinite(y)&&y>b&&(tt=y),E=0,rt&&(a=1/0)}rt=this.maxSize;var ot=this.minSize;E>rt.width&&ot.width<rt.width&&(E=rt.width),tt>rt.height&&ot.height<rt.height&&(tt=rt.height),x=Math.max(E,ot.width),b=Math.max(tt,ot.height),rt.width<x&&(x=Math.min(ot.width,x)),rt.height<b&&(b=Math.min(ot.height,b)),a=Math.min(rt.width,a),y=Math.min(rt.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()||ue("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ns(this,!1)}},Le.prototype.Wl=function(){},Le.prototype.Dd=function(){return!1},Le.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=fn.alloc();z.assign(this.Ib),this.Ib.ka(),Hl(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&vc(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof la&&(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()||ue("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),xd(this,!1),fn.free(z)},Et=Le.prototype,Et.eh=function(){};function Fl(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 tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,b+=y,E+=tt,y=nu(a,!0),x===b&&z===E&&(y=Dn),y){case Dn:(x>b||z>E)&&(Ns(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case zn:Ns(a,!0),a.measure(b,E,0,0);break;case Bi:Ns(a,!0),a.measure(b,z,0,0);break;case $i:Ns(a,!0),a.measure(x,E,0,0)}}}Et.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(),$o(a,y)||(x.oh(),this.Pn(x)))},Et.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof ci&&GS(a,this))},Et.gc=function(a,y){if(!Uu(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 Gn&&vc(this),tt=this.Ib;if(z){var rt=this.Ib,ot=this.dc,lt=this.areaBackground,ut=this.Ma;lt===null&&ut===null||a.yc(),lt!==null&&(_a(this,a,lt,!0,!0,ot,rt),lt instanceof Go&&lt.type===Qu?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(lt)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),ut!==null&&(_a(this,a,ut,!0,!1,ot,rt),ut instanceof Go&&ut.type===Qu?(a.beginPath(),a.rect(rt.x,rt.y,rt.width,rt.height),a.ng(ut)):a.fillRect(rt.x,rt.y,rt.width,rt.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,rt=this.panel,this.l&4096&&il(this),lt=this.part,ot=!1;var ft=0;lt&&y.Gf("drawShadows")&&(ot=lt.isShadowed)&&(ut=lt.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var yt;if(!(yt=y.$i||!ut)){var Ct=this.naturalBounds;yt=this.wh;var bt=yt.m11,Dt=yt.m21,qt=yt.dx,Wt=yt.m12,ae=yt.m22,le=yt.dy,ge,be=ge=0;yt=ge*bt+be*Dt+qt;var Je=ge*Wt+be*ae+le;ge=Ct.width+ft,be=0;var di=ge*bt+be*Dt+qt;ge=ge*Wt+be*ae+le,be=Math.min(yt,di);var Pi=Math.min(Je,ge),yi=Math.max(yt+0,di)-be,Qn=Math.max(Je+0,ge)-Pi;yt=be,Je=Pi,ge=Ct.width+ft,be=Ct.height+ft,di=ge*bt+be*Dt+qt,ge=ge*Wt+be*ae+le,be=Math.min(yt,di),Pi=Math.min(Je,ge),yi=Math.max(yt+yi,di)-be,Qn=Math.max(Je+Qn,ge)-Pi,yt=be,Je=Pi,ge=0,be=Ct.height+ft,di=ge*bt+be*Dt+qt,ge=ge*Wt+be*ae+le,be=Math.min(yt,di),Pi=Math.min(Je,ge),yi=Math.max(yt+yi,di)-be,Qn=Math.max(Je+Qn,ge)-Pi,yt=be,Je=Pi,ft=y.viewportBounds,Ct=ft.x,bt=ft.y,yt=!(yt>ft.width+Ct||Ct>yi+yt||Je>ft.height+bt||bt>Qn+Je)}if(yt){if(yt=(this.l&256)!==0,a.clipInsteadOfFill&&(yt=!1),this instanceof la&&(a.font=this.font),yt){if(Je=rt.se()?rt.naturalBounds:rt.actualBounds,yi=Math.max(tt.x,Je.x),Qn=Math.max(tt.y,Je.y),ft=Math.min(tt.right,Je.right)-yi,Ct=Math.min(tt.bottom,Je.bottom)-Qn,bt=this.tb,bt!==null&&(yi=bt.x,Qn=bt.y,ft=bt.width,Ct=bt.height),yi>tt.width+tt.x||tt.x>Je.width+Je.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(yi,Qn,ft,Ct),a.clip()}if(ut){if(!lt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}ot&&(Je=lt.shadowOffset,a.Ev(Je.x*y.scale*this.scale*y.Mb,Je.y*y.scale*this.scale*y.Mb,lt.shadowBlur),Vd(a),a.shadowColor=lt.shadowColor)}ot&&this.shadowVisible===!0?Vd(a):ot&&this.shadowVisible===!1&&wd(a),lt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Ou(this,a,lt,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),ot&&tl(this,rt)&&this.shadowVisible===null&&wd(a),this.Ma!==null&&(a.yc(),gu(this,a,lt,tt)),ot&&(this.Ma!==null||this.areaBackground!==null||tl(this,rt))?(Eh(this,!0),this.shadowVisible===null&&wd(a)):Eh(this,!1),this.hh(a,y),ot&&this.l&512&&Vd(a),ut&&ot&&wd(a),yt&&(a.restore(),a.Vc(this instanceof Gn)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function tl(a,y){return y===null?!1:(vc(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Gn.Auto||y.type===Gn.Spot)&&y.Pb()!==a)}Et.Dv=function(){};function Ou(a,y,x,b){_a(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Go&&a.areaBackground.type===Qu?(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 gu(a,y,x,b){var E=a.kq(),z=x.x,tt=x.y,rt=x.width+E,ot=x.height+E;_a(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Go&&a.Ma.type===Qu?(y.beginPath(),y.rect(z-E/2,tt-E/2,rt,ot),y.ng(a.Ma)):y.fillRect(z-E/2,tt-E/2,rt,ot)}function Pl(a,y,x){for(var b=y.O.s,E=b.length,z=-1,tt=0;tt<E;tt++)if(b[tt]===a){z=tt;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===Gn.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 Uu(a,y,x){if(!(y instanceof Eu))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&Pl(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),Vd(y),y.shadowColor=a.shadowColor}a instanceof la&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof Gn;var rt=a instanceof Gn?vc(a):!1;a.l&4096&&il(a);var ot=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&rt?(pp(y,1,0,0,1,0,0),a.svg=y.ad):z?(pp(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):pp(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var lt=tt.copy().Vj();y.rb.ha=[lt.m11,lt.m12,lt.m21,lt.m22,lt.dx,lt.dy],Ou(a,y,E,ot),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),a.background!==null&&(z?(rt&&(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),gu(a,y,E,ot),rt&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],gu(a,y,E,ot)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,E=a.part,rt=!1,E&&x.Gf("drawShadows")&&(rt=E.isShadowed),y.clipInsteadOfFill&&(rt=!1),a.Dd()&&rt&&Vd(y),rt&&a.shadowVisible===!0?Vd(y):rt&&a.shadowVisible===!1&&wd(y),E=a.panel,rt&&tl(a,E)&&a.shadowVisible===null&&wd(y),y.Il&&(lt=x.computePixelRatio(),lt="drop-shadow("+y.shadowOffsetX/lt+"px "+y.shadowOffsetY/lt+"px "+y.shadowBlur/lt/2+"px "+y.shadowColor+")",a.background!==null&&tt.Ma.setAttributeNS(null,"filter",lt),a.areaBackground!==null&&tt.gd.setAttributeNS(null,"filter",lt)),rt&&(a.Ma!==null||a.areaBackground!==null||tl(a,E))?(Eh(a,!0),a.shadowVisible===null&&wd(y)):Eh(a,!1),E=rt,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),tt=y.Gv.hs,rt=z?a.svg:y.yd,lt=a.svg,!z&&lt!==null&&rt!==lt&&lt.parentNode===a.panel.svg?(a.svg.replaceWith(rt),a.svg=rt,rt!==null&&a.$o(y,b,ot,rt),eu(y,lt),!0):(a.svg=rt,tt!==null&&rt===null&&(gm(y),y.nh.pop()),rt===null||(a.$o(y,b,ot,rt),y.Il&&(x=x.computePixelRatio(),a.Dv(rt,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&Vd(y),a.Dd()&&wd(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&rt.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&rt.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(rt):y.Nj.prepend(rt),y.ti=rt):b!==null&&Pl(a,b,rt),tt!==null&&tt(a,rt)),!0)}Et.$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 tt=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,tt=z.width,x=z.height),z=b.getAttribute("clip-path");var rt=null;z!==null&&(rt=a.svg.getElementById(z.split("#")[1].slice(0,-1))),rt===null?(z="CLIP"+ca++,rt=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:tt,height:x}),this instanceof Gn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),rt.appendChild(y),a.svg.appendChild(rt),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=rt.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),eu(a,b)};function eu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Cl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=mi(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()}}Et.hh=function(){},Et.lv=function(){this.Uc=!0},Et.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 Gn?vc(this):!1;if(!(this instanceof Gn&&E))if(this instanceof ru){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 Gn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Br){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].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):(tt=b.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],Ou(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(tt=y.gd.getAttribute("filter"),tt!==null&&a.ad.setAttribute("filter",tt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&pm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(pm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Gn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),gu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(pm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&pm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Et.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 _a(a,y,x,b,E,z,tt){if(x!==null){var rt=1,ot=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===mc)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var lt=a.kq();if(rt=z.width,ot=z.height,E?(rt=tt.width,ot=tt.height):b||(rt+=lt,ot+=lt),(z=y instanceof Ef)&&x.xe&&(x.type===Mg||x.yk===rt&&x.ft===ot))var ut=x.xe;else{var ft=0,yt=0,Ct=0,bt=0,Dt=0,qt=0;if(qt=Dt=0,E?(Dt=tt.x,qt=tt.y):b||(Dt-=lt/2,qt-=lt/2),ft=x.start.x*rt+x.start.offsetX,yt=x.start.y*ot+x.start.offsetY,Ct=x.end.x*rt+x.end.offsetX,bt=x.end.y*ot+x.end.offsetY,ft+=Dt,Ct+=Dt,yt+=qt,bt+=qt,x.type===Ud)ut=y.createLinearGradient(ft,yt,Ct,bt);else if(x.type===Qu)qt=isNaN(x.endRadius)?Math.max(rt,ot)/2:x.endRadius,isNaN(x.startRadius)?(Dt=0,qt=Math.max(rt,ot)/2):Dt=x.startRadius,ut=y.createRadialGradient(ft,yt,Dt,Ct,bt,qt);else if(x.type===Mg)try{ut=y.createPattern(x.pattern,"repeat")}catch(ae){ut=null}if(x.type!==Mg&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ut.addColorStop(E.key,E.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=rt,x.ft=ot),ut===null&&x.type===Mg&&x.yk!==-1)){x.yk=-1;var Wt=a.diagram;Wt!==null&&x.yk===-1&&Mi(function(){Wt.redraw()},600)}}b?y.fillStyle=ut:y.strokeStyle=ut}}}Et.rg=function(a){if(a instanceof Gn)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},Et.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Et.If=function(){for(var a=this instanceof Gn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function il(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){hh(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)}hh(a,!1),Xu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Xu(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,Xu(a,!1)))}Et.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Vt.alloc();z.yi(y,x,b,E,so),a.rotate(this.Kb,z.x,z.y),Vt.free(z)}},Et.v=function(a){if(!Iu(this)){a===void 0&&(a=!1),Ns(this,!0),xd(this,!0);var y=this.panel;y===null||a||y.v()}},Et.Uj=function(){Iu(this)||(Ns(this,!0),xd(this,!0))};function jl(a){if(!Hl(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof ci&&a.Bd(),y.$b())),xd(a,!0)}}Et.Uk=function(){!(this.l&2048)&&(hh(this,!0),Xu(this,!0))},Et.Wu=function(){Xu(this,!0)},Et.N=function(){var a=this.part;a!==null&&a.N()};function nu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Gn.Table?Gh(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Gn.Auto&&b.Pb()===a?el(a,zn,y):x===br?b!==null?b.type===Gn.Spot&&b.Pb()===a?el(a,zn,y):(x=b.defaultStretch,x===br?el(a,Dn,y):el(a,x,y)):el(a,Dn,y):el(a,x,y)}function Gh(a,y,x,b){var E=a.stretch;if(E!==br)return el(a,E,b);var z=E=null;switch(y.stretch){case $i:z=!0;break;case zn:z=!0}switch(x.stretch){case Bi:E=!0;break;case zn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Bi||y===zn),z===null&&(z=y===$i||y===zn),E===!0&&z===!0?el(a,zn,b):E===!0?el(a,Bi,b):z===!0?el(a,$i,b):el(a,Dn,b)}function el(a,y,x){if(x)return y;if(y===Dn||(x=a.desiredSize,x.w()))return Dn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Bi)return Dn;if(y===zn)return $i}else{if(y===$i)return Dn;if(y===zn)return Bi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===$i)return Dn;if(y===zn)return Bi}else{if(y===Bi)return Dn;if(y===zn)return $i}return y}function Eh(a,y){a.l=y?a.l|512:a.l&-513}function hl(a){return(a.l&1024)!==0}function Qf(a,y){a.l=y?a.l|1024:a.l&-1025}function hh(a,y){a.l=y?a.l|2048:a.l&-2049}function Xu(a,y){a.l=y?a.l|4096:a.l&-4097}function Iu(a){return(a.l&8192)!==0}function Ns(a,y){a.l=y?a.l|8192:a.l&-8193}function Hl(a){return(a.l&16384)!==0}function xd(a,y){a.l=y?a.l|16384:a.l&-16385}Et.Gj=function(){this.svg=null},Et.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Et.Av=function(){},Et.zv=function(a){return this.pa=a,jl(this),!0},Et.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Et.kq=function(){return 0};function Cf(a){var y=a.part;if(y instanceof ci&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||GS(y,a)}}function Uy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Gn?a instanceof ci?a.Bd():a.qm(a,function(x){Cf(x)}):Cf(a))}Et.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new vs(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&cS(a)&&ue("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new bn),this.localBindings.add(E),this},Et.set=function(a){return Object.assign(this,a),this},Et.Du=function(a){return nv(this,a),this},Et.apply=function(a){return a(this),this},Et.nm=function(a){return cu(this,a),this},Et.pz=function(){return this.ih()},Et.ih=function(){for(var a=this instanceof Gn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Et.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new ki),this.animationTriggers.add(a.propertyName,a),this};function Ju(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=wg.I(a);typeof z=="function"?(x=je(arguments),b=z(x),Ge(b)||ue('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=ce.go[a]}if(b===null&&(E!=null&&E.constructor||ue("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 Ue&&1<x.length){z=b;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(Ph(z,tt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?ue("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):nv(b,z);return b}function nv(a,y){if(typeof y=="string")if(a instanceof la)a.text=y;else if(a instanceof Br)a.figure=y;else if(a instanceof ru)a.source=y;else if(a instanceof Gn)y=Lh.I(y),y!==null&&(a.type=y);else if(a instanceof Go){var x=si(Go,y);x!==null?a.type=x:ue("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof ti?(y=si(ti,y),y!==null&&(a.type=y)):a instanceof mo&&(y=si(mo,y),y!==null&&(a.type=y));else if(y instanceof Le)a instanceof Gn||ue("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ts){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 Ts?Nm(b,y):ue("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof sn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Rs)a.type=y;else if(y instanceof vs)a instanceof Le||a instanceof Ts?a.bind(y):ue("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof _l)a instanceof Le?a.Jv(y):ue("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Es)a instanceof ti&&a.type===ti.o?a.figures.add(y):ue("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof mo)a instanceof Es?a.segments.add(y):ue("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Fa)a instanceof Ue||a instanceof Cr?a.layout=y:ue("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)nv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Go){x=new Ki;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);cu(a,x)}else if(a instanceof Ts){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&ue("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)&&ue("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Ki;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);cu(a,E)}else cu(a,y);else ue('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function pc(a,y){wg.add(a,y)}function fm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Jt.Object.defineProperties(Le.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new $f),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new $f),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new $f),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Hr(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&&(Hr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Gl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Gl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:fo},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Gc),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:br},set:function(a){var y=this.stretch;y!==a&&(Hr(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&&(Hr(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)&&ui(a,"0 <= value <= 1",Le,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(kf(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(kf(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),Uy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&_f(a,"GraphObject.areaBackground"),a instanceof Go&&a.freeze(),Hr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&_f(a,"GraphObject.background"),a instanceof Go&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof ji)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Vt(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&&ue("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,Uy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Br&&this.qc(),this.g("desiredSize",b,a),hl(this)&&(a=this.part,a!==null&&(pa(this,a,"width"),pa(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 ri(a,this.jd.height).freeze(),this.v(),this instanceof Br&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&pa(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 ri(this.jd.width,a).freeze(),this.v(),this instanceof Br&&this.qc(),this.g("desiredSize",y,a),hl(this)&&(a=this.part,a!==null&&pa(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Mr},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(),Hr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ra},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(),Hr(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 zi(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&&il(this),this.Ab}},oe:{get:function(){return this.l&4096&&il(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Hr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Dn},set:function(a){this.reshapingBehavior!==a&&(Hr(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()&&ue("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),jl(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&&ui(a,">= 0",Le,"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&&ui(a,">= 1",Le,"columnSpan"),Hr(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&&ui(a,">= 0",Le,"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&&ui(a,">= 1",Le,"rowSpan"),Hr(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&&(Hr(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 ci||ue("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Zv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,YS(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Ua},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Cf(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&ui(a,">= 0",Le,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Cf(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Cf(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&ui(a,">= 0",Le,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ua},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Cf(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&ui(a,">= 0",Le,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Cf(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Cf(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&ui(a,">= 0",Le,"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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(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&&(Hr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Le.prototype.trigger=Le.prototype.Jv,Le.prototype.findBindingPanel=Le.prototype.ih,Le.prototype.findTemplateBinder=Le.prototype.pz,Le.prototype.setProperties=Le.prototype.nm,Le.prototype.apply=Le.prototype.apply,Le.prototype.attach=Le.prototype.Du,Le.prototype.set=Le.prototype.set,Le.prototype.isEnabledObject=Le.prototype.If,Le.prototype.isVisibleObject=Le.prototype.Ed,Le.prototype.isContainedBy=Le.prototype.rg,Le.prototype.getNearestIntersectionPoint=Le.prototype.rs,Le.prototype.getLocalPoint=Le.prototype.qs,Le.prototype.getDocumentScale=Le.prototype.Df,Le.prototype.getDocumentAngle=Le.prototype.li,Le.prototype.getDocumentBounds=Le.prototype.mi,Le.prototype.getDocumentPoint=Le.prototype.ga,Le.prototype.intersectsRect=Le.prototype.Yc,Le.prototype.containedInRect=Le.prototype.fh,Le.prototype.containsRect=Le.prototype.Re,Le.prototype.containsPoint=Le.prototype.ca,Le.prototype.raiseChanged=Le.prototype.g,Le.prototype.raiseChangedEvent=Le.prototype.cb,Le.prototype.addCopyProperty=Le.prototype.Vw;var wg=null;Le.className="GraphObject",wg=new ki,pc("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Ju(Gn,Gn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Gn){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"},Ju(Br,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Fi(0,0,2.76142374915397,2.761423749153969),spot2:new Fi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Gn&&(x=b.fb("ButtonBorder"),x instanceof Br)){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 Gn&&(x=b.fb("ButtonBorder"),x instanceof Br&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Br){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=tt,tt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Br){var z=x.diagram,tt=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=tt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Br){var z=x.diagram,tt=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=tt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Gn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Br))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var tt=b._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=b._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),E.skipsUndoManager=z}}},y}),pc("TreeExpanderButton",function(){var a=Ju("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Ju(Br,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Sa},new vs("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new vs("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ao&&(x=x.adornedPart),x instanceof ci){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),pc("SubGraphExpanderButton",function(){var a=Ju("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Ju(Br,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Sa},new vs("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Ao&&(x=x.adornedPart),x instanceof Cr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),pc("ToolTip",function(){return Ju(Ao,Gn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Vt(0,3),shadowBlur:5},Ju(Br,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Fi(0,0,4,6),spot2:new Fi(1,1,-4,-4)}))}),pc("ContextMenu",function(){return Ju(Ao,Gn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Vt(0,3),shadowBlur:5},new vs("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),pc("ContextMenuButton",function(){var a=Ju("Button");a.stretch=Bi;var y=a.fb("ButtonBorder");return y instanceof Br&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Fi(0,0,2,3),y.spot2=new Fi(1,1,-2,-2)),a}),pc("PanelExpanderButton",function(a){var y=fm(a,"COLLAPSIBLE"),x=Ju("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},Ju(Br,{name:"ButtonIcon",strokeWidth:2},new vs("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Br&&(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 tt=E.ih();tt===null&&(tt=E.part),tt!==null&&(E=tt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),pc("CheckBoxButton",function(a){var y=fm(a);return a=Ju("Button",{desiredSize:new ri(14,14)},Ju(Br,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:zn,geometryStretch:Ni,visible:!1},y!==""?new vs("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Gn){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),pc("CheckBox",function(a){a=fm(a),a=Ju("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new zi(0,1,0,0)});var y=Ju(Gn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new zi(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}),Le.None=Dn=new sn(Le,"None",0),Le.Default=br=new sn(Le,"Default",0),Le.Vertical=$i=new sn(Le,"Vertical",4),Le.Horizontal=Bi=new sn(Le,"Horizontal",5),Le.Fill=zn=new sn(Le,"Fill",3),Le.Uniform=Ni=new sn(Le,"Uniform",1),Le.UniformToFill=io=new sn(Le,"UniformToFill",2),Le.FlipVertical=Vr=new sn(Le,"FlipVertical",1),Le.FlipHorizontal=So=new sn(Le,"FlipHorizontal",2),Le.FlipBoth=Qo=new sn(Le,"FlipBoth",3),Le.make=Ju,Le.getBuilders=function(){var a=new ki,y;for(y in wg)if(y!==y.toLowerCase()){var x=wg.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Le.defineBuilder=pc,Le.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=wg.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Le))return y&&b.set(y),b;ue('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Le.takeBuilderArgument=fm;function $f(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Mr,this.o=Ra,this.hg=br,this.ob=this.Bi=1,this.Pf=Dn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}$f.prototype.copy=function(){var a=new $f;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function Gc(){this.u=-1/0,this.o=0,this.F=fo,this.rr=Gl,this.j=this.V="None"}Gc.prototype.copy=function(){var a=new Gc;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},Gc.className="LinkElementSettings";function gp(){this.yj=this.Xi=Bo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}gp.prototype.copy=function(){var a=new gp;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},gp.className="LinkSettings";function bf(){this.ha=[1,0,0,1,0,0]}bf.prototype.copy=function(){var a=new bf;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},bf.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},bf.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},bf.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,tt=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]=tt,this.translate(-y,-x)}},bf.className="STransform";function qf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}qf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},qf.className="SGradient";function sd(a,y,x){this.ownerDocument=a=y===void 0?ce.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 Eu(this,x)}sd.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},sd.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Ge(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},sd.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},sd.prototype.focus=function(){this.Oa.focus()},sd.prototype.mx=function(){this.ownerDocument=null},Jt.Object.defineProperties(sd.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),sd.className="SVGSurface";function Eu(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new bf,this.j=gm(this),this.Nj=gm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=ca++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Xy(a,y,x,b,E,z,tt){a.Nj===void 0?pp(a,y,x,b,E,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+tt+")")}Et=Eu.prototype,Et.arc=function(a,y,x,b,E,z,tt,rt){var ot=2*Math.PI,lt=ot-1e-6,ut=x*Math.cos(b),ft=x*Math.sin(b),yt=a+ut,Ct=y+ft,bt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(tt-yt)||1e-6<Math.abs(rt-Ct))&&this.path.push(["L",yt,+Ct]),0>b&&(b=b%ot+ot),b>lt?(this.path.push(["A",x,x,0,1,bt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,bt,yt,Ct])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),bt,a+x*Math.cos(E),y+x*Math.sin(E)])},Et.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Et.Se=function(a){this.addPath(this.path,this.rb,a||0)},Et.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Et.clearRect=function(){},Et.clip=function(){this.Yl.clipPath=!0},Et.closePath=function(){this.path.push(["z"])},Et.createLinearGradient=function(a,y,x,b){var E=new qf("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Et.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"+ca++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(wf,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Et.createRadialGradient=function(a,y,x,b,E,z){var tt=new qf("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=b,tt.y2=E,tt.r2=z,tt};function Jy(a,y,x,b,E,z,tt,rt,ot){b=rt/b,E=ot/E,z===0&&tt===0||a.rb.translate(z,tt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Et.drawImage=function(a,y,x,b,E,z,tt,rt,ot){var lt="";a instanceof HTMLCanvasElement&&(lt=a.toDataURL()),a instanceof HTMLImageElement&&(lt=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,tt=x,rt=b=ut,ot=E=a),b=b||0,E=E||0,rt=rt||0,ot=ot||0,Jy(this,y,x,b,E,z||0,tt||0,rt,ot),z={x:0,y:0,width:ut||b,height:a||E,href:lt},Ae.$(b,rt)&&Ae.$(E,ot)?lt.toLowerCase().indexOf(".svg")===-1&&lt.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ut||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),Pg(this,wf,z,this.rb),this.addElement(wf,z)},Et.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Et.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Et.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},Pg(this,"fill",a,this.rb),this.addElement("rect",a)},Et.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},Pg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},Et.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},Pg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Et.lineTo=function(a,y){this.path.push(["L",a,y])},Et.moveTo=function(a,y){this.path.push(["M",a,y])},Et.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Et.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"])},Et.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},Et.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())},Et.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||pp(this,a,y,x,b,E,z)};function Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Et.scale=function(a,y){this.rb.scale(a,y)},Et.translate=function(a,y){this.rb.translate(a,y)},Et.transform=function(){},Et.yc=function(){},Et.stroke=function(){qy(this,this.Yl)},Et.jk=function(){this.clipInsteadOfFill||this.stroke()},Et.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Et.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function Pg(a,y,x,b){y==="fill"?iv(a,x):y==="stroke"&&qy(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof qf?y.fill=rv(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function $y(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof qf?y.setAttributeNS(null,"fill",rv(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function qy(a,y){if(a.strokeStyle instanceof qf)y.stroke=rv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function rv(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+ca++,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=[],tt=0;tt<y;tt++){var rt=E[tt],ot=rt.color;rt={offset:rt.offset,"stop-color":ot},/^rgba\(/.test(ot)&&(ot=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ot),rt["stop-color"]="rgb("+ot[1]+","+ot[2]+","+ot[3]+")",rt["stop-opacity"]=ot[4]),z.push(rt)}for(z.sort(function(lt,ut){return lt.offset>ut.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Et.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=je(a[E]),tt=[z.shift()];if(tt[0]==="A")tt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)tt.push(z.shift()+","+z.shift());b.push(tt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,Pg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var rt in a)rt!=="transform"&&y.setAttributeNS(null,rt,a[rt]);else{rt=y.getElementsByTagName("path");for(var ot in a)ot!=="transform"&&rt[x].setAttributeNS(null,ot,a[ot])}else this.addElement("path",a)};function pp(a,y,x,b,E,z,tt){var rt=new bf;rt.ha=[y,x,b,E,z,tt],y={},Pg(a,"g",y,rt),rt=a.addElement("g",y),a.nh.push(rt)}function gm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Et.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function wd(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function Vd(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Et.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Et.fs=function(){this.Ct=!1},Et.Vc=function(){},Et.Wx=function(){},Eu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Eu.prototype.getImageData=function(){return null},Eu.prototype.measureText=function(){return null};function pm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}Eu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Eu.className="SVGContext",Ue.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new sd(this,ce.document));var y=new sd(this,ce.document,!0);a===void 0&&(a=new Ki);var x=this;return lh(this,function(b,E){return b=cc(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},Ue.prototype.makeSvg=Ue.prototype.Cs,Ue.prototype.av=function(a){return this.Cs(a)},Ue.prototype.makeSVG=Ue.prototype.av;function dh(a,y,x,b){this.ownerDocument=y=y===void 0?ce.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Ef(y,x,b),y.H=a}dh.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},dh.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},dh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},dh.prototype.focus=function(){this.Oa.focus()},dh.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Jt.Object.defineProperties(dh.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}}}),dh.className="CanvasSurface";function Ef(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&ue("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 kr,this.isTemporary=!!x}Et=Ef.prototype,Et.Wx=function(a){this.Z.imageSmoothingEnabled=a},Et.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Et.beginPath=function(){this.Z.beginPath()},Et.Se=function(){},Et.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Et.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Et.clip=function(){this.Z.clip()},Et.closePath=function(){this.Z.closePath()},Et.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Et.createPattern=function(a,y){return this.Z.createPattern(a,y)},Et.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Et.drawImage=function(a,y,x,b,E,z,tt,rt,ot){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,tt,rt,ot)},Et.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Et.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Et.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Et.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Et.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Et.lineTo=function(a,y){this.Z.lineTo(a,y)},Et.measureText=function(a){return this.Z.measureText(a)},Et.moveTo=function(a,y){this.Z.moveTo(a,y)},Et.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Et.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Et.restore=function(){this.Z.restore()},Et.save=function(){this.yc(),this.Z.save()},Ef.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Et=Ef.prototype,Et.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Et.scale=function(a,y){this.El.scale(a,y)},Et.translate=function(a,y){this.El.translate(a,y)},Et.stroke=function(){this.Z.stroke()},Et.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var tt=this.El,rt=tt.m11*a+tt.m21*y;a=tt.m12*a+tt.m22*y,y=tt.m11*x+tt.m21*b,x=tt.m12*x+tt.m22*b,tt.dx=tt.m11*E+tt.m21*z+tt.dx,tt.dy=tt.m12*E+tt.m22*z+tt.dy,tt.m11=rt,tt.m12=a,tt.m21=y,tt.m22=x}},Et.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Et.ng=function(a,y){if(a instanceof Go&&a.type===Qu){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)},Et.jk=function(){this.Hm||this.stroke()},Et.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Et.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Et.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Et.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Et.Hs=function(){},Jt.Object.defineProperties(Ef.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var mx=Object.freeze([]);Ef.className="CanvasSurfaceContext";function mp(){this.F=this.o=this.u=this.j=0}mp.className="ColorNumbers";function Go(a,y){Lg||(hv(),Lg=!0),Or(this),this._isFrozen=!1,a===void 0?(this.na=mc,this.xk="black"):typeof a=="string"?(this.na=mc,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Ud?(this.Qd=Ql,this.Lk=Ml):this.Lk=a===Qu?this.Qd=so:this.Qd=Ua,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Go.prototype.copy=function(){var a=new Go;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Et=Go.prototype,Et.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Et.ka=function(){return Object.isFrozen(this)&&ue("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Et.qb=function(a){a.classType===Go&&(this.type=a)},Et.toString=function(){var a="Brush(";if(this.type===mc)a+=this.color;else if(a=this.type===Ud?a+"Linear ":this.type===Qu?a+"Radial ":this.type===Mg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Et.addColorStop=function(a,y){return this._isFrozen&&Nn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&ui(a,"0 <= loc <= 1",Go,"addColorStop:loc"),this.we===null&&(this.we=new ki),this.we.add(a,y),this.na===mc&&(this.type=Ud),this.xe=null,this},Et.Vz=function(a,y){if(this._isFrozen&&Nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(a,y);else if((this.type===Ud||this.type===Qu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(a,y));return this};function _y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(y,x)}Et.Wy=function(a,y){if(this._isFrozen&&Nn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Ag:y,this.type===mc)Yd(this.color),this.color=bg(-a,y);else if((this.type===Ud||this.type===Qu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(-a,y));return this};function tS(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Ag:x,Yd(a),bg(-y,x)}function ov(a,y,x){Yd(a),a=ha.j;var b=ha.u,E=ha.o,z=ha.F;return Yd(y),x===void 0&&(x=.5),"rgba("+Math.round((ha.j-a)*x+a)+", "+Math.round((ha.u-b)*x+b)+", "+Math.round((ha.o-E)*x+E)+", "+Math.round((ha.F-z)*x+z)+")"}Et.Gx=function(){if(this.type===mc)return Cg(this.color);if((this.type===Ud||this.type===Qu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Qu)return Cg(a.first().value);if(a.get(.5)!==null)return Cg(a.get(.5));if(a.count===2)return a=a.Fa(),Cg(ov(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var tt=y.key,rt=Math.abs(.5-y.key);E>z&&rt<E?(x=tt,E=rt):z>=E&&rt<z&&(b=tt,z=rt)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,Cg(ov(a.get(x),a.get(b),1-z/E))}return!1};function Cg(a){return a?a instanceof Go?a.Gx():(Yd(a),128>(299*ha.j+587*ha.u+114*ha.o)/1e3):!1}function bg(a,y){switch(y){case Ag:y=100*sv(ha.j);var x=100*sv(ha.u),b=100*sv(ha.o);return Wl.j=.4124564*y+.3575761*x+.1804375*b,Wl.u=.2126729*y+.7151522*x+.072175*b,Wl.o=.0193339*y+.119192*x+.9503041*b,Wl.F=ha.F,y=uv(Wl.j/Eg[0]),x=uv(Wl.u/Eg[1]),b=uv(Wl.o/Eg[2]),Pd.j=116*x-16,Pd.u=500*(y-x),Pd.o=200*(x-b),Pd.F=Wl.F,Pd.j=Math.min(100,Math.max(0,Pd.j+100*a)),a=(Pd.j+16)/116,y=a-Pd.o/200,Wl.j=Eg[0]*eS(Pd.u/500+a),Wl.u=Eg[1]*(Pd.j>mm*dv?Math.pow(a,3):Pd.j/mm),Wl.o=Eg[2]*eS(y),Wl.F=Pd.F,a=-.969266*Wl.j+1.8760108*Wl.u+.041556*Wl.o,y=.0556434*Wl.j+-.2040259*Wl.u+1.0572252*Wl.o,ha.j=255*lv((3.2404542*Wl.j+-1.5371385*Wl.u+-.4985314*Wl.o)/100),ha.u=255*lv(a/100),ha.o=255*lv(y/100),ha.F=Wl.F,ha.j=Math.round(ha.j),255<ha.j?ha.j=255:0>ha.j&&(ha.j=0),ha.u=Math.round(ha.u),255<ha.u?ha.u=255:0>ha.u&&(ha.u=0),ha.o=Math.round(ha.o),255<ha.o?ha.o=255:0>ha.o&&(ha.o=0),"rgba("+ha.j+", "+ha.u+", "+ha.o+", "+ha.F+")";case nS:return av(),Ru.o=Math.min(100,Math.max(0,Ru.o+100*a)),"hsla("+Ru.j+", "+Ru.u+"%, "+Ru.o+"%, "+Ru.F+")";default:ue("Unknown color space: "+y)}}function Yd(a){Lg||(hv(),Lg=!0);var y=cv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,ha.j=a[0],ha.u=a[1],ha.o=a[2],ha.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,ha.j=0,ha.u=0,ha.o=0,ha.F=1)}}function av(){var a=ha.j/255,y=ha.u/255,x=ha.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 tt=a=0;else{switch(b){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*E-1))}Ru.j=Math.round(tt),Ru.u=Math.round(100*a),Ru.o=Math.round(100*E),Ru.F=ha.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(mm*a+16)/116}function eS(a){var y=a*a*a;return y>dv?y:(116*a-16)/mm}function _f(a,y){typeof a!="string"&&(a instanceof Go||ue("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=qa?new dh(null,void 0,{willReadFrequently:!0}).context:null}Jt.Object.defineProperties(Go.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Nn(this,a),this.na=a,this.start.Mc()&&(a===Ud?this.start=Ql:a===Qu&&(this.start=so)),this.end.Mc()&&(a===Ud?this.end=Ml:a===Qu&&(this.end=so)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Nn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Nn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Nn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Nn(this,a),0>a&&ui(a,">= zero",Go,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Nn(this,a),0>a&&ui(a,">= zero",Go,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Nn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Nn(this,a),this.cr=a,this.xe=null}}}),Go.prototype.isDark=Go.prototype.Gx,Go.prototype.darkenBy=Go.prototype.Wy,Go.prototype.lightenBy=Go.prototype.Vz,Go.prototype.addColorStop=Go.prototype.addColorStop;var dv=216/24389,mm=24389/27,Eg=[95.047,100,108.883],cv=null,ha=new mp,Ru=new mp,Wl=new mp,Pd=new mp,Lg=!1;Go.className="Brush";var mc;Go.Solid=mc=new sn(Go,"Solid",0);var Ud;Go.Linear=Ud=new sn(Go,"Linear",1);var Qu;Go.Radial=Qu=new sn(Go,"Radial",2);var Mg;Go.Pattern=Mg=new sn(Go,"Pattern",4);var Ag;Go.Lab=Ag=new sn(Go,"Lab",5);var nS;Go.HSL=nS=new sn(Go,"HSL",6),Go.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},Go.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Lg||(hv(),Lg=!0);var y=cv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},Go.lighten=function(a){return _y(a)},Go.lightenBy=_y,Go.darken=function(a){return tS(a)},Go.darkenBy=tS,Go.mix=ov,Go.isDark=Cg;function Rs(){this.xa="Base"}Rs.prototype.measure=function(){},Rs.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Rs.prototype.arrange=function(){},Rs.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Rs.prototype.iA=function(a){a.Uj()},Rs.prototype.gc=function(){},Jt.Object.defineProperties(Rs.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Gn}}}),Rs.prototype.remeasureObject=Rs.prototype.iA,Rs.prototype.arrangeElement=Rs.prototype.Ly,Rs.prototype.measureElement=Rs.prototype.Yz,Rs.className="PanelLayout";function vm(){this.xa="Base"}Qe(vm,Rs),vm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;a=Xd(a);for(var ot=0;ot<rt;ot++){var lt=b[ot];if(lt.visible||lt===a){var ut=lt.margin,ft=ut.right+ut.left;ut=ut.top+ut.bottom,lt.measure(y,x,z,tt);var yt=lt.measuredBounds;ft=Math.max(yt.width+ft,0),ut=Math.max(yt.height+ut,0),yt=lt.position.x;var Ct=lt.position.y;isFinite(yt)||(yt=0),isFinite(Ct)||(Ct=0),lt instanceof Br&&lt.isGeometryPositioned&&(lt=lt.strokeWidth/2,yt-=lt,Ct-=lt),No(E,yt,Ct,ft,ut)}}},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],tt=z.measuredBounds,rt=z.margin,ot=z.position.x,lt=z.position.y;if(ot=isNaN(ot)?-a:ot-a,lt=isNaN(lt)?-x:lt-x,z instanceof Br&&z.isGeometryPositioned){var ut=z.strokeWidth/2;ot-=ut,lt-=ut}z.visible&&z.arrange(ot+rt.left,lt+rt.top,tt.width,tt.height)}};function ym(){this.xa="Base"}Qe(ym,Rs),ym.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length;y=dn(),z=Xd(a);for(var ot=0;ot<rt;ot++){var lt=b[ot];if(lt.visible||lt===z){var ut=nu(lt,!1);if(ut!==Dn&&ut!==Bi)y.push(lt);else{lt.measure(1/0,x,0,tt),ut=lt.margin,lt=lt.measuredBounds;var ft=Math.max(lt.height+ut.top+ut.bottom,0);E.width+=Math.max(lt.width+ut.right+ut.left,0),E.height=Math.max(E.height,ft)}}}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++)ot=y[a],(ot.visible||ot===z)&&(ut=ot.margin,rt=ut.right+ut.left,ut=ut.top+ut.bottom,ot.measure(1/0,x,0,tt),ot=ot.measuredBounds,ut=Math.max(ot.height+ut,0),E.width+=Math.max(ot.width+rt,0),E.height=Math.max(E.height,ut));kn(y)},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,tt=a.isOpposite,rt=tt?x.width:E.left,ot=0;ot<b;ot++){var lt=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,yt=ut.margin,Ct=yt.top+yt.bottom,bt=z+E.bottom,Dt=ft.height,qt=nu(ut,!1);(isNaN(ut.desiredSize.height)&&qt===zn||qt===$i)&&(Dt=Math.max(x.height-Ct-bt,0)),Ct=Dt+Ct+bt,bt=ut.alignment,bt.Xb()&&(bt=a.defaultAlignment),bt.sb()||(bt=so),tt&&(rt-=ft.width+yt.left+yt.right),ut.arrange(rt+bt.offsetX+yt.left,lt+bt.offsetY+yt.top+(x.height*bt.y-Ct*bt.y),ft.width,Dt),tt||(rt+=ft.width+yt.left+yt.right)}}};function Sm(){this.xa="Base"}Qe(Sm,Rs),Sm.prototype.measure=function(a,y,x,b,E,z){var tt=b.length;x=dn();for(var rt=Xd(a),ot=0;ot<tt;ot++){var lt=b[ot];if(lt.visible||lt===rt){var ut=nu(lt,!1);if(ut!==Dn&&ut!==$i)x.push(lt);else{var ft=lt.margin;ut=ft.right+ft.left,ft=ft.top+ft.bottom,lt.measure(y,1/0,z,0),lt=lt.measuredBounds,xs(E,Math.max(E.width,Math.max(lt.width+ut,0)),E.height+Math.max(lt.height+ft,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++)ot=x[a],(ot.visible||ot===rt)&&(lt=ot.margin,tt=lt.right+lt.left,lt=lt.top+lt.bottom,ot.measure(y,1/0,z,0),ot=ot.measuredBounds,lt=Math.max(ot.height+lt,0),E.width=Math.max(E.width,Math.max(ot.width+tt,0)),E.height+=lt);kn(x)}},Sm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,tt=a.isOpposite,rt=tt?x.height:E.top,ot=0;ot<b;ot++){var lt=z,ut=y[ot];if(ut.visible){var ft=ut.measuredBounds,yt=ut.margin,Ct=yt.left+yt.right,bt=z+E.right,Dt=ft.width,qt=nu(ut,!1);(isNaN(ut.desiredSize.width)&&qt===zn||qt===Bi)&&(Dt=Math.max(x.width-Ct-bt,0)),Ct=Dt+Ct+bt,bt=ut.alignment,bt.Xb()&&(bt=a.defaultAlignment),bt.sb()||(bt=so),tt&&(rt-=ft.height+yt.bottom+yt.top),ut.arrange(lt+bt.offsetX+yt.left+(x.width*bt.x-Ct*bt.x),rt+bt.offsetY+yt.top,Dt,ft.height),tt||(rt+=ft.height+yt.bottom+yt.top)}}};function xm(){this.xa="Base"}Qe(xm,Rs),xm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,ot=a.Pb(),lt=ot.margin,ut=lt.right+lt.left,ft=lt.top+lt.bottom;ot.measure(y,x,z,tt);var yt=ot.measuredBounds;z=yt.width,tt=yt.height;var Ct=Math.max(z+ut,0),bt=Math.max(tt+ft,0),Dt=a.isClipping,qt=fn.allocAt(-lt.left,-lt.top,Ct,bt),Wt=fn.allocAt(0,0,z,tt);fv(ot,Wt,!0),z=Wt.width,tt=Wt.height;for(var ae=!0,le=Xd(a),ge=0;ge<rt;ge++){var be=b[ge];yt=y;var Je=x;if(be!==ot&&(be.visible||be===le)){lt=be.margin;var di=lt.left,Pi=lt.top;switch(Ct=lt.right+lt.left,bt=lt.top+lt.bottom,lt=nu(be,!1),lt){case zn:yt=z,Je=tt,Pi=di=bt=Ct=0;break;case Bi:yt=z,di=Ct=0;break;case $i:Je=tt,Pi=bt=0}be.measure(yt,Je,0,0),yt=be.measuredBounds,Ct=Math.max(yt.width+Ct,0),bt=Math.max(yt.height+bt,0),lt=be.alignment,lt.Xb()&&(lt=a.defaultAlignment),lt.sb()||(lt=so);var yi=be.alignmentFocus;if(yi.Xb()&&(yi=so),Je=null,be instanceof Gn&&be.$e!==""&&(Je=be.fb(be.$e),Je===be&&(Je=null)),di=Wt.x-di,Pi=Wt.y-Pi,Je!==null){for(be.arrange(0,0,yt.width,yt.height),yt=Je.actualBounds,yt=Vt.allocAt(yt.x+(yi.x*yt.width-yi.offsetX),yt.y+(yi.y*yt.height-yi.offsetY)),Je=Je.panel;Je!==be;)Je.transform.Ga(yt),Je=Je.panel;di+=lt.x*z+lt.offsetX-yt.x,Pi+=lt.y*tt+lt.offsetY-yt.y,Vt.free(yt)}else di+=lt.x*z+lt.offsetX-(yi.x*yt.width+yi.offsetX),Pi+=lt.y*tt+lt.offsetY-(yi.y*yt.height+yi.offsetY);ae?(ae=!1,E.h(di,Pi,Ct,bt)):No(E,di,Pi,Ct,bt)}}switch(ae?E.assign(qt):Dt?E.Uu(Wt.x,Wt.y,Wt.width,Wt.height):No(E,qt.x,qt.y,qt.width,qt.height),fn.free(qt),fn.free(Wt),lt=ot.stretch,lt===br&&(lt=nu(ot,!1)),lt){case Dn:return;case zn:if(!isFinite(y)&&!isFinite(x))return;break;case Bi:if(!isFinite(y))return;break;case $i:if(!isFinite(x))return}for(yt=ot.measuredBounds,z=yt.width,tt=yt.height,Ct=Math.max(z+ut,0),bt=Math.max(tt+ft,0),lt=ot.margin,Wt=fn.allocAt(-lt.left,-lt.top,Ct,bt),fv(ot,Wt,!0),z=Wt.width,tt=Wt.height,y=0;y<rt;y++)x=b[y],x===ot||!x.visible&&x!==le||(lt=x.margin,Ct=lt.right+lt.left,bt=lt.top+lt.bottom,yt=x.measuredBounds,Ct=Math.max(yt.width+Ct,0),bt=Math.max(yt.height+bt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=so),x=x.alignmentFocus,x.Xb()&&(x=so),ae?(ae=!1,E.h(ut.x*z+ut.offsetX-(x.x*yt.width+x.offsetX)-lt.left,ut.y*tt+ut.offsetY-(x.y*yt.height+x.offsetY)-lt.top,Ct,bt)):No(E,ut.x*z+ut.offsetX-(x.x*yt.width+x.offsetX)-lt.left,ut.y*tt+ut.offsetY-(x.y*yt.height+x.offsetY)-lt.top,Ct,bt));ae?E.assign(qt):Dt?E.Uu(Wt.x,Wt.y,Wt.width,Wt.height):No(E,qt.x,qt.y,qt.width,qt.height),fn.free(Wt)},xm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,tt=z.width,rt=z.height,ot=a.padding;z=ot.left,ot=ot.top;var lt=z-x.x,ut=ot-x.y;for(E.arrange(lt,ut,tt,rt),tt=fn.allocAt(0,0,tt,rt),fv(E,tt,!1),rt=0;rt<b;rt++){var ft=y[rt];if(ft!==E){lt=ft.measuredBounds;var yt=lt.width,Ct=lt.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=so);var bt=ft.alignmentFocus;if(bt.Xb()&&(bt=so),lt=null,ft instanceof Gn&&ft.$e!==""&&(lt=ft.fb(ft.$e),lt===ft&&(lt=null)),lt!==null){var Dt=lt.actualBounds;for(bt=Vt.allocAt(Dt.x+(bt.x*Dt.width-bt.offsetX),Dt.y+(bt.y*Dt.height-bt.offsetY)),lt=lt.panel;lt!==ft;)lt.transform.Ga(bt),lt=lt.panel;lt=ut.x*tt.width+ut.offsetX-bt.x,ut=ut.y*tt.height+ut.offsetY-bt.y,Vt.free(bt)}else lt=ut.x*tt.width+ut.offsetX-(bt.x*yt+bt.offsetX),ut=ut.y*tt.height+ut.offsetY-(bt.y*Ct+bt.offsetY);lt+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+lt,ot+ut,yt,Ct)}}fn.free(tt)};function fv(a,y,x){var b=null;if(a instanceof Gn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function wm(){this.xa="Base"}Qe(wm,Rs),wm.prototype.measure=function(a,y,x,b,E,z,tt){var rt=b.length,ot=a.Pb(),lt=ot.margin,ut=y,ft=x,yt=lt.right+lt.left,Ct=lt.top+lt.bottom;ot.measure(y,x,z,tt),lt=ot.measuredBounds;var bt=0,Dt=null;ot instanceof Br&&(Dt=ot,bt=Dt.strokeWidth*Dt.scale);var qt=Math.max(lt.width+yt,0);lt=Math.max(lt.height+Ct,0);var Wt=vv(ot),ae=Wt.x*qt+Wt.offsetX;Wt=Wt.y*lt+Wt.offsetY;var le=yv(ot),ge=le.x*qt+le.offsetX;for(le=le.y*lt+le.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(ae-ge)-bt,0)),isFinite(x)&&(ft=Math.max(Math.abs(Wt-le)-bt,0)),bt=ri.alloc(),bt.h(0,0),a=Xd(a),le=0;le<rt;le++)Wt=b[le],Wt===ot||!Wt.visible&&Wt!==a||(lt=Wt.margin,qt=lt.right+lt.left,ae=lt.top+lt.bottom,Wt.measure(ut,ft,0,0),lt=Wt.measuredBounds,qt=Math.max(lt.width+qt,0),lt=Math.max(lt.height+ae,0),bt.h(Math.max(qt,bt.width),Math.max(lt,bt.height)));if(rt===1)E.width=qt,E.height=lt,ri.free(bt);else{switch(Wt=vv(ot),le=yv(ot),rt=b=0,le.x!==Wt.x&&le.y!==Wt.y&&(b=bt.width/Math.abs(le.x-Wt.x),rt=bt.height/Math.abs(le.y-Wt.y)),ri.free(bt),bt=0,Dt!==null&&(bt=Dt.strokeWidth*Dt.scale,bv(Dt)===Ni&&(b=rt=Math.max(b,rt))),b+=Math.abs(Wt.offsetX)+Math.abs(le.offsetX)+bt,rt+=Math.abs(Wt.offsetY)+Math.abs(le.offsetY)+bt,Dt=ot.stretch,Dt===br&&(Dt=nu(ot,!1)),Dt){case Dn:tt=z=0;break;case zn:isFinite(y)&&(b=y),isFinite(x)&&(rt=x);break;case Bi:isFinite(y)&&(b=y),tt=0;break;case $i:z=0,isFinite(x)&&(rt=x)}ot.Uj(),ot.measure(b,rt,z,tt),E.width=ot.measuredBounds.width+yt,E.height=ot.measuredBounds.height+Ct}},wm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=fn.alloc();z.h(0,0,1,1);var tt=b.margin,rt=tt.left;tt=tt.top;var ot=a.padding,lt=ot.left;ot=ot.top,b.arrange(lt+rt,ot+tt,E.width,E.height);var ut=vv(b),ft=yv(b),yt=ut.y*E.height+ut.offsetY,Ct=ft.x*E.width+ft.offsetX;for(ft=ft.y*E.height+ft.offsetY,z.x=ut.x*E.width+ut.offsetX,z.y=yt,No(z,Ct,ft,0,0),z.x+=rt+lt,z.y+=tt+ot,E=0;E<x;E++)rt=y[E],rt!==b&&(lt=rt.measuredBounds,tt=rt.margin,ot=Math.max(lt.width+tt.right+tt.left,0),ut=Math.max(lt.height+tt.top+tt.bottom,0),yt=rt.alignment,yt.Xb()&&(yt=a.defaultAlignment),yt.sb()||(yt=so),ot=z.width*yt.x+yt.offsetX-ot*yt.x+tt.left+z.x,tt=z.height*yt.y+yt.offsetY-ut*yt.y+tt.top+z.y,rt.visible&&(fa(z.x,z.y,z.width,z.height,ot,tt,lt.width,lt.height)?rt.arrange(ot,tt,lt.width,lt.height):rt.arrange(ot,tt,lt.width,lt.height,new fn(z.x,z.y,z.width,z.height))));fn.free(z)};function Pm(){this.xa="Base",this.name="Table"}Qe(Pm,Rs),Pm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,tt=dn(),rt=dn(),ot=0;ot<z;ot++){var lt=b[ot],ut=lt instanceof Gn?lt:null;if(ut!==null&&vc(ut)&&lt.visible){rt.push(ut);for(var ft=ut.O.s,yt=ft.length,Ct=0;Ct<yt;Ct++){var bt=ft[Ct];ut.type===Gn.TableRow?bt.row=lt.row:ut.type===Gn.TableColumn&&(bt.column=lt.column),tt.push(bt)}}else tt.push(lt)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Dt=[],qt=0;qt<z;qt++){var Wt=tt[qt];Wt.visible&&(Ns(Wt,!0),xd(Wt,!0),Dt[Wt.row]||(Dt[Wt.row]=[]),Dt[Wt.row][Wt.column]||(Dt[Wt.row][Wt.column]=[]),Dt[Wt.row][Wt.column].push(Wt))}kn(tt);var ae=dn(),le=dn(),ge=dn(),be={count:0},Je={count:0},di=y,Pi=x,yi=a.rowDefs,Qn=a.colDefs,Fn=null;z=yi.length;for(var xr=0;xr<z;xr++)Fn=yi[xr],Fn!==void 0&&(Fn.actual=0);z=Qn.length;for(var gr=0;gr<z;gr++)Fn=Qn[gr],Fn!==void 0&&(Fn.actual=0);for(var Do=Dt.length,aa=0,Gs=0;Gs<Do;Gs++)Dt[Gs]&&(aa=Math.max(aa,Dt[Gs].length));var qs=Math.min(a.topIndex,Do-1),Nl=Math.min(a.leftIndex,aa-1),Ks=0;Do=Dt.length;for(var Mc=Xd(a),ys=0;ys<Do;ys++)if(Dt[ys]){aa=Dt[ys].length;var Xh=a.Fb(ys);Xh.actual=0;for(var Tl=Xh.oc=0;Tl<aa;Tl++)if(Dt[ys][Tl]){var Ac=a.Eb(Tl);ae[Tl]===void 0&&(Ac.actual=0,Ac.oc=0,ae[Tl]=!0);for(var Hu=Dt[ys][Tl],ph=Hu.length,Au=0;Au<ph;Au++){var mu=Hu[Au];if(mu.visible||mu===Mc){var rf=1<mu.rowSpan||1<mu.columnSpan;rf&&(ys<qs||Tl<Nl||le.push(mu));var Jh=mu.margin,$g=Jh.right+Jh.left,ku=Jh.top+Jh.bottom,Dl=Gh(mu,Xh,Ac,!1),im=mu.desiredSize,dg=!isNaN(im.height),hd=!isNaN(im.width)&&dg;if(rf||Dl===Dn||hd||ys<qs||Tl<Nl||(be[Tl]!==void 0||Dl!==zn&&Dl!==Bi||(be[Tl]=-1,be.count++),Je[ys]!==void 0||Dl!==zn&&Dl!==$i||(Je[ys]=-1,Je.count++),ge.push(mu)),mu.measure(1/0,1/0,0,0),!(ys<qs||Tl<Nl)){var vu=mu.measuredBounds,Bf=Math.max(vu.width+$g,0),Fu=Math.max(vu.height+ku,0);if(mu.rowSpan===1&&(Dl===Dn||Dl===Bi)){Fn=a.Fb(ys);var of=Fn.Wc();Ks=Math.max(Fu-Fn.actual,0),Ks+of>Pi&&(Ks=Math.max(Pi-of,0));var V0=Fn.oa===0;Fn.oc=Fn.oc+Ks,Fn.actual=Fn.oa+Ks,Pi=Math.max(Pi-(Ks+(V0?of:0)),0)}if(mu.columnSpan===1&&(Dl===Dn||Dl===$i)){Fn=a.Eb(Tl);var rm=Fn.Wc();Ks=Math.max(Bf-Fn.actual,0),Ks+rm>di&&(Ks=Math.max(di-rm,0));var Hy=Fn.oa===0;Fn.oc=Fn.oc+Ks,Fn.actual=Fn.oa+Ks,di=Math.max(di-(Ks+(Hy?rm:0)),0)}rf&&mu.Uj()}}}}}kn(ae);var Nd=0,$d=0;z=a.columnCount;for(var cg=0;cg<z;cg++){var af=Qn[cg];af!==void 0&&(Nd+=isNaN(af.Hc)?af.oc:af.Hc,af.oc!==0&&(Nd+=af.Wc()))}z=a.rowCount;for(var qg=0;qg<z;qg++){var sf=yi[qg];sf!==void 0&&($d+=isNaN(sf.Hc)?sf.oc:sf.Hc,sf.oc!==0&&($d+=sf.Wc()))}di=Math.max(y-Nd,0);var Td=Pi=Math.max(x-$d,0),kc=di;z=ge.length;for(var yu=0;yu<z;yu++){var dd=ge[yu],Y0=a.Fb(dd.row),qd=a.Eb(dd.column),_g=dd.measuredBounds,Qh=dd.margin,Of=Qh.right+Qh.left,cd=Qh.top+Qh.bottom;be[dd.column]=qd.oc===0&&be[dd.column]!==void 0?Math.max(_g.width+Of,be[dd.column]):null,Je[dd.row]=Y0.oc===0&&Je[dd.row]!==void 0?Math.max(_g.height+cd,Je[dd.row]):null}var fg=0,tp=0,Th;for(Th in Je)Th!=="count"&&(fg+=Je[Th]);for(Th in be)Th!=="count"&&(tp+=be[Th]);for(var ol=ri.alloc(),om=0;om<z;om++){var Xl=ge[om];if(Xl.visible||Xl===Mc){var Ss=a.Fb(Xl.row),Jl=a.Eb(Xl.column),_d=0;isFinite(Jl.width)?_d=Jl.width:(isFinite(di)&&be[Xl.column]!==null?tp===0?_d=Jl.actual+di:_d=be[Xl.column]/tp*kc:be[Xl.column]!==null?_d=di:_d=Jl.actual||di,_d=Math.max(0,_d-Jl.Wc()));var Fc=0;switch(isFinite(Ss.height)?Fc=Ss.height:(isFinite(Pi)&&Je[Xl.row]!==null?fg===0?Fc=Ss.actual+Pi:Fc=Je[Xl.row]/fg*Td:Je[Xl.row]!==null?Fc=Pi:Fc=Ss.actual||Pi,Fc=Math.max(0,Fc-Ss.Wc())),ol.h(Math.max(Jl.minimum,Math.min(_d,Jl.maximum)),Math.max(Ss.minimum,Math.min(Fc,Ss.maximum))),Dl=Gh(Xl,Ss,Jl,!1),Dl){case Bi:ol.height=Math.max(ol.height,Ss.actual+Pi);break;case $i:ol.width=Math.max(ol.width,Jl.actual+di)}var If=Xl.margin,Wy=If.right+If.left,U0=If.top+If.bottom;Xl.Uj(),Xl.measure(ol.width,ol.height,Jl.minimum,Ss.minimum);var ep=Xl.measuredBounds,Rf=Math.max(ep.width+Wy,0),gg=Math.max(ep.height+U0,0);isFinite(di)&&(Rf=Math.min(Rf,ol.width)),isFinite(Pi)&&(gg=Math.min(gg,ol.height));var Su=0;Su=Ss.actual,Ss.actual=Math.max(Ss.actual,gg),Ss.oc=Math.max(Ss.oc,gg),Ks=Ss.actual-Su,Pi=Math.max(Pi-Ks,0),Je[Xl.row]===null&&(Td=Math.max(Td-Ks,0)),Su=Jl.actual,Jl.actual=Math.max(Jl.actual,Rf),Jl.oc=Math.max(Jl.oc,Rf),Ks=Jl.actual-Su,di=Math.max(di-Ks,0),be[Xl.column]===null&&(kc=Math.max(kc-Ks,0))}}kn(ge);var tc=ri.alloc(),$h=dn(),eh=dn();if(z=le.length,z!==0){for(var lf=0;lf<Do;lf++)if(Dt[lf]){aa=Dt[lf].length;var np=a.Fb(lf);$h[lf]=np.actual;for(var uf=0;uf<aa;uf++)if(Dt[lf][uf]){var X0=a.Eb(uf);eh[uf]=X0.actual}}}for(var ip=0;ip<z;ip++){var os=le[ip];if(os.visible||os===Mc){var Dh=a.Fb(os.row),mh=a.Eb(os.column);switch(ol.h(Math.max(mh.minimum,Math.min(y,mh.maximum)),Math.max(Dh.minimum,Math.min(x,Dh.maximum))),Dl=Gh(os,Dh,mh,!1),Dl){case zn:eh[mh.index]!==0&&(ol.width=Math.min(ol.width,eh[mh.index])),$h[Dh.index]!==0&&(ol.height=Math.min(ol.height,$h[Dh.index]));break;case Bi:eh[mh.index]!==0&&(ol.width=Math.min(ol.width,eh[mh.index]));break;case $i:$h[Dh.index]!==0&&(ol.height=Math.min(ol.height,$h[Dh.index]))}isFinite(mh.width)&&(ol.width=mh.width),isFinite(Dh.height)&&(ol.height=Dh.height),tc.h(0,0);for(var J0=mh.minimum,Nu=Dh.minimum,Nc=1;Nc<os.rowSpan&&!(os.row+Nc>=a.rowCount);Nc++)Fn=a.Fb(os.row+Nc),Ks=0,Ks=Dl===zn||Dl===$i?Math.max(Fn.minimum,$h[os.row+Nc]===0?Fn.maximum:Math.min($h[os.row+Nc],Fn.maximum)):Math.max(Fn.minimum,isNaN(Fn.Hc)?Fn.maximum:Math.min(Fn.Hc,Fn.maximum)),tc.height+=Ks,Nu+=Fn.minimum;for(var vh=1;vh<os.columnSpan&&!(os.column+vh>=a.columnCount);vh++)Fn=a.Eb(os.column+vh),Ks=0,Ks=Dl===zn||Dl===Bi?Math.max(Fn.minimum,eh[os.column+vh]===0?Fn.maximum:Math.min(eh[os.column+vh],Fn.maximum)):Math.max(Fn.minimum,isNaN(Fn.Hc)?Fn.maximum:Math.min(Fn.Hc,Fn.maximum)),tc.width+=Ks,J0+=Fn.minimum;ol.width+=tc.width,ol.height+=tc.height;var rp=os.margin,hf=rp.right+rp.left,am=rp.top+rp.bottom;os.measure(ol.width,ol.height,J0,Nu);for(var op=os.measuredBounds,fd=Math.max(op.width+hf,0),zf=Math.max(op.height+am,0),df=0,ap=0;ap<os.rowSpan&&!(os.row+ap>=a.rowCount);ap++)Fn=a.Fb(os.row+ap),df+=Fn.total||0;if(df<zf){var Tc=zf-df,Dd=zf-df;if(os.spanAllocation!==null)for(var Dc=os.spanAllocation,ec=0;ec<os.rowSpan&&!(0>=Tc)&&!(os.row+ec>=a.rowCount);ec++){Fn=a.Fb(os.row+ec);var Bc=Fn.oa||0,jf=Dc(os,Fn,Dd);Fn.actual=Math.min(Fn.maximum,Bc+jf),Fn.oa!==Bc&&(Tc-=Fn.oa-Bc)}for(;0<Tc;){var qh=Fn.oa||0;if(isNaN(Fn.height)&&Fn.maximum>qh&&(Fn.actual=Math.min(Fn.maximum,qh+Tc),Fn.oa!==qh&&(Tc-=Fn.oa-qh)),Fn.index===0)break;Fn=a.Fb(Fn.index-1)}}for(var pg=0,Oc=0;Oc<os.columnSpan&&!(os.column+Oc>=a.columnCount);Oc++)Fn=a.Eb(os.column+Oc),pg+=Fn.total||0;if(pg<fd){var mg=fd-pg,Zy=fd-pg;if(os.spanAllocation!==null)for(var nc=os.spanAllocation,Hf=0;Hf<os.columnSpan&&!(0>=mg)&&!(os.column+Hf>=a.columnCount);Hf++){Fn=a.Eb(os.column+Hf);var sm=Fn.oa||0,Gy=nc(os,Fn,Zy);Fn.actual=Math.min(Fn.maximum,sm+Gy),Fn.oa!==sm&&(mg-=Fn.oa-sm)}for(;0<mg;){var Q0=Fn.oa||0;if(isNaN(Fn.width)&&Fn.maximum>Q0&&(Fn.actual=Math.min(Fn.maximum,Q0+mg),Fn.oa!==Q0&&(mg-=Fn.oa-Q0)),Fn.index===0)break;Fn=a.Eb(Fn.index-1)}}}}kn(le),ri.free(tc),ri.free(ol),$h!==void 0&&kn($h),eh!==void 0&&kn(eh);var vg=0,yg=0,$0=a.desiredSize,gx=a.maxSize;Dl=nu(a,!0);var lm=$d=Nd=0,um=0;z=a.columnCount;for(var q0=0;q0<z;q0++)Qn[q0]!==void 0&&(Fn=a.Eb(q0),isFinite(Fn.width)?(lm+=Fn.width,lm+=Fn.Wc()):Tm(Fn)===xp?(lm+=Fn.oa,lm+=Fn.Wc()):Fn.oa!==0&&(Nd+=Fn.oa,Nd+=Fn.Wc()));isFinite($0.width)?vg=Math.min($0.width,gx.width):vg=Dl!==Dn&&isFinite(y)?y:Nd,vg=Math.max(vg,a.minSize.width),vg=Math.max(vg-lm,0);for(var $x=Nd===0?1:Math.max(vg/Nd,1),_0=0;_0<z;_0++)Qn[_0]!==void 0&&(Fn=a.Eb(_0),isFinite(Fn.width)||Tm(Fn)===xp||(Fn.actual=Fn.oa*$x),Fn.position=E.width,Fn.oa!==0&&(E.width+=Fn.oa,E.width+=Fn.Wc()));z=a.rowCount;for(var tv=0;tv<z;tv++)yi[tv]!==void 0&&(Fn=a.Fb(tv),isFinite(Fn.height)?(um+=Fn.height,um+=Fn.Wc()):Tm(Fn)===xp?(um+=Fn.oa,um+=Fn.Wc()):Fn.oa!==0&&($d+=Fn.oa,$d+=Fn.Wc()));isFinite($0.height)?yg=Math.min($0.height,gx.height):yg=Dl!==Dn&&isFinite(x)?x:$d,yg=Math.max(yg,a.minSize.height),yg=Math.max(yg-um,0);for(var qx=$d===0?1:Math.max(yg/$d,1),ev=0;ev<z;ev++)yi[ev]!==void 0&&(Fn=a.Fb(ev),isFinite(Fn.height)||Tm(Fn)===xp||(Fn.actual=Fn.oa*qx),Fn.position=E.height,Fn.oa!==0&&(E.height+=Fn.oa,E.height+=Fn.Wc()));z=rt.length;for(var Ky=0;Ky<z;Ky++){var hm=rt[Ky],Vy=0,Yy=0;hm.type===Gn.TableRow?(Vy=E.width,Fn=a.Fb(hm.row),Yy=Fn.actual):(Fn=a.Eb(hm.column),Vy=Fn.actual,Yy=E.height),hm.measuredBounds.h(0,0,Vy,Yy),Ns(hm,!1)}kn(rt),a.inRowsCols=Dt},Pm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var tt=a.inRowsCols;if(tt!==null){for(var rt,ot,lt=tt.length,ut=0,ft=0;ft<lt;ft++)tt[ft]&&(ut=Math.max(ut,tt[ft].length));ot=a.rowDefs,rt=a.colDefs;var yt=ft=0,Ct=Math.min(a.topIndex,lt-1);if(0<ot.length){for(;Ct!==lt&&(ot[Ct]===void 0||ot[Ct].oa===0);)Ct++;Ct=Math.max(Math.min(Ct,lt-1),0),ft=-ot[Ct].position}var bt=Math.min(a.leftIndex,ut-1);if(0<rt.length){for(;bt!==ut&&(rt[bt]===void 0||rt[bt].oa===0);)bt++;bt=Math.max(Math.min(bt,ut-1),0),yt=-rt[bt].position}for(var Dt=0,qt=0;Dt!==lt&&ot[Dt]===void 0;)Dt++;for(;qt!==lt&&rt[qt]===void 0;)qt++;ut=a.part,a.Fb(Dt),a.Eb(qt);for(var Wt=0;Wt<y.length;Wt++){var ae=y[Wt];if(ae instanceof Gn&&ae.visible&&vc(ae)){if(ae.type===Gn.TableRow){rt=a.Fb(ae.row);var le=a.Eb(qt)}else rt=a.Fb(Dt),le=a.Eb(ae.column);ot=rt.position+ft+E,rt.oa!==0&&(ot+=rt.Io(Math.max(Dt,Ct))),rt=le.position+yt+z,le.oa!==0&&(rt+=le.Io(Math.max(qt,bt))),le=ae.measuredBounds,ae.Uk(),ae.actualBounds.ka();var ge=ae.actualBounds,be=fn.allocAt(ge.x,ge.y,ge.width,ge.height);ge.x=ae.type===Gn.TableRow?z:rt,ge.y=ae.type===Gn.TableColumn?E:ot,ge.width=le.width,ge.height=le.height,ae.actualBounds.freeze(),xd(ae,!1),$o(be,ge)||ut===null||(ut.oh(),ae.Pn(ut)),fn.free(be)}}for(Wt=ri.alloc(),ae=0;ae<lt;ae++)if(tt[ae]){for(ut=tt[ae].length,le=a.Fb(ae),ot=le.position+ft+E,le.oa!==0&&(ot+=le.Io(Math.max(Dt,Ct))),ge=0;ge<ut;ge++)if(tt[ae][ge]){be=a.Eb(ge),rt=be.position+yt+z,be.oa!==0&&(rt+=be.Io(Math.max(qt,bt)));for(var Je=tt[ae][ge],di=Je.length,Pi=0;Pi<di;Pi++){var yi=Je[Pi],Qn=yi.measuredBounds;Wt.h(0,0);for(var Fn=1;Fn<yi.rowSpan&&!(ae+Fn>=a.rowCount);Fn++){var xr=a.Fb(ae+Fn);xr.oa!==0&&(Wt.height+=xr.total)}for(Fn=1;Fn<yi.columnSpan&&!(ge+Fn>=a.columnCount);Fn++)xr=a.Eb(ge+Fn),xr.oa!==0&&(Wt.width+=xr.total);var gr=be.oa+Wt.width,Do=le.oa+Wt.height;Fn=rt,xr=ot;var aa=gr,Gs=Do,qs=rt,Nl=ot,Ks=gr,Mc=Do;rt+gr>x.width&&(Ks=Math.max(x.width-rt,0)),ot+Do>x.height&&(Mc=Math.max(x.height-ot,0));var ys=yi.alignment;if(ys.Xb()){ys=a.defaultAlignment,ys.sb()||(ys=so);var Xh=ys.x,Tl=ys.y,Ac=ys.offsetX;ys=ys.offsetY;var Hu=be.alignment,ph=le.alignment;Hu.sb()&&(Xh=Hu.x,Ac=Hu.offsetX),ph.sb()&&(Tl=ph.y,ys=ph.offsetY)}else Xh=ys.x,Tl=ys.y,Ac=ys.offsetX,ys=ys.offsetY;(isNaN(Xh)||isNaN(Tl))&&(Tl=Xh=.5,ys=Ac=0),Hu=Qn.width,ph=Qn.height;var Au=yi.margin,mu=Au.left+Au.right,rf=Au.top+Au.bottom,Jh=Gh(yi,le,be,!1);!isNaN(yi.desiredSize.width)||Jh!==zn&&Jh!==Bi||(Hu=Math.max(gr-mu,0)),!isNaN(yi.desiredSize.height)||Jh!==zn&&Jh!==$i||(ph=Math.max(Do-rf,0)),gr=yi.maxSize,Do=yi.minSize,Hu=Math.min(gr.width,Hu),ph=Math.min(gr.height,ph),Hu=Math.max(Do.width,Hu),ph=Math.max(Do.height,ph),gr=ph+rf,Fn+=aa*Xh-(Hu+mu)*Xh+Ac+Au.left,xr+=Gs*Tl-gr*Tl+ys+Au.top,yi.visible&&(fa(qs,Nl,Ks,Mc,Fn,xr,Qn.width,Qn.height)?yi.arrange(Fn,xr,Hu,ph):yi.arrange(Fn,xr,Hu,ph,new fn(qs,Nl,Ks,Mc)))}}}for(ri.free(Wt),a=0;a<b;a++)x=y[a],z=x instanceof Gn?x:null,z!==null&&vc(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Cm(){this.xa="Base"}Qe(Cm,Rs),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function bm(){this.xa="Base"}Qe(bm,Rs),bm.prototype.measure=function(){},bm.prototype.arrange=function(){};function Em(){this.xa="Base"}Qe(Em,Rs),Em.prototype.measure=function(a,y,x,b,E,z,tt){1<b.length&&ue("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,tt);var rt=b.measuredBounds,ot=b.margin,lt=ot.right+ot.left;if(ot=ot.top+ot.bottom,isFinite(y)||isFinite(x)){var ut=b.scale,ft=rt.width;rt=rt.height;var yt=Math.max(y-lt,0),Ct=Math.max(x-ot,0),bt=1;a.viewboxStretch===Ni?ft!==0&&rt!==0&&(bt=Math.min(yt/ft,Ct/rt)):ft!==0&&rt!==0&&(bt=Math.max(yt/ft,Ct/rt)),bt===0&&(bt=1e-4),b.Ca*=bt,ut!==b.scale&&(Ns(b,!0),b.measure(1/0,1/0,z,tt))}rt=b.measuredBounds,E.width=isFinite(y)?y:Math.max(rt.width+lt,0),E.height=isFinite(x)?x:Math.max(rt.height+ot,0)},Em.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=so),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-E*tt.y+tt.offsetY,b.width,b.height)};function vp(){this.xa="Base"}Qe(vp,Rs),vp.prototype.measure=function(){},vp.prototype.arrange=function(){},vp.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,tt=a.actualBounds,rt=z.width,ot=z.height,lt=Math.ceil(rt/E),ut=Math.ceil(ot/b),ft=a.gridOrigin,yt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,rt,ot),y.clip(),y.Se();for(var Ct=[],bt=a.O.s,Dt=bt.length,qt=0;qt<Dt;qt++){var Wt=bt[qt],ae=[];if(Ct.push(ae),Wt.visible){var le=Wt.interval;if(!(0>le)){Wt=pv(Wt.figure);for(var ge=0;ge<Dt;ge++)if(ge!==qt){var be=bt[ge];be.visible&&pv(be.figure)===Wt&&(be=be.interval,be>le&&ae.push(be))}}}}for(bt=a.O.s,Dt=bt.length,qt=0;qt<Dt;qt++){var Je=bt[qt];if(Je.visible&&(ae=Je.interval||1,Wt=Math.abs(ae),!(2>E*Wt*x))){if(le=Je.segmentIndex,(!isFinite(le)||isNaN(le))&&(le=0),0>le&&(le=Wt-Math.min(-le,Wt)),le=Math.round(le%Wt),Wt=Je.opacity,ge=1,Wt!==1){if(Wt===0)continue;ge=y.globalAlpha,y.globalAlpha=ge*Wt}be=Ct[qt];var di=!1,Pi=Je.strokeDashArray;if(Pi!==null&&(di=!0,y.js(Pi,Je.strokeDashOffset)),Je.figure==="LineV"&&Je.stroke!==null&&0<Je.strokeWidth){for(y.lineWidth=Je.strokeWidth,_a(a,y,Je.stroke,!1,!1,z,tt),y.beginPath(),Pi=Je=Math.floor((yt-E)/E);Pi<=Je+lt;Pi++){var yi=Pi*E+yt;0<=yi&&yi<=rt&&Lm(Pi,ae,le,be)&&(y.moveTo(yi,0),y.lineTo(yi,ot))}y.stroke(),y.Se()}else if(Je.figure==="LineH"&&Je.stroke!==null&&0<Je.strokeWidth){for(y.lineWidth=Je.strokeWidth,_a(a,y,Je.stroke,!1,!1,z,tt),y.beginPath(),Pi=Je=Math.floor((ft-b)/b);Pi<=Je+ut;Pi++)yi=Pi*b+ft,0<=yi&&yi<=ot&&Lm(Pi,ae,le,be)&&(y.moveTo(0,yi),y.lineTo(rt,yi));y.stroke(),y.Se()}else if(Je.figure==="BarV"&&Je.fill!==null)for(_a(a,y,Je.fill,!0,!1,z,tt),Je=Je.width,isNaN(Je)&&(Je=E),yi=Pi=Math.floor((yt-E)/E);yi<=Pi+lt;yi++){var Qn=yi*E+yt;0<=Qn+Je&&Qn<=rt&&Lm(yi,ae,le,be)&&y.fillRect(Qn,0,Je,ot)}else if(Je.figure==="BarH"&&Je.fill!==null)for(_a(a,y,Je.fill,!0,!1,z,tt),Je=Je.height,isNaN(Je)&&(Je=b),yi=Pi=Math.floor((ft-b)/b);yi<=Pi+ut;yi++)Qn=yi*b+ft,0<=Qn+Je&&Qn<=ot&&Lm(yi,ae,le,be)&&y.fillRect(0,Qn,rt,Je);di&&y.fs(),Wt!==1&&(y.globalAlpha=ge)}}y.restore(),y.Vc(!1)};function Lm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Mm(){this.xa="Base"}Qe(Mm,Rs),Mm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Ao||a instanceof $n){var tt=null,rt=null;if(a instanceof $n&&(tt=a),a instanceof Ao&&(rt=a,tt=rt.adornedPart,a.j===null&&(a.j=[])),tt instanceof $n){var ot=tt;if(z===0)xs(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var lt=a instanceof Ao?null:tt.path;y=tt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ut=ot.points,ft=tt.pointsCount;rt!==null?rt.Ul(!1):tt!==null&&tt.Ul(!1),rt=y.width;var yt=y.height,Ct=a.j;if(Ct.length=0,lt!==null){iS(a,rt,yt,lt);var bt=lt.measuredBounds;x.ed(bt),Ct.push(bt)}bt=kr.alloc();for(var Dt=Vt.alloc(),qt=Vt.alloc(),Wt=0;Wt<z;Wt++){var ae=b[Wt];if(ae!==lt)if(ae.isPanelMain&&ae instanceof Br){iS(a,rt,yt,ae);var le=ae.measuredBounds;x.ed(le),Ct.push(le)}else if(2>ft)ae.measure(1/0,1/0,0,0),le=ae.measuredBounds,x.ed(le),Ct.push(le);else{var ge=ae.segmentIndex,be=ae.segmentFraction,Je=ae.alignmentFocus;Je.Mc()&&(Je=so);var di=ae.segmentOrientation,Pi=ae.segmentOffset;if(isNaN(ge)){var yi=ot.ua;le=dn(),yi.Qu(be,le);var Qn=Vt.allocAt(le[0],le[1]);if(Qn.add(ot.i(0)),yi.type===ti.j?Qn.offset(-yi.startX,-yi.startY):(yi=yi.figures.first(),yi!==null&&Qn.offset(-yi.startX,-yi.startY)),yi=le[2],di!==Gl){var Fn=ot.computeAngle(ae,di,yi);ae.Kb=Fn}Fn=Qn.x-y.x;var xr=Qn.y-y.y;Vt.free(Qn),kn(le)}else if(ge<-ft||ge>=ft)le=Vt.alloc(),ot.vg(),ot.computeMidPoint(le),yi=ot.midAngle,di!==Gl&&(Fn=ot.computeAngle(ae,di,yi),ae.Kb=Fn),Fn=le.x-y.x,xr=le.y-y.y,Vt.free(le);else{if(Fn=0,0<=ge?(xr=ut.M(ge),le=ge<ft-1?ut.M(ge+1):xr):(Fn=ft+ge,xr=ut.M(Fn),le=0<Fn?ut.M(Fn-1):xr),xr.Xa(le)){0<=ge?(yi=0<ge?ut.M(ge-1):xr,Fn=ge<ft-2?ut.M(ge+2):le):(yi=Fn<ft-1?ut.M(Fn+1):xr,Fn=1<Fn?ut.M(Fn-2):le),Qn=yi.Bf(xr);var gr=le.Bf(Fn);yi=Qn>gr+10?0<=ge?yi.ab(xr):xr.ab(yi):gr>Qn+10?0<=ge?le.ab(Fn):Fn.ab(le):0<=ge?yi.ab(Fn):Fn.ab(yi)}else yi=0<=ge?xr.ab(le):le.ab(xr);di!==Gl&&(Fn=ot.computeAngle(ae,di,yi),ae.Kb=Fn),Fn=xr.x+(le.x-xr.x)*be-y.x,xr=xr.y+(le.y-xr.y)*be-y.y}ae.measure(1/0,1/0,0,0),le=ae.measuredBounds,Qn=ae.naturalBounds;var Do=0;ae instanceof Br&&(Do=ae.strokeWidth),gr=Qn.width+Do;var aa=Qn.height+Do;bt.reset(),bt.translate(-le.x,-le.y),bt.scale(ae.scale,ae.scale),bt.rotate(di===Gl?ae.angle:yi,gr/2,aa/2),di!==Fp&&di!==Tp||bt.rotate(90,gr/2,aa/2),di!==Np&&di!==Dp||bt.rotate(-90,gr/2,aa/2),di===i0&&(45<yi&&135>yi||225<yi&&315>yi)&&bt.rotate(-yi,gr/2,aa/2),Qn=new fn(0,0,gr,aa),Dt.xi(Qn,Je),bt.Ga(Dt),Je=-Dt.x+Do/2*ae.scale,ae=-Dt.y+Do/2*ae.scale,qt.assign(Pi),Do=isNaN(Pi.x);var Gs=isNaN(Pi.y);if(Do||Gs){gr=gr/2+3,aa=aa/2+3;var qs=45<=yi&&135>=yi,Nl=225<=yi&&315>=yi;di===Gl&&(qs||Nl)?(qt.x=Gs?gr:Pi.y,qt.y=Do?aa:Pi.x,qs?0<=ge||isNaN(ge)&&.5>be||!Do||(qt.y=-aa):Nl&&((0<=ge||isNaN(ge)&&.5>be)&&Do&&(qt.y=-aa),Gs&&(qt.x=-gr))):(Do&&(qt.x=0<=ge||isNaN(ge)&&.5>be?gr:-gr),Gs&&(qt.y=-aa),qt.rotate(yi))}else qt.rotate(yi);Fn+=qt.x,xr+=qt.y,Qn.set(le),Qn.h(Fn+Je,xr+ae,le.width,le.height),Ct.push(Qn),x.ed(Qn)}}if(tt!==null)for(b=tt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),xs(E,x.width||0,x.height||0),kr.free(bt),Vt.free(Dt),Vt.free(qt)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ao||a instanceof $n){var b=a,E=null;a instanceof Ao&&(E=a,b=E.adornedPart);var z=a instanceof Ao?null:b.path,tt=a.j;if(tt.length!==0){var rt=0;if(z!==null&&rt<tt.length){var ot=tt[rt];rt++,z.arrange(ot.x-a.jg.x,ot.y-a.jg.y,ot.width,ot.height)}for(ot=0;ot<x;ot++){var lt=y[ot];if(lt!==z&&rt<tt.length){var ut=tt[rt];rt++,lt.arrange(ut.x-a.jg.x,ut.y-a.jg.y,ut.width,ut.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof $n)for(z=a.labelNodes;z.next();){var ft=a;tt=z.value,rt=tt.segmentIndex,ot=tt.segmentFraction;var yt=tt.alignmentFocus;if(lt=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(rt)){var Ct=ft.ua,bt=dn();Ct.Qu(ot,bt);var Dt=Vt.allocAt(bt[0],bt[1]);Dt.add(ft.i(0)),Ct.type===ti.j||(Ct=Ct.figures.first()),Dt.offset(-Ct.startX,-Ct.startY),Ct=bt[2],lt!==Gl&&(ft=ft.computeAngle(tt,lt,Ct),tt.angle=ft),ft=Dt.x;var qt=Dt.y;Vt.free(Dt),kn(bt)}else if(rt<-x||rt>=x)bt=Vt.alloc(),Ct=ft,qt=bt,Ct.vg(),Ct.computeMidPoint(qt),Ct=ft.midAngle,lt!==Gl&&(ft=ft.computeAngle(tt,lt,Ct),tt.angle=ft),ft=bt.x,qt=bt.y,Vt.free(bt);else{if(Dt=0,0<=rt?(bt=y.s[rt],qt=rt<x-1?y.s[rt+1]:bt):(Dt=x+rt,bt=y.s[Dt],qt=0<Dt?y.s[Dt-1]:bt),bt.Xa(qt)){0<=rt?(Ct=0<rt?y.s[rt-1]:bt,Dt=rt<x-2?y.s[rt+2]:qt):(Ct=Dt<x-1?y.s[Dt+1]:bt,Dt=1<Dt?y.s[Dt-2]:qt);var Wt=Ct.Bf(bt),ae=qt.Bf(Dt);Ct=Wt>ae+10?0<=rt?Ct.ab(bt):bt.ab(Ct):ae>Wt+10?0<=rt?qt.ab(Dt):Dt.ab(qt):0<=rt?Ct.ab(Dt):Dt.ab(Ct)}else Ct=0<=rt?bt.ab(qt):qt.ab(bt);lt!==Gl&&(ft=ft.computeAngle(tt,lt,Ct),tt.angle=ft),ft=bt.x+(qt.x-bt.x)*ot,qt=bt.y+(qt.y-bt.y)*ot}if(yt.ys())tt.location=new Vt(ft,qt);else{yt.Mc()&&(yt=so),bt=kr.alloc(),bt.reset(),bt.scale(tt.scale,tt.scale),bt.rotate(tt.angle,0,0);var le=tt.naturalBounds;Dt=fn.allocAt(0,0,le.width,le.height),Wt=Vt.alloc(),Wt.xi(Dt,yt),bt.Ga(Wt),yt=-Wt.x,ae=-Wt.y;var ge=le.width,be=le.height;le=Vt.alloc(),le.assign(ut);var Je=isNaN(ut.x),di=isNaN(ut.y);if(Je||di){ge=ge/2+3,be=be/2+3;var Pi=45<=Ct&&135>=Ct,yi=225<=Ct&&315>=Ct;lt===Gl&&(Pi||yi)?(le.x=di?ge:ut.y,le.y=Je?be:ut.x,Pi?0<=rt||isNaN(rt)&&.5>ot||!Je||(le.y=-be):yi&&((0<=rt||isNaN(rt)&&.5>ot)&&Je&&(le.y=-be),di&&(le.x=-ge))):(Je&&(le.x=0<=rt||isNaN(rt)&&.5>ot?ge:-ge),di&&(le.y=-be),le.rotate(Ct))}else le.rotate(Ct);ft+=le.x,qt+=le.y,bt.pp(Dt),yt+=Dt.x,ae+=Dt.y,rt=Vt.allocAt(ft+yt,qt+ae),tt.move(rt),Vt.free(rt),Vt.free(le),Vt.free(Wt),fn.free(Dt),kr.free(bt)}}E!==null?E.Ul(!1):b.Ul(!1),b=TS(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Vt.free(b)}};function iS(a,y,x,b){if(Iu(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ao&&a.type===Gn.Link&&a.adornedObject instanceof Br&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof $n&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Ao&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Ns(b,!1)}}function yp(){this.xa="Base"}Qe(yp,Rs),yp.prototype.measure=function(a,y,x,b,E,z,tt){var rt=a.Pb();a.graduatedBounds=[];var ot=rt.margin,lt=ot.right+ot.left,ut=ot.top+ot.bottom;rt.measure(y,x,z,tt);var ft=rt.measuredBounds,yt=new fn(-ot.left,-ot.top,Math.max(ft.width+lt,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(yt),E.assign(yt);for(var Ct=rt.geometry,bt=rt.strokeWidth,Dt=Ct.flattenedSegments,qt=Ct.flattenedLengths,Wt=Ct.flattenedTotalLength,ae=Dt.length,le=0,ge=0,be=dn(),Je=0;Je<ae;Je++){var di=Dt[Je],Pi=[];ge=le=0;for(var yi=di.length,Qn=0;Qn<yi;Qn+=2){var Fn=di[Qn],xr=di[Qn+1];if(Qn!==0){var gr=180*Math.atan2(xr-ge,Fn-le)/Math.PI;0>gr&&(gr+=360),Pi.push(gr)}le=Fn,ge=xr}be.push(Pi)}if(a.graduatedIntervals===null){for(var Do=[],aa=a.O.s,Gs=aa.length,qs=0;qs<Gs;qs++){var Nl=aa[qs],Ks=[];if(Do.push(Ks),Nl.visible){var Mc=Nl.interval;if(!(0>Mc)){for(var ys=0;ys<Gs;ys++)if(ys!==qs){var Xh=aa[ys];if(Xh.visible&&Nl.constructor===Xh.constructor){var Tl=Xh.interval;Tl>Mc&&Ks.push(Tl)}}}}}a.graduatedIntervals=Do}var Ac=a.graduatedIntervals,Hu=a.O.s,ph=Hu.length,Au=0,mu=0,rf=Wt;a.graduatedMarks=[];for(var Jh,$g=0;$g<ph;$g++){var ku=Hu[$g];if(Jh=[],ku.visible&&ku!==rt){var Dl=Math.abs(ku.interval),im=a.graduatedTickUnit;if(!(2>im*Dl*Wt/a.graduatedRange&&ku.graduatedSkip===null)){var dg=qt[0][0],hd=0,vu=0;mu=Wt*ku.graduatedStart-1e-4,rf=Wt*ku.graduatedEnd+1e-4;var Bf=im*Dl,Fu=a.graduatedTickBase;if(Fu<a.graduatedMin){var of=(a.graduatedMin-Fu)/Bf;of=of%1===0?of:Math.floor(of+1),Fu+=of*Bf}else Fu>a.graduatedMin+Bf&&(Fu-=Math.floor((Fu-a.graduatedMin)/Bf)*Bf);for(var V0=Ac[$g],rm=Fu,Hy=1e-6*a.graduatedMax,Nd=1;Fu<=a.graduatedMax+Hy;Nd++){t:{for(var $d=V0.length,cg=0;cg<$d;cg++){var af=(Fu-a.graduatedTickBase)%(V0[cg]*a.graduatedTickUnit),qg=1e-6*a.graduatedTickUnit;if(af<qg&&af>-qg){var sf=!1;break t}}sf=!0}if(sf&&(Fu>a.graduatedMax&&(Fu=a.graduatedMax),ku.graduatedSkip===null||ku instanceof la&&!ku.graduatedSkip(Fu,ku)||ku instanceof Br&&!ku.graduatedSkip(Fu,ku))&&(Au=(Fu-a.graduatedMin)*Wt/a.graduatedRange,Au>Wt&&(Au=Wt),mu<=Au&&Au<=rf)){for(var Td=be[hd][vu],kc=qt[hd][vu];hd<qt.length;){for(;Au>dg&&vu<qt[hd].length-1;)vu++,Td=be[hd][vu],kc=qt[hd][vu],dg+=kc;if(Au<=dg)break;hd++,vu=0,Td=be[hd][vu],kc=qt[hd][vu],dg+=kc}var yu=Dt[hd],dd=yu[2*vu],Y0=yu[2*vu+1],qd=(Au-(dg-kc))/kc,_g=new Vt(dd+(yu[2*vu+2]-dd)*qd+bt/2-Ct.bounds.x,Y0+(yu[2*vu+3]-Y0)*qd+bt/2-Ct.bounds.y);_g.scale(rt.scale,rt.scale);t:{var Qh=Td,Of=be[hd];if(!(.5005>qd&&.4995<qd)){var cd=Qh;if(.5>qd?0<vu?cd=Of[vu-1]:Ae.$(yu[0],yu[yu.length-2])&&Ae.$(yu[1],yu[yu.length-1])&&(cd=Of[Of.length-1]):.5<qd&&(vu+1<Of.length?cd=Of[vu+1]:Ae.$(yu[0],yu[yu.length-2])&&Ae.$(yu[1],yu[yu.length-1])&&(cd=Of[0])),Qh!==cd){var fg=Math.abs(Qh-cd);if(180<fg&&(Qh<cd?Qh+=360:cd+=360,fg=Math.abs(Qh-cd)),5e-4>qd||.9995<qd){Td=(Qh+cd)/2%360;break t}if(10>fg){var tp=1-Math.abs(.5-qd);Td=(Qh*tp+cd*(1-tp))%360;break t}}}Td=Qh}if(ku instanceof la){var Th="";ku.graduatedFunction!==null?(Th=ku.graduatedFunction(Fu,ku),Th=Th!=null?Th.toString():""):Th=(+Fu.toFixed(2)).toString(),Th!==""&&Jh.push({$l:_g,angle:Td,text:Th})}else Jh.push({$l:_g,angle:Td})}Fu=rm+Nd*Bf}}}a.graduatedMarks.push(Jh)}kn(be);var ol=a.graduatedMarks;if(ol!==null)for(var om=b.length,Xl=0;Xl<om;Xl++){var Ss=b[Xl],Jl=ol[Xl];if(Ss.visible&&Ss!==rt&&Jl.length!==0){if(Ss instanceof Br){var _d=a,Fc=E,If=Ss.alignmentFocus;If.Mc()&&(If=Ql);var Wy=Ss.angle;Ss.Kb=0,Ss.measure(1/0,1/0,0,0),Ss.Kb=Wy;var U0=Ss.measuredBounds,ep=U0.width,Rf=U0.height,gg=fn.allocAt(0,0,ep,Rf),Su=Vt.alloc();Su.xi(gg,If),fn.free(gg);for(var tc=-Su.x,$h=-Su.y,eh=new fn,lf=Jl.length,np=0;np<lf;np++)for(var uf=Jl[np],X0=uf.$l.x,ip=uf.$l.y,os=uf.angle,Dh=0;4>Dh;Dh++){switch(Dh){case 0:Su.h(tc,$h);break;case 1:Su.h(tc+ep,$h);break;case 2:Su.h(tc,$h+Rf);break;case 3:Su.h(tc+ep,$h+Rf)}Su.rotate(os+Ss.angle),Su.offset(X0,ip),np===0&&Dh===0?eh.h(Su.x,Su.y,0,0):eh.Ye(Su),Su.offset(-X0,-ip),Su.rotate(-os-Ss.angle)}Vt.free(Su),_d.graduatedBounds!==null&&_d.graduatedBounds.push(eh),No(Fc,eh.x,eh.y,eh.width,eh.height)}else if(Ss instanceof la){var mh=a,J0=E;mh.temporaryTextBlock===null&&(mh.temporaryTextBlock=new la);var Nu=mh.temporaryTextBlock;yS(Nu,Ss);var Nc=Ss.alignmentFocus;Nc.Mc()&&(Nc=Ql);for(var vh=Ss.segmentOrientation,rp=Ss.segmentOffset,hf=new fn,am=0,op=0,fd=0,zf=0,df=0,ap=Jl.length,Tc=0;Tc<ap;Tc++){var Dd=Jl[Tc];am=Dd.$l.x,op=Dd.$l.y,fd=Dd.angle,df=zf=Ss.angle,vh!==Gl&&(df=vh===kp||vh===n0?fd+Ss.angle:fd,zf=$n.computeAngle(vh,df)),Nu.Kb=zf,Nu.text=Dd.text||"",Nu.measure(1/0,1/0,0,0);var Dc=Nu.measuredBounds,ec=Nu.naturalBounds,Bc=ec.width,jf=ec.height,qh=kr.alloc();qh.reset(),qh.translate(-Dc.x,-Dc.y),qh.scale(Nu.scale,Nu.scale),qh.rotate(df,Bc/2,jf/2),vh!==Fp&&vh!==Tp||qh.rotate(90,Bc/2,jf/2),vh!==Np&&vh!==Dp||qh.rotate(-90,Bc/2,jf/2),vh===i0&&(45<fd&&135>fd||225<fd&&315>fd)&&qh.rotate(-fd,Bc/2,jf/2);var pg=fn.allocAt(0,0,Bc,jf),Oc=Vt.alloc();Oc.xi(pg,Nc),qh.Ga(Oc);var mg=-Oc.x,Zy=-Oc.y,nc=Vt.alloc();nc.assign(rp),isNaN(nc.x)&&(nc.x=Bc/2+3),isNaN(nc.y)&&(nc.y=-(jf/2+3)),nc.rotate(fd),am+=nc.x+mg,op+=nc.y+Zy;var Hf=new fn(am,op,Dc.width,Dc.height),sm=new fn(Dc.x,Dc.y,Dc.width,Dc.height),Gy=new fn(ec.x,ec.y,ec.width,ec.height);Dd.Sz=zf,Dd.lineCount=Nu.lineCount,Dd.lines=[Nu.Cb,Nu.Ih,Nu.df,Nu.Le,Nu.Qc,Nu.Qb,Nu.ze],Dd.actualBounds=Hf,Dd.measuredBounds=sm,Dd.naturalBounds=Gy,Tc===0?hf.assign(Hf):hf.ed(Hf),Vt.free(nc),Vt.free(Oc),fn.free(pg),kr.free(qh)}mh.graduatedBounds!==null&&mh.graduatedBounds.push(hf),No(J0,hf.x,hf.y,hf.width,hf.height)}Ns(Ss,!1)}}},yp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,tt=0,rt=z[tt];tt++,b!==null&&b.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height);for(var ot=y.length,lt=0;lt<ot;lt++){var ut=y[lt];rt=E[lt],ut.visible&&ut!==b&&rt.length!==0&&(rt=z[tt],tt++,ut.arrange(rt.x-x.x,rt.y-x.y,rt.width,rt.height))}a.graduatedBounds=null}}},yp.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,tt=E.height;E=y instanceof Eu,y.save(),y.beginPath(),y.rect(-1,-1,z+1,tt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),tt=a.Df()*x.scale,0>=tt&&(tt=1);for(var rt=z.actualBounds,ot=a.O.s,lt=a.graduatedMarks,ut=ot.length,ft=0;ft<ut;ft++){var yt=ot[ft],Ct=lt[ft],bt=Ct.length;if(yt.visible&&yt!==z&&Ct.length!==0){if(yt instanceof Br){if(!(2>a.graduatedTickUnit*yt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&yt.graduatedSkip===null)){var Dt=yt.measuredBounds,qt=yt.strokeWidth*yt.scale,Wt=yt.alignmentFocus;Wt.Mc()&&(Wt=Ql);for(var ae=0;ae<bt;ae++){var le=Ct[ae].$l,ge=Ct[ae].angle,be=Wt,Je=yt.Ab;Je.reset(),Je.translate(le.x+rt.x,le.y+rt.y),Je.rotate(ge+yt.angle,0,0),Je.translate(-Dt.width*be.x+be.offsetX+qt/2,-Dt.height*be.y+be.offsetY+qt/2),Je.scale(yt.scale,yt.scale),hh(yt,!1),yt.wh.set(yt.Ab),yt.Kk=yt.scale,Xu(yt,!1),yt.gc(y,x),E&&(a.svg.appendChild(yt.svg),yt.svg=null),yt.Ab.reset()}}}else if(yt instanceof la)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new la),Dt=a.temporaryTextBlock,yS(Dt,yt),qt=0;qt<bt;qt++)Wt=Ct[qt],Wt.actualBounds&&Wt.measuredBounds&&Wt.naturalBounds&&(Dt.ec=Wt.text||"",Dt.Kb=Wt.Sz||0,Dt.Gc=Wt.lineCount||0,ae=Wt.lines,ae!==void 0&&(Dt.Cb=ae[0],Dt.Ih=ae[1],Dt.df=ae[2],Dt.Le=ae[3],Dt.Qc=ae[4],Dt.Qb=ae[5],Dt.ze=ae[6]),Wt.naturalBounds&&(Dt.dc=Wt.naturalBounds),Wt.actualBounds&&(ae=Wt.actualBounds,Dt.arrange(ae.x,ae.y,ae.width,ae.height)),ae=Wt.actualBounds,Dt.arrange(ae.x,ae.y,ae.width,ae.height),le=Wt.measuredBounds,Wt=Wt.naturalBounds,ge=Dt.Ab,ge.reset(),ge.translate(ae.x+rt.x,ae.y+rt.y),ge.translate(-le.x,-le.y),Dt.no(ge,Wt.x,Wt.y,Wt.width,Wt.height),hh(Dt,!1),Dt.wh.set(Dt.Ab),Dt.Kk=Dt.scale,Xu(Dt,!1),Dt.Ng=yt.part,Dt.Me=yt.panel,Dt.gc(y,x),Dt.Me=null,Dt.Ng=null,E&&(a.svg.appendChild(Dt.svg),Dt.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Gn(a,y){if(Le.call(this),this.na=null,a===void 0)this.na=Gn.Position;else if(typeof a=="string"){var x=Lh.I(a);x!==null&&(this.na=x)}else a instanceof Rs?this.na=a:a&&(this.na=Gn.Position,y=a);this.na===null&&ue("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Gn.Grid?1048576:0),this.O=new bn,this.yb=dl,this.Tm=Bo,this.Uf=br,this.$g=null,this.$e="",this.jg=new fn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Ni,this.jn=Ta,this.kn=fo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Qe(Gn,Le),Gn.prototype.cloneProtected=function(a){Le.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},Gn.prototype.Af=function(a){Le.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},Gn.prototype.copy=function(){var a=Le.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,tt=z.count;if(z.Gb(tt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof ci&&(z.Te=!0);var rt=a.diagram;rt!==null&&rt.undoManager.isUndoingRedoing||z.cb(Xn,"elements",a,null,E,null,tt)}}return a}return null},Et=Gn.prototype,Et.toString=function(){return"Panel("+this.type.name+")#"+bo(this)},Et.Pn=function(a){Le.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Et.hh=function(a,y){if(this.na===Gn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Gn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Gn.Table)if(a.yc(),a instanceof Eu){var x=a.yd;a.yd=gm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===Gn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,tt=0;tt<z;tt++){var rt=E[tt];x&&rt===b&&(a.clipInsteadOfFill=!0),rt.gc(a,y),x&&rt===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Am(a,y,!0,x,!0),b!==null&&Am(a,y,!1,b,!0),x!==null&&rS(a,y,!0,x),b!==null&&rS(a,y,!1,b),x!==null&&Am(a,y,!0,x,!1),b!==null&&Am(a,y,!1,b,!1)}function rS(a,y,x,b){for(var E=b.length,z=a.actualBounds,tt=a.naturalBounds,rt=!0,ot=0;ot<E;ot++){var lt=b[ot];if(lt!==void 0&&lt.actual!==0)if(rt)rt=!1;else{if(x){if(lt.position>tt.height)continue}else if(lt.position>tt.width)continue;var ut=lt.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=lt.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){_a(a,y,ft,!1,!1,tt,z),ft=!1;var yt=lt.separatorDashArray;yt===null&&(yt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),yt!==null&&(ft=!0,y.js(yt,0)),y.beginPath(),yt=lt.position+ut,x?yt>tt.height&&(ut-=yt-tt.height):yt>tt.width&&(ut-=yt-tt.width),lt=lt.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(lt+=ut.top,yt=tt.width-ut.right,y.moveTo(ut.left,lt),y.lineTo(yt,lt)):(lt+=ut.left,yt=tt.height-ut.bottom,y.moveTo(lt,ut.top),y.lineTo(lt,yt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function Am(a,y,x,b,E){for(var z=b.length,tt=a.actualBounds,rt=a.naturalBounds,ot=oS(a,!0),lt=oS(a,!1),ut=0;ut<z;ut++){var ft=b[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==E&&ft.actual!==0){var yt=x?tt.height:tt.width;if(!(ft.position>yt)){var Ct=ft.Wc(),bt=ft.separatorStrokeWidth;isNaN(bt)&&(bt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Dt=ft.separatorStroke;Dt===null&&(Dt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Dt===null||ft.index===(x?ot:lt))&&(bt=0),Ct-=bt,bt=ft.position+bt,Ct+=ft.actual,bt+Ct>yt&&(Ct=yt-bt),0>=Ct||(yt=a.yb,_a(a,y,ft.background,!0,!1,rt,tt),x?y.fillRect(yt.left,bt+yt.top,tt.width-(yt.left+yt.right),Ct):y.fillRect(bt+yt.left,yt.top,Ct,tt.height-(yt.top+yt.bottom)))}}}}function oS(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function pv(a){return a==="LineV"||a==="BarV"}Et.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Et.kk=function(a,y,x){if(!Le.prototype.kk.call(this,a,y,x))return!1;if(this.type===Gn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===Gn.Grid||this.na===Gn.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},Et.nk=function(){return!0},Et.$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,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var rt=y[tt].actualBounds;E=tt===0?rt.x:Math.min(rt.x,E),z=tt===0?rt.y:Math.min(rt.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 Le.prototype.$o.call(this,a,y,x,b)},Et.Sj=function(a,y,x,b,E){var z=this.se(),tt=this.transform,rt=1/(tt.m11*tt.m22-tt.m12*tt.m21),ot=tt.m22*rt,lt=-tt.m12*rt,ut=-tt.m21*rt,ft=tt.m11*rt,yt=rt*(tt.m21*tt.dy-tt.m22*tt.dx),Ct=rt*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,Ae.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*ot+y*ut+yt,rt=a*lt+y*ft+Ct,a=x*ot+b*ut+yt,ot=x*lt+b*ft+Ct,E.h(0,0),x=this.naturalBounds,z=Ae.Ff(0,0,x.width,x.height,z,rt,a,ot,E),E.transform(tt),z;z||(ot=1,ut=lt=0,ft=1,Ct=yt=0),rt=a*ot+y*ut+yt,a=a*lt+y*ft+Ct,ot=x*ot+b*ut+yt,x=x*lt+b*ft+Ct,E.h(ot,x),b=(ot-rt)*(ot-rt)+(x-a)*(x-a),lt=!1,ft=this.O.s,Ct=ft.length,ut=Vt.alloc(),yt=null,y=1/0;var bt=null,Dt=this.isClipping&&this.na===Gn.Spot;Dt&&(bt=Vt.alloc(),yt=this.Pb(),(lt=yt.Sj(rt,a,ot,x,bt))&&(y=(rt-bt.x)*(rt-bt.x)+(a-bt.y)*(a-bt.y)));for(var qt=0;qt<Ct;qt++){var Wt=ft[qt];Wt.visible&&Wt!==yt&&Wt.Sj(rt,a,ot,x,ut)&&(lt=!0,Wt=(rt-ut.x)*(rt-ut.x)+(a-ut.y)*(a-ut.y),Wt<b&&(b=Wt,E.set(ut)))}return Dt&&(y>b&&E.set(bt),Vt.free(bt)),Vt.free(ut),z&&E.transform(tt),lt},Et.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Le.prototype.Gj.call(this)},Et.v=function(a){if(!Iu(this)){Le.prototype.v.call(this,a),a=null,(this.na===Gn.Auto||this.na===Gn.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=nu(E,!1);(E instanceof Zl||E instanceof Gn||E instanceof la||z!==Dn)&&E.v(!0)}}}},Et.Uj=function(){if(!Iu(this)){Ns(this,!0),xd(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Et.Uk=function(){if(!(this.l&2048)){hh(this,!0),Xu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Et.Wu=function(){Xu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Et.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,b=tt.height),x=Math.max(x,tt.width),b=Math.max(b,tt.height);var rt=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,rt.width)),isNaN(z.height)||(y=Math.min(z.height,rt.height)),a=Math.max(x,a),y=Math.max(b,y);var ot=this.yb;a=Math.max(a-ot.left-ot.right,0),y=Math.max(y-ot.top-ot.bottom,0);var lt=this.O.s;lt.length!==0&&this.na.measure(this,a,y,lt,E,x,b),a=E.width+ot.left+ot.right,ot=E.height+ot.top+ot.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(ot=z.height),a=Math.min(rt.width,a),ot=Math.min(rt.height,ot),a=Math.max(tt.width,a),ot=Math.max(tt.height,ot),a=Math.max(x,a),ot=Math.max(b,ot),xs(E,a,ot),xs(this.naturalBounds,a,ot),this.Ge(0,0,a,ot)},Et.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function Xd(a){return a.part!==null?a.part.locationObject:null}Et.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=nu(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var tt=this.Kg,rt=tt.left+tt.right;switch(tt=tt.top+tt.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 zn:this.v(!0),this.measure(x+rt,b+tt,0,0);break;case Bi:this.v(!0),this.measure(x+rt,z+tt,0,0);break;case $i:this.v(!0),this.measure(y+rt,b+tt,0,0)}}this.na.arrange(this,E,this.jg)}},Et.gh=function(a){var y=this.naturalBounds,x=Xd(this);if(fa(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Vt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&($r(E.set(a),z.transform),z.ca(E)))return Vt.free(E),!0}return Vt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Et.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},Et.qm=function(a,y){if(y(this,a),a instanceof Gn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Lf(a,y){aS(a,a,y)}function aS(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof Gn&&aS(a,z,x)}}function vx(a,y){sS(a,a,y)}function sS(a,y,x){if(x(y),y instanceof Gn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)sS(a,y[E],x)}}Et.Nl=function(a){return lS(this,this,a)};function lS(a,y,x){if(x(y))return y;if(y instanceof Gn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=lS(a,y[E],x);if(z!==null)return z}}return null}Et.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Sp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Gn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function uS(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Gn?x=Math.max(x,uS(E)):E instanceof Br&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Et.se=function(){return!(this.type===Gn.TableRow||this.type===Gn.TableColumn)};function vc(a){return a.type===Gn.TableRow||a.type===Gn.TableColumn}Et.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Hl(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),tt=z?a:$r(Vt.allocAt(a.x,a.y),this.transform),rt=this.diagram,ot=10,lt=5;if(rt!==null&&(ot=rt.Ql("extraTouchArea"),lt=ot/2),fa(-(lt*E),-(lt*E),b.width+ot*E,b.height+ot*E,tt.x,tt.y)){if(!this.isAtomic){E=this.O.s;var ut=E.length;if(rt=Vt.alloc(),lt=(ot=this.isClipping&&this.na===Gn.Spot)?this.Pb():null,ot&&(lt.se()?$r(rt.set(a),lt.transform):rt.set(a),!lt.ca(rt)))return Vt.free(rt),z||Vt.free(tt),null;for(var ft=Xd(this);ut--;){var yt=E[ut];if((yt.visible||yt===ft)&&(yt.se()?$r(rt.set(a),yt.transform):rt.set(a),!ot||yt!==lt)){var Ct=null;if(yt instanceof Gn?Ct=yt.ic(rt,y,x):yt.pickable===!0&&yt.ca(rt)&&(Ct=yt),Ct!==null&&(y!==null&&(Ct=y(Ct)),Ct!==null&&(x===null||x(Ct))))return Vt.free(rt),z||Vt.free(tt),Ct}}Vt.free(rt)}return this.background===null&&this.areaBackground===null?(z||Vt.free(tt),null):(a=fa(0,0,b.width,b.height,tt.x,tt.y)?this:null,z||Vt.free(tt),a)}return z||Vt.free(tt),null},Et.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(),tt=z?a:$r(Vt.allocAt(a.x,a.y),this.transform);if(E=fa(0,0,E.width,E.height,tt.x,tt.y),vc(this)||E){if(!this.isAtomic){for(var rt=this.O.s,ot=rt.length,lt=Vt.alloc(),ut=Xd(this);ot--;){var ft=rt[ot];if(ft.visible||ft===ut){ft.se()?$r(lt.set(a),ft.transform):lt.set(a);var yt=ft;ft=ft instanceof Gn?ft:null,(ft!==null?ft.ji(lt,y,x,b):yt.ca(lt))&&yt.pickable!==!1&&(y!==null&&(yt=y(yt)),yt===null||x!==null&&!x(yt)||b.add(yt))}}Vt.free(lt)}return z||Vt.free(tt),E&&(this.background!==null||this.areaBackground!==null)}return z||Vt.free(tt),!1},Et.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 tt=z;if(z===void 0&&(tt=kr.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,E),z===void 0&&kr.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var rt=Xd(this),ot=this.O.s,lt=ot.length;lt--;){var ut=ot[lt];if(ut.visible||ut===rt){var ft=ut.actualBounds,yt=this.naturalBounds;ft.x>yt.width||ft.y>yt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof Gn?ut:null,yt=kr.alloc(),yt.set(tt),(ut!==null?ut.Cf(a,y,x,b,E,yt):Zs(ft,a,b,yt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||E.add(ft)),kr.free(yt))}}return z===void 0&&kr.free(tt),b}return z===void 0&&kr.free(tt),!1};function mv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var tt=E[z];if(tt.visible){var rt=tt.actualBounds,ot=a.naturalBounds;rt.x>ot.width||rt.y>ot.height||0>rt.x+rt.width||0>rt.y+rt.height||(tt instanceof Gn&&mv(tt,y,x,b),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||b.add(tt))}}}Et.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 tt=this.naturalBounds,rt=this.se(),ot=rt?a:$r(Vt.allocAt(a.x,a.y),this.transform),lt=rt?y:$r(Vt.allocAt(y.x,y.y),this.transform),ut=ot.Bf(lt),ft=0<ot.x&&ot.x<tt.width&&0<ot.y&&ot.y<tt.height||Zo(ot.x,ot.y,0,0,0,tt.height)<=ut||Zo(ot.x,ot.y,0,tt.height,tt.width,tt.height)<=ut||Zo(ot.x,ot.y,tt.width,tt.height,tt.width,0)<=ut||Zo(ot.x,ot.y,tt.width,0,0,0)<=ut;if(tt=ot.zd(0,0)<=ut&&ot.zd(0,tt.height)<=ut&&ot.zd(tt.width,0)<=ut&&ot.zd(tt.width,tt.height)<=ut,rt||(Vt.free(ot),Vt.free(lt)),ft){if(!this.isAtomic){ot=Vt.alloc(),lt=Vt.alloc(),ut=Xd(this);for(var yt=this.O.s,Ct=yt.length;Ct--;){var bt=yt[Ct];if(bt.visible||bt===ut){var Dt=bt.actualBounds,qt=this.naturalBounds;(!rt||!(Dt.x>qt.width||Dt.y>qt.height||0>Dt.x+Dt.width||0>Dt.y+Dt.height))&&(bt.se()?(Dt=bt.transform,$r(ot.set(a),Dt),$r(lt.set(y),Dt)):(ot.set(a),lt.set(y)),Dt=bt,bt=bt instanceof Gn?bt:null,(bt!==null?bt.og(ot,lt,x,b,E,z):Dt.tx(ot,lt,E))&&(x!==null&&(Dt=x(Dt)),Dt===null||b!==null&&!b(Dt)||z.add(Dt)))}}Vt.free(ot),Vt.free(lt)}return E?ft:tt}return!1};function vv(a){var y=null;return a instanceof Br&&(y=a.spot1,y===Bo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ls),y}function yv(a){var y=null;return a instanceof Br&&(y=a.spot2,y===Bo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ml),y}Et.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},Et.M=function(a){return this.O.M(a)},Et.Gb=function(a,y){y instanceof ji&&ue("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&ue("Cannot make a Panel contain itself: "+this.toString()),ue("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&ue("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!==Gn.Grid||y instanceof Br||ue("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Gn.Graduated||y instanceof Br||y instanceof la||ue("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 ki),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,tt=this.O.s,rt=tt.length,ot=0;ot<rt;ot++)if(tt[ot]===y){z=ot;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else ue("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),Iu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Gn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Fm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof ci&&(x.Te=!0),x.Te&&x instanceof ci&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(hi,"elements",this,y,null,b,null),x.cb(Xn,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Et.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)},Et.mb=function(a){0<=a&&this.pc(a,!0)},Et.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),Ns(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 ci&&(b instanceof Gn?b.qm(b,function(tt,rt){Zv(z,rt,y)}):Zv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(hi,"elements",this,b,null,a,null))},Et.Fb=function(a){0>a&&ui(a,">= 0",Gn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ts;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(Xn,"rowdefs",this,null,x,null,a)}return y[a]},Et.oA=function(a){if(0>a&&ui(a,">= 0",Gn,"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(hi,"rowdefs",this,x,null,a,null),this.v()}}};function hS(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Ts?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Et.Eb=function(a){0>a&&ui(a,">= 0",Gn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ts;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(Xn,"coldefs",this,null,x,null,a)}return y[a]},Et.jA=function(a){if(0>a&&ui(a,">= 0",Gn,"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(hi,"coldefs",this,x,null,a,null),this.v()}}};function dS(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Ts?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Et.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Nm(y,a),this},Et.Hy=function(a,y){return(a=this.Fb(a))&&Nm(a,new Ts(y)),this},Et.By=function(a,y){return(a=this.Eb(a))&&Nm(a,new Ts(y)),this},Et.nz=function(a){if(0>a||this.type!==Gn.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},Et.fz=function(a){if(0>a||this.type!==Gn.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},Et.Fz=function(a,y){if(y===void 0&&(y=new Vt(NaN,NaN)),this.type!==Gn.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)},Et.Gz=function(a){if(this.type!==Gn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function cS(a){return a=a.allBindings,a!==null&&a._isFrozen}function ch(a){var y=a.allBindings;if(y===null)a.data!==null&&ue("Template cannot have .data be non-null: "+a),a.allBindings=y=new bn;else if(y._isFrozen)return;var x=new bn;Sv(a,!1),a.qm(a,function(lt,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(Qf(ut,!1),ft=ft.iterator;ft.next();){var yt=ft.value;yt.mode===Wp&&Qf(ut,!0);var Ct=yt.sourceName;Ct!==null&&(Ct==="/"&&Sv(lt,!0),Ct=L1(yt,lt,ut),Ct!==null&&(x.add(Ct),Ct.srcBindings===null&&(Ct.srcBindings=new bn),Ct.srcBindings.add(yt))),y.add(yt)}if(ut instanceof Gn&&ut.type===Gn.Table){if(0<ut.rowCount){for(lt=ut.rowDefs,ft=lt.length,yt=0;yt<ft;yt++)if(Ct=lt[yt],Ct!==void 0&&Ct.be!==null)for(var bt=Ct.be.iterator;bt.next();){var Dt=bt.value;Dt.xd=Ct,Dt.to=2,Dt.wl=Ct.index,y.add(Dt)}}if(0<ut.columnCount){for(ut=ut.colDefs,lt=ut.length,ft=0;ft<lt;ft++)if(yt=ut[ft],yt!==void 0&&yt.be!==null)for(Ct=yt.be.iterator;Ct.next();)bt=Ct.value,bt.xd=yt,bt.to=1,bt.wl=yt.index,y.add(bt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Qf(E,!0);for(var z=E.srcBindings.iterator;z.next();){var tt=z.value;E.localBindings===null&&(E.localBindings=new bn),E.localBindings.add(tt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var rt=E.targetProperty,ot=rt.indexOf(".");0<ot&&z instanceof Gn&&(tt=rt.substring(0,ot),rt=rt.substr(ot+1),ot=z.fb(tt),ot!==null?(z=ot,E.targetProperty=rt):Hi('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+E.toString())),z instanceof Ts?(tt=bo(z.panel),E.Ai=tt===void 0?-1:tt,z.panel.bindingId=E.Ai):z instanceof Le?(tt=bo(z),E.Ai=tt===void 0?-1:tt,z.bindingId=E.Ai):ue("Unknown type of binding target: "+z)}y.freeze(),a instanceof ji&&a.Zc()&&a.Va()}Et.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof Gn&&(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&&ch(y),y},Et.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,tt=x.Ai;if(tt!==-1){if(z=this.ks(tt),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 Gn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Et.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function yx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof Gn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var tt=0;E<x&&tt<b;){if(z=a[E],!(z instanceof Gn)||z.data!==y[tt])return!0;E++,tt++}return!1}function Sp(a){if(a.type===Gn.Spot||a.type===Gn.Auto)return Math.min(a.O.length,1);if(a.type===Gn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Br&&b.isPanelMain))break}return x}return a.type===Gn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Gn&&vc(a))?1:0}Et.mv=function(){for(var a=Sp(this);this.O.length>a;)this.pc(this.O.length-1,!1);fS(this,this.itemArray)};function fS(a,y){var x=Sp(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)km(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],tt=b<a.O.length?a.O.M(b):null;if(tt instanceof Gn){if(tt.data!==z){var rt=wv(a,tt.data),ot=wv(a,z),lt=ot!==rt;lt||(rt=Pv(a,rt),lt=Pv(a,ot)!==rt),lt?(a.pc(b,!1),km(a,z,E,!1)):tt.data=z}}else km(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,xv(a,x,0),Iu(a)||a.v(),a.graduatedIntervals=null,a.If()||Fm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof ci&&(y.Te=!0),y.Te&&y instanceof ci&&(y.wc=null))}}function km(a,y,x,b){if(!(y==null||0>x)){var E=wv(a,y);if(E=Pv(a,E),E!==null){if(ch(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new ki),a.ge.add(y,E)),z=x+Sp(a),a.Gb(z,E),b&&(E.ub=y,xv(a,z,x),E.ub=null),E.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Gn){var E=y,z=x;b.type===Gn.TableRow?b.row=E:b.type===Gn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function wv(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=fs(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;ue("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Pv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(gS||(gS=!0,Hi('No item template Panel found for category "'+y+'" on '+a),Hi(" Using default item template."),a=new Gn,y=new la,y.bind(new vs("text","",Kn)),a.add(y),pS=a),b=pS)),b}function Fm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Gn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Gn&&!z.isEnabled||Fm(a,z,x)}}}function ld(a,y){y.name=a,Lh.add(a,y)}Jt.Object.defineProperties(Gn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Gn.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&&ui(a,">= 0",Gn,"padding"),a=new zi(a)):(0>a.left&&ui(a.left,">= 0",Gn,"padding:value.left"),0>a.right&&ui(a.right,">= 0",Gn,"padding:value.right"),0>a.top&&ui(a.top,">= 0",Gn,"padding:value.top"),0>a.bottom&&ui(a.bottom,">= 0",Gn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:dl},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new $u),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Go)&&(a instanceof Go&&a.freeze(),this.T===null&&(this.T=new $u),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 $u),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)||ue("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 $u),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof Go)&&(a instanceof Go&&a.freeze(),this.T===null&&(this.T=new $u),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 $u),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)||ue("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 $u),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 $u),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||ue("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sh(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()||ue("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&sh(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new Jd),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),hl(this)&&(a=this.part,a!==null&&pa(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new Jd),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),hl(this)&&(a=this.part,a!==null&&pa(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new Jd),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new Jd),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new Jd,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new Jd,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new Jd,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new Jd,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new $u),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new $u),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Dm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new $u),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Dm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new $u),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)&&ue("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new $u),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)&&ue("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new $u),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof ji&&!(this instanceof Ao);ch(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof $n?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ji&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new $f),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&sy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||fS(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new ki}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ji||a.isPanelMain)&&ue("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(););Hr(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&&(Hr(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 Cr&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Fm(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Jt.Object.defineProperties(Gn,{Position:{get:function(){return Lh.I("Position")}},Horizontal:{get:function(){return Lh.I("Horizontal")}},Vertical:{get:function(){return Lh.I("Vertical")}},Spot:{get:function(){return Lh.I("Spot")}},Auto:{get:function(){return Lh.I("Auto")}},Table:{get:function(){return Lh.I("Table")}},Viewbox:{get:function(){return Lh.I("Viewbox")}},TableRow:{get:function(){return Lh.I("TableRow")}},TableColumn:{get:function(){return Lh.I("TableColumn")}},Link:{get:function(){return Lh.I("Link")}},Grid:{get:function(){return Lh.I("Grid")}},Graduated:{get:function(){return Lh.I("Graduated")}}}),Gn.prototype.rebuildItemElements=Gn.prototype.mv,Gn.prototype.findItemPanelForData=Gn.prototype.sx,Gn.prototype.updateTargetBindings=Gn.prototype.La,Gn.prototype.copyTemplate=Gn.prototype.Uy,Gn.prototype.graduatedValueForPoint=Gn.prototype.Gz,Gn.prototype.graduatedPointForValue=Gn.prototype.Fz,Gn.prototype.findColumnForLocalX=Gn.prototype.fz,Gn.prototype.findRowForLocalY=Gn.prototype.nz,Gn.prototype.addColumnDefinition=Gn.prototype.By,Gn.prototype.addRowDefinition=Gn.prototype.Hy,Gn.prototype.addRowColumnDefinition=Gn.prototype.Gy,Gn.prototype.removeColumnDefinition=Gn.prototype.jA,Gn.prototype.getColumnDefinition=Gn.prototype.Eb,Gn.prototype.removeRowDefinition=Gn.prototype.oA,Gn.prototype.getRowDefinition=Gn.prototype.Fb,Gn.prototype.removeAt=Gn.prototype.mb,Gn.prototype.remove=Gn.prototype.remove,Gn.prototype.insertAt=Gn.prototype.Gb,Gn.prototype.elt=Gn.prototype.M,Gn.prototype.add=Gn.prototype.add,Gn.prototype.findObject=Gn.prototype.fb,Gn.prototype.findInVisualTree=Gn.prototype.Nl,Gn.prototype.walkVisualTreeFrom=Gn.prototype.qm,Gn.prototype.findMainElement=Gn.prototype.Pb;var gS=!1,pS=null,Lh=new ki;Gn.className="Panel",Gn.definePanelLayout=ld,ld("Position",new vm),ld("Vertical",new Sm),ld("Auto",new wm),ld("Link",new Mm);function Jd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Jd.prototype.copy=function(){var a=new Jd;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},Jd.className="GradPanelSettings";function $u(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=dl,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}$u.prototype.copy=function(a){for(var y=new $u,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),E[z]=tt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),E[z]=tt);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},$u.className="TablePanelSettings";function Ts(a){Or(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Bo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=br,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))}Ts.prototype.copy=function(){var a=new Ts;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=je(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Nm(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=je(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Et=Ts.prototype,Et.qb=function(a){a.classType===Ts&&(this.sizing=a)},Et.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+bo(this)},Et.wi=function(a){this.Me=a},Et.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)},Et.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Gn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var tt=b?y.rowDefs[z]:y.colDefs[z];if(tt!==void 0&&tt.oa!==0){x=tt.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)},Et.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(jn,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Tm(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Et.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new vs(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&cS(y)&&ue("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new bn),this.be.add(E),this},Jt.Object.defineProperties(Ts.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&&ui(a,">= 0",Ts,"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&&ui(a,">= 0",Ts,"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))&&ui(a,">= 0",Ts,"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&&ui(a,">= 0",Ts,"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 zi(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&_f(a,"RowColumnDefinition.separatorStroke"),a instanceof Go&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||ue("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&_f(a,"RowColumnDefinition.background"),a instanceof Go&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Ts.prototype.computeEffectiveSpacing=Ts.prototype.Wc,Ts.prototype.computeEffectiveSpacingTop=Ts.prototype.Io;var Cv=new sn(Ts,"Default",0),xp=new sn(Ts,"None",1),Dm=new sn(Ts,"ProportionalExtra",2);Ts.className="RowColumnDefinition",Ts.Default=Cv,Ts.None=xp,Ts.ProportionalExtra=Dm;function Br(a,y){Le.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(Br,Le),Br.prototype.cloneProtected=function(a){Le.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=je(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Mf(a){a.Na===null?a.Na=new Lv:a.Na.nc&&(a.Na=a.Na.copy())}Et=Br.prototype,Et.th=function(){Le.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Et.qb=function(a){a===Dn||a===Ni||a===io||a===br?this.geometryStretch=a:Le.prototype.qb.call(this,a)},Et.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+bo(this)};function kg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var rt=x[0],ot=x[1],lt,ut,ft,yt,Ct,bt,Dt=0,qt=dn(),Wt=2;Wt<E;Wt+=2)lt=x[Wt],ut=x[Wt+1],ft=lt-rt,rt=ut-ot,ft===0&&(ft=.001),yt=rt/ft,Ct=Math.atan2(rt,ft),bt=Math.sqrt(ft*ft+rt*rt),qt.push([ft,Ct,yt,bt]),Dt+=bt,rt=lt,ot=ut;rt=x[0],ot=x[1],ft=b.measuredBounds.width,b instanceof Br&&(ft-=b.strokeWidth),1>ft&&(ft=1),E=x=ft,lt=tt/2,ut=lt!==0,Wt=0,bt=qt[Wt],ft=bt[0],Ct=bt[1],yt=bt[2],bt=bt[3];for(var ae=0;.1<=Dt;){if(ae===0&&(ut?(E=x,E-=lt,Dt-=lt,ut=!1):E=x,E===0&&(E=1)),E>Dt){kn(qt);return}E>bt?(ae=E-bt,E=bt):ae=0;var le=Math.sqrt(E*E/(1+yt*yt));if(0>ft&&(le=-le),rt+=le,ot+=yt*le,a.translate(rt,ot),a.rotate(Ct),a.translate(-(tt/2),-(z/2)),ae===0&&b.hh(a,y),a.translate(tt/2,z/2),a.rotate(-Ct),a.translate(-rt,-ot),Dt-=E,bt-=E,ae!==0){if(Wt++,Wt===qt.length){kn(qt);return}bt=qt[Wt],ft=bt[0],Ct=bt[1],yt=bt[2],bt=bt[3],E=ae}}kn(qt)}}Et.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,tt=this.naturalBounds;b!==null&&_a(this,a,b,!0,!1,tt,z);var rt=this.part,ot=this.ig;if(x===null||ot!==0||rt===null||!this.isPanelMain&&rt.Pb()!==this||(ot=rt.type===Gn.Link&&rt instanceof Ao&&rt.category==="Selection"&&rt.adornedObject instanceof Br&&rt.adornedPart.Pb()===rt.adornedObject?rt.adornedObject.strokeWidth:0),ot===0&&(x=null),x!==null&&ot!==0&&(_a(this,a,x,!1,!1,tt,z),a.lineWidth=ot,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,rt&&y.Gf("drawShadows")&&(z=rt.isShadowed),a.Il===!1&&(z=!1),rt=!0,x===null||b!==null&&b!=="transparent"||(rt=!1),tt=!1,ot=this.strokeDashArray,ot!==null&&(tt=!0,a.js(ot,this.strokeDashOffset)),E.type===ti.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===ti.u){var lt=E.startX;ot=E.startY;var ut=E.endX,ft=E.endY;E=Math.min(lt,ut);var yt=Math.min(ot,ft);lt=Math.abs(ut-lt),ot=Math.abs(ft-ot),a.beginPath(),a.rect(E,yt,lt,ot),b!==null&&a.ng(b),x!==null&&(rt&&z&&wd(a),a.jk(),rt&&z&&Vd(a)),a.Se()}else if(E.type===ti.F)lt=E.startX,ot=E.startY,ut=E.endX,ft=E.endY,E=Math.abs(ut-lt)/2,yt=Math.abs(ft-ot)/2,lt=Math.min(lt,ut)+E,ot=Math.min(ot,ft)+yt,a.beginPath(),a.moveTo(lt,ot-yt),a.bezierCurveTo(lt+Ae.wg*E,ot-yt,lt+E,ot-Ae.wg*yt,lt+E,ot),a.bezierCurveTo(lt+E,ot+Ae.wg*yt,lt+Ae.wg*E,ot+yt,lt,ot+yt),a.bezierCurveTo(lt-Ae.wg*E,ot+yt,lt-E,ot+Ae.wg*yt,lt-E,ot),a.bezierCurveTo(lt-E,ot-Ae.wg*yt,lt-Ae.wg*E,ot-yt,lt,ot-yt),a.closePath(),b!==null&&a.ng(b),x!==null&&(rt&&z&&wd(a),a.jk(),rt&&z&&Vd(a)),a.Se();else if(E.type===ti.o)for(E=E.figures,ot=E.length,yt=0;yt<ot;yt++){lt=E.s[yt],a.beginPath(),a.moveTo(lt.startX,lt.startY),ut=lt.segments.s,ft=ut.length;for(var Ct=null,bt=0;bt<ft;bt++){var Dt=ut[bt];switch(Dt.type){case ss:a.moveTo(Dt.endX,Dt.endY);break;case na:a.lineTo(Dt.endX,Dt.endY);break;case Us:a.bezierCurveTo(Dt.point1X,Dt.point1Y,Dt.point2X,Dt.point2Y,Dt.endX,Dt.endY);break;case It:a.quadraticCurveTo(Dt.point1X,Dt.point1Y,Dt.endX,Dt.endY);break;case Kt:if(Dt.radiusX===Dt.radiusY){var qt=Math.PI/180;a.arc(Dt.point1X,Dt.point1Y,Dt.radiusX,Dt.startAngle*qt,(Dt.startAngle+Dt.sweepAngle)*qt,0>Dt.sweepAngle,Ct!==null?Ct.endX:lt.startX,Ct!==null?Ct.endY:lt.startY)}else if(Ct=nl(Dt,lt),qt=Ct.length,qt===0)a.lineTo(Dt.centerX,Dt.centerY);else for(var Wt=0;Wt<qt;Wt++){var ae=Ct[Wt];Wt===0&&a.lineTo(ae[0],ae[1]),a.bezierCurveTo(ae[2],ae[3],ae[4],ae[5],ae[6],ae[7])}break;case te:if(Wt=qt=0,Ct!==null&&Ct.type===Kt){if(Ct=nl(Ct,lt),ae=Ct.length,ae===0){a.lineTo(Dt.endX,Dt.endY);break}Ct=Ct[ae-1]||null,Ct!==null&&(qt=Ct[6],Wt=Ct[7])}else qt=Ct!==null?Ct.endX:lt.startX,Wt=Ct!==null?Ct.endY:lt.startY;if(Ct=yl(Dt,lt,qt,Wt),qt=Ct.length,qt===0){a.lineTo(Dt.endX,Dt.endY);break}for(Wt=0;Wt<qt;Wt++)ae=Ct[Wt],a.bezierCurveTo(ae[2],ae[3],ae[4],ae[5],ae[6],ae[7]);break;default:ue("Segment not of valid type: "+Dt.type)}Dt.isClosed&&a.closePath(),Ct=Dt}ut=lt.isFilled,z?lt.isShadowed?(ut===!0&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&(ut&&rt&&wd(a),a.jk(),ut&&rt&&Vd(a))):(wd(a),ut&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk(),Vd(a)):(ut&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk()),a.Se(yt)}if(tt&&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=dn(),z.type===ti.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),kg(a,y,b,x);else if(z.type===ti.o)for(z=z.figures.iterator;z.next();){for(rt=z.value,b.length=0,b.push(rt.startX),b.push(rt.startY),tt=rt.startX,E=rt.startY,ot=tt,yt=E,lt=rt.segments.s,ut=lt.length,ft=0;ft<ut;ft++){switch(bt=lt[ft],bt.type){case ss:kg(a,y,b,x),b.length=0,b.push(bt.endX),b.push(bt.endY),tt=bt.endX,E=bt.endY,ot=tt,yt=E;break;case na:b.push(bt.endX),b.push(bt.endY),tt=bt.endX,E=bt.endY;break;case Us:Ae.Qe(tt,E,bt.point1X,bt.point1Y,bt.point2X,bt.point2Y,bt.endX,bt.endY,.5,b),tt=bt.endX,E=bt.endY;break;case It:Ae.ep(tt,E,bt.point1X,bt.point1Y,bt.endX,bt.endY,.5,b),tt=bt.endX,E=bt.endY;break;case Kt:if(Dt=nl(bt,rt),Ct=Dt.length,Ct===0){b.push(bt.centerX),b.push(bt.centerY),tt=bt.centerX,E=bt.centerY;break}for(qt=0;qt<Ct;qt++)Wt=Dt[qt],Ae.Qe(tt,E,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,b),tt=Wt[6],E=Wt[7];break;case te:if(Dt=yl(bt,rt,tt,E),Ct=Dt.length,Ct===0){b.push(bt.endX),b.push(bt.endY),tt=bt.endX,E=bt.endY;break}for(qt=0;qt<Ct;qt++)Wt=Dt[qt],Ae.Qe(tt,E,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,b),tt=Wt[6],E=Wt[7];break;default:ue("Segment not of valid type: "+bt.type)}bt.isClosed&&(b.push(ot),b.push(yt),kg(a,y,b,x))}kg(a,y,b,x)}else if(z.type===ti.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),kg(a,y,b,x);else if(z.type===ti.F){if(E=new Es,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,tt=new mo(Kt),tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(z.startX+z.endX)/2,tt.centerY=(z.startY+z.endY)/2,tt.radiusX=Math.abs(z.startX-z.endX)/2,tt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(tt),z=nl(tt,E),rt=z.length,rt===0)b.push(tt.centerX),b.push(tt.centerY);else for(tt=E.startX,E=E.startY,ot=0;ot<rt;ot++)yt=z[ot],Ae.Qe(tt,E,yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,b),tt=yt[6],E=yt[7];kg(a,y,b,x)}kn(b),a.restore(),a.Vc(!1)}}}},Et.kk=function(a,y,x){return!Le.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)},Et.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Le.prototype.nk.call(this,a)},Et.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)}},Et.ga=function(a,y){if(y===void 0&&(y=new Vt),a instanceof Fi){a.Mc()&&ue("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},Et.mi=function(a){a===void 0&&(a=new fn);var y=this.naturalBounds,x=this.oe;y=fn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Vt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),No(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),No(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),No(a,b.x,b.y,0,0),fn.free(y),Vt.free(b),a},Et.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==ti.j||y||(E+=2);var z=fn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return fn.free(z),!1;if(b=E+1e-4,x.type===ti.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(fn.free(z),Ae.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===ti.u){y=x.startX;var tt=x.startY,rt=x.endX;if(x=x.endY,z.x=Math.min(y,rt),z.y=Math.min(tt,x),z.width=Math.abs(rt-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return fn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),fn.free(z),a}if(x.type===ti.F){tt=x.startX,E=x.startY,rt=x.endX;var ot=x.endY;if(x=Math.min(tt,rt),y=Math.min(E,ot),tt=Math.abs(rt-tt)/2,E=Math.abs(ot-E)/2,x=a.x-(x+tt),y=a.y-(y+E),this.fill===null){if(tt-=b,E-=b,0>=tt||0>=E||1>=x*x/(tt*tt)+y*y/(E*E))return fn.free(z),!1;tt+=b,E+=b}return this.stroke!==null&&(tt+=b,E+=b),fn.free(z),0>=tt||0>=E?!1:1>=x*x/(tt*tt)+y*y/(E*E)}if(x.type===ti.o)return fn.free(z),this.fill===null?xh(x,a.x,a.y,E):ih(x,a,E,1<this.strokeWidth,y);ue("Unknown Geometry type: "+x.type)},Et.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 tt=this.geometry.bounds;else{var rt=this.figure,ot=Ev[rt];if(ot===void 0){var lt=Ae.Ze[rt];typeof lt=="string"&&(lt=Ae.Ze[lt]),typeof lt=="function"?(ot=lt(null,100,100),Ev[rt]=ot):ue("Unsupported Figure: "+rt)}tt=ot.bounds}rt=tt.width,ot=tt.height,lt=tt.width;var ut=tt.height;switch(nu(this,!0)){case Dn:b=x=0;break;case zn:lt=Math.max(a-z,0),ut=Math.max(y-z,0);break;case Bi:lt=Math.max(a-z,0),b=0;break;case $i:x=0,ut=Math.max(y-z,0)}isFinite(E.width)&&(lt=E.width),isFinite(E.height)&&(ut=E.height);var ft=this.maxSize,yt=this.minSize;switch(x=Math.max(x-z,yt.width),b=Math.max(b-z,yt.height),lt=Math.min(ft.width,lt),ut=Math.min(ft.height,ut),lt=isFinite(lt)?Math.max(x,lt):Math.max(rt,x),ut=isFinite(ut)?Math.max(b,ut):Math.max(ot,b),x=bv(this),x){case Dn:break;case zn:rt=lt,ot=ut;break;case Ni:x=Math.min(lt/rt,ut/ot),isFinite(x)||(x=1),rt*=x,ot*=x;break;default:ue(x+" is not a valid geometryStretch.")}this.Rd!==null?(rt===0&&(rt=.001),ot===0&&(ot=.001),x=this.Rd!==null?this.Rd:this.ua,tt=x.bounds,b=rt/tt.width,tt=ot/tt.height,isFinite(b)||(b=1),isFinite(tt)||(tt=1),this.ua=b===1&&tt===1?x:x.copy().scale(b,tt)):this.ua!==null&&Ae.$(this.ua.Sk,a-z)&&Ae.$(this.ua.Rk,y-z)||(this.ua=Br.makeGeometry(this,rt,ot)),tt=this.ua.bounds,a===1/0||y===1/0?this.Ge(tt.x-z/2,tt.y-z/2,a===0&&rt===0?0:tt.width+z,y===0&&ot===0?0:tt.height+z):this.Ge(-(z/2),-(z/2),lt+z,ut+z),E.w()?(lt=E.width,ut=E.height,lt=Math.min(ft.width,lt),ut=Math.min(ft.height,ut),lt=Math.max(yt.width,lt),ut=Math.max(yt.height,ut),this.dc.h(0,0,lt,ut)):this.dc.assign(tt)};function bv(a){var y=a.geometryStretch;return a.Rd!==null?y===br?zn:y:y===br?Ev[a.figure].defaultStretch:y}Et.eh=function(a,y,x,b){Fl(this,a,y,x,b)},Et.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Et.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),rt=z.m22*tt,ot=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),yt=tt*(z.m12*z.dx-z.m11*z.dy);z=a*rt+y*lt+ft,tt=a*ot+y*ut+yt,rt=x*rt+b*lt+ft,ot=x*ot+b*ut+yt,ft=this.ig/2,lt=this.ua,lt===null&&(this.measure(1/0,1/0),lt=this.ua);var Ct=lt.bounds;if(ut=!1,lt.type===ti.j)if(1.5>=this.strokeWidth)ut=Ae.Ve(lt.startX,lt.startY,lt.endX,lt.endY,z,tt,rt,ot,E);else{if(lt.startX===lt.endX?(b=ft,ut=0):(y=(lt.endY-lt.startY)/(lt.endX-lt.startX),ut=ft/Math.sqrt(1+y*y),b=ut*y),y=dn(),a=new Vt,Ae.Ve(lt.startX+b,lt.startY+ut,lt.endX+b,lt.endY+ut,z,tt,rt,ot,a)&&y.push(a),a=new Vt,Ae.Ve(lt.startX-b,lt.startY-ut,lt.endX-b,lt.endY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Vt,Ae.Ve(lt.startX+b,lt.startY+ut,lt.startX-b,lt.startY-ut,z,tt,rt,ot,a)&&y.push(a),a=new Vt,Ae.Ve(lt.endX+b,lt.endY+ut,lt.endX-b,lt.endY-ut,z,tt,rt,ot,a)&&y.push(a),rt=y.length,rt===0)return kn(y),!1;for(ut=!0,ot=1/0,b=0;b<rt;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<ot&&(ot=x,E.x=a.x,E.y=a.y);kn(y)}else if(lt.type===ti.u)ut=Ae.Ff(Ct.x-ft,Ct.y-ft,Ct.x+Ct.width+ft,Ct.y+Ct.height+ft,z,tt,rt,ot,E);else if(lt.type===ti.F){y=fn.allocAt(Ct.x,Ct.y,Ct.width,Ct.height).Bc(ft,ft);t:if(y.width===0)ut=Ae.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,rt,ot,E);else if(y.height===0)ut=Ae.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,rt,ot,E);else{if(a=y.width/2,lt=y.height/2,b=y.x+a,ut=y.y+lt,x=9999,z!==rt&&(x=(tt-ot)/(z-rt)),9999>Math.abs(x)){if(ot=tt-ut-x*(z-b),0>a*a*x*x+lt*lt-ot*ot){E.x=NaN,E.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+lt*lt-ot*ot),rt=(-(a*a*x*ot)+a*lt*ft)/(lt*lt+a*a*x*x)+b,a=(-(a*a*x*ot)-a*lt*ft)/(lt*lt+a*a*x*x)+b,lt=x*(rt-b)+ot+ut,ot=x*(a-b)+ot+ut,Math.abs((z-rt)*(z-rt))+Math.abs((tt-lt)*(tt-lt))<Math.abs((z-a)*(z-a))+Math.abs((tt-ot)*(tt-ot))?(E.x=rt,E.y=lt):(E.x=a,E.y=ot)}else{if(rt=lt*lt,ot=z-b,rt-=rt/(a*a)*ot*ot,0>rt){E.x=NaN,E.y=NaN,ut=!1;break t}ot=Math.sqrt(rt),rt=ut+ot,ot=ut-ot,Math.abs(rt-tt)<Math.abs(ot-tt)?(E.x=z,E.y=rt):(E.x=z,E.y=ot)}ut=!0}fn.free(y)}else if(lt.type===ti.o){yt=Vt.alloc();var bt=rt-z,Dt=ot-tt,qt=bt*bt+Dt*Dt,Wt=z,ae=tt;if(0<qt&&Ct.contains(Wt,ae)&&(yt.x=Wt,yt.y=ae,this.ca(yt)))for(bt!==0&&.5>Math.abs(bt)?(Dt*=.5/bt,bt=.5):Dt!==0&&.5>Math.abs(Dt)&&(bt*=.5/Dt,Dt=.5),Wt-=bt,ae-=Dt;Ct.contains(Wt,ae);)Wt-=bt,ae-=Dt;for(E.x=rt,E.y=ot,Dt=0;Dt<lt.figures.count;Dt++){var le=lt.figures.s[Dt],ge=le.isFilled?Wt:z,be=le.isFilled?ae:tt,Je=le.segments;Ct=le.startX,bt=le.startY;for(var di=Ct,Pi=bt,yi=0;yi<Je.count;yi++){var Qn=Je.s[yi],Fn=Qn.type,xr=Qn.endX,gr=Qn.endY,Do=!1;switch(Fn){case ss:di=xr,Pi=gr;break;case na:Do=Om(Ct,bt,xr,gr,ge,be,rt,ot,yt);break;case Us:Do=Ae.Eo(Ct,bt,Qn.point1X,Qn.point1Y,Qn.point2X,Qn.point2Y,xr,gr,ge,be,rt,ot,.6,yt);break;case It:Do=Ae.Eo(Ct,bt,Ct+2/3*(Qn.point1X-Ct),bt+2/3*(Qn.point1Y-bt),xr+2/3*(Qn.point1X-xr),gr+2/3*(Qn.point1Y-gr),xr,gr,ge,be,rt,ot,.6,yt);break;case Kt:case te:Fn=Qn.type===Kt?nl(Qn,le):yl(Qn,le,Ct,bt);var aa=Fn.length;if(aa===0){Do=Om(Ct,bt,Qn.type===Kt?Qn.centerX:Qn.endX,Qn.type===Kt?Qn.centerY:Qn.endY,ge,be,rt,ot,yt);break}for(gr=null,xr=0;xr<aa;xr++){if(gr=Fn[xr],xr===0&&Om(Ct,bt,gr[0],gr[1],ge,be,rt,ot,yt)){var Gs=Bm(ge,be,yt,qt,E);Gs<qt&&(qt=Gs,ut=!0)}Ae.Eo(gr[0],gr[1],gr[2],gr[3],gr[4],gr[5],gr[6],gr[7],ge,be,rt,ot,.6,yt)&&(Gs=Bm(ge,be,yt,qt,E),Gs<qt&&(qt=Gs,ut=!0))}xr=gr[6],gr=gr[7];break;default:ue("Unknown Segment type: "+Fn)}Ct=xr,bt=gr,Do&&(Do=Bm(ge,be,yt,qt,E),Do<qt&&(qt=Do,ut=!0)),Qn.isClosed&&(xr=di,gr=Pi,Om(Ct,bt,xr,gr,ge,be,rt,ot,yt)&&(Qn=Bm(ge,be,yt,qt,E),Qn<qt&&(qt=Qn,ut=!0)))}}z=x-a,tt=b-y,rt=Math.sqrt(z*z+tt*tt),rt!==0&&(z/=rt,tt/=rt),E.x-=z*ft,E.y-=tt*ft,Vt.free(yt)}else ue("Unknown Geometry type: "+lt.type);return ut?(this.transform.Ga(E),!0):!1};function Bm(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Om(a,y,x,b,E,z,tt,rt,ot){if(Ae.$(a,x)&&Ae.$(y,b)||Ae.$(E,tt)&&Ae.$(z,rt))return!1;var lt=!1,ut=(E-tt)*(y-b)-(z-rt)*(a-x);return ut===0?!1:(ot.x=((E*rt-z*tt)*(a-x)-(E-tt)*(a*b-y*x))/ut,ot.y=((E*rt-z*tt)*(y-b)-(z-rt)*(a*b-y*x))/ut,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(ot.y>a||Ae.$(ot.y,a))&&(ot.y<y||Ae.$(ot.y,y))&&(lt=!0)):(y=a<x?a:x,a=a<x?x:a,(ot.x>y||Ae.$(ot.x,y))&&(ot.x<a||Ae.$(ot.x,a))&&(lt=!0)),lt)}Et.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=Vt.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)))),Vt.free(z),E},Et.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=kr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var tt=Vt.alloc();if(tt.h(b,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(E,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0)))return Vt.free(tt),!0;var rt=Vt.alloc(),ot=Vt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),rt.x=E,rt.y=z,rt.transform(x),tt.x=b,tt.y=z,tt.transform(x),y=!1,Af(this,tt,rt,ot)?y=!0:(tt.x=E,tt.y=a,tt.transform(x),Af(this,tt,rt,ot)?y=!0:(rt.x=b,rt.y=a,rt.transform(x),Af(this,tt,rt,ot)?y=!0:(tt.x=b,tt.y=z,tt.transform(x),Af(this,tt,rt,ot)&&(y=!0)))),Vt.free(tt),kr.free(x),Vt.free(rt),Vt.free(ot),y};function Af(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Et.tx=function(a,y,x){function b(qt,Wt){for(var ae=qt.length,le=0;le<ae;le+=2)if(Wt.zd(qt[le],qt[le+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 tt=y.bounds,rt=tt.x,ot=tt.y,lt=tt.x+tt.width;if(tt=tt.y+tt.height,oa(a.x,a.y,rt,ot)<=E&&oa(a.x,a.y,lt,ot)<=E&&oa(a.x,a.y,rt,tt)<=E&&oa(a.x,a.y,lt,tt)<=E)return!0}if(rt=y.startX,ot=y.startY,lt=y.endX,tt=y.endY,y.type===ti.j){if(x=(rt-lt)*(a.x-lt)+(ot-tt)*(a.y-tt),Zo(a.x,a.y,rt,ot,lt,tt)<=(0<=(lt-rt)*(a.x-rt)+(tt-ot)*(a.y-ot)&&0<=x?E:z))return!0}else{if(y.type===ti.u)return y=!1,x&&(y=Zo(a.x,a.y,rt,ot,rt,tt)<=E||Zo(a.x,a.y,rt,ot,lt,ot)<=E||Zo(a.x,a.y,lt,ot,lt,tt)<=E||Zo(a.x,a.y,rt,tt,lt,tt)<=E),y;if(y.type===ti.F){y=a.x-(rt+lt)/2,z=a.y-(ot+tt)/2;var ut=Math.abs(lt-rt)/2,ft=Math.abs(tt-ot)/2;if(ut===0||ft===0)return Zo(a.x,a.y,rt,ot,lt,tt)<=E;if(x){if(a=Ae.$y(ut,ft,y,z),a*a<=E)return!0}else return!(oa(y,z,-ut,0)>=E||oa(y,z,0,-ft)>=E||oa(y,z,0,ft)>=E||oa(y,z,ut,0)>=E)}else if(y.type===ti.o){if(lt=y.bounds,z=lt.x,rt=lt.y,ot=lt.x+lt.width,lt=lt.y+lt.height,a.x>ot&&a.x<z&&a.y>lt&&a.y<rt&&Zo(a.x,a.y,z,rt,z,lt)>E&&Zo(a.x,a.y,z,rt,ot,rt)>E&&Zo(a.x,a.y,ot,lt,z,lt)>E&&Zo(a.x,a.y,ot,lt,ot,rt)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?xh(y,a.x,a.y,z):ih(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],tt=z.startX,ut=z.startY,a.zd(tt,ut)>E)return!1;for(rt=z.segments.s,ot=rt.length,lt=0;lt<ot;lt++)switch(ft=rt[lt],ft.type){case ss:case na:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E)return!1;break;case Us:var yt=dn();if(Ae.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,yt),tt=b(yt,a),kn(yt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case It:if(yt=dn(),Ae.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,yt),tt=b(yt,a),kn(yt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case Kt:case te:yt=ft.type===Kt?nl(ft,z):yl(ft,z,tt,ut);var Ct=yt.length;if(Ct===0){if(tt=ft.type===Kt?ft.centerX:ft.endX,ut=ft.type===Kt?ft.centerY:ft.endY,a.zd(tt,ut)>E)return!1;break}ft=null;for(var bt=dn(),Dt=0;Dt<Ct;Dt++)if(ft=yt[Dt],bt.length=0,Ae.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,bt),b(bt,a))return kn(bt),!1;kn(bt),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:ue("Unknown Segment type: "+ft.type)}}return!0}}}return!1},Et.qc=function(){this.ua=null},Et.kq=function(){return this.ig};function mS(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=kp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ms):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Fi(1-Ms.x,Ms.y)))}Br.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Cd[a.toArrow];else a.fromArrow!=="None"?b=Cd[a.fromArrow]:(b=Ae.Ze[a.figure],typeof b=="string"&&(b=Ae.Ze[b]),b===void 0&&ue("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Ae.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function vS(a){var y=Cd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Cd[x],y===void 0){var b=null,E;for(E in Ae.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=ti.parse(Ae.um[b],!1),Cd[b]=a,x!==b&&(Cd[x]=b),b}}return typeof y=="string"?y:y instanceof ti?a:null}Jt.Object.defineProperties(Br.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),hl(this)&&(a=this.part,a!==null&&pa(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=ti.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Vt.allocAt(-y.x,-y.y),Vt.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&_f(a,"Shape.fill"),a instanceof Go&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&_f(a,"Shape.stroke"),a instanceof Go&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else ui(a,"value >= 0",Br,"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"?ui(a,'"butt", "round", or "square"',Br,"strokeCap"):(Mf(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?ui(a,'"miter", "bevel", or "round"',Br,"strokeJoin"):(Mf(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Mf(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||ue("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Mf(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=Ae.Ze[a];typeof x=="function"?x=a:(x=Ae.Ze[a.toLowerCase()])||ue("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=vS(a);x===null?ue("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),mS(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=vS(a);x===null?ue("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gc),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),mS(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Bo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Mf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Bo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Mf(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Mf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:br},set:function(a){var y=this.geometryStretch;y!==a&&(Mf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new bd),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&sh(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new bd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Br.prototype.intersectsRect=Br.prototype.Yc,Br.prototype.containedInRect=Br.prototype.fh,Br.prototype.getNearestIntersectionPoint=Br.prototype.rs,Br.prototype.getDocumentBounds=Br.prototype.mi,Br.prototype.getDocumentPoint=Br.prototype.ga;var Cd=new Ki,Ev=new Ki;Br.className="Shape",Br.getFigureGenerators=function(){var a=new ki,y;for(y in Ae.Ze)y!==y.toLowerCase()&&a.add(y,Ae.Ze[y]);return a.freeze(),a},Br.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Ae.Ze;b[a]=y,b[x]=a},Br.getArrowheadGeometries=function(){var a=new ki;for(b in Ae.um)if(Cd[b]===void 0){var y=ti.parse(Ae.um[b],!1);Cd[b]=y,y=b.toLowerCase(),y!==b&&(Cd[y]=b)}for(var x in Cd)if(x!==x.toLowerCase()){var b=Cd[x];b instanceof ti&&a.add(x,b)}return a.freeze(),a},Br.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=ti.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||ue("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Cd;b[a]=x,b[y]=a};function Lv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=br,this.gg=this.fg=Bo}Lv.prototype.copy=function(){var a=new Lv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function la(a,y){return Le.call(this),Hm||(iu=qa?new dh(null).context:null,Hm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Qe(la,Le),la.prototype.cloneProtected=function(a){Le.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function ud(a){a.da===null?a.da=new Dv:a.da.nc&&(a.da=a.da.copy())}Et=la.prototype,Et.th=function(){Le.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function yS(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Et.qb=function(a){a.classType===la?this.wrap=a:Le.prototype.qb.call(this,a)},Et.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Et.v=function(){Le.prototype.v.call(this)},Et.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,tt=Pp(this),rt=a.textAlign=this.textAlign,ot=y.tn;rt==="start"?rt=ot?"right":"left":rt==="end"&&(rt=ot?"left":"right"),ot=this.isUnderline;var lt=this.isStrikethrough;_a(this,a,this.xc,!0,!1,x,b),(ot||lt)&&_a(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ut=this.oe,ft=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var yt=y.scale;switch(8>(ft*ft+ut*ut)*yt*yt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Eu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case So:a.translate(E,0),a.scale(-1,1);break;case Vr:a.translate(0,z),a.scale(1,-1);break;case Qo:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,yt=(y+tt+ft)*ut,z>yt&&(b=this.verticalAlignment,b=b.y*z-b.y*yt+b.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>E&&(ft=E),this.Oj(this.ze,a,0,b+y,E,tt,ft,x,rt,ot,lt);else if(this.Qc!==null&&this.Qb!==null)for(yt=0;yt<ut;yt++){var Ct=this.Qc[yt];Ct>E&&(Ct=E),b+=y,this.Oj(this.Qb[yt],a,0,b,E,tt,Ct,x,rt,ot,lt),b+=tt+ft}switch(this.flip){case So:a.scale(-1,1),a.translate(-E,0);break;case Vr:a.scale(1,-1),a.translate(0,-z);break;case Qo:a.scale(-1,-1),a.translate(-E,-z)}}},Et.Oj=function(a,y,x,b,E,z,tt,rt,ot,lt,ut){var ft=0;if(rt)ot==="left"?ft=0:ot==="right"?ft=E-tt:ot==="center"&&(ft=(E-tt)/2),y.fillRect(x+ft,b+.25*z,tt,1);else{if(ot==="left"?ft=0:ot==="right"?ft=E:ot==="center"&&(ft=E/2),E=Im!==null?Im(this,z):.75*z,y.fillText(a,x+ft,b+E),a=z/20|0,a===0&&(a=1),ot==="right"?ft-=tt:ot==="center"&&(ft-=tt/2),lt){rt=Rm!==null?Rm(this,z):.8*z,ot=x+ft,lt=b+rt,E=x+ft+tt,rt=b+rt;var yt=a;y.beginPath(),y.lineWidth=yt,y.moveTo(ot,lt),y.lineTo(E,rt),y.stroke(),y.Se(),y instanceof Eu&&y.ad.classList.add("gojs-td")}ut&&(ut=b+z-z/2.2|0,a%2!==0&&(ut+=.5),b=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(b,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Eu&&y.ad.classList.add("gojs-td"))}},Et.kk=function(a,y,x){if(!Le.prototype.kk.call(this,a,y,x))return!1;if(_a(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)$y(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,$y(a,y,!0);return!0},Et.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Le.prototype.nk.call(this,a)},Et.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)}},Et.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;iu!==null&&ES!==z&&(ES=iu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var tt;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 rt=tt=0,ot=!1;!ot;){var lt=z.indexOf(`
`,rt);lt===-1&&(lt=z.length,ot=!0),rt=z.substr(rt,lt-rt),this.formatting===Cp&&(rt=rt.trim()),tt=Math.max(tt,Mh(rt)),rt=lt+1}z=tt}else tt=z.indexOf(`
`,0),0<=tt&&(z=z.substr(0,tt)),z=Mh(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=xS(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,ot=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===zm&&(y=this.Ae,y=this.overflow===zm?SS(y):0,lt=this.spacingAbove+this.spacingBelow,lt=Math.max(0,Pp(this)+lt),ot=Math.min(this.maxLines-1,Math.max(Math.floor(ot/lt+.01)-1,0)),!(ot+1>=this.Qb.length))){for(this.l|=16777216,lt=this.Qb[ot],y=Math.max(1,a-y);Mh(lt)>y&&1<lt.length;)lt=lt.substr(0,lt.length-1);lt+=bp,y=Mh(lt),this.Qb[ot]=lt,this.Qb=this.Qb.slice(0,ot+1),this.Qc[ot]=y,this.Qc=this.Qc.slice(0,ot+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===wS||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),tt=Math.max(b,tt),xs(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Et.eh=function(a,y,x,b){Fl(this,a,y,x,b)};function wp(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Mv(a,y,x,b){var E=a.formatting===Cp;E&&(y=y.trim());var z=0,tt=a.Ae,rt=a.spacingAbove+a.spacingBelow;rt=Math.max(0,Pp(a)+rt);var ot=a.overflow===zm?SS(tt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,rt);else if(tt=y,a.wrap===Av){a.Le=1;var lt=Mh(y);if(ot===0||lt<=x)a.Cb=Math.max(a.Cb,lt),wp(a,y,a.Cb),b!==null&&b.h(lt,rt);else{for(z=Fg(a,tt),tt=tt.substr(z.length),y=Fg(a,tt),lt=Mh(z+y);0<y.length&&lt<=x;)z+=y,tt=tt.substr(y.length),y=Fg(a,tt),lt=z+y,E&&(lt=lt.trim()),lt=Mh(lt);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-ot);Mh(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=bp;var ut=Mh(z);a.Cb=ut,wp(a,z,ut),b!==null&&b.h(ut,rt)}}else{for(ot=0,tt.length===0&&(ot=1,wp(a,tt,0));0<tt.length;){for(y=Fg(a,tt),tt=tt.substr(y.length);Mh(y)>x;){var ft=1;for(lt=Mh(y.substr(0,ft)),ut=0;lt<=x;)ft++,ut=lt,lt=Mh(y.substr(0,ft));if(ft===1){var yt=lt;z=Math.max(z,lt)}else yt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),wp(a,y.substr(0,ft),yt),ot++,y=y.substr(ft),a.Gc+ot>a.maxLines)break}for(ut=Fg(a,tt),lt=Mh(y+ut);0<ut.length&&lt<=x;)y+=ut,tt=tt.substr(ut.length),ut=Fg(a,tt),lt=y+ut,E&&(lt=lt.trim()),lt=Mh(lt);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(ft=lt,z=Math.max(z,lt)):(ft=ut=Mh(y),z=Math.max(z,ut)),wp(a,y,ft),ot++,a.Gc+ot>a.maxLines))break}a.Le=Math.min(a.maxLines,ot),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,rt*a.Le)}}function Fg(a,y){if(a.wrap===PS)return y.substr(0,1);for(var x=y.length,b=0,E=Sx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===CS&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Mh(a){return iu===null?8*a.length:iu.measureText(a).width}function Pp(a){if(a.df!==null)return a.df;var y=a.Ae;if(iu===null){var x=16;return a.df=x}return Nv[y]!==void 0&&5e3>bS?x=Nv[y]:(x=1.3*iu.measureText("M").width,Nv[y]=x,bS++),a.df=x}function SS(a){if(iu===null)return 6;if(jm[a]!==void 0&&5e3>Tv)var y=jm[a];else y=iu.measureText(bp).width,jm[a]=y,Tv++;return y}function xS(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Pp(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,tt,rt=!1;!rt;){if(tt=x.indexOf(`
`,z),tt===-1&&(tt=x.length,rt=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Av){a.Le=0;var ot=ri.alloc();Mv(a,z,y,ot),E+=ot.height,ri.free(ot),a.Gc+=a.Le}else Mv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(rt=!0)}z=tt+1}return a.Lq=E}Jt.Object.defineProperties(la.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(ud(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Dn},set:function(a){var y=this.flip;y!==a&&(ud(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ps},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),ud(this),this.da.Yr=a,jl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ri.alloc();Mv(this,this.ec,999999,a);var y=a.width;ri.free(a),a=xS(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),xs(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:kv},set:function(a){var y=this.wrap;y!==a&&(ud(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Fv},set:function(a){var y=this.overflow;y!==a&&(ud(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&_f(a,"TextBlock.stroke"),a instanceof Go&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Pp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(ud(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(ud(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new bd),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new bd),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new bd),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new bd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(ud(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(ud(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(ud(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(ud(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Cp},set:function(a){var y=this.formatting;y!==a&&(ud(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&ui(a,"> 0",la,"maxLines"),ud(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Im=null,Rm=null,Av=new sn(la,"None",0),wS=new sn(la,"WrapFit",1),kv=new sn(la,"WrapDesiredSize",2),PS=new sn(la,"WrapBreakAll",3),Fv=new sn(la,"OverflowClip",0),zm=new sn(la,"OverflowEllipsis",1),Cp=new sn(la,"FormatTrim",0),CS=new sn(la,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Nv=new Ki,bS=0,jm=new Ki,Tv=0,bp="...",ES="",iu=null,Hm=!1;la.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=Dn,this.gq=Cp,this.Jq=1/0,this.$q=Fv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ps,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},la.getEllipsis=function(){return bp},la.setEllipsis=function(a){bp=a,jm=new Ki,Tv=0},la.getBaseline=function(){return Im},la.setBaseline=function(a){Im=a},la.getUnderline=function(){return Rm},la.setUnderline=function(a){Rm=a},la.isValidFont=function(a){if(Hm||(iu=qa?new dh(null).context:null,Hm=!0),iu===null)return!0;var y=iu.font;if(a===y||a==="10px sans-serif")return!0;iu.font="10px sans-serif",iu.font=a;var x=iu.font;if(x!=="10px sans-serif")return iu.font=y,!0;iu.font="19px serif";var b=iu.font;return iu.font=a,x=iu.font,iu.font=y,x!==b},la.FormatNone=CS,la.FormatTrim=Cp,la.None=Av,la.OverflowClip=Fv,la.OverflowEllipsis=zm,la.WrapBreakAll=PS,la.WrapDesiredSize=kv,la.WrapFit=wS;function bd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}bd.prototype.copy=function(){var a=new bd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},bd.className="GradElementSettings";function ru(a,y){Le.call(this),this.Eg=null,this.qo="",this.Xg=zo,this.Nk=zn,this.Zg=this.Hd=null,this.Mk=so,this.Xf=Dn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Ng;Qe(ru,Le),ru.prototype.cloneProtected=function(a){Le.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},ru.prototype.qb=function(a){a===Dn||a===Ni||a===io?this.imageStretch=a:Le.prototype.qb.call(this,a)},ru.prototype.toString=function(){return"Picture("+this.source+")#"+bo(this)};function Tg(a){a===void 0&&(a=""),a!==""?Ng[a]&&(delete Ng[a],Wm--):(Ng=new Ki,Wm=0)}function LS(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null)for(var rt=tt.length,ot=0;ot<rt;ot++)z=tt[ot],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()||(Ns(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")||"",tt=E.Og.I(z);if(tt!==null){E=tt.length,z=dn();for(var rt=0;rt<E;rt++)z.push(tt[rt]);if(y.hn)for(rt=0;rt<E;rt++)tt=z[rt],tt.Hd!==null&&tt.Hd(tt,x);kn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}ru.prototype.hA=function(){if(this.source!==""){Tg(this.source);var a=this.source;this.source="",this.source=a}},ru.prototype.redraw=function(){this.N(),this.Uc=!0},ru.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof Ef)){var E=a instanceof Eu;b=this.naturalBounds;var z=0,tt=0,rt=this.qn,ot=rt?+x.width:x.naturalWidth;if(rt=rt?+x.height:x.naturalHeight,ot===void 0&&x.videoWidth&&(ot=x.videoWidth),rt===void 0&&x.videoHeight&&(rt=x.videoHeight),ot=ot||b.width,rt=rt||b.height,ot!==0&&rt!==0){var lt=ot,ut=rt;this.sourceRect.w()&&(z=this.Xg.x,tt=this.Xg.y,ot=this.Xg.width,rt=this.Xg.height);var ft=ot,yt=rt,Ct=this.Nk,bt=this.Mk;switch(Ct){case Dn:if(this.sourceRect.w())break;ft>=b.width&&(z=z+bt.offsetX+(ft*bt.x-b.width*bt.x)),yt>=b.height&&(tt=tt+bt.offsetY+(yt*bt.y-b.height*bt.y)),ot=Math.min(b.width,ft),rt=Math.min(b.height,yt);break;case zn:ft=b.width,yt=b.height;break;case Ni:case io:Ct===Ni?(Ct=Math.min(b.height/yt,b.width/ft),ft*=Ct,yt*=Ct):Ct===io&&(Ct=Math.max(b.height/yt,b.width/ft),ft*=Ct,yt*=Ct,ft>=b.width&&(z=(z+bt.offsetX+(ft*bt.x-b.width*bt.x)/ft)*ot),yt>=b.height&&(tt=(tt+bt.offsetY+(yt*bt.y-b.height*bt.y)/yt)*rt),ot*=1/(ft/b.width),rt*=1/(yt/b.height),ft=b.width,yt=b.height)}Ct=this.Df()*y.scale;var Dt=ft*Ct*yt*Ct,qt=ot*rt/Dt,Wt=x.__goCache;Ct=null;var ae=xx;if(!E){if(x.sq&&Wt!==void 0&&4<Dt&&qt>ae*ae)for(Wt.gi===null&&(AS(Wt,4,lt,ut,x),AS(Wt,16,lt,ut,x)),E=Wt.gi,lt=E.length,ut=0;ut<lt&&E[ut].ratio*E[ut].ratio<qt;ut++)Ct=E[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new dh(null).context;try{E.drawImage(this.Eg,0,0)}catch(le){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(le){this.vl=!0}}if(this.vl)return}}switch(E=ft<b.width?bt.offsetX+(b.width*bt.x-ft*bt.x):0,bt=yt<b.height?bt.offsetY+(b.height*bt.y-yt*bt.y):0,this.flip){case So:a.translate(Math.min(b.width,ft),0),a.scale(-1,1);break;case Vr:a.translate(0,Math.min(b.height,yt)),a.scale(1,-1);break;case Qo:a.translate(Math.min(b.width,ft),Math.min(b.height,yt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Wt!==void 0&&Ct!==null&&Ct.ratio!==1){a.save(),y=Ct.ratio;try{a.drawImage(Ct.source,z/y,tt/y,Math.min(Ct.source.width,ot/y),Math.min(Ct.source.height,rt/y),E,bt,Math.min(b.width,ft),Math.min(b.height,yt)),a instanceof Eu&&(this.bt=[z/y,tt/y,Math.min(Ct.source.width,ot/y),Math.min(Ct.source.height,rt/y),E,bt,Math.min(b.width,ft),Math.min(b.height,yt)])}catch(le){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,ot,rt,E,bt,Math.min(b.width,ft),Math.min(b.height,yt)),a instanceof Eu&&(this.bt=[z,tt,ot,rt,E,bt,Math.min(b.width,ft),Math.min(b.height,yt)])}catch(le){this.en=!1}switch(this.flip){case So:a.scale(-1,1),a.translate(-Math.min(b.width,ft),0);break;case Vr:a.scale(1,-1),a.translate(0,-Math.min(b.height,yt));break;case Qo:a.scale(-1,-1),a.translate(-Math.min(b.width,ft),-Math.min(b.height,yt))}}}}},ru.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=nu(this,!0),tt=this.Eg,rt=this.qn,ot=0,lt=0;(rt||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(ot=rt?+tt.width:tt.naturalWidth,lt=rt?+tt.height:tt.naturalHeight),isFinite(E.width)||z===zn||z===Bi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:tt!==null&&(a=ot)),x=0):tt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ot),isFinite(E.height)||z===zn||z===$i?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=lt)),b=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:lt),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),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),xs(this.dc,a,y),this.Ge(0,0,a,y)},ru.prototype.eh=function(a,y,x,b){Fl(this,a,y,x,b)},Jt.Object.defineProperties(ru.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||ue("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Gf(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Mn),b!==null&&x&&Sd(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Ns(this,!1),this.v())):x&&LS(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Ng;if(qa){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Wm&&(Tg(),x=Ng),b=pi("img"),b.hn=!0,LS(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Wm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new MS),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),ru.prototype.redraw=ru.prototype.redraw,ru.prototype.reloadSource=ru.prototype.hA;var Wm=0,xx=4;ru.className="Picture",Ng=new Ki,ru.clearCache=Tg;function MS(){this.gi=null}function AS(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new dh(null),tt=z.context,rt=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new kS(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),tt.setTransform(rt*x,0,0,rt*x,0,0),tt.yc(),tt.drawImage(E,0,0),a.gi.push(y))}MS.className="PictureCacheArray";function kS(a,y){this.source=a,this.ratio=y}kS.className="PictureCacheInstance";function Dg(){this.os=new ti,this.mc=null}Dg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new ti,this.mc=null};function Bg(a,y,x,b,E,z){a.mc=new Es,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function wx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Dg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new mo(ss);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Dg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new mo(na);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function yc(a,y,x,b,E,z,tt){var rt;rt===void 0&&(rt=!1);var ot=new mo(Us);ot.point1X=y,ot.point1Y=x,ot.point2X=b,ot.point2Y=E,ot.endX=z,ot.endY=tt,rt&&ot.close(),a.mc.segments.add(ot)}function Zm(a,y,x,b,E){var z;z===void 0&&(z=!1);var tt=new mo(It);tt.point1X=y,tt.point1Y=x,tt.endX=b,tt.endY=E,z&&tt.close(),a.mc.segments.add(tt)}Dg.prototype.arcTo=function(a,y,x,b,E,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var rt=new mo(Kt);rt.startAngle=a,rt.sweepAngle=y,rt.centerX=x,rt.centerY=b,rt.radiusX=E,rt.radiusY=z!==0?z:E,tt&&rt.close(),this.mc.segments.add(rt)};function Px(a,y,x,b,E,z,tt,rt){var ot;ot===void 0&&(ot=!1),y=new mo(te,tt,rt,y,x,b,E,z),ot&&y.close(),a.mc.segments.add(y)}function FS(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new Dg,y.reset(a),y)}var Gm=null;Dg.className="StreamGeometryContext";function bl(a,y){var x=a.toLowerCase(),b=Ae.Ze;b[a]=y,b[x]=a}bl("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Ae.Mf[a];return b!==void 0||(b=new ti(ti.u),b.endX=y,b.endY=x,Ae.Nf<Ae.vm&&(Ae.Mf[a]=b,Ae.Nf++)),b}),bl("Square",function(a,y,x){a="s"+y+","+x;var b=Ae.Mf[a];return b!==void 0||(b=new ti(ti.u),b.endX=y,b.endY=x,b.defaultStretch=Ni,Ae.Nf<Ae.vm&&(Ae.Mf[a]=b,Ae.Nf++)),b}),bl("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Ae.Mf[b];if(E!==void 0)return E;var z=a*Ae.wg;return E=new ti().add(new Es(a,0,!0).add(new mo(na,y-a,0)).add(new mo(Us,y,a,y-z,0,y,z)).add(new mo(na,y,x-a)).add(new mo(Us,y-a,x,y,x-z,y-z,x)).add(new mo(na,a,x)).add(new mo(Us,0,x-a,z,x,0,x-z)).add(new mo(na,0,a)).add(new mo(Us,a,0,0,z,z,0).close())),1<z&&(E.spot1=new Fi(0,0,z,z),E.spot2=new Fi(1,1,-z,-z)),Ae.Nf<Ae.vm&&(Ae.Mf[b]=E,Ae.Nf++),E}),bl("Border","RoundedRectangle"),bl("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Ae.Mf[a];return b!==void 0||(b=new ti(ti.F),b.endX=y,b.endY=x,b.spot1=nh,b.spot2=$l,Ae.Nf<Ae.vm&&(Ae.Mf[a]=b,Ae.Nf++)),b}),bl("Circle",function(a,y,x){a="c"+y+","+x;var b=Ae.Mf[a];return b!==void 0||(b=new ti(ti.F),b.endX=y,b.endY=x,b.spot1=nh,b.spot2=$l,b.defaultStretch=Ni,Ae.Nf<Ae.vm&&(Ae.Mf[a]=b,Ae.Nf++)),b}),bl("TriangleRight",function(a,y,x){return new ti().add(new Es(0,0).add(new mo(na,y,.5*x)).add(new mo(na,0,x).close())).pm(0,.25,.5,.75)}),bl("TriangleDown",function(a,y,x){return new ti().add(new Es(0,0).add(new mo(na,y,0)).add(new mo(na,.5*y,x).close())).pm(.25,0,.75,.5)}),bl("TriangleLeft",function(a,y,x){return new ti().add(new Es(y,x).add(new mo(na,0,.5*x)).add(new mo(na,y,0).close())).pm(.5,.25,1,.75)}),bl("TriangleUp",function(a,y,x){return new ti().add(new Es(y,x).add(new mo(na,0,x)).add(new mo(na,.5*y,0).close())).pm(.25,.5,.75,1)}),bl("Triangle","TriangleUp"),bl("Diamond",function(a,y,x){return new ti().add(new Es(.5*y,0).add(new mo(na,0,.5*x)).add(new mo(na,.5*y,x)).add(new mo(na,y,.5*x).close())).pm(.25,.25,.75,.75)}),bl("LineH",function(a,y,x){return a=new ti(ti.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),bl("LineV",function(a,y,x){return a=new ti(ti.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),bl("None","Rectangle"),bl("BarH","Rectangle"),bl("BarV","Rectangle"),bl("MinusLine","LineH"),bl("PlusLine",function(a,y,x){return new ti().add(new Es(0,x/2,!1).add(new mo(na,y,x/2)).add(new mo(ss,y/2,0)).add(new mo(na,y/2,x)))}),bl("XLine",function(a,y,x){return new ti().add(new Es(0,x,!1).add(new mo(na,y,0)).add(new mo(ss,0,0)).add(new mo(na,y,x)))}),bl("LineRight",function(a,y,x){return new ti().add(new Es(.25*y,0,!1).add(new mo(na,.75*y,.5*x)).add(new mo(na,.25*y,x)))}),bl("LineDown",function(a,y,x){return new ti().add(new Es(0,.25*x,!1).add(new mo(na,.5*y,.75*x)).add(new mo(na,y,.25*x)))}),bl("LineLeft",function(a,y,x){return new ti().add(new Es(.75*y,0,!1).add(new mo(na,.25*y,.5*x)).add(new mo(na,.75*y,x)))}),bl("LineUp",function(a,y,x){return new ti().add(new Es(0,.75*x,!1).add(new mo(na,.5*y,.25*x)).add(new mo(na,y,.75*x)))}),Ae.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function Bv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Ga,this.ir=null,this.jr="",this.lr=Bo,this.Gq="",this.Hq=Ls,this.Pq=_o,this.Kq=ro,this.Up=null,this.Cq=127,this.zr=Yo,this.yr="gray",this.Vg=4}Bv.prototype.copy=function(){var a=new Bv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function ji(a,y){a===void 0||a instanceof Rs||typeof a=="string"?Gn.call(this,a):(Gn.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 Vt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new fn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Qe(ji,Gn),ji.prototype.cloneProtected=function(a){Gn.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},Et=ji.prototype,Et.Af=function(a){Gn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Et.toString=function(){var a=Ln(this.constructor)+"#"+bo(this);return this.data!==null&&(a+="("+Kn(this.data)+")"),a};function ou(a){a.P===null?a.P=new Bv:a.P.nc&&(a.P=a.P.copy())}Et.th=function(){Gn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Et.gk=function(a,y,x,b,E,z,tt){var rt=this.diagram;rt!==null&&(a===Xn&&y==="elements"?E instanceof Gn?Lf(E,function(ot){sy(rt.partManager,ot),dc(rt,ot)}):Sd(rt,E):a===hi&&y==="elements"&&(E instanceof Gn?Lf(E,function(ot){ly(rt.partManager,ot,rt)}):Gf(rt,E)),rt.cb(a,y,x,b,E,z,tt))},Et.La=function(a){if(Gn.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 Gn&&Lf(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},ji.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},ji.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},ji.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new ki),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},ji.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},ji.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=dn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);kn(y)}},ji.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}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 Cr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ao))break t;ch(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Gn.Link),x.adornedObject=y)}if(x!==null){x.type===Gn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},ji.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Ov(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Km(a){if(Kc(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function NS(a){if(a.G|=2097152,Kc(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||BS(a,y,x),x=a.Ib;var b=fn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),fn.free(b),Rv(a,!1)}}ji.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new kr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},ji.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=so;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Vt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,b,E,z);a.rotate(this.Kb,tt.x,tt.y),Vt.free(tt)}},ji.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},ji.prototype.moveTo=function(a,y,x){a=Vt.allocAt(a,y),this.move(a,x),Vt.free(a)},ji.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},ji.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},ji.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new ki),y.I(a)!==null)return y.I(a);var x=Gn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Sc(a,y,x,b){b===void 0&&(b=new Vt),x=x.Mc()?so:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}ji.prototype.mi=function(a){return a===void 0&&(a=new fn),a.assign(this.actualBounds)},ji.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function TS(a){var y=Vt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Br?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function kf(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=uS(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,b-=tt/2,E-=tt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}ji.prototype.arrange=function(){if(Hl(this)===!1)NS(this);else{xd(this,!1);var a=this.Ib,y=fn.alloc();y.assign(a);var x=Vc(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;BS(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Ae.B(y.width,a.width)&&Ae.B(y.height,a.height)||0<=this.vw&&this.C(16),fn.free(y),Rv(this,!1)}},Et=ji.prototype,Et.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=fn.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),fn.free(E)}!(this.G&65536)&&a.D(y)||RS(this,b,x),x.N(),!a.w()&&!y.w()||$o(a,y)||(this instanceof ci&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Et.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&DS(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new Vt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),Kc(this)===!1&&Hl(this)===!1&&(Km(this),NS(this)),!0};function DS(a,y,x,b,E){y===null||a instanceof Ao||(y=y.animationManager,y.zb&&ll(y,a,new Vt(b,E),x))}Et.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;Kc(this)||Hl(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}Km(this)},Et.Av=function(){this.G&=-2097153,Km(this)};function BS(a,y,x){var b=TS(a),E=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?OS(a,y,x,E,b):IS(a,y,x,E,b):z?OS(a,y,x,E,b):tt&&IS(a,y,x,E,b),a.G|=2097152,Vt.free(b),a.Uk()}function OS(a,y,x,b,E){var z=y.x,tt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Ao||ll(x,a,new Vt(z,tt),y),b||y.x===z&&y.y===tt||a.g("position",new Vt(z,tt),y.copy()))}function IS(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function RS(a,y,x){zv(a,!1),a instanceof ci&&zl(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Vc(a)?(ma(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Et.si=function(){return!0},Et.Zc=function(){return!0},Et.ph=function(){return!1},Et.Dd=function(){return!0};function Iv(a,y,x,b){y.constructor===a.constructor||HS||(HS=!0,Hi('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Hi(" Old class: "+Ln(a.constructor)+", new class: "+Ln(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,rt=!0,ot=!0,lt=!1;a instanceof ci&&(rt=a.isTreeLeaf,ot=a.isTreeExpanded,lt=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=tt?a.G|524288:a.G&-524289,a instanceof ci&&(a.U=rt?a.U|4:a.U&-5,a.U=ot?a.U|1:a.U&-2,a.U=lt?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}ji.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},ji.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},ji.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},ji.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},ji.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},ji.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},ji.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},ji.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},ji.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function Kc(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function zv(a,y){a.G=y?a.G|65536:a.G&-65537}function Vc(a){return(a.G&131072)!==0}Et=ji.prototype,Et.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Vm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Et.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Et.N=function(){var a=this.diagram;a!==null&&!Hl(this)&&!Kc(this)&&this.isVisible()&&this.Ib.w()&&a.N(kf(this,this.Ib))},Et.v=function(){Gn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof ci&&this.labeledLink!==null&&jl(this.labeledLink),a.$b(!0))},Et.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Et.Wo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},Et.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Et.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof ci&&(y=y.labeledLink,y!==null)?jv(a,y):0}Et.sz=function(){return zS(this,this)};function zS(a,y){var x=y.containingGroup;return x!==null||y instanceof ci&&(x=y.labeledLink,x!==null)?zS(a,x):y}Et.Td=function(a){return a instanceof Cr?Hv(this,this,a):!1};function Hv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Hv(a,b,x)?y instanceof ci&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}Et.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Cr&&Vm(y,!0),y instanceof ci){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 ci&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Cr&&Vm(y,!1),y instanceof ci&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},ji.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof ci&&this.isLinkLabel)},ji.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof ci&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function jS(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Yc(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Ao)){if(a.add(y),y instanceof ci){if(x&&y instanceof Cr)for(var tt=y.memberParts;tt.next();)Yc(a,tt.value,x,b,E,z);if(E!==!1)for(tt=y.linksConnected;tt.next();){var rt=tt.value;if(!a.contains(rt)){var ot=rt.fromNode,lt=rt.toNode;ot=ot===null||a.contains(ot),lt=lt===null||a.contains(lt),(E?ot&&lt:ot||lt)&&Yc(a,rt,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Yc(a,y.value,x,b-1,E,z)}else if(y instanceof $n)for(y=y.labelNodes;y.next();)Yc(a,y.value,x,b,E,z)}}Jt.Object.defineProperties(ji.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Pr: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(hi,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(Xn,"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&&(ou(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&&bu(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Ao?this.type!==Gn.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:_o},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),ou(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ro},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),ou(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&&(ou(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:Ls},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),ou(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,Hl(this)===!1&&(Km(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),DS(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof Ao)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Ao?this instanceof Ao&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(ch(x),x=x.copy(),x!==null&&Iv(this,x,y,a))):(z!==null&&z.jm(b,a),x=d1(x.partManager,b,a),x!==null&&(ch(x),x=x.copy(),x===null||x instanceof $n||(b=this.location.copy(),Iv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){Iv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(ou(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&&(ou(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&&(ou(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 $n?(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&&(ou(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&&(ou(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&&(ou(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:Ga},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),ou(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&&(ou(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&&(ou(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Bo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),ou(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&&ue("Cannot make a Group a member of itself: "+this.toString()),ue("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof Cr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof Cr&&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 Cr){for(x=new Mn,Yc(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof ci)for(b=b.linksConnected;b.next();)Og(b.value)}if(this instanceof ci){for(x=this.linksConnected;x.next();)Og(x.value);x=this.labeledLink,x!==null&&Og(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&bu(y,-1,a))}}else ue("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&&(ou(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof ci&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(ou(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&&(ou(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Yo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),ou(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&&(ou(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&&(ou(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),ji.prototype.invalidateLayout=ji.prototype.C,ji.prototype.findCommonContainingGroup=ji.prototype.px,ji.prototype.isMemberOf=ji.prototype.Td,ji.prototype.findTopLevelPart=ji.prototype.sz,ji.prototype.findSubGraphLevel=ji.prototype.oz,ji.prototype.ensureBounds=ji.prototype.Va,ji.prototype.getDocumentBounds=ji.prototype.mi,ji.prototype.findObject=ji.prototype.fb,ji.prototype.moveTo=ji.prototype.moveTo,ji.prototype.invalidateAdornments=ji.prototype.Wb,ji.prototype.clearAdornments=ji.prototype.Ej,ji.prototype.removeAdornment=ji.prototype.Jf,ji.prototype.addAdornment=ji.prototype.bh,ji.prototype.findAdornment=ji.prototype.Pj,ji.prototype.updateTargetBindings=ji.prototype.La;var HS=!1;ji.className="Part",ji.LayoutNone=0,ji.LayoutAdded=1,ji.LayoutRemoved=2,ji.LayoutShown=4,ji.LayoutHidden=8,ji.LayoutNodeSized=16,ji.LayoutGroupLayout=32,ji.LayoutNodeReplaced=64,ji.LayoutStandard=127,ji.LayoutAll=16777215;function Ao(a,y){a===void 0||a instanceof Rs||typeof a=="string"?ji.call(this,a):(ji.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Qe(Ao,ji),Ao.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ao.prototype.updateRelationshipsFromData=function(){},Ao.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof $n&&y instanceof Br){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 Br&&(E.ua=a)}}},Ao.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Hl(a))},Ao.prototype.Zc=function(){return!1},Ao.prototype.gk=function(a,y,x,b,E,z,tt){if(a===Xn&&y==="elements"){if(E instanceof Zl)this.$a===null&&(this.$a=E);else if(E instanceof Gn){var rt=E.Nl(function(ot){return ot instanceof Zl});rt instanceof Zl&&this.$a===null&&(this.$a=rt)}}else a===hi&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Gn&&this.$a.rg(b)&&(this.$a=null));ji.prototype.gk.call(this,a,y,x,b,E,z,tt)},Ao.prototype.updateAdornments=function(){},Ao.prototype.Lj=function(){},Jt.Object.defineProperties(Ao.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Ao.className="Adornment";function Wv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=su,this.er=Xm,this.Kr=this.ij=this.Nq=this.Mq=null}Wv.prototype.copy=function(){var a=new Wv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function ci(a,y){a===void 0||a instanceof Rs||typeof a=="string"?ji.call(this,a):(ji.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new bn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Qe(ci,ji),ci.prototype.cloneProtected=function(a){ji.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Et=ci.prototype,Et.Af=function(a){ji.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function xc(a){a.Ba===null?a.Ba=new Wv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Et.th=function(){ji.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function WS(a,y){y!==null&&(a.af===null&&(a.af=new Mn),a.af.add(y))}function ZS(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Et.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=ZS(this,a,y,x),a!==null&&a.Sl()},Et.gk=function(a,y,x,b,E,z,tt){a===Xn&&y==="elements"?this.wc=null:a===hi&&y==="elements"&&(this.wc=null),ji.prototype.gk.call(this,a,y,x,b,E,z,tt)},Et.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Lu(x.fromPort),Lu(x.toPort),x.bb())}};function GS(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Lu(x.fromPort),Lu(x.toPort),x.bb())}}function Lu(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Lu(y.port)}}Et.si=function(){return!0},ci.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},ci.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},ci.prototype.isVisible=function(){if(!ji.prototype.isVisible.call(this))return!1;var a=!0,y=gc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===gc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Fs){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===xg&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},ci.prototype.Zb=function(a){ji.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},ci.prototype.qx=function(){var a=new Mn,y=new Mn;return KS(this,this,a,y),y.iterator};function KS(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(E?tt.fromNode===y:tt.toNode===y)&&KS(a,E?tt.toNode:tt.fromNode,x,b):b.add(tt)})}}ci.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},Et=ci.prototype,Et.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},Et.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},Et.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 Mn,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 Mn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new tr(x):Pr},Et.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 Mn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new tr(x):Pr},Et.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 Mn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new tr(x):Pr},Et.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},Et.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 Ym(a,y,x){Lu(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,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,y,x),tt!==null&&(tt.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){Lu(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 tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=tt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Ep(y)))}function Ep(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}ci.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Et=ci.prototype,Et.Vo=function(a){ji.prototype.Vo.call(this,a),a||(Ep(this),a=this.Yk,a!==null&&_S(a,this))},Et.Wo=function(a){ji.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Et.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,ji.prototype.Lj.call(this)},Et.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;VS(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function VS(a){a.wc===null?a.wc=new ki:a.wc.clear(),a.qm(a,function(y,x){YS(y,x)}),a.wc.count===0&&a.wc.add("",a)}function YS(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Zv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=dn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);kn(x)}}}Et.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},Et.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}},Et.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Vm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)Vm(y,!1),y=y.pg();return x},Et.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},Et.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof ci)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},Et.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 Mn;return a(this,y),y},Et.uz=function(){return US(this,this)};function US(a,y){return y=y.pg(),y===null?0:1+US(a,y)}Et.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},Et.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new bn,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new bn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new tr(x):Pr},Et.wz=function(a){a===void 0&&(a=1/0);var y=new Mn;return Yc(y,this,!1,a,!0),y},ci.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 Mn;x.add(this),XS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gc),y.Ue=!1}};function XS(a,y,x,b,E,z,tt){if(1<b)for(var rt=x?a.Mo():a.Sd();rt.next();){var ot=rt.value;ot.isTreeLink&&(ot=ot.To(a),ot===null||ot===a||y.contains(ot)||(y.add(ot),XS(ot,y,x,b-1,E,z,tt)))}else JS(a,y,x,E,z,tt)}function JS(a,y,x,b,E,z){for(var tt=E===a?!0:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),ot={};rt.next();){var lt=rt.value;if(lt.isTreeLink&&(lt=lt.To(a),lt!==null&&lt!==a)){var ut=y.contains(lt);if(ut||y.add(lt),tt){var ft=x?lt.Oo():lt.Po();ot.uv=a,ft.all(function(yt){return function(Ct){return Ct===yt.uv||!Ct.isTreeExpanded}}(ot))&&b.Aj(lt,E),lt.oh(),lt.Zb(!1)}lt.isTreeExpanded&&(lt.wasTreeExpanded=lt.isTreeExpanded,ut||JS(lt,y,x,b,E,z))}ot={uv:ot.uv}}a.isTreeExpanded=!1}ci.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 Mn;x.add(this),QS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gc),y.Ue=!1}};function QS(a,y,x,b,E,z,tt){for(var rt=z===a?!1:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),lt={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(rt||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!rt){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();lt.vv=a,ft.all(function(yt){return function(Ct){return Ct===yt.vv||!Ct.isTreeExpanded}}(lt))&&E.Cj(ut,z)}(2<b||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,QS(ut,y,x,b-1,E,z,tt))}lt={vv:lt.vv}}a.isTreeExpanded=!0}Jt.Object.defineProperties(ci.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Xm},set:function(a){var y=this.portSpreading;y!==a&&(xc(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&zl(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:su},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),xc(this),this.Ba.yp=a;var x=this.diagram;x!==null&&zl(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(xc(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(xc(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(xc(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var tt=z.wa(b);tt!==void 0&&z.Qx(E,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&(_S(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),jl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&VS(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(xc(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),ci.prototype.expandTree=ci.prototype.expandTree,ci.prototype.collapseTree=ci.prototype.collapseTree,ci.prototype.findTreeParts=ci.prototype.wz,ci.prototype.findTreeChildrenNodes=ci.prototype.Ou,ci.prototype.findTreeChildrenLinks=ci.prototype.Qo,ci.prototype.findTreeLevel=ci.prototype.uz,ci.prototype.findTreeParentChain=ci.prototype.vz,ci.prototype.findTreeParentNode=ci.prototype.pg,ci.prototype.findTreeParentLink=ci.prototype.kh,ci.prototype.findCommonTreeParent=ci.prototype.gz,ci.prototype.findTreeRoot=ci.prototype.xz,ci.prototype.isInTreeOf=ci.prototype.Nz,ci.prototype.findPort=ci.prototype.ns,ci.prototype.findLinksTo=ci.prototype.kz,ci.prototype.findLinksBetween=ci.prototype.jz,ci.prototype.findNodesInto=ci.prototype.Oo,ci.prototype.findNodesOutOf=ci.prototype.Po,ci.prototype.findNodesConnected=ci.prototype.Mu,ci.prototype.findLinksInto=ci.prototype.Sd,ci.prototype.findLinksOutOf=ci.prototype.Mo,ci.prototype.findExternalTreeLinksConnected=ci.prototype.qx,ci.prototype.invalidateConnectedLinks=ci.prototype.Bd,ci.prototype.invalidateLinkBundle=ci.prototype.Lz;var bx=new sn(ci,"SpreadingNone",10),Xm=new sn(ci,"SpreadingEvenly",11),Gv=new sn(ci,"SpreadingPacked",12);ci.className="Node",ci.SpreadingNone=bx,ci.SpreadingEvenly=Xm,ci.SpreadingPacked=Gv;function Cr(a,y){a===void 0||a instanceof Rs||typeof a=="string"?ci.call(this,a):(ci.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Mn,this.$a=null,this.Sc=new Fa,this.Sc.group=this,this.gl=new Mn,this.tb=this.$p=null,y&&Object.assign(this,y)}Qe(Cr,ci),Cr.prototype.cloneProtected=function(a){ci.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Zl});y instanceof Zl?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())},Et=Cr.prototype,Et.Af=function(a){ci.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 ci)x.Bd(y);else if(x instanceof $n)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Et.gk=function(a,y,x,b,E,z,tt){if(a===Xn&&y==="elements"){if(E instanceof Zl)this.$a===null?this.$a=E:this.$a!==E&&ue("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Gn){var rt=E.Nl(function(ot){return ot instanceof Zl});rt instanceof Zl&&(this.$a===null?this.$a=rt:this.$a!==rt&&ue("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===hi&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Gn&&this.$a.rg(b)&&(this.$a=null));ci.prototype.gk.call(this,a,y,x,b,E,z,tt)},Et.Xl=function(a,y){ci.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Gn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Gn&&(a=a.Pb()),this.tb===null&&(this.tb=new fn),a.mi(this.tb),a instanceof Br&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Et.eh=function(a,y,x,b){this.nf=this.$a,ci.prototype.eh.call(this,a,y,x,b)},Et.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof $n||y.Va()}),ci.prototype.Va.call(this)},Et.si=function(){if(!ci.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof ci){if(y.isVisible()&&Hl(y))return!1}else if(y instanceof $n&&y.isVisible()&&Hl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof Cr&&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 $n&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Vv(a,y){if(a.Gn.remove(y)){y instanceof Cr&&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 $n&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Et.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)}ci.prototype.Lj.call(this)},Cr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=ln(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Cr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=ln(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Cr.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))},Et=Cr.prototype,Et.Bd=function(a){var y=(this.U&65536)!==0;if(ci.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()?(Lu(x.fromPort),Lu(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Lu(x.fromPort),Lu(x.toPort),x.bb()))}}},Et.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 Mn,b=y.iterator;b.next();){var E=b.value;if(E instanceof ci)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Et.iz=function(){var a=this.Rj();a.add(this);for(var y=new Mn,x=a.iterator;x.next();){var b=x.value;if(b instanceof ci)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},Et.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Mn;return a(this,y),y},Et.Rj=function(){var a=new Mn;return Yc(a,this,!0,0,!0),a.remove(this),a},Et.Zb=function(a){ci.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Cr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();$S(this,y,a,this),a.Ue=!1}};function $S(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof Cr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,$S(z,y,x,b)),z instanceof ci)z.Bd(y),x.Aj(z,b);else if(z instanceof $n)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Cr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();qS(this,y,a,this),a.Ue=!1}};function qS(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof Cr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,qS(z,y,x,b)),z instanceof ci)z.Bd(y),x.Cj(z,b);else if(z instanceof $n)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Cr.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=Vt.alloc(),ci.prototype.move.call(this,a,y),a=new Mn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof $n&&(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 ci&&E.isLinkLabel)){var tt=E.position,rt=E.location;tt.w()?(z.x=tt.x+b,z.y=tt.y+x,E.position=z):rt.w()&&(z.x=rt.x+b,z.y=rt.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof $n&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(tt=E.position,z.x=tt.x+b,z.y=tt.y+x,z.w()?E.move(z):E.bb(),Uv(E)&&E.bb());Vt.free(z)}},Jt.Object.defineProperties(Cr.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&&ue("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(xc(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(xc(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(xc(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(xc(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Cr.prototype.expandSubGraph=Cr.prototype.expandSubGraph,Cr.prototype.collapseSubGraph=Cr.prototype.collapseSubGraph,Cr.prototype.findSubGraphParts=Cr.prototype.Rj,Cr.prototype.findContainingGroupChain=Cr.prototype.hz,Cr.prototype.findExternalNodesConnected=Cr.prototype.iz,Cr.prototype.findExternalLinksConnected=Cr.prototype.Lu,Cr.prototype.ensureBounds=Cr.prototype.Va,Cr.className="Group";function Zl(a){Le.call(this),this.yb=dl,this.ko=new fn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Qe(Zl,Le),Zl.prototype.cloneProtected=function(a){Le.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Zl.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return fa(0,0,y.width,y.height,a.x,a.y)},Zl.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Cr||a instanceof Ao)||ue("Placeholder is not inside a Group or Adornment."),a instanceof Cr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(xs(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=Vt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Vt.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 tt=0;z instanceof Br&&(tt=z.strokeWidth);var rt=z.Df(),ot=z.naturalBounds,lt=(ot.width+tt)*rt;tt=(ot.height+tt)*rt,a.type!==Gn.Link&&(rt=z.ga(a.category==="Selection"?Ls:a.locationSpot,Vt.alloc()),a.location=rt,Vt.free(rt)),isNaN(lt)||isNaN(tt)?(a=z.ga(Ls,Vt.alloc()),lt=fn.allocAt(a.x,a.y,0,0),lt.Ye(z.ga(ml,a)),lt.Ye(z.ga(lu,a)),lt.Ye(z.ga(Ll,a)),xs(y,lt.width+b||0,lt.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Vt.free(a),fn.free(lt)):(xs(y,lt+b||0,tt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Zl.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Zl.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Cr&&!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=fn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Cr&&!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)),fn.free(x),b&&y instanceof Cr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Zl.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Cr))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,tt=y.memberParts;tt.next();){var rt=tt.value;if(rt.isVisible()){if(rt instanceof $n&&(!y.computesBoundsIncludingLinks||Iu(rt)||rt.fromNode===y||rt.toNode===y))continue;rt=rt.actualBounds,rt.left<x&&(x=rt.left),rt.top<b&&(b=rt.top),rt.right>E&&(E=rt.right),rt.bottom>z&&(z=rt.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},Jt.Object.defineProperties(Zl.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new zi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Zl.className="Placeholder";function $n(a){ji.call(this,Gn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Gl,this.Om=0,this.Qm=Gl,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new bn().freeze(),this.Tg=this.Mg=null,this.ml=new fn,this.ua=new ti,this.u=this.o=this.Sf=this.Wf=null,this.su=new Vt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Qe($n,ji),$n.prototype.cloneProtected=function(a){ji.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Et=$n.prototype,Et.Af=function(a){ji.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Lu(y),a=a.toPort,a!==null&&Lu(a)},Et.qb=function(a){a.classType===$n?(a.value&2)===2?this.routing=a:a===zu||a===Pc||a===Rg?this.curve=a:a===Ap||a===t0||a===e0?this.adjusting=a:a!==Qv&&a!==Gl&&ue("Unknown Link enum value for a Link property: "+a):ji.prototype.qb.call(this,a)},Et.Xc=function(){this.ba===null&&(this.ba=new gp)},Et.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Hl(a)||Kc(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Hl(a)||Kc(a)))},Et.zv=function(){return!1},Et.Av=function(){},Et.Zc=function(){return!1},$n.prototype.computeAngle=function(a,y,x){return $n.computeAngle(y,x)},$n.computeAngle=function(a,y){switch(a){default:case Gl:a=0;break;case kp:a=y;break;case Fp:a=y+90;break;case Np:a=y-90;break;case $v:a=y+180;break;case n0:a=Ae.bp(y),90<a&&270>a&&(a-=180);break;case Tp:a=Ae.bp(y+90),90<a&&270>a&&(a-=180);break;case Dp:a=Ae.bp(y-90),90<a&&270>a&&(a-=180);break;case i0:if(a=Ae.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ae.bp(a)};function Og(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Vv(x,a),a.Ah=y,y!==null&&Kv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,x,y),tt!==null&&(tt.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}Et=$n.prototype,Et.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ji.prototype.oh.call(this)},Et.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Et.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function _S(a,y){a.wd===null&&(a.wd=new Mn),a.wd.add(y),a.v()}Et.Vo=function(a){if(ji.prototype.Vo.call(this,a),Ff(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Ym(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Ym(x,this,b)}Lp(this)}},Et.Wo=function(a){if(ji.prototype.Wo.call(this,a),Ff(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Um(x,this,b)}Mp(this)}},Et.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))},$n.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},$n.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?ji.prototype.move.call(this,a,!1):(a=Vt.allocAt(x.x+b,x.y+E),ji.prototype.move.call(this,a,!1),Vt.free(a)),wc(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},$n.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},$n.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},$n.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ya),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()===zu))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()===zu){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Ae.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),Ae.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 tt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=tt[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},$n.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()===zu))return this.ua.wx(.5);if(this.computeCurve()===zu&&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),Ae.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)},Et=$n.prototype,Et.i=function(a){return this.Nb.s[a]},Et.dd=function(a,y){this.Nb.cd(a,y)},Et.L=function(a,y,x){this.Nb.cd(a,new Vt(y,x))},Et.Kz=function(a,y){this.Nb.Gb(a,y)},Et.m=function(a,y,x){this.Nb.Gb(a,new Vt(y,x))},Et.ne=function(a){this.Nb.add(a)},Et.yf=function(a,y){this.Nb.add(new Vt(a,y))},Et.pv=function(a){this.Nb.mb(a)},Et.Fj=function(){this.Nb.clear()};function wc(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new bn,z=a.Nb.iterator;z.next();){var tt=z.value;E.add(new Vt(tt.x+y,tt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.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),jl(a)),b?Jm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&ra(tt.animationManager,a,E),a.g("points",z,E)}}Et.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Et.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,tt=0;tt<z;tt++){var rt=E[tt];x=Math.min(rt.x,x),b=Math.min(rt.y,b)}rt=tt=1/0;for(var ot=y.s,lt=ot.length,ut=0;ut<lt;ut++){var ft=ot[ut];tt=Math.min(ft.x,tt),rt=Math.min(ft.y,rt),ft.freeze()}if(y.freeze(),lt===z){for(z=0;z<lt;z++)if(ut=E[z],ft=ot[z],ut.x-x!==ft.x-tt||ut.y-b!==ft.y-rt){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&ra(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},Et.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Jm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),_m(a,!1))}Et.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())}},Et.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()}}},$n.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(ng||(ng=new ci,ng.desiredSize=Mr,ng.Va()),this.defaultFromPoint&&(ng.location=this.defaultFromPoint,ng.Va(),y=a=ng)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(ig||(ig=new ci,ig.desiredSize=Mr,ig.Va()),this.defaultToPoint&&(ig.location=this.defaultToPoint,ig.Va(),E=b=ig)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var rt=Ig(tt),ot=Ig(x),lt=y===E&&y!==null,ut=this.isOrthogonal,ft=this.curve===zu;this.Wf=lt&&!ut?ft=!0:!1;var yt=this.computeAdjusting()===Gl||lt;if(!ut&&!lt&&rt&&ot){if(rt=!1,!yt&&3<=z&&(yt=this.getLinkPoint(a,y,tt,!0,!1,b,E),ot=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=this.adjustPoints(0,yt,z-1,ot))&&(yt=this.getLinkPoint(a,y,tt,!0,!1,b,E),ot=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,yt,z-1,ot)),!rt)if(this.Fj(),ft){z=this.getLinkPoint(a,y,tt,!0,!1,b,E),yt=this.getLinkPoint(b,E,x,!1,!1,a,y),rt=yt.x-z.x,ot=yt.y-z.y,lt=this.computeCurviness(),ft=ut=0;var Ct=z.x+rt/3,bt=z.y+ot/3,Dt=Ct,qt=bt;Ae.B(ot,0)?qt=0<rt?qt-lt:qt+lt:(ut=-rt/ot,ft=Math.sqrt(lt*lt/(ut*ut+1)),0>lt&&(ft=-ft),Dt=(0>ot?-1:1)*ft+Ct,qt=ut*(Dt-Ct)+bt),Ct=z.x+2*rt/3,bt=z.y+2*ot/3;var Wt=Ct,ae=bt;Ae.B(ot,0)?ae=0<rt?ae-lt:ae+lt:(Wt=(0>ot?-1:1)*ft+Ct,ae=ut*(Wt-Ct)+bt),this.Fj(),this.ne(z),this.yf(Dt,qt),this.yf(Wt,ae),this.ne(yt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,yt=E,b=this.getLinkPoint(a,y,tt,!0,!1,z,yt),E=this.getLinkPoint(z,yt,x,!1,!1,a,y),this.hasCurviness()?(yt=E.x-b.x,x=E.y-b.y,tt=this.computeCurviness(),a=b.x+yt/2,y=b.y+x/2,z=a,rt=y,Ae.B(x,0)?rt=0<yt?rt-tt:rt+tt:(yt=-yt/x,z=Math.sqrt(tt*tt/(yt*yt+1)),0>tt&&(z=-z),z=(0>x?-1:1)*z+a,rt=yt*(z-a)+y),this.ne(b),this.yf(z,rt),this.ne(E)):(this.ne(b),this.ne(E),rt=fn.alloc(),y.mi(rt),ot=rt.ca(E),yt.mi(rt),lt=rt.ca(b),(ot||lt)&&(tt=y.ga($m(tt),new Vt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,E,!0,tt)),x=yt.ga($m(x),new Vt),this.dd(1,this.getLinkPointFromPoint(z,yt,x,b,!1,x))),fn.free(rt))}else{ft=this.isAvoiding,yt&&(ut&&ft||lt)&&this.Fj();var le=lt?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,b,E),Ct=Dt=bt=0,(ut||!rt||lt)&&(qt=this.computeEndSegmentLength(a,y,tt,!0),Ct=this.getLinkDirection(a,y,ft,tt,!0,ut,b,E),lt&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Ct-=ut?90:30,0>le&&(Ct-=180)),0>Ct?Ct+=360:360<=Ct&&(Ct-=360),lt&&(qt+=Math.abs(le)*(ut?1:2)),Ct===0?bt=qt:Ct===90?Dt=qt:Ct===180?bt=-qt:Ct===270?Dt=-qt:(bt=qt*Math.cos(Ct*Math.PI/180),Dt=qt*Math.sin(Ct*Math.PI/180)),tt.Mc()&&lt&&(qt=y.ga(so,Vt.alloc()),Wt=Vt.allocAt(qt.x+1e3*bt,qt.y+1e3*Dt),this.getLinkPointFromPoint(a,y,qt,Wt,!0,ft),Vt.free(qt),Vt.free(Wt))),qt=this.getLinkPoint(b,E,x,!1,ut,a,y);var ge=ae=Wt=0;if(ut||!ot||lt){var be=this.computeEndSegmentLength(b,E,x,!1);ge=this.getLinkDirection(b,E,qt,x,!1,ut,a,y),lt&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(ge+=ut?0:30,0>le&&(ge+=180)),0>ge?ge+=360:360<=ge&&(ge-=360),lt&&(be+=Math.abs(le)*(ut?1:2)),ge===0?Wt=be:ge===90?ae=be:ge===180?Wt=-be:ge===270?ae=-be:(Wt=be*Math.cos(ge*Math.PI/180),ae=be*Math.sin(ge*Math.PI/180)),x.Mc()&&lt&&(x=E.ga(so,Vt.alloc()),tt=Vt.allocAt(x.x+1e3*Wt,x.y+1e3*ae),this.getLinkPointFromPoint(b,E,x,tt,!1,qt),Vt.free(x),Vt.free(tt))}x=ft,(ut||!rt||lt)&&(x=new Vt(ft.x+bt,ft.y+Dt)),tt=qt,(ut||!ot||lt)&&(tt=new Vt(qt.x+Wt,qt.y+ae)),!yt&&!ut&&rt&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,qt):!yt&&!ut&&ot&&3<z&&this.adjustPoints(1,x,z-1,qt)?this.dd(0,ft):!yt&&(ut?6<=z:4<z)&&this.adjustPoints(1,x,z-2,tt)?(this.dd(0,ft),this.dd(z-1,qt)):(this.Fj(),this.ne(ft),(ut||!rt||lt)&&this.ne(x),ut&&this.addOrthoPoints(x,Ct,tt,ge,a,b),(ut||!ot||lt)&&this.ne(tt),this.ne(qt))}return!0};function Yv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}$n.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Vt),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 tt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*E;var rt=-a.m12*E,ot=-a.m21*E,lt=a.m11*E,ut=E*(a.m21*a.dy-a.m22*a.dx),ft=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*tt+b.y*ot+ut,b=b.x*rt+b.y*lt+ft,tt=x.x*tt+x.y*ot+ut,x=x.x*rt+x.y*lt+ft}return y.Sj(E,b,tt,x,z),a!==null&&z.transform(a),z};function Qm(a,y){var x=y.Zn;return x===null&&(x=new rg,x.port=y,x.node=y.part,y.Zn=x),s1(x,a)}$n.prototype.getLinkPoint=function(a,y,x,b,E,z,tt,rt){if(rt===void 0&&(rt=new Vt),x.sb()&&!Ig(x))return y.ga(x,rt),rt;if(x.$c()){var ot=Qm(this,y);if(ot!==null){if(rt.assign(ot.Zo),E&&this.routing===e1){var lt=Qm(this,tt);if(lt!==null&&ot.Gl<lt.Gl){ot=Vt.alloc(),lt=Vt.alloc();var ut=new fn(y.ga(Ls,ot),y.ga(ml,lt)),ft=this.computeSpot(!b,tt);a=this.getLinkPoint(z,tt,ft,!b,E,a,y,lt),(x.Hf(wu)||x.Hf(vl))&&a.y>=ut.y&&a.y<=ut.y+ut.height?rt.y=a.y:(x.Hf(Wu)||x.Hf(Al))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(rt.x=a.x),Vt.free(ot),Vt.free(lt)}}return rt}}return x=y.ga($m(x),Vt.alloc()),this.pointsCount>(E?6:2)?(tt=b?this.i(1):this.i(this.pointsCount-2),E&&(tt=Yv(x,tt.copy()))):(ot=this.computeSpot(!b,tt),z=Vt.alloc(),tt=tt.ga($m(ot),z),E&&(tt=Yv(x,tt)),Vt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,b,rt),Vt.free(x),rt},$n.prototype.getLinkDirection=function(a,y,x,b,E,z,tt,rt){t:if(b.sb())var ot=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()&&(ot=Qm(this,y),ot!==null))switch(ot.Nc){case 1:ot=270;break t;case 2:ot=180;break t;default:case 4:ot=0;break t;case 8:ot=90;break t}ot=y.ga(so,Vt.alloc()),this.pointsCount>(z?6:2)?(rt=E?this.i(1):this.i(this.pointsCount-2),rt=z?Yv(ot,rt.copy()):x):(x=Vt.alloc(),rt=rt.ga(so,x),Vt.free(x)),x=Math.abs(rt.x-ot.x)>Math.abs(rt.y-ot.y)?rt.x>=ot.x?0:180:rt.y>=ot.y?90:270,Vt.free(ot),ot=x}return b.Mc()&&tt.Td(a)&&(ot+=180,360<=ot&&(ot-=360)),Ig(b)||(a=y.li(),a===0)||(45<=a&&135>a?ot+=90:135<=a&&225>a?ot+=180:225<=a&&315>a&&(ot+=270),360<=ot&&(ot-=360)),ot},$n.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Qm(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},$n.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=so:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Bo?Ua:y)):(a=y||this.toPort,a===null?a=so:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Bo?Ua:y)),a};function Ig(a){return a===Ua||a.x===.5&&a.y===.5}function $m(a){return a.x===.5&&a.y===.5?a:so}$n.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Gl&&4<this.pointsCount?this.computeMidPoint(new Vt):(a=y.Zn,a=a!==null?s1(a,this):null,a!==null?a.Zo:y.ga(so))},$n.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},$n.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 tt=z;if(z===void 0&&(tt=kr.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,E),z===void 0&&kr.free(tt),!0;if(this.Yc(a,tt)){var rt=!1;if(!this.isAtomic)for(var ot=this.O.s,lt=ot.length;lt--;){var ut=ot[lt];if(ut.visible||ut===this.locationObject){var ft=ut.actualBounds,yt=this.naturalBounds;if(!(ft.x>yt.width||ft.y>yt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=kr.alloc(),ft.set(tt),ut instanceof Gn)rt=ut.Cf(a,y,x,b,E,ft);else if(this.path===ut){if(ut instanceof Br)if(rt=a,yt=b,ut.pickable===!1)rt=!1;else if(ft.multiply(ut.transform),yt)t:{var Ct=rt,bt=ft;if(ut.fh(Ct,bt))rt=!0;else{if(bt===void 0&&(bt=ut.transform,Ct.Re(ut.actualBounds))){rt=!0;break t}rt=Ct.left,yt=Ct.right;var Dt=Ct.top;Ct=Ct.bottom;var qt=Vt.alloc(),Wt=Vt.alloc(),ae=Vt.alloc(),le=kr.alloc();le.set(bt),le.bv(ut.transform),le.Vj(),Wt.x=yt,Wt.y=Dt,Wt.transform(le),qt.x=rt,qt.y=Dt,qt.transform(le),bt=!1,Af(ut,qt,Wt,ae)?bt=!0:(qt.x=yt,qt.y=Ct,qt.transform(le),Af(ut,qt,Wt,ae)?bt=!0:(Wt.x=rt,Wt.y=Ct,Wt.transform(le),Af(ut,qt,Wt,ae)?bt=!0:(qt.x=rt,qt.y=Dt,qt.transform(le),Af(ut,qt,Wt,ae)&&(bt=!0)))),kr.free(le),Vt.free(qt),Vt.free(Wt),Vt.free(ae),rt=bt}}else rt=ut.fh(rt,ft)}else rt=Zs(ut,a,b,ft);rt&&(yt=ut,y!==null&&(yt=y(ut)),yt&&(x===null||x(yt))&&E.add(yt)),kr.free(ft)}}}return z===void 0&&kr.free(tt),rt||this.background!==null||this.areaBackground!==null}return z===void 0&&kr.free(tt),!1},$n.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?zu:this.curve},$n.prototype.computeCorner=function(){if(this.curve===zu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},$n.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},$n.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=i1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,tt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===kp||b===n0||b===$v?a=Math.max(a,E):b===Np||b===Dp||b===Fp||b===Tp?a=Math.max(a,tt):(y=y.ga(so).ab(x.ga(so))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*E)+1)),this.curve===zu&&(a*=1.333)}}return a},$n.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Gl&&x.bb()}},$n.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=n1;var y=this.Sf;if(y!==null){for(var x=dn(),b=0,E=y.links,z=0;z<E.length;z++){var tt=E[z].computeSpacing();x.push(tt),b+=tt}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),kn(x)}}return a},$n.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},$n.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},$n.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===t0)return!1;E===e0&&(E=Ap)}switch(E){case t0:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(b)){E=z.x,z=z.y;var rt=tt.x-E,ot=tt.y-z,lt=Math.sqrt(rt*rt+ot*ot);if(!Ae.$(lt,0)){if(Ae.$(rt,0))var ut=0>ot?-Math.PI/2:Math.PI/2;else ut=Math.atan(ot/Math.abs(rt)),0>rt&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;rt=b.x-tt;var yt=b.y-ft;for(ot=Math.sqrt(rt*rt+yt*yt),Ae.$(rt,0)?yt=0>yt?-Math.PI/2:Math.PI/2:(yt=Math.atan(yt/Math.abs(rt)),0>rt&&(yt=Math.PI-yt)),lt=ot/lt,ut=yt-ut,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),rt=y.x-E,ot=y.y-z,y=Math.sqrt(rt*rt+ot*ot),Ae.$(y,0)||(Ae.$(rt,0)?ot=0>ot?-Math.PI/2:Math.PI/2:(ot=Math.atan(ot/Math.abs(rt)),0>rt&&(ot=Math.PI-ot)),rt=ot+ut,y*=lt,this.L(a,tt+y*Math.cos(rt),ft+y*Math.sin(rt)));this.dd(x,b)}}return!0;case e0:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(b)){E=z.x,z=z.y,tt=ft.x,ft=ft.y,lt=(tt-E)*(tt-E)+(ft-z)*(ft-z),rt=y.x,ut=y.y,ot=b.x,yt=b.y;var Ct=1;if(ot-rt!==0){var bt=(yt-ut)/(ot-rt);Ct=Math.sqrt(1+1/(bt*bt))}else bt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Dt=y.x,qt=y.y,Wt=.5;lt!==0&&(Wt=((E-Dt)*(E-tt)+(z-qt)*(z-ft))/lt);var ae=E+Wt*(tt-E),le=z+Wt*(ft-z);y=Math.sqrt((Dt-ae)*(Dt-ae)+(qt-le)*(qt-le)),qt<bt*(Dt-ae)+le&&(y=-y),0<bt&&(y=-y),Dt=rt+Wt*(ot-rt),Wt=ut+Wt*(yt-ut),bt!==0?(y=Dt+y/Ct,this.L(a,y,Wt-(y-Dt)/bt)):this.L(a,Dt,Wt+y)}this.dd(x,b)}return!0;case Ap:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),tt=this.i(a+2),rt=z.x,ut=z.y,ft=rt,lt=ut,Ae.B(E.y,z.y)?Ae.B(z.x,tt.x)?ut=y.y:Ae.B(z.y,tt.y)&&(rt=y.x):Ae.B(E.x,z.x)&&(Ae.B(z.y,tt.y)?rt=y.x:Ae.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,rt,ut),E=this.i(x),z=this.i(x-1),tt=this.i(x-2),rt=z.x,ut=z.y,ot=rt,yt=ut,Ae.B(E.y,z.y)?Ae.B(z.x,tt.x)?ut=b.y:Ae.B(z.y,tt.y)&&(rt=b.x):Ae.B(E.x,z.x)&&(Ae.B(z.y,tt.y)?rt=b.x:Ae.B(z.x,tt.x)&&(ut=b.y)),this.L(x-1,rt,ut),Uv(this))){this.L(a+1,ft,lt),this.L(x-1,ot,yt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},$n.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 tt=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 rt=E.actualBounds.copy(),ot=z.actualBounds.copy();if(rt.w()&&ot.w()){rt.Bc(Bp,Bp),ot.Bc(Bp,Bp),rt.Ye(a),ot.Ye(x);var lt=Vt.alloc(),ut=Vt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&ot.right>a.x||b===90&&x.y>a.y&&ot.right>a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===180?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(lt.x=a.x<ot.left?this.computeMidOrthoPosition(a.x,a.y,ot.left,x.y,!1):a.x<ot.right&&(b===270&&a.y<ot.top||b===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.right,ut.x=lt.x,ut.y=x.y):b===0&&a.x<ot.left&&a.y>ot.top&&a.y<ot.bottom&&(lt.x=a.x,lt.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=lt.y)):(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===180&&(ot.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?lt.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(b===180||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>rt.top&&lt.y<rt.bottom&&(x.x>=rt.left&&x.x<=a.x||a.x<=ot.right&&a.x>=x.x?(b===90||b===270)&&(lt.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,b===0?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=lt.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&ot.left<a.x||b===90&&x.y>a.y&&ot.left<a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===0?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(lt.x=a.x>ot.right?this.computeMidOrthoPosition(a.x,a.y,ot.right,x.y,!1):a.x>ot.left&&(b===270&&a.y<ot.top||b===90&&a.y>ot.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ot.left,ut.x=lt.x,ut.y=x.y):b===180&&a.x>ot.right&&a.y>ot.top&&a.y<ot.bottom&&(lt.x=a.x,lt.y=a.y<x.y?Math.min(x.y,ot.top):Math.max(x.y,ot.bottom),ut.y=lt.y)):(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<rt.top||b===270&&x.y>rt.bottom)&&(b===0&&(ot.ca(a)||rt.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?lt.y=this.computeMidOrthoPosition(a.x,rt.top,x.x,Math.max(x.y,ot.bottom),!0):x.y>a.y&&(b===0||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,rt.bottom,x.x,Math.min(x.y,ot.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>rt.top&&lt.y<rt.bottom&&(x.x<=rt.right&&x.x>=a.x||a.x>=ot.left&&a.x<=x.x?(b===90||b===270)&&(lt.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?rt.top:Math.min(rt.top,ot.top)):Math.max(x.y,b===180?rt.bottom:Math.max(rt.bottom,ot.bottom)),ut.x=x.x,ut.y=lt.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&ot.bottom>a.y||b===0&&x.x>a.x&&ot.bottom>a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===270?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(lt.y=a.y<ot.top?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.top,!0):a.y<ot.bottom&&(b===180&&a.x<ot.left||b===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.bottom,ut.x=x.x,ut.y=lt.y):b===90&&a.y<ot.top&&a.x>ot.left&&a.x<ot.right&&(lt.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),lt.y=a.y,ut.x=lt.x)):(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===270&&(ot.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?lt.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>rt.left&&lt.x<rt.right&&(x.y>=rt.top&&x.y<=a.y||a.y<=ot.bottom&&a.y>=x.y?(b===0||b===180)&&(lt.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,b===90?rt.right:Math.max(rt.right,ot.right)),ut.x=lt.x,ut.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&ot.top<a.y||b===0&&x.x>a.x&&ot.top<a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===90?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(lt.y=a.y>ot.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ot.bottom,!0):a.y>ot.top&&(b===180&&a.x<ot.left||b===0&&a.x>ot.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ot.top,ut.x=x.x,ut.y=lt.y):b===270&&a.y>ot.bottom&&a.x>ot.left&&a.x<ot.right&&(lt.x=a.x<x.x?Math.min(x.x,ot.left):Math.max(x.x,ot.right),lt.y=a.y,ut.x=lt.x)):(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<rt.left||b===180&&x.x>rt.right)&&(b===90&&(ot.ca(a)||rt.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?lt.x=this.computeMidOrthoPosition(rt.left,a.y,Math.max(x.x,ot.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(lt.x=this.computeMidOrthoPosition(rt.right,a.y,Math.min(x.x,ot.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>rt.left&&lt.x<rt.right&&(x.y<=rt.bottom&&x.y>=a.y||a.y>=ot.top&&a.y<=x.y?(b===0||b===180)&&(lt.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?rt.left:Math.min(rt.left,ot.left)):Math.max(x.x,b===270?rt.right:Math.max(rt.right,ot.right)),ut.x=lt.x,ut.y=x.y)));var ft=x;if(this.isAvoiding){var yt=this.diagram;if(yt===null||E===z||this.layer.isTemporary||!Jo(yt)||rt.ca(ft)&&!z.Td(E)||ot.ca(a)&&!E.Td(z))y=!1;else{var Ct=Ya(yt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ct.Yj(Math.min(a.x,lt.x),Math.min(a.y,lt.y),Math.abs(a.x-lt.x),Math.abs(a.y-lt.y))&&Ct.Yj(Math.min(lt.x,ut.x),Math.min(lt.y,ut.y),Math.abs(lt.x-ut.x),Math.abs(lt.y-ut.y))&&Ct.Yj(Math.min(ut.x,ft.x),Math.min(ut.y,ft.y),Math.abs(ut.x-ft.x),Math.abs(ut.y-ft.y)))y=!1;else{E=a,z=ft;var bt=x=null;if(yt.isVirtualized){yt=Ct.bounds.copy(),yt.Bc(-Ct.Ho,-Ct.Go);var Dt=Vt.alloc();zg(Ct,a.x,a.y)||(Ae.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,a.x,a.y,lt.x,lt.y,Dt)?(x=a=Dt.copy(),y=Dt.ab(lt)):Ae.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,lt.x,lt.y,ut.x,ut.y,Dt)?(x=a=Dt.copy(),y=Dt.ab(ut)):Ae.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,ut.x,ut.y,ft.x,ft.y,Dt)&&(x=a=Dt.copy(),y=Dt.ab(ft))),zg(Ct,ft.x,ft.y)||(Ae.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,ft.x,ft.y,ut.x,ut.y,Dt)?(bt=ft=Dt.copy(),b=ut.ab(Dt)):Ae.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,ut.x,ut.y,lt.x,lt.y,Dt)?(bt=ft=Dt.copy(),b=lt.ab(Dt)):Ae.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,lt.x,lt.y,a.x,a.y,Dt)&&(bt=ft=Dt.copy(),b=a.ab(Dt))),Vt.free(Dt)}rt=rt.copy().ed(ot),rt.Bc(Ct.Ho*Ct.Os,Ct.Go*Ct.Os),o1(Ct,a,y,ft,b,rt,!0),ot=Ed(Ct,ft.x,ft.y),!Ct.abort&&ot>=jg&&(r1(Ct),rt.Bc(Ct.Ho*Ct.Hx,Ct.Go*Ct.Ix),o1(Ct,a,y,ft,b,rt,!1),ot=Ed(Ct,ft.x,ft.y)),!Ct.abort&&ot<jg&&Ed(Ct,ft.x,ft.y)!==Cc?(Xv(this,Ct,ft.x,ft.y,b,!0,tt),rt=this.i(2),4>this.pointsCount?(y===0||y===180?(rt.x=a.x,rt.y=ft.y):(rt.x=ft.x,rt.y=a.y),this.L(2,rt.x,rt.y),this.m(3,rt.x,rt.y)):(tt=this.i(3),y===0||y===180?Ae.B(rt.x,tt.x)?(rt=y===0?Math.max(rt.x,a.x):Math.min(rt.x,a.x),this.L(2,rt,a.y),this.L(3,rt,tt.y)):Ae.B(rt.y,tt.y)?(Math.abs(a.y-rt.y)<=Ct.Go/2&&(this.L(2,rt.x,a.y),this.L(3,tt.x,a.y)),this.m(2,rt.x,a.y)):this.L(2,a.x,rt.y):(y===90||y===270)&&(Ae.B(rt.y,tt.y)?(rt=y===90?Math.max(rt.y,a.y):Math.min(rt.y,a.y),this.L(2,a.x,rt),this.L(3,tt.x,rt)):Ae.B(rt.x,tt.x)?(Math.abs(a.x-rt.x)<=Ct.Ho/2&&(this.L(2,a.x,rt.y),this.L(3,a.x,tt.y)),this.m(2,a.x,rt.y)):this.L(2,rt.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),bt!==null&&(b===0||b===180?this.yf(z.x,bt.y):this.yf(bt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(lt.copy()),this.ne(ut.copy())),Vt.free(lt),Vt.free(ut)}},$n.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Uv(a){if(a.diagram===null||!a.isAvoiding||!Jo(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Ya(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function Xv(a,y,x,b,E,z,tt){var rt=y.Ho,ot=y.Go,lt=Ed(y,x,b),ut=x,ft=b;for(E===0?ut+=rt:E===90?ft+=ot:E===180?ut-=rt:ft-=ot,E!==tt&&lt>Nf&&Ed(y,ut,ft)!==lt-1&&(Ed(y,x-rt,b)===lt-1?(E=180,ut=x-rt,ft=b):Ed(y,x+rt,b)===lt-1?(E=0,ut=x+rt,ft=b):Ed(y,x,b-ot)===lt-1?(E=270,ut=x,ft=b-ot):Ed(y,x,b+ot)===lt-1&&(E=90,ut=x,ft=b+ot));lt>Nf&&Ed(y,ut,ft)===lt-1;)x=ut,b=ft,E===0?ut+=rt:E===90?ft+=ot:E===180?ut-=rt:ft-=ot,--lt;z?lt>Nf&&(E===180||E===0?x=Math.floor(x/rt)*rt+rt/2:(E===90||E===270)&&(b=Math.floor(b/ot)*ot+ot/2)):(x=Math.floor(x/rt)*rt+rt/2,b=Math.floor(b/ot)*ot+ot/2),lt>Nf&&(z=E,tt=x,ut=b,E===0?(z=90,ut+=ot):E===90?(z=180,tt-=rt):E===180?(z=270,ut-=ot):E===270&&(z=0,tt+=rt),Ed(y,tt,ut)===lt-1?Xv(a,y,tt,ut,z,!1,z):(tt=x,ut=b,E===0?(z=270,ut-=ot):E===90?(z=0,tt+=rt):E===180?(z=90,ut+=ot):E===270&&(z=180,tt-=rt),Ed(y,tt,ut)===lt-1&&Xv(a,y,tt,ut,z,!1,z))),a.yf(x,b)}$n.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Zo(y,a,x.x,x.y,b.x,b.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var rt=Zo(y,a,b.x,b.y,x.x,x.y);b=x,rt<E&&(z=tt,E=rt)}return z},$n.prototype.qc=function(){this.lk=!1,this.v()},$n.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 Br&&(E.ua=this.ua)}}},$n.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Ff(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var tt=this.computeCurve();if(tt===zu&&3<=y&&!Ae.$(this.smoothness,0))if(y===3){var rt=this.i(1);b=Math.min(E.x,rt.x);var ot=Math.min(E.y,rt.y);rt=this.i(2),b=Math.min(b,rt.x),ot=Math.min(ot,rt.y)}else{if(this.isOrthogonal)for(ot=0;ot<y;ot++)rt=b[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),ot=this.i(b),z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,ot=z.y}else{for(ot=0;ot<y;ot++)rt=b[ot],z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);b=z.x,ot=z.y}if(b-=this.su.x,ot-=this.su.y,E.x-=b,E.y-=ot,y!==2||Ff(this)){if(a.type=ti.o,rt=FS(a),this.computeShortLength(!0)!==0&&(E=tg(this,E,!0,z)),Bg(rt,E.x,E.y,!1),tt===zu&&3<=y&&!Ae.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-ot,E=this.i(2).copy(),E.x-=b,E.y-=ot,this.computeShortLength(!1)!==0&&(E=tg(this,E,!1,z)),yc(rt,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Vt.allocAt(b,ot),x=Vt.alloc(),x.assign(this.i(1)),z=Vt.allocAt(b,ot),E=Vt.allocAt(b,ot),tt=this.i(0);for(var lt,ut=this.smoothness/3,ft=1;ft<this.pointsCount-1;ft++){lt=this.i(ft);var yt=tt,Ct=lt,bt=this.i(Jv(this,lt,ft,!1));if((!Ae.$(yt.x,Ct.x)||!Ae.$(Ct.x,bt.x))&&(!Ae.$(yt.y,Ct.y)||!Ae.$(Ct.y,bt.y))){var Dt=ut;isNaN(Dt)&&(Dt=this.smoothness/3);var qt=yt.x;yt=yt.y;var Wt=Ct.x;Ct=Ct.y;var ae=bt.x;bt=bt.y;var le=Dt*qm(qt,yt,Wt,Ct);Dt*=qm(Wt,Ct,ae,bt),Ae.$(yt,Ct)&&Ae.$(Wt,ae)&&(Wt>qt?bt>Ct?(z.x=Wt-le,z.y=Ct-le,E.x=Wt+Dt,E.y=Ct+Dt):(z.x=Wt-le,z.y=Ct+le,E.x=Wt+Dt,E.y=Ct-Dt):bt>Ct?(z.x=Wt+le,z.y=Ct-le,E.x=Wt-Dt,E.y=Ct+Dt):(z.x=Wt+le,z.y=Ct+le,E.x=Wt-Dt,E.y=Ct-Dt)),Ae.$(qt,Wt)&&Ae.$(Ct,bt)&&(Ct>yt?(ae>Wt?(z.x=Wt-le,z.y=Ct-le,E.x=Wt+Dt):(z.x=Wt+le,z.y=Ct-le,E.x=Wt-Dt),E.y=Ct+Dt):(ae>Wt?(z.x=Wt-le,z.y=Ct+le,E.x=Wt+Dt):(z.x=Wt+le,z.y=Ct+le,E.x=Wt-Dt),E.y=Ct-Dt)),(Ae.$(qt,Wt)&&Ae.$(Wt,ae)||Ae.$(yt,Ct)&&Ae.$(Ct,bt))&&(qt=.5*(qt+ae),yt=.5*(yt+bt),z.x=qt,z.y=yt,E.x=qt,E.y=yt),(ft===1||ft===2&&Ae.$(tt.x,this.i(0).x)&&Ae.$(tt.y,this.i(0).y))&&(x.x=.5*(tt.x+lt.x),x.y=.5*(tt.y+lt.y)),yc(rt,x.x-b,x.y-ot,z.x-b,z.y-ot,lt.x-b,lt.y-ot),y.set(z),x.set(E),tt=lt}}lt=tt.x,tt=tt.y,ut=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ut=tg(this,ut.copy(),!1,fo)),lt=.5*(lt+ut.x),tt=.5*(tt+ut.y),yc(rt,E.x-b,E.y-ot,lt-b,tt-ot,ut.x-b,ut.y-ot),Vt.free(y),Vt.free(x),Vt.free(z),Vt.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),tt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(tt=tg(this,tt.copy(),!1,fo)),yc(rt,z.x-b,z.y-ot,E.x-b,E.y-ot,tt.x-b,tt.y-ot);else{for(z=Vt.alloc(),z.assign(this.i(0)),E=Vt.alloc(),E.assign(z),tt=this.computeCorner(),ft=1,lt=0;ft<y;){if(ft=Jv(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=tg(this,ut.copy(),!1,fo)),eg(this,rt,-b,-ot,z,ut,x);else if(lt===0)for(ft=1;ft<y;)E.assign(z),ut=this.i(ft++),eg(this,rt,-b,-ot,z,ut,x),z.assign(ut);break}if(lt=Jv(this,ut,ft+1,ft<y-3),ft=-b,qt=-ot,yt=ut,Wt=this.i(lt),Dt=x,Ae.B(z.y,yt.y)&&Ae.B(yt.x,Wt.x))if(bt=Math.min(tt,Math.abs(yt.x-E.x)/2),bt=le=Math.min(bt,Math.abs(Wt.y-yt.y)/2),Ae.B(bt,0))eg(this,rt,ft,qt,z,yt,Dt),z.assign(yt);else{var ge=yt.x,be=yt.y;Ct=ge,ae=be,yt.x>z.x?ge=yt.x-bt:ge=yt.x+bt,Wt.y>yt.y?ae=yt.y+le:ae=yt.y-le,Wt=Vt.allocAt(ge,be),eg(this,rt,ft,qt,z,Wt,Dt),Vt.free(Wt),Zm(rt,yt.x+ft,yt.y+qt,Ct+ft,ae+qt),z.h(Ct,ae)}else Ae.B(z.x,yt.x)&&Ae.B(yt.y,Wt.y)?(bt=Math.min(tt,Math.abs(yt.y-E.y)/2),bt=le=Math.min(bt,Math.abs(Wt.x-yt.x)/2),Ae.B(le,0)?(eg(this,rt,ft,qt,z,yt,Dt),z.assign(yt)):(ge=yt.x,be=yt.y,Ct=ge,ae=be,yt.y>z.y?be=yt.y-bt:be=yt.y+bt,Wt.x>yt.x?Ct=yt.x+le:Ct=yt.x-le,Wt=Vt.allocAt(ge,be),eg(this,rt,ft,qt,z,Wt,Dt),Vt.free(Wt),Zm(rt,yt.x+ft,yt.y+qt,Ct+ft,ae+qt),z.h(Ct,ae))):(eg(this,rt,ft,qt,z,yt,Dt),z.assign(yt));E.assign(ut),ft=lt}Vt.free(z)}Gm=rt}else rt=this.i(1).copy(),rt.x-=b,rt.y-=ot,this.computeShortLength(!0)!==0&&(E=tg(this,E,!0,z)),this.computeShortLength(!1)!==0&&(rt=tg(this,rt,!1,z)),a.type=ti.j,a.startX=E.x,a.startY=E.y,a.endX=rt.x,a.endY=rt.y;return this.lk=!0,a};function qm(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ae.$(a,0)?y:Ae.$(y,0)?a:Math.sqrt(a*a+y*y)))}function tg(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=qm(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Jv(a,y,x,b){for(var E=a.pointsCount,z=y;Ae.$(y.x,z.x)&&Ae.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Ae.$(y.x,z.x)&&!Ae.$(y.y,z.y))return x-1;for(var tt=z;Ae.$(y.x,z.x)&&Ae.$(z.x,tt.x)&&(!b||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||Ae.$(y.y,z.y)&&Ae.$(z.y,tt.y)&&(!b||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=E)return E-1;tt=a.i(x++)}return x-2}$n.prototype.computeJumpLength=function(){return 10};function eg(a,y,x,b,E,z,tt){if(!tt&&Ff(a)){tt=a.computeJumpLength();var rt=tt/2,ot=[],lt=0;if(a.isVisible()&&(lt=Ex(a,E,z,ot)),0<lt){if(Ae.B(E.y,z.y))if(E.x<z.x)for(var ut=0;ut<lt;){var ft=Math.max(E.x,Math.min(ot[ut++]-rt,z.x-tt));y.lineTo(ft+x,z.y+b);for(var yt=ft+x,Ct=Math.min(ft+tt,z.x);ut<lt&&(ft=ot[ut],ft<Ct+tt);)ut++,Ct=Math.min(ft+rt,z.x);ft=z.y-tt+b,Ct+=x;var bt=z.y+b;a.curve===Pc?Bg(y,Ct,bt,!1):yc(y,yt,ft,Ct,ft,Ct,bt)}else for(--lt;0<=lt;){for(ut=Math.min(E.x,Math.max(ot[lt--]+rt,z.x+tt)),y.lineTo(ut+x,z.y+b),yt=ut+x,ft=Math.max(ut-tt,z.x);0<=lt&&(ut=ot[lt],ut>ft-tt);)lt--,ft=Math.max(ut-rt,z.x);ut=z.y-tt+b,ft+=x,Ct=z.y+b,a.curve===Pc?Bg(y,ft,Ct,!1):yc(y,yt,ut,ft,ut,ft,Ct)}else if(Ae.B(E.x,z.x))if(E.y<z.y)for(ut=0;ut<lt;){for(ft=Math.max(E.y,Math.min(ot[ut++]-rt,z.y-tt)),y.lineTo(z.x+x,ft+b),yt=ft+b,ft=Math.min(ft+tt,z.y);ut<lt&&(Ct=ot[ut],Ct<ft+tt);)ut++,ft=Math.min(Ct+rt,z.y);Ct=z.x-tt+x,bt=z.x+x,ft+=b,a.curve===Pc?Bg(y,bt,ft,!1):yc(y,Ct,yt,Ct,ft,bt,ft)}else for(--lt;0<=lt;){for(ut=Math.min(E.y,Math.max(ot[lt--]+rt,z.y+tt)),y.lineTo(z.x+x,ut+b),yt=ut+b,ut=Math.max(ut-tt,z.y);0<=lt&&(ft=ot[lt],ft>ut-tt);)lt--,ut=Math.max(ft-rt,z.y);ft=z.x-tt+x,Ct=z.x+x,ut+=b,a.curve===Pc?Bg(y,Ct,ut,!1):yc(y,ft,yt,ft,ut,Ct,ut)}}}y.lineTo(z.x+x,z.y+b)}function Ex(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];if(ot instanceof $n){if(ot===a)return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length;if(ot.isVisible()&&Ff(ot)){var lt=ot.routeBounds;lt.w()&&a.routeBounds.Yc(lt)&&!a.usesSamePort(ot)&&(lt=ot.path,lt!==null&&lt.Ed()&&Lx(y,x,b,ot))}}}}}return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length}function Lx(a,y,x,b){for(var E=Ae.B(a.y,y.y),z=b.pointsCount,tt=b.i(0),rt=Vt.alloc(),ot=1;ot<z;ot++){var lt=b.i(ot);if(ot<z-1){var ut=b.i(ot+1);if(tt.y===lt.y&&lt.y===ut.y){if(lt.x>tt.x&&ut.x>=lt.x||lt.x<tt.x&&ut.x<=lt.x)continue}else if(tt.x===lt.x&&lt.x===ut.x&&(lt.y>tt.y&&ut.y>=lt.y||lt.y<tt.y&&ut.y<=lt.y))continue}t:{ut=a.x;var ft=a.y,yt=y.x,Ct=y.y,bt=tt.x;tt=tt.y;var Dt=lt.x,qt=lt.y;if(Ae.B(ut,yt)){if(!Ae.B(ft,Ct)&&Ae.B(tt,qt)&&Math.min(ft,Ct)<tt&&Math.max(ft,Ct)>tt&&Math.min(bt,Dt)<ut&&Math.max(bt,Dt)>ut&&!Ae.B(bt,Dt)){rt.x=ut,rt.y=tt,ut=!0;break t}}else if(Ae.B(ft,Ct)&&Ae.B(bt,Dt)&&Math.min(ut,yt)<bt&&Math.max(ut,yt)>bt&&Math.min(tt,qt)<ft&&Math.max(tt,qt)>ft&&!Ae.B(tt,qt)){rt.x=bt,rt.y=ft,ut=!0;break t}rt.x=0,rt.y=0,ut=!1}ut&&(E?x.push(rt.x):x.push(rt.y)),tt=lt}Vt.free(rt)}function Ff(a){return a=a.curve,a===Rg||a===Pc}function _m(a,y){(y||Ff(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}$n.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 tt=E.length,rt=0;rt<tt;rt++){var ot=E[rt];ot instanceof $n&&(ot===this?z=!0:z&&t1(this,ot,a))}}else if(b)for(z=E.Pa.s,E=z.length,tt=0;tt<E;tt++)rt=z[tt],rt instanceof $n&&t1(this,rt,a)}}}}};function t1(a,y,x){if(y!==null&&y.lk&&y.fd&&Ff(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}$n.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},$n.prototype.isVisible=function(){if(!ji.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},$n.prototype.Zb=function(a){if(ji.prototype.Zb.call(this,a),a&&_m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},$n.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Ap:this.qk};function Lp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,tt=y.jb.s,rt=tt.length,ot=0;ot<rt;ot++){var lt=tt[ot];(lt.ef===y&&lt.ff===b&&lt.uf===x&&lt.vf===E||lt.ef===x&&lt.ff===E&&lt.uf===y&&lt.vf===b)&&(z===null?z=lt:(a===null&&(a=[],a.push(z)),a.push(lt)))}if(a!==null){for(z=ZS(y,x,b,E),z===null&&(z=new r0(y,b,x,E),WS(y,z),WS(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Mp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(yn(y.links,a),y.Sl()))}$n.prototype.ph=function(){return!0},Jt.Object.defineProperties($n.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Um(y,this,x),Mp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.uf!==a&&Ym(a,this,E),Lp(this),this.C(1)),this.g("fromNode",y,a),Og(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Lu(x),Mp(this),this.ff=a;var b=this.fromPort;b!==null&&Lu(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),Lp(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Um(y,this,x),Mp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}a!==null&&(this.ef!==a&&Ym(a,this,E),Lp(this),this.C(1)),this.g("toNode",y,a),Og(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Lu(x),Mp(this),this.vf=a;var b=this.toPort;b!==null&&Lu(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),Lp(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Bo},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Lu(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&&ui(a,">= 0",$n,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Bo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Lu(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&&ui(a,">= 0",$n,"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?Pr:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&Ep(this.fromNode),this.toNode!==null&&Ep(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Br?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()===zu&&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),Ae.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 tt=this.i(z-2);z+3>=b&&(z=b-1);var rt=this.i(z-1),ot=this.i(z);Ae.Dl(E.x,E.y,tt.x,tt.y,rt.x,rt.y,ot.x,ot.y,.5,a),y=Math.min(ot.x,y),x=Math.min(ot.y,x),E=ot}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 Vt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Jm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Ae.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Ae.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new bn,b=0;b<a.length/2;b++)E=new Vt(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(!Ge(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new bn,b=0;b<a.length;b++)E=a[b],x.add(new Vt(E.x,E.y).freeze())}}else if(a instanceof bn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else ue("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Jm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&ra(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Ig(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Ig(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),_m(this,y===Pc||y===Rg||a===Pc||a===Rg),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),_m(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),$n.prototype.invalidateOtherJumpOvers=$n.prototype.Xo,$n.prototype.findClosestSegment=$n.prototype.ez,$n.prototype.updateRoute=$n.prototype.vg,$n.prototype.invalidateRoute=$n.prototype.bb,$n.prototype.rollbackRoute=$n.prototype.rv,$n.prototype.commitRoute=$n.prototype.zf,$n.prototype.startRoute=$n.prototype.uh,$n.prototype.clearPoints=$n.prototype.Fj,$n.prototype.removePoint=$n.prototype.pv,$n.prototype.addPointAt=$n.prototype.yf,$n.prototype.addPoint=$n.prototype.ne,$n.prototype.insertPointAt=$n.prototype.m,$n.prototype.insertPoint=$n.prototype.Kz,$n.prototype.setPointAt=$n.prototype.L,$n.prototype.setPoint=$n.prototype.dd,$n.prototype.getPoint=$n.prototype.i,$n.prototype.getOtherPort=$n.prototype.Cz,$n.prototype.getOtherNode=$n.prototype.To;var ng=null,ig=null,Qv=new sn($n,"Normal",1),Mx=new sn($n,"Orthogonal",2),Ax=new sn($n,"AvoidsNodes",6),e1=new sn($n,"AvoidsNodesStraight",7),Gl=new sn($n,"None",0),zu=new sn($n,"Bezier",9),Pc=new sn($n,"JumpGap",10),Rg=new sn($n,"JumpOver",11),Ap=new sn($n,"End",17),t0=new sn($n,"Scale",18),e0=new sn($n,"Stretch",19),kp=new sn($n,"OrientAlong",21),Fp=new sn($n,"OrientPlus90",22),Np=new sn($n,"OrientMinus90",23),$v=new sn($n,"OrientOpposite",24),n0=new sn($n,"OrientUpright",25),Tp=new sn($n,"OrientPlus90Upright",26),Dp=new sn($n,"OrientMinus90Upright",27),i0=new sn($n,"OrientUpright45",28),n1=16,i1=14,Bp=8;$n.className="Link",$n.Normal=Qv,$n.Orthogonal=Mx,$n.AvoidsNodes=Ax,$n.AvoidsNodesStraight=e1,$n.None=Gl,$n.Bezier=zu,$n.JumpGap=Pc,$n.JumpOver=Rg,$n.End=Ap,$n.Scale=t0,$n.Stretch=e0,$n.OrientAlong=kp,$n.OrientPlus90=Fp,$n.OrientMinus90=Np,$n.OrientOpposite=$v,$n.OrientUpright=n0,$n.OrientPlus90Upright=Tp,$n.OrientMinus90Upright=Dp,$n.OrientUpright45=i0,$n.EndSegmentStep=8,$n.CurvinessStart=n1,$n.SpacingMin=i1,$n.OrthoShortCut=Bp;function r0(a,y,x,b){Or(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}r0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},r0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},r0.className="LinkBundle";function Op(a){Or(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}Op.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=qv,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function zg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Ed(a,y,x){return zg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):qv}function r1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=Nf&&(x[b]=qv)}Op.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Cc)return!1}return!0};function Ld(a,y,x,b,E,z,tt,rt,ot){if(!(y<z||y>tt||x<rt||x>ot)){var lt=y|0,ut=x|0,ft=a.ac[lt][ut];if(ft>=Nf&&ft<jg)for(E?ut+=b:lt+=b,ft+=1;z<=lt&&lt<=tt&&rt<=ut&&ut<=ot&&!(ft>=a.ac[lt][ut]);)a.ac[lt][ut]=ft,ft+=1,E?ut+=b:lt+=b;if(lt=E?ut:lt,E)if(0<b)for(x+=b;x<lt;x+=b)Ld(a,y,x,1,!E,z,tt,rt,ot),Ld(a,y,x,-1,!E,z,tt,rt,ot);else for(x+=b;x>lt;x+=b)Ld(a,y,x,1,!E,z,tt,rt,ot),Ld(a,y,x,-1,!E,z,tt,rt,ot);else if(0<b)for(y+=b;y<lt;y+=b)Ld(a,y,x,1,!E,z,tt,rt,ot),Ld(a,y,x,-1,!E,z,tt,rt,ot);else for(y+=b;y>lt;y+=b)Ld(a,y,x,1,!E,z,tt,rt,ot),Ld(a,y,x,-1,!E,z,tt,rt,ot)}}function o0(a,y,x,b,E,z,tt,rt,ot){y|=0,x|=0;var lt=Cc,ut=Nf;for(a.ac[y][x]=ut;lt===Cc&&y>z&&y<tt&&x>rt&&x<ot;)ut+=1,a.ac[y][x]=ut,E?x+=b:y+=b,lt=a.ac[y][x]}function a0(a,y,x,b,E,z,tt,rt,ot){y|=0,x|=0;var lt=Cc,ut=jg;for(a.ac[y][x]=ut;lt===Cc&&y>z&&y<tt&&x>rt&&x<ot;)a.ac[y][x]=ut,E?x+=b:y+=b,lt=a.ac[y][x]}function o1(a,y,x,b,E,z,tt){if(a.ac!==null){a.abort=!1;var rt=y.x,ot=y.y;if(zg(a,rt,ot)){rt-=a.Nd,rt/=a.rc,ot-=a.Od,ot/=a.sc;var lt=b.x,ut=b.y;if(zg(a,lt,ut))if(lt-=a.Nd,lt/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(rt-lt)&&1>=Math.abs(ot-ut))a.abort=!0;else{var ft=z.x;b=z.y,y=z.x+z.width;var yt=z.y+z.height;ft-=a.Nd,ft/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,yt-=a.Od,yt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,b|0)),yt=Math.min(a.ei,Math.max(0,yt|0)),b=a.ac,rt|=0,ot|=0,lt|=0,ut|=0;var Ct=x===0||x===90?1:-1;if(x=x===90||x===270,b[rt][ot]===Cc?(o0(a,rt,ot,Ct,x,z,y,ft,yt),o0(a,rt,ot,1,!x,z,y,ft,yt),o0(a,rt,ot,-1,!x,z,y,ft,yt)):o0(a,rt,ot,Ct,x,rt,ot,rt,ot),b[lt][ut]===Cc?(a0(a,lt,ut,E===0||E===90?1:-1,E===90||E===270,z,y,ft,yt),a0(a,lt,ut,1,!(E===90||E===270),z,y,ft,yt),a0(a,lt,ut,-1,!(E===90||E===270),z,y,ft,yt)):a0(a,lt,ut,Ct,x,lt,ut,lt,ut),x=dn(),tt&&a1(a,lt,ut,E,rt,ot,x))for((x[0]!==lt||x[1]!==ut)&&(x.unshift(ut),x.unshift(lt)),(x[x.length-2]!==rt||x[x.length-1]!==ot)&&(x.push(rt),x.push(ot)),a=Nf,E=x[x.length-2],tt=x[x.length-1],b[E][tt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],tt=x[z+3],y=x[z],lt=x[z+1];y>E?E++:y<E?E--:lt>tt?tt++:lt<tt&&tt--,b[E][tt]=a++,E!==y||tt!==lt;);else Ld(a,rt,ot,1,!1,z,y,ft,yt),Ld(a,rt,ot,-1,!1,z,y,ft,yt),Ld(a,rt,ot,1,!0,z,y,ft,yt),Ld(a,rt,ot,-1,!0,z,y,ft,yt);kn(x)}}}}function a1(a,y,x,b,E,z,tt){for(var rt=a.ac,ot=y,lt=x;;){if(ot===E&&lt===z)return!0;var ut=ot,ft=lt;if(b===0)if(ut<E)ut++;else break;else if(b===90)if(ft<z)ft++;else break;else if(b===180)if(ut>E)ut--;else break;else if(ft>z)ft--;else break;var yt=rt[ut][ft];if(yt===0||yt===_v)break;ot=ut,lt=ft}for(;;){if(ut=b,ft=ot,yt=lt,b===0?yt<z?(ut=90,yt++):yt>z&&(ut=270,yt--):b===90?ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--):b===180?yt<z?(ut=90,yt++):yt>z&&(ut=270,yt--):ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--),ft=rt[ft][yt],ut!==b&&ft!==0&&ft!==_v){if(tt.push(ot),tt.push(lt),a1(a,ot,lt,ut,E,z,tt))return!0;tt.pop(),tt.pop()}if(rt[ot][lt]=_v,b===0){if(ot===y)return!1;ot--}else if(b===90){if(lt===x)return!1;lt--}else if(b===180){if(ot===y)return!1;ot++}else{if(lt===x)return!1;lt++}}}Jt.Object.defineProperties(Op.prototype,{bounds:{get:function(){return new fn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Cc=0,Nf=1,jg=999999,qv=jg+1,_v=jg+2;Op.className="PositionArray";function rg(){Or(this),this.port=this.node=null,this.pe=[],this.ap=!1}rg.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
`+b.toString())}return y};function kx(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}rg.prototype.Sl=function(){this.pe.length=0};function s1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof Cr?E:null;if(z===null||z.isSubGraphExpanded)var tt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,tt=b.Lu()}z=a.pe.length=0;var rt=a.port.ga(Ls,Vt.alloc()),ot=a.port.ga(ml,Vt.alloc());for(E=fn.allocAt(rt.x,rt.y,0,0),E.Ye(ot),Vt.free(rt),Vt.free(ot),rt=Vt.allocAt(E.x+E.width/2,E.y+E.height/2),ot=a.port.li(),tt=tt.iterator;tt.next();){var lt=tt.value;if(lt.isVisible()&&lt.fromPort!==lt.toPort){var ut=lt.fromPort===a.port||lt.fromNode!==null&&lt.fromNode.Td(b),ft=lt.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?lt.toPort:lt.fromPort,ut!==null)){var yt=ut.part;if(yt!==null){var Ct=yt.findVisibleNode();Ct!==null&&Ct!==yt&&(yt=Ct,ut=yt.port),ut=lt.computeOtherPoint(yt,ut),yt=rt.ab(ut),yt-=ot,0>yt?yt+=360:360<=yt&&(yt-=360),ft=kx(E,ft,yt,lt.isOrthogonal),ft===0?(ft=4,180<yt&&(yt-=360)):ft===90?(ft=8,270<yt&&(yt-=360)):ft===180?ft=2:(ft=1,90>yt&&(yt+=360)),Ct=a.pe[z],Ct===void 0?(Ct=new ty(lt,yt,ft),a.pe[z]=Ct):(Ct.link=lt,Ct.angle=yt,Ct.Nc=ft),Ct.hv.set(ut),z++}}}}for(Vt.free(rt),a.pe.sort(rg.prototype.j),ot=a.pe.length,b=-1,z=rt=0;z<ot;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==b&&(b=tt.Nc,rt=0),tt.Uo=rt,rt++);for(b=-1,rt=0,z=ot-1;0<=z;z--)ot=a.pe[z],ot!==void 0&&(ot.Nc!==b&&(b=ot.Nc,rt=ot.Uo+1),ot.Gl=rt);if(z=a.pe,ft=a.port,b=a.node.portSpreading,rt=Vt.alloc(),ot=Vt.alloc(),tt=Vt.alloc(),lt=Vt.alloc(),ft.ga(Ls,rt),ft.ga(lu,ot),ft.ga(ml,tt),ft.ga(Ll,lt),Ct=yt=ut=ft=0,b===Gv)for(var bt=0;bt<z.length;bt++){var Dt=z[bt];if(Dt!==null){var qt=Dt.link.computeThickness();switch(Dt.Nc){case 8:yt+=qt;break;case 2:Ct+=qt;break;case 1:ft+=qt;break;default:case 4:ut+=qt}}}var Wt=bt=0,ae=1,le=Dt=0;for(qt=0;qt<z.length;qt++){var ge=z[qt];if(ge!==null){if(bt!==ge.Nc){switch(bt=ge.Nc,bt){case 8:var be=tt;Wt=lt;break;case 2:be=lt,Wt=rt;break;case 1:be=rt,Wt=ot;break;default:case 4:be=ot,Wt=tt}switch(Dt=Wt.x-be.x,le=Wt.y-be.y,bt){case 8:yt>Math.abs(Dt)?(ae=Math.abs(Dt)/yt,yt=Math.abs(Dt)):ae=1;break;case 2:Ct>Math.abs(le)?(ae=Math.abs(le)/Ct,Ct=Math.abs(le)):ae=1;break;case 1:ft>Math.abs(Dt)?(ae=Math.abs(Dt)/ft,ft=Math.abs(Dt)):ae=1;break;default:case 4:ut>Math.abs(le)?(ae=Math.abs(le)/ut,ut=Math.abs(le)):ae=1}Wt=0}var Je=ge.Zo;if(b===Gv){switch(ge=ge.link.computeThickness(),ge*=ae,Je.set(be),bt){case 8:Je.x=be.x+Dt/2+yt/2-Wt-ge/2;break;case 2:Je.y=be.y+le/2+Ct/2-Wt-ge/2;break;case 1:Je.x=be.x+Dt/2-ft/2+Wt+ge/2;break;default:case 4:Je.y=be.y+le/2-ut/2+Wt+ge/2}Wt+=ge}else{var di=.5;b===Xm&&(di=(ge.Uo+1)/(ge.Gl+1)),Je.x=be.x+Dt*di,Je.y=be.y+le*di}}}for(Vt.free(rt),Vt.free(ot),Vt.free(tt),Vt.free(lt),be=a.pe,z=0;z<be.length;z++)b=be[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,fn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}rg.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},rg.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ua,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},rg.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Vt,this.Gl=this.Uo=0,this.Zo=new Vt,this.Ju=0}ty.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ty.className="LinkInfo";function Fa(a){Or(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Vt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Fa.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},Fa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Fa.prototype.qb=function(){},Fa.prototype.toString=function(){var a=Ln(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Fa.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())}}},Fa.prototype.createNetwork=function(){return new ua(this)},Fa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Ue?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Cr?y.lg(a.memberParts):y.lg(a.iterator),y},Fa.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")}},Fa.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()}},Fa.prototype.doLayout=function(a){var y=new Mn;a instanceof Ue?(Uc(this,y,a.nodes,!0,this.rh,!0,!1,!0),Uc(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Cr?Uc(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},Fa.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,tt=0;for(a=a.iterator;a.next();){var rt=a.value;Ip(rt);var ot=rt.measuredBounds,lt=ot.width;ot=ot.height,rt.moveTo(b,E),rt instanceof Cr&&(rt.rh=!1),b+=Math.max(lt,50)+20,tt=Math.max(tt,Math.max(ot,50)),z>=y-1?(z=0,b=x,E+=tt+20,tt=0):z++}},Fa.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,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value.node;if(!(rt===null||rt instanceof $n)&&(Ip(rt),this.rh(rt))){var ot=rt.measuredBounds,lt=ot.width;ot=ot.height,rt.moveTo(x,b),rt instanceof Cr&&(rt.rh=!1),x+=Math.max(lt,50)+20,z=Math.max(z,Math.max(ot,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Fa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Cr&&a.rh)};function Uc(a,y,x,b,E,z,tt,rt){for(x=x.iterator;x.next();){var ot=x.value;b&&!ot.isTopLevel||E!==null&&!E(ot)||!ot.canLayout()||(z&&ot instanceof ci?ot.isLinkLabel||(ot instanceof Cr&&ot.layout===null?Uc(a,y,ot.memberParts,!1,E,z,tt,rt):(Ip(ot),y.add(ot))):tt&&ot instanceof $n?y.add(ot):!rt||!ot.Zc()||ot instanceof ci||(Ip(ot),y.add(ot)))}}function Ip(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Fa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new fn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Fa.prototype.ex=function(a){var y=new Mn;return a instanceof Ue?(Uc(this,y,a.nodes,!0,null,!0,!0,!0),Uc(this,y,a.links,!0,null,!0,!0,!0),Uc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Cr?Uc(this,y,a.memberParts,!1,null,!0,!0,!0):Uc(this,y,a.iterator,!1,null,!0,!0,!0),y},Fa.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(Ls),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Jt.Object.defineProperties(Fa.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())}}}),Fa.prototype.collectParts=Fa.prototype.ex,Fa.prototype.getLayoutBounds=Fa.prototype.ni,Fa.prototype.invalidateLayout=Fa.prototype.C,Fa.className="Layout";function ua(a){Or(this),this.Sc=a,this.wf=new Mn,this.ye=new Mn,this.Es=new ki,this.zs=new ki}ua.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 Mn,this.ye=new Mn,this.Es=new ki,this.zs=new ki},ua.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},ua.prototype.createVertex=function(){return new zs(this)},ua.prototype.createEdge=function(){return new Mu(this)},ua.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(tt){if(tt instanceof ci)return!tt.isLinkLabel;if(tt instanceof $n){var rt=tt.fromNode;return rt===null||rt.isLinkLabel?!1:(tt=tt.toNode,!(tt===null||tt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof ci&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Cr&&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 $n&&(!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))}}},ua.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},Et=ua.prototype,Et.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Et.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},Et.Iu=function(a){if(a!==null&&l1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function l1(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Et.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Et.ki=function(a){return a===null?null:this.Es.I(a)},Et.Bo=function(a){if(a!==null){ey(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ey(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}}Et.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},Et.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ny(this,a)}};function ny(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Et.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Et.Lo=function(a){return a===null?null:this.zs.I(a)},Et.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},Et.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))}},Et.Ko=function(){for(var a=dn(),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]);kn(a)},ua.prototype.deleteArtificialVertexes=function(){for(var a=dn(),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=dn(),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]);kn(a),kn(y)};function Fx(a){for(var y=dn(),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]);kn(y)}ua.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Fx(this),this.Ko()),a=new bn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),iy(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function iy(a,y,x){if(x!==null&&x.network!==y){l1(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ny(a,E),ey(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ny(a,x),ey(y,x),iy(a,y,x.toVertex))}}ua.prototype.dz=function(){for(var a=new Mn,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},Jt.Object.defineProperties(ua.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}}}),ua.prototype.findAllParts=ua.prototype.dz,ua.prototype.splitIntoSubNetworks=ua.prototype.Zx,ua.prototype.deleteSelfEdges=ua.prototype.Ko,ua.prototype.reverseEdge=ua.prototype.gm,ua.prototype.linkVertexes=ua.prototype.Zj,ua.prototype.findEdge=ua.prototype.Lo,ua.prototype.deleteLink=ua.prototype.Yy,ua.prototype.deleteEdge=ua.prototype.Mj,ua.prototype.addLink=ua.prototype.Dy,ua.prototype.addEdge=ua.prototype.Bo,ua.prototype.findVertex=ua.prototype.ki,ua.prototype.deleteNode=ua.prototype.Zy,ua.prototype.deleteVertex=ua.prototype.Iu,ua.prototype.addNode=ua.prototype.Bl,ua.prototype.addVertex=ua.prototype.dh,ua.prototype.addParts=ua.prototype.lg,ua.className="LayoutNetwork";function zs(a){Or(this),this.ob=a,this.j=new fn(0,0,10,10).freeze(),this.o=new Vt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new bn,this.mg=new bn}zs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new bn,this.mg=new bn},zs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+bo(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},zs.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Ge(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 Cr)){x=fn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(so);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),fn.free(x);return}fn.free(x)}a.moveTo(y.x,y.y)}},zs.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},zs.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},zs.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},zs.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ry(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}Jt.Object.defineProperties(zs.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=fn.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),fn.free(x),!(a instanceof Cr)&&(a=a.locationObject.ga(so),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 Mn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Mn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Mn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new bn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),zs.prototype.deleteDestinationEdge=zs.prototype.Jl,zs.prototype.addDestinationEdge=zs.prototype.zl,zs.prototype.deleteSourceEdge=zs.prototype.Kl,zs.prototype.addSourceEdge=zs.prototype.Cl,zs.className="LayoutVertex",zs.standardComparer=ry,zs.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Mu(a){Or(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Mu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Mu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+bo(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},Mu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Mu.prototype.commit=function(){},Mu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Jt.Object.defineProperties(Mu.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)}}}),Mu.prototype.getOtherVertex=Mu.prototype.Ax,Mu.className="LayoutEdge";function rl(a){Fa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ri(NaN,NaN).freeze(),this.tf=new ri(10,10).freeze(),this.Jb=Rp,this.Rb=l0,this.nd=zp,this.hd=u1,a&&Object.assign(this,a)}Qe(rl,Fa),rl.prototype.cloneProtected=function(a){Fa.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},rl.prototype.qb=function(a){a.classType===rl?a===zp||a===h0||a===oy||a===u0?this.sorting=a:a===l0||a===Kh?this.arrangement=a:a===Rp||a===s0?this.alignment=a:ue("Unknown enum value: "+a):Fa.prototype.qb.call(this,a)},rl.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 Cr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case u0:E.reverse();break;case zp:E.sort(this.comparer);break;case h0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case s0:var rt=y,ot=x,lt=fn.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ft<E.length;ft++){var yt=this.ni(E[ft],lt);ut=Math.max(ut,yt.width)}if(ut=Math.max(ut+rt,1),ft=Math.max(this.cellSize.height,1),!isFinite(ft))for(yt=ft=0;yt<E.length;yt++){var Ct=this.ni(E[yt],lt);ft=Math.max(ft,Ct.height)}ft=Math.max(ft+ot,1),yt=this.arrangement;for(var bt=Ct=this.arrangementOrigin.x,Dt=this.arrangementOrigin.y,qt=0,Wt=0,ae=0;ae<E.length;ae++){var le=E[ae],ge=this.ni(le,lt),be=Math.ceil((ge.width+rt)/ut)*ut,Je=Math.ceil((ge.height+ot)/ft)*ft;switch(yt){case Kh:var di=Math.abs(bt-ge.width);break;default:di=bt+ge.width}switch((0<z&&qt>z-1||0<tt&&0<qt&&di-Ct>tt)&&(b.push(new fn(0,Dt,tt+rt,Wt)),qt=0,bt=Ct,Dt+=Wt,Wt=0),Wt=Math.max(Wt,Je),yt){case Kh:ge=-ge.width;break;default:ge=0}switch(le.moveTo(bt+ge,Dt),yt){case Kh:bt-=be;break;default:bt+=be}qt++}b.push(new fn(0,Dt,tt+rt,Wt)),fn.free(lt);break;case Rp:for(ot=tt,ut=z,ft=y,yt=x,tt=fn.alloc(),Ct=Math.max(this.cellSize.width,1),z=Dt=lt=0,rt=Vt.alloc(),bt=0;bt<E.length;bt++)Wt=E[bt],qt=this.ni(Wt,tt),Wt=Sc(Wt,Wt.locationObject,Wt.locationSpot,rt),lt=Math.max(lt,Wt.x),Dt=Math.max(Dt,qt.width-Wt.x),z=Math.max(z,Wt.y);switch(bt=this.arrangement,bt){case Kh:lt+=ft;break;default:Dt+=ft}Ct=isFinite(Ct)?Math.max(Ct+ft,1):Math.max(lt+Dt,1);var Pi=Wt=this.arrangementOrigin.x;for(ae=this.arrangementOrigin.y,Dt=0,ot>=lt&&(ot-=lt),lt=le=0,be=Math.max(this.cellSize.height,1),ge=z=0,Je=!0,qt=Vt.alloc(),di=0;di<E.length;di++){var yi=E[di],Qn=this.ni(yi,tt),Fn=Sc(yi,yi.locationObject,yi.locationSpot,rt);if(0<Dt)switch(bt){case Kh:Pi=(Pi-Wt-(Qn.width-Fn.x))/Ct,Pi=Ae.$(Math.round(Pi),Pi)?Math.round(Pi):Math.floor(Pi),Pi=Pi*Ct+Wt;break;default:Pi=(Pi-Wt+Fn.x)/Ct,Pi=Ae.$(Math.round(Pi),Pi)?Math.round(Pi):Math.ceil(Pi),Pi=Pi*Ct+Wt}else switch(bt){case Kh:le=Pi+Fn.x+Qn.width;break;default:le=Pi-Fn.x}switch(bt){case Kh:var xr=-(Pi+Fn.x)+le;break;default:xr=Pi+Qn.width-Fn.x-le}if(0<ut&&Dt>ut-1||0<ot&&0<Dt&&xr>ot){for(b.push(new fn(0,Je?ae-z:ae,ot+ft,ge+z+yt)),Pi=0;Pi<Dt&&di!==Dt;Pi++){xr=E[di-Dt+Pi];var gr=Sc(xr,xr.locationObject,xr.locationSpot,qt);xr.moveTo(xr.position.x,xr.position.y+z-gr.y)}ge+=yt,ae=Je?ae+ge:ae+(ge+z),Dt=ge=z=0,Pi=Wt,Je=!1}switch(Pi===Wt&&(lt=bt===Kh?Math.max(lt,Qn.width-Fn.x):Math.min(lt,-Fn.x)),z=Math.max(z,Fn.y),ge=Math.max(ge,Qn.height-Fn.y),isFinite(be)&&(ge=Math.max(ge,Math.max(Qn.height,be)-Fn.y)),Je?yi.moveTo(Pi-Fn.x,ae-Fn.y):yi.moveTo(Pi-Fn.x,ae),bt){case Kh:Pi-=Fn.x+ft;break;default:Pi+=Qn.width-Fn.x+ft}Dt++}if(b.push(new fn(0,ae,ot+ft,(Je?ge:ge+z)+yt)),E.length!==Dt)for(ot=0;ot<Dt;ot++)ut=E[E.length-Dt+ot],ft=Sc(ut,ut.locationObject,ut.locationSpot,rt),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Vt.free(rt),Vt.free(qt),bt===Kh)for(E=0;E<b.length;E++)z=b[E],z.width+=lt,z.x-=lt;else for(E=0;E<b.length;E++)z=b[E],z.x>lt&&(z.width+=z.x-lt,z.x=lt);fn.free(tt)}for(rt=z=tt=E=0;rt<b.length;rt++)ot=b[rt],E=Math.min(E,ot.x),tt=Math.min(tt,ot.y),z=Math.max(z,ot.x+ot.width);this.arrangement===Kh?this.commitLayers(b,new Vt(E+y/2-(z+E),tt-x/2)):this.commitLayers(b,new Vt(E-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},rl.prototype.commitLayers=function(){};function u1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Jt.Object.defineProperties(rl.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==Rp&&a!==s0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==l0&&a!==Kh||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==oy&&a!==u0&&a!==zp&&a!==h0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var s0=new sn(rl,"Position",0),Rp=new sn(rl,"Location",1),l0=new sn(rl,"LeftToRight",2),Kh=new sn(rl,"RightToLeft",3),oy=new sn(rl,"Forward",4),u0=new sn(rl,"Reverse",5),zp=new sn(rl,"Ascending",6),h0=new sn(rl,"Descending",7);rl.className="GridLayout",rl.standardComparer=u1,rl.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},rl.Position=s0,rl.Location=Rp,rl.LeftToRight=l0,rl.RightToLeft=Kh,rl.Forward=oy,rl.Reverse=u0,rl.Ascending=zp,rl.Descending=h0;function Ko(){this.On=new Mn,this.Dn=new Mn,this.Pa=new Mn,this.cf=new ki,this.bf=new ki,this.aj=new ki,this.H=null,this.tp=!1}Et=Ko.prototype,Et.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Et.Xe=function(a){this.H=a},Et.oi=function(a){if(a instanceof ci){if(this.On.add(a),a instanceof Cr){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 $n?this.Dn.add(a):a instanceof Ao||this.Pa.add(a);y=a.data,y===null||a instanceof Ao||(a instanceof $n?this.bf.add(y,a):this.cf.add(y,a))},Et.pc=function(a){if(a.Ej(),a instanceof ci){if(this.On.remove(a),a instanceof Cr){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 $n?this.Dn.remove(a):a instanceof Ao||this.Pa.remove(a);y=a.data,y===null||a instanceof Ao||(a instanceof $n?this.bf.remove(y):this.cf.remove(y))},Et.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 Cr)&&ue('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 Cr||ue('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 $n||ue('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=dn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=dn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=dn(),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]);kn(y),kn(x),kn(a)}},Ko.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Ko.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&h1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&jc(this.diagram,!1)};function h1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=d1(a,y,b);if(E!==null&&(ch(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)}}Ko.prototype.insertLink=function(){return null},Ko.prototype.resolveReferencesForData=function(){},Ko.prototype.Ro=function(a){return this.H.model.Ro(a)};function d1(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(g1||(g1=!0,Hi('No Group template found for category "'+x+'"'),Hi(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(f1||(f1=!0,Hi('No Node template found for category "'+x+'"'),Hi(" Using default node template")),y=a.ny))),y}Ko.prototype.getLinkCategoryForData=function(){return""},Ko.prototype.setLinkCategoryForData=function(){},Ko.prototype.setFromNodeForLink=function(){},Ko.prototype.setToNodeForLink=function(){},Ko.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(p1||(p1=!0,Hi('No Link template found for category "'+a+'"'),Hi(" Using default link template")),x=y.my)),x},Ko.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Ko.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Ko.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Gd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Ko.prototype.unresolveReferencesForPart=function(){},Ko.prototype.removeDataForLink=function(){},Ko.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Ko.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof ci?a:null)},Ko.prototype.findLinkForKey=function(){return null},Et=Ko.prototype,Et.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Et.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof ci?a:null)},Et.Kc=function(a){return a===null?null:this.bf.I(a)},Et.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Mn;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 tt=arguments[z];if(Ge(tt)&&ay(this,E,tt)){y.add(b);break}}}return y.iterator},Et.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Mn;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 tt=arguments[z];if(Ge(tt)&&ay(this,E,tt)){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(pn(z)){if(!pn(E)||E.length<z.length)return!1;for(var tt=0;tt<E.length;tt++){var rt=z[tt];if(rt!==void 0&&!c1(a,E[tt],rt))return!1}}else if(!c1(a,E,z))return!1}return!0}function c1(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(Ge(y)&&Ge(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}Ko.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===jn){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===Xn){var tt=a.newValue;b==="nodeDataArray"&&Ge(tt)&&h1(this,tt),y.isModified=!0}else if(x===hi){var rt=a.oldValue;b==="nodeDataArray"&&Ge(rt)&&this.ip(rt),y.isModified=!0}else x===Sn&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===jn){var ot=a.propertyName,lt=a.object;lt===y.model?(ot==="nodeKeyProperty"||ot==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(lt,ot),y.isModified=!0}else if(x===Xn||x===hi){var ut=a.change===Xn,ft=ut?a.newParam:a.oldParam,yt=ut?a.newValue:a.oldValue,Ct=this.aj.I(a.object);if(Array.isArray(Ct))for(a=0;a<Ct.length;a++){var bt=Ct[a];if(ut)km(bt,yt,ft,!0);else if(!(0>ft)){var Dt=ft+Sp(bt);bt.pc(Dt,!0),xv(bt,Dt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},Ko.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Ko.prototype.rp=function(){for(var a=this.H.model,y=new Mn,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),E.forEach(function(tt){b1(a,tt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&C1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Ko.prototype.refreshDataBoundLinks=function(){},Ko.prototype.updateRelationshipsFromData=function(){},Ko.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var tt=E[z].sx(a);tt!==null&&(x===null&&(x=dn()),x.push(tt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);kn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(pn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function ly(a,y,x){Lf(y,function(tt){tt=tt.O.s;for(var rt=tt.length,ot=0;ot<rt;ot++)Gf(x,tt[ot])});var b=y.Hh;if(pn(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}Ko.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new ki;if(pn(a))for(var E=0;E<a.length;E++)d0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)d0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Mn;for(var z=new ki,tt=b.iterator;tt.next();){var rt=tt.value;if(rt instanceof $n)a||rt.fromNode!==null&&rt.toNode!==null||E.add(rt);else if(rt instanceof ci&&rt.data!==null&&x.Tl()){var ot=rt;rt=tt.key;var lt=rt.pg();lt!==null&&(lt=b.I(lt),lt!==null?(x.qe(ot.data,x.wa(lt.data)),ot=y.Kc(ot.data),rt=rt.kh(),rt!==null&&ot!==null&&z.add(rt,ot)):x.qe(ot.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 ut=new ki;b.each(function(ft){ft.key.data!==null&&ut.add(ft.key.data,ft.value.data)}),x(ut,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function d0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof ji))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof ci){for(var tt=y.linksConnected;tt.next();){var rt=tt.value;if(rt.fromNode===y){var ot=b.I(rt);ot!==null&&(ot.fromNode=z)}rt.toNode===y&&(rt=b.I(rt),rt!==null&&(rt.toNode=z))}if(y instanceof Cr&&z instanceof Cr)for(y=y.memberParts;y.next();)tt=d0(a,y.value,x,b,E),tt instanceof $n||tt===null||(tt.containingGroup=z)}else if(y instanceof $n&&z instanceof $n)for(tt=y.fromNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=d0(a,y.value,x,b,E),tt!==null&&tt instanceof ci&&(tt.labeledLink=z);return z}Ko.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof $n||(b=E.copyNodeData(b),Ge(b)&&(E.xf(b),x=y.Lc(b)))}else ch(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 $n||(E=y.copyNodeData(b)),Ge(E)&&(x.data=E)));return x},Jt.Object.defineProperties(Ko.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),Ko.prototype.updateAllRelationshipsFromData=Ko.prototype.rp,Ko.prototype.findLinksByExample=Ko.prototype.ls,Ko.prototype.findNodesByExample=Ko.prototype.ms,Ko.prototype.findLinkForData=Ko.prototype.Kc,Ko.prototype.findNodeForData=Ko.prototype.ii,Ko.prototype.findPartForData=Ko.prototype.Lc,Ko.prototype.findNodeForKey=Ko.prototype.Vb,Ko.prototype.removeModeledPart=Ko.prototype.ip,Ko.prototype.removeModeledParts=Ko.prototype.Gs,Ko.prototype.rebuildParts=Ko.prototype.Wd;var f1=!1,g1=!1,p1=!1;Ko.className="PartManager";function $s(a){Ko.apply(this,arguments)}Qe($s,Ko),$s.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),m1(this,a.linkDataArray)},$s.prototype.addModeledParts=function(a){for(Ko.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Og(a.value);jc(this.diagram,!1)};function m1(a,y){y.forEach(function(x){v1(a,x)}),jc(a.diagram,!1)}function v1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){ch(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=p0(x,y,!0);z!==""&&(E.fromPortId=z),z=ju(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof ci&&(E.fromNode=z)),z=p0(x,y,!1),z!==""&&(E.toPortId=z),z=ju(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof ci&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}$s.prototype.removeAllModeledParts=function(){var a=this.diagram.model;y1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function y1(a,y){y.forEach(function(x){a.ip(x)})}$s.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},$s.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},$s.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},$s.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},$s.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},$s.prototype.findPartForKey=function(a){var y=Ko.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},$s.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},$s.prototype.doModelChanged=function(a){var y=this;if(Ko.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===jn){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(E==="linkToKey"){var rt=this.Kc(a.object);if(rt!==null){var ot=this.Vb(a.newValue);rt.toNode=ot}}else if(E==="linkFromPortId"){var lt=this.Kc(a.object);if(lt!==null){var ut=a.newValue;typeof ut=="string"&&(lt.fromPortId=ut)}}else if(E==="linkToPortId"){var ft=this.Kc(a.object);if(ft!==null){var yt=a.newValue;typeof yt=="string"&&(ft.toPortId=yt)}}else if(E==="nodeGroupKey"){var Ct=this.Lc(a.object);if(Ct!==null){var bt=a.newValue;if(bt!==void 0){var Dt=this.Vb(bt);Dt instanceof Cr?Ct.containingGroup=Dt:Ct.containingGroup=null}else Ct.containingGroup=null}}else if(E==="linkLabelKeys"){var qt=this.Kc(a.object);if(qt!==null){var Wt=a.oldValue,ae=a.newValue;Array.isArray(Wt)&&Wt.forEach(function(Fn){0<=ae.indexOf(Fn)||(Fn=y.Vb(Fn),Fn!==null&&(Fn.labeledLink=null))}),Array.isArray(ae)&&ae.forEach(function(Fn){Fn=y.Vb(Fn),Fn!==null&&(Fn.labeledLink=qt)})}}else if(E==="linkCategory"){var le=this.Kc(a.object),ge=a.newValue;le!==null&&typeof ge=="string"&&(le.category=ge)}else E==="linkDataArray"&&(y1(this,a.oldValue),m1(this,a.newValue));x.isModified=!0}else if(b===Xn){var be=a.newValue;if(E==="linkDataArray"&&typeof be=="object"&&be!==null)v1(this,be);else if(E==="linkLabelKeys"&&Jc(be)){var Je=this.Kc(a.object),di=this.Vb(be);Je!==null&&di!==null&&(di.labeledLink=Je)}x.isModified=!0}else if(b===hi){var Pi=a.oldValue;if(E==="linkDataArray"&&typeof Pi=="object"&&Pi!==null)this.ip(Pi);else if(E==="linkLabelKeys"&&Jc(Pi)){var yi=this.Vb(Pi);yi!==null&&(yi.labeledLink=null)}x.isModified=!0}}else if(b===jn){var Qn=a.propertyName;a.object!==x.model||Qn!=="linkFromKeyProperty"&&Qn!=="linkToKeyProperty"&&Qn!=="linkFromPortIdProperty"&&Qn!=="linkToPortIdProperty"&&Qn!=="linkLabelKeysProperty"&&Qn!=="nodeIsGroupProperty"&&Qn!=="nodeGroupKeyProperty"&&Qn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},$s.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Mn,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){F1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&k1(y,z,!1)})},$s.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof $n){var E=ju(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=ju(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 Mn().addAll(y);var tt=new Mn;a.labelNodes.each(function(rt){rt.data!==null&&(rt=b.wa(rt.data),rt!==void 0&&tt.add(rt))}),y=tt.copy(),y.hp(E),E=E.copy(),E.hp(tt),(0<y.count||0<E.count)&&(y.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink===a&&(rt.labeledLink=null)}),E.each(function(rt){rt=x.Vb(rt),rt!==null&&rt.labeledLink!==a&&(rt.labeledLink=a)}))}}else!(a instanceof Ao)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Cr)&&(a.containingGroup=y)}}},$s.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jp(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var tt=b.value;y.lb(tt)?E instanceof Cr&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=E)):(z.link=this.Kc(tt),z.link!==null&&E instanceof ci&&(ju(y,tt,!0)===x&&(z.link.fromNode=E),ju(y,tt,!1)===x&&(z.link.toNode=E),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(rt){return function(ot){return ot===x?(E.labeledLink=rt.link,!0):!1}}(z)))),z={link:z.link}}Yh(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Cr&&(E.containingGroup=a))}},$s.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ci){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Vh(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Vh(y,x,b.data)),a instanceof Cr)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Vh(y,x,b)}}},$s.prototype.copyPartData=function(a,y){var x=Ko.prototype.copyPartData.call(this,a,y);if(a instanceof $n)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},$s.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,tt=E.toolManager.findTool("Linking"),rt="";if(a!==null&&(y===null&&(y=a),rt=y.portId,rt===null&&(rt="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=tt.archetypeLinkData,b instanceof $n){if(ch(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=rt,z.toNode=x,z.toPortId=y,E.add(z),a=tt.archetypeLabelNodeData,a instanceof ci&&(ch(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Wg(z,b,z.wa(a.data),!0),Zg(z,b,rt,!0),x!==null&&Wg(z,b,z.wa(x.data),!1),Zg(z,b,y,!1),z.fi(b),a=tt.archetypeLabelNodeData,a===null||a instanceof ci||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},$s.prototype.findLinkForKey=$s.prototype.findLinkForKey,$s.prototype.findPartForKey=$s.prototype.findPartForKey,$s.prototype.removeAllModeledParts=$s.prototype.removeAllModeledParts,$s.prototype.addModeledParts=$s.prototype.addModeledParts,$s.prototype.addAllModeledParts=$s.prototype.addAllModeledParts,$s.className="GraphLinksPartManager";function qu(){Ko.apply(this,arguments),this.Sg=null}Qe(qu,Ko);function c0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Pn(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(ch(b),b=b.copy(),b!==null))){var tt=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=tt}}}qu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},qu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},qu.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}},qu.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))},qu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},qu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},qu.prototype.doModelChanged=function(a){if(Ko.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===jn){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),tt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(tt!==null){var rt=tt.kh();rt!==null?z===null?y.remove(rt):y.isTreePathToChildren?rt.fromNode=z:rt.toNode=z:c0(this,z,tt)}}else if(b==="parentLinkCategory"){var ot=this.ii(a.object),lt=a.newValue;if(ot!==null&&typeof lt=="string"){var ut=ot.kh();ut!==null&&(ut.category=lt)}}y.isModified=!0}}else if(x===jn){var ft=a.propertyName;a.object===y.model&&ft==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},qu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof ci&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:c0(this,y,a):b!==null&&Gd(x,b,!1)))}}},qu.prototype.updateDataBindings=function(a,y){Ko.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},qu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=jp(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof ci&&y.mh(z)===x&&c0(this,E,this.ii(z))}Yh(y,x)}a=y.mh(a),a!==void 0&&E instanceof ci&&(a=this.Vb(a),c0(this,a,E))}},qu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ci){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(hi,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&Vh(y,x,E)}},qu.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},qu.prototype.findLinkForKey=qu.prototype.findLinkForKey,qu.className="TreePartManager";function Ti(a,y){this.kl=new Mn,this.il=new Mn,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Or(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new ki,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 ki,this.Lt=new bn,this.Wg=!1,this.o=null,this.undoManager=new li,a!==void 0&&(pn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ti.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},Ti.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ti.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ti.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Kn(E)}}return y},Ti.prototype.xA=function(a){a.change!==Sn&&ue("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ii?(x1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ti.prototype.Qv=function(a,y){var x=this,b=!1,E=new Mn,z=new Mn,tt=new Mn,rt=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===Xn?E.add(ft.newValue):ft.change===hi&&tt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==jn||x.modelData!==ft.object&&ft.propertyName!=="modelData"?ft.object!==null&&(rt&&rt.contains(ft.object)?rt.get(ft.object).each(function(yt){x.lb(yt)&&z.add(yt)}):ft.object instanceof Ti||x.ri()&&x.Jc(ft.object)||w1(x,ft.object).each(function(yt){z.add(yt)})):b=!0)});var ot=this.il;ot.clear(),E.each(function(ft){ot.add(x.wa(ft)),y||z.add(ft)});var lt=this.kl;lt.clear(),tt.each(function(ft){lt.add(x.wa(ft)),y&&z.add(ft)}),a=x.cloneDeep(z.Fa());var ut=null;return b&&(ut===null&&(ut={}),ut.modelData=this.cloneDeep(this.modelData)),0<ot.count&&(ut===null&&(ut={}),y?ut.removedNodeKeys=ot.Fa():ut.insertedNodeKeys=ot.Fa()),0<a.length&&(ut===null&&(ut={}),ut.modifiedNodeData=a),0<lt.count&&(ut===null&&(ut={}),y?ut.insertedNodeKeys=lt.Fa():ut.removedNodeKeys=lt.Fa()),lt.clear(),ot.clear(),ut},Ti.prototype.cloneDeep=function(a){return Hg(this,a,!0)};function Hg(a,y,x,b,E,z){function tt(ft,yt){rt?(ft.__gohashid===void 0&&z.push(ft),b.set(ft,yt)):(ft=ca++,b.set(ft,yt),E.set(ft,y))}if(!Ge(y))return y;z||(z=[]);var rt=Object.isExtensible(y);if(b||(b=new ki),rt){var ot=b.get(y);if(ot)return ot}else for(E||(E=new ki),ot=E.iterator;ot.next();){var lt=ot.key;if(ot.value===y&&(lt=b.get(lt)))return lt}if(Array.isArray(y)){ot=[],tt(y,ot);for(var ut=0;ut<y.length;ut++)ot.push(Hg(a,y[ut],!1,b,E,z))}else if(y instanceof Vt||y instanceof ri||y instanceof fn||y instanceof zi||y instanceof Fi)ot=y.copy(),tt(y,ot);else{if(y instanceof Go||y instanceof ti||y instanceof sn)return y;if(y instanceof bn)ot=new bn().addAll(Hg(a,y.Fa(),!1,b,E,z)),tt(y,ot);else if(y instanceof Mn)ot=new Mn().addAll(Hg(a,y.Fa(),!1,b,E,z)),tt(y,ot);else if(y instanceof ki)ot=new ki().addAll(Hg(a,y.Fa(),!1,b,E,z)),tt(y,ot);else if(y instanceof Date)ot=new Date(y.getTime()),tt(y,ot);else if(y instanceof RegExp)ot=new RegExp(y),tt(y,ot),ot.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ot=y.copy(),tt(y,ot);else for(ut in ot={},tt(y,ot),y)ut!=="__gohashid"&&(ot[ut]=Hg(a,y[ut],!1,b,E,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),ot}Et=Ti.prototype,Et.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Et.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},Et.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function S1(a,y){y=y.modelData,Ge(y)&&(a.dm(y),a.modelData=y)}Et.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!P1(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+uy(this,this.modelData)),a+`,
"nodeDataArray": `+Xc(this,this.nodeDataArray,!0)},Et.kv=function(a){S1(this,a),a=a.nodeDataArray,pn(a)&&(this.dm(a),this.nodeDataArray=a)};function x1(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var tt=b.get(E);tt===null?(tt=new Mn,tt.add(z),b.add(E,tt)):tt.add(z)}}var b=a.vh;b===null&&(b=new ki,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===jn?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===Xn||z===hi)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function w1(a,y){for(var x=new Mn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];f0(a,y,E,E,x)}return x}function f0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var tt=x[z];if(tt===y)return E.add(b),!0;if(f0(a,y,tt,b,E))return!0}else if(Ge(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return E.add(b),!0;if(f0(a,y,tt,b,E))return!0}return!1}Et.Pv=function(a,y){var x=this,b=!1,E=new Mn,z=new Mn,tt=new Mn,rt=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===Xn?E.add(ut.newValue):ut.change===hi&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==jn||x.modelData!==ut.object&&ut.propertyName!=="modelData"?ut.object!==null&&(rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){x.lb(ft)&&z.add(ft)}):ut.object instanceof Ti||x.ri()&&x.Jc(ut.object)||w1(x,ut.object).each(function(ft){z.add(ft)})):b=!0)});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(x.wa(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(x.wa(ut)),y&&z.add(ut)}),a="",b&&(a+=`,
"modelData": `+uy(this,this.modelData)),0<ot.count&&(a+=(y?this.Yv:this.Wv)+Xc(this,ot.Fa(),!0)),0<z.count&&(a+=this.jy+Xc(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Wv:this.Yv)+Xc(this,lt.Fa(),!0)),lt.clear(),ot.clear(),a},Et.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)&&ue("applyIncrementalJson cannot change Model properties"),S1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new ki;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],tt=this.wa(z);tt!=null&&b.set(tt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){tt=y[z];var rt=this.hc(tt);rt===null&&(rt=(rt=b.get(tt))?rt:this.copyNodeData({}),this.km(rt,tt),this.xf(rt))}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 ot in E)ot==="__gohashid"||ot===this.nodeKeyProperty||this.Wj()&&ot===this.nodeIsGroupProperty||this.setDataProperty(z,ot,E[ot]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,ot=0;ot<x;ot++)y=this.hc(a[ot]),y!==null&&this.cm(y)},Et.$x=function(a,y){a.change!==Sn&&ue("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ii?(y===void 0&&(y=Hp(this,this)),x1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Et.yA=function(a,y){return this.$x(a,y)},Et.np=function(a){return a===void 0&&(a=Hp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Et.toJSON=function(a){return this.np(a)},Et.Zw=function(a){var y=null;if(typeof a=="string")try{y=ce.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:ue("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&ue("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Et.Ky=function(a){return this.Zw(a)},Ti.constructGraphLinksModel=function(){return new Ti},Et=Ti.prototype,Et.dm=function(a){if(pn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(Ge(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:ue("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(Ge(a)){for(y in a)if(x=a[y],Ge(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new bn,b=0;b<x.length/2;b++)E.add(new Vt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Nx(a)}return a},Et.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()):pn(a)?Xc(this,a):Ge(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function Xc(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Ai;E.add("["),x&&1<b&&E.add(`
`);for(var z=0;z<b;z++){var tt=y[z];tt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
`)),E.add(a.sm(tt)))}return x&&1<b&&E.add(`
`),E.add("]"),E.toString()}function P1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Kl(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Vt)y={class:"go.Point",x:Kl(x.x),y:Kl(x.y)};else if(x instanceof ri)y={class:"go.Size",width:Kl(x.width),height:Kl(x.height)};else if(x instanceof fn)y={class:"go.Rect",x:Kl(x.x),y:Kl(x.y),width:Kl(x.width),height:Kl(x.height)};else if(x instanceof zi)y={class:"go.Margin",top:Kl(x.top),right:Kl(x.right),bottom:Kl(x.bottom),left:Kl(x.left)};else if(x instanceof Fi)x.sb()?y={class:"go.Spot",x:Kl(x.x),y:Kl(x.y),offsetX:Kl(x.offsetX),offsetY:Kl(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Go){if(y={class:"go.Brush",type:x.type.name},x.type===mc?y.color=x.color:(x.type===Ud||x.type===Qu)&&(y.start=x.start,y.end=x.end,x.type===Qu&&(x.startRadius!==0&&(y.startRadius=Kl(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Kl(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof ti?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Kl(x.startX)),x.startY!==0&&(y.startY=Kl(x.startY)),x.endX!==0&&(y.endX=Kl(x.endX)),x.endY!==0&&(y.endY=Kl(x.endY)),x.spot1.D(Ls)||(y.spot1=x.spot1),x.spot2.D(ml)||(y.spot2=x.spot2),x.type===ti.o&&(y.path=ti.ia(x))):x instanceof sn&&(y={class:"go.EnumValue",classType:Hp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=fs(y,E);if(!P1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof bn){var tt="[";for(z=z.iterator;z.next();){var rt=z.value;1<tt.length&&(tt+=","),tt+=a.sm(rt.x),tt+=",",tt+=a.sm(rt.y)}tt+="]",b+=tt}else b+=a.sm(z)}return b+"}"}function Vl(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Nx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Vt(Vl(a.x),Vl(a.y));else if(y==="Size")x=new ri(Vl(a.width),Vl(a.height));else if(y==="Rect")x=new fn(Vl(a.x),Vl(a.y),Vl(a.width),Vl(a.height));else if(y==="Margin")x=new zi(Vl(a.top),Vl(a.right),Vl(a.bottom),Vl(a.left));else if(y==="Spot")typeof a.enum=="string"?x=ic(a.enum):x=new Fi(Vl(a.x),Vl(a.y),Vl(a.offsetX),Vl(a.offsetY));else if(y==="Brush"){if(x=new Go,x.type=si(Go,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Fi&&(x.start=a.start),a.end instanceof Fi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Vl(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Vl(a.endRadius)),a=a.colorStops,Ge(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=ti.parse(a.path):x=new ti,x.type=si(ti,a.type),typeof a.startX=="number"&&(x.startX=Vl(a.startX)),typeof a.startY=="number"&&(x.startY=Vl(a.startY)),typeof a.endX=="number"&&(x.endX=Vl(a.endX)),typeof a.endY=="number"&&(x.endY=Vl(a.endY)),a.spot1 instanceof Fi&&(x.spot1=a.spot1),a.spot2 instanceof Fi&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=si(b,a.name)));return x}Et.Pe=function(a){return this.Lt.add(a),this},Et.ik=function(a){this.Lt.remove(a)},Et.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)},Et.cb=function(a,y,x,b,E,z,tt){Ds(this,"",a,y,x,b,E,z,tt)},Et.g=function(a,y,x,b,E){Ds(this,"",jn,a,this,y,x,b,E)},Et.Fs=function(a,y,x,b,E,z){Ds(this,"",jn,y,a,x,b,E,z)};function Ds(a,y,x,b,E,z,tt,rt,ot){rt===void 0&&(rt=null),ot===void 0&&(ot=null);var lt=new vn;lt.model=a,lt.change=x,lt.modelChange=y,lt.propertyName=b,lt.object=E,lt.oldValue=z,lt.oldParam=rt,lt.newValue=tt,lt.newParam=ot,a.ds(lt)}Ti.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===jn){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)),La(x,b,E)}else a.change===Xn?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Ge(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&yn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&hn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!pn(b)&&a.propertyName&&(b=fs(a.object,a.propertyName)),pn(b)&&typeof x=="number"&&(a=a.newValue,y?yn(b,x):hn(b,x,a))):ue("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===hi?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Ge(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&hn(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&yn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!pn(b)&&a.propertyName&&(b=fs(a.object,a.propertyName)),pn(b)&&typeof x=="number"&&(a=a.oldValue,y?hn(b,x,a):yn(b,x))):ue("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Sn&&ue("unknown ChangedEvent: "+a.toString())},Ti.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ti.prototype.eb=function(a){return this.undoManager.eb(a)},Ti.prototype.Kf=function(){return this.undoManager.Kf()},Ti.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Et=Ti.prototype,Et.La=function(a,y){y===void 0&&(y=""),Ds(this,"SourceChanged",Sn,y,a,null,null)},Et.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=fs(a,y),y!==void 0)){if(Jc(y))return y;ue("Key value for node data "+a+" is not a number or a string: "+y)}}},Et.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=fs(a,x);b!==y&&this.hc(y)===null&&(La(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ds(this,"nodeKey",jn,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else La(a,x,y)}};function Jc(a){return typeof a=="number"||typeof a=="string"}Et.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Et.hc=function(a){return a===null&&ue("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Jc(a)?this.kb.I(a):null},Et.$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))){La(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;La(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;La(a,y,x)}}}}},Et.xf=function(a){a!==null&&(ea(a),this.lb(a)||C1(this,a,!0))};function C1(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&ue("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,hn(a.Tc,b,y)),Ds(a,"nodeDataArray",Xn,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Et.Fy=function(a){if(pn(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)},Et.cm=function(a){a!==null&&b1(this,a,!0)};function b1(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){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;yn(a.Tc,b)}Ds(a,"nodeDataArray",hi,"nodeDataArray",a,y,null,b,null),a.qp(y)}Et.nA=function(a){if(pn(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)},Et.$z=function(a){if(a!==this.nodeDataArray&&pn(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],tt=this.wa(z);if(tt!==void 0){x.add(tt);var rt=this.hc(tt);rt!==z&&(rt!==null?(this.Do(rt,z),this.lm(z,rt)):(z=this.cloneDeep(z),this.km(z,tt),this.xf(z)))}else tt=this.cloneDeep(z),this.xf(tt),x.add(this.wa(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Et.jp=function(a,y){y!==void 0&&(a=jp(this,a),a instanceof Mn&&this.Vf.add(y,a))},Et.Lv=function(){},Et.fm=function(){},Et.em=function(){},Et.qp=function(){};function Vh(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Mn,a.Vf.add(y,b)),b.add(x)}}function Yh(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Mn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function jp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Mn?a:null)}Et.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ti.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):g0(this,a,!0),Ge(a)&&Or(a),a};function g0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=g0(a,y[x],a.copiesArrayObjects);b.push(E)}return Or(b),b}if(x&&Ge(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=fs(y,b),tt=Hp(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof Ti||z instanceof li||z instanceof Ii||z instanceof vn||(z=g0(a,z,!1)),La(x,b,z)}return Or(x),x}return y instanceof Vt||y instanceof ri||y instanceof fn||y instanceof Fi||y instanceof zi?y.copy():y}Ti.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!E1&&a instanceof Le&&(E1=!0,Hi('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Hi(" Is that really your intent?"));var b=fs(a,y);b!==x&&(La(a,y,x),this.Fs(a,y,b,x))},Et=Ti.prototype,Et.set=function(a,y,x){this.setDataProperty(a,y,x)},Et.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])}},Et.Ay=function(a,y){this.ts(a,-1,y)},Et.ts=function(a,y,x){0>y&&(y=a.length),hn(a,y,x),Ds(this,"",Xn,"",a,null,x,null,y)},Et.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&ue("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];yn(a,y),Ds(this,"",hi,"",a,x,null,y,null)},Et.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=fs(a,y),y===void 0))return"";if(typeof y=="string")return y;ue("getCategoryForNodeData found a non-string category for "+a+": "+y)},Et.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=fs(a,x);b===void 0&&(b=""),b!==y&&(La(a,x,y),Ds(this,"nodeCategory",jn,x,a,b,y))}else La(a,x,y)}},Et.lm=function(a,y){this.jm(y,this.Ro(a))},Et.Tl=function(){return!1},Et.Wj=function(){return!1},Et.ri=function(){return!1},Et.xs=function(){return!1},Et.Xj=function(){return!1};function hy(){return new Ti}function Hp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Hp(a,y.constructor);return typeof y}function dy(a){return Ah[a]?Ah[a]:ce.go!==void 0&&ce.go[a]?ce.go[a]:null}function fs(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 La(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){}}Jt.Object.defineProperties(Ti.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&ue("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&ue("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];Ge(E)||ue("Model.nodeDataArray must only contain Objects, not: "+E),ea(E)}for(this.Tc=a,b=new bn,E=0;E<x;E++){var z=a[E],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?b.add(z):this.kb.add(tt,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(Ds(this,"nodeDataArray",jn,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Ti.prototype.setCategoryForNodeData=Ti.prototype.jm,Ti.prototype.getCategoryForNodeData=Ti.prototype.Ro,Ti.prototype.removeArrayItem=Ti.prototype.ov,Ti.prototype.insertArrayItem=Ti.prototype.ts,Ti.prototype.addArrayItem=Ti.prototype.Ay,Ti.prototype.assignAllDataProperties=Ti.prototype.Do,Ti.prototype.set=Ti.prototype.set,Ti.prototype.clearUnresolvedReferences=Ti.prototype.Qy,Ti.prototype.mergeNodeDataArray=Ti.prototype.$z,Ti.prototype.removeNodeDataCollection=Ti.prototype.nA,Ti.prototype.removeNodeData=Ti.prototype.cm,Ti.prototype.addNodeDataCollection=Ti.prototype.Fy,Ti.prototype.addNodeData=Ti.prototype.xf,Ti.prototype.makeNodeDataKeyUnique=Ti.prototype.$u,Ti.prototype.findNodeDataForKey=Ti.prototype.hc,Ti.prototype.containsNodeData=Ti.prototype.lb,Ti.prototype.setKeyForNodeData=Ti.prototype.km,Ti.prototype.getKeyForNodeData=Ti.prototype.wa,Ti.prototype.updateTargetBindings=Ti.prototype.La,Ti.prototype.commit=Ti.prototype.commit,Ti.prototype.rollbackTransaction=Ti.prototype.Kf,Ti.prototype.commitTransaction=Ti.prototype.eb,Ti.prototype.startTransaction=Ti.prototype.Ea,Ti.prototype.raiseDataChanged=Ti.prototype.Fs,Ti.prototype.raiseChanged=Ti.prototype.g,Ti.prototype.raiseChangedEvent=Ti.prototype.cb,Ti.prototype.removeChangedListener=Ti.prototype.ik,Ti.prototype.addChangedListener=Ti.prototype.Pe,Ti.prototype.writeJsonValue=Ti.prototype.sm,Ti.prototype.replaceJsonObjects=Ti.prototype.dm,Ti.prototype.applyIncrementalJSON=Ti.prototype.Ky,Ti.prototype.applyIncrementalJson=Ti.prototype.Zw,Ti.prototype.toJSON=Ti.prototype.toJSON,Ti.prototype.toJson=Ti.prototype.np,Ti.prototype.toIncrementalJSON=Ti.prototype.yA,Ti.prototype.toIncrementalJson=Ti.prototype.$x,Ti.prototype.toIncrementalData=Ti.prototype.xA,Ti.prototype.clear=Ti.prototype.clear;var E1=!1,Ah={};Ti.className="Model",Ti.fromJSON=Ti.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=ce.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:ue("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=ce[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Ti?y=a:ue("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ti.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ti.safePropertyValue=fs,Ti.safePropertySet=La,Ah.Brush=Go,Ah.ChangedEvent=vn,Ah.Geometry=ti,Ah.Margin=zi,Ah.Panel=Gn,Ah.Point=Vt,Ah.Rect=fn,Ah.Size=ri,Ah.Spot=Fi,Ah.Transaction=Ii,Ah.UndoManager=li;function vs(a,y,x,b){Or(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=M1,this.wk=null):(this.el=Wp,this.wk=b),this.st=new Mn}vs.prototype.copy=function(){var a=new vs;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},Et=vs.prototype,Et.qb=function(a){a.classType===vs&&(this.mode=a)},Et.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Et.freeze=function(){return this._isFrozen=!0,this},Et.ka=function(){return this._isFrozen=!1,this},Et.Kx=function(a){return a===void 0&&(a=null),this.mode=Wp,this.backConverter=a,this},Et.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Et.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function L1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Et.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==="")Hi("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=fs(y,b)),z!==void 0)if(E===null)x!==""&&La(a,x,z);else try{if(x!==""){var tt=E(z,a);La(a,x,tt)}else E(z,a)}catch(rt){}}}},Et.sp=function(a,y,x,b){if(this.el===Wp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,tt=a;if(E!==""&&(tt=fs(a,E)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var rt=b!==null?b.diagram:null,ot=rt!==null?rt.model:null;if(z===null){if(x!=="")ot!==null?ot.setDataProperty(y,x,tt):La(y,x,tt);else if(ot!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var lt=b.itemIndex,ut=b.panel.itemArray;ot.ov(ut,lt),ot.ts(ut,lt,tt)}}else try{if(x!==""){var ft=z(tt,y,ot);ot!==null?ot.setDataProperty(y,x,ft):La(y,x,ft)}else{var yt=z(tt,y,ot);if(yt!==void 0&&ot!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Ct=b.itemIndex,bt=b.panel.itemArray;ot.ov(bt,Ct),ot.ts(bt,Ct,yt)}}}catch(Dt){}}finally{this.st.remove(a)}}}},Jt.Object.defineProperties(vs.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Nn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Nn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Nn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Nn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Nn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Nn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Nn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Nn(this),this.el=a}}}),vs.prototype.updateSource=vs.prototype.sp,vs.prototype.updateTarget=vs.prototype.Mv,vs.prototype.ofModel=vs.prototype.dA,vs.prototype.ofObject=vs.prototype.cp,vs.prototype.makeTwoWay=vs.prototype.Kx;var Tx="Binding",M1=new sn(vs,"OneWay",1),Wp=new sn(vs,"TwoWay",2);vs.className="Binding",vs.parseEnum=function(a,y){return function(x){return x=si(a,x),x===null?y:x}},vs.toString=Kn,vs.OneWay=M1,vs.TwoWay=Wp;function co(a,y,x){Ti.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Mn,this.wb=new ki,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&&(pn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Qe(co,Ti),co.constructGraphLinksModel=Ti.constructGraphLinksModel,co.prototype.cloneProtected=function(a){Ti.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Et=co.prototype,Et.clear=function(){Ti.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Et.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)+":"+Kn(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+ju(this,E,!0)+"-->"+ju(this,E,!1)}return y},Et.Qv=function(a,y){this.linkKeyProperty===""&&ue("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ti.prototype.Qv.call(this,a,y),b=this,E=new Mn,z=new Mn,tt=new Mn,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Xn?E.add(ut.newValue):ut.change===hi&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){b.Jc(ft)&&z.add(ft)}):ut.object instanceof Ti||b.lb(ut.object)||A1(b,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=b.cloneDeep(z.Fa()),0<ot.count&&(x===null&&(x={}),y?x.removedLinkKeys=ot.Fa():x.insertedLinkKeys=ot.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<lt.count&&(x===null&&(x={}),y?x.insertedLinkKeys=lt.Fa():x.removedLinkKeys=lt.Fa()),lt.clear(),ot.clear(),x},Et.rm=function(){var a=Ti.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Et.gp=function(a){Ti.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Et.Rv=function(){var a=Ti.prototype.Rv.call(this),y=`,
"linkDataArray": `+Xc(this,this.linkDataArray,!0);return a+y},Et.kv=function(a){Ti.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function A1(a,y){for(var x=new Mn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];f0(a,y,E,E,x)}return x}Et.Pv=function(a,y){this.linkKeyProperty===""&&ue("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ti.prototype.Pv.call(this,a,y),b=this,E=new Mn,z=new Mn,tt=new Mn,rt=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===Xn?E.add(ut.newValue):ut.change===hi&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&rt&&rt.contains(ut.object)?rt.get(ut.object).each(function(ft){b.Jc(ft)&&z.add(ft)}):ut.object instanceof Ti||b.lb(ut.object)||A1(b,ut.object).each(function(ft){z.add(ft)})))});var ot=this.il;ot.clear(),E.each(function(ut){ot.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=x,0<ot.count&&(a+=(y?this.Xv:this.Vv)+Xc(this,ot.Fa(),!0)),0<z.count&&(a+=this.iy+Xc(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Vv:this.Xv)+Xc(this,lt.Fa(),!0)),lt.clear(),ot.clear(),a},Et.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)&&ue("applyIncrementalJson cannot change Model properties"),Ti.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var tt in E)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,E[tt]);N1(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},co.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===jn){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),La(x,b,E);return}}else if(a.change===Xn){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Ge(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===hi){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Ge(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}Ti.prototype.changeState.call(this,a,y)}},Et=co.prototype,Et.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),La(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Et.yx=function(a){return ju(this,a,!0)},Et.wv=function(a,y){Wg(this,a,y,!0)},Et.Bx=function(a){return ju(this,a,!1)},Et.Bv=function(a,y){Wg(this,a,y,!1)};function ju(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=fs(y,a),a!==void 0))){if(Jc(a))return a;ue((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Wg(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=fs(y,E);z!==x&&(Yh(a,z,y),La(y,E,x),a.hc(x)===null&&Vh(a,x,y),Ds(a,b?"linkFromKey":"linkToKey",jn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else La(y,E,x)}}Et.zx=function(a){return p0(this,a,!0)},Et.xv=function(a,y){Zg(this,a,y,!0)},Et.Cx=function(a){return p0(this,a,!1)},Et.Cv=function(a,y){Zg(this,a,y,!1)};function p0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=fs(y,a),y===void 0?"":y)}function Zg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=fs(y,E);z===void 0&&(z=""),z!==x&&(La(y,E,x),Ds(a,b?"linkFromPortId":"linkToPortId",jn,E,y,z,x),typeof E=="string"&&a.La(y,E))}else La(y,E,x)}}Et.Ef=function(a){if(a===null)return m0;var y=this.je;return y===""?m0:(a=fs(a,y),a===void 0?m0:a)},Et.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=fs(a,x);if(b===void 0&&(b=m0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)Yh(this,b[z],a);for(La(a,x,y),E=y.length,z=0;z<E;z++){var tt=y[z];this.hc(tt)===null&&Vh(this,tt,a)}Ds(this,"linkLabelKeys",jn,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else La(a,x,y)}},Et.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=fs(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&Vh(this,y,a),Ds(this,"linkLabelKeys",Xn,x,a,null,y,null,E)))}else ue(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Et.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=fs(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Yh(this,y,a),Ds(this,"linkLabelKeys",hi,x,a,y,null,E,null)))}else b!==void 0&&ue(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Et.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=fs(a,y),y!==void 0)){if(Jc(y))return y;ue("Key value for link data "+a+" is not a number or a string: "+y)}}},Et.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=fs(a,x);b!==y&&this.jh(y)===null&&(La(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ds(this,"linkKey",jn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},Et.jh=function(a){return a===null&&ue("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Jc(a)?this.wb.I(a):null},Et.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))){La(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;La(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;La(a,y,x)}}}}},Et.Jc=function(a){return a===null?!1:this.$f.contains(a)},Et.fi=function(a){a!==null&&(ea(a),this.Jc(a)||k1(this,a,!0))};function k1(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&ue("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)),Ds(a,"linkDataArray",Xn,"linkDataArray",a,null,y,null,b),cy(a,y)}Et.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)},Et.bm=function(a){a!==null&&F1(this,a,!0)};function F1(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(Ds(a,"linkDataArray",hi,"linkDataArray",a,y,null,b,null),x=ju(a,y,!0),Yh(a,x,y),x=ju(a,y,!1),Yh(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],Yh(a,x,y)}Et.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)},Et.Zz=function(a){if(this.linkKeyProperty===""&&ue("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&pn(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],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var rt=this.jh(tt);rt!==z&&(rt!==null?(this.Do(rt,z),N1(this,z,rt)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function cy(a,y){var x=ju(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Vh(a,x,y),x=ju(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Vh(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&Vh(a,x,y)}Et.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):g0(this,a,!0),Ge(a)&&(Or(a),this.lf!==""&&La(a,this.lf,void 0),this.mf!==""&&La(a,this.mf,void 0),this.je!==""&&La(a,this.je,[])),a},Et.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!fs(a,y)},Et.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=fs(a,y),y!==void 0)){if(Jc(y))return y;ue("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Et.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=fs(a,x);b!==y&&(Yh(this,b,a),La(a,x,y),this.hc(y)===null&&Vh(this,y,a),Ds(this,"nodeGroupKey",jn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},co.prototype.copyNodeData=function(a){return a===null?null:(a=Ti.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||fs(a,this.Je)===void 0||La(a,this.Je,void 0),a)},co.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Wg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Wg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Zg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Zg(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=fs(a,y);b!==x&&(La(a,y,x),this.Fs(a,y,b,x))},Et=co.prototype,Et.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&&fs(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Et.jp=function(a,y){Ti.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(ju(this,b,!0)===E){var tt=this.lf;La(b,tt,z),Ds(this,"linkFromKey",jn,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)}if(ju(this,b,!1)===E&&(tt=this.mf,La(b,tt,z),Ds(this,"linkToKey",jn,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)),tt=this.Ef(b),Array.isArray(tt))for(var rt=tt.length,ot=this.je,lt=0;lt<rt;lt++)tt[lt]===E&&(tt[lt]=z,Ds(this,"linkLabelKeys",Xn,ot,b,E,z,lt,lt))}},Et.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;La(a,b,x),Ds(this,"nodeGroupKey",jn,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Et.Lv=function(){Ti.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},Et.fm=function(a){Ti.prototype.fm.call(this,a),a=this.wa(a);var y=jp(this,a);if(y!==null){var x=dn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Ds(this,"nodeGroupKey",jn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(ju(this,b,!0)===a&&(E=this.lf,Ds(this,"linkFromKey",jn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),ju(this,b,!1)===a&&(E=this.mf,Ds(this,"linkToKey",jn,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,tt=this.je,rt=0;rt<z;rt++)E[rt]===a&&(Ds(this,"linkLabelKeys",Xn,tt,b,a,a,rt,rt),x.push(b))}for(y=0;y<x.length;y++)Yh(this,a,x[y]);kn(x)}},Et.em=function(a){Ti.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Vh(this,y,a)},Et.qp=function(a){Ti.prototype.qp.call(this,a);var y=this.lh(a);Yh(this,y,a)},Et.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=fs(a,y),y===void 0))return"";if(typeof y=="string")return y;ue("getCategoryForLinkData found a non-string category for "+a+": "+y)},co.prototype.getLinkCategoryForData=function(a){return this.ps(a)},co.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=fs(a,x);b===void 0&&(b=""),b!==y&&(La(a,x,y),Ds(this,"linkCategory",jn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},co.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Et=co.prototype,Et.lm=function(a,y){Ti.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function N1(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Et.Wj=function(){return!0},Et.ri=function(){return!0},Et.xs=function(){return!0},Et.Xj=function(){return!0},Jt.Object.defineProperties(co.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];Ge(E)||ue("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),ea(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new bn,E=0;E<x;E++){var z=a[E],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?b.add(z):this.wb.add(tt,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 Mn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Ds(this,"linkDataArray",jn,"linkDataArray",this,y,a),y=0;y<x;y++)cy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),co.prototype.setCategoryForLinkData=co.prototype.lp,co.prototype.getCategoryForLinkData=co.prototype.ps,co.prototype.assignAllDataProperties=co.prototype.Do,co.prototype.setGroupKeyForNodeData=co.prototype.mp,co.prototype.getGroupKeyForNodeData=co.prototype.lh,co.prototype.isGroupForNodeData=co.prototype.Yu,co.prototype.copyLinkData=co.prototype.Jo,co.prototype.mergeLinkDataArray=co.prototype.Zz,co.prototype.removeLinkDataCollection=co.prototype.lA,co.prototype.removeLinkData=co.prototype.bm,co.prototype.addLinkDataCollection=co.prototype.Ey,co.prototype.addLinkData=co.prototype.fi,co.prototype.containsLinkData=co.prototype.Jc,co.prototype.makeLinkDataKeyUnique=co.prototype.Bs,co.prototype.findLinkDataForKey=co.prototype.jh,co.prototype.setKeyForLinkData=co.prototype.Ks,co.prototype.getKeyForLinkData=co.prototype.Ac,co.prototype.removeLabelKeyForLinkData=co.prototype.Qx,co.prototype.addLabelKeyForLinkData=co.prototype.Bu,co.prototype.setLabelKeysForLinkData=co.prototype.Ls,co.prototype.getLabelKeysForLinkData=co.prototype.Ef,co.prototype.setToPortIdForLinkData=co.prototype.Cv,co.prototype.getToPortIdForLinkData=co.prototype.Cx,co.prototype.setFromPortIdForLinkData=co.prototype.xv,co.prototype.getFromPortIdForLinkData=co.prototype.zx,co.prototype.setToKeyForLinkData=co.prototype.Bv,co.prototype.getToKeyForLinkData=co.prototype.Bx,co.prototype.setFromKeyForLinkData=co.prototype.wv,co.prototype.getFromKeyForLinkData=co.prototype.yx,co.prototype.clear=co.prototype.clear;var m0=Object.freeze([]);co.className="GraphLinksModel",Ah.GraphLinksModel=co,Ti.constructGraphLinksModel=Ti.constructGraphLinksModel=function(){return new co},Ti.initDiagramModel=hy=function(){return new co};function Yl(a,y){Ti.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(pn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Qe(Yl,Ti),Yl.constructGraphLinksModel=Ti.constructGraphLinksModel,Yl.prototype.cloneProtected=function(a){Ti.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Et=Yl.prototype,Et.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)+":"+Kn(E)}}return y},Et.rm=function(){var a=Ti.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Et.gp=function(a){Ti.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Et.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&ue("applyIncrementalJson cannot change Model properties"),Ti.prototype.fp.call(this,a)},Et.Vl=function(a){return a},Et.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=fs(a,y),y!==void 0)){if(Jc(y))return y;ue("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Et.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=fs(a,x);b!==y&&(Yh(this,b,a),La(a,x,y),this.hc(y)===null&&Vh(this,y,a),Ds(this,"nodeParentKey",jn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},Et.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=fs(a,y),y===void 0)?"":typeof y=="string"?y:(ue("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Yl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Yl.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=fs(a,x);b===void 0&&(b=""),b!==y&&(La(a,x,y),Ds(this,"parentLinkCategory",jn,x,a,b,y),typeof x=="string"&&this.La(a,x))}else La(a,x,y)}},Yl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Yl.prototype.copyNodeData=function(a){return a===null?null:(a=Ti.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||fs(a,this.Ke)===void 0||La(a,this.Ke,void 0),a)},Yl.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=fs(a,y);b!==x&&(La(a,y,x),this.Fs(a,y,b,x))},Et=Yl.prototype,Et.jp=function(a,y){Ti.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Et.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;La(a,b,x),Ds(this,"nodeParentKey",jn,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Et.fm=function(a){Ti.prototype.fm.call(this,a),a=this.wa(a);var y=jp(this,a);if(y!==null){var x=dn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Ds(this,"nodeParentKey",jn,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Yh(this,a,x[y]);kn(x)}},Et.em=function(a){Ti.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Vh(this,y,a)},Et.qp=function(a){Ti.prototype.qp.call(this,a);var y=this.mh(a);Yh(this,y,a)},Et.lm=function(a,y){Ti.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Et.Tl=function(){return!0},Et.xs=function(){return!0},Jt.Object.defineProperties(Yl.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"}}}),Yl.prototype.setParentLinkCategoryForNodeData=Yl.prototype.Ms,Yl.prototype.getParentLinkCategoryForNodeData=Yl.prototype.ss,Yl.prototype.setParentKeyForNodeData=Yl.prototype.qe,Yl.prototype.getParentKeyForNodeData=Yl.prototype.mh,Yl.className="TreeModel",Ah.TreeModel=Yl;function Za(a){Fa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=kh,this.Ti=0,this.Zv=new Vt,this.Jp=this.me=0,this.Xr=new Vp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=kh,this.K=Ul,this.nd=Kg,this.hd=ry,this.tf=6,this.Nn=C0,a&&Object.assign(this,a)}Qe(Za,Fa),Za.prototype.cloneProtected=function(a){Fa.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},Za.prototype.qb=function(a){a.classType===Za?a===w0||a===P0||a===S0||a===x0||a===Kg?this.sorting=a:a===Tf||a===Gg||a===Ul||a===$c?this.direction=a:a===bc||a===Qc||a===kh||a===Fh?this.arrangement=a:(a===og||a===C0)&&(this.nodeDiameterFormula=a):Fa.prototype.qb.call(this,a)},Za.prototype.createNetwork=function(){return new Vg(this)},Za.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new bn;y.addAll(a.iterator),a=new bn;var x=new bn,b=this.sort(y),E,z,tt=this.Jp,rt=this.arrangement,ot=this.nodeDiameterFormula,lt=this.radius;(!isFinite(lt)||0>=lt)&&(lt=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var yt=this.sweepAngle;if((!isFinite(yt)||360<yt||1>yt)&&(yt=360),y=this.spacing,isFinite(y)||(y=NaN),rt===Fh&&ot===og?rt=kh:rt===Fh&&ot!==og&&(rt=this.arrangement),(this.direction===Tf||this.direction===Gg)&&this.sorting!==Kg){for(ot=0;!(ot>=b.length)&&(a.add(b.M(ot)),!(ot+1>=b.length));ot+=2)x.add(b.M(ot+1));this.direction===Tf?(this.arrangement===Fh&&a.reverse(),b=new bn,b.addAll(a),b.addAll(x)):(this.arrangement===Fh&&x.reverse(),b=new bn,b.addAll(x),b.addAll(a))}ot=b.length;for(var Ct=z=E=0;Ct<b.length;Ct++){var bt=ft+yt*z*(this.direction===Ul?1:-1)/ot,Dt=b.M(Ct).diameter;isNaN(Dt)&&(Dt=qc(b.M(Ct),bt)),360>yt&&(Ct===0||Ct===b.length-1)&&(Dt/=2),E+=Dt,z++}if(isNaN(lt)||rt===Fh){if(isNaN(y)&&(y=6),rt!==kh&&rt!==Fh){for(z=-1/0,tt=0;tt<ot;tt++)Ct=b.M(tt),E=b.M(tt===ot-1?0:tt+1),isNaN(Ct.diameter)&&qc(Ct,0),isNaN(E.diameter)&&qc(E,0),z=Math.max(z,(Ct.diameter+E.diameter)/2);tt=z+y,rt===bc?lt=(z+y)/(2*Math.PI/ot):lt=v0(this,tt*(360<=yt?ot:ot-1),ut,ft*Math.PI/180,yt*Math.PI/180)}else lt=v0(this,E+(360<=yt?ot:ot-1)*(rt!==Fh?y:1.6*y),ut,ft*Math.PI/180,yt*Math.PI/180);z=lt*ut}else if(z=lt*ut,Ct=fy(this,lt,z,ft*Math.PI/180,yt*Math.PI/180),isNaN(y))(rt===kh||rt===Fh)&&(y=(Ct-E)/(360<=yt?ot:ot-1));else if(rt===kh||rt===Fh)Ct=(Ct-E)/(360<=yt?ot:ot-1),Ct<y?(lt=v0(this,E+y*(360<=yt?ot:ot-1),ut,ft*Math.PI/180,yt*Math.PI/180),z=lt*ut):y=Ct;else{for(tt=-1/0,E=0;E<ot;E++)bt=b.M(E),Dt=b.M(E===ot-1?0:E+1),isNaN(bt.diameter)&&qc(bt,0),isNaN(Dt.diameter)&&qc(Dt,0),tt=Math.max(tt,(bt.diameter+Dt.diameter)/2);tt+=y,E=v0(this,tt*(360<=yt?ot:ot-1),ut,ft*Math.PI/180,yt*Math.PI/180),E>lt?(lt=E,z=lt*ut):tt=Ct/(360<=yt?ot:ot-1)}if(this.kw=rt,this.lc=lt,this.Zm=ut,this.lw=ft,this.Wp=yt,this.Ti=y,this.me=z,this.Jp=tt,y=b,b=this.kw,rt=this.lc,lt=this.lw,ut=this.Wp,ft=this.Ti,yt=this.me,ot=this.Jp,this.direction!==Tf&&this.direction!==Gg||b!==Fh)if(this.direction===Tf||this.direction===Gg){switch(tt=0,b){case Qc:tt=180*y0(this,rt,yt,lt,ot)/Math.PI;break;case kh:ot=y=0,tt=a.first(),tt!==null&&(y=qc(tt,Math.PI/2)),tt=x.first(),tt!==null&&(ot=qc(tt,Math.PI/2)),tt=180*y0(this,rt,yt,lt,ft+(y+ot)/2)/Math.PI;break;case bc:tt=ut/y.length}if(this.direction===Tf){switch(b){case Qc:Kp(this,a,lt,$c);break;case kh:Gp(this,a,lt,$c);break;case bc:Zp(this,a,ut/2,lt,$c)}switch(b){case Qc:Kp(this,x,lt+tt,Ul);break;case kh:Gp(this,x,lt+tt,Ul);break;case bc:Zp(this,x,ut/2,lt+tt,Ul)}}else{switch(b){case Qc:Kp(this,x,lt,$c);break;case kh:Gp(this,x,lt,$c);break;case bc:Zp(this,x,ut/2,lt,$c)}switch(b){case Qc:Kp(this,a,lt+tt,Ul);break;case kh:Gp(this,a,lt+tt,Ul);break;case bc:Zp(this,a,ut/2,lt+tt,Ul)}}}else switch(b){case Qc:Kp(this,y,lt,this.direction);break;case kh:Gp(this,y,lt,this.direction);break;case bc:Zp(this,y,ut,lt,this.direction);break;case Fh:T1(this,y,ut,lt,this.direction)}else T1(this,y,ut,lt-ut/2,Ul)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Zp(a,y,x,b,E){var z=a.Wp,tt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var lt=b+(E===Ul?ot*x/(360<=z?rt:rt-1):-(ot*x)/rt),ut=y.M(ot),ft=tt*Math.tan(lt)/a;ft=Math.sqrt((tt*tt+a*a*ft*ft)/(1+ft*ft)),ut.centerX=ft*Math.cos(lt),ut.centerY=ft*Math.sin(lt),ut.actualAngle=180*lt/Math.PI}}function Gp(a,y,x,b){var E=a.lc,z=a.me,tt=a.Ti;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var lt=y.M(ot),ut=y.M(ot===rt-1?0:ot+1),ft=z*Math.sin(x);lt.centerX=E*Math.cos(x),lt.centerY=ft,lt.actualAngle=180*x/Math.PI,isNaN(lt.diameter)&&qc(lt,0),isNaN(ut.diameter)&&qc(ut,0),lt=y0(a,E,z,b===Ul?x:-x,(lt.diameter+ut.diameter)/2+tt),x+=b===Ul?lt:-lt}}function Kp(a,y,x,b){var E=a.lc,z=a.me,tt=a.Jp;x=x*Math.PI/180;for(var rt=y.length,ot=0;ot<rt;ot++){var lt=y.M(ot);lt.centerX=E*Math.cos(x),lt.centerY=z*Math.sin(x),lt.actualAngle=180*x/Math.PI,lt=y0(a,E,z,b===Ul?x:-x,tt),x+=b===Ul?lt:-lt}}function T1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Vp,360>x){for(z=b+(E===Ul?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,B1(a,y,x,b,E)}else D1(a,y,x,b,E);a.Xr.commit(y)}function D1(a,y,x,b,E){var z=a.lc,tt=a.Ti,rt=a.Zm,ot=z*Math.cos(b*Math.PI/180),lt=a.me*Math.sin(b*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=Vt.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=ot,ut[ft].centerY=lt,!(ft>=ut.length-1));ft++)O1(a,ot,lt,ut,ft,E,z)||I1(a,ot,lt,ut,ft,E,z),ot=z.x,lt=z.y;if(Vt.free(z),a.mj++,!(23<a.mj)){ot=ut[0].centerX,lt=ut[0].centerY,z=ut[ut.length-1].centerX,ft=ut[ut.length-1].centerY;var yt=Math.abs(ot-z)-((ut[0].width+ut[ut.length-1].width)/2+tt),Ct=Math.abs(lt-ft)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(Ct)?Math.abs(ot-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<Ct?Ct:1>Math.abs(yt)?0:yt,ot=Math.abs(z)>Math.abs(ft)?0<z!=lt>ft:0<ft!=ot<z,(ot=E===Ul?ot:!ot)&&(tt=-Math.abs(tt),tt=Math.min(tt,-ut[ut.length-1].width),tt=Math.min(tt,-ut[ut.length-1].height)),a.Xr.compare(tt,ut),1<Math.abs(tt)&&(a.lc=8>a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10<tt?a.lc/2:a.lc-(0<tt?1.7:-2.3),a.me=a.lc*rt,D1(a,y,x,b,E))}}}function B1(a,y,x,b,E){for(var z=a.lc,tt=a.me,rt=a.Zm,ot=z*Math.cos(b*Math.PI/180),lt=tt*Math.sin(b*Math.PI/180),ut=Vt.alloc(),ft=y.Fa(),yt=0;yt<ft.length&&(ft[yt].centerX=ot,ft[yt].centerY=lt,!(yt>=ft.length-1));yt++)O1(a,ot,lt,ft,yt,E,ut)||I1(a,ot,lt,ft,yt,E,ut),ot=ut.x,lt=ut.y;if(Vt.free(ut),a.mj++,!(23<a.mj)){if(ot=Math.atan2(lt,ot),ot=E===Ul?a.gt-ot:ot-a.gt,ot=Math.abs(ot)<Math.abs(ot-2*Math.PI)?ot:ot-2*Math.PI,z=ot*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],ot=0;ot<ft.length;ot++)tt.mk[ot]=ft[ot].bounds.x,tt.tm[ot]=ft[ot].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*rt,B1(a,y,x,b,E))}}function O1(a,y,x,b,E,z,tt){var rt=a.lc,ot=a.me,lt=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===Ul)){if(z=y+a,z>rt){if(z=y-a,z<-rt)return tt.x=z,tt.y=lt,!1;ut=!0}}else if(z=y-a,z<-rt){if(z=y+a,z>rt)return tt.x=z,tt.y=lt,!1;ut=!0}return lt=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>x!==ut&&(lt=-lt),Math.abs(x-lt)>(b[E].height+b[E+1].height)/2?(tt.x=z,tt.y=lt,!1):(tt.x=z,tt.y=lt,!0)}function I1(a,y,x,b,E,z,tt){var rt=a.lc,ot=a.me,lt=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Ul)){if(z=x-a,z<-ot){if(z=x+a,z>ot){tt.x=lt,tt.y=z;return}b=!0}}else if(z=x+a,z>ot){if(z=x-a,z<-ot){tt.x=lt,tt.y=z;return}b=!0}lt=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>y!==b&&(lt=-lt),tt.x=lt,tt.y=z}Za.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Za.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 Vt(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))},Za.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var tt=0,rt=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),ot=0,lt=0;lt<=z;lt++){b!==void 0&&E!==void 0?ot=b+lt*E/z:ot=lt*Math.PI/(2*z);var ut=Math.sin(ot);tt+=Math.sqrt(1-a*a*ut*ut)*rt}return b!==void 0&&E!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}function v0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?fy(a,1,x,b,E):fy(a,1,x))}function y0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var rt=0;;rt++){var ot=Math.sin(b+rt*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*ot*ot)*a,tt>=E)return rt*a}}Za.prototype.sort=function(a){switch(this.sorting){case S0:break;case x0:a.reverse();break;case w0:a.sort(this.comparer);break;case P0:a.sort(this.comparer),a.reverse();break;case Kg:return this.ak(Dx(a));default:ue("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new bn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var tt=0;tt<a.length;tt++){var rt=a.M(tt).edgesCount;rt>E&&(E=rt,z=tt)}else for(tt=0;tt<a.length;tt++)rt=y[tt],rt>E&&(E=rt,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)E=a.indexOf(tt.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}Za.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 tt=[],rt=[];b=[],E=new bn;for(var ot=0,lt=0;lt<y.length;lt++){var ut=y[lt].length;if(ut===1)b.push(lt);else if(ut===0)E.add(a.M(lt));else{if(ot===0)x.push(lt);else{for(var ft=ut=1/0,yt=-1,Ct=[],bt=0;bt<x.length;bt++)0>y[x[bt]].indexOf(x[bt===x.length-1?0:bt+1])&&Ct.push(bt===x.length-1?0:bt+1);if(Ct.length===0)for(bt=0;bt<x.length;bt++)Ct.push(bt);for(bt=0;bt<Ct.length;bt++){for(var Dt=Ct[bt],qt=y[lt],Wt=0,ae=0;ae<tt.length;ae++){var le=z[tt[ae]],ge=z[rt[ae]];if(le<ge){var be=le;le=ge}else be=ge;if(be<Dt&&Dt<=le)for(ge=0;ge<qt.length;ge++){var Je=qt[ge];0>x.indexOf(Je)||be<z[Je]&&z[Je]<le||be===z[Je]||le===z[Je]||Wt++}else for(ge=0;ge<qt.length;ge++)Je=qt[ge],0>x.indexOf(Je)||be<z[Je]&&z[Je]<le&&be!==z[Je]&&le!==z[Je]&&Wt++}for(qt=Wt,ae=Wt=0;ae<y[lt].length;ae++)be=x.indexOf(y[lt][ae]),0<=be&&(be=Math.abs(Dt-(be>=Dt?be+1:be)),Wt+=be<x.length+1-be?be:x.length+1-be);for(ae=0;ae<tt.length;ae++)be=z[tt[ae]],le=z[rt[ae]],be>=Dt&&be++,le>=Dt&&le++,be>le&&(ge=le,le=be,be=ge),le-be<(x.length+2)/2==(be<Dt&&Dt<=le)&&Wt++;(qt<ut||qt===ut&&Wt<ft)&&(ut=qt,ft=Wt,yt=Dt)}for(x.splice(yt,0,lt),ut=0;ut<x.length;ut++)z[x[ut]]=ut;for(ut=0;ut<y[lt].length;ut++)ft=y[lt][ut],0<=x.indexOf(ft)&&(tt.push(lt),rt.push(ft))}ot++}}for(tt=x.length;;){for(z=!0,rt=0;rt<b.length;rt++)if(ot=b[rt],lt=y[ot][0],ut=x.indexOf(lt),0<=ut){for(yt=ft=0;yt<y[lt].length;yt++)Ct=x.indexOf(y[lt][yt]),0>Ct||Ct===ut||(bt=Ct>ut?Ct-ut:ut-Ct,ft+=Ct<ut!=bt>tt-bt?1:-1);x.splice(0>ft?ut:ut+1,0,ot),b.splice(rt,1),rt--}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},Jt.Object.defineProperties(Za.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Fh&&a!==kh&&a!==Qc&&a!==bc||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Ul&&a!==$c&&a!==Tf&&a!==Gg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==S0&&a!==x0&&a!==w0&&!P0&&a!==Kg||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==C0&&a!==og||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var kh=new sn(Za,"ConstantSpacing",0),Qc=new sn(Za,"ConstantDistance",1),bc=new sn(Za,"ConstantAngle",2),Fh=new sn(Za,"Packed",3),Ul=new sn(Za,"Clockwise",4),$c=new sn(Za,"Counterclockwise",5),Tf=new sn(Za,"BidirectionalLeft",6),Gg=new sn(Za,"BidirectionalRight",7),S0=new sn(Za,"Forwards",8),x0=new sn(Za,"Reverse",9),w0=new sn(Za,"Ascending",10),P0=new sn(Za,"Descending",11),Kg=new sn(Za,"Optimized",12),C0=new sn(Za,"Pythagorean",13),og=new sn(Za,"Circular",14);Za.className="CircularLayout",Za.ConstantSpacing=kh,Za.ConstantDistance=Qc,Za.ConstantAngle=bc,Za.Packed=Fh,Za.Clockwise=Ul,Za.Counterclockwise=$c,Za.BidirectionalLeft=Tf,Za.BidirectionalRight=Gg,Za.Forwards=S0,Za.Reverse=x0,Za.Ascending=w0,Za.Descending=P0,Za.Optimized=Kg,Za.Pythagorean=C0,Za.Circular=og;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Vp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Vp.className="VertexArrangement";function Vg(a){ua.call(this,a)}Qe(Vg,ua),Vg.prototype.createVertex=function(){return new Yp(this)},Vg.prototype.createEdge=function(){return new b0(this)},Vg.className="CircularNetwork";function Yp(a){zs.call(this,a),this.u=this.Si=NaN}Qe(Yp,zs);function qc(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Fh)if(x.nodeDiameterFormula===og)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===og?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Jt.Object.defineProperties(Yp.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Yp.className="CircularVertex";function b0(a){Mu.call(this,a)}Qe(b0,Mu),b0.className="CircularEdge";function pl(a){Fa.call(this),this.ah=null,this.An=0,this.$d=new ri(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(pl,Fa),pl.prototype.cloneProtected=function(a){Fa.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},pl.prototype.createNetwork=function(){return new ag(this)},pl.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}R1(this,0,a)}this.network=y;var tt=b=x.iterator;b=this.arrangementSpacing;var rt=tt.count,ot=!0;z=E=0;for(var lt=dn(),ut=0;ut<rt+y.vertexes.count+2;ut++)lt[ut]=null;rt=0,tt.reset();for(var ft=fn.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,ft),ot)ot=!1,E=ft.x+ft.width/2,z=ft.y+ft.height/2,lt[0]=new Vt(ft.x+ft.width+b.width,ft.y),lt[1]=new Vt(ft.x,ft.y+ft.height+b.height),rt=2;else{var yt=z1(lt,rt,E,z,ft.width,ft.height,b),Ct=lt[yt],bt=new Vt(Ct.x+ft.width+b.width,Ct.y),Dt=new Vt(Ct.x,Ct.y+ft.height+b.height);for(yt+1<rt&&lt.splice(yt+1,0,null),lt[yt]=bt,lt[yt+1]=Dt,rt++,yt=Ct.x-ft.x,Ct=Ct.y-ft.y,ut=ut.vertexes.iterator;ut.next();)bt=ut.value,bt.centerX+=yt,bt.centerY+=Ct}for(fn.free(ft),ut=y.vertexes.iterator;ut.next();)tt=ut.value,yt=tt.bounds,2>rt?(E=yt.x+yt.width/2,z=yt.y+yt.height/2,lt[0]=new Vt(yt.x+yt.width+b.width,yt.y),lt[1]=new Vt(yt.x,yt.y+yt.height+b.height),rt=2):(ot=z1(lt,rt,E,z,yt.width,yt.height,b),ft=lt[ot],Ct=new Vt(ft.x+yt.width+b.width,ft.y),yt=new Vt(ft.x,ft.y+yt.height+b.height),ot+1<rt&&lt.splice(ot+1,0,null),lt[ot]=Ct,lt[ot+1]=yt,rt++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for(kn(lt),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}H1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},pl.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},pl.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function R1(a,y,x){if(Bx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ox(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,R1(a,y+1,x),H1(a,z),Ix(a,E),y=E.vertexes.Fa(),y.sort(function(tt,rt){return tt===null||rt===null||tt===rt?0:rt.Vd-tt.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=b}}function Bx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Ox(a,y){for(var x=a.network,b=new ag(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var tt=new W1;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new bn),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var rt=z.value;E=rt.fromVertex,tt=rt.toVertex,E.network===b&&tt.network===b?b.Bo(rt):E.network===b?(rt=E.Hj,rt===null&&(rt=new bn,E.Hj=rt),rt.add(tt),E.Vd--,E.sh+=tt.sh):tt.network===b&&(rt=tt.Hj,rt===null&&(rt=new bn,tt.Hj=rt),rt.add(E),tt.Vd--,tt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Ae.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var ot=E.Hj;if(ot!==null&&0<ot.count&&(tt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=tt))){for(var lt=rt=0,ut=ot.count-tt;ut<ot.count;ut++){var ft=ot.M(ut),yt=null;for(z=ft.edges.iterator;z.next();){var Ct=z.value;if(Ct.Ax(ft)===E){yt=Ct;break}}yt!==null&&(lt+=yt.length,rt+=ft.width*ft.height)}z=E.centerX,ot=E.centerY,ut=E.width,ft=E.height,yt=E.focus,Ct=ut*ft,1>Ct&&(Ct=1),rt=Ae.sqrt((rt+Ct+lt*lt*4/(tt*tt))/Ct),tt=(rt-1)*ut/2,rt=(rt-1)*ft/2,E.bounds=new fn(z-yt.x-tt,ot-yt.y-rt,ut+2*tt,ft+2*rt),E.focus=new Vt(yt.x+tt,yt.y+rt)}}return a.network=b,x}function Ix(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,tt=E.Tv;b.bounds=new fn(b.centerX-z,b.centerY-tt,E.Ss,E.Qs),b.focus=new Vt(z,tt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,tt=y.height;y.We!==null&&0<y.We.count&&(tt=y.We.M(0),z=tt.Ss,tt=tt.Qs),z=Ae.sqrt(z*z+tt*tt)/2;for(var rt=!1,ot=tt=0,lt=0,ut=y.vertexes.iterator;ut.next();){var ft=ut.value;1>=ft.Vd?ot++:(rt=!0,lt++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(ot!==0){for(0<lt&&(tt/=lt),lt=y=0,y=rt?2*Math.PI/(ot+1):2*Math.PI/ot,ot%2===0&&(lt=y/2),1<x.count&&x.sort(function(Ct,bt){return Ct===null||bt===null||Ct===bt?0:bt.width*bt.height-Ct.width*Ct.height}),rt=ot%2===0?0:1,x=x.iterator;x.next();)if(ot=x.value,!(1<ot.Vd||a.isFixed(ot))){for(ut=null,ft=ot.edges.iterator;ft.next();){ut=ft.value;break}ft=ot.width;var yt=ot.height;ft=Ae.sqrt(ft*ft+yt*yt)/2,ut=z+ut.length+ft,ft=tt+(y*(rt/2>>1)+lt)*(rt%2===0?1:-1),ot.centerX=b+ut*Math.cos(ft),ot.centerY=E+ut*Math.sin(ft),rt++}}}}function z1(a,y,x,b,E,z,tt){var rt=9e19,ot=-1,lt=0;t:for(;lt<y;lt++){var ut=a[lt],ft=ut.x-x,yt=ut.y-b;if(ft=ft*ft+yt*yt,ft<rt){for(yt=lt-1;0<=yt;yt--)if(a[yt].y>ut.y&&a[yt].x-ut.x<E+tt.width)continue t;for(yt=lt+1;yt<y;yt++)if(a[yt].x>ut.x&&a[yt].y-ut.y<z+tt.height)continue t;ot=lt,rt=ft}}return ot}pl.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},pl.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function j1(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var rt=z.width;return z=z.height,b+E<tt?a>y+z?(x=b+E-tt,a=a-y-z,Ae.sqrt(x*x+a*a)):a+x<y?(b=b+E-tt,a=a+x-y,Ae.sqrt(b*b+a*a)):tt-(b+E):b>tt+rt?a>y+z?(x=b-tt-rt,a=a-y-z,Ae.sqrt(x*x+a*a)):a+x<y?(b=b-tt-rt,a=a+x-y,Ae.sqrt(b*b+a*a)):b-(tt+rt):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function H1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,zx(a)););a.ah=null}function zx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,tt=1;tt<y.length;tt++){var rt=y[tt];rt.forceX=0,rt.forceY=0;var ot=rt.centerX;rt=rt.centerY,b=Math.min(b,ot),E=Math.max(E,ot),x=Math.min(x,rt),z=Math.max(z,rt)}(E=E-b>z-x)?y.sort(function(Dt,qt){return Dt===null||qt===null||Dt===qt?0:Dt.centerX-qt.centerX}):y.sort(function(Dt,qt){return Dt===null||qt===null||Dt===qt?0:Dt.centerY-qt.centerY}),x=a.Zf;var lt=b=rt=0;for(z=0;z<y.length;z++){tt=y[z],b=tt.bounds,rt=tt.focus,ot=b.x+rt.x;var ut=b.y+rt.y;b=tt.charge*a.electricalFieldX(ot,ut),lt=tt.charge*a.electricalFieldY(ot,ut),b+=tt.mass*a.gravitationalFieldX(ot,ut),lt+=tt.mass*a.gravitationalFieldY(ot,ut),tt.forceX+=b,tt.forceY+=lt;for(var ft=z+1;ft<y.length;ft++){var yt=y[ft];if(yt!==tt){b=yt.bounds,rt=yt.focus,lt=b.x+rt.x;var Ct=b.y+rt.y;if(ot-lt>x||lt-ot>x){if(E)break}else if(ut-Ct>x||Ct-ut>x){if(!E)break}else{var bt=j1(tt,yt);1>bt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new E0),bt=b.random(),rt=b.random(),ot>lt?(b=Math.abs(yt.bounds.right-tt.bounds.x),b=(1+b)*bt):ot<lt?(b=Math.abs(yt.bounds.x-tt.bounds.right),b=-(1+b)*bt):(b=Math.max(yt.width,tt.width),b=(1+b)*bt-b/2),ut>Ct?(lt=Math.abs(yt.bounds.bottom-tt.bounds.y),lt=(1+lt)*rt):ot<lt?(lt=Math.abs(yt.bounds.y-tt.bounds.bottom),lt=-(1+lt)*rt):(lt=Math.max(yt.height,tt.height),lt=(1+lt)*rt-lt/2)):(rt=-(tt.charge*yt.charge)/(bt*bt),b=(lt-ot)/bt*rt,lt=(Ct-ut)/bt*rt),tt.forceX+=b,tt.forceY+=lt,yt.forceX-=b,yt.forceY-=lt}}}}for(E=a.network.edges.iterator;E.next();)rt=E.value,x=rt.fromVertex,z=rt.toVertex,tt=x.bounds,ot=x.focus,b=tt.x+ot.x,tt=tt.y+ot.y,ut=z.bounds,ft=z.focus,ot=ut.x+ft.x,ut=ut.y+ft.y,ft=j1(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new E0),rt=ft.random(),ft=ft.random(),b=(b>ot?1:-1)*(1+(z.width>x.width?z.width:x.width))*rt,lt=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(rt=rt.stiffness*(ft-rt.length),b=(ot-b)/ft*rt,lt=(ut-tt)/ft*rt),x.forceX+=b,x.forceY+=lt,z.forceX-=b,z.forceY-=lt;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}pl.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},pl.prototype.moveFixedVertex=function(){},pl.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},pl.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Bo,y.toSpot=Bo)}},pl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=fn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,fn.free(x)}x=fn.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()}fn.free(x)},pl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},pl.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},pl.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},pl.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},pl.prototype.electricalFieldX=function(){return 0},pl.prototype.electricalFieldY=function(){return 0},pl.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},pl.prototype.gravitationalFieldX=function(){return 0},pl.prototype.gravitationalFieldY=function(){return 0},pl.prototype.isFixed=function(a){return a.isFixed},Jt.Object.defineProperties(pl.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&ue('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),pl.className="ForceDirectedLayout";function W1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}W1.className="ForceDirectedSubnet";function ag(a){ua.call(this,a)}Qe(ag,ua),ag.prototype.createVertex=function(){return new Up(this)},ag.prototype.createEdge=function(){return new Xp(this)},ag.className="ForceDirectedNetwork";function Up(a){zs.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Qe(Up,zs),Jt.Object.defineProperties(Up.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Up.className="ForceDirectedVertex";function Xp(a){Mu.call(this,a),this.j=this.o=NaN}Qe(Xp,Mu),Jt.Object.defineProperties(Xp.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Xp.className="ForceDirectedEdge";function E0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}E0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},E0.className="RandomNumberGenerator";function Vo(a){Fa.call(this),this.kc=this.ie=25,this.K=0,this.Dk=F0,this.Zk=N0,this.Qk=T0,this.bj=4,this.rk=D0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Vt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Qe(Vo,Fa),Vo.prototype.cloneProtected=function(a){Fa.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Vo.prototype.qb=function(a){a.classType===Vo?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:ue("Unknown enum value: "+a):Fa.prototype.qb.call(this,a)},Vo.prototype.createNetwork=function(){return new Ug(this)},Vo.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Qp&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Qp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var tt=0,rt=0,ot=0,lt=0;if(b.link!==null){if(rt=b.link,rt===null)continue;var ut=E.node;if(tt=z.node,ut===null||tt===null)continue;var ft=rt.fromNode;ot=rt.toNode;for(var yt=rt.fromPort;yt!==null&&!yt.Ed();)yt=yt.panel;for(rt=rt.toPort;rt!==null&&!rt.Ed();)rt=rt.panel;if(b.rev){lt=ft;var Ct=yt;ft=ot,yt=rt,ot=lt,rt=Ct}var bt=E.focus;lt=z.focus;var Dt=b.rev?z.bounds:E.bounds;Ct=Vt.alloc(),ut!==ft?Dt.w()&&ft.isVisible()?ft.actualBounds.w()?(Sc(ft,yt,so,Ct),Ct.x+=ft.actualBounds.x-Dt.x,Ct.y+=ft.actualBounds.y-Dt.y):(Sc(ft,yt,so,Ct),Ct.w()||Ct.assign(bt)):Ct.assign(bt):Dt.w()?(Sc(ft,yt,so,Ct),Ct.w()||Ct.assign(bt)):Ct.assign(bt),ft=b.rev?E.bounds:z.bounds,ut=Vt.alloc(),tt!==ot?ft.w()&&ot.isVisible()?ot.actualBounds.w()?(Sc(ot,rt,so,ut),ut.x+=ot.actualBounds.x-ft.x,ut.y+=ot.actualBounds.y-ft.y):(Sc(ot,rt,so,ut),ut.w()||ut.assign(lt)):ut.assign(lt):ft.w()?(Sc(ot,rt,so,ut),ut.w()||ut.assign(lt)):ut.assign(lt),this.K===90||this.K===270?(tt=Math.round((Ct.x-bt.x)/this.kc),ot=Ct.x,rt=Math.round((ut.x-lt.x)/this.kc),lt=ut.x):(tt=Math.round((Ct.y-bt.y)/this.kc),ot=Ct.y,rt=Math.round((ut.y-lt.y)/this.kc),lt=ut.y),Vt.free(Ct),Vt.free(ut),b.portFromColOffset=tt,b.portFromPos=ot,b.portToColOffset=rt,b.portToPos=lt}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Ct=E.layer,ut=z.layer,ft=0,Dt=b.link,Dt!==null){var qt=Dt.fromPort,Wt=Dt.toPort;if(qt!==null&&Wt!==null){var ae=Dt.fromNode;if(yt=Dt.toNode,ae!==null&&yt!==null){var le=k0(this,!0),ge=k0(this,!1),be=this.setsPortSpots?le:Dt.computeSpot(!0,qt);bt=this.setsPortSpots?ge:Dt.computeSpot(!1,Wt);var Je=Dt.isOrthogonal;be.$c()&&be.Hf(ge)&&bt.$c()&&bt.Hf(le)?ft=0:(le=Dt.getLinkPoint(ae,qt,be,!0,Je,yt,Wt,Vt.alloc()),ge=Dt.getLinkDirection(ae,qt,le,be,!0,Je,yt,Wt),Vt.free(le),be.ys()||ge!==Q1(this,b,!0)?this.setsPortSpots&&ae!==null&&ae.ports.count===1&&b.rev&&(ft+=1):ft+=1,be=Dt.getLinkPoint(yt,Wt,bt,!1,Je,ae,qt,Vt.alloc()),Dt=Dt.getLinkDirection(yt,Wt,be,bt,!1,Je,ae,qt),Vt.free(be),bt.ys()||Dt!==Q1(this,b,!1)?this.setsPortSpots&&yt!==null&&yt.ports.count===1&&b.rev&&(ft+=2):ft+=2)}}}if(yt=ft,ft=yt===1||yt===3,(yt=yt===2||yt===3)&&(bt=a.createVertex(),bt.node=null,bt.Dj=1,bt.layer=Ct,bt.near=E,a.dh(bt),E=a.Zj(E,bt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=tt,E.portToColOffset=0,E.portFromPos=ot,E.portToPos=0,E=bt),Dt=1,ft&&Dt--,Ct-ut>Dt&&0<Ct){for(b.valid=!1,bt=a.createVertex(),bt.node=null,bt.Dj=2,bt.layer=Ct-1,a.dh(bt),E=a.Zj(E,bt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=yt?0:tt,E.portToColOffset=0,E.portFromPos=yt?0:ot,E.portToPos=0,E=bt,Ct--;Ct-ut>Dt&&0<Ct;)bt=a.createVertex(),bt.node=null,bt.Dj=3,bt.layer=Ct-1,a.dh(bt),E=a.Zj(E,bt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=bt,Ct--;E=a.Zj(bt,z,b.link),E.valid=!ft,ft&&(bt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=rt,E.portFromPos=0,E.portToPos=lt}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=_c(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),tf(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Vo.prototype.linkMinLength=function(){return 1};function gy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Vo.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},Vo.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function au(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 _u(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function Z1(a,y,x){var b=_c(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<E;tt++){var rt=0,ot=b[tt],lt=ot.near;if(lt!==null&&lt.layer===ot.layer)if(ot=lt.index,ot>tt)for(var ut=tt+1;ut<ot;ut++){var ft=b[ut];ft.near===lt&&ft.Dj===lt.Dj||rt++}else for(ut=tt-1;ut>ot;ut--)ft=b[ut],ft.near===lt&&ft.Dj===lt.Dj||rt++;var yt;if(0<=x)for(ot=b[tt].sourceEdgesArrayAccess,lt=0;lt<ot.length;lt++){var Ct=ot[lt];if(Ct.valid&&Ct.fromVertex.layer!==y)for(ft=Ct.fromVertex.index,ut=Ct.portToPos,Ct=Ct.portFromPos,yt=lt+1;yt<ot.length;yt++){var bt=ot[yt];if(bt.valid&&bt.fromVertex.layer!==y){var Dt=bt.fromVertex.index,qt=bt.portToPos;bt=bt.portFromPos,ut<qt&&(ft>Dt||ft===Dt&&Ct>bt)&&rt++,qt<ut&&(Dt>ft||Dt===ft&&bt>Ct)&&rt++}}}if(0>=x){for(ot=b[tt].destinationEdgesArrayAccess,lt=0;lt<ot.length;lt++)if(Ct=ot[lt],Ct.valid&&Ct.toVertex.layer!==y)for(ft=Ct.toVertex.index,ut=Ct.portToPos,Ct=Ct.portFromPos,yt=lt+1;yt<ot.length;yt++)bt=ot[yt],bt.valid&&bt.toVertex.layer!==y&&(Dt=bt.toVertex.index,qt=bt.portToPos,bt=bt.portFromPos,Ct<bt&&(ft>Dt||ft===Dt&&ut>qt)&&rt++,bt<Ct&&(Dt>ft||Dt===ft&&qt>ut)&&rt++)}for(z[tt*E+tt]=rt,ot=tt+1;ot<E;ot++){var Wt=0,ae=0;if(0<=x){rt=b[tt].sourceEdgesArrayAccess;var le=b[ot].sourceEdgesArrayAccess;for(lt=0;lt<rt.length;lt++)if(Ct=rt[lt],Ct.valid&&Ct.fromVertex.layer!==y)for(ft=Ct.fromVertex.index,Ct=Ct.portFromPos,yt=0;yt<le.length;yt++)bt=le[yt],bt.valid&&bt.fromVertex.layer!==y&&(Dt=bt.fromVertex.index,bt=bt.portFromPos,(ft<Dt||ft===Dt&&Ct<bt)&&ae++,(Dt<ft||Dt===ft&&bt<Ct)&&Wt++)}if(0>=x){for(rt=b[tt].destinationEdgesArrayAccess,le=b[ot].destinationEdgesArrayAccess,lt=0;lt<rt.length;lt++)if(Ct=rt[lt],Ct.valid&&Ct.toVertex.layer!==y)for(ft=Ct.toVertex.index,ut=Ct.portToPos,yt=0;yt<le.length;yt++)bt=le[yt],bt.valid&&bt.toVertex.layer!==y&&(Dt=bt.toVertex.index,qt=bt.portToPos,(ft<Dt||ft===Dt&&ut<qt)&&ae++,(Dt<ft||Dt===ft&&qt<ut)&&Wt++)}z[tt*E+ot]=Wt,z[ot*E+tt]=ae}}return tf(a,y,b),z}Vo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Z1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function L0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=_c(b,E),tt=b.tc[E],rt=0,ot=0;ot<tt;ot++){var lt=z[ot].destinationEdgesArrayAccess;if(lt!==null)for(var ut=0;ut<lt.length;ut++){var ft=lt[ut];if(ft.valid&&ft.toVertex.layer!==E){var yt=ft.fromVertex.column+ft.portFromColOffset,Ct=ft.toVertex.column+ft.portToColOffset;rt+=(Math.abs(yt-Ct)+1)*gy(ft)}}}tf(b,E,z),y+=rt}return y}Vo.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function py(a,y,x){for(var b=_c(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ut=0,ft=0,yt=rt.near;if(yt!==null&&yt.layer===rt.layer&&(ut+=yt.column-1,ft++),ot!==null)for(yt=0;yt<ot.length;yt++){rt=ot[yt];var Ct=rt.fromVertex;rt.valid&&!rt.rev&&Ct.layer!==y&&(ut+=Ct.column,ft++)}if(lt!==null)for(ot=0;ot<lt.length;ot++)rt=lt[ot],yt=rt.toVertex,rt.valid&&!rt.rev&&yt.layer!==y&&(ut+=yt.column,ft++);z[tt]=ft===0?-1:ut/ft}return tf(a,y,b),z}function G1(a,y,x){for(var b=_c(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var rt=b[tt],ot=null;0>=x&&(ot=rt.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=rt.destinationEdgesArrayAccess);var ut=0,ft=[],yt=rt.near;if(yt!==null&&yt.layer===rt.layer&&(ft[ut]=yt.column-1,ut++),rt=void 0,ot!==null)for(yt=0;yt<ot.length;yt++){rt=ot[yt];var Ct=rt.fromVertex;rt.valid&&!rt.rev&&Ct.layer!==y&&(ft[ut]=Ct.column+rt.portFromColOffset,ut++)}if(lt!==null)for(ot=0;ot<lt.length;ot++)rt=lt[ot],yt=rt.toVertex,rt.valid&&!rt.rev&&yt.layer!==y&&(ft[ut]=yt.column+rt.portToColOffset,ut++);ut===0?z[tt]=-1:(ft.sort(function(bt,Dt){return bt-Dt}),lt=ut>>1,z[tt]=ut&1?ft[lt]:ft[lt-1]+ft[lt]>>1)}return tf(a,y,b),z}function Jp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();){var rt=tt.value,ot=rt.toVertex,lt=y.layer-ot.layer;rt=a.linkMinLength(rt),lt===rt&&Jp(a,ot,x,b,E,z)}if(z)for(tt=y.sourceEdges;tt.next();)rt=tt.value,ot=rt.fromVertex,lt=ot.layer-y.layer,rt=a.linkMinLength(rt),lt===rt&&Jp(a,ot,x,b,E,z)}}function my(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,b,E,z)}}Vo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;jx(a)!==null;){for(E=K1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=K1(a);for(E=V1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=V1(a);E=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var rt=tt.value;if(rt.valid){for(var ot=0,lt=rt.destinationEdges;lt.next();)lt.value.toVertex.valid&&ot++;lt=0;for(var ut=rt.sourceEdges;ut.next();)ut.value.fromVertex.valid&&lt++;(E===null||z<ot-lt)&&(E=rt,z=ot-lt)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case F0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&vy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&vy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case Qp:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function K1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function V1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function vy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,vy(a,E))}y.finish=a.Kn,a.Kn++}Vo.prototype.assignLayers=function(){switch(this.Zk){case xy:Y1(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=X1(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case N0:for(Y1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&J1(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function Y1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=U1(a,y.value);a.Ia=Math.max(x,a.Ia)}}function U1(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,U1(a,z)+E)}y.layer=x}else x=y.layer;return x}function X1(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,X1(a,z)+E)}y.layer=x}else x=y.layer;return x}function J1(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)J1(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var tt=b[z],rt=tt.fromVertex,ot=tt.toVertex;tt=a.linkMinLength(tt),rt.layer-ot.layer>tt&&Jp(a,rt,0,-1,!0,!1)}for(Jp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,rt=0,ot=null,tt=a.network.vertexes.iterator;tt.next();){var lt=tt.value;if(lt.component===1){var ut=0,ft=!1,yt=lt.sourceEdgesArrayAccess;E=yt.length;for(var Ct=0;Ct<E;Ct++){var bt=yt[Ct],Dt=bt.fromVertex;ut+=1,Dt.component!==1&&(z+=1,Dt=Dt.layer-lt.layer,bt=a.linkMinLength(bt),b=Math.min(b,Dt-bt))}for(yt=lt.destinationEdgesArrayAccess,E=yt.length,Ct=0;Ct<E;Ct++)bt=yt[Ct].toVertex,--ut,bt.component!==1?--z:ft=!0;(ot===null||ut<rt)&&!ft&&(ot=lt,rt=ut)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else ot.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Jp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,rt=null,ot=a.network.vertexes.iterator;ot.next();)if(tt=ot.value,tt.component===1){for(lt=0,ut=!1,yt=tt.sourceEdgesArrayAccess,ft=yt.length,Ct=0;Ct<ft;Ct++)bt=yt[Ct].fromVertex,lt+=1,bt.component!==1?b+=1:ut=!0;for(yt=tt.destinationEdgesArrayAccess,ft=yt.length,Ct=0;Ct<ft;Ct++)bt=yt[Ct],Dt=bt.toVertex,--lt,Dt.component!==1&&(--b,Dt=tt.layer-Dt.layer,bt=a.linkMinLength(bt),E=Math.min(E,Dt-bt));(rt===null||lt>z)&&!ut&&(rt=tt,z=lt)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else rt.component=0}}}function Q1(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Vo.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case T0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&$1(this,x);break;case Py:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&q1(this,x)}};function $1(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&$1(a,b))}function q1(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&q1(a,b))}Vo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=au(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,1),fh(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=au(this)),b=this.Ia;0<=b;b--)M0(this,b,-1),fh(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=au(this))}for(_u(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)M0(this,b,0),fh(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=au(this)),b=this.Ia;0<=b;b--)M0(this,b,0),fh(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=au(this))}_u(this,y);var z,tt,rt;switch(this.rk){case by:break;case Ey:for(rt=a+1;(b=this.countCrossings())<rt;)for(rt=b,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=fh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=fh(this,b,1)||z;for(E=this.countCrossings(),E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=fh(this,b,1)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=fh(this,b,-1)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=fh(this,b,0)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=fh(this,b,0)||z;E>=a?_u(this,y):(a=E,y=au(this))}break;default:case D0:for(x=this.Ia,tt=0,rt=a+1;(b=this.countCrossings())<rt;){for(rt=b,z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=fh(this,b,-1)||z;for(E=this.countCrossings(),E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=fh(this,b,1)||z;for(E=this.countCrossings(),E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=fh(this,b,1)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=fh(this,b,-1)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=fh(this,b,0)||z;for(E>=a?_u(this,y):(a=E,y=au(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=fh(this,b,0)||z;E>=a?_u(this,y):(a=E,y=au(this))}}_u(this,y)};function M0(a,y,x){var b=_c(a,y),E=a.tc[y],z=G1(a,y,x),tt=py(a,y,x);for(x=0;x<E;x++)tt[x]===-1&&(tt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var rt=!0,ot;rt;)for(rt=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(rt=!0,ot=z[x],z[x]=z[x+1],z[x+1]=ot,ot=tt[x],tt[x]=tt[x+1],tt[x+1]=ot,ot=b[x],b[x]=b[x+1],b[x+1]=ot);for(x=z=0;x<E;x++)ot=b[x],ot.index=x,z+=a.nodeMinColumnSpace(ot,!0),ot.column=z,z+=1,z+=a.nodeMinColumnSpace(ot,!1);tf(a,y,b)}function fh(a,y,x){var b=_c(a,y),E=a.tc[y];x=Z1(a,y,x);var z,tt=[];for(z=0;z<E;z++)tt[z]=-1;var rt=[];for(z=0;z<E;z++)rt[z]=-1;for(var ot=!1,lt=!0;lt;)for(lt=!1,z=0;z<E-1;z++){var ut=x[b[z].index*E+b[z+1].index],ft=x[b[z+1].index*E+b[z].index],yt=0,Ct=0,bt=b[z].column,Dt=b[z+1].column,qt=a.nodeMinColumnSpace(b[z],!0),Wt=a.nodeMinColumnSpace(b[z],!1),ae=a.nodeMinColumnSpace(b[z+1],!0),le=a.nodeMinColumnSpace(b[z+1],!1);qt=bt-qt+ae,Wt=Dt-Wt+le;var ge=b[z].sourceEdges.iterator;for(ge.reset();ge.next();)if(ae=ge.value,le=ae.fromVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae<z&&(yt+=2*(z-ae),Ct+=2*(z+1-ae)),ae===z+1&&(yt+=1),ae>z+1&&(yt+=4*(ae-z),Ct+=4*(ae-(z+1)))}for(ge=b[z].destinationEdges.iterator,ge.reset();ge.next();)if(ae=ge.value,le=ae.toVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae===z+1&&(Ct+=1)}for(ge=b[z+1].sourceEdges.iterator,ge.reset();ge.next();)if(ae=ge.value,le=ae.fromVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae<z&&(yt+=2*(z+1-ae),Ct+=2*(z-ae)),ae===z&&(Ct+=1),ae>z+1&&(yt+=4*(ae-(z+1)),Ct+=4*(ae-z))}for(ge=b[z+1].destinationEdges.iterator,ge.reset();ge.next();)if(ae=ge.value,le=ae.toVertex,ae.valid&&le.layer===y){for(ae=0;b[ae]!==le;)ae++;ae===z&&(yt+=1)}ae=le=0,ge=tt[b[z].index];var be=rt[b[z].index],Je=tt[b[z+1].index],di=rt[b[z+1].index];ge!==-1&&(le+=Math.abs(ge-bt),ae+=Math.abs(ge-Wt)),be!==-1&&(le+=Math.abs(be-bt),ae+=Math.abs(be-Wt)),Je!==-1&&(le+=Math.abs(Je-Dt),ae+=Math.abs(Je-qt)),di!==-1&&(le+=Math.abs(di-Dt),ae+=Math.abs(di-qt)),(Ct<yt-.5||Ct===yt&&ft<ut-.5||Ct===yt&&ft===ut&&ae<le-.5)&&(lt=ot=!0,b[z].column=Wt,b[z+1].column=qt,ut=b[z],b[z]=b[z+1],b[z+1]=ut)}for(z=0;z<E;z++)b[z].index=z;return tf(a,y,b),ot}Vo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Ux)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Yg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,-1)||x;x=Yg(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&(_1(this,-1),_1(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Yg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Yg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Yg(this,y,0)||x}}else Gx(this)};function Yg(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=_c(a,y),z=a.tc[y],tt=py(a,y,-1);if(0<x)for(b=0;b<z;b++)tt[b]=-1;var rt=py(a,y,1);if(0>x)for(b=0;b<z;b++)rt[b]=-1;for(var ot=!1,lt=!0;lt;)for(lt=!1,b=0;b<z;b++){var ut=E[b].column,ft=a.nodeMinColumnSpace(E[b],!0),yt=a.nodeMinColumnSpace(E[b],!1),Ct=0;0>b-1||ut-E[b-1].column-1>ft+a.nodeMinColumnSpace(E[b-1],!1)?Ct=ut-1:Ct=ut,ft=b+1>=z||E[b+1].column-ut-1>yt+a.nodeMinColumnSpace(E[b+1],!0)?ut+1:ut;var bt=yt=0,Dt=0;if(0>=x)for(var qt=E[b].sourceEdges.iterator;qt.next();){var Wt=qt.value,ae=Wt.fromVertex;if(Wt.valid&&ae.layer!==y){var le=gy(Wt),ge=Wt.portFromColOffset;Wt=Wt.portToColOffset,ae=ae.column,yt+=(Math.abs(ut+Wt-(ae+ge))+1)*le,bt+=(Math.abs(Ct+Wt-(ae+ge))+1)*le,Dt+=(Math.abs(ft+Wt-(ae+ge))+1)*le}}if(0<=x)for(qt=E[b].destinationEdges.iterator;qt.next();)Wt=qt.value,ae=Wt.toVertex,Wt.valid&&ae.layer!==y&&(le=gy(Wt),ge=Wt.portFromColOffset,Wt=Wt.portToColOffset,ae=ae.column,yt+=(Math.abs(ut+ge-(ae+Wt))+1)*le,bt+=(Math.abs(Ct+ge-(ae+Wt))+1)*le,Dt+=(Math.abs(ft+ge-(ae+Wt))+1)*le);Wt=ge=le=0,qt=tt[E[b].index],ae=rt[E[b].index],qt!==-1&&(le+=Math.abs(qt-ut),ge+=Math.abs(qt-Ct),Wt+=Math.abs(qt-ft)),ae!==-1&&(le+=Math.abs(ae-ut),ge+=Math.abs(ae-Ct),Wt+=Math.abs(ae-ft)),bt<yt||bt===yt&&ge<le?(lt=ot=!0,E[b].column=Ct):(Dt<yt||Dt===yt&&Wt<le)&&(lt=ot=!0,E[b].column=ft)}return tf(a,y,E),a.normalize(),ot}function yy(a,y,x){var b=_c(a,y),E=a.tc[y],z=G1(a,y,x),tt=[];for(x=0;x<E;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var rt=b[x].column,ot=a.nodeMinColumnSpace(b[x],!0),lt=a.nodeMinColumnSpace(b[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===E-1)ut=rt;else if(x===0){var ft=b[x+1].column;ft-rt===lt+a.nodeMinColumnSpace(b[x+1],!0)?ut=rt-1:ut=rt}else x===E-1?(ft=b[x-1].column,ut=rt-ft===ot+a.nodeMinColumnSpace(b[x-1],!1)?rt+1:rt):(ft=b[x-1].column,ot=ft+a.nodeMinColumnSpace(b[x-1],!1)+ot+1,ft=b[x+1].column,lt=ft-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ut=(ot+lt)/2|0);else x===0&&x===E-1?ut=tt[x]:x===0?(ft=b[x+1].column,lt=ft-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ut=Math.min(tt[x],lt)):x===E-1?(ft=b[x-1].column,ot=ft+a.nodeMinColumnSpace(b[x-1],!1)+ot+1,ut=Math.max(tt[x],ot)):(ft=b[x-1].column,ot=ft+a.nodeMinColumnSpace(b[x-1],!1)+ot+1,ft=b[x+1].column,lt=ft-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ot<tt[x]&&tt[x]<lt?ut=tt[x]:ot>=tt[x]?ut=ot:lt<=tt[x]&&(ut=lt));ut!==rt&&(z=!0,b[x].column=ut)}tf(a,y,b),a.normalize()}function Wx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),tt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+tt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Zx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var tt=a.network.vertexes.iterator;tt.next();){b=tt.value;var rt=b.column-a.nodeMinColumnSpace(b,!0),ot=b.column+a.nodeMinColumnSpace(b,!1);rt<=y&&ot>=y&&(E[b.layer]=!0),rt<=x&&ot>=x&&(z[b.layer]=!0)}for(rt=!0,x=!1,b=0;b<=a.Ia;b++)rt=rt&&!(E[b]&&z[b]);if(rt)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function _1(a,y){for(var x=0;x<=a.Ra;x++)for(;Wx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Zx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=au(a),z=L0(a);for(b=z+1;z<b;){b=z,tx(a,x,1);var tt=L0(a);tt>z?_u(a,E):tt<z&&(z=tt,E=au(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=au(a),z=L0(a),b=z+1;z<b;)b=z,tx(a,x,-1),tt=L0(a),tt>z?_u(a,E):tt<z&&(z=tt,E=au(a));a.normalize()}function tx(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(my(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var tt=z.layer,rt=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),ot=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));rt<=ot;rt++)E[tt*(a.Ra+1)+rt]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt+1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt+1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt-1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt-1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(ot=tt[tt.length-1],tt.pop(),E[ot])for(E[ot]=!1,z=0;z<a.le;z++)y[ot*a.le+z]&&tt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Gx(a){for(var y=dn(),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 Mn,Kx(y,x);var z=null,tt=null,rt=null,ot=null,lt=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,yt=(a.ve&8)!==0;for(lt&&(a.verticalAlignment(y,x,!0),z=A0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),rt=A0(a,y,!1,!1)),b=mi(y),E=b.next();!E.done;E=b.next())E.value.reverse();yt&&(a.verticalAlignment(y,x,!1),ot=A0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=A0(a,y,!0,!0)),kn(y),a.u(z,tt,rt,ot),a.network.vertexes.each(function(Ct){var bt=dn();lt&&bt.push(z.get(Ct)),ut&&bt.push(tt.get(Ct)),ft&&bt.push(rt.get(Ct)),yt&&bt.push(ot.get(Ct)),bt.sort(function(qt,Wt){return qt-Wt});var Dt=bt.length;Dt=(bt[Math.floor((Dt-1)/2)]+bt[Math.ceil((Dt-1)/2)])/2,kn(bt),Ct.zc=Dt})}function Kx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,tt=a[b],rt=a[b+1],ot=0;z<rt.length;ot++){var lt=rt[ot];t:{if(lt.node===null){var ut=Ly(lt);if(0<ut.length){ut=ut[0].node===null;break t}}ut=!1}var ft=ut;if(ot===rt.length-1||ft){for(ut=tt.length-1,ft&&(ut=Ly(lt)[0].index);z<=ot;){if(lt=rt[z],!lt.bo){ft=[];for(var yt=mi(lt.sourceEdgesArrayAccess),Ct=yt.next();!Ct.done;Ct=yt.next())Ct=Ct.value,Ct.valid&&ft.push(Ct);lt.bo=ft}for(lt=mi(lt.bo),ft=lt.next();!ft.done;ft=lt.next())ft=ft.value,yt=ft.fromVertex.index,(yt<E||yt>ut)&&y.add(ft);z++}E=ut}}}Vo.prototype.verticalAlignment=function(a,y,x){Vx(a),a=mi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=mi(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var tt=x?Ly(z):Xx(z),rt=tt.length;if(0<rt){tt.sort(function(ft,yt){return ft.vi-yt.vi});var ot=(rt-1)/2;for(rt=Math.floor(ot),ot=Math.ceil(ot);rt<=ot;rt++)if(z.align===z){var lt=tt[rt],ut=void 0;ut=x?B0(lt,z):B0(z,lt),!y.contains(ut)&&E<lt.vi&&(lt.align=z,z.root=lt.root,z.align=lt.root,E=lt.vi)}}}}};function Vx(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function A0(a,y,x,b){for(var E=a.K===90||a.K===270,z=mi(y),tt=z.next();!tt.done;tt=z.next()){var rt=mi(tt.value);for(tt=rt.next();!tt.done;tt=rt.next())tt=tt.value,tt.sd=tt,tt.shift=1/0,tt.zc=NaN,tt.qg=0}for(tt=a.K===90||a.K===270,z=mi(y),rt=z.next();!rt.done;rt=z.next()){rt=mi(rt.value);for(var ot=rt.next();!ot.done;ot=rt.next())if(ot=ot.value,ot.root===ot){for(var lt=0,ut=ot;ut.align!==ot;){var ft=ut.align,yt=tt?ut.width:ut.height,Ct=tt?ft.width:ft.height;if(x){var bt=B0(ut,ft),Dt=bt.portFromPos,qt=bt.portToPos;bt.link!==null&&(ut.node&&ut.node!==bt.link.fromNode&&(Dt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==bt.link.toNode&&(qt=tt?ft.focusX:ft.focusY))}else bt=B0(ft,ut),Dt=bt.portToPos,qt=bt.portFromPos,bt.link!==null&&(ut.node&&ut.node!==bt.link.toNode&&(Dt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==bt.link.fromNode&&(qt=tt?ft.focusX:ft.focusY));yt=b?ut.qg+(yt-Dt)-(Ct-qt):ut.qg+Dt-qt,ft.qg=yt,lt=Math.min(lt,yt),ut=ut.align}ut=ot;do ut.qg=ut.qg-lt,ut=ut.align;while(ut!==ot)}}for(x=mi(y),tt=x.next();!tt.done;tt=x.next())for(z=mi(tt.value),tt=z.next();!tt.done;tt=z.next())tt=tt.value,tt.root===tt&&ex(a,tt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,rt=0;do{for(z=y[tt][rt];z.align!==z.root;)z=z.align,tt++,0<z.vi&&(rt=nx(z,y),rt.sd.shift=Math.min(rt.sd.shift,z.sd.shift+z.zc+z.qg-(rt.zc+rt.qg+(E?rt.width:rt.height)+a.columnSpacing)));rt=z.vi+1}while(tt<y.length&&rt<y[tt].length&&z.sd===y[tt][rt].sd)}for(a=new ki,y=mi(y),tt=y.next();!tt.done;tt=y.next())for(x=mi(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=E?tt.width:tt.height,a.add(tt,b?-tt.zc-z:tt.zc);return a}function ex(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=nx(b,x),z=E.root;ex(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+tt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function nx(a,y){var x=a.Tz;return a=a.vi,1>a&&ue("Could not determine previous vertex in layer"),y[x][a-1]}Vo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=dn(),E=dn(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var rt=Yx(this,y[tt],b,E,tt);rt<z&&(x=tt,z=rt)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?b[x]-b[tt]:E[x]-E[tt],z.delta!==0&&y[tt].each(function(ot){return function(lt){lt.value+=ot.delta}}(z)));kn(b),kn(E)};function Yx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,tt=-1/0;return y.each(function(rt){var ot=rt.key;rt=rt.value,ot=a.K===90||a.K===270?ot.width:ot.height,rt<z&&(z=rt),rt+ot>tt&&(tt=rt+ot)}),x[E]=z,b[E]=tt,tt-z}Vo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=k0(this,!0),y=k0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function k0(a,y){return a.K===270?y?ts:bs:a.K===90?y?bs:ts:a.K===180?y?hs:Ms:y?Ms:hs}Vo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,tt=E=1/0,rt=-1/0;a.next();){var ot=a.value,lt=ot.layer,ut=ot.column|0;b?(tt=y.x+this.kc*ut,lt=this.Kd[lt]):(tt=this.Kd[lt],lt=y.y+this.kc*ut),ot.centerX=tt,ot.centerY=lt,x&&isFinite(ot.zc)&&(b?ot.node?ot.x=y.x+ot.zc:ot.centerX=y.x+ot.zc:ot.node?ot.y=y.y+ot.zc:ot.centerY=y.y+ot.zc),z=Math.min(ot.x,z),E=Math.min(ot.y,E),b?(tt=z,rt=Math.max(rt,ot.bounds.right)):(tt=E,rt=Math.max(rt,ot.bounds.bottom))}for(this.xw=rt-tt,z=y.x-z,y=y.y-E,this.Rf=new Vt(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Vo.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new fn(0,0,x,Math.abs(this.Ta[0]))):y.push(new fn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new fn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new fn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new fn(0,0,Math.abs(this.Ta[0]),x)):y.push(new fn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new fn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new fn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Vo.prototype.commitLayers=function(){},Vo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,tt=b.fromPort,rt=b.toPort;if(E!==null){var ot=E.findVisibleNode();ot!==null&&ot!==E&&(E=ot,tt=ot.port)}z!==null&&(ot=z.findVisibleNode(),ot!==null&&ot!==z&&(z=ot,rt=ot.port));var lt=y.computeSpot(!0,tt);ot=y.computeSpot(!1,rt);var ut=x.fromVertex,ft=x.toVertex;if(x.valid)y.curve===zu&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(E,tt,lt,!0,!1,z,rt),rt=y.getLinkPoint(z,rt,ot,!1,!1,E,tt),x.w()||x.set(E.actualBounds.center),rt.w()||rt.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+rt.x)/3,(2*x.y+rt.y)/3),y.yf((x.x+2*rt.x)/3,(x.y+2*rt.y)/3),y.yf(rt.x,rt.y)):(x=b=!1,tt!==null&&lt===Ua&&(b=!0),rt!==null&&ot===Ua&&(x=!0),(b||x)&&(ot=null,b&&(ot=y.getLinkPointFromPoint(E,tt,tt.ga(so),y.i(3),!0),ot.w()||ot.set(E.actualBounds.center),y.L(0,ot.x,ot.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,rt,rt.ga(so),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),ot&&(z=y.i(2),y.L(1,(2*ot.x+z.x)/3,(2*ot.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(ut.layer===ft.layer)y.zf();else{var yt=!1,Ct=!1,bt=this.ie,Dt=y.firstPickIndex+1;if(y.isOrthogonal){Ct=!0;var qt=y.pointsCount;4<qt&&y.points.removeRange(2,qt-3)}else if(y.curve===zu)yt=!0,qt=y.pointsCount,4<qt&&y.points.removeRange(2,qt-3),qt===4&&(Dt=2);else{qt=y.pointsCount;var Wt=lt===Ua,ae=ot===Ua;2<qt&&Wt&&ae?y.points.removeRange(1,qt-2):3<qt&&Wt&&!ae?y.points.removeRange(1,qt-3):3<qt&&!Wt&&ae?y.points.removeRange(2,qt-2):4<qt&&!Wt&&!ae&&y.points.removeRange(2,qt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var le=qt=null;for(Wt=ft.sourceEdges.iterator;Wt.next()&&(ae=Wt.value,ae.link!==x.link||(qt=ae.fromVertex,le=ae.toVertex,qt.node!==null)););if(qt===null)break;if(qt!==ut){Wt=y.i(Dt-1).x,ae=y.i(Dt-1).y;var ge=qt.centerX,be=qt.centerY;if(Ct)this.K===180||this.K===0?Dt===y.firstPickIndex+1?(y.m(Dt++,Wt,ae),y.m(Dt++,Wt,be)):(le!==null?le.centerY:ae)!==be&&(le=this.Ta[qt.layer-1]+this.Rf.x,y.m(Dt++,le,ae),y.m(Dt++,le,be)):Dt===y.firstPickIndex+1?(y.m(Dt++,Wt,ae),y.m(Dt++,ge,ae)):(le!==null?le.centerX:Wt)!==ge&&(le=this.Ta[qt.layer-1]+this.Rf.y,y.m(Dt++,Wt,le),y.m(Dt++,ge,le));else if(Dt===y.firstPickIndex+1){le=Math.max(10,this.he[ft.layer]);var Je=Math.max(10,this.Ld[ft.layer]);if(yt)this.K===180?ge<=ft.bounds.x?(ft=ft.bounds.x,y.m(Dt++,ft-le,be),y.m(Dt++,ft,be),y.m(Dt++,ft+Je,be)):(y.m(Dt++,ge-le,be),y.m(Dt++,ge,be),y.m(Dt++,ge+Je,be)):this.K===90?be>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Dt++,ge,ft+Je),y.m(Dt++,ge,ft),y.m(Dt++,ge,ft-le)):(y.m(Dt++,ge,be+Je),y.m(Dt++,ge,be),y.m(Dt++,ge,be-le)):this.K===270?be<=ft.bounds.y?(ft=ft.bounds.y,y.m(Dt++,ge,ft-le),y.m(Dt++,ge,ft),y.m(Dt++,ge,ft+Je)):(y.m(Dt++,ge,be-le),y.m(Dt++,ge,be),y.m(Dt++,ge,be+Je)):this.K===0&&(ge>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Dt++,ft+Je,be),y.m(Dt++,ft,be),y.m(Dt++,ft-le,be)):(y.m(Dt++,ge+Je,be),y.m(Dt++,ge,be),y.m(Dt++,ge-le,be)));else{y.m(Dt++,Wt,ae);var di=0;this.K===180||this.K===0?((this.K===180?ge>=ft.bounds.right:ge<=ft.bounds.x)&&(di=(this.K===0?-le:Je)/2),y.m(Dt++,Wt+di,be)):((this.K===270?be>=ft.bounds.bottom:be<=ft.bounds.y)&&(di=(this.K===90?-le:Je)/2),y.m(Dt++,ge,ae+di)),y.m(Dt++,ge,be)}}else le=Math.max(10,this.he[qt.layer]),Je=Math.max(10,this.Ld[qt.layer]),yt?this.K===180?(y.m(Dt++,ge-le-bt,be),y.m(Dt++,Math.min(ge-le+bt/2,ge),be),y.m(Dt++,ge,be),y.m(Dt++,ge,be),y.m(Dt++,Math.max(ge+Je-bt/2,ge),be),y.m(Dt++,ge+Je+bt,be)):this.K===90?(y.m(Dt++,ge,be+Je+bt),y.m(Dt++,ge,Math.max(be+Je-bt/2,be)),y.m(Dt++,ge,be),y.m(Dt++,ge,be),y.m(Dt++,ge,Math.min(be-le+bt/2,be)),y.m(Dt++,ge,be-le-bt)):this.K===270?(y.m(Dt++,ge,be-le-bt),y.m(Dt++,ge,Math.min(be-le+bt/2,be)),y.m(Dt++,ge,be),y.m(Dt++,ge,be),y.m(Dt++,ge,Math.max(be+Je-bt/2,be)),y.m(Dt++,ge,be+Je+bt)):(y.m(Dt++,ge+Je+bt,be),y.m(Dt++,Math.max(ge+Je-bt/2,ge),be),y.m(Dt++,ge,be),y.m(Dt++,ge,be),y.m(Dt++,Math.min(ge-le+bt/2,ge),be),y.m(Dt++,ge-le-bt,be)):y.m(Dt++,ge,be)}ft=qt}(rt===null||lt!==Ua||Ct)&&(Wt=y.i(Dt-1).x,ae=y.i(Dt-1).y,ge=y.i(Dt).x,be=y.i(Dt).y,Ct?(bt=this.Ld[ut.layer],this.K===180||this.K===0?(Ct=ae,Ct>=ut.bounds.y&&Ct<=ut.bounds.bottom&&(this.K===180?ge>=ut.bounds.x:ge<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-bt:bt),Ct<ut.bounds.y+ut.bounds.height/2?Ct=ut.bounds.y-this.kc/2:Ct=ut.bounds.bottom+this.kc/2,y.m(Dt++,ft,ae),y.m(Dt++,ft,Ct)),y.m(Dt++,ge,Ct)):(Ct=Wt,Ct>=ut.bounds.x&&Ct<=ut.bounds.right&&(this.K===270?be>=ut.bounds.y:be<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-bt:bt),Ct<ut.bounds.x+ut.bounds.width/2?Ct=ut.bounds.x-this.kc/2:Ct=ut.bounds.right+this.kc/2,y.m(Dt++,Wt,ft),y.m(Dt++,Ct,ft)),y.m(Dt++,Ct,be)),y.m(Dt++,ge,be)):yt?(le=Math.max(10,this.he[ut.layer]),Je=Math.max(10,this.Ld[ut.layer]),this.K===180&&ge>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Dt-2,ft,ae),y.L(Dt-1,ft+Je,ae)):this.K===90&&be<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Dt-2,Wt,ft),y.L(Dt-1,Wt,ft-le)):this.K===270&&be>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Dt-2,Wt,ft),y.L(Dt-1,Wt,ft+Je)):this.K===0&&ge<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Dt-2,ft,ae),y.L(Dt-1,ft-le,ae))):(le=Math.max(10,this.he[ut.layer]),Je=Math.max(10,this.Ld[ut.layer]),Ct=0,this.K===180||this.K===0?((this.K===180?ge<=ut.bounds.x:ge>=ut.bounds.right)&&(Ct=(this.K===0?Je:-le)/2),y.m(Dt++,ge+Ct,ae)):((this.K===270?be<=ut.bounds.y:be>=ut.bounds.bottom)&&(Ct=(this.K===90?Je:-le)/2),y.m(Dt++,Wt,be+Ct)),y.m(Dt++,ge,be)))}else{for(;ut!==null&&ut!==ft;){for(le=qt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Wt=ut.value,Wt.link!==x.link||(qt=Wt.toVertex,le=Wt.fromVertex,le.node!==null&&(le=null),qt.node!==null)););if(qt===null)break;qt!==ft&&(Wt=y.i(Dt-1).x,ae=y.i(Dt-1).y,ge=qt.centerX,be=qt.centerY,Ct?this.K===180||this.K===0?(le!==null?le.centerY:ae)!==be&&(le=this.Ta[qt.layer]+this.Rf.x,Dt===y.firstPickIndex+1&&(le=this.K===0?Math.max(le,Wt):Math.min(le,Wt)),y.m(Dt++,le,ae),y.m(Dt++,le,be)):(le!==null?le.centerX:Wt)!==ge&&(le=this.Ta[qt.layer]+this.Rf.y,Dt===y.firstPickIndex+1&&(le=this.K===90?Math.max(le,ae):Math.min(le,ae)),y.m(Dt++,Wt,le),y.m(Dt++,ge,le)):(le=Math.max(10,this.he[qt.layer]),Je=Math.max(10,this.Ld[qt.layer]),yt?this.K===180?(y.m(Dt++,ge+Je+bt,be),y.m(Dt++,Math.max(ge+Je-bt/2,ge),be),y.m(Dt++,ge,be),y.m(Dt++,ge,be),y.m(Dt++,Math.min(ge-le+bt/2,ge),be),y.m(Dt++,ge-le-bt,be)):this.K===90?(y.m(Dt++,ge,be-le-bt),y.m(Dt++,ge,Math.min(be-le+bt/2,be)),y.m(Dt++,ge,be),y.m(Dt++,ge,be),y.m(Dt++,ge,Math.max(be+Je-bt/2,be)),y.m(Dt++,ge,be+Je+bt)):this.K===270?(y.m(Dt++,ge,be+Je+bt),y.m(Dt++,ge,Math.max(be+Je-bt/2,be)),y.m(Dt++,ge,be),y.m(Dt++,ge,be),y.m(Dt++,ge,Math.min(be-le+bt/2,be)),y.m(Dt++,ge,be-le-bt)):(y.m(Dt++,ge-le-bt,be),y.m(Dt++,Math.min(ge-le+bt/2,ge),be),y.m(Dt++,ge,be),y.m(Dt++,ge,be),y.m(Dt++,Math.max(ge+Je-bt/2,ge),be),y.m(Dt++,ge+Je+bt,be)):this.K===180?(y.m(Dt++,ge+Je,be),y.m(Dt++,ge-le,be)):this.K===90?(y.m(Dt++,ge,be-le),y.m(Dt++,ge,be+Je)):this.K===270?(y.m(Dt++,ge,be+Je),y.m(Dt++,ge,be-le)):(y.m(Dt++,ge-le,be),y.m(Dt++,ge+Je,be)))),ut=qt}Ct&&(Wt=y.i(Dt-1).x,ae=y.i(Dt-1).y,ge=y.i(Dt).x,be=y.i(Dt).y,this.K===180||this.K===0?ae!==be&&(le=this.K===0?Math.min(Math.max((ge+Wt)/2,this.Ta[ft.layer]+this.Rf.x),ge):Math.max(Math.min((ge+Wt)/2,this.Ta[ft.layer]+this.Rf.x),ge),y.m(Dt++,le,ae),y.m(Dt++,le,be)):Wt!==ge&&(le=this.K===90?Math.min(Math.max((be+ae)/2,this.Ta[ft.layer]+this.Rf.y),be):Math.max(Math.min((be+ae)/2,this.Ta[ft.layer]+this.Rf.y),be),y.m(Dt++,Wt,le),y.m(Dt++,ge,le)))}b!==null&&yt&&4<=y.pointsCount&&(tt!==null&&(tt=lt===Ua?y.getLinkPointFromPoint(E,tt,tt.ga(so),y.i(3),!0):y.i(0),lt===Ua&&(lt=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+lt.x)/2,lt.y),y.L(2,b.x,(lt.y+b.y)/2)):(y.L(1,lt.x,(tt.y+lt.y)/2),y.L(2,(lt.x+b.x)/2,b.y))),tt.w()||tt.set(E.actualBounds.center),y.L(0,tt.x,tt.y)),rt!==null&&(E=ot===Ua?y.getLinkPointFromPoint(z,rt,rt.ga(so),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ot===Ua&&(rt=y.i(y.pointsCount-3),ot=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+rt.x)/2,rt.y),y.L(y.pointsCount-2,ot.x,(rt.y+ot.y)/2)):(y.L(y.pointsCount-2,rt.x,(E.y+rt.y)/2),y.L(y.pointsCount-3,(rt.x+ot.x)/2,ot.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Vo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new bn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),tt=b.i(E+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var rt=new ef;rt.layer=Math.floor(z.y/2);var ot=b.i(0),lt=b.i(b.pointsCount-1);if(rt.first=ot.x*ot.x+ot.y,rt.jc=lt.x*lt.x+lt.y,rt.rd=Math.min(z.x,tt.x),rt.Ic=Math.max(z.x,tt.x),rt.index=E,rt.link=b,E+2<b.pointsCount){ot=b.i(E-1),lt=b.i(E+2);var ut=0;ot.y<z.y?ut=lt.y<z.y?3:z.x<tt.x?2:1:ot.y>z.y&&(ut=lt.y>z.y?0:tt.x<z.x?2:1),rt.j=ut}x.push(rt)}}}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(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<E;ot++)lt=x[ot],lt.jc!==rt&&(ut++,rt=lt.jc);this.zi(x,this.Ux,z,z+tt);var ft=1;for(rt=x[z].first,ot=z;ot<E;ot++)lt=x[ot],lt.first!==rt&&(ft++,rt=lt.first);for(ot=!0,lt=ft,ut<ft?(ot=!1,lt=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<E;ft++){var yt=x[ft];(ot?yt.first:yt.jc)!==rt&&(ut++,rt=ot?yt.first:yt.jc);var Ct=yt.link;z=Ct.i(yt.index),tt=Ct.i(yt.index+1);var bt=this.linkSpacing*(ut-(lt-1)/2);y++,Ct.uh(),Ct.L(yt.index,z.x,z.y+bt),Ct.L(yt.index+1,tt.x,tt.y+bt),Ct.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),tt=b.i(E+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(rt=new ef,rt.layer=Math.floor(z.x/2),ot=b.i(0),lt=b.i(b.pointsCount-1),rt.first=ot.x+ot.y*ot.y,rt.jc=lt.x+lt.y*lt.y,rt.rd=Math.min(z.y,tt.y),rt.Ic=Math.max(z.y,tt.y),rt.index=E,rt.link=b,E+2<b.pointsCount&&(ot=b.i(E-1),lt=b.i(E+2),ut=0,ot.x<z.x?ut=lt.x<z.x?3:z.y<tt.y?2:1:ot.x>z.x&&(ut=lt.x>z.x?0:tt.y<z.y?2:1),rt.j=ut),x.push(rt));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(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,rt=x[z].jc,ot=z;ot<E;ot++)lt=x[ot],lt.jc!==rt&&(ut++,rt=lt.jc);for(this.zi(x,this.Ux,z,z+tt),ft=1,rt=x[z].first,ot=z;ot<E;ot++)lt=x[ot],lt.first!==rt&&(ft++,rt=lt.first);for(ot=!0,lt=ft,ut<ft?(ot=!1,lt=ut,rt=x[z].jc,this.zi(x,this.Js,z,z+tt)):rt=x[z].first,ut=0,ft=z;ft<E;ft++)yt=x[ft],(ot?yt.first:yt.jc)!==rt&&(ut++,rt=ot?yt.first:yt.jc),Ct=yt.link,z=Ct.i(yt.index),tt=Ct.i(yt.index+1),bt=this.linkSpacing*(ut-(lt-1)/2),y++,Ct.uh(),Ct.L(yt.index,z.x+bt,z.y),Ct.L(yt.index+1,tt.x+bt,tt.y),Ct.zf()}z=E}a=b}}}},Et=Vo.prototype,Et.Vx=function(a,y){return a instanceof ef&&y instanceof ef&&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},Et.Ux=function(a,y){return a instanceof ef&&y instanceof ef&&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},Et.Js=function(a,y){return a instanceof ef&&y instanceof ef&&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},Et.B=function(a,y){return a-=y,-1<a&&1>a},Et.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&ue("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function _c(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function tf(a,y,x){a.He[a.tc[y]]=x}Jt.Object.defineProperties(Vo.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):ue("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==F0&&a!==Qp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==N0&&a!==xy&&a!==wy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==T0&&a!==Py&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==by&&a!==D0&&a!==Ey||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var F0=new sn(Vo,"CycleDepthFirst",0),Sy=new sn(Vo,"CycleGreedy",1),Qp=new sn(Vo,"CycleFromLayers",2),N0=new sn(Vo,"LayerOptimalLinkLength",0),xy=new sn(Vo,"LayerLongestPathSink",1),wy=new sn(Vo,"LayerLongestPathSource",2),T0=new sn(Vo,"InitDepthFirstOut",0),Py=new sn(Vo,"InitDepthFirstIn",1),Cy=new sn(Vo,"InitNaive",2),by=new sn(Vo,"AggressiveNone",0),D0=new sn(Vo,"AggressiveLess",1),Ey=new sn(Vo,"AggressiveMore",2),Ux=8;Vo.className="LayeredDigraphLayout",Vo.CycleDepthFirst=F0,Vo.CycleGreedy=Sy,Vo.CycleFromLayers=Qp,Vo.LayerOptimalLinkLength=N0,Vo.LayerLongestPathSink=xy,Vo.LayerLongestPathSource=wy,Vo.InitDepthFirstOut=T0,Vo.InitDepthFirstIn=Py,Vo.InitNaive=Cy,Vo.AggressiveNone=by,Vo.AggressiveLess=D0,Vo.AggressiveMore=Ey,Vo.PackNone=0,Vo.PackExpand=1,Vo.PackStraighten=2,Vo.PackMedian=4,Vo.PackAll=15,Vo.AlignNone=0,Vo.AlignUpperLeft=1,Vo.AlignUpperRight=2,Vo.AlignLowerLeft=4,Vo.AlignLowerRight=8,Vo.AlignAll=15;function ef(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}ef.className="SegInfo";function Ug(a){ua.call(this,a)}Qe(Ug,ua),Ug.prototype.createVertex=function(){return new th(this)},Ug.prototype.createEdge=function(){return new $p(this)},Ug.className="LayeredDigraphNetwork";function th(a){zs.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Qe(th,zs);function ix(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],b=mi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=mi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;ue("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=mi(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Xx(a){if(!a.ao){for(var y=[],x=mi(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}th.prototype.Cl=function(a){zs.prototype.Cl.call(this,a),this.bo=this.co=null},th.prototype.Kl=function(a){zs.prototype.Kl.call(this,a),this.bo=this.co=null},th.prototype.zl=function(a){zs.prototype.zl.call(this,a),this.$n=this.ao=null},th.prototype.Jl=function(a){zs.prototype.Jl.call(this,a),this.$n=this.ao=null},Jt.Object.defineProperties(th.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),th.prototype.deleteDestinationEdge=th.prototype.Jl,th.prototype.addDestinationEdge=th.prototype.zl,th.prototype.deleteSourceEdge=th.prototype.Kl,th.prototype.addSourceEdge=th.prototype.Cl,th.className="LayeredDigraphVertex";function $p(a){Mu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Qe($p,Mu),Jt.Object.defineProperties($p.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),$p.className="LayeredDigraphEdge";function to(a){Fa.call(this),this.Ub=new Mn,this.Wn=z0,this.ud=Md,this.vo=H0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=W0,this.$d=new ri(10,10).freeze();var y=new hg(this);this.W=new gh(y),this.Y=new gh(y),this.ru=[],a&&Object.assign(this,a)}Qe(to,Fa),to.prototype.cloneProtected=function(a){Fa.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)},to.prototype.qb=function(a){a.classType===to?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:ue("Unknown enum value: "+a):Fa.prototype.qb.call(this,a)},to.prototype.createNetwork=function(){return new hg(this)},to.prototype.makeNetwork=function(a){function y(b){if(b instanceof ci)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof $n){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 Ue?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Cr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},to.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==Z0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Ue&&(y=a),this.path===z0&&y!==null?this.ud=y.isTreePathToChildren?Md:lg:this.ud=this.path===z0?Md:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new Mn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof ci?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof gh&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,My(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=rx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,My(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gh&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gh&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gh&&lx(this,y);if(this.Cu(),this.layerStyle===G0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof gh&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Mn,this.isValidLayout=!0};function Jx(a){var y=new Mn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}to.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Md:x.sourceEdges.count===0&&this.Ub.add(x);break;case lg:x.destinationEdges.count===0&&this.Ub.add(x);break;default:ue("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=rx(this,a),a!==null&&this.Ub.add(a))};function rx(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Md:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case lg:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:ue("Unhandled path value "+a.ud.toString())}}return b}function My(a,y){if(y!==null){switch(a.ud){case Md:if(0<y.destinationEdges.count){for(var x=new bn,b=y.destinationVertexes;b.next();){var E=b.value;ox(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case lg:if(0<y.sourceEdges.count){for(x=new bn,b=y.sourceVertexes;b.next();)E=b.value,ox(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:ue("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)My(a,x[y])}}function ox(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}to.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Fd&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,tt=z.length,rt=0;rt<tt;rt++){var ot=z[rt];ax(a,ot),x+=ot.descendantCount+1,b=Math.max(b,ot.maxChildrenCount),E=Math.max(E,ot.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Qx(a,y){switch(a.vo){default:case H0:return y.parent!==null?y.parent:a.W;case Oy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case By:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Dy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}to.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===Fd){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function sx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)sx(a,y[b])}}to.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==Fd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}to.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xg:break;case _p:a.children.reverse();break;case tm:a.children.sort(a.comparer);break;case em:a.children.sort(a.comparer),a.children.reverse();break;default:ue("Unhandled sorting value "+a.sorting.toString())}},to.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},to.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=nf(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,tt=0,rt=0,ot=a.commentSpacing;if(a.node!==null)for(var lt=a.node.Mu();lt.next();){var ut=lt.value;ut.category==="Comment"&&ut.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ut),ut.Va(),ut=ut.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ut.width),tt+=ut.height+Math.abs(rt)):(z+=ut.width+Math.abs(rt),tt=Math.max(tt,ut.height)),rt=ot)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),tt=Math.max(0,tt-a.height)):(tt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=fn.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=E,fn.free(E))};function nf(a){return a===Ec||a===Fd||a===Lc||a===Qd}function qp(a){return a===Ec||a===Fd}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(nf(x)){if(qp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Lc)return!0}}return!1}to.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=nf(z)),b=b===90||b===270,x=E===90||E===270;for(var tt=a.childrenCount===0,rt=Ay(a),ot=0,lt=a.comments,ut=lt.length,ft=Vt.alloc(),yt=0;yt<ut;yt++){var Ct=lt[yt],bt=Ct.measuredBounds;if(b&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<E&&!z||x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-bt.width,a.bounds.y+ot),Ct.move(ft),Ct=Ct.Sd();Ct.next();){var Dt=Ct.value;Dt.fromSpot=hs,Dt.toSpot=Ms}else for(ft.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ot),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=Ms,Dt.toSpot=hs;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ot),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=Ms,Dt.toSpot=hs;else for(ft.h(a.bounds.x+a.commentMargin-bt.width,a.bounds.y+ot),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=hs,Dt.toSpot=Ms;ot=0<=a.commentSpacing?ot+(bt.height+a.commentSpacing):ot+(a.commentSpacing-bt.height)}else{if(135<E&&!z||!x&&rt)if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y-a.commentMargin-bt.height),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=ts,Dt.toSpot=bs;else for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y-a.commentMargin),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=bs,Dt.toSpot=ts;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+ot,a.bounds.y+2*a.focus.y+a.commentMargin),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=bs,Dt.toSpot=ts;else for(ft.h(a.bounds.x+ot,a.bounds.y+a.commentMargin-bt.height),Ct.move(ft),Ct=Ct.Sd();Ct.next();)Dt=Ct.value,Dt.fromSpot=ts,Dt.toSpot=bs;ot=0<=a.commentSpacing?ot+(bt.width+a.commentSpacing):ot+(a.commentSpacing-bt.width)}}if(Vt.free(ft),y=ot-a.commentSpacing-(b?y.height:y.width),this.ud===Md)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},to.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case j0:ux(this,a);break;case nm:if(a.alignment===Fd)ux(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=nf(x)),b=Ay(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=Nh(a);y=E===90||E===270;var z=0,tt=a.children,rt=tt.length;for(x=0;x<rt;x++)b=tt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var ot=a.alignment;b=ot===Ad;var lt=ot===kd,ut=nf(ot),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var yt=a.nodeSpacing,Ct=this.computeNodeIndent(a),bt=a.rowSpacing,Dt=0;(b||lt||a.hm||a.im&&a.maxGenerationCount===1)&&(Dt=Math.max(0,a.rowIndent)),b=a.width;var qt=a.height,Wt=0,ae=0,le=0,ge=null,be=null,Je=0,di=0,Pi=0,yi=0,Qn=0,Fn=0,xr=0,gr=0;if(ut&&!qp(ot)&&135<E&&tt.reverse(),qp(ot))if(1<rt)for(var Do=0;Do<rt;Do++)Do%2===0&&Do!==rt-1&&(gr=Math.max(gr,y?tt[Do].Da.width:tt[Do].Da.height));else rt===1&&(gr=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(ot){case Ec:ae=135>E?hx(this,a,tt,gr,Wt,ae):dx(this,a,tt,gr,Wt,ae),gr=ae.x,Wt=ae.width,ae=ae.height;break;case Lc:for(ge=0;ge<rt;ge++)be=tt[ge],ft=be.Da,le=Fn===0?0:bt,y?(be.S.h(z-ft.width,yi+le),Wt=Math.max(Wt,ft.width),ae=Math.max(ae,yi+le+ft.height),yi+=le+ft.height):(be.S.h(Pi+le,z-ft.height),Wt=Math.max(Wt,Pi+le+ft.width),ae=Math.max(ae,ft.height),Pi+=le+ft.width),Fn++;break;case Qd:for(ge=0;ge<rt;ge++)be=tt[ge],z=be.Da,ft=Fn===0?0:bt,y?(be.S.h(yt/2+a.focus.x,yi+ft),Wt=Math.max(Wt,z.width),ae=Math.max(ae,yi+ft+z.height),yi+=ft+z.height):(be.S.h(Pi+ft,yt/2+a.focus.y),Wt=Math.max(Wt,Pi+ft+z.width),ae=Math.max(ae,z.height),Pi+=ft+z.width),Fn++}ge=pu(this,2),be=pu(this,2),y?(ge[0].h(0,0),ge[1].h(0,ae),be[0].h(Wt,0)):(ge[0].h(0,0),ge[1].h(Wt,0),be[0].h(0,ae)),be[1].h(Wt,ae)}else for(Do=0;Do<rt;Do++){var aa=tt[Do],Gs=aa.Da;if(y){0<ft&&0<Fn&&Pi+yt+Gs.width>ft&&(Pi<z&&Df(a,ot,z-Pi,0,xr,Do-1),Qn++,Fn=0,xr=Do,le=ae,Pi=0,yi=135<E?-ae-bt:ae+bt),I0(this,aa,0,yi);var qs=0;if(Fn===0)ge=aa.Yo,be=aa.kp,Je=Gs.width,di=Gs.height,(ge===null||be===null||E!==Nh(aa))&&(ge=pu(this,2),be=pu(this,2),ge[0].h(0,0),ge[1].h(0,di),be[0].h(Je,0),be[1].h(Je,di));else{var Nl=dn();di=cx(this,a,aa,ge,be,Je,di,Nl),qs=di.x,ge=Nl[0],be=Nl[1],Je=di.width,di=di.height,kn(Nl),Pi<Gs.width&&0>qs&&(sg(a,-qs,0,xr,Do-1),R0(ge,-qs,0),R0(be,-qs,0),qs=0)}aa.S.h(qs,yi),Wt=Math.max(Wt,Je),ae=Math.max(ae,le+(Qn===0?0:bt)+Gs.height),Pi=Je}else 0<ft&&0<Fn&&yi+yt+Gs.height>ft&&(yi<z&&Df(a,ot,0,z-yi,xr,Do-1),Qn++,Fn=0,xr=Do,le=Wt,yi=0,Pi=135<E?-Wt-bt:Wt+bt),I0(this,aa,Pi,0),qs=0,Fn===0?(ge=aa.Yo,be=aa.kp,Je=Gs.width,di=Gs.height,(ge===null||be===null||E!==Nh(aa))&&(ge=pu(this,2),be=pu(this,2),ge[0].h(0,0),ge[1].h(Je,0),be[0].h(0,di),be[1].h(Je,di))):(Nl=dn(),di=cx(this,a,aa,ge,be,Je,di,Nl),qs=di.x,ge=Nl[0],be=Nl[1],Je=di.width,di=di.height,kn(Nl),yi<Gs.height&&0>qs&&(sg(a,0,-qs,xr,Do-1),R0(ge,0,-qs),R0(be,0,-qs),qs=0)),aa.S.h(Pi,qs),ae=Math.max(ae,di),Wt=Math.max(Wt,le+(Qn===0?0:bt)+Gs.width),yi=di;Fn++}switch(0<Qn&&(y?(ae+=Math.max(0,x),Pi<Wt&&Df(a,ot,Wt-Pi,0,xr,rt-1),0<Dt&&(lt||sg(a,Dt,0,0,rt-1),Wt+=Dt)):(Wt+=Math.max(0,x),yi<ae&&Df(a,ot,0,ae-yi,xr,rt-1),0<Dt&&(lt||sg(a,0,Dt,0,rt-1),ae+=Dt))),Dt=lt=0,ot){case Jg:y?lt+=Wt/2-a.focus.x-Ct/2:Dt+=ae/2-a.focus.y-Ct/2;break;case ug:0<Qn?y?lt+=Wt/2-a.focus.x-Ct/2:Dt+=ae/2-a.focus.y-Ct/2:y?(gr=tt[0].S.x+tt[0].la.x,lt+=gr+(tt[rt-1].S.x+tt[rt-1].la.x+2*tt[rt-1].focus.x-gr)/2-a.focus.x-Ct/2):(gr=tt[0].S.y+tt[0].la.y,Dt+=gr+(tt[rt-1].S.y+tt[rt-1].la.y+2*tt[rt-1].focus.y-gr)/2-a.focus.y-Ct/2);break;case Ad:y?(lt-=Ct,Wt+=Ct):(Dt-=Ct,ae+=Ct);break;case kd:y?(lt+=Wt-a.width+Ct,Wt+=Ct):(Dt+=ae-a.height+Ct,ae+=Ct);break;case Ec:y?1<rt?lt+=gr+yt/2-a.focus.x:lt+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<rt?Dt+=gr+yt/2-a.focus.y:Dt+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case Lc:y?lt+=Wt+yt/2-a.focus.x:Dt+=ae+yt/2-a.focus.y;break;case Qd:break;default:ae=this.customAlignment(a,lt,Dt,Wt,ae),lt=ae[0],Dt=ae[1],Wt=ae[2],ae=ae[3]}for(Ct=0;Ct<rt;Ct++)gr=tt[Ct],y?gr.S.h(gr.S.x+gr.la.x-lt,gr.S.y+(135<E?(ut?-ae:-gr.Da.height)+gr.la.y-x:qt+x+gr.la.y)):gr.S.h(gr.S.x+(135<E?(ut?-Wt:-gr.Da.width)+gr.la.x-x:b+x+gr.la.x),gr.S.y+gr.la.y-Dt);if(rt=tt=0,ut?y?(Wt=ky(a,Wt,lt),0>lt&&(lt=0),135<E&&(Dt+=ae+x),ae+=qt+x,ot===Qd&&(tt+=yt/2+a.focus.x),rt+=qt+x):(135<E&&(lt+=Wt+x),Wt+=b+x,ae=Fy(a,ae,Dt),0>Dt&&(Dt=0),ot===Qd&&(rt+=yt/2+a.focus.y),tt+=b+x):y?(a.comments===null?b>Wt&&(Wt=Ny(ot,b-Wt,0),tt=Wt.x,rt=Wt.y,Wt=b,lt=0):Wt=ky(a,Wt,lt),0>lt&&(tt-=lt,lt=0),135<E&&(Dt+=ae+x),ae=Math.max(Math.max(ae,qt),ae+qt+x),rt+=qt+x):(135<E&&(lt+=Wt+x),Wt=Math.max(Math.max(Wt,b),Wt+b+x),a.comments===null?qt>ae&&(ae=Ny(ot,0,qt-ae),tt=ae.x,rt=ae.y,ae=qt,Dt=0):ae=Fy(a,ae,Dt),0>Dt&&(rt-=Dt,Dt=0),tt+=b+x),0<Qn)E=pu(this,4),Qn=pu(this,4),y?(E[2].h(0,qt+x),E[3].h(E[2].x,ae),Qn[2].h(Wt,E[2].y),Qn[3].h(Qn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Wt,E[2].y),Qn[2].h(E[2].x,ae),Qn[3].h(E[3].x,Qn[2].y));else{for(E=pu(this,ge.length+2),Qn=pu(this,be.length+2),ot=0;ot<ge.length;ot++)ut=ge[ot],E[ot+2].h(ut.x+tt,ut.y+rt);for(ot=0;ot<be.length;ot++)ut=be[ot],Qn[ot+2].h(ut.x+tt,ut.y+rt)}y?(E[0].h(lt,0),E[1].h(E[0].x,qt),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])),Qn[0].h(lt+b,0),Qn[1].h(Qn[0].x,qt),Qn[2].y<Qn[1].y&&(Qn[2].x<Qn[0].x?Qn[2].assign(Qn[1]):Qn[1].assign(Qn[2])),Qn[3].y<Qn[2].y&&(Qn[3].x<Qn[0].x?Qn[3].assign(Qn[2]):Qn[2].assign(Qn[3])),E[2].y-=x/2,Qn[2].y-=x/2):(E[0].h(0,Dt),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])),Qn[0].h(0,Dt+qt),Qn[1].h(b,Qn[0].y),Qn[2].x<Qn[1].x&&(Qn[2].y<Qn[0].y?Qn[2].assign(Qn[1]):Qn[1].assign(Qn[2])),Qn[3].x<Qn[2].x&&(Qn[3].y<Qn[0].y?Qn[3].assign(Qn[2]):Qn[2].assign(Qn[3])),E[2].x-=x/2,Qn[2].x-=x/2),Uh(this,ge),Uh(this,be),a.Yo=E,a.kp=Qn,a.la.h(lt,Dt),a.Da.h(Wt,ae)}break;default:ue("Unhandled compaction value "+a.compaction.toString())}}};function ux(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=nf(x));var E=Ay(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=Nh(y),x=b===90||b===270;var z=0;E=y.children;for(var tt=E.length,rt=0;rt<tt;rt++){var ot=E[rt];z=Math.max(z,x?ot.Da.width:ot.Da.height)}var lt=y.alignment,ut=lt===Ad,ft=lt===kd;rt=nf(lt);var yt=Math.max(0,y.breadthLimit);ot=a.computeLayerSpacing(y);var Ct=y.nodeSpacing,bt=a.computeNodeIndent(y),Dt=ut||ft?0:bt/2,qt=y.rowSpacing,Wt=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Wt=Math.max(0,y.rowIndent)),ut=y.width;var ae=y.height,le=0,ge=0,be=0,Je=0,di=0,Pi=0,yi=0,Qn=0,Fn=0,xr=0;if(rt&&!qp(lt)&&135<b&&E.reverse(),qp(lt))if(1<tt)for(var gr=0;gr<tt;gr++){var Do=E[gr],aa=Do.Da;gr%2===0&&gr!==tt-1?Fn=Math.max(Fn,(x?aa.width:aa.height)+a.computeBusNodeSpacing(Do)-Ct):gr%2!==0&&(xr=Math.max(xr,(x?aa.width:aa.height)+a.computeBusNodeSpacing(Do)-Ct))}else tt===1&&(Fn=x?E[0].Da.width:E[0].Da.height);if(rt)switch(lt){case Ec:case Fd:ge=135>b?hx(a,y,E,Fn,le,ge):dx(a,y,E,Fn,le,ge),Fn=ge.x,le=ge.width,ge=ge.height;break;case Lc:for(yt=0;yt<tt;yt++)Dt=E[yt],be=Dt.Da,xr=yi===0?0:qt,x?(Dt.S.h(z-be.width,di+xr),le=Math.max(le,be.width),ge=Math.max(ge,di+xr+be.height),di+=xr+be.height):(Dt.S.h(Je+xr,z-be.height),le=Math.max(le,Je+xr+be.width),ge=Math.max(ge,be.height),Je+=xr+be.width),yi++;break;case Qd:for(z=0;z<tt;z++)yt=E[z],Dt=yt.Da,be=yi===0?0:qt,x?(yt.S.h(Ct/2+y.focus.x,di+be),le=Math.max(le,Dt.width),ge=Math.max(ge,di+be+Dt.height),di+=be+Dt.height):(yt.S.h(Je+be,Ct/2+y.focus.y),le=Math.max(le,Je+be+Dt.width),ge=Math.max(ge,Dt.height),Je+=be+Dt.width),yi++}else for(xr=0;xr<tt;xr++)gr=E[xr],Do=gr.Da,x?(0<yt&&0<yi&&Je+Ct+Do.width>yt&&(Je<z&&Df(y,lt,z-Je,0,Qn,xr-1),Pi++,yi=0,Qn=xr,be=ge,Je=0,di=135<b?-ge-qt:ge+qt),aa=yi===0?Dt:Ct,I0(a,gr,0,di),gr.S.h(Je+aa,di),le=Math.max(le,Je+aa+Do.width),ge=Math.max(ge,be+(Pi===0?0:qt)+Do.height),Je+=aa+Do.width):(0<yt&&0<yi&&di+Ct+Do.height>yt&&(di<z&&Df(y,lt,0,z-di,Qn,xr-1),Pi++,yi=0,Qn=xr,be=le,di=0,Je=135<b?-le-qt:le+qt),aa=yi===0?Dt:Ct,I0(a,gr,Je,0),gr.S.h(Je,di+aa),ge=Math.max(ge,di+aa+Do.height),le=Math.max(le,be+(Pi===0?0:qt)+Do.width),di+=aa+Do.height),yi++;switch(0<Pi&&(x?(ge+=Math.max(0,ot),Je<le&&Df(y,lt,le-Je,0,Qn,tt-1),0<Wt&&(ft||sg(y,Wt,0,0,tt-1),le+=Wt)):(le+=Math.max(0,ot),di<ge&&Df(y,lt,0,ge-di,Qn,tt-1),0<Wt&&(ft||sg(y,0,Wt,0,tt-1),ge+=Wt))),Wt=ft=0,lt){case Jg:x?ft+=le/2-y.focus.x-bt/2:Wt+=ge/2-y.focus.y-bt/2;break;case ug:0<Pi?x?ft+=le/2-y.focus.x-bt/2:Wt+=ge/2-y.focus.y-bt/2:x?(a=E[0].S.x+E[0].la.x,ft+=a+(E[tt-1].S.x+E[tt-1].la.x+2*E[tt-1].focus.x-a)/2-y.focus.x-bt/2):(a=E[0].S.y+E[0].la.y,Wt+=a+(E[tt-1].S.y+E[tt-1].la.y+2*E[tt-1].focus.y-a)/2-y.focus.y-bt/2);break;case Ad:x?(ft-=bt,le+=bt):(Wt-=bt,ge+=bt);break;case kd:x?(ft+=le-y.width+bt,le+=bt):(Wt+=ge-y.height+bt,ge+=bt);break;case Ec:case Fd:x?1<tt?ft+=Fn+Ct/2-y.focus.x:ft+=E[0].focus.x-y.focus.x+E[0].la.x:1<tt?Wt+=Fn+Ct/2-y.focus.y:Wt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Lc:x?ft+=le+Ct/2-y.focus.x:Wt+=ge+Ct/2-y.focus.y;break;case Qd:break;default:a=a.customAlignment(y,ft,Wt,le,ge),ft=a[0],Wt=a[1],le=a[2],ge=a[3]}for(a=0;a<tt;a++)bt=E[a],x?bt.S.h(bt.S.x+bt.la.x-ft,bt.S.y+(135<b?(rt?-ge:-bt.Da.height)+bt.la.y-ot:ae+ot+bt.la.y)):bt.S.h(bt.S.x+(135<b?(rt?-le:-bt.Da.width)+bt.la.x-ot:ut+ot+bt.la.x),bt.S.y+bt.la.y-Wt);x?(le=ky(y,le,ft),0>ft&&(ft=0),135<b&&(Wt+=ge+ot),ge=Math.max(Math.max(ge,ae),ge+ae+ot)):(135<b&&(ft+=le+ot),le=Math.max(Math.max(le,ut),le+ut+ot),ge=Fy(y,ge,Wt),0>Wt&&(Wt=0)),y.la.h(ft,Wt),y.Da.h(le,ge)}}to.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new fn(b,0,E,z);if(tt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new fn(b,0,E,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,lt=Nh(y)===90,ut=0,ft=0,yt=0,Ct=0;Ct<tt;Ct++)if(!(Ct%2!==0||1<tt&&Ct===tt-1)){var bt=x[Ct],Dt=bt.Da,qt=ut===0?0:ot;if(lt){var Wt=a.computeBusNodeSpacing(bt)-rt;bt.S.h(b-(Dt.width+Wt),yt+qt),E=Math.max(E,Dt.width+Wt),z=Math.max(z,yt+qt+Dt.height),yt+=qt+Dt.height}else Wt=a.computeBusNodeSpacing(bt)-rt,bt.S.h(ft+qt,b-(Dt.height+Wt)),z=Math.max(z,Dt.height+Wt),E=Math.max(E,ft+qt+Dt.width),ft+=qt+Dt.width;ut++}for(ut=0,bt=ft,Ct=yt,lt?(ft=b+rt,yt=0):(ft=0,yt=b+rt),Dt=0;Dt<tt;Dt++)if(Dt%2!==0){qt=x[Dt],Wt=qt.Da;var ae=ut===0?0:ot;if(lt){var le=a.computeBusNodeSpacing(qt)-rt;qt.S.h(ft+le,yt+ae),E=Math.max(E,ft+Wt.width+le),z=Math.max(z,yt+ae+Wt.height),yt+=ae+Wt.height}else le=a.computeBusNodeSpacing(qt)-rt,qt.S.h(ft+ae,yt+le),E=Math.max(E,ft+ae+Wt.width),z=Math.max(z,yt+Wt.height+le),ft+=ae+Wt.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,lt?Math.max(Math.abs(Ct),Math.abs(yt)):Math.max(Math.abs(bt),Math.abs(ft))),lt?(x.S.h(b+rt/2-x.focus.x-x.la.x,z+a),lt=b+rt/2-x.focus.x-x.la.x,E=Math.max(E,lt+tt.width),0>lt&&(E-=lt),z=Math.max(z,Math.max(Ct,yt)+a+tt.height),0>x.S.x&&(b=O0(y,x.S.x,!1,b,rt))):(x.S.h(E+a,b+rt/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(bt,ft)+a+tt.width),yt=b+rt/2-x.focus.y-x.la.y,z=Math.max(z,yt+tt.height),0>yt&&(z-=yt),0>x.S.y&&(b=O0(y,x.S.y,!0,b,rt)))),new fn(b,0,E,z)}function dx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new fn(b,0,E,z);if(tt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new fn(b,0,E,z);for(var rt=y.nodeSpacing,ot=y.rowSpacing,lt=Nh(y)===270,ut=0,ft=0,yt=0,Ct=0;Ct<tt;Ct++)if(!(Ct%2!==0||1<tt&&Ct===tt-1)){var bt=x[Ct],Dt=bt.Da,qt=ut===0?0:ot;if(lt){var Wt=a.computeBusNodeSpacing(bt)-rt;yt-=qt+Dt.height,bt.S.h(b-(Dt.width+Wt),yt),E=Math.max(E,Dt.width+Wt),z=Math.max(z,Math.abs(yt))}else Wt=a.computeBusNodeSpacing(bt)-rt,ft-=qt+Dt.width,bt.S.h(ft,b-(Dt.height+Wt)),z=Math.max(z,Dt.height+Wt),E=Math.max(E,Math.abs(ft));ut++}for(ut=0,bt=ft,Ct=yt,lt?(ft=b+rt,yt=0):(ft=0,yt=b+rt),Dt=0;Dt<tt;Dt++)if(Dt%2!==0){qt=x[Dt],Wt=qt.Da;var ae=ut===0?0:ot;if(lt){var le=a.computeBusNodeSpacing(qt)-rt;yt-=ae+Wt.height,qt.S.h(ft+le,yt),E=Math.max(E,ft+Wt.width+le),z=Math.max(z,Math.abs(yt))}else le=a.computeBusNodeSpacing(qt)-rt,ft-=ae+Wt.width,qt.S.h(ft,yt+le),z=Math.max(z,yt+Wt.height+le),E=Math.max(E,Math.abs(ft));ut++}for(1<tt&&tt%2===1&&(ot=x[tt-1],ut=ot.Da,a=a.computeBusLastRowSpacing(ot,lt?Math.max(Math.abs(Ct),Math.abs(yt)):Math.max(Math.abs(bt),Math.abs(ft))),lt?(ot.S.h(b+rt/2-ot.focus.x-ot.la.x,-z-ut.height-a),ft=b+rt/2-ot.focus.x-ot.la.x,E=Math.max(E,ft+ut.width),0>ft&&(E-=ft),z=Math.max(z,Math.abs(Math.min(Ct,yt))+a+ut.height),0>ot.S.x&&(b=O0(y,ot.S.x,!1,b,rt))):(ot.S.h(-E-ut.width-a,b+rt/2-ot.focus.y-ot.la.y),E=Math.max(E,Math.abs(Math.min(bt,ft))+a+ut.width),yt=b+rt/2-ot.focus.y-ot.la.y,z=Math.max(z,yt+ut.height),0>yt&&(z-=yt),0>ot.S.y&&(b=O0(y,ot.S.y,!0,b,rt)))),y=0;y<tt;y++)rt=x[y],lt?rt.S.h(rt.S.x,rt.S.y+z):rt.S.h(rt.S.x+E,rt.S.y);return new fn(b,0,E,z)}to.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},to.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function O0(a,y,x,b,E){a=a.children;for(var z=a.length,tt=0;tt<z;tt++)x?a[tt].S.h(a[tt].S.x,a[tt].S.y-y):a[tt].S.h(a[tt].S.x-y,a[tt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function ky(a,y,x){switch(a.alignment){case ug:case Jg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Ad:return a.width>y?a.width:y;case kd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Ec:case Fd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Lc:return a.width-a.focus.x+a.nodeSpacing/2+y;case Qd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Fy(a,y,x){switch(a.alignment){case ug:case Jg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Ad:return a.height>y?a.height:y;case kd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Ec:case Fd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Lc:return a.height-a.focus.y+a.nodeSpacing/2+y;case Qd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a){case Jg:y/=2,x/=2;break;case ug:y/=2,x/=2;break;case Ad:x=y=0;break;case kd:break;default:ue("Unhandled alignment value "+a.toString())}return new Vt(y,x)}function Df(a,y,x,b,E,z){y=Ny(y,x,b),sg(a,y.x,y.y,E,z)}function sg(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function I0(a,y,x,b){var E=y.parent;switch(a.ud){case Md:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case lg:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:ue("Unhandled path value "+a.ud.toString())}}function R0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function cx(a,y,x,b,E,z,tt,rt){var ot=Nh(y),lt=ot===90||ot===270,ut=y.nodeSpacing;y=b;var ft=E;b=z;var yt=tt,Ct=x.Yo,bt=x.kp;tt=x.Da;var Dt=lt?Math.max(yt,tt.height):Math.max(b,tt.width);if((Ct===null||ot!==Nh(x))&&(Ct=pu(a,2),bt=pu(a,2),lt?(Ct[0].h(0,0),Ct[1].h(0,tt.height),bt[0].h(tt.width,0),bt[1].h(bt[0].x,Ct[1].y)):(Ct[0].h(0,0),Ct[1].h(tt.width,0),bt[0].h(0,tt.height),bt[1].h(Ct[1].x,bt[0].y))),lt){if(yt=9999999,!(ft===null||2>ft.length||Ct===null||2>Ct.length))for(E=x=0;x<ft.length&&E<Ct.length;){z=ft[x];var qt=Ct[E];ot=qt.x,lt=qt.y,ot+=b;var Wt=z;x+1<ft.length&&(Wt=ft[x+1]);var ae=qt;qt=ae.x,ae=ae.y,E+1<Ct.length&&(ae=Ct[E+1],qt=ae.x,ae=ae.y,qt+=b);var le=yt;z.y===lt?le=ot-z.x:z.y>lt&&z.y<ae?le=ot+(z.y-lt)/(ae-lt)*(qt-ot)-z.x:lt>z.y&&lt<Wt.y&&(le=ot-(z.x+(lt-z.y)/(Wt.y-z.y)*(Wt.x-z.x))),le<yt&&(yt=le),Wt.y<=z.y?x++:ae<=lt?E++:(Wt.y<=ae&&x++,ae<=Wt.y&&E++)}if(yt=b-yt,yt+=ut,x=Ct,E=yt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=pu(a,y.length+x.length),b=z=ot=0;z<x.length&&x[z].y<y[0].y;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(;ot<y.length;)lt=y[ot++],ut[b++].h(lt.x,lt.y);for(ot=y[y.length-1].y;z<x.length&&x[z].y<=ot;)z++;for(;z<x.length&&x[z].y>ot;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(x=pu(a,b),ot=0;ot<b;ot++)x[ot].assign(ut[ot]);Uh(a,ut),b=x}if(z=bt,ot=yt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=pu(a,ft.length+z.length),E=lt=x=0;x<ft.length&&ft[x].y<z[0].y;)Wt=ft[x++],ut[E++].h(Wt.x,Wt.y);for(;lt<z.length;)Wt=z[lt++],ut[E++].h(Wt.x+ot,Wt.y);for(z=z[z.length-1].y;x<ft.length&&ft[x].y<=z;)x++;for(;x<ft.length&&ft[x].y>z;)ot=ft[x++],ut[E++].h(ot.x,ot.y);for(z=pu(a,E),x=0;x<E;x++)z[x].assign(ut[x]);Uh(a,ut),E=z}return z=Math.max(0,yt)+tt.width,tt=Dt,Uh(a,y),Uh(a,Ct),Uh(a,ft),Uh(a,bt),rt[0]=b,rt[1]=E,new fn(yt,0,z,tt)}if(b=9999999,!(ft===null||2>ft.length||Ct===null||2>Ct.length))for(E=x=0;x<ft.length&&E<Ct.length;)z=ft[x],qt=Ct[E],ot=qt.x,lt=qt.y,lt+=yt,Wt=z,x+1<ft.length&&(Wt=ft[x+1]),ae=qt,qt=ae.x,ae=ae.y,E+1<Ct.length&&(ae=Ct[E+1],qt=ae.x,ae=ae.y,ae+=yt),le=b,z.x===ot?le=lt-z.y:z.x>ot&&z.x<qt?le=lt+(z.x-ot)/(qt-ot)*(ae-lt)-z.y:ot>z.x&&ot<Wt.x&&(le=lt-(z.y+(ot-z.x)/(Wt.x-z.x)*(Wt.y-z.y))),le<b&&(b=le),Wt.x<=z.x?x++:qt<=ot?E++:(Wt.x<=qt&&x++,qt<=Wt.x&&E++);if(yt-=b,yt+=ut,x=Ct,E=yt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=pu(a,y.length+x.length),b=z=ot=0;z<x.length&&x[z].x<y[0].x;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(;ot<y.length;)lt=y[ot++],ut[b++].h(lt.x,lt.y);for(ot=y[y.length-1].x;z<x.length&&x[z].x<=ot;)z++;for(;z<x.length&&x[z].x>ot;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(x=pu(a,b),ot=0;ot<b;ot++)x[ot].assign(ut[ot]);Uh(a,ut),b=x}if(z=bt,ot=yt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=pu(a,ft.length+z.length),E=lt=x=0;x<ft.length&&ft[x].x<z[0].x;)Wt=ft[x++],ut[E++].h(Wt.x,Wt.y);for(;lt<z.length;)Wt=z[lt++],ut[E++].h(Wt.x,Wt.y+ot);for(z=z[z.length-1].x;x<ft.length&&ft[x].x<=z;)x++;for(;x<ft.length&&ft[x].x>z;)ot=ft[x++],ut[E++].h(ot.x,ot.y);for(z=pu(a,E),x=0;x<E;x++)z[x].assign(ut[x]);Uh(a,ut),E=z}return z=Dt,tt=Math.max(0,yt)+tt.height,Uh(a,y),Uh(a,Ct),Uh(a,ft),Uh(a,bt),rt[0]=b,rt[1]=E,new fn(yt,0,z,tt)}function pu(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 Vt;return a}function Uh(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}to.prototype.arrangeTrees=function(){if(this.Rb===Z0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof gh){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),Ty(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof gh&&a.push(x);switch(this.sorting){case Xg:break;case _p:a.reverse();break;case tm:a.sort(this.comparer);break;case em:a.sort(this.comparer),a.reverse();break;default:ue("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(Ty(this,E,y+E.la.x,x+E.la.y),this.Rb){case W0:x+=E.Da.height+this.$d.height;break;case Iy:y+=E.Da.width+this.$d.width;break;default:ue("Unhandled arrangement value "+this.Rb.toString())}}}};function Ty(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var tt=y[z];Ty(a,tt,x+tt.S.x,b+tt.S.y)}}}to.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},to.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},to.prototype.Gu=function(){if(this.layerStyle===G0){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new Vt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Vt(-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 tt=0;tt<a.length;tt++)z+=a[tt]+y[tt];for(tt=0;tt<a.length;tt++){var rt=a[tt]+y[tt];this.angle===270?(z-=rt,E.push(new fn(0,z,x,rt))):this.angle===90?(E.push(new fn(0,z,x,rt)),z+=rt):this.angle===180?(z-=rt,E.push(new fn(z,0,rt,x))):(E.push(new fn(z,0,rt,x)),z+=rt)}this.commitLayers(E,b)}},to.prototype.commitLayers=function(){},to.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},to.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof gh&&fx(this,y)}};function fx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fx(a,y[b])}}to.prototype.setPortSpots=function(a){var y=a.alignment;if(nf(y)){var x=this.ud===Md,b=Nh(a);switch(b){case 0:var E=Ms;break;case 90:E=bs;break;case 180:E=hs;break;default:E=ts}var z=a.children,tt=z.length;switch(y){case Ec:case Fd:for(y=0;y<tt;y++){var rt=z[y];if(rt=(x?rt.sourceEdges:rt.destinationEdges).first(),rt!==null&&(rt=rt.link,rt!==null)){var ot=b===90||b===270?hs:ts;if(tt===1||y===tt-1&&tt%2===1)switch(b){case 0:ot=hs;break;case 90:ot=ts;break;case 180:ot=Ms;break;default:ot=bs}else y%2===0&&(ot=b===90||b===270?Ms:bs);x?(a.setsPortSpot&&(rt.fromSpot=E),a.setsChildPortSpot&&(rt.toSpot=ot)):(a.setsPortSpot&&(rt.fromSpot=ot),a.setsChildPortSpot&&(rt.toSpot=E))}}break;case Lc:for(b=b===90||b===270?Ms:bs,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)));break;case Qd:for(b=b===90||b===270?hs:ts,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)))}}else if(x=Nh(a),this.ud===Md){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Ms;break;case 90:b.fromSpot=bs;break;case 180:b.fromSpot=hs;break;default:b.fromSpot=ts}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=hs;break;case 90:b.toSpot=ts;break;case 180:b.toSpot=Ms;break;default:b.toSpot=bs}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=Ms;break;case 90:b.toSpot=bs;break;case 180:b.toSpot=hs;break;default:b.toSpot=ts}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=hs;break;case 90:b.fromSpot=ts;break;case 180:b.fromSpot=Ms;break;default:b.fromSpot=bs}else b.fromSpot=a.childPortSpot}};function Nh(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}to.prototype.computeLayerSpacing=function(a){var y=Nh(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},to.prototype.computeNodeIndent=function(a){var y=Nh(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},Jt.Object.defineProperties(to.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==H0&&a!==By&&a!==Dy&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==zy&&a!==G0||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==W0&&a!==Iy&&a!==Z0||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==Xg&&a!==_p&&a!==tm&&!em||(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()):ue("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==j0&&a!==nm||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Xg&&a!==_p&&a!==tm&&!em||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==j0&&a!==nm||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var z0=new sn(to,"PathDefault",-1),Md=new sn(to,"PathDestination",0),lg=new sn(to,"PathSource",1),Xg=new sn(to,"SortingForwards",10),_p=new sn(to,"SortingReverse",11),tm=new sn(to,"SortingAscending",12),em=new sn(to,"SortingDescending",13),Jg=new sn(to,"AlignmentCenterSubtrees",20),ug=new sn(to,"AlignmentCenterChildren",21),Ad=new sn(to,"AlignmentStart",22),kd=new sn(to,"AlignmentEnd",23),Ec=new sn(to,"AlignmentBus",24),Fd=new sn(to,"AlignmentBusBranching",25),Lc=new sn(to,"AlignmentTopLeftBus",26),Qd=new sn(to,"AlignmentBottomRightBus",27),j0=new sn(to,"CompactionNone",30),nm=new sn(to,"CompactionBlock",31),H0=new sn(to,"StyleLayered",40),Dy=new sn(to,"StyleLastParents",41),By=new sn(to,"StyleAlternating",42),Oy=new sn(to,"StyleRootOnly",43),W0=new sn(to,"ArrangementVertical",50),Iy=new sn(to,"ArrangementHorizontal",51),Z0=new sn(to,"ArrangementFixedRoots",52),Ry=new sn(to,"LayerIndividual",60),zy=new sn(to,"LayerSiblings",61),G0=new sn(to,"LayerUniform",62);to.className="TreeLayout",to.PathDefault=z0,to.PathDestination=Md,to.PathSource=lg,to.SortingForwards=Xg,to.SortingReverse=_p,to.SortingAscending=tm,to.SortingDescending=em,to.AlignmentCenterSubtrees=Jg,to.AlignmentCenterChildren=ug,to.AlignmentStart=Ad,to.AlignmentEnd=kd,to.AlignmentBus=Ec,to.AlignmentBusBranching=Fd,to.AlignmentTopLeftBus=Lc,to.AlignmentBottomRightBus=Qd,to.CompactionNone=j0,to.CompactionBlock=nm,to.StyleLayered=H0,to.StyleLastParents=Dy,to.StyleAlternating=By,to.StyleRootOnly=Oy,to.ArrangementVertical=W0,to.ArrangementHorizontal=Iy,to.ArrangementFixedRoots=Z0,to.LayerIndividual=Ry,to.LayerSiblings=zy,to.LayerUniform=G0;function hg(a){ua.call(this,a)}Qe(hg,ua),hg.prototype.createVertex=function(){return new gh(this)},hg.prototype.createEdge=function(){return new Qg(this)},hg.className="TreeNetwork";function gh(a){zs.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Vt(0,0),this.Da=new ri(0,0),this.la=new Vt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xg,this.hd=ry,this.Kb=0,this.Jb=ug,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=nm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Bo,this.wr=!0,this.Dp=Bo}Qe(gh,zs),gh.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)},Jt.Object.defineProperties(gh.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)}}}),gh.className="TreeVertex";function Qg(a){Mu.call(this,a),this.$t=new Vt(0,0)}Qe(Qg,Mu),Qg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case Md:x=this.fromVertex,b=this.toVertex;break;case lg:x=this.toVertex,b=this.fromVertex;break;default:ue("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=Nh(x),tt=y.computeLayerSpacing(x),rt=x.rowSpacing;a.vg();var ot=a.curve===zu,lt=a.isOrthogonal,ut;if(a.uh(),lt||ot){for(ut=2;4<a.pointsCount;)a.pv(2);var ft=a.i(1),yt=a.i(2)}else{for(ut=1;3<a.pointsCount;)a.pv(1);ft=a.i(0),yt=a.i(a.pointsCount-1)}var Ct=a.i(a.pointsCount-1);z===0?(x.alignment===kd?(z=b.bottom+E.y,E.y===0&&ft.y>Ct.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&ft.y<Ct.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.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,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,b.right+tt,z),ut++,a.m(ut,b.right+tt+(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+2*(E.x-rt)/3,z),ut++,a.m(ut,b.right+tt+(E.x-rt),z),ut++,a.m(ut,yt.x,z)):(lt&&(a.m(ut,b.right+tt/2,ft.y),ut++),a.m(ut,b.right+tt/2,z),ut++,a.m(ut,b.right+tt+E.x-(lt?rt/2:rt),z),ut++,lt&&a.m(ut,a.i(ut-1).x,yt.y))):z===90?(x.alignment===kd?(z=b.right+E.x,E.x===0&&ft.x>Ct.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&ft.x<Ct.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.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,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.bottom+tt),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+2*(E.y-rt)/3),ut++,a.m(ut,z,b.bottom+tt+(E.y-rt)),ut++,a.m(ut,z,yt.y)):(lt&&(a.m(ut,ft.x,b.bottom+tt/2),ut++),a.m(ut,z,b.bottom+tt/2),ut++,a.m(ut,z,b.bottom+tt+E.y-(lt?rt/2:rt)),ut++,lt&&a.m(ut,yt.x,a.i(ut-1).y))):z===180?(x.alignment===kd?(z=b.bottom+E.y,E.y===0&&ft.y>Ct.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.top+E.y,E.y===0&&ft.y<Ct.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.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,ot?(a.m(ut,ft.x,z),ut++,a.m(ut,b.left-tt,z),ut++,a.m(ut,b.left-tt+(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+2*(E.x+rt)/3,z),ut++,a.m(ut,b.left-tt+(E.x+rt),z),ut++,a.m(ut,yt.x,z)):(lt&&(a.m(ut,b.left-tt/2,ft.y),ut++),a.m(ut,b.left-tt/2,z),ut++,a.m(ut,b.left-tt+E.x+(lt?rt/2:rt),z),ut++,lt&&a.m(ut,a.i(ut-1).x,yt.y))):z===270?(x.alignment===kd?(z=b.right+E.x,E.x===0&&ft.x>Ct.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Ad?(z=b.left+E.x,E.x===0&&ft.x<Ct.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.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,ot?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.top-tt),ut++,a.m(ut,z,b.top-tt+(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+2*(E.y+rt)/3),ut++,a.m(ut,z,b.top-tt+(E.y+rt)),ut++,a.m(ut,z,yt.y)):(lt&&(a.m(ut,ft.x,b.top-tt/2),ut++),a.m(ut,z,b.top-tt/2),ut++,a.m(ut,z,b.top-tt+E.y+(lt?rt/2:rt)),ut++,lt&&a.m(ut,yt.x,a.i(ut-1).y))):ue("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Nh(x),y!==Nh(E)&&(tt=b.computeLayerSpacing(x),rt=x.bounds,x=E.bounds,y===0&&x.left-rt.right<tt+1||y===90&&x.top-rt.bottom<tt+1||y===180&&rt.left-x.right<tt+1||y===270&&rt.top-x.bottom<tt+1||(a.vg(),x=a.curve===zu,E=a.isOrthogonal,b=nf(this.fromVertex.alignment),a.uh(),y===0?(y=rt.right+tt/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=rt.bottom+tt/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=rt.left-tt/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=rt.top-tt/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()))}}},Jt.Object.defineProperties(Qg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),Qg.className="TreeEdge",In.prototype.initializeStandardTools=function(){this.gb("Action",new ur,this.mouseDownTools),this.gb("Relinking",new vi,this.mouseDownTools),this.gb("LinkReshaping",new Si,this.mouseDownTools),this.gb("Rotating",new Fr,this.mouseDownTools),this.gb("Resizing",new pr,this.mouseDownTools),this.gb("Linking",new Rn,this.mouseMoveTools),this.gb("Dragging",new Ri,this.mouseMoveTools),this.gb("DragSelecting",new mr,this.mouseMoveTools),this.gb("Panning",new Wi,this.mouseMoveTools),this.gb("ContextMenu",new ao,this.mouseUpTools),this.gb("TextEditing",new _r,this.mouseUpTools),this.gb("ClickCreating",new zr,this.mouseUpTools),this.gb("ClickSelecting",new Eo,this.mouseUpTools)},ld("Horizontal",new ym),ld("Spot",new xm),ld("Table",new Pm),ld("Viewbox",new Em),ld("TableRow",new Cm),ld("TableColumn",new bm),ld("Graduated",new yp),ld("Grid",new vp),Zh.add("GraphLinksModel",$s),Zh.add("TreeModel",qu);var K0=ce.go,jy={get licenseKey(){return Ue.licenseKey},set licenseKey(a){Ue.licenseKey=a},get version(){return Ue.version},Group:Cr,EnumValue:sn,List:bn,Set:Mn,Map:ki,Point:Vt,Size:ri,Rect:fn,Margin:zi,Spot:Fi,Geometry:ti,PathFigure:Es,PathSegment:mo,InputEvent:Oe,DiagramEvent:He,ChangedEvent:vn,Model:Ti,GraphLinksModel:co,TreeModel:Yl,Binding:vs,Transaction:Ii,UndoManager:li,CommandHandler:$t,Tool:oi,DraggingTool:Ri,DraggingInfo:Kd,DraggingOptions:at,LinkingBaseTool:Ye,LinkingTool:Rn,RelinkingTool:vi,LinkReshapingTool:Si,ResizingTool:pr,RotatingTool:Fr,ClickSelectingTool:Eo,ActionTool:ur,ClickCreatingTool:zr,HTMLInfo:or,ContextMenuTool:ao,DragSelectingTool:mr,PanningTool:Wi,TextEditingTool:_r,ToolManager:In,Animation:Wa,AnimationManager:va,AnimationTrigger:_l,Layer:Ea,Diagram:Ue,Palette:ct,Overview:pt,Brush:Go,GraphObject:Le,Panel:Gn,RowColumnDefinition:Ts,Shape:Br,TextBlock:la,Picture:ru,Part:ji,Adornment:Ao,Node:ci,Link:$n,Placeholder:Zl,Layout:Fa,LayoutNetwork:ua,LayoutVertex:zs,LayoutEdge:Mu,GridLayout:rl,PanelLayout:Rs,CircularLayout:Za,CircularNetwork:Vg,CircularVertex:Yp,CircularEdge:b0,ForceDirectedLayout:pl,ForceDirectedNetwork:ag,ForceDirectedVertex:Up,ForceDirectedEdge:Xp,LayeredDigraphLayout:Vo,LayeredDigraphNetwork:Ug,LayeredDigraphVertex:th,LayeredDigraphEdge:$p,TreeLayout:to,TreeNetwork:hg,TreeVertex:gh,TreeEdge:Qg};typeof K0=="object"&&K0.version&&Hi("WARNING: a `go` object on the root object is already defined. "+("Debug"in K0?"debug ":"")+"version: "+K0.version+", replaced with version: "+jy.version),Ue.prototype.go=jy,ce.go=jy,typeof Bn.exports=="object"&&(Bn.exports=typeof St.g!="undefined"?St.g.go:self.go)}();var At=typeof St.g!="undefined"?St.g.go:self.go;const zt=typeof St.g!="undefined"?St.g.go:self.go,oe=zt.Group,Me=zt.EnumValue,Xt=zt.List,Se=zt.Set,Nt=zt.Map,Ne=zt.Point,Pe=zt.Size,ne=zt.Rect,xe=zt.Margin,we=zt.Spot,Ce=zt.Geometry,Tt=zt.PathFigure,et=zt.PathSegment,nt=zt.InputEvent,ht=zt.DiagramEvent,st=zt.ChangedEvent,gt=zt.Model,vt=zt.GraphLinksModel,Pt=zt.TreeModel,Ft=zt.Binding,wt=zt.Transaction,Ot=zt.UndoManager,Ht=zt.CommandHandler,Zt=zt.Tool,Ut=zt.DraggingTool,fe=zt.DraggingInfo,Yt=zt.LinkingBaseTool,Xe=zt.LinkingTool,pe=zt.RelinkingTool,tn=zt.LinkReshapingTool,Ve=zt.ResizingTool,We=zt.RotatingTool,_e=zt.ClickSelectingTool,Tn=zt.ActionTool,ye=zt.ClickCreatingTool,Gt=zt.HTMLInfo,nn=zt.ContextMenuTool,Zn=zt.DragSelectingTool,_n=zt.PanningTool,Te=zt.TextEditingTool,rn=zt.ToolManager,gn=zt.Animation,Vn=zt.AnimationManager,cn=zt.AnimationTrigger,Hn=zt.Layer,me=zt.Diagram,Un=zt.Palette,ii=zt.Overview,xn=zt.Brush,ni=zt.GraphObject,ze=zt.Panel,Ie=zt.RowColumnDefinition,ke=zt.Shape,se=zt.TextBlock,$e=zt.TextBlockMetrics,Ze=zt.Picture,ee=zt.Part,re=zt.Adornment,Bt=zt.Node,xt=zt.Link,mt=zt.Placeholder,kt=zt.Layout,jt=zt.LayoutNetwork,Lt=zt.LayoutVertex,he=zt.LayoutEdge,Re=zt.GridLayout,on=zt.PanelLayout,de=zt.CircularLayout,De=zt.CircularNetwork,Ke=zt.CircularVertex,An=zt.CircularEdge,Yn=zt.ForceDirectedLayout,gi=zt.ForceDirectedNetwork,fi=zt.ForceDirectedVertex,xi=zt.ForceDirectedEdge,Gi=zt.LayeredDigraphLayout,yr=zt.LayeredDigraphNetwork,lr=zt.LayeredDigraphVertex,rr=zt.LayeredDigraphEdge,Rr=zt.TreeLayout,Nr=zt.TreeNetwork,Ji=zt.TreeVertex,Wr=zt.TreeEdge,Xi=zt.version},17115:function(Bn,Cn,St){"use strict";St.d(Cn,{ZP:function(){return Nt}});var At=St(72071),zt=St(59301),oe=St(47273),Me=0,Xt=(0,oe.Z)();function Se(){var Ne;return Xt?(Ne=Me,Me+=1):Ne="TEST_OR_SSR",Ne}function Nt(Ne){var Pe=zt.useState(),ne=(0,At.Z)(Pe,2),xe=ne[0],we=ne[1];return zt.useEffect(function(){we("rc_select_".concat(Se()))},[]),Ne||xe}},77861:function(Bn,Cn,St){"use strict";St.d(Cn,{Ac:function(){return kt},Xo:function(){return xi},Wx:function(){return yr},ZP:function(){return On},lk:function(){return Pt}});var At=St(96663),zt=St(19127),oe=St(90493),Me=St(44127),Xt=St(72071),Se=St(6620),Nt=St(20135),Ne=St(18929),Pe=St(48736),ne=St(59301),xe=St(92310),we=St.n(xe),Ce=St(34280),Tt=St(49658),et=St(10228),nt=St(8654),ht=function(ce){var mn=ce.className,Wn=ce.customizeIcon,Mi=ce.customizeIconProps,pi=ce.onMouseDown,ue=ce.onClick,Nn=ce.children,ui;return typeof Wn=="function"?ui=Wn(Mi):ui=Wn,ne.createElement("span",{className:mn,onMouseDown:function(Ge){Ge.preventDefault(),pi&&pi(Ge)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ue,"aria-hidden":!0},ui!==void 0?ui:ne.createElement("span",{className:we()(mn.split(/\s+/).map(function(Hi){return"".concat(Hi,"-icon")}))},Nn))},st=ht;function gt(Ee,ce,mn,Wn,Mi){var pi=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ue=arguments.length>6?arguments[6]:void 0,Nn=arguments.length>7?arguments[7]:void 0,ui=ne.useMemo(function(){if((0,Nt.Z)(Wn)==="object")return Wn.clearIcon;if(Mi)return Mi},[Wn,Mi]),Hi=ne.useMemo(function(){return!!(!pi&&Wn&&(mn.length||ue)&&!(Nn==="combobox"&&ue===""))},[Wn,pi,mn.length,ue,Nn]);return{allowClear:Hi,clearIcon:ne.createElement(st,{className:"".concat(Ee,"-clear"),onMouseDown:ce,customizeIcon:ui},"\xD7")}}var vt=ne.createContext(null);function Pt(){return ne.useContext(vt)}function Ft(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ce=ne.useState(!1),mn=(0,Xt.Z)(ce,2),Wn=mn[0],Mi=mn[1],pi=ne.useRef(null),ue=function(){window.clearTimeout(pi.current)};ne.useEffect(function(){return ue},[]);var Nn=function(Hi,Ge){ue(),pi.current=window.setTimeout(function(){Mi(Hi),Ge&&Ge()},Ee)};return[Wn,Nn,ue]}function wt(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ce=ne.useRef(null),mn=ne.useRef(null);ne.useEffect(function(){return function(){window.clearTimeout(mn.current)}},[]);function Wn(Mi){(Mi||ce.current===null)&&(ce.current=Mi),window.clearTimeout(mn.current),mn.current=window.setTimeout(function(){ce.current=null},Ee)}return[function(){return ce.current},Wn]}function Ot(Ee,ce,mn,Wn){var Mi=ne.useRef(null);Mi.current={open:ce,triggerOpen:mn,customizedTrigger:Wn},ne.useEffect(function(){function pi(ue){var Nn;if(!((Nn=Mi.current)!==null&&Nn!==void 0&&Nn.customizedTrigger)){var ui=ue.target;ui.shadowRoot&&ue.composed&&(ui=ue.composedPath()[0]||ui),Mi.current.open&&Ee().filter(function(Hi){return Hi}).every(function(Hi){return!Hi.contains(ui)&&Hi!==ui})&&Mi.current.triggerOpen(!1)}}return window.addEventListener("mousedown",pi),function(){return window.removeEventListener("mousedown",pi)}},[])}var Ht=St(26112),Zt=St(11780),Ut=function(ce,mn){var Wn,Mi,pi=ce.prefixCls,ue=ce.id,Nn=ce.inputElement,ui=ce.disabled,Hi=ce.tabIndex,Ge=ce.autoFocus,pn=ce.autoComplete,je=ce.editable,hn=ce.activeDescendantId,yn=ce.value,dn=ce.maxLength,kn=ce.onKeyDown,Ln=ce.onMouseDown,Kn=ce.onChange,Jn=ce.onPaste,Zi=ce.onCompositionStart,en=ce.onCompositionEnd,qi=ce.open,Er=ce.attrs,nr=Nn||ne.createElement("input",null),sn=nr,si=sn.ref,Ai=sn.props,Ki=Ai.onKeyDown,Di=Ai.onChange,vr=Ai.onMouseDown,Pr=Ai.onCompositionStart,tr=Ai.onCompositionEnd,Oi=Ai.style;return(0,Pe.Kp)(!("maxLength"in nr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),nr=ne.cloneElement(nr,(0,Me.Z)((0,Me.Z)((0,Me.Z)({type:"search"},Ai),{},{id:ue,ref:(0,nt.sQ)(mn,si),disabled:ui,tabIndex:Hi,autoComplete:pn||"off",autoFocus:Ge,className:we()("".concat(pi,"-selection-search-input"),(Wn=nr)===null||Wn===void 0||(Mi=Wn.props)===null||Mi===void 0?void 0:Mi.className),role:"combobox","aria-label":"Search","aria-expanded":qi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ue,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ue,"_list"),"aria-activedescendant":qi?hn:void 0},Er),{},{value:je?yn:"",maxLength:dn,readOnly:!je,unselectable:je?null:"on",style:(0,Me.Z)((0,Me.Z)({},Oi),{},{opacity:je?null:0}),onKeyDown:function(bn){kn(bn),Ki&&Ki(bn)},onMouseDown:function(bn){Ln(bn),vr&&vr(bn)},onChange:function(bn){Kn(bn),Di&&Di(bn)},onCompositionStart:function(bn){Zi(bn),Pr&&Pr(bn)},onCompositionEnd:function(bn){en(bn),tr&&tr(bn)},onPaste:Jn})),nr},fe=ne.forwardRef(Ut);fe.displayName="Input";var Yt=fe;function Xe(Ee){return Array.isArray(Ee)?Ee:Ee!==void 0?[Ee]:[]}var pe=typeof window!="undefined"&&window.document&&window.document.documentElement,tn=pe;function Ve(Ee){return Ee!=null}function We(Ee){return!Ee&&Ee!==0}function _e(Ee){return["string","number"].includes((0,Nt.Z)(Ee))}function Tn(Ee){var ce=void 0;return Ee&&(_e(Ee.title)?ce=Ee.title.toString():_e(Ee.label)&&(ce=Ee.label.toString())),ce}function ye(Ee,ce){tn?ne.useLayoutEffect(Ee,ce):ne.useEffect(Ee,ce)}function Gt(Ee){var ce;return(ce=Ee.key)!==null&&ce!==void 0?ce:Ee.value}var nn=function(ce){ce.preventDefault(),ce.stopPropagation()},Zn=function(ce){var mn=ce.id,Wn=ce.prefixCls,Mi=ce.values,pi=ce.open,ue=ce.searchValue,Nn=ce.autoClearSearchValue,ui=ce.inputRef,Hi=ce.placeholder,Ge=ce.disabled,pn=ce.mode,je=ce.showSearch,hn=ce.autoFocus,yn=ce.autoComplete,dn=ce.activeDescendantId,kn=ce.tabIndex,Ln=ce.removeIcon,Kn=ce.maxTagCount,Jn=ce.maxTagTextLength,Zi=ce.maxTagPlaceholder,en=Zi===void 0?function(fo){return"+ ".concat(fo.length," ...")}:Zi,qi=ce.tagRender,Er=ce.onToggleOpen,nr=ce.onRemove,sn=ce.onInputChange,si=ce.onInputPaste,Ai=ce.onInputKeyDown,Ki=ce.onInputMouseDown,Di=ce.onInputCompositionStart,vr=ce.onInputCompositionEnd,Pr=ne.useRef(null),tr=(0,ne.useState)(0),Oi=(0,Xt.Z)(tr,2),Lr=Oi[0],bn=Oi[1],wo=(0,ne.useState)(!1),Mn=(0,Xt.Z)(wo,2),Or=Mn[0],ea=Mn[1],bo="".concat(Wn,"-selection"),ca=pi||pn==="multiple"&&Nn===!1||pn==="tags"?ue:"",qo=pn==="tags"||pn==="multiple"&&Nn===!1||je&&(pi||Or);ye(function(){bn(Pr.current.scrollWidth)},[ca]);function dr(fo,_o,ro,Yo,ya){return ne.createElement("span",{className:we()("".concat(bo,"-item"),(0,oe.Z)({},"".concat(bo,"-item-disabled"),ro)),title:Tn(fo)},ne.createElement("span",{className:"".concat(bo,"-item-content")},_o),Yo&&ne.createElement(st,{className:"".concat(bo,"-item-remove"),onMouseDown:nn,onClick:ya,customizeIcon:Ln},"\xD7"))}function er(fo,_o,ro,Yo,ya){var Ar=function(uo){nn(uo),Er(!pi)};return ne.createElement("span",{onMouseDown:Ar},qi({label:_o,value:fo,disabled:ro,closable:Yo,onClose:ya}))}function eo(fo){var _o=fo.disabled,ro=fo.label,Yo=fo.value,ya=!Ge&&!_o,Ar=ro;if(typeof Jn=="number"&&(typeof ro=="string"||typeof ro=="number")){var Tr=String(Ar);Tr.length>Jn&&(Ar="".concat(Tr.slice(0,Jn),"..."))}var uo=function(Zo){Zo&&Zo.stopPropagation(),nr(fo)};return typeof qi=="function"?er(Yo,Ar,_o,ya,uo):dr(fo,Ar,_o,ya,uo)}function ko(fo){var _o=typeof en=="function"?en(fo):en;return dr({title:_o},_o,!1)}var ki=ne.createElement("div",{className:"".concat(bo,"-search"),style:{width:Lr},onFocus:function(){ea(!0)},onBlur:function(){ea(!1)}},ne.createElement(Yt,{ref:ui,open:pi,prefixCls:Wn,id:mn,inputElement:null,disabled:Ge,autoFocus:hn,autoComplete:yn,editable:qo,activeDescendantId:dn,value:ca,onKeyDown:Ai,onMouseDown:Ki,onChange:sn,onPaste:si,onCompositionStart:Di,onCompositionEnd:vr,tabIndex:kn,attrs:(0,Ht.Z)(ce,!0)}),ne.createElement("span",{ref:Pr,className:"".concat(bo,"-search-mirror"),"aria-hidden":!0},ca,"\xA0")),Vt=ne.createElement(Zt.Z,{prefixCls:"".concat(bo,"-overflow"),data:Mi,renderItem:eo,renderRest:ko,suffix:ki,itemKey:Gt,maxCount:Kn});return ne.createElement(ne.Fragment,null,Vt,!Mi.length&&!ca&&ne.createElement("span",{className:"".concat(bo,"-placeholder")},Hi))},_n=Zn,Te=function(ce){var mn=ce.inputElement,Wn=ce.prefixCls,Mi=ce.id,pi=ce.inputRef,ue=ce.disabled,Nn=ce.autoFocus,ui=ce.autoComplete,Hi=ce.activeDescendantId,Ge=ce.mode,pn=ce.open,je=ce.values,hn=ce.placeholder,yn=ce.tabIndex,dn=ce.showSearch,kn=ce.searchValue,Ln=ce.activeValue,Kn=ce.maxLength,Jn=ce.onInputKeyDown,Zi=ce.onInputMouseDown,en=ce.onInputChange,qi=ce.onInputPaste,Er=ce.onInputCompositionStart,nr=ce.onInputCompositionEnd,sn=ce.title,si=ne.useState(!1),Ai=(0,Xt.Z)(si,2),Ki=Ai[0],Di=Ai[1],vr=Ge==="combobox",Pr=vr||dn,tr=je[0],Oi=kn||"";vr&&Ln&&!Ki&&(Oi=Ln),ne.useEffect(function(){vr&&Di(!1)},[vr,Ln]);var Lr=Ge!=="combobox"&&!pn&&!dn?!1:!!Oi,bn=sn===void 0?Tn(tr):sn,wo=function(){if(tr)return null;var Or=Lr?{visibility:"hidden"}:void 0;return ne.createElement("span",{className:"".concat(Wn,"-selection-placeholder"),style:Or},hn)};return ne.createElement(ne.Fragment,null,ne.createElement("span",{className:"".concat(Wn,"-selection-search")},ne.createElement(Yt,{ref:pi,prefixCls:Wn,id:Mi,open:pn,inputElement:mn,disabled:ue,autoFocus:Nn,autoComplete:ui,editable:Pr,activeDescendantId:Hi,value:Oi,onKeyDown:Jn,onMouseDown:Zi,onChange:function(Or){Di(!0),en(Or)},onPaste:qi,onCompositionStart:Er,onCompositionEnd:nr,tabIndex:yn,attrs:(0,Ht.Z)(ce,!0),maxLength:vr?Kn:void 0})),!vr&&tr?ne.createElement("span",{className:"".concat(Wn,"-selection-item"),title:bn,style:Lr?{visibility:"hidden"}:void 0},tr.label):null,wo())},rn=Te;function gn(Ee){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(Ee)}var Vn=function(ce,mn){var Wn=(0,ne.useRef)(null),Mi=(0,ne.useRef)(!1),pi=ce.prefixCls,ue=ce.open,Nn=ce.mode,ui=ce.showSearch,Hi=ce.tokenWithEnter,Ge=ce.autoClearSearchValue,pn=ce.onSearch,je=ce.onSearchSubmit,hn=ce.onToggleOpen,yn=ce.onInputKeyDown,dn=ce.domRef;ne.useImperativeHandle(mn,function(){return{focus:function(){Wn.current.focus()},blur:function(){Wn.current.blur()}}});var kn=wt(0),Ln=(0,Xt.Z)(kn,2),Kn=Ln[0],Jn=Ln[1],Zi=function(Oi){var Lr=Oi.which;(Lr===et.Z.UP||Lr===et.Z.DOWN)&&Oi.preventDefault(),yn&&yn(Oi),Lr===et.Z.ENTER&&Nn==="tags"&&!Mi.current&&!ue&&(je==null||je(Oi.target.value)),gn(Lr)&&hn(!0)},en=function(){Jn(!0)},qi=(0,ne.useRef)(null),Er=function(Oi){pn(Oi,!0,Mi.current)!==!1&&hn(!0)},nr=function(){Mi.current=!0},sn=function(Oi){Mi.current=!1,Nn!=="combobox"&&Er(Oi.target.value)},si=function(Oi){var Lr=Oi.target.value;if(Hi&&qi.current&&/[\r\n]/.test(qi.current)){var bn=qi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Lr=Lr.replace(bn,qi.current)}qi.current=null,Er(Lr)},Ai=function(Oi){var Lr=Oi.clipboardData,bn=Lr.getData("text");qi.current=bn},Ki=function(Oi){var Lr=Oi.target;if(Lr!==Wn.current){var bn=document.body.style.msTouchAction!==void 0;bn?setTimeout(function(){Wn.current.focus()}):Wn.current.focus()}},Di=function(Oi){var Lr=Kn();Oi.target!==Wn.current&&!Lr&&Nn!=="combobox"&&Oi.preventDefault(),(Nn!=="combobox"&&(!ui||!Lr)||!ue)&&(ue&&Ge!==!1&&pn("",!0,!1),hn())},vr={inputRef:Wn,onInputKeyDown:Zi,onInputMouseDown:en,onInputChange:si,onInputPaste:Ai,onInputCompositionStart:nr,onInputCompositionEnd:sn},Pr=Nn==="multiple"||Nn==="tags"?ne.createElement(_n,(0,At.Z)({},ce,vr)):ne.createElement(rn,(0,At.Z)({},ce,vr));return ne.createElement("div",{ref:dn,className:"".concat(pi,"-selector"),onClick:Ki,onMouseDown:Di},Pr)},cn=ne.forwardRef(Vn);cn.displayName="Selector";var Hn=cn,me=St(35593),Un=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ii=function(ce){var mn=ce===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:mn,adjustY:1},htmlRegion:"scroll"}}},xn=function(ce,mn){var Wn=ce.prefixCls,Mi=ce.disabled,pi=ce.visible,ue=ce.children,Nn=ce.popupElement,ui=ce.animation,Hi=ce.transitionName,Ge=ce.dropdownStyle,pn=ce.dropdownClassName,je=ce.direction,hn=je===void 0?"ltr":je,yn=ce.placement,dn=ce.builtinPlacements,kn=ce.dropdownMatchSelectWidth,Ln=ce.dropdownRender,Kn=ce.dropdownAlign,Jn=ce.getPopupContainer,Zi=ce.empty,en=ce.getTriggerDOMNode,qi=ce.onPopupVisibleChange,Er=ce.onPopupMouseEnter,nr=(0,Se.Z)(ce,Un),sn="".concat(Wn,"-dropdown"),si=Nn;Ln&&(si=Ln(Nn));var Ai=ne.useMemo(function(){return dn||ii(kn)},[dn,kn]),Ki=ui?"".concat(sn,"-").concat(ui):Hi,Di=typeof kn=="number",vr=ne.useMemo(function(){return Di?null:kn===!1?"minWidth":"width"},[kn,Di]),Pr=Ge;Di&&(Pr=(0,Me.Z)((0,Me.Z)({},Pr),{},{width:kn}));var tr=ne.useRef(null);return ne.useImperativeHandle(mn,function(){return{getPopupElement:function(){return tr.current}}}),ne.createElement(me.Z,(0,At.Z)({},nr,{showAction:qi?["click"]:[],hideAction:qi?["click"]:[],popupPlacement:yn||(hn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ai,prefixCls:sn,popupTransitionName:Ki,popup:ne.createElement("div",{ref:tr,onMouseEnter:Er},si),stretch:vr,popupAlign:Kn,popupVisible:pi,getPopupContainer:Jn,popupClassName:we()(pn,(0,oe.Z)({},"".concat(sn,"-empty"),Zi)),popupStyle:Pr,getTriggerDOMNode:en,onPopupVisibleChange:qi}),ue)},ni=ne.forwardRef(xn);ni.displayName="SelectTrigger";var ze=ni,Ie=St(4537);function ke(Ee,ce){var mn=Ee.key,Wn;return"value"in Ee&&(Wn=Ee.value),mn!=null?mn:Wn!==void 0?Wn:"rc-index-key-".concat(ce)}function se(Ee,ce){var mn=Ee||{},Wn=mn.label,Mi=mn.value,pi=mn.options,ue=mn.groupLabel,Nn=Wn||(ce?"children":"label");return{label:Nn,value:Mi||"value",options:pi||"options",groupLabel:ue||Nn}}function $e(Ee){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mn=ce.fieldNames,Wn=ce.childrenAsData,Mi=[],pi=se(mn,!1),ue=pi.label,Nn=pi.value,ui=pi.options,Hi=pi.groupLabel;function Ge(pn,je){pn.forEach(function(hn){if(je||!(ui in hn)){var yn=hn[Nn];Mi.push({key:ke(hn,Mi.length),groupOption:je,data:hn,label:hn[ue],value:yn})}else{var dn=hn[Hi];dn===void 0&&Wn&&(dn=hn.label),Mi.push({key:ke(hn,Mi.length),group:!0,data:hn,label:dn}),Ge(hn[ui],!0)}})}return Ge(Ee,!1),Mi}function Ze(Ee){var ce=(0,Me.Z)({},Ee);return"props"in ce||Object.defineProperty(ce,"props",{get:function(){return(0,Pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ce}}),ce}function ee(Ee,ce){if(!ce||!ce.length)return null;var mn=!1;function Wn(pi,ue){var Nn=(0,Ie.Z)(ue),ui=Nn[0],Hi=Nn.slice(1);if(!ui)return[pi];var Ge=pi.split(ui);return mn=mn||Ge.length>1,Ge.reduce(function(pn,je){return[].concat((0,zt.Z)(pn),(0,zt.Z)(Wn(je,Hi)))},[]).filter(function(pn){return pn})}var Mi=Wn(Ee,ce);return mn?Mi:null}var re=["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"],Bt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xt(Ee){return Ee==="tags"||Ee==="multiple"}var mt=ne.forwardRef(function(Ee,ce){var mn,Wn,Mi=Ee.id,pi=Ee.prefixCls,ue=Ee.className,Nn=Ee.showSearch,ui=Ee.tagRender,Hi=Ee.direction,Ge=Ee.omitDomProps,pn=Ee.displayValues,je=Ee.onDisplayValuesChange,hn=Ee.emptyOptions,yn=Ee.notFoundContent,dn=yn===void 0?"Not Found":yn,kn=Ee.onClear,Ln=Ee.mode,Kn=Ee.disabled,Jn=Ee.loading,Zi=Ee.getInputElement,en=Ee.getRawInputElement,qi=Ee.open,Er=Ee.defaultOpen,nr=Ee.onDropdownVisibleChange,sn=Ee.activeValue,si=Ee.onActiveValueChange,Ai=Ee.activeDescendantId,Ki=Ee.searchValue,Di=Ee.autoClearSearchValue,vr=Ee.onSearch,Pr=Ee.onSearchSplit,tr=Ee.tokenSeparators,Oi=Ee.allowClear,Lr=Ee.suffixIcon,bn=Ee.clearIcon,wo=Ee.OptionList,Mn=Ee.animation,Or=Ee.transitionName,ea=Ee.dropdownStyle,bo=Ee.dropdownClassName,ca=Ee.dropdownMatchSelectWidth,qo=Ee.dropdownRender,dr=Ee.dropdownAlign,er=Ee.placement,eo=Ee.builtinPlacements,ko=Ee.getPopupContainer,ki=Ee.showAction,Vt=ki===void 0?[]:ki,fo=Ee.onFocus,_o=Ee.onBlur,ro=Ee.onKeyUp,Yo=Ee.onKeyDown,ya=Ee.onMouseDown,Ar=(0,Se.Z)(Ee,re),Tr=xt(Ln),uo=(Nn!==void 0?Nn:Tr)||Ln==="combobox",$r=(0,Me.Z)({},Ar);Bt.forEach(function(Bo){delete $r[Bo]}),Ge==null||Ge.forEach(function(Bo){delete $r[Bo]});var Zo=ne.useState(!1),oa=(0,Xt.Z)(Zo,2),cr=oa[0],fr=oa[1];ne.useEffect(function(){fr((0,Tt.Z)())},[]);var ri=ne.useRef(null),Mr=ne.useRef(null),Io=ne.useRef(null),Ma=ne.useRef(null),Sa=ne.useRef(null),Ta=Ft(),Ra=(0,Xt.Z)(Ta,3),Ga=Ra[0],Vs=Ra[1],us=Ra[2];ne.useImperativeHandle(ce,function(){var Bo,da;return{focus:(Bo=Ma.current)===null||Bo===void 0?void 0:Bo.focus,blur:(da=Ma.current)===null||da===void 0?void 0:da.blur,scrollTo:function(Ps){var Cs;return(Cs=Sa.current)===null||Cs===void 0?void 0:Cs.scrollTo(Ps)}}});var Ys=ne.useMemo(function(){var Bo;if(Ln!=="combobox")return Ki;var da=(Bo=pn[0])===null||Bo===void 0?void 0:Bo.value;return typeof da=="string"||typeof da=="number"?String(da):""},[Ki,Ln,pn]),fn=Ln==="combobox"&&typeof Zi=="function"&&Zi()||null,xs=typeof en=="function"&&en(),yh=(0,nt.x1)(Mr,xs==null||(mn=xs.props)===null||mn===void 0?void 0:mn.ref),El=ne.useState(!1),$o=(0,Xt.Z)(El,2),To=$o[0],as=$o[1];(0,Ce.Z)(function(){as(!0)},[]);var ma=(0,Ne.Z)(!1,{defaultValue:Er,value:qi}),No=(0,Xt.Z)(ma,2),fa=No[0],al=No[1],Yr=To?fa:!1,zo=!dn&&hn;(Kn||zo&&Yr&&Ln==="combobox")&&(Yr=!1);var Oo=zo?!1:Yr,zi=ne.useCallback(function(Bo){var da=Bo!==void 0?Bo:!Yr;Kn||(al(da),Yr!==da&&(nr==null||nr(da)))},[Kn,Yr,al,nr]),gs=ne.useMemo(function(){return(tr||[]).some(function(Bo){return[`
`,`\r
`].includes(Bo)})},[tr]),ws=function(da,cl,Ps){var Cs=!0,ts=da;si==null||si(null);var hs=Ps?null:ee(da,tr);return Ln!=="combobox"&&hs&&(ts="",Pr==null||Pr(hs),zi(!1),Cs=!1),vr&&Ys!==ts&&vr(ts,{source:cl?"typing":"effect"}),Cs},dl=function(da){!da||!da.trim()||vr(da,{source:"submit"})};ne.useEffect(function(){!Yr&&!Tr&&Ln!=="combobox"&&ws("",!1,!1)},[Yr]),ne.useEffect(function(){fa&&Kn&&al(!1),Kn&&Vs(!1)},[Kn]);var su=wt(),xu=(0,Xt.Z)(su,2),Fi=xu[0],Ua=xu[1],Ls=function(da){var cl=Fi(),Ps=da.which;if(Ps===et.Z.ENTER&&(Ln!=="combobox"&&da.preventDefault(),Yr||zi(!0)),Ua(!!Ys),Ps===et.Z.BACKSPACE&&!cl&&Tr&&!Ys&&pn.length){for(var Cs=(0,zt.Z)(pn),ts=null,hs=Cs.length-1;hs>=0;hs-=1){var Ms=Cs[hs];if(!Ms.disabled){Cs.splice(hs,1),ts=Ms;break}}ts&&je(Cs,{type:"remove",values:[ts]})}for(var bs=arguments.length,nh=new Array(bs>1?bs-1:0),$l=1;$l<bs;$l++)nh[$l-1]=arguments[$l];if(Yr&&Sa.current){var ps;(ps=Sa.current).onKeyDown.apply(ps,[da].concat(nh))}Yo==null||Yo.apply(void 0,[da].concat(nh))},Ql=function(da){for(var cl=arguments.length,Ps=new Array(cl>1?cl-1:0),Cs=1;Cs<cl;Cs++)Ps[Cs-1]=arguments[Cs];if(Yr&&Sa.current){var ts;(ts=Sa.current).onKeyUp.apply(ts,[da].concat(Ps))}ro==null||ro.apply(void 0,[da].concat(Ps))},lu=function(da){var cl=pn.filter(function(Ps){return Ps!==da});je(cl,{type:"remove",values:[da]})},uu=ne.useRef(!1),so=function(){Vs(!0),Kn||(fo&&!uu.current&&fo.apply(void 0,arguments),Vt.includes("focus")&&zi(!0)),uu.current=!0},Sh=function(){Vs(!1,function(){uu.current=!1,zi(!1)}),!Kn&&(Ys&&(Ln==="tags"?vr(Ys,{source:"submit"}):Ln==="multiple"&&vr("",{source:"blur"})),_o&&_o.apply(void 0,arguments))},Ll=[];ne.useEffect(function(){return function(){Ll.forEach(function(Bo){return clearTimeout(Bo)}),Ll.splice(0,Ll.length)}},[]);var Ml=function(da){var cl,Ps=da.target,Cs=(cl=Io.current)===null||cl===void 0?void 0:cl.getPopupElement();if(Cs&&Cs.contains(Ps)){var ts=setTimeout(function(){var nh=Ll.indexOf(ts);if(nh!==-1&&Ll.splice(nh,1),us(),!cr&&!Cs.contains(document.activeElement)){var $l;($l=Ma.current)===null||$l===void 0||$l.focus()}});Ll.push(ts)}for(var hs=arguments.length,Ms=new Array(hs>1?hs-1:0),bs=1;bs<hs;bs++)Ms[bs-1]=arguments[bs];ya==null||ya.apply(void 0,[da].concat(Ms))},ml=ne.useState({}),Wu=(0,Xt.Z)(ml,2),wu=Wu[1];function vl(){wu({})}var Al;xs&&(Al=function(da){zi(da)}),Ot(function(){var Bo;return[ri.current,(Bo=Io.current)===null||Bo===void 0?void 0:Bo.getPopupElement()]},Oo,zi,!!xs);var Bh=ne.useMemo(function(){return(0,Me.Z)((0,Me.Z)({},Ee),{},{notFoundContent:dn,open:Yr,triggerOpen:Oo,id:Mi,showSearch:uo,multiple:Tr,toggleOpen:zi})},[Ee,dn,Oo,Yr,Mi,uo,Tr,zi]),_h=!!Lr||Jn,Oh;_h&&(Oh=ne.createElement(st,{className:we()("".concat(pi,"-arrow"),(0,oe.Z)({},"".concat(pi,"-arrow-loading"),Jn)),customizeIcon:Lr,customizeIconProps:{loading:Jn,searchValue:Ys,open:Yr,focused:Ga,showSearch:uo}}));var gd=function(){var da;kn==null||kn(),(da=Ma.current)===null||da===void 0||da.focus(),je([],{type:"clear",values:pn}),ws("",!1,!1)},Ih=gt(pi,gd,pn,Oi,bn,Kn,Ys,Ln),Zu=Ih.allowClear,Bl=Ih.clearIcon,Ol=ne.createElement(wo,{ref:Sa}),pd=we()(pi,ue,(Wn={},(0,oe.Z)(Wn,"".concat(pi,"-focused"),Ga),(0,oe.Z)(Wn,"".concat(pi,"-multiple"),Tr),(0,oe.Z)(Wn,"".concat(pi,"-single"),!Tr),(0,oe.Z)(Wn,"".concat(pi,"-allow-clear"),Oi),(0,oe.Z)(Wn,"".concat(pi,"-show-arrow"),_h),(0,oe.Z)(Wn,"".concat(pi,"-disabled"),Kn),(0,oe.Z)(Wn,"".concat(pi,"-loading"),Jn),(0,oe.Z)(Wn,"".concat(pi,"-open"),Yr),(0,oe.Z)(Wn,"".concat(pi,"-customize-input"),fn),(0,oe.Z)(Wn,"".concat(pi,"-show-search"),uo),Wn)),td=ne.createElement(ze,{ref:Io,disabled:Kn,prefixCls:pi,visible:Oo,popupElement:Ol,animation:Mn,transitionName:Or,dropdownStyle:ea,dropdownClassName:bo,direction:Hi,dropdownMatchSelectWidth:ca,dropdownRender:qo,dropdownAlign:dr,placement:er,builtinPlacements:eo,getPopupContainer:ko,empty:hn,getTriggerDOMNode:function(){return Mr.current},onPopupVisibleChange:Al,onPopupMouseEnter:vl},xs?ne.cloneElement(xs,{ref:yh}):ne.createElement(Hn,(0,At.Z)({},Ee,{domRef:Mr,prefixCls:pi,inputElement:fn,ref:Ma,id:Mi,showSearch:uo,autoClearSearchValue:Di,mode:Ln,activeDescendantId:Ai,tagRender:ui,values:pn,open:Yr,onToggleOpen:zi,activeValue:sn,searchValue:Ys,onSearch:ws,onSearchSubmit:dl,onRemove:lu,tokenWithEnter:gs}))),Pu;return xs?Pu=td:Pu=ne.createElement("div",(0,At.Z)({className:pd},$r,{ref:ri,onMouseDown:Ml,onKeyDown:Ls,onKeyUp:Ql,onFocus:so,onBlur:Sh}),Ga&&!Yr&&ne.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(pn.map(function(Bo){var da=Bo.label,cl=Bo.value;return["number","string"].includes((0,Nt.Z)(da))?da:cl}).join(", "))),td,Oh,Zu&&Bl),ne.createElement(vt.Provider,{value:Bh},Pu)}),kt=mt,jt=function(Ee,ce){var mn=ne.useRef({values:new Map,options:new Map}),Wn=ne.useMemo(function(){var pi=mn.current,ue=pi.values,Nn=pi.options,ui=Ee.map(function(pn){if(pn.label===void 0){var je;return(0,Me.Z)((0,Me.Z)({},pn),{},{label:(je=ue.get(pn.value))===null||je===void 0?void 0:je.label})}return pn}),Hi=new Map,Ge=new Map;return ui.forEach(function(pn){Hi.set(pn.value,pn),Ge.set(pn.value,ce.get(pn.value)||Nn.get(pn.value))}),mn.current.values=Hi,mn.current.options=Ge,ui},[Ee,ce]),Mi=ne.useCallback(function(pi){return ce.get(pi)||mn.current.options.get(pi)},[ce]);return[Wn,Mi]};function Lt(Ee,ce){return Xe(Ee).join("").toUpperCase().includes(ce)}var he=function(Ee,ce,mn,Wn,Mi){return ne.useMemo(function(){if(!mn||Wn===!1)return Ee;var pi=ce.options,ue=ce.label,Nn=ce.value,ui=[],Hi=typeof Wn=="function",Ge=mn.toUpperCase(),pn=Hi?Wn:function(hn,yn){return Mi?Lt(yn[Mi],Ge):yn[pi]?Lt(yn[ue!=="children"?ue:"label"],Ge):Lt(yn[Nn],Ge)},je=Hi?function(hn){return Ze(hn)}:function(hn){return hn};return Ee.forEach(function(hn){if(hn[pi]){var yn=pn(mn,je(hn));if(yn)ui.push(hn);else{var dn=hn[pi].filter(function(kn){return pn(mn,je(kn))});dn.length&&ui.push((0,Me.Z)((0,Me.Z)({},hn),{},(0,oe.Z)({},pi,dn)))}return}pn(mn,je(hn))&&ui.push(hn)}),ui},[Ee,Wn,Mi,mn,ce])},Re=St(17115),on=St(11592),de=["children","value"],De=["children"];function Ke(Ee){var ce=Ee,mn=ce.key,Wn=ce.props,Mi=Wn.children,pi=Wn.value,ue=(0,Se.Z)(Wn,de);return(0,Me.Z)({key:mn,value:pi!==void 0?pi:mn,children:Mi},ue)}function An(Ee){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,on.Z)(Ee).map(function(mn,Wn){if(!ne.isValidElement(mn)||!mn.type)return null;var Mi=mn,pi=Mi.type.isSelectOptGroup,ue=Mi.key,Nn=Mi.props,ui=Nn.children,Hi=(0,Se.Z)(Nn,De);return ce||!pi?Ke(mn):(0,Me.Z)((0,Me.Z)({key:"__RC_SELECT_GRP__".concat(ue===null?Wn:ue,"__"),label:ue},Hi),{},{options:An(ui)})}).filter(function(mn){return mn})}function Yn(Ee,ce,mn,Wn,Mi){return ne.useMemo(function(){var pi=Ee,ue=!Ee;ue&&(pi=An(ce));var Nn=new Map,ui=new Map,Hi=function(je,hn,yn){yn&&typeof yn=="string"&&je.set(hn[yn],hn)};function Ge(pn){for(var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hn=0;hn<pn.length;hn+=1){var yn=pn[hn];!yn[mn.options]||je?(Nn.set(yn[mn.value],yn),Hi(ui,yn,mn.label),Hi(ui,yn,Wn),Hi(ui,yn,Mi)):Ge(yn[mn.options],!0)}}return Ge(pi),{options:pi,valueOptions:Nn,labelOptions:ui}},[Ee,ce,mn,Wn,Mi])}function gi(Ee){var ce=ne.useRef();ce.current=Ee;var mn=ne.useCallback(function(){return ce.current.apply(ce,arguments)},[]);return mn}var fi=function(){return null};fi.isSelectOptGroup=!0;var xi=fi,Gi=function(){return null};Gi.isSelectOption=!0;var yr=Gi,lr=St(80547),rr=St(2738),Rr=St(45680),Nr=ne.createContext(null),Ji=Nr;function Wr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Xi=["disabled","title","children","style","className"];function Et(Ee){return typeof Ee=="string"||typeof Ee=="number"}var ai=function(ce,mn){var Wn=Pt(),Mi=Wn.prefixCls,pi=Wn.id,ue=Wn.open,Nn=Wn.multiple,ui=Wn.mode,Hi=Wn.searchValue,Ge=Wn.toggleOpen,pn=Wn.notFoundContent,je=Wn.onPopupScroll,hn=ne.useContext(Ji),yn=hn.flattenOptions,dn=hn.onActiveValue,kn=hn.defaultActiveFirstOption,Ln=hn.onSelect,Kn=hn.menuItemSelectedIcon,Jn=hn.rawValues,Zi=hn.fieldNames,en=hn.virtual,qi=hn.direction,Er=hn.listHeight,nr=hn.listItemHeight,sn="".concat(Mi,"-item"),si=(0,lr.Z)(function(){return yn},[ue,yn],function(dr,er){return er[0]&&dr[1]!==er[1]}),Ai=ne.useRef(null),Ki=function(er){er.preventDefault()},Di=function(er){Ai.current&&Ai.current.scrollTo(typeof er=="number"?{index:er}:er)},vr=function(er){for(var eo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ko=si.length,ki=0;ki<ko;ki+=1){var Vt=(er+ki*eo+ko)%ko,fo=si[Vt],_o=fo.group,ro=fo.data;if(!_o&&!ro.disabled)return Vt}return-1},Pr=ne.useState(function(){return vr(0)}),tr=(0,Xt.Z)(Pr,2),Oi=tr[0],Lr=tr[1],bn=function(er){var eo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Lr(er);var ko={source:eo?"keyboard":"mouse"},ki=si[er];if(!ki){dn(null,-1,ko);return}dn(ki.value,er,ko)};(0,ne.useEffect)(function(){bn(kn!==!1?vr(0):-1)},[si.length,Hi]);var wo=ne.useCallback(function(dr){return Jn.has(dr)&&ui!=="combobox"},[ui,(0,zt.Z)(Jn).toString(),Jn.size]);(0,ne.useEffect)(function(){var dr=setTimeout(function(){if(!Nn&&ue&&Jn.size===1){var eo=Array.from(Jn)[0],ko=si.findIndex(function(ki){var Vt=ki.data;return Vt.value===eo});ko!==-1&&(bn(ko),Di(ko))}});if(ue){var er;(er=Ai.current)===null||er===void 0||er.scrollTo(void 0)}return function(){return clearTimeout(dr)}},[ue,Hi,yn.length]);var Mn=function(er){er!==void 0&&Ln(er,{selected:!Jn.has(er)}),Nn||Ge(!1)};if(ne.useImperativeHandle(mn,function(){return{onKeyDown:function(er){var eo=er.which,ko=er.ctrlKey;switch(eo){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var ki=0;if(eo===et.Z.UP?ki=-1:eo===et.Z.DOWN?ki=1:Wr()&&ko&&(eo===et.Z.N?ki=1:eo===et.Z.P&&(ki=-1)),ki!==0){var Vt=vr(Oi+ki,ki);Di(Vt),bn(Vt,!0)}break}case et.Z.ENTER:{var fo=si[Oi];fo&&!fo.data.disabled?Mn(fo.value):Mn(void 0),ue&&er.preventDefault();break}case et.Z.ESC:Ge(!1),ue&&er.stopPropagation()}},onKeyUp:function(){},scrollTo:function(er){Di(er)}}}),si.length===0)return ne.createElement("div",{role:"listbox",id:"".concat(pi,"_list"),className:"".concat(sn,"-empty"),onMouseDown:Ki},pn);var Or=Object.keys(Zi).map(function(dr){return Zi[dr]}),ea=function(er){return er.label};function bo(dr,er){var eo=dr.group;return{role:eo?"presentation":"option",id:"".concat(pi,"_list_").concat(er)}}var ca=function(er){var eo=si[er];if(!eo)return null;var ko=eo.data||{},ki=ko.value,Vt=eo.group,fo=(0,Ht.Z)(ko,!0),_o=ea(eo);return eo?ne.createElement("div",(0,At.Z)({"aria-label":typeof _o=="string"&&!Vt?_o:null},fo,{key:er},bo(eo,er),{"aria-selected":wo(ki)}),ki):null},qo={role:"listbox",id:"".concat(pi,"_list")};return ne.createElement(ne.Fragment,null,en&&ne.createElement("div",(0,At.Z)({},qo,{style:{height:0,width:0,overflow:"hidden"}}),ca(Oi-1),ca(Oi),ca(Oi+1)),ne.createElement(Rr.Z,{itemKey:"key",ref:Ai,data:si,height:Er,itemHeight:nr,fullHeight:!1,onMouseDown:Ki,onScroll:je,virtual:en,direction:qi,innerProps:en?null:qo},function(dr,er){var eo,ko=dr.group,ki=dr.groupOption,Vt=dr.data,fo=dr.label,_o=dr.value,ro=Vt.key;if(ko){var Yo,ya=(Yo=Vt.title)!==null&&Yo!==void 0?Yo:Et(fo)?fo.toString():void 0;return ne.createElement("div",{className:we()(sn,"".concat(sn,"-group")),title:ya},fo!==void 0?fo:ro)}var Ar=Vt.disabled,Tr=Vt.title,uo=Vt.children,$r=Vt.style,Zo=Vt.className,oa=(0,Se.Z)(Vt,Xi),cr=(0,rr.Z)(oa,Or),fr=wo(_o),ri="".concat(sn,"-option"),Mr=we()(sn,ri,Zo,(eo={},(0,oe.Z)(eo,"".concat(ri,"-grouped"),ki),(0,oe.Z)(eo,"".concat(ri,"-active"),Oi===er&&!Ar),(0,oe.Z)(eo,"".concat(ri,"-disabled"),Ar),(0,oe.Z)(eo,"".concat(ri,"-selected"),fr),eo)),Io=ea(dr),Ma=!Kn||typeof Kn=="function"||fr,Sa=typeof Io=="number"?Io:Io||_o,Ta=Et(Sa)?Sa.toString():void 0;return Tr!==void 0&&(Ta=Tr),ne.createElement("div",(0,At.Z)({},(0,Ht.Z)(cr),en?{}:bo(dr,er),{"aria-selected":fr,className:Mr,title:Ta,onMouseMove:function(){Oi===er||Ar||bn(er)},onClick:function(){Ar||Mn(_o)},style:$r}),ne.createElement("div",{className:"".concat(ri,"-content")},Sa),ne.isValidElement(Kn)||fr,Ma&&ne.createElement(st,{className:"".concat(sn,"-option-state"),customizeIcon:Kn,customizeIconProps:{isSelected:fr}},fr?"\u2713":null))}))},mi=ne.forwardRef(ai);mi.displayName="OptionList";var hr=mi;function wr(Ee){var ce=Ee.mode,mn=Ee.options,Wn=Ee.children,Mi=Ee.backfill,pi=Ee.allowClear,ue=Ee.placeholder,Nn=Ee.getInputElement,ui=Ee.showSearch,Hi=Ee.onSearch,Ge=Ee.defaultOpen,pn=Ee.autoFocus,je=Ee.labelInValue,hn=Ee.value,yn=Ee.inputValue,dn=Ee.optionLabelProp,kn=isMultiple(ce),Ln=ui!==void 0?ui:kn||ce==="combobox",Kn=mn||convertChildrenToData(Wn);if(warning(ce!=="tags"||Kn.every(function(qi){return!qi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ce==="tags"||ce==="combobox"){var Jn=Kn.some(function(qi){return qi.options?qi.options.some(function(Er){return typeof("value"in Er?Er.value:Er.key)=="number"}):typeof("value"in qi?qi.value:qi.key)=="number"});warning(!Jn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ce!=="combobox"||!dn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ce==="combobox"||!Mi,"`backfill` only works with `combobox` mode."),warning(ce==="combobox"||!Nn,"`getInputElement` only work with `combobox` mode."),noteOnce(ce!=="combobox"||!Nn||!pi||!ue,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Hi&&!Ln&&ce!=="combobox"&&ce!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ge||pn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),hn!=null){var Zi=toArray(hn);warning(!je||Zi.every(function(qi){return _typeof(qi)==="object"&&("key"in qi||"value"in qi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!kn||Array.isArray(hn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Wn){var en=null;toNodeArray(Wn).some(function(qi){if(!React.isValidElement(qi)||!qi.type)return!1;var Er=qi,nr=Er.type;if(nr.isSelectOption)return!1;if(nr.isSelectOptGroup){var sn=toNodeArray(qi.props.children).every(function(si){return!React.isValidElement(si)||!qi.type||si.type.isSelectOption?!0:(en=si.type,!1)});return!sn}return en=nr,!0}),en&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(en.displayName||en.name||en,"`.")),warning(yn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _i(Ee,ce){if(Ee){var mn=function Wn(Mi){for(var pi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=0;ue<Mi.length;ue++){var Nn=Mi[ue];if(Nn[ce==null?void 0:ce.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!pi&&Array.isArray(Nn[ce==null?void 0:ce.options])&&Wn(Nn[ce==null?void 0:ce.options],!0))break}};mn(Ee)}}var Qr=null,Zr=["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"],xo=["inputValue"];function an(Ee){return!Ee||(0,Nt.Z)(Ee)!=="object"}var Qe=ne.forwardRef(function(Ee,ce){var mn=Ee.id,Wn=Ee.mode,Mi=Ee.prefixCls,pi=Mi===void 0?"rc-select":Mi,ue=Ee.backfill,Nn=Ee.fieldNames,ui=Ee.inputValue,Hi=Ee.searchValue,Ge=Ee.onSearch,pn=Ee.autoClearSearchValue,je=pn===void 0?!0:pn,hn=Ee.onSelect,yn=Ee.onDeselect,dn=Ee.dropdownMatchSelectWidth,kn=dn===void 0?!0:dn,Ln=Ee.filterOption,Kn=Ee.filterSort,Jn=Ee.optionFilterProp,Zi=Ee.optionLabelProp,en=Ee.options,qi=Ee.children,Er=Ee.defaultActiveFirstOption,nr=Ee.menuItemSelectedIcon,sn=Ee.virtual,si=Ee.direction,Ai=Ee.listHeight,Ki=Ai===void 0?200:Ai,Di=Ee.listItemHeight,vr=Di===void 0?20:Di,Pr=Ee.value,tr=Ee.defaultValue,Oi=Ee.labelInValue,Lr=Ee.onChange,bn=(0,Se.Z)(Ee,Zr),wo=(0,Re.ZP)(mn),Mn=xt(Wn),Or=!!(!en&&qi),ea=ne.useMemo(function(){return Ln===void 0&&Wn==="combobox"?!1:Ln},[Ln,Wn]),bo=ne.useMemo(function(){return se(Nn,Or)},[JSON.stringify(Nn),Or]),ca=(0,Ne.Z)("",{value:Hi!==void 0?Hi:ui,postState:function(zo){return zo||""}}),qo=(0,Xt.Z)(ca,2),dr=qo[0],er=qo[1],eo=Yn(en,qi,bo,Jn,Zi),ko=eo.valueOptions,ki=eo.labelOptions,Vt=eo.options,fo=ne.useCallback(function(Yr){var zo=Xe(Yr);return zo.map(function(Oo){var zi,gs,ws,dl,su;if(an(Oo))zi=Oo;else{var xu;ws=Oo.key,gs=Oo.label,zi=(xu=Oo.value)!==null&&xu!==void 0?xu:ws}var Fi=ko.get(zi);if(Fi){var Ua;if(gs===void 0&&(gs=Fi==null?void 0:Fi[Zi||bo.label]),ws===void 0&&(ws=(Ua=Fi==null?void 0:Fi.key)!==null&&Ua!==void 0?Ua:zi),dl=Fi==null?void 0:Fi.disabled,su=Fi==null?void 0:Fi.title,0)var Ls}return{label:gs,value:zi,key:ws,disabled:dl,title:su}})},[bo,Zi,ko]),_o=(0,Ne.Z)(tr,{value:Pr}),ro=(0,Xt.Z)(_o,2),Yo=ro[0],ya=ro[1],Ar=ne.useMemo(function(){var Yr,zo=fo(Yo);return Wn==="combobox"&&We((Yr=zo[0])===null||Yr===void 0?void 0:Yr.value)?[]:zo},[Yo,fo,Wn]),Tr=jt(Ar,ko),uo=(0,Xt.Z)(Tr,2),$r=uo[0],Zo=uo[1],oa=ne.useMemo(function(){if(!Wn&&$r.length===1){var Yr=$r[0];if(Yr.value===null&&(Yr.label===null||Yr.label===void 0))return[]}return $r.map(function(zo){var Oo;return(0,Me.Z)((0,Me.Z)({},zo),{},{label:(Oo=zo.label)!==null&&Oo!==void 0?Oo:zo.value})})},[Wn,$r]),cr=ne.useMemo(function(){return new Set($r.map(function(Yr){return Yr.value}))},[$r]);ne.useEffect(function(){if(Wn==="combobox"){var Yr,zo=(Yr=$r[0])===null||Yr===void 0?void 0:Yr.value;er(Ve(zo)?String(zo):"")}},[$r]);var fr=gi(function(Yr,zo){var Oo,zi=zo!=null?zo:Yr;return Oo={},(0,oe.Z)(Oo,bo.value,Yr),(0,oe.Z)(Oo,bo.label,zi),Oo}),ri=ne.useMemo(function(){if(Wn!=="tags")return Vt;var Yr=(0,zt.Z)(Vt),zo=function(zi){return ko.has(zi)};return(0,zt.Z)($r).sort(function(Oo,zi){return Oo.value<zi.value?-1:1}).forEach(function(Oo){var zi=Oo.value;zo(zi)||Yr.push(fr(zi,Oo.label))}),Yr},[fr,Vt,ko,$r,Wn]),Mr=he(ri,bo,dr,ea,Jn),Io=ne.useMemo(function(){return Wn!=="tags"||!dr||Mr.some(function(Yr){return Yr[Jn||"value"]===dr})||Mr.some(function(Yr){return Yr[bo.value]===dr})?Mr:[fr(dr)].concat((0,zt.Z)(Mr))},[fr,Jn,Wn,Mr,dr,bo]),Ma=ne.useMemo(function(){return Kn?(0,zt.Z)(Io).sort(function(Yr,zo){return Kn(Yr,zo)}):Io},[Io,Kn]),Sa=ne.useMemo(function(){return $e(Ma,{fieldNames:bo,childrenAsData:Or})},[Ma,bo,Or]),Ta=function(zo){var Oo=fo(zo);if(ya(Oo),Lr&&(Oo.length!==$r.length||Oo.some(function(ws,dl){var su;return((su=$r[dl])===null||su===void 0?void 0:su.value)!==(ws==null?void 0:ws.value)}))){var zi=Oi?Oo:Oo.map(function(ws){return ws.value}),gs=Oo.map(function(ws){return Ze(Zo(ws.value))});Lr(Mn?zi:zi[0],Mn?gs:gs[0])}},Ra=ne.useState(null),Ga=(0,Xt.Z)(Ra,2),Vs=Ga[0],us=Ga[1],Ys=ne.useState(0),fn=(0,Xt.Z)(Ys,2),xs=fn[0],yh=fn[1],El=Er!==void 0?Er:Wn!=="combobox",$o=ne.useCallback(function(Yr,zo){var Oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},zi=Oo.source,gs=zi===void 0?"keyboard":zi;yh(zo),ue&&Wn==="combobox"&&Yr!==null&&gs==="keyboard"&&us(String(Yr))},[ue,Wn]),To=function(zo,Oo,zi){var gs=function(){var uu,so=Zo(zo);return[Oi?{label:so==null?void 0:so[bo.label],value:zo,key:(uu=so==null?void 0:so.key)!==null&&uu!==void 0?uu:zo}:zo,Ze(so)]};if(Oo&&hn){var ws=gs(),dl=(0,Xt.Z)(ws,2),su=dl[0],xu=dl[1];hn(su,xu)}else if(!Oo&&yn&&zi!=="clear"){var Fi=gs(),Ua=(0,Xt.Z)(Fi,2),Ls=Ua[0],Ql=Ua[1];yn(Ls,Ql)}},as=gi(function(Yr,zo){var Oo,zi=Mn?zo.selected:!0;zi?Oo=Mn?[].concat((0,zt.Z)($r),[Yr]):[Yr]:Oo=$r.filter(function(gs){return gs.value!==Yr}),Ta(Oo),To(Yr,zi),Wn==="combobox"?us(""):(!xt||je)&&(er(""),us(""))}),ma=function(zo,Oo){Ta(zo);var zi=Oo.type,gs=Oo.values;(zi==="remove"||zi==="clear")&&gs.forEach(function(ws){To(ws.value,!1,zi)})},No=function(zo,Oo){if(er(zo),us(null),Oo.source==="submit"){var zi=(zo||"").trim();if(zi){var gs=Array.from(new Set([].concat((0,zt.Z)(cr),[zi])));Ta(gs),To(zi,!0),er("")}return}Oo.source!=="blur"&&(Wn==="combobox"&&Ta(zo),Ge==null||Ge(zo))},fa=function(zo){var Oo=zo;Wn!=="tags"&&(Oo=zo.map(function(gs){var ws=ki.get(gs);return ws==null?void 0:ws.value}).filter(function(gs){return gs!==void 0}));var zi=Array.from(new Set([].concat((0,zt.Z)(cr),(0,zt.Z)(Oo))));Ta(zi),zi.forEach(function(gs){To(gs,!0)})},al=ne.useMemo(function(){var Yr=sn!==!1&&kn!==!1;return(0,Me.Z)((0,Me.Z)({},eo),{},{flattenOptions:Sa,onActiveValue:$o,defaultActiveFirstOption:El,onSelect:as,menuItemSelectedIcon:nr,rawValues:cr,fieldNames:bo,virtual:Yr,direction:si,listHeight:Ki,listItemHeight:vr,childrenAsData:Or})},[eo,Sa,$o,El,as,nr,cr,bo,sn,kn,Ki,vr,Or]);return ne.createElement(Ji.Provider,{value:al},ne.createElement(kt,(0,At.Z)({},bn,{id:wo,prefixCls:pi,ref:ce,omitDomProps:xo,mode:Wn,displayValues:oa,onDisplayValuesChange:ma,direction:si,searchValue:dr,onSearch:No,autoClearSearchValue:je,onSearchSplit:fa,dropdownMatchSelectWidth:kn,OptionList:hr,emptyOptions:!Sa.length,activeValue:Vs,activeDescendantId:"".concat(wo,"_list_").concat(xs)})))}),Jt=Qe;Jt.Option=yr,Jt.OptGroup=xi;var un=Jt,On=un},9296:function(Bn,Cn,St){"use strict";St.r(Cn),St.d(Cn,{ResizableTextArea:function(){return fe},default:function(){return We}});var At=St(96663),zt=St(44127),oe=St(90493),Me=St(20135),Xt=St(72071),Se=St(6620),Nt=St(19127),Ne=St(92310),Pe=St.n(Ne),ne=St(93681),xe=St(5643),we=St(18929),Ce=St(59301),Tt=St(29301),et=St(34280),nt=St(16089),ht=`
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;
`,st=["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"],gt={},vt;function Pt(_e){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=_e.getAttribute("id")||_e.getAttribute("data-reactid")||_e.getAttribute("name");if(Tn&&gt[ye])return gt[ye];var Gt=window.getComputedStyle(_e),nn=Gt.getPropertyValue("box-sizing")||Gt.getPropertyValue("-moz-box-sizing")||Gt.getPropertyValue("-webkit-box-sizing"),Zn=parseFloat(Gt.getPropertyValue("padding-bottom"))+parseFloat(Gt.getPropertyValue("padding-top")),_n=parseFloat(Gt.getPropertyValue("border-bottom-width"))+parseFloat(Gt.getPropertyValue("border-top-width")),Te=st.map(function(gn){return"".concat(gn,":").concat(Gt.getPropertyValue(gn))}).join(";"),rn={sizingStyle:Te,paddingSize:Zn,borderSize:_n,boxSizing:nn};return Tn&&ye&&(gt[ye]=rn),rn}function Ft(_e){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;vt||(vt=document.createElement("textarea"),vt.setAttribute("tab-index","-1"),vt.setAttribute("aria-hidden","true"),document.body.appendChild(vt)),_e.getAttribute("wrap")?vt.setAttribute("wrap",_e.getAttribute("wrap")):vt.removeAttribute("wrap");var nn=Pt(_e,Tn),Zn=nn.paddingSize,_n=nn.borderSize,Te=nn.boxSizing,rn=nn.sizingStyle;vt.setAttribute("style","".concat(rn,";").concat(ht)),vt.value=_e.value||_e.placeholder||"";var gn=void 0,Vn=void 0,cn,Hn=vt.scrollHeight;if(Te==="border-box"?Hn+=_n:Te==="content-box"&&(Hn-=Zn),ye!==null||Gt!==null){vt.value=" ";var me=vt.scrollHeight-Zn;ye!==null&&(gn=me*ye,Te==="border-box"&&(gn=gn+Zn+_n),Hn=Math.max(gn,Hn)),Gt!==null&&(Vn=me*Gt,Te==="border-box"&&(Vn=Vn+Zn+_n),cn=Hn>Vn?"":"hidden",Hn=Math.min(Vn,Hn))}var Un={height:Hn,overflowY:cn,resize:"none"};return gn&&(Un.minHeight=gn),Vn&&(Un.maxHeight=Vn),Un}var wt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ot=0,Ht=1,Zt=2,Ut=Ce.forwardRef(function(_e,Tn){var ye=_e,Gt=ye.prefixCls,nn=ye.onPressEnter,Zn=ye.defaultValue,_n=ye.value,Te=ye.autoSize,rn=ye.onResize,gn=ye.className,Vn=ye.style,cn=ye.disabled,Hn=ye.onChange,me=ye.onInternalAutoSize,Un=(0,Se.Z)(ye,wt),ii=(0,we.Z)(Zn,{value:_n,postState:function(xi){return xi!=null?xi:""}}),xn=(0,Xt.Z)(ii,2),ni=xn[0],ze=xn[1],Ie=function(xi){ze(xi.target.value),Hn==null||Hn(xi)},ke=Ce.useRef();Ce.useImperativeHandle(Tn,function(){return{textArea:ke.current}});var se=Ce.useMemo(function(){return Te&&(0,Me.Z)(Te)==="object"?[Te.minRows,Te.maxRows]:[]},[Te]),$e=(0,Xt.Z)(se,2),Ze=$e[0],ee=$e[1],re=!!Te,Bt=function(){try{if(document.activeElement===ke.current){var xi=ke.current,Gi=xi.selectionStart,yr=xi.selectionEnd,lr=xi.scrollTop;ke.current.setSelectionRange(Gi,yr),ke.current.scrollTop=lr}}catch(rr){}},xt=Ce.useState(Zt),mt=(0,Xt.Z)(xt,2),kt=mt[0],jt=mt[1],Lt=Ce.useState(),he=(0,Xt.Z)(Lt,2),Re=he[0],on=he[1],de=function(){jt(Ot)};(0,et.Z)(function(){re&&de()},[_n,Ze,ee,re]),(0,et.Z)(function(){if(kt===Ot)jt(Ht);else if(kt===Ht){var fi=Ft(ke.current,!1,Ze,ee);jt(Zt),on(fi)}else Bt()},[kt]);var De=Ce.useRef(),Ke=function(){nt.Z.cancel(De.current)},An=function(xi){kt===Zt&&(rn==null||rn(xi),Te&&(Ke(),De.current=(0,nt.Z)(function(){de()})))};Ce.useEffect(function(){return Ke},[]);var Yn=re?Re:null,gi=(0,zt.Z)((0,zt.Z)({},Vn),Yn);return(kt===Ot||kt===Ht)&&(gi.overflowY="hidden",gi.overflowX="hidden"),Ce.createElement(Tt.Z,{onResize:An,disabled:!(Te||rn)},Ce.createElement("textarea",(0,At.Z)({},Un,{ref:ke,style:gi,className:Pe()(Gt,gn,(0,oe.Z)({},"".concat(Gt,"-disabled"),cn)),disabled:cn,value:ni,onChange:Ie})))}),fe=Ut,Yt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Xe(_e,Tn){return(0,Nt.Z)(_e||"").slice(0,Tn).join("")}function pe(_e,Tn,ye,Gt){var nn=ye;return _e?nn=Xe(ye,Gt):(0,Nt.Z)(Tn||"").length<ye.length&&(0,Nt.Z)(ye||"").length>Gt&&(nn=Tn),nn}var tn=Ce.forwardRef(function(_e,Tn){var ye,Gt=_e.defaultValue,nn=_e.value,Zn=_e.onFocus,_n=_e.onBlur,Te=_e.onChange,rn=_e.allowClear,gn=_e.maxLength,Vn=_e.onCompositionStart,cn=_e.onCompositionEnd,Hn=_e.suffix,me=_e.prefixCls,Un=me===void 0?"rc-textarea":me,ii=_e.classes,xn=_e.showCount,ni=_e.className,ze=_e.style,Ie=_e.disabled,ke=_e.hidden,se=_e.classNames,$e=_e.styles,Ze=_e.onResize,ee=(0,Se.Z)(_e,Yt),re=(0,we.Z)(Gt,{value:nn,defaultValue:Gt}),Bt=(0,Xt.Z)(re,2),xt=Bt[0],mt=Bt[1],kt=(0,Ce.useRef)(null),jt=Ce.useState(!1),Lt=(0,Xt.Z)(jt,2),he=Lt[0],Re=Lt[1],on=Ce.useState(!1),de=(0,Xt.Z)(on,2),De=de[0],Ke=de[1],An=Ce.useRef(),Yn=Ce.useRef(0),gi=Ce.useState(null),fi=(0,Xt.Z)(gi,2),xi=fi[0],Gi=fi[1],yr=function(){var an;(an=kt.current)===null||an===void 0||an.textArea.focus()};(0,Ce.useImperativeHandle)(Tn,function(){return{resizableTextArea:kt.current,focus:yr,blur:function(){var an;(an=kt.current)===null||an===void 0||an.textArea.blur()}}}),(0,Ce.useEffect)(function(){Re(function(xo){return!Ie&&xo})},[Ie]);var lr=Number(gn)>0,rr=function(an){Ke(!0),An.current=xt,Yn.current=an.currentTarget.selectionStart,Vn==null||Vn(an)},Rr=function(an){Ke(!1);var Qe=an.currentTarget.value;if(lr){var Jt,un=Yn.current>=gn+1||Yn.current===((Jt=An.current)===null||Jt===void 0?void 0:Jt.length);Qe=pe(un,An.current,Qe,gn)}Qe!==xt&&(mt(Qe),(0,xe.rJ)(an.currentTarget,an,Te,Qe)),cn==null||cn(an)},Nr=function(an){var Qe=an.target.value;if(!De&&lr){var Jt=an.target.selectionStart>=gn+1||an.target.selectionStart===Qe.length||!an.target.selectionStart;Qe=pe(Jt,xt,Qe,gn)}mt(Qe),(0,xe.rJ)(an.currentTarget,an,Te,Qe)},Ji=function(an){var Qe=ee.onPressEnter,Jt=ee.onKeyDown;an.key==="Enter"&&Qe&&Qe(an),Jt==null||Jt(an)},Wr=function(an){Re(!0),Zn==null||Zn(an)},Xi=function(an){Re(!1),_n==null||_n(an)},Et=function(an){var Qe;mt(""),yr(),(0,xe.rJ)((Qe=kt.current)===null||Qe===void 0?void 0:Qe.textArea,an,Te)},ai=(0,xe.D7)(xt);!De&&lr&&nn==null&&(ai=Xe(ai,gn));var mi=Hn,hr;if(xn){var wr=(0,Nt.Z)(ai).length;(0,Me.Z)(xn)==="object"?hr=xn.formatter({value:ai,count:wr,maxLength:gn}):hr="".concat(wr).concat(lr?" / ".concat(gn):""),mi=Ce.createElement(Ce.Fragment,null,mi,Ce.createElement("span",{className:Pe()("".concat(Un,"-data-count"),se==null?void 0:se.count),style:$e==null?void 0:$e.count},hr))}var _i=function(an){var Qe;Ze==null||Ze(an),(Qe=kt.current)!==null&&Qe!==void 0&&Qe.textArea.style.height&&Gi(!0)},Qr=!ee.autoSize&&!xn&&!rn,Zr=Ce.createElement(ne.BaseInput,{value:ai,allowClear:rn,handleReset:Et,suffix:mi,prefixCls:Un,classes:{affixWrapper:Pe()(ii==null?void 0:ii.affixWrapper,(ye={},(0,oe.Z)(ye,"".concat(Un,"-show-count"),xn),(0,oe.Z)(ye,"".concat(Un,"-textarea-allow-clear"),rn),ye))},disabled:Ie,focused:he,className:ni,style:(0,zt.Z)((0,zt.Z)({},ze),xi&&!Qr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof hr=="string"?hr:void 0}},hidden:ke,inputElement:Ce.createElement(fe,(0,At.Z)({},ee,{onKeyDown:Ji,onChange:Nr,onFocus:Wr,onBlur:Xi,onCompositionStart:rr,onCompositionEnd:Rr,className:se==null?void 0:se.textarea,style:(0,zt.Z)((0,zt.Z)({},$e==null?void 0:$e.textarea),{},{resize:ze==null?void 0:ze.resize}),disabled:Ie,prefixCls:Un,onResize:_i,ref:kt}))});return Zr}),Ve=tn,We=Ve},39417:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ht}});var At=St(96663),zt=St(90493),oe=St(6620),Me=St(44127),Xt=St(52884),Se=St(95727),Nt=St(89866),Ne=St(65711),Pe=St(85745),ne=St(92310),xe=St.n(ne),we=St(26112),Ce=St(59301),Tt=St(39378),et=function(Ut){for(var fe=Ut.prefixCls,Yt=Ut.level,Xe=Ut.isStart,pe=Ut.isEnd,tn="".concat(fe,"-indent-unit"),Ve=[],We=0;We<Yt;We+=1){var _e;Ve.push(Ce.createElement("span",{key:We,className:xe()(tn,(_e={},(0,zt.Z)(_e,"".concat(tn,"-start"),Xe[We]),(0,zt.Z)(_e,"".concat(tn,"-end"),pe[We]),_e))}))}return Ce.createElement("span",{"aria-hidden":"true",className:"".concat(fe,"-indent")},Ve)},nt=Ce.memo(et),ht=St(67841),st=St(71430),gt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],vt="open",Pt="close",Ft="---",wt=function(Zt){(0,Ne.Z)(fe,Zt);var Ut=(0,Pe.Z)(fe);function fe(){var Yt;(0,Xt.Z)(this,fe);for(var Xe=arguments.length,pe=new Array(Xe),tn=0;tn<Xe;tn++)pe[tn]=arguments[tn];return Yt=Ut.call.apply(Ut,[this].concat(pe)),Yt.state={dragNodeHighlight:!1},Yt.selectHandle=void 0,Yt.cacheIndent=void 0,Yt.onSelectorClick=function(Ve){var We=Yt.props.context.onNodeClick;We(Ve,(0,st.F)(Yt.props)),Yt.isSelectable()?Yt.onSelect(Ve):Yt.onCheck(Ve)},Yt.onSelectorDoubleClick=function(Ve){var We=Yt.props.context.onNodeDoubleClick;We(Ve,(0,st.F)(Yt.props))},Yt.onSelect=function(Ve){if(!Yt.isDisabled()){var We=Yt.props.context.onNodeSelect;We(Ve,(0,st.F)(Yt.props))}},Yt.onCheck=function(Ve){if(!Yt.isDisabled()){var We=Yt.props,_e=We.disableCheckbox,Tn=We.checked,ye=Yt.props.context.onNodeCheck;if(!(!Yt.isCheckable()||_e)){var Gt=!Tn;ye(Ve,(0,st.F)(Yt.props),Gt)}}},Yt.onMouseEnter=function(Ve){var We=Yt.props.context.onNodeMouseEnter;We(Ve,(0,st.F)(Yt.props))},Yt.onMouseLeave=function(Ve){var We=Yt.props.context.onNodeMouseLeave;We(Ve,(0,st.F)(Yt.props))},Yt.onContextMenu=function(Ve){var We=Yt.props.context.onNodeContextMenu;We(Ve,(0,st.F)(Yt.props))},Yt.onDragStart=function(Ve){var We=Yt.props.context.onNodeDragStart;Ve.stopPropagation(),Yt.setState({dragNodeHighlight:!0}),We(Ve,(0,Nt.Z)(Yt));try{Ve.dataTransfer.setData("text/plain","")}catch(_e){}},Yt.onDragEnter=function(Ve){var We=Yt.props.context.onNodeDragEnter;Ve.preventDefault(),Ve.stopPropagation(),We(Ve,(0,Nt.Z)(Yt))},Yt.onDragOver=function(Ve){var We=Yt.props.context.onNodeDragOver;Ve.preventDefault(),Ve.stopPropagation(),We(Ve,(0,Nt.Z)(Yt))},Yt.onDragLeave=function(Ve){var We=Yt.props.context.onNodeDragLeave;Ve.stopPropagation(),We(Ve,(0,Nt.Z)(Yt))},Yt.onDragEnd=function(Ve){var We=Yt.props.context.onNodeDragEnd;Ve.stopPropagation(),Yt.setState({dragNodeHighlight:!1}),We(Ve,(0,Nt.Z)(Yt))},Yt.onDrop=function(Ve){var We=Yt.props.context.onNodeDrop;Ve.preventDefault(),Ve.stopPropagation(),Yt.setState({dragNodeHighlight:!1}),We(Ve,(0,Nt.Z)(Yt))},Yt.onExpand=function(Ve){var We=Yt.props,_e=We.loading,Tn=We.context.onNodeExpand;_e||Tn(Ve,(0,st.F)(Yt.props))},Yt.setSelectHandle=function(Ve){Yt.selectHandle=Ve},Yt.getNodeState=function(){var Ve=Yt.props.expanded;return Yt.isLeaf()?null:Ve?vt:Pt},Yt.hasChildren=function(){var Ve=Yt.props.eventKey,We=Yt.props.context.keyEntities,_e=(0,ht.Z)(We,Ve)||{},Tn=_e.children;return!!(Tn||[]).length},Yt.isLeaf=function(){var Ve=Yt.props,We=Ve.isLeaf,_e=Ve.loaded,Tn=Yt.props.context.loadData,ye=Yt.hasChildren();return We===!1?!1:We||!Tn&&!ye||Tn&&_e&&!ye},Yt.isDisabled=function(){var Ve=Yt.props.disabled,We=Yt.props.context.disabled;return!!(We||Ve)},Yt.isCheckable=function(){var Ve=Yt.props.checkable,We=Yt.props.context.checkable;return!We||Ve===!1?!1:We},Yt.syncLoadData=function(Ve){var We=Ve.expanded,_e=Ve.loading,Tn=Ve.loaded,ye=Yt.props.context,Gt=ye.loadData,nn=ye.onNodeLoad;_e||Gt&&We&&!Yt.isLeaf()&&!Yt.hasChildren()&&!Tn&&nn((0,st.F)(Yt.props))},Yt.isDraggable=function(){var Ve=Yt.props,We=Ve.data,_e=Ve.context.draggable;return!!(_e&&(!_e.nodeDraggable||_e.nodeDraggable(We)))},Yt.renderDragHandler=function(){var Ve=Yt.props.context,We=Ve.draggable,_e=Ve.prefixCls;return We!=null&&We.icon?Ce.createElement("span",{className:"".concat(_e,"-draggable-icon")},We.icon):null},Yt.renderSwitcherIconDom=function(Ve){var We=Yt.props.switcherIcon,_e=Yt.props.context.switcherIcon,Tn=We||_e;return typeof Tn=="function"?Tn((0,Me.Z)((0,Me.Z)({},Yt.props),{},{isLeaf:Ve})):Tn},Yt.renderSwitcher=function(){var Ve=Yt.props.expanded,We=Yt.props.context.prefixCls;if(Yt.isLeaf()){var _e=Yt.renderSwitcherIconDom(!0);return _e!==!1?Ce.createElement("span",{className:xe()("".concat(We,"-switcher"),"".concat(We,"-switcher-noop"))},_e):null}var Tn=xe()("".concat(We,"-switcher"),"".concat(We,"-switcher_").concat(Ve?vt:Pt)),ye=Yt.renderSwitcherIconDom(!1);return ye!==!1?Ce.createElement("span",{onClick:Yt.onExpand,className:Tn},ye):null},Yt.renderCheckbox=function(){var Ve=Yt.props,We=Ve.checked,_e=Ve.halfChecked,Tn=Ve.disableCheckbox,ye=Yt.props.context.prefixCls,Gt=Yt.isDisabled(),nn=Yt.isCheckable();if(!nn)return null;var Zn=typeof nn!="boolean"?nn:null;return Ce.createElement("span",{className:xe()("".concat(ye,"-checkbox"),We&&"".concat(ye,"-checkbox-checked"),!We&&_e&&"".concat(ye,"-checkbox-indeterminate"),(Gt||Tn)&&"".concat(ye,"-checkbox-disabled")),onClick:Yt.onCheck},Zn)},Yt.renderIcon=function(){var Ve=Yt.props.loading,We=Yt.props.context.prefixCls;return Ce.createElement("span",{className:xe()("".concat(We,"-iconEle"),"".concat(We,"-icon__").concat(Yt.getNodeState()||"docu"),Ve&&"".concat(We,"-icon_loading"))})},Yt.renderSelector=function(){var Ve=Yt.state.dragNodeHighlight,We=Yt.props,_e=We.title,Tn=_e===void 0?Ft:_e,ye=We.selected,Gt=We.icon,nn=We.loading,Zn=We.data,_n=Yt.props.context,Te=_n.prefixCls,rn=_n.showIcon,gn=_n.icon,Vn=_n.loadData,cn=_n.titleRender,Hn=Yt.isDisabled(),me="".concat(Te,"-node-content-wrapper"),Un;if(rn){var ii=Gt||gn;Un=ii?Ce.createElement("span",{className:xe()("".concat(Te,"-iconEle"),"".concat(Te,"-icon__customize"))},typeof ii=="function"?ii(Yt.props):ii):Yt.renderIcon()}else Vn&&nn&&(Un=Yt.renderIcon());var xn;typeof Tn=="function"?xn=Tn(Zn):cn?xn=cn(Zn):xn=Tn;var ni=Ce.createElement("span",{className:"".concat(Te,"-title")},xn);return Ce.createElement("span",{ref:Yt.setSelectHandle,title:typeof Tn=="string"?Tn:"",className:xe()("".concat(me),"".concat(me,"-").concat(Yt.getNodeState()||"normal"),!Hn&&(ye||Ve)&&"".concat(Te,"-node-selected")),onMouseEnter:Yt.onMouseEnter,onMouseLeave:Yt.onMouseLeave,onContextMenu:Yt.onContextMenu,onClick:Yt.onSelectorClick,onDoubleClick:Yt.onSelectorDoubleClick},Un,ni,Yt.renderDropIndicator())},Yt.renderDropIndicator=function(){var Ve=Yt.props,We=Ve.disabled,_e=Ve.eventKey,Tn=Yt.props.context,ye=Tn.draggable,Gt=Tn.dropLevelOffset,nn=Tn.dropPosition,Zn=Tn.prefixCls,_n=Tn.indent,Te=Tn.dropIndicatorRender,rn=Tn.dragOverNodeKey,gn=Tn.direction,Vn=!!ye,cn=!We&&Vn&&rn===_e,Hn=_n!=null?_n:Yt.cacheIndent;return Yt.cacheIndent=_n,cn?Te({dropPosition:nn,dropLevelOffset:Gt,indent:Hn,prefixCls:Zn,direction:gn}):null},Yt}return(0,Se.Z)(fe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Xe=this.props.selectable,pe=this.props.context.selectable;return typeof Xe=="boolean"?Xe:pe}},{key:"render",value:function(){var Xe,pe=this.props,tn=pe.eventKey,Ve=pe.className,We=pe.style,_e=pe.dragOver,Tn=pe.dragOverGapTop,ye=pe.dragOverGapBottom,Gt=pe.isLeaf,nn=pe.isStart,Zn=pe.isEnd,_n=pe.expanded,Te=pe.selected,rn=pe.checked,gn=pe.halfChecked,Vn=pe.loading,cn=pe.domRef,Hn=pe.active,me=pe.data,Un=pe.onMouseMove,ii=pe.selectable,xn=(0,oe.Z)(pe,gt),ni=this.props.context,ze=ni.prefixCls,Ie=ni.filterTreeNode,ke=ni.keyEntities,se=ni.dropContainerKey,$e=ni.dropTargetKey,Ze=ni.draggingNodeKey,ee=this.isDisabled(),re=(0,we.Z)(xn,{aria:!0,data:!0}),Bt=(0,ht.Z)(ke,tn)||{},xt=Bt.level,mt=Zn[Zn.length-1],kt=this.isDraggable(),jt=!ee&&kt,Lt=Ze===tn,he=ii!==void 0?{"aria-selected":!!ii}:void 0;return Ce.createElement("div",(0,At.Z)({ref:cn,className:xe()(Ve,"".concat(ze,"-treenode"),(Xe={},(0,zt.Z)(Xe,"".concat(ze,"-treenode-disabled"),ee),(0,zt.Z)(Xe,"".concat(ze,"-treenode-switcher-").concat(_n?"open":"close"),!Gt),(0,zt.Z)(Xe,"".concat(ze,"-treenode-checkbox-checked"),rn),(0,zt.Z)(Xe,"".concat(ze,"-treenode-checkbox-indeterminate"),gn),(0,zt.Z)(Xe,"".concat(ze,"-treenode-selected"),Te),(0,zt.Z)(Xe,"".concat(ze,"-treenode-loading"),Vn),(0,zt.Z)(Xe,"".concat(ze,"-treenode-active"),Hn),(0,zt.Z)(Xe,"".concat(ze,"-treenode-leaf-last"),mt),(0,zt.Z)(Xe,"".concat(ze,"-treenode-draggable"),kt),(0,zt.Z)(Xe,"dragging",Lt),(0,zt.Z)(Xe,"drop-target",$e===tn),(0,zt.Z)(Xe,"drop-container",se===tn),(0,zt.Z)(Xe,"drag-over",!ee&&_e),(0,zt.Z)(Xe,"drag-over-gap-top",!ee&&Tn),(0,zt.Z)(Xe,"drag-over-gap-bottom",!ee&&ye),(0,zt.Z)(Xe,"filter-node",Ie&&Ie((0,st.F)(this.props))),Xe)),style:We,draggable:jt,"aria-grabbed":Lt,onDragStart:jt?this.onDragStart:void 0,onDragEnter:kt?this.onDragEnter:void 0,onDragOver:kt?this.onDragOver:void 0,onDragLeave:kt?this.onDragLeave:void 0,onDrop:kt?this.onDrop:void 0,onDragEnd:kt?this.onDragEnd:void 0,onMouseMove:Un},he,re),Ce.createElement(nt,{prefixCls:ze,level:xt,isStart:nn,isEnd:Zn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),fe}(Ce.Component),Ot=function(Ut){return Ce.createElement(Tt.k.Consumer,null,function(fe){return Ce.createElement(wt,(0,At.Z)({},Ut,{context:fe}))})};Ot.displayName="TreeNode",Ot.isTreeNode=1;var Ht=Ot},39378:function(Bn,Cn,St){"use strict";St.d(Cn,{k:function(){return zt}});var At=St(59301),zt=At.createContext(null)},43858:function(Bn,Cn,St){"use strict";St.d(Cn,{O:function(){return Ht.Z},Z:function(){return ni}});var At=St(96663),zt=St(90493),oe=St(20135),Me=St(44127),Xt=St(19127),Se=St(52884),Nt=St(95727),Ne=St(89866),Pe=St(65711),ne=St(85745),xe=St(92310),we=St.n(xe),Ce=St(10228),Tt=St(26112),et=St(48736),nt=St(59301),ht=St(39378);function st(ze){var Ie=ze.dropPosition,ke=ze.dropLevelOffset,se=ze.indent,$e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ie){case-1:$e.top=0,$e.left=-ke*se;break;case 1:$e.bottom=0,$e.left=-ke*se;break;case 0:$e.bottom=0,$e.left=se;break}return nt.createElement("div",{style:$e})}function gt(ze){if(ze==null)throw new TypeError("Cannot destructure "+ze)}var vt=St(72071),Pt=St(6620),Ft=St(34280),wt=St(45680),Ot=St(77900),Ht=St(39417);function Zt(ze,Ie){var ke=nt.useState(!1),se=(0,vt.Z)(ke,2),$e=se[0],Ze=se[1];nt.useLayoutEffect(function(){if($e)return ze(),function(){Ie()}},[$e]),nt.useLayoutEffect(function(){return Ze(!0),function(){Ze(!1)}},[])}var Ut=St(71430),fe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Yt=function(Ie,ke){var se=Ie.className,$e=Ie.style,Ze=Ie.motion,ee=Ie.motionNodes,re=Ie.motionType,Bt=Ie.onMotionStart,xt=Ie.onMotionEnd,mt=Ie.active,kt=Ie.treeNodeRequiredProps,jt=(0,Pt.Z)(Ie,fe),Lt=nt.useState(!0),he=(0,vt.Z)(Lt,2),Re=he[0],on=he[1],de=nt.useContext(ht.k),De=de.prefixCls,Ke=ee&&re!=="hide";(0,Ft.Z)(function(){ee&&Ke!==Re&&on(Ke)},[ee]);var An=function(){ee&&Bt()},Yn=nt.useRef(!1),gi=function(){ee&&!Yn.current&&(Yn.current=!0,xt())};Zt(An,gi);var fi=function(Gi){Ke===Gi&&gi()};return ee?nt.createElement(Ot.default,(0,At.Z)({ref:ke,visible:Re},Ze,{motionAppear:re==="show",onVisibleChanged:fi}),function(xi,Gi){var yr=xi.className,lr=xi.style;return nt.createElement("div",{ref:Gi,className:we()("".concat(De,"-treenode-motion"),yr),style:lr},ee.map(function(rr){var Rr=(0,At.Z)({},(gt(rr.data),rr.data)),Nr=rr.title,Ji=rr.key,Wr=rr.isStart,Xi=rr.isEnd;delete Rr.children;var Et=(0,Ut.H8)(Ji,kt);return nt.createElement(Ht.Z,(0,At.Z)({},Rr,Et,{title:Nr,active:mt,data:rr.data,key:Ji,isStart:Wr,isEnd:Xi}))}))}):nt.createElement(Ht.Z,(0,At.Z)({domRef:ke,className:se,style:$e},jt,{active:mt}))};Yt.displayName="MotionTreeNode";var Xe=nt.forwardRef(Yt),pe=Xe;function tn(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ke=ze.length,se=Ie.length;if(Math.abs(ke-se)!==1)return{add:!1,key:null};function $e(Ze,ee){var re=new Map;Ze.forEach(function(xt){re.set(xt,!0)});var Bt=ee.filter(function(xt){return!re.has(xt)});return Bt.length===1?Bt[0]:null}return ke<se?{add:!0,key:$e(ze,Ie)}:{add:!1,key:$e(Ie,ze)}}function Ve(ze,Ie,ke){var se=ze.findIndex(function(re){return re.key===ke}),$e=ze[se+1],Ze=Ie.findIndex(function(re){return re.key===ke});if($e){var ee=Ie.findIndex(function(re){return re.key===$e.key});return Ie.slice(Ze+1,ee)}return Ie.slice(Ze+1)}var We=["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"],_e={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Tn=function(){},ye="RC_TREE_MOTION_".concat(Math.random()),Gt={key:ye},nn={key:ye,level:0,index:0,pos:"0",node:Gt,nodes:[Gt]},Zn={parent:null,children:[],pos:nn.pos,data:Gt,title:null,key:ye,isStart:[],isEnd:[]};function _n(ze,Ie,ke,se){return Ie===!1||!ke?ze:ze.slice(0,Math.ceil(ke/se)+1)}function Te(ze){var Ie=ze.key,ke=ze.pos;return(0,Ut.km)(Ie,ke)}function rn(ze){for(var Ie=String(ze.data.key),ke=ze;ke.parent;)ke=ke.parent,Ie="".concat(ke.data.key," > ").concat(Ie);return Ie}var gn=nt.forwardRef(function(ze,Ie){var ke=ze.prefixCls,se=ze.data,$e=ze.selectable,Ze=ze.checkable,ee=ze.expandedKeys,re=ze.selectedKeys,Bt=ze.checkedKeys,xt=ze.loadedKeys,mt=ze.loadingKeys,kt=ze.halfCheckedKeys,jt=ze.keyEntities,Lt=ze.disabled,he=ze.dragging,Re=ze.dragOverNodeKey,on=ze.dropPosition,de=ze.motion,De=ze.height,Ke=ze.itemHeight,An=ze.virtual,Yn=ze.focusable,gi=ze.activeItem,fi=ze.focused,xi=ze.tabIndex,Gi=ze.onKeyDown,yr=ze.onFocus,lr=ze.onBlur,rr=ze.onActiveChange,Rr=ze.onListChangeStart,Nr=ze.onListChangeEnd,Ji=(0,Pt.Z)(ze,We),Wr=nt.useRef(null),Xi=nt.useRef(null);nt.useImperativeHandle(Ie,function(){return{scrollTo:function(pn){Wr.current.scrollTo(pn)},getIndentWidth:function(){return Xi.current.offsetWidth}}});var Et=nt.useState(ee),ai=(0,vt.Z)(Et,2),mi=ai[0],hr=ai[1],wr=nt.useState(se),_i=(0,vt.Z)(wr,2),Qr=_i[0],Zr=_i[1],xo=nt.useState(se),an=(0,vt.Z)(xo,2),Qe=an[0],Jt=an[1],un=nt.useState([]),On=(0,vt.Z)(un,2),Ee=On[0],ce=On[1],mn=nt.useState(null),Wn=(0,vt.Z)(mn,2),Mi=Wn[0],pi=Wn[1],ue=nt.useRef(se);ue.current=se;function Nn(){var Ge=ue.current;Zr(Ge),Jt(Ge),ce([]),pi(null),Nr()}(0,Ft.Z)(function(){hr(ee);var Ge=tn(mi,ee);if(Ge.key!==null)if(Ge.add){var pn=Qr.findIndex(function(Ln){var Kn=Ln.key;return Kn===Ge.key}),je=_n(Ve(Qr,se,Ge.key),An,De,Ke),hn=Qr.slice();hn.splice(pn+1,0,Zn),Jt(hn),ce(je),pi("show")}else{var yn=se.findIndex(function(Ln){var Kn=Ln.key;return Kn===Ge.key}),dn=_n(Ve(se,Qr,Ge.key),An,De,Ke),kn=se.slice();kn.splice(yn+1,0,Zn),Jt(kn),ce(dn),pi("hide")}else Qr!==se&&(Zr(se),Jt(se))},[ee,se]),nt.useEffect(function(){he||Nn()},[he]);var ui=de?Qe:se,Hi={expandedKeys:ee,selectedKeys:re,loadedKeys:xt,loadingKeys:mt,checkedKeys:Bt,halfCheckedKeys:kt,dragOverNodeKey:Re,dropPosition:on,keyEntities:jt};return nt.createElement(nt.Fragment,null,fi&&gi&&nt.createElement("span",{style:_e,"aria-live":"assertive"},rn(gi)),nt.createElement("div",null,nt.createElement("input",{style:_e,disabled:Yn===!1||Lt,tabIndex:Yn!==!1?xi:null,onKeyDown:Gi,onFocus:yr,onBlur:lr,value:"",onChange:Tn,"aria-label":"for screen reader"})),nt.createElement("div",{className:"".concat(ke,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},nt.createElement("div",{className:"".concat(ke,"-indent")},nt.createElement("div",{ref:Xi,className:"".concat(ke,"-indent-unit")}))),nt.createElement(wt.Z,(0,At.Z)({},Ji,{data:ui,itemKey:Te,height:De,fullHeight:!1,virtual:An,itemHeight:Ke,prefixCls:"".concat(ke,"-list"),ref:Wr,onVisibleChange:function(pn,je){var hn=new Set(pn),yn=je.filter(function(dn){return!hn.has(dn)});yn.some(function(dn){return Te(dn)===ye})&&Nn()}}),function(Ge){var pn=Ge.pos,je=(0,At.Z)({},(gt(Ge.data),Ge.data)),hn=Ge.title,yn=Ge.key,dn=Ge.isStart,kn=Ge.isEnd,Ln=(0,Ut.km)(yn,pn);delete je.key,delete je.children;var Kn=(0,Ut.H8)(Ln,Hi);return nt.createElement(pe,(0,At.Z)({},je,Kn,{title:hn,active:!!gi&&yn===gi.key,pos:pn,data:Ge.data,isStart:dn,isEnd:kn,motion:de,motionNodes:yn===ye?Ee:null,motionType:Mi,onMotionStart:Rr,onMotionEnd:Nn,treeNodeRequiredProps:Hi,onMouseMove:function(){rr(null)}}))}))});gn.displayName="NodeList";var Vn=gn,cn=St(35654),Hn=St(90782),me=St(67841),Un=10,ii=function(ze){(0,Pe.Z)(ke,ze);var Ie=(0,ne.Z)(ke);function ke(){var se;(0,Se.Z)(this,ke);for(var $e=arguments.length,Ze=new Array($e),ee=0;ee<$e;ee++)Ze[ee]=arguments[ee];return se=Ie.call.apply(Ie,[this].concat(Ze)),se.destroyed=!1,se.delayedDragEnterLogic=void 0,se.loadingRetryTimes={},se.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,Ut.w$)()},se.dragStartMousePosition=null,se.dragNode=void 0,se.currentMouseOverDroppableNodeKey=null,se.listRef=nt.createRef(),se.onNodeDragStart=function(re,Bt){var xt=se.state,mt=xt.expandedKeys,kt=xt.keyEntities,jt=se.props.onDragStart,Lt=Bt.props.eventKey;se.dragNode=Bt,se.dragStartMousePosition={x:re.clientX,y:re.clientY};var he=(0,cn._5)(mt,Lt);se.setState({draggingNodeKey:Lt,dragChildrenKeys:(0,cn.wA)(Lt,kt),indent:se.listRef.current.getIndentWidth()}),se.setExpandedKeys(he),window.addEventListener("dragend",se.onWindowDragEnd),jt==null||jt({event:re,node:(0,Ut.F)(Bt.props)})},se.onNodeDragEnter=function(re,Bt){var xt=se.state,mt=xt.expandedKeys,kt=xt.keyEntities,jt=xt.dragChildrenKeys,Lt=xt.flattenNodes,he=xt.indent,Re=se.props,on=Re.onDragEnter,de=Re.onExpand,De=Re.allowDrop,Ke=Re.direction,An=Bt.props,Yn=An.pos,gi=An.eventKey,fi=(0,Ne.Z)(se),xi=fi.dragNode;if(se.currentMouseOverDroppableNodeKey!==gi&&(se.currentMouseOverDroppableNodeKey=gi),!xi){se.resetDragState();return}var Gi=(0,cn.OM)(re,xi,Bt,he,se.dragStartMousePosition,De,Lt,kt,mt,Ke),yr=Gi.dropPosition,lr=Gi.dropLevelOffset,rr=Gi.dropTargetKey,Rr=Gi.dropContainerKey,Nr=Gi.dropTargetPos,Ji=Gi.dropAllowed,Wr=Gi.dragOverNodeKey;if(jt.indexOf(rr)!==-1||!Ji){se.resetDragState();return}if(se.delayedDragEnterLogic||(se.delayedDragEnterLogic={}),Object.keys(se.delayedDragEnterLogic).forEach(function(Xi){clearTimeout(se.delayedDragEnterLogic[Xi])}),xi.props.eventKey!==Bt.props.eventKey&&(re.persist(),se.delayedDragEnterLogic[Yn]=window.setTimeout(function(){if(se.state.draggingNodeKey!==null){var Xi=(0,Xt.Z)(mt),Et=(0,me.Z)(kt,Bt.props.eventKey);Et&&(Et.children||[]).length&&(Xi=(0,cn.L0)(mt,Bt.props.eventKey)),"expandedKeys"in se.props||se.setExpandedKeys(Xi),de==null||de(Xi,{node:(0,Ut.F)(Bt.props),expanded:!0,nativeEvent:re.nativeEvent})}},800)),xi.props.eventKey===rr&&lr===0){se.resetDragState();return}se.setState({dragOverNodeKey:Wr,dropPosition:yr,dropLevelOffset:lr,dropTargetKey:rr,dropContainerKey:Rr,dropTargetPos:Nr,dropAllowed:Ji}),on==null||on({event:re,node:(0,Ut.F)(Bt.props),expandedKeys:mt})},se.onNodeDragOver=function(re,Bt){var xt=se.state,mt=xt.dragChildrenKeys,kt=xt.flattenNodes,jt=xt.keyEntities,Lt=xt.expandedKeys,he=xt.indent,Re=se.props,on=Re.onDragOver,de=Re.allowDrop,De=Re.direction,Ke=(0,Ne.Z)(se),An=Ke.dragNode;if(An){var Yn=(0,cn.OM)(re,An,Bt,he,se.dragStartMousePosition,de,kt,jt,Lt,De),gi=Yn.dropPosition,fi=Yn.dropLevelOffset,xi=Yn.dropTargetKey,Gi=Yn.dropContainerKey,yr=Yn.dropAllowed,lr=Yn.dropTargetPos,rr=Yn.dragOverNodeKey;mt.indexOf(xi)!==-1||!yr||(An.props.eventKey===xi&&fi===0?se.state.dropPosition===null&&se.state.dropLevelOffset===null&&se.state.dropTargetKey===null&&se.state.dropContainerKey===null&&se.state.dropTargetPos===null&&se.state.dropAllowed===!1&&se.state.dragOverNodeKey===null||se.resetDragState():gi===se.state.dropPosition&&fi===se.state.dropLevelOffset&&xi===se.state.dropTargetKey&&Gi===se.state.dropContainerKey&&lr===se.state.dropTargetPos&&yr===se.state.dropAllowed&&rr===se.state.dragOverNodeKey||se.setState({dropPosition:gi,dropLevelOffset:fi,dropTargetKey:xi,dropContainerKey:Gi,dropTargetPos:lr,dropAllowed:yr,dragOverNodeKey:rr}),on==null||on({event:re,node:(0,Ut.F)(Bt.props)}))}},se.onNodeDragLeave=function(re,Bt){se.currentMouseOverDroppableNodeKey===Bt.props.eventKey&&!re.currentTarget.contains(re.relatedTarget)&&(se.resetDragState(),se.currentMouseOverDroppableNodeKey=null);var xt=se.props.onDragLeave;xt==null||xt({event:re,node:(0,Ut.F)(Bt.props)})},se.onWindowDragEnd=function(re){se.onNodeDragEnd(re,null,!0),window.removeEventListener("dragend",se.onWindowDragEnd)},se.onNodeDragEnd=function(re,Bt){var xt=se.props.onDragEnd;se.setState({dragOverNodeKey:null}),se.cleanDragState(),xt==null||xt({event:re,node:(0,Ut.F)(Bt.props)}),se.dragNode=null,window.removeEventListener("dragend",se.onWindowDragEnd)},se.onNodeDrop=function(re,Bt){var xt,mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,kt=se.state,jt=kt.dragChildrenKeys,Lt=kt.dropPosition,he=kt.dropTargetKey,Re=kt.dropTargetPos,on=kt.dropAllowed;if(on){var de=se.props.onDrop;if(se.setState({dragOverNodeKey:null}),se.cleanDragState(),he!==null){var De=(0,Me.Z)((0,Me.Z)({},(0,Ut.H8)(he,se.getTreeNodeRequiredProps())),{},{active:((xt=se.getActiveItem())===null||xt===void 0?void 0:xt.key)===he,data:(0,me.Z)(se.state.keyEntities,he).node}),Ke=jt.indexOf(he)!==-1;(0,et.ZP)(!Ke,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var An=(0,cn.yx)(Re),Yn={event:re,node:(0,Ut.F)(De),dragNode:se.dragNode?(0,Ut.F)(se.dragNode.props):null,dragNodesKeys:[se.dragNode.props.eventKey].concat(jt),dropToGap:Lt!==0,dropPosition:Lt+Number(An[An.length-1])};mt||de==null||de(Yn),se.dragNode=null}}},se.cleanDragState=function(){var re=se.state.draggingNodeKey;re!==null&&se.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),se.dragStartMousePosition=null,se.currentMouseOverDroppableNodeKey=null},se.triggerExpandActionExpand=function(re,Bt){var xt=se.state,mt=xt.expandedKeys,kt=xt.flattenNodes,jt=Bt.expanded,Lt=Bt.key,he=Bt.isLeaf;if(!(he||re.shiftKey||re.metaKey||re.ctrlKey)){var Re=kt.filter(function(de){return de.key===Lt})[0],on=(0,Ut.F)((0,Me.Z)((0,Me.Z)({},(0,Ut.H8)(Lt,se.getTreeNodeRequiredProps())),{},{data:Re.data}));se.setExpandedKeys(jt?(0,cn._5)(mt,Lt):(0,cn.L0)(mt,Lt)),se.onNodeExpand(re,on)}},se.onNodeClick=function(re,Bt){var xt=se.props,mt=xt.onClick,kt=xt.expandAction;kt==="click"&&se.triggerExpandActionExpand(re,Bt),mt==null||mt(re,Bt)},se.onNodeDoubleClick=function(re,Bt){var xt=se.props,mt=xt.onDoubleClick,kt=xt.expandAction;kt==="doubleClick"&&se.triggerExpandActionExpand(re,Bt),mt==null||mt(re,Bt)},se.onNodeSelect=function(re,Bt){var xt=se.state.selectedKeys,mt=se.state,kt=mt.keyEntities,jt=mt.fieldNames,Lt=se.props,he=Lt.onSelect,Re=Lt.multiple,on=Bt.selected,de=Bt[jt.key],De=!on;De?Re?xt=(0,cn.L0)(xt,de):xt=[de]:xt=(0,cn._5)(xt,de);var Ke=xt.map(function(An){var Yn=(0,me.Z)(kt,An);return Yn?Yn.node:null}).filter(function(An){return An});se.setUncontrolledState({selectedKeys:xt}),he==null||he(xt,{event:"select",selected:De,node:Bt,selectedNodes:Ke,nativeEvent:re.nativeEvent})},se.onNodeCheck=function(re,Bt,xt){var mt=se.state,kt=mt.keyEntities,jt=mt.checkedKeys,Lt=mt.halfCheckedKeys,he=se.props,Re=he.checkStrictly,on=he.onCheck,de=Bt.key,De,Ke={event:"check",node:Bt,checked:xt,nativeEvent:re.nativeEvent};if(Re){var An=xt?(0,cn.L0)(jt,de):(0,cn._5)(jt,de),Yn=(0,cn._5)(Lt,de);De={checked:An,halfChecked:Yn},Ke.checkedNodes=An.map(function(lr){return(0,me.Z)(kt,lr)}).filter(function(lr){return lr}).map(function(lr){return lr.node}),se.setUncontrolledState({checkedKeys:An})}else{var gi=(0,Hn.S)([].concat((0,Xt.Z)(jt),[de]),!0,kt),fi=gi.checkedKeys,xi=gi.halfCheckedKeys;if(!xt){var Gi=new Set(fi);Gi.delete(de);var yr=(0,Hn.S)(Array.from(Gi),{checked:!1,halfCheckedKeys:xi},kt);fi=yr.checkedKeys,xi=yr.halfCheckedKeys}De=fi,Ke.checkedNodes=[],Ke.checkedNodesPositions=[],Ke.halfCheckedKeys=xi,fi.forEach(function(lr){var rr=(0,me.Z)(kt,lr);if(rr){var Rr=rr.node,Nr=rr.pos;Ke.checkedNodes.push(Rr),Ke.checkedNodesPositions.push({node:Rr,pos:Nr})}}),se.setUncontrolledState({checkedKeys:fi},!1,{halfCheckedKeys:xi})}on==null||on(De,Ke)},se.onNodeLoad=function(re){var Bt=re.key,xt=new Promise(function(mt,kt){se.setState(function(jt){var Lt=jt.loadedKeys,he=Lt===void 0?[]:Lt,Re=jt.loadingKeys,on=Re===void 0?[]:Re,de=se.props,De=de.loadData,Ke=de.onLoad;if(!De||he.indexOf(Bt)!==-1||on.indexOf(Bt)!==-1)return null;var An=De(re);return An.then(function(){var Yn=se.state.loadedKeys,gi=(0,cn.L0)(Yn,Bt);Ke==null||Ke(gi,{event:"load",node:re}),se.setUncontrolledState({loadedKeys:gi}),se.setState(function(fi){return{loadingKeys:(0,cn._5)(fi.loadingKeys,Bt)}}),mt()}).catch(function(Yn){if(se.setState(function(fi){return{loadingKeys:(0,cn._5)(fi.loadingKeys,Bt)}}),se.loadingRetryTimes[Bt]=(se.loadingRetryTimes[Bt]||0)+1,se.loadingRetryTimes[Bt]>=Un){var gi=se.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),se.setUncontrolledState({loadedKeys:(0,cn.L0)(gi,Bt)}),mt()}kt(Yn)}),{loadingKeys:(0,cn.L0)(on,Bt)}})});return xt.catch(function(){}),xt},se.onNodeMouseEnter=function(re,Bt){var xt=se.props.onMouseEnter;xt==null||xt({event:re,node:Bt})},se.onNodeMouseLeave=function(re,Bt){var xt=se.props.onMouseLeave;xt==null||xt({event:re,node:Bt})},se.onNodeContextMenu=function(re,Bt){var xt=se.props.onRightClick;xt&&(re.preventDefault(),xt({event:re,node:Bt}))},se.onFocus=function(){var re=se.props.onFocus;se.setState({focused:!0});for(var Bt=arguments.length,xt=new Array(Bt),mt=0;mt<Bt;mt++)xt[mt]=arguments[mt];re==null||re.apply(void 0,xt)},se.onBlur=function(){var re=se.props.onBlur;se.setState({focused:!1}),se.onActiveChange(null);for(var Bt=arguments.length,xt=new Array(Bt),mt=0;mt<Bt;mt++)xt[mt]=arguments[mt];re==null||re.apply(void 0,xt)},se.getTreeNodeRequiredProps=function(){var re=se.state,Bt=re.expandedKeys,xt=re.selectedKeys,mt=re.loadedKeys,kt=re.loadingKeys,jt=re.checkedKeys,Lt=re.halfCheckedKeys,he=re.dragOverNodeKey,Re=re.dropPosition,on=re.keyEntities;return{expandedKeys:Bt||[],selectedKeys:xt||[],loadedKeys:mt||[],loadingKeys:kt||[],checkedKeys:jt||[],halfCheckedKeys:Lt||[],dragOverNodeKey:he,dropPosition:Re,keyEntities:on}},se.setExpandedKeys=function(re){var Bt=se.state,xt=Bt.treeData,mt=Bt.fieldNames,kt=(0,Ut.oH)(xt,re,mt);se.setUncontrolledState({expandedKeys:re,flattenNodes:kt},!0)},se.onNodeExpand=function(re,Bt){var xt=se.state.expandedKeys,mt=se.state,kt=mt.listChanging,jt=mt.fieldNames,Lt=se.props,he=Lt.onExpand,Re=Lt.loadData,on=Bt.expanded,de=Bt[jt.key];if(!kt){var De=xt.indexOf(de),Ke=!on;if((0,et.ZP)(on&&De!==-1||!on&&De===-1,"Expand state not sync with index check"),Ke?xt=(0,cn.L0)(xt,de):xt=(0,cn._5)(xt,de),se.setExpandedKeys(xt),he==null||he(xt,{node:Bt,expanded:Ke,nativeEvent:re.nativeEvent}),Ke&&Re){var An=se.onNodeLoad(Bt);An&&An.then(function(){var Yn=(0,Ut.oH)(se.state.treeData,xt,jt);se.setUncontrolledState({flattenNodes:Yn})}).catch(function(){var Yn=se.state.expandedKeys,gi=(0,cn._5)(Yn,de);se.setExpandedKeys(gi)})}}},se.onListChangeStart=function(){se.setUncontrolledState({listChanging:!0})},se.onListChangeEnd=function(){setTimeout(function(){se.setUncontrolledState({listChanging:!1})})},se.onActiveChange=function(re){var Bt=se.state.activeKey,xt=se.props.onActiveChange;Bt!==re&&(se.setState({activeKey:re}),re!==null&&se.scrollTo({key:re}),xt==null||xt(re))},se.getActiveItem=function(){var re=se.state,Bt=re.activeKey,xt=re.flattenNodes;return Bt===null?null:xt.find(function(mt){var kt=mt.key;return kt===Bt})||null},se.offsetActiveKey=function(re){var Bt=se.state,xt=Bt.flattenNodes,mt=Bt.activeKey,kt=xt.findIndex(function(he){var Re=he.key;return Re===mt});kt===-1&&re<0&&(kt=xt.length),kt=(kt+re+xt.length)%xt.length;var jt=xt[kt];if(jt){var Lt=jt.key;se.onActiveChange(Lt)}else se.onActiveChange(null)},se.onKeyDown=function(re){var Bt=se.state,xt=Bt.activeKey,mt=Bt.expandedKeys,kt=Bt.checkedKeys,jt=Bt.fieldNames,Lt=se.props,he=Lt.onKeyDown,Re=Lt.checkable,on=Lt.selectable;switch(re.which){case Ce.Z.UP:{se.offsetActiveKey(-1),re.preventDefault();break}case Ce.Z.DOWN:{se.offsetActiveKey(1),re.preventDefault();break}}var de=se.getActiveItem();if(de&&de.data){var De=se.getTreeNodeRequiredProps(),Ke=de.data.isLeaf===!1||!!(de.data[jt.children]||[]).length,An=(0,Ut.F)((0,Me.Z)((0,Me.Z)({},(0,Ut.H8)(xt,De)),{},{data:de.data,active:!0}));switch(re.which){case Ce.Z.LEFT:{Ke&&mt.includes(xt)?se.onNodeExpand({},An):de.parent&&se.onActiveChange(de.parent.key),re.preventDefault();break}case Ce.Z.RIGHT:{Ke&&!mt.includes(xt)?se.onNodeExpand({},An):de.children&&de.children.length&&se.onActiveChange(de.children[0].key),re.preventDefault();break}case Ce.Z.ENTER:case Ce.Z.SPACE:{Re&&!An.disabled&&An.checkable!==!1&&!An.disableCheckbox?se.onNodeCheck({},An,!kt.includes(xt)):!Re&&on&&!An.disabled&&An.selectable!==!1&&se.onNodeSelect({},An);break}}}he==null||he(re)},se.setUncontrolledState=function(re){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!se.destroyed){var mt=!1,kt=!0,jt={};Object.keys(re).forEach(function(Lt){if(Lt in se.props){kt=!1;return}mt=!0,jt[Lt]=re[Lt]}),mt&&(!Bt||kt)&&se.setState((0,Me.Z)((0,Me.Z)({},jt),xt))}},se.scrollTo=function(re){se.listRef.current.scrollTo(re)},se}return(0,Nt.Z)(ke,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var $e=this.props.activeKey;$e!==void 0&&$e!==this.state.activeKey&&(this.setState({activeKey:$e}),$e!==null&&this.scrollTo({key:$e}))}},{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 $e,Ze=this.state,ee=Ze.focused,re=Ze.flattenNodes,Bt=Ze.keyEntities,xt=Ze.draggingNodeKey,mt=Ze.activeKey,kt=Ze.dropLevelOffset,jt=Ze.dropContainerKey,Lt=Ze.dropTargetKey,he=Ze.dropPosition,Re=Ze.dragOverNodeKey,on=Ze.indent,de=this.props,De=de.prefixCls,Ke=de.className,An=de.style,Yn=de.showLine,gi=de.focusable,fi=de.tabIndex,xi=fi===void 0?0:fi,Gi=de.selectable,yr=de.showIcon,lr=de.icon,rr=de.switcherIcon,Rr=de.draggable,Nr=de.checkable,Ji=de.checkStrictly,Wr=de.disabled,Xi=de.motion,Et=de.loadData,ai=de.filterTreeNode,mi=de.height,hr=de.itemHeight,wr=de.virtual,_i=de.titleRender,Qr=de.dropIndicatorRender,Zr=de.onContextMenu,xo=de.onScroll,an=de.direction,Qe=de.rootClassName,Jt=de.rootStyle,un=(0,Tt.Z)(this.props,{aria:!0,data:!0}),On;return Rr&&((0,oe.Z)(Rr)==="object"?On=Rr:typeof Rr=="function"?On={nodeDraggable:Rr}:On={}),nt.createElement(ht.k.Provider,{value:{prefixCls:De,selectable:Gi,showIcon:yr,icon:lr,switcherIcon:rr,draggable:On,draggingNodeKey:xt,checkable:Nr,checkStrictly:Ji,disabled:Wr,keyEntities:Bt,dropLevelOffset:kt,dropContainerKey:jt,dropTargetKey:Lt,dropPosition:he,dragOverNodeKey:Re,indent:on,direction:an,dropIndicatorRender:Qr,loadData:Et,filterTreeNode:ai,titleRender:_i,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}},nt.createElement("div",{role:"tree",className:we()(De,Ke,Qe,($e={},(0,zt.Z)($e,"".concat(De,"-show-line"),Yn),(0,zt.Z)($e,"".concat(De,"-focused"),ee),(0,zt.Z)($e,"".concat(De,"-active-focused"),mt!==null),$e)),style:Jt},nt.createElement(Vn,(0,At.Z)({ref:this.listRef,prefixCls:De,style:An,data:re,disabled:Wr,selectable:Gi,checkable:!!Nr,motion:Xi,dragging:xt!==null,height:mi,itemHeight:hr,virtual:wr,focusable:gi,focused:ee,tabIndex:xi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Zr,onScroll:xo},this.getTreeNodeRequiredProps(),un))))}}],[{key:"getDerivedStateFromProps",value:function($e,Ze){var ee=Ze.prevProps,re={prevProps:$e};function Bt(gi){return!ee&&gi in $e||ee&&ee[gi]!==$e[gi]}var xt,mt=Ze.fieldNames;if(Bt("fieldNames")&&(mt=(0,Ut.w$)($e.fieldNames),re.fieldNames=mt),Bt("treeData")?xt=$e.treeData:Bt("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xt=(0,Ut.zn)($e.children)),xt){re.treeData=xt;var kt=(0,Ut.I8)(xt,{fieldNames:mt});re.keyEntities=(0,Me.Z)((0,zt.Z)({},ye,nn),kt.keyEntities)}var jt=re.keyEntities||Ze.keyEntities;if(Bt("expandedKeys")||ee&&Bt("autoExpandParent"))re.expandedKeys=$e.autoExpandParent||!ee&&$e.defaultExpandParent?(0,cn.r7)($e.expandedKeys,jt):$e.expandedKeys;else if(!ee&&$e.defaultExpandAll){var Lt=(0,Me.Z)({},jt);delete Lt[ye],re.expandedKeys=Object.keys(Lt).map(function(gi){return Lt[gi].key})}else!ee&&$e.defaultExpandedKeys&&(re.expandedKeys=$e.autoExpandParent||$e.defaultExpandParent?(0,cn.r7)($e.defaultExpandedKeys,jt):$e.defaultExpandedKeys);if(re.expandedKeys||delete re.expandedKeys,xt||re.expandedKeys){var he=(0,Ut.oH)(xt||Ze.treeData,re.expandedKeys||Ze.expandedKeys,mt);re.flattenNodes=he}if($e.selectable&&(Bt("selectedKeys")?re.selectedKeys=(0,cn.BT)($e.selectedKeys,$e):!ee&&$e.defaultSelectedKeys&&(re.selectedKeys=(0,cn.BT)($e.defaultSelectedKeys,$e))),$e.checkable){var Re;if(Bt("checkedKeys")?Re=(0,cn.E6)($e.checkedKeys)||{}:!ee&&$e.defaultCheckedKeys?Re=(0,cn.E6)($e.defaultCheckedKeys)||{}:xt&&(Re=(0,cn.E6)($e.checkedKeys)||{checkedKeys:Ze.checkedKeys,halfCheckedKeys:Ze.halfCheckedKeys}),Re){var on=Re,de=on.checkedKeys,De=de===void 0?[]:de,Ke=on.halfCheckedKeys,An=Ke===void 0?[]:Ke;if(!$e.checkStrictly){var Yn=(0,Hn.S)(De,!0,jt);De=Yn.checkedKeys,An=Yn.halfCheckedKeys}re.checkedKeys=De,re.halfCheckedKeys=An}}return Bt("loadedKeys")&&(re.loadedKeys=$e.loadedKeys),re}}]),ke}(nt.Component);ii.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:st,allowDrop:function(){return!0},expandAction:!1},ii.TreeNode=Ht.Z;var xn=ii,ni=xn},35654:function(Bn,Cn,St){"use strict";St.d(Cn,{BT:function(){return nt},E6:function(){return gt},L0:function(){return ne},OM:function(){return et},_5:function(){return Pe},r7:function(){return vt},wA:function(){return we},yx:function(){return xe}});var At=St(19127),zt=St(20135),oe=St(48736),Me=St(59301),Xt=St(39417),Se=St(67841),Nt=St(71430),Ne=null;function Pe(Pt,Ft){if(!Pt)return[];var wt=Pt.slice(),Ot=wt.indexOf(Ft);return Ot>=0&&wt.splice(Ot,1),wt}function ne(Pt,Ft){var wt=(Pt||[]).slice();return wt.indexOf(Ft)===-1&&wt.push(Ft),wt}function xe(Pt){return Pt.split("-")}function we(Pt,Ft){var wt=[],Ot=(0,Se.Z)(Ft,Pt);function Ht(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Zt.forEach(function(Ut){var fe=Ut.key,Yt=Ut.children;wt.push(fe),Ht(Yt)})}return Ht(Ot.children),wt}function Ce(Pt){if(Pt.parent){var Ft=xe(Pt.pos);return Number(Ft[Ft.length-1])===Pt.parent.children.length-1}return!1}function Tt(Pt){var Ft=xe(Pt.pos);return Number(Ft[Ft.length-1])===0}function et(Pt,Ft,wt,Ot,Ht,Zt,Ut,fe,Yt,Xe){var pe,tn=Pt.clientX,Ve=Pt.clientY,We=Pt.target.getBoundingClientRect(),_e=We.top,Tn=We.height,ye=(Xe==="rtl"?-1:1)*(((Ht==null?void 0:Ht.x)||0)-tn),Gt=(ye-12)/Ot,nn=(0,Se.Z)(fe,wt.props.eventKey);if(Ve<_e+Tn/2){var Zn=Ut.findIndex(function(ni){return ni.key===nn.key}),_n=Zn<=0?0:Zn-1,Te=Ut[_n].key;nn=(0,Se.Z)(fe,Te)}var rn=nn.key,gn=nn,Vn=nn.key,cn=0,Hn=0;if(!Yt.includes(rn))for(var me=0;me<Gt&&Ce(nn);me+=1)nn=nn.parent,Hn+=1;var Un=Ft.props.data,ii=nn.node,xn=!0;return Tt(nn)&&nn.level===0&&Ve<_e+Tn/2&&Zt({dragNode:Un,dropNode:ii,dropPosition:-1})&&nn.key===wt.props.eventKey?cn=-1:(gn.children||[]).length&&Yt.includes(Vn)?Zt({dragNode:Un,dropNode:ii,dropPosition:0})?cn=0:xn=!1:Hn===0?Gt>-1.5?Zt({dragNode:Un,dropNode:ii,dropPosition:1})?cn=1:xn=!1:Zt({dragNode:Un,dropNode:ii,dropPosition:0})?cn=0:Zt({dragNode:Un,dropNode:ii,dropPosition:1})?cn=1:xn=!1:Zt({dragNode:Un,dropNode:ii,dropPosition:1})?cn=1:xn=!1,{dropPosition:cn,dropLevelOffset:Hn,dropTargetKey:nn.key,dropTargetPos:nn.pos,dragOverNodeKey:Vn,dropContainerKey:cn===0?null:((pe=nn.parent)===null||pe===void 0?void 0:pe.key)||null,dropAllowed:xn}}function nt(Pt,Ft){if(Pt){var wt=Ft.multiple;return wt?Pt.slice():Pt.length?[Pt[0]]:Pt}}var ht=function(Ft){return Ft};function st(Pt,Ft){if(!Pt)return[];var wt=Ft||{},Ot=wt.processProps,Ht=Ot===void 0?ht:Ot,Zt=Array.isArray(Pt)?Pt:[Pt];return Zt.map(function(Ut){var fe=Ut.children,Yt=_objectWithoutProperties(Ut,Ne),Xe=st(fe,Ft);return React.createElement(TreeNode,_extends({key:Yt.key},Ht(Yt)),Xe)})}function gt(Pt){if(!Pt)return null;var Ft;if(Array.isArray(Pt))Ft={checkedKeys:Pt,halfCheckedKeys:void 0};else if((0,zt.Z)(Pt)==="object")Ft={checkedKeys:Pt.checked||void 0,halfCheckedKeys:Pt.halfChecked||void 0};else return(0,oe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ft}function vt(Pt,Ft){var wt=new Set;function Ot(Ht){if(!wt.has(Ht)){var Zt=(0,Se.Z)(Ft,Ht);if(Zt){wt.add(Ht);var Ut=Zt.parent,fe=Zt.node;fe.disabled||Ut&&Ot(Ut.key)}}}return(Pt||[]).forEach(function(Ht){Ot(Ht)}),(0,At.Z)(wt)}},90782:function(Bn,Cn,St){"use strict";St.d(Cn,{S:function(){return Nt}});var At=St(48736),zt=St(67841);function oe(Ne,Pe){var ne=new Set;return Ne.forEach(function(xe){Pe.has(xe)||ne.add(xe)}),ne}function Me(Ne){var Pe=Ne||{},ne=Pe.disabled,xe=Pe.disableCheckbox,we=Pe.checkable;return!!(ne||xe)||we===!1}function Xt(Ne,Pe,ne,xe){for(var we=new Set(Ne),Ce=new Set,Tt=0;Tt<=ne;Tt+=1){var et=Pe.get(Tt)||new Set;et.forEach(function(gt){var vt=gt.key,Pt=gt.node,Ft=gt.children,wt=Ft===void 0?[]:Ft;we.has(vt)&&!xe(Pt)&&wt.filter(function(Ot){return!xe(Ot.node)}).forEach(function(Ot){we.add(Ot.key)})})}for(var nt=new Set,ht=ne;ht>=0;ht-=1){var st=Pe.get(ht)||new Set;st.forEach(function(gt){var vt=gt.parent,Pt=gt.node;if(!(xe(Pt)||!gt.parent||nt.has(gt.parent.key))){if(xe(gt.parent.node)){nt.add(vt.key);return}var Ft=!0,wt=!1;(vt.children||[]).filter(function(Ot){return!xe(Ot.node)}).forEach(function(Ot){var Ht=Ot.key,Zt=we.has(Ht);Ft&&!Zt&&(Ft=!1),!wt&&(Zt||Ce.has(Ht))&&(wt=!0)}),Ft&&we.add(vt.key),wt&&Ce.add(vt.key),nt.add(vt.key)}})}return{checkedKeys:Array.from(we),halfCheckedKeys:Array.from(oe(Ce,we))}}function Se(Ne,Pe,ne,xe,we){for(var Ce=new Set(Ne),Tt=new Set(Pe),et=0;et<=xe;et+=1){var nt=ne.get(et)||new Set;nt.forEach(function(vt){var Pt=vt.key,Ft=vt.node,wt=vt.children,Ot=wt===void 0?[]:wt;!Ce.has(Pt)&&!Tt.has(Pt)&&!we(Ft)&&Ot.filter(function(Ht){return!we(Ht.node)}).forEach(function(Ht){Ce.delete(Ht.key)})})}Tt=new Set;for(var ht=new Set,st=xe;st>=0;st-=1){var gt=ne.get(st)||new Set;gt.forEach(function(vt){var Pt=vt.parent,Ft=vt.node;if(!(we(Ft)||!vt.parent||ht.has(vt.parent.key))){if(we(vt.parent.node)){ht.add(Pt.key);return}var wt=!0,Ot=!1;(Pt.children||[]).filter(function(Ht){return!we(Ht.node)}).forEach(function(Ht){var Zt=Ht.key,Ut=Ce.has(Zt);wt&&!Ut&&(wt=!1),!Ot&&(Ut||Tt.has(Zt))&&(Ot=!0)}),wt||Ce.delete(Pt.key),Ot&&Tt.add(Pt.key),ht.add(Pt.key)}})}return{checkedKeys:Array.from(Ce),halfCheckedKeys:Array.from(oe(Tt,Ce))}}function Nt(Ne,Pe,ne,xe){var we=[],Ce;xe?Ce=xe:Ce=Me;var Tt=new Set(Ne.filter(function(st){var gt=!!(0,zt.Z)(ne,st);return gt||we.push(st),gt})),et=new Map,nt=0;Object.keys(ne).forEach(function(st){var gt=ne[st],vt=gt.level,Pt=et.get(vt);Pt||(Pt=new Set,et.set(vt,Pt)),Pt.add(gt),nt=Math.max(nt,vt)}),(0,At.ZP)(!we.length,"Tree missing follow keys: ".concat(we.slice(0,100).map(function(st){return"'".concat(st,"'")}).join(", ")));var ht;return Pe===!0?ht=Xt(Tt,et,nt,Ce):ht=Se(Tt,Pe.halfCheckedKeys,et,nt,Ce),ht}},67841:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return At}});function At(zt,oe){return zt[oe]}},71430:function(Bn,Cn,St){"use strict";St.d(Cn,{F:function(){return vt},H8:function(){return gt},I8:function(){return st},km:function(){return we},oH:function(){return nt},w$:function(){return Ce},zn:function(){return et}});var At=St(20135),zt=St(19127),oe=St(44127),Me=St(6620),Xt=St(11592),Se=St(2738),Nt=St(48736),Ne=St(67841),Pe=["children"];function ne(Pt,Ft){return"".concat(Pt,"-").concat(Ft)}function xe(Pt){return Pt&&Pt.type&&Pt.type.isTreeNode}function we(Pt,Ft){return Pt!=null?Pt:Ft}function Ce(Pt){var Ft=Pt||{},wt=Ft.title,Ot=Ft._title,Ht=Ft.key,Zt=Ft.children,Ut=wt||"title";return{title:Ut,_title:Ot||[Ut],key:Ht||"key",children:Zt||"children"}}function Tt(Pt,Ft){var wt=new Map;function Ot(Ht){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ht||[]).forEach(function(Ut){var fe=Ut[Ft.key],Yt=Ut[Ft.children];warning(fe!=null,"Tree node must have a certain key: [".concat(Zt).concat(fe,"]"));var Xe=String(fe);warning(!wt.has(Xe)||fe===null||fe===void 0,"Same 'key' exist in the Tree: ".concat(Xe)),wt.set(Xe,!0),Ot(Yt,"".concat(Zt).concat(Xe," > "))})}Ot(Pt)}function et(Pt){function Ft(wt){var Ot=(0,Xt.Z)(wt);return Ot.map(function(Ht){if(!xe(Ht))return(0,Nt.ZP)(!Ht,"Tree/TreeNode can only accept TreeNode as children."),null;var Zt=Ht.key,Ut=Ht.props,fe=Ut.children,Yt=(0,Me.Z)(Ut,Pe),Xe=(0,oe.Z)({key:Zt},Yt),pe=Ft(fe);return pe.length&&(Xe.children=pe),Xe}).filter(function(Ht){return Ht})}return Ft(Pt)}function nt(Pt,Ft,wt){var Ot=Ce(wt),Ht=Ot._title,Zt=Ot.key,Ut=Ot.children,fe=new Set(Ft===!0?[]:Ft),Yt=[];function Xe(pe){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return pe.map(function(Ve,We){for(var _e=ne(tn?tn.pos:"0",We),Tn=we(Ve[Zt],_e),ye,Gt=0;Gt<Ht.length;Gt+=1){var nn=Ht[Gt];if(Ve[nn]!==void 0){ye=Ve[nn];break}}var Zn=(0,oe.Z)((0,oe.Z)({},(0,Se.Z)(Ve,[].concat((0,zt.Z)(Ht),[Zt,Ut]))),{},{title:ye,key:Tn,parent:tn,pos:_e,children:null,data:Ve,isStart:[].concat((0,zt.Z)(tn?tn.isStart:[]),[We===0]),isEnd:[].concat((0,zt.Z)(tn?tn.isEnd:[]),[We===pe.length-1])});return Yt.push(Zn),Ft===!0||fe.has(Tn)?Zn.children=Xe(Ve[Ut]||[],Zn):Zn.children=[],Zn})}return Xe(Pt),Yt}function ht(Pt,Ft,wt){var Ot={};(0,At.Z)(wt)==="object"?Ot=wt:Ot={externalGetKey:wt},Ot=Ot||{};var Ht=Ot,Zt=Ht.childrenPropName,Ut=Ht.externalGetKey,fe=Ht.fieldNames,Yt=Ce(fe),Xe=Yt.key,pe=Yt.children,tn=Zt||pe,Ve;Ut?typeof Ut=="string"?Ve=function(Tn){return Tn[Ut]}:typeof Ut=="function"&&(Ve=function(Tn){return Ut(Tn)}):Ve=function(Tn,ye){return we(Tn[Xe],ye)};function We(_e,Tn,ye,Gt){var nn=_e?_e[tn]:Pt,Zn=_e?ne(ye.pos,Tn):"0",_n=_e?[].concat((0,zt.Z)(Gt),[_e]):[];if(_e){var Te=Ve(_e,Zn),rn={node:_e,index:Tn,pos:Zn,key:Te,parentPos:ye.node?ye.pos:null,level:ye.level+1,nodes:_n};Ft(rn)}nn&&nn.forEach(function(gn,Vn){We(gn,Vn,{node:_e,pos:Zn,level:ye?ye.level+1:-1},_n)})}We(null)}function st(Pt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},wt=Ft.initWrapper,Ot=Ft.processEntity,Ht=Ft.onProcessFinished,Zt=Ft.externalGetKey,Ut=Ft.childrenPropName,fe=Ft.fieldNames,Yt=arguments.length>2?arguments[2]:void 0,Xe=Zt||Yt,pe={},tn={},Ve={posEntities:pe,keyEntities:tn};return wt&&(Ve=wt(Ve)||Ve),ht(Pt,function(We){var _e=We.node,Tn=We.index,ye=We.pos,Gt=We.key,nn=We.parentPos,Zn=We.level,_n=We.nodes,Te={node:_e,nodes:_n,index:Tn,key:Gt,pos:ye,level:Zn},rn=we(Gt,ye);pe[ye]=Te,tn[rn]=Te,Te.parent=pe[nn],Te.parent&&(Te.parent.children=Te.parent.children||[],Te.parent.children.push(Te)),Ot&&Ot(Te,Ve)},{externalGetKey:Xe,childrenPropName:Ut,fieldNames:fe}),Ht&&Ht(Ve),Ve}function gt(Pt,Ft){var wt=Ft.expandedKeys,Ot=Ft.selectedKeys,Ht=Ft.loadedKeys,Zt=Ft.loadingKeys,Ut=Ft.checkedKeys,fe=Ft.halfCheckedKeys,Yt=Ft.dragOverNodeKey,Xe=Ft.dropPosition,pe=Ft.keyEntities,tn=(0,Ne.Z)(pe,Pt),Ve={eventKey:Pt,expanded:wt.indexOf(Pt)!==-1,selected:Ot.indexOf(Pt)!==-1,loaded:Ht.indexOf(Pt)!==-1,loading:Zt.indexOf(Pt)!==-1,checked:Ut.indexOf(Pt)!==-1,halfChecked:fe.indexOf(Pt)!==-1,pos:String(tn?tn.pos:""),dragOver:Yt===Pt&&Xe===0,dragOverGapTop:Yt===Pt&&Xe===-1,dragOverGapBottom:Yt===Pt&&Xe===1};return Ve}function vt(Pt){var Ft=Pt.data,wt=Pt.expanded,Ot=Pt.selected,Ht=Pt.checked,Zt=Pt.loaded,Ut=Pt.loading,fe=Pt.halfChecked,Yt=Pt.dragOver,Xe=Pt.dragOverGapTop,pe=Pt.dragOverGapBottom,tn=Pt.pos,Ve=Pt.active,We=Pt.eventKey,_e=(0,oe.Z)((0,oe.Z)({},Ft),{},{expanded:wt,selected:Ot,checked:Ht,loaded:Zt,loading:Ut,halfChecked:fe,dragOver:Yt,dragOverGapTop:Xe,dragOverGapBottom:pe,pos:tn,active:Ve,key:We});return"props"in _e||Object.defineProperty(_e,"props",{get:function(){return(0,Nt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Pt}}),_e}},8224:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return zt}});var At=St(4676);function zt(oe,Me,Xt,Se){var Nt=At.unstable_batchedUpdates?function(Pe){At.unstable_batchedUpdates(Xt,Pe)}:Xt;return oe!=null&&oe.addEventListener&&oe.addEventListener(Me,Nt,Se),{remove:function(){oe!=null&&oe.removeEventListener&&oe.removeEventListener(Me,Nt,Se)}}}},55468:function(Bn,Cn,St){"use strict";St.d(Cn,{g1:function(){return xe},os:function(){return Ce}});var At=/margin|padding|width|height|max|min|offset/,zt={left:!0,top:!0},oe={cssFloat:1,styleFloat:1,float:1};function Me(Tt){return Tt.nodeType===1?Tt.ownerDocument.defaultView.getComputedStyle(Tt,null):{}}function Xt(Tt,et,nt){if(et=et.toLowerCase(),nt==="auto"){if(et==="height")return Tt.offsetHeight;if(et==="width")return Tt.offsetWidth}return et in zt||(zt[et]=At.test(et)),zt[et]?parseFloat(nt)||0:nt}function Se(Tt,et){var nt=arguments.length,ht=Me(Tt);return et=oe[et]?"cssFloat"in Tt.style?"cssFloat":"styleFloat":et,nt===1?ht:Xt(Tt,et,ht[et]||Tt.style[et])}function Nt(Tt,et,nt){var ht=arguments.length;if(et=oe[et]?"cssFloat"in Tt.style?"cssFloat":"styleFloat":et,ht===3)return typeof nt=="number"&&At.test(et)&&(nt="".concat(nt,"px")),Tt.style[et]=nt,nt;for(var st in et)et.hasOwnProperty(st)&&Nt(Tt,st,et[st]);return Me(Tt)}function Ne(Tt){return Tt===document.body?document.documentElement.clientWidth:Tt.offsetWidth}function Pe(Tt){return Tt===document.body?window.innerHeight||document.documentElement.clientHeight:Tt.offsetHeight}function ne(){var Tt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Tt,height:et}}function xe(){var Tt=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:Tt,height:et}}function we(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ce(Tt){var et=Tt.getBoundingClientRect(),nt=document.documentElement;return{left:et.left+(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||nt.scrollTop)-(nt.clientTop||document.body.clientTop||0)}}},24514:function(Bn,Cn,St){"use strict";St.d(Cn,{G:function(){return Me}});var At=St(47273),zt=function(Se){if((0,At.Z)()&&window.document.documentElement){var Nt=Array.isArray(Se)?Se:[Se],Ne=window.document.documentElement;return Nt.some(function(Pe){return Pe in Ne.style})}return!1},oe=function(Se,Nt){if(!zt(Se))return!1;var Ne=document.createElement("div"),Pe=Ne.style[Se];return Ne.style[Se]=Nt,Ne.style[Se]!==Pe};function Me(Xt,Se){return!Array.isArray(Xt)&&Se!==void 0?oe(Xt,Se):zt(Xt)}},45680:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return ii}});var At=St(96663),zt=St(20135),oe=St(44127),Me=St(90493),Xt=St(72071),Se=St(6620),Nt=St(92310),Ne=St.n(Nt),Pe=St(29301),ne=St(70425),xe=St(34280),we=St(59301),Ce=St(4676),Tt=we.forwardRef(function(xn,ni){var ze=xn.height,Ie=xn.offsetY,ke=xn.offsetX,se=xn.children,$e=xn.prefixCls,Ze=xn.onInnerResize,ee=xn.innerProps,re=xn.rtl,Bt=xn.extra,xt={},mt={display:"flex",flexDirection:"column"};return Ie!==void 0&&(xt={height:ze,position:"relative",overflow:"hidden"},mt=(0,oe.Z)((0,oe.Z)({},mt),{},(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({transform:"translateY(".concat(Ie,"px)")},re?"marginRight":"marginLeft",-ke),"position","absolute"),"left",0),"right",0),"top",0))),we.createElement("div",{style:xt},we.createElement(Pe.Z,{onResize:function(jt){var Lt=jt.offsetHeight;Lt&&Ze&&Ze()}},we.createElement("div",(0,At.Z)({style:mt,className:Ne()((0,Me.Z)({},"".concat($e,"-holder-inner"),$e)),ref:ni},ee),se,Bt)))});Tt.displayName="Filler";var et=Tt;function nt(xn){var ni=xn.children,ze=xn.setRef,Ie=we.useCallback(function(ke){ze(ke)},[]);return we.cloneElement(ni,{ref:Ie})}function ht(xn,ni,ze,Ie,ke,se,$e,Ze){var ee=Ze.getKey;return xn.slice(ni,ze+1).map(function(re,Bt){var xt=ni+Bt,mt=$e(re,xt,{style:{width:Ie},offsetX:ke}),kt=ee(re);return we.createElement(nt,{key:kt,setRef:function(Lt){return se(re,Lt)}},mt)})}function st(xn,ni,ze,Ie){var ke=ze-xn,se=ni-ze,$e=Math.min(ke,se)*2;if(Ie<=$e){var Ze=Math.floor(Ie/2);return Ie%2?ze+Ze+1:ze-Ze}return ke>se?ze-(Ie-se):ze+(Ie-ke)}function gt(xn,ni,ze){var Ie=xn.length,ke=ni.length,se,$e;if(Ie===0&&ke===0)return null;Ie<ke?(se=xn,$e=ni):(se=ni,$e=xn);var Ze={__EMPTY_ITEM__:!0};function ee(jt){return jt!==void 0?ze(jt):Ze}for(var re=null,Bt=Math.abs(Ie-ke)!==1,xt=0;xt<$e.length;xt+=1){var mt=ee(se[xt]),kt=ee($e[xt]);if(mt!==kt){re=xt,Bt=Bt||mt!==ee($e[xt+1]);break}}return re===null?null:{index:re,multiple:Bt}}function vt(xn,ni,ze){var Ie=we.useState(xn),ke=(0,Xt.Z)(Ie,2),se=ke[0],$e=ke[1],Ze=we.useState(null),ee=(0,Xt.Z)(Ze,2),re=ee[0],Bt=ee[1];return we.useEffect(function(){var xt=gt(se||[],xn||[],ni);(xt==null?void 0:xt.index)!==void 0&&(ze==null||ze(xt.index),Bt(xn[xt.index])),$e(xn)},[xn]),[re]}var Pt=St(16089),Ft=(typeof navigator=="undefined"?"undefined":(0,zt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),wt=Ft,Ot=function(xn,ni,ze,Ie){var ke=(0,we.useRef)(!1),se=(0,we.useRef)(null);function $e(){clearTimeout(se.current),ke.current=!0,se.current=setTimeout(function(){ke.current=!1},50)}var Ze=(0,we.useRef)({top:xn,bottom:ni,left:ze,right:Ie});return Ze.current.top=xn,Ze.current.bottom=ni,Ze.current.left=ze,Ze.current.right=Ie,function(ee,re){var Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xt=ee?re<0&&Ze.current.left||re>0&&Ze.current.right:re<0&&Ze.current.top||re>0&&Ze.current.bottom;return Bt&&xt?(clearTimeout(se.current),ke.current=!1):(!xt||ke.current)&&$e(),!ke.current&&xt}};function Ht(xn,ni,ze,Ie,ke,se,$e){var Ze=(0,we.useRef)(0),ee=(0,we.useRef)(null),re=(0,we.useRef)(null),Bt=(0,we.useRef)(!1),xt=Ot(ni,ze,Ie,ke);function mt(on,de){if(Pt.Z.cancel(ee.current),!xt(!1,de)){var De=on;if(!De._virtualHandled)De._virtualHandled=!0;else return;Ze.current+=de,re.current=de,wt||De.preventDefault(),ee.current=(0,Pt.Z)(function(){var Ke=Bt.current?10:1;$e(Ze.current*Ke,!1),Ze.current=0})}}function kt(on,de){$e(de,!0),wt||on.preventDefault()}var jt=(0,we.useRef)(null),Lt=(0,we.useRef)(null);function he(on){if(xn){Pt.Z.cancel(Lt.current),Lt.current=(0,Pt.Z)(function(){jt.current=null},2);var de=on.deltaX,De=on.deltaY,Ke=on.shiftKey,An=de,Yn=De;(jt.current==="sx"||!jt.current&&Ke&&De&&!de)&&(An=De,Yn=0,jt.current="sx");var gi=Math.abs(An),fi=Math.abs(Yn);jt.current===null&&(jt.current=se&&gi>fi?"x":"y"),jt.current==="y"?mt(on,Yn):kt(on,An)}}function Re(on){xn&&(Bt.current=on.detail===re.current)}return[he,Re]}function Zt(xn,ni,ze,Ie){var ke=we.useMemo(function(){return[new Map,[]]},[xn,ze.id,Ie]),se=(0,Xt.Z)(ke,2),$e=se[0],Ze=se[1],ee=function(Bt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bt,mt=$e.get(Bt),kt=$e.get(xt);if(mt===void 0||kt===void 0)for(var jt=xn.length,Lt=Ze.length;Lt<jt;Lt+=1){var he,Re=xn[Lt],on=ni(Re);$e.set(on,Lt);var de=(he=ze.get(on))!==null&&he!==void 0?he:Ie;if(Ze[Lt]=(Ze[Lt-1]||0)+de,on===Bt&&(mt=Lt),on===xt&&(kt=Lt),mt!==void 0&&kt!==void 0)break}return{top:Ze[mt-1]||0,bottom:Ze[kt]}};return ee}var Ut=St(52884),fe=St(95727),Yt=function(){function xn(){(0,Ut.Z)(this,xn),(0,Me.Z)(this,"maps",void 0),(0,Me.Z)(this,"id",0),(0,Me.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,fe.Z)(xn,[{key:"set",value:function(ze,Ie){this.maps[ze]=Ie,this.id+=1,this.diffKeys.add(ze)}},{key:"get",value:function(ze){return this.maps[ze]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),xn}(),Xe=Yt;function pe(xn){var ni=parseFloat(xn);return isNaN(ni)?0:ni}function tn(xn,ni,ze){var Ie=we.useState(0),ke=(0,Xt.Z)(Ie,2),se=ke[0],$e=ke[1],Ze=(0,we.useRef)(new Map),ee=(0,we.useRef)(new Xe),re=(0,we.useRef)(0);function Bt(){re.current+=1}function xt(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Bt();var jt=function(){var Re=!1;Ze.current.forEach(function(on,de){if(on&&on.offsetParent){var De=on.offsetHeight,Ke=getComputedStyle(on),An=Ke.marginTop,Yn=Ke.marginBottom,gi=pe(An),fi=pe(Yn),xi=De+gi+fi;ee.current.get(de)!==xi&&(ee.current.set(de,xi),Re=!0)}}),Re&&$e(function(on){return on+1})};if(kt)jt();else{re.current+=1;var Lt=re.current;Promise.resolve().then(function(){Lt===re.current&&jt()})}}function mt(kt,jt){var Lt=xn(kt),he=Ze.current.get(Lt);jt?(Ze.current.set(Lt,jt),xt()):Ze.current.delete(Lt),!he!=!jt&&(jt?ni==null||ni(kt):ze==null||ze(kt))}return(0,we.useEffect)(function(){return Bt},[]),[mt,xt,ee.current,se]}var Ve=14/15;function We(xn,ni,ze){var Ie=(0,we.useRef)(!1),ke=(0,we.useRef)(0),se=(0,we.useRef)(0),$e=(0,we.useRef)(null),Ze=(0,we.useRef)(null),ee,re=function(kt){if(Ie.current){var jt=Math.ceil(kt.touches[0].pageX),Lt=Math.ceil(kt.touches[0].pageY),he=ke.current-jt,Re=se.current-Lt,on=Math.abs(he)>Math.abs(Re);on?ke.current=jt:se.current=Lt;var de=ze(on,on?he:Re,!1,kt);de&&kt.preventDefault(),clearInterval(Ze.current),de&&(Ze.current=setInterval(function(){on?he*=Ve:Re*=Ve;var De=Math.floor(on?he:Re);(!ze(on,De,!0)||Math.abs(De)<=.1)&&clearInterval(Ze.current)},16))}},Bt=function(){Ie.current=!1,ee()},xt=function(kt){ee(),kt.touches.length===1&&!Ie.current&&(Ie.current=!0,ke.current=Math.ceil(kt.touches[0].pageX),se.current=Math.ceil(kt.touches[0].pageY),$e.current=kt.target,$e.current.addEventListener("touchmove",re,{passive:!1}),$e.current.addEventListener("touchend",Bt,{passive:!0}))};ee=function(){$e.current&&($e.current.removeEventListener("touchmove",re),$e.current.removeEventListener("touchend",Bt))},(0,xe.Z)(function(){return xn&&ni.current.addEventListener("touchstart",xt,{passive:!0}),function(){var mt;(mt=ni.current)===null||mt===void 0||mt.removeEventListener("touchstart",xt),ee(),clearInterval(Ze.current)}},[xn])}function _e(xn){return Math.floor(Math.pow(xn,.5))}function Tn(xn,ni){var ze="touches"in xn?xn.touches[0]:xn;return ze[ni?"pageX":"pageY"]-window[ni?"scrollX":"scrollY"]}function ye(xn,ni,ze){we.useEffect(function(){var Ie=ni.current;if(xn&&Ie){var ke=!1,se,$e,Ze=function(){Pt.Z.cancel(se)},ee=function mt(){Ze(),se=(0,Pt.Z)(function(){ze($e),mt()})},re=function(kt){if(!(kt.target.draggable||kt.button!==0)){var jt=kt;jt._virtualHandled||(jt._virtualHandled=!0,ke=!0)}},Bt=function(){ke=!1,Ze()},xt=function(kt){if(ke){var jt=Tn(kt,!1),Lt=Ie.getBoundingClientRect(),he=Lt.top,Re=Lt.bottom;if(jt<=he){var on=he-jt;$e=-_e(on),ee()}else if(jt>=Re){var de=jt-Re;$e=_e(de),ee()}else Ze()}};return Ie.addEventListener("mousedown",re),Ie.ownerDocument.addEventListener("mouseup",Bt),Ie.ownerDocument.addEventListener("mousemove",xt),function(){Ie.removeEventListener("mousedown",re),Ie.ownerDocument.removeEventListener("mouseup",Bt),Ie.ownerDocument.removeEventListener("mousemove",xt),Ze()}}},[xn])}var Gt=10;function nn(xn,ni,ze,Ie,ke,se,$e,Ze){var ee=we.useRef(),re=we.useState(null),Bt=(0,Xt.Z)(re,2),xt=Bt[0],mt=Bt[1];return(0,xe.Z)(function(){if(xt&&xt.times<Gt){if(!xn.current){mt(function(Xi){return(0,oe.Z)({},Xi)});return}se();var kt=xt.targetAlign,jt=xt.originAlign,Lt=xt.index,he=xt.offset,Re=xn.current.clientHeight,on=!1,de=kt,De=null;if(Re){for(var Ke=kt||jt,An=0,Yn=0,gi=0,fi=Math.min(ni.length-1,Lt),xi=0;xi<=fi;xi+=1){var Gi=ke(ni[xi]);Yn=An;var yr=ze.get(Gi);gi=Yn+(yr===void 0?Ie:yr),An=gi}for(var lr=Ke==="top"?he:Re-he,rr=fi;rr>=0;rr-=1){var Rr=ke(ni[rr]),Nr=ze.get(Rr);if(Nr===void 0){on=!0;break}if(lr-=Nr,lr<=0)break}switch(Ke){case"top":De=Yn-he;break;case"bottom":De=gi-Re+he;break;default:{var Ji=xn.current.scrollTop,Wr=Ji+Re;Yn<Ji?de="top":gi>Wr&&(de="bottom")}}De!==null&&$e(De),De!==xt.lastTop&&(on=!0)}on&&mt((0,oe.Z)((0,oe.Z)({},xt),{},{times:xt.times+1,targetAlign:de,lastTop:De}))}},[xt,xn.current]),function(kt){if(kt==null){Ze();return}if(Pt.Z.cancel(ee.current),typeof kt=="number")$e(kt);else if(kt&&(0,zt.Z)(kt)==="object"){var jt,Lt=kt.align;"index"in kt?jt=kt.index:jt=ni.findIndex(function(on){return ke(on)===kt.key});var he=kt.offset,Re=he===void 0?0:he;mt({times:0,index:jt,offset:Re,originAlign:Lt})}}}var Zn=we.forwardRef(function(xn,ni){var ze=xn.prefixCls,Ie=xn.rtl,ke=xn.scrollOffset,se=xn.scrollRange,$e=xn.onStartMove,Ze=xn.onStopMove,ee=xn.onScroll,re=xn.horizontal,Bt=xn.spinSize,xt=xn.containerSize,mt=xn.style,kt=xn.thumbStyle,jt=xn.showScrollBar,Lt=we.useState(!1),he=(0,Xt.Z)(Lt,2),Re=he[0],on=he[1],de=we.useState(null),De=(0,Xt.Z)(de,2),Ke=De[0],An=De[1],Yn=we.useState(null),gi=(0,Xt.Z)(Yn,2),fi=gi[0],xi=gi[1],Gi=!Ie,yr=we.useRef(),lr=we.useRef(),rr=we.useState(jt),Rr=(0,Xt.Z)(rr,2),Nr=Rr[0],Ji=Rr[1],Wr=we.useRef(),Xi=function(){jt===!0||jt===!1||(clearTimeout(Wr.current),Ji(!0),Wr.current=setTimeout(function(){Ji(!1)},3e3))},Et=se-xt||0,ai=xt-Bt||0,mi=we.useMemo(function(){if(ke===0||Et===0)return 0;var Jt=ke/Et;return Jt*ai},[ke,Et,ai]),hr=function(un){un.stopPropagation(),un.preventDefault()},wr=we.useRef({top:mi,dragging:Re,pageY:Ke,startTop:fi});wr.current={top:mi,dragging:Re,pageY:Ke,startTop:fi};var _i=function(un){on(!0),An(Tn(un,re)),xi(wr.current.top),$e(),un.stopPropagation(),un.preventDefault()};we.useEffect(function(){var Jt=function(ce){ce.preventDefault()},un=yr.current,On=lr.current;return un.addEventListener("touchstart",Jt,{passive:!1}),On.addEventListener("touchstart",_i,{passive:!1}),function(){un.removeEventListener("touchstart",Jt),On.removeEventListener("touchstart",_i)}},[]);var Qr=we.useRef();Qr.current=Et;var Zr=we.useRef();Zr.current=ai,we.useEffect(function(){if(Re){var Jt,un=function(ce){var mn=wr.current,Wn=mn.dragging,Mi=mn.pageY,pi=mn.startTop;Pt.Z.cancel(Jt);var ue=yr.current.getBoundingClientRect(),Nn=xt/(re?ue.width:ue.height);if(Wn){var ui=(Tn(ce,re)-Mi)*Nn,Hi=pi;!Gi&&re?Hi-=ui:Hi+=ui;var Ge=Qr.current,pn=Zr.current,je=pn?Hi/pn:0,hn=Math.ceil(je*Ge);hn=Math.max(hn,0),hn=Math.min(hn,Ge),Jt=(0,Pt.Z)(function(){ee(hn,re)})}},On=function(){on(!1),Ze()};return window.addEventListener("mousemove",un,{passive:!0}),window.addEventListener("touchmove",un,{passive:!0}),window.addEventListener("mouseup",On,{passive:!0}),window.addEventListener("touchend",On,{passive:!0}),function(){window.removeEventListener("mousemove",un),window.removeEventListener("touchmove",un),window.removeEventListener("mouseup",On),window.removeEventListener("touchend",On),Pt.Z.cancel(Jt)}}},[Re]),we.useEffect(function(){return Xi(),function(){clearTimeout(Wr.current)}},[ke]),we.useImperativeHandle(ni,function(){return{delayHidden:Xi}});var xo="".concat(ze,"-scrollbar"),an={position:"absolute",visibility:Nr?null:"hidden"},Qe={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return re?(an.height=8,an.left=0,an.right=0,an.bottom=0,Qe.height="100%",Qe.width=Bt,Gi?Qe.left=mi:Qe.right=mi):(an.width=8,an.top=0,an.bottom=0,Gi?an.right=0:an.left=0,Qe.width="100%",Qe.height=Bt,Qe.top=mi),we.createElement("div",{ref:yr,className:Ne()(xo,(0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(xo,"-horizontal"),re),"".concat(xo,"-vertical"),!re),"".concat(xo,"-visible"),Nr)),style:(0,oe.Z)((0,oe.Z)({},an),mt),onMouseDown:hr,onMouseMove:Xi},we.createElement("div",{ref:lr,className:Ne()("".concat(xo,"-thumb"),(0,Me.Z)({},"".concat(xo,"-thumb-moving"),Re)),style:(0,oe.Z)((0,oe.Z)({},Qe),kt),onMouseDown:_i}))}),_n=Zn,Te=20;function rn(){var xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ze=xn/ni*xn;return isNaN(ze)&&(ze=0),ze=Math.max(ze,Te),Math.floor(ze)}var gn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Vn=[],cn={overflowY:"auto",overflowAnchor:"none"};function Hn(xn,ni){var ze=xn.prefixCls,Ie=ze===void 0?"rc-virtual-list":ze,ke=xn.className,se=xn.height,$e=xn.itemHeight,Ze=xn.fullHeight,ee=Ze===void 0?!0:Ze,re=xn.style,Bt=xn.data,xt=xn.children,mt=xn.itemKey,kt=xn.virtual,jt=xn.direction,Lt=xn.scrollWidth,he=xn.component,Re=he===void 0?"div":he,on=xn.onScroll,de=xn.onVirtualScroll,De=xn.onVisibleChange,Ke=xn.innerProps,An=xn.extraRender,Yn=xn.styles,gi=xn.showScrollBar,fi=gi===void 0?"optional":gi,xi=(0,Se.Z)(xn,gn),Gi=we.useCallback(function(Ar){return typeof mt=="function"?mt(Ar):Ar==null?void 0:Ar[mt]},[mt]),yr=tn(Gi,null,null),lr=(0,Xt.Z)(yr,4),rr=lr[0],Rr=lr[1],Nr=lr[2],Ji=lr[3],Wr=!!(kt!==!1&&se&&$e),Xi=we.useMemo(function(){return Object.values(Nr.maps).reduce(function(Ar,Tr){return Ar+Tr},0)},[Nr.id,Nr.maps]),Et=Wr&&Bt&&(Math.max($e*Bt.length,Xi)>se||!!Lt),ai=jt==="rtl",mi=Ne()(Ie,(0,Me.Z)({},"".concat(Ie,"-rtl"),ai),ke),hr=Bt||Vn,wr=(0,we.useRef)(),_i=(0,we.useRef)(),Qr=(0,we.useRef)(),Zr=(0,we.useState)(0),xo=(0,Xt.Z)(Zr,2),an=xo[0],Qe=xo[1],Jt=(0,we.useState)(0),un=(0,Xt.Z)(Jt,2),On=un[0],Ee=un[1],ce=(0,we.useState)(!1),mn=(0,Xt.Z)(ce,2),Wn=mn[0],Mi=mn[1],pi=function(){Mi(!0)},ue=function(){Mi(!1)},Nn={getKey:Gi};function ui(Ar){Qe(function(Tr){var uo;typeof Ar=="function"?uo=Ar(Tr):uo=Ar;var $r=vr(uo);return wr.current.scrollTop=$r,$r})}var Hi=(0,we.useRef)({start:0,end:hr.length}),Ge=(0,we.useRef)(),pn=vt(hr,Gi),je=(0,Xt.Z)(pn,1),hn=je[0];Ge.current=hn;var yn=we.useMemo(function(){if(!Wr)return{scrollHeight:void 0,start:0,end:hr.length-1,offset:void 0};if(!Et){var Ar;return{scrollHeight:((Ar=_i.current)===null||Ar===void 0?void 0:Ar.offsetHeight)||0,start:0,end:hr.length-1,offset:void 0}}for(var Tr=0,uo,$r,Zo,oa=hr.length,cr=0;cr<oa;cr+=1){var fr=hr[cr],ri=Gi(fr),Mr=Nr.get(ri),Io=Tr+(Mr===void 0?$e:Mr);Io>=an&&uo===void 0&&(uo=cr,$r=Tr),Io>an+se&&Zo===void 0&&(Zo=cr),Tr=Io}return uo===void 0&&(uo=0,$r=0,Zo=Math.ceil(se/$e)),Zo===void 0&&(Zo=hr.length-1),Zo=Math.min(Zo+1,hr.length-1),{scrollHeight:Tr,start:uo,end:Zo,offset:$r}},[Et,Wr,an,hr,Ji,se]),dn=yn.scrollHeight,kn=yn.start,Ln=yn.end,Kn=yn.offset;Hi.current.start=kn,Hi.current.end=Ln,we.useLayoutEffect(function(){var Ar=Nr.getRecord();if(Ar.size===1){var Tr=Array.from(Ar)[0],uo=hr[kn];if(uo){var $r=Gi(uo);if($r===Tr){var Zo=Nr.get(Tr),oa=Zo-$e;ui(function(cr){return cr+oa})}}}Nr.resetRecord()},[dn]);var Jn=we.useState({width:0,height:se}),Zi=(0,Xt.Z)(Jn,2),en=Zi[0],qi=Zi[1],Er=function(Tr){qi({width:Tr.offsetWidth,height:Tr.offsetHeight})},nr=(0,we.useRef)(),sn=(0,we.useRef)(),si=we.useMemo(function(){return rn(en.width,Lt)},[en.width,Lt]),Ai=we.useMemo(function(){return rn(en.height,dn)},[en.height,dn]),Ki=dn-se,Di=(0,we.useRef)(Ki);Di.current=Ki;function vr(Ar){var Tr=Ar;return Number.isNaN(Di.current)||(Tr=Math.min(Tr,Di.current)),Tr=Math.max(Tr,0),Tr}var Pr=an<=0,tr=an>=Ki,Oi=On<=0,Lr=On>=Lt,bn=Ot(Pr,tr,Oi,Lr),wo=function(){return{x:ai?-On:On,y:an}},Mn=(0,we.useRef)(wo()),Or=(0,ne.useEvent)(function(Ar){if(de){var Tr=(0,oe.Z)((0,oe.Z)({},wo()),Ar);(Mn.current.x!==Tr.x||Mn.current.y!==Tr.y)&&(de(Tr),Mn.current=Tr)}});function ea(Ar,Tr){var uo=Ar;Tr?((0,Ce.flushSync)(function(){Ee(uo)}),Or()):ui(uo)}function bo(Ar){var Tr=Ar.currentTarget.scrollTop;Tr!==an&&ui(Tr),on==null||on(Ar),Or()}var ca=function(Tr){var uo=Tr,$r=Lt?Lt-en.width:0;return uo=Math.max(uo,0),uo=Math.min(uo,$r),uo},qo=(0,ne.useEvent)(function(Ar,Tr){Tr?((0,Ce.flushSync)(function(){Ee(function(uo){var $r=uo+(ai?-Ar:Ar);return ca($r)})}),Or()):ui(function(uo){var $r=uo+Ar;return $r})}),dr=Ht(Wr,Pr,tr,Oi,Lr,!!Lt,qo),er=(0,Xt.Z)(dr,2),eo=er[0],ko=er[1];We(Wr,wr,function(Ar,Tr,uo,$r){var Zo=$r;return bn(Ar,Tr,uo)?!1:!Zo||!Zo._virtualHandled?(Zo&&(Zo._virtualHandled=!0),eo({preventDefault:function(){},deltaX:Ar?Tr:0,deltaY:Ar?0:Tr}),!0):!1}),ye(Et,wr,function(Ar){ui(function(Tr){return Tr+Ar})}),(0,xe.Z)(function(){function Ar(uo){var $r=Pr&&uo.detail<0,Zo=tr&&uo.detail>0;Wr&&!$r&&!Zo&&uo.preventDefault()}var Tr=wr.current;return Tr.addEventListener("wheel",eo,{passive:!1}),Tr.addEventListener("DOMMouseScroll",ko,{passive:!0}),Tr.addEventListener("MozMousePixelScroll",Ar,{passive:!1}),function(){Tr.removeEventListener("wheel",eo),Tr.removeEventListener("DOMMouseScroll",ko),Tr.removeEventListener("MozMousePixelScroll",Ar)}},[Wr,Pr,tr]),(0,xe.Z)(function(){if(Lt){var Ar=ca(On);Ee(Ar),Or({x:Ar})}},[en.width,Lt]);var ki=function(){var Tr,uo;(Tr=nr.current)===null||Tr===void 0||Tr.delayHidden(),(uo=sn.current)===null||uo===void 0||uo.delayHidden()},Vt=nn(wr,hr,Nr,$e,Gi,function(){return Rr(!0)},ui,ki);we.useImperativeHandle(ni,function(){return{nativeElement:Qr.current,getScrollInfo:wo,scrollTo:function(Tr){function uo($r){return $r&&(0,zt.Z)($r)==="object"&&("left"in $r||"top"in $r)}uo(Tr)?(Tr.left!==void 0&&Ee(ca(Tr.left)),Vt(Tr.top)):Vt(Tr)}}}),(0,xe.Z)(function(){if(De){var Ar=hr.slice(kn,Ln+1);De(Ar,hr)}},[kn,Ln,hr]);var fo=Zt(hr,Gi,Nr,$e),_o=An==null?void 0:An({start:kn,end:Ln,virtual:Et,offsetX:On,offsetY:Kn,rtl:ai,getSize:fo}),ro=ht(hr,kn,Ln,Lt,On,rr,xt,Nn),Yo=null;se&&(Yo=(0,oe.Z)((0,Me.Z)({},ee?"height":"maxHeight",se),cn),Wr&&(Yo.overflowY="hidden",Lt&&(Yo.overflowX="hidden"),Wn&&(Yo.pointerEvents="none")));var ya={};return ai&&(ya.dir="rtl"),we.createElement("div",(0,At.Z)({ref:Qr,style:(0,oe.Z)((0,oe.Z)({},re),{},{position:"relative"}),className:mi},ya,xi),we.createElement(Pe.Z,{onResize:Er},we.createElement(Re,{className:"".concat(Ie,"-holder"),style:Yo,ref:wr,onScroll:bo,onMouseEnter:ki},we.createElement(et,{prefixCls:Ie,height:dn,offsetX:On,offsetY:Kn,scrollWidth:Lt,onInnerResize:Rr,ref:_i,innerProps:Ke,rtl:ai,extra:_o},ro))),Et&&dn>se&&we.createElement(_n,{ref:nr,prefixCls:Ie,scrollOffset:an,scrollRange:dn,rtl:ai,onScroll:ea,onStartMove:pi,onStopMove:ue,spinSize:Ai,containerSize:en.height,style:Yn==null?void 0:Yn.verticalScrollBar,thumbStyle:Yn==null?void 0:Yn.verticalScrollBarThumb,showScrollBar:fi}),Et&&Lt>en.width&&we.createElement(_n,{ref:sn,prefixCls:Ie,scrollOffset:On,scrollRange:Lt,rtl:ai,onScroll:ea,onStartMove:pi,onStopMove:ue,spinSize:si,containerSize:en.width,horizontal:!0,style:Yn==null?void 0:Yn.horizontalScrollBar,thumbStyle:Yn==null?void 0:Yn.horizontalScrollBarThumb,showScrollBar:fi}))}var me=we.forwardRef(Hn);me.displayName="List";var Un=me,ii=Un},25510:function(Bn){"use strict";Bn.exports="data:image/png;base64,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KFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9hpp/3S7pvxF9t3n31svWlr28GHHWIPPPhX22STje1HJ59iyyy7jL362iy7//4HbM899rQHH3jIDj/kkHAMwJ9uucWOOPLwEEczdcmpNmWJKSGe56Hnnrbnn3zSll1iKfvYHh+x/fbZz669/no76Scn2+lnnWnLrbyiXX81gGZyOOCRYws4KTqYi8h+O9IBlvm8r4iWAlgKYGlXHBbAkk+5AlgKYMnnmg48UQBLAmCZ7xP6/SWX2tlnnGEnfv/79o+77mIHfe1gW2vatL6ji/G3zE8pj6+CBGz/+7//a9854bshv8n7/+V9dsJxx4dYl7+99LzdcdfttuUWW9viS04JW54BLLPnzLVbb7nV9tp9z2AhIYbkpz/BwjLJfn/55XbFFVfat775LVt/w+l2+umn2cOPPmo/P+2Xdvwxx9hKq/6D/fDEH9qmm2xiE8ct0medmDfXbrjuOrv4ggvsvvvusw9/9GO2wYbT7bHHn7Srrr7GPvmf/2nbbvsO+8Y3vm7rrbeuLUKm3dfNjjnmGPvlaafbX+673z7+7x+3rbfYzA446AC79957bNq0dUKcy8RJEwNgeeCBB23vvfe22/98hx33rWNt1ZVXsRtvvMG+ccThNmrsaFt6uWVs6lJL2quzXrOZYyzE0Cw9ZartsOU77D8+/Um76ppr7KQfnWSnn/krW2Oj9e388863pSZNslE0ZNYcGzV6HBnl5h87PTIAn+AW0tlK84NYCmApgKVdcVgASz7lehKw1HWDFNYc9pZz4e9PPbxK9XL6cspBZEF+vf66UX799dc3GDD1IkYh9+A/4gteeuml1FeEcl/+8pfDx1/+LKSqM4ze/e53B1dAKg2yGjS/cC8Alm7wmWir80j4P9tzORTOx6eoXKsYFh0BwVice+659o1vfMPe80/vsSOOPMKmTSMPy7yQxI006ToXhXeRFfeII46wxx57zN7+9reHZ7n/l7/cZ9ddd53tvffHwtkvlCN2hrbeeOON9m//9m8hTfyaa64ZLCzElpx11lkhhuV73/uebb75Fvbzn58a5tP5559v//7v/x6exZWzzTbbhLq4x3zADXXCCSfYs889Z//xH/9hn/jEJ0JEDu/56Ec/YmuttVYAKGSCXXzxxQONPvvZz9pvf/vb0IZjjz02lPnUpz5lHPq51FJL2U033WSkgKf+GTPuCfUQ/3PkkUeGNj/4wIP22c991kiHv+eee9r73ve+EEtz94wZNnnSJJswYUJ4nnl3/fXX2/e///1gZdpg+nS78IILQmyQrpSzvSgbp+b32ZMZH9qn9O/QhrGiTdTPuDLXcrLdtpPptp353EoGLkyZbuuyXUMzDnPs5oUMvPLKKyvPU6tqF7899NBDtsEGG1TK5qqs6jxTDj/s5igOw7qff/75cDYQ3712oUwQcvFVN1H5fbvttgtK6s0KWAYyhp0ELAIhHOD5m9/8xv7nf/4nbEN+73vfa8svv3wABzp0k7/JdEtsC7t+vvSlL9ndd98djoAA6FAeAfy73/0ugBCU9tlnnx3O4AF0sK35wx/+cOBhTp3FSsM5VwTX/uEPfwi5WN7xjneE/0+dOtVuv/32AFQALgALANQee+wR3k9beRfPAIxOOumk0G5ACefNcBo67iISzwFY1lhjjQAgADgciUGbAVOAi3/9138NQp3yhxxyiO200072+OOP2x//+Ec79NBDg7I/+uijgxCnzIc+9KEAPHbb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"},32637:function(Bn,Cn,St){"use strict";Bn.exports=St.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Bn){"use strict";Bn.exports="data:image/png;base64,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"},16722:function(Bn,Cn,St){"use strict";St.d(Cn,{Z:function(){return Ne}});const At=Pe=>typeof Pe=="object"&&Pe!=null&&Pe.nodeType===1,zt=(Pe,ne)=>(!ne||Pe!=="hidden")&&Pe!=="visible"&&Pe!=="clip",oe=(Pe,ne)=>{if(Pe.clientHeight<Pe.scrollHeight||Pe.clientWidth<Pe.scrollWidth){const xe=getComputedStyle(Pe,null);return zt(xe.overflowY,ne)||zt(xe.overflowX,ne)||(we=>{const Ce=(Tt=>{if(!Tt.ownerDocument||!Tt.ownerDocument.defaultView)return null;try{return Tt.ownerDocument.defaultView.frameElement}catch(et){return null}})(we);return!!Ce&&(Ce.clientHeight<we.scrollHeight||Ce.clientWidth<we.scrollWidth)})(Pe)}return!1},Me=(Pe,ne,xe,we,Ce,Tt,et,nt)=>Tt<Pe&&et>ne||Tt>Pe&&et<ne?0:Tt<=Pe&&nt<=xe||et>=ne&&nt>=xe?Tt-Pe-we:et>ne&&nt<xe||Tt<Pe&&nt>xe?et-ne+Ce:0,Xt=Pe=>{const ne=Pe.parentElement;return ne==null?Pe.getRootNode().host||null:ne},Se=(Pe,ne)=>{var xe,we,Ce,Tt;if(typeof document=="undefined")return[];const{scrollMode:et,block:nt,inline:ht,boundary:st,skipOverflowHiddenElements:gt}=ne,vt=typeof st=="function"?st:_n=>_n!==st;if(!At(Pe))throw new TypeError("Invalid target");const Pt=document.scrollingElement||document.documentElement,Ft=[];let wt=Pe;for(;At(wt)&&vt(wt);){if(wt=Xt(wt),wt===Pt){Ft.push(wt);break}wt!=null&&wt===document.body&&oe(wt)&&!oe(document.documentElement)||wt!=null&&oe(wt,gt)&&Ft.push(wt)}const Ot=(we=(xe=window.visualViewport)==null?void 0:xe.width)!=null?we:innerWidth,Ht=(Tt=(Ce=window.visualViewport)==null?void 0:Ce.height)!=null?Tt:innerHeight,{scrollX:Zt,scrollY:Ut}=window,{height:fe,width:Yt,top:Xe,right:pe,bottom:tn,left:Ve}=Pe.getBoundingClientRect(),{top:We,right:_e,bottom:Tn,left:ye}=(_n=>{const Te=window.getComputedStyle(_n);return{top:parseFloat(Te.scrollMarginTop)||0,right:parseFloat(Te.scrollMarginRight)||0,bottom:parseFloat(Te.scrollMarginBottom)||0,left:parseFloat(Te.scrollMarginLeft)||0}})(Pe);let Gt=nt==="start"||nt==="nearest"?Xe-We:nt==="end"?tn+Tn:Xe+fe/2-We+Tn,nn=ht==="center"?Ve+Yt/2-ye+_e:ht==="end"?pe+_e:Ve-ye;const Zn=[];for(let _n=0;_n<Ft.length;_n++){const Te=Ft[_n],{height:rn,width:gn,top:Vn,right:cn,bottom:Hn,left:me}=Te.getBoundingClientRect();if(et==="if-needed"&&Xe>=0&&Ve>=0&&tn<=Ht&&pe<=Ot&&(Te===Pt&&!oe(Te)||Xe>=Vn&&tn<=Hn&&Ve>=me&&pe<=cn))return Zn;const Un=getComputedStyle(Te),ii=parseInt(Un.borderLeftWidth,10),xn=parseInt(Un.borderTopWidth,10),ni=parseInt(Un.borderRightWidth,10),ze=parseInt(Un.borderBottomWidth,10);let Ie=0,ke=0;const se="offsetWidth"in Te?Te.offsetWidth-Te.clientWidth-ii-ni:0,$e="offsetHeight"in Te?Te.offsetHeight-Te.clientHeight-xn-ze:0,Ze="offsetWidth"in Te?Te.offsetWidth===0?0:gn/Te.offsetWidth:0,ee="offsetHeight"in Te?Te.offsetHeight===0?0:rn/Te.offsetHeight:0;if(Pt===Te)Ie=nt==="start"?Gt:nt==="end"?Gt-Ht:nt==="nearest"?Me(Ut,Ut+Ht,Ht,xn,ze,Ut+Gt,Ut+Gt+fe,fe):Gt-Ht/2,ke=ht==="start"?nn:ht==="center"?nn-Ot/2:ht==="end"?nn-Ot:Me(Zt,Zt+Ot,Ot,ii,ni,Zt+nn,Zt+nn+Yt,Yt),Ie=Math.max(0,Ie+Ut),ke=Math.max(0,ke+Zt);else{Ie=nt==="start"?Gt-Vn-xn:nt==="end"?Gt-Hn+ze+$e:nt==="nearest"?Me(Vn,Hn,rn,xn,ze+$e,Gt,Gt+fe,fe):Gt-(Vn+rn/2)+$e/2,ke=ht==="start"?nn-me-ii:ht==="center"?nn-(me+gn/2)+se/2:ht==="end"?nn-cn+ni+se:Me(me,cn,gn,ii,ni+se,nn,nn+Yt,Yt);const{scrollLeft:re,scrollTop:Bt}=Te;Ie=ee===0?0:Math.max(0,Math.min(Bt+Ie/ee,Te.scrollHeight-rn/ee+$e)),ke=Ze===0?0:Math.max(0,Math.min(re+ke/Ze,Te.scrollWidth-gn/Ze+se)),Gt+=Bt-Ie,nn+=re-ke}Zn.push({el:Te,top:Ie,left:ke})}return Zn},Nt=Pe=>Pe===!1?{block:"end",inline:"nearest"}:(ne=>ne===Object(ne)&&Object.keys(ne).length!==0)(Pe)?Pe:{block:"start",inline:"nearest"};function Ne(Pe,ne){if(!Pe.isConnected||!(Ce=>{let Tt=Ce;for(;Tt&&Tt.parentNode;){if(Tt.parentNode===document)return!0;Tt=Tt.parentNode instanceof ShadowRoot?Tt.parentNode.host:Tt.parentNode}return!1})(Pe))return;const xe=(Ce=>{const Tt=window.getComputedStyle(Ce);return{top:parseFloat(Tt.scrollMarginTop)||0,right:parseFloat(Tt.scrollMarginRight)||0,bottom:parseFloat(Tt.scrollMarginBottom)||0,left:parseFloat(Tt.scrollMarginLeft)||0}})(Pe);if((Ce=>typeof Ce=="object"&&typeof Ce.behavior=="function")(ne))return ne.behavior(Se(Pe,ne));const we=typeof ne=="boolean"||ne==null?void 0:ne.behavior;for(const{el:Ce,top:Tt,left:et}of Se(Pe,Nt(ne))){const nt=Tt-xe.top+xe.bottom,ht=et-xe.left+xe.right;Ce.scroll({top:nt,left:ht,behavior:we})}}}}]);