|
|
!(function(){var aP=Object.defineProperty,sP=Object.defineProperties;var lP=Object.getOwnPropertyDescriptors;var iv=Object.getOwnPropertySymbols;var Sx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable;var yx=(gn,zt,he)=>zt in gn?aP(gn,zt,{enumerable:!0,configurable:!0,writable:!0,value:he}):gn[zt]=he,hf=(gn,zt)=>{for(var he in zt||(zt={}))Sx.call(zt,he)&&yx(gn,he,zt[he]);if(iv)for(var he of iv(zt))xx.call(zt,he)&&yx(gn,he,zt[he]);return gn},_y=(gn,zt)=>sP(gn,lP(zt));var Px=(gn,zt)=>{var he={};for(var pe in gn)Sx.call(gn,pe)&&zt.indexOf(pe)<0&&(he[pe]=gn[pe]);if(gn!=null&&iv)for(var pe of iv(gn))zt.indexOf(pe)<0&&xx.call(gn,pe)&&(he[pe]=gn[pe]);return he};(self.webpackChunk=self.webpackChunk||[]).push([[5825],{35323:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},19155:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},10402:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},72295:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},93343:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},24566:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},80205:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},61441:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},30631:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},43971:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},58358:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},44757:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},16537:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},77042:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},5527:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},86902:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},53878:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},21970:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Je,tt){return Ie.createElement(We.Z,(0,pe.Z)({},Je,{ref:tt,icon:st}))},be=Ie.forwardRef(it),yt=be},79906:function(){"use strict"},93938:function(gn,zt){"use strict";zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74809:function(gn,zt){"use strict";zt.Z={flex_box_center:"flex_box_center___iyIe6",flex_space_between:"flex_space_between___g2WjG",flex_box_vertical_center:"flex_box_vertical_center___Tde0v",flex_box_center_end:"flex_box_center_end___W1D5W",flex_box_column:"flex_box_column___ZiFvs",bg:"bg___T2R2s",containerTitle:"containerTitle___yARn_",containerDesc:"containerDesc___fKSYF",menus:"menus___e8wtg",listItem:"listItem___s7xhg",info:"info___Hx2bW",title:"title___W7a1R",titleLeft:"titleLeft___C5r0w",titleRight:"titleRight___g5GZv",acitons:"acitons___H0RU0",move:"move___qYkSy",hideHeadCheckbox:"hideHeadCheckbox___Hq5gw",moveCategory:"moveCategory___bZSGQ",tabSearch:"tabSearch___NaKI4",warpModal:"warpModal___HLUgh",modalColumn:"modalColumn___F7R5w",modalRow:"modalRow___L6ghw",sup:"sup___VGKXV",name:"name___QMvgh"}},57534:function(gn,zt){"use strict";zt.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl"}},63593:function(gn,zt){"use strict";zt.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"}},13021:function(gn,zt,he){"use strict";var pe=he(59301),Ie=Object.defineProperty,Ve=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,it=(vt,Je,tt)=>Je in vt?Ie(vt,Je,{enumerable:!0,configurable:!0,writable:!0,value:tt}):vt[Je]=tt,be=(vt,Je)=>{for(var tt in Je||(Je={}))st.call(Je,tt)&&it(vt,tt,Je[tt]);if(Ve)for(var tt of Ve(Je))We.call(Je,tt)&&it(vt,tt,Je[tt]);return vt};const yt=vt=>React.createElement("svg",be({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},vt),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));zt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},37404:function(){"use strict";function gn(Ee,ee,te,ue){te===void 0&&(te=0),ue===void 0&&(ue=1/0),this._name=Ee,this._defaultValue=ee,this._minimum=te,this._maximum=ue}Object.defineProperty(gn.prototype,"name",{get:function(){return this._name},set:function(Ee){if(typeof Ee!="string"||Ee==="")throw new Error("Shape name must be a valid string.");this._name=Ee}}),Object.defineProperty(gn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ee){if(typeof Ee!="number"||isNaN(Ee))throw new Error("The default value must be a real number, not: "+Ee);this._defaultValue=Ee}}),Object.defineProperty(gn.prototype,"minimum",{get:function(){return this._minimum},set:function(Ee){if(typeof Ee!="number"||isNaN(Ee))throw new Error("Minimum must be a real number, not: "+Ee);this._minimum=Ee}}),Object.defineProperty(gn.prototype,"maximum",{get:function(){return this._maximum},set:function(Ee){if(typeof Ee!="number"||isNaN(Ee))throw new Error("Maximum must be a real number, not: "+Ee);this._maximum=Ee}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ee,ee){var te=go.Shape._FigureParameters[Ee];return te?te[ee]:null},go.Shape.setFigureParameter=function(Ee,ee,te){if(!(te instanceof gn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+te);if(te.defaultValue<te.minimum||te.defaultValue>te.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+te.defaultValue);var ue=go.Shape._FigureParameters[Ee];ue||(ue=[],go.Shape._FigureParameters[Ee]=ue),ue[ee]=te};var zt=[];function he(Ee,ee){var te=zt.pop();return te===void 0?new go.Point(Ee,ee):(te.x=Ee,te.y=ee,te)}function pe(){var Ee=zt.pop();return Ee===void 0?new go.Point:Ee}function Ie(Ee){zt.push(Ee)}function Ve(Ee,ee,te,ue,ae,de,ve,Pe,Ae){Ae||(Ae=new go.Point);var xe=Ee-te,Le=ae-ve,Te=NaN,He=NaN;if(xe===0)if(Le===0)Ee===te&&(Te=Ee,He=ee);else{var ze=(de-Pe)/Le,Ke=de-ze*ae;Te=Ee,He=ze*Te+Ke}else if(Le===0){var Ze=(ee-ue)/xe,Mt=ee-Ze*Ee;Te=ae,He=Ze*Te+Mt}else{var Ze=(ee-ue)/xe,ze=(de-Pe)/Le,Mt=ee-Ze*Ee,Ke=de-ze*ae;Te=(Ke-Mt)/(Ze-ze),He=Ze*Te+Mt}return Ae.x=Te,Ae.y=He,Ae}function st(Ee,ee,te,ue,ae,de,ve,Pe,Ae,xe,Le,Te,He,ze){var Ke=1-Ae,Ze=Ae,Mt=Ee*Ke+te*Ze,Xe=ee*Ke+ue*Ze,Ft=te*Ke+ae*Ze,Ct=ue*Ke+de*Ze,Nt=ae*Ke+ve*Ze,It=de*Ke+Pe*Ze,_t=Mt*Ke+Ft*Ze,lt=Xe*Ke+Ct*Ze,je=Ft*Ke+Nt*Ze,Et=Ct*Ke+It*Ze,ln=_t*Ke+je*Ze,Ht=lt*Ke+Et*Ze;xe.x=Mt,xe.y=Xe,Le.x=_t,Le.y=lt,Te.x=ln,Te.y=Ht,He.x=je,He.y=Et,ze.x=Nt,ze.y=It}var We=new go.Spot(.156,.156),it=new go.Spot(.844,.844),be=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new gn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=5),ue=Math.min(ue,ee/3),ue=Math.min(ue,te/3);var ae=ue*be,de=new go.Geometry().add(new go.PathFigure(ue,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee-ue,0)).add(new go.PathSegment(go.PathSegment.Bezier,ee,ue,ee-ae,0,ee,ae)).add(new go.PathSegment(go.PathSegment.Line,ee,te-ue)).add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,te,ee,te-ae,ee-ae,te)).add(new go.PathSegment(go.PathSegment.Line,ue,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,ae,te,0,te-ae)).add(new go.PathSegment(go.PathSegment.Line,0,ue)).add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,ae,ae,0).close()));return ae>1&&(de.spot1=new go.Spot(0,0,ae,ae),de.spot2=new go.Spot(1,1,-ae,-ae)),de}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,te).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(ee,te).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ee,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(ee,te).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(.5*ee,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*te).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ee,ee,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=te/2,ue.endX=ee,ue.endY=te/2,ue}),go.Shape.defineFigureGenerator("LineV",function(Ee,ee,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=ee/2,ue.startY=0,ue.endX=ee/2,ue.endY=te,ue}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,te/2,!1).add(new go.PathSegment(go.PathSegment.Line,ee,te/2)).add(new go.PathSegment(go.PathSegment.Move,ee/2,0)).add(new go.PathSegment(go.PathSegment.Line,ee/2,te)))}),go.Shape.defineFigureGenerator("XLine",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)))}),go.Shape.defineFigureGenerator("LineRight",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(.25*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*ee,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ee,te)))}),go.Shape.defineFigureGenerator("LineDown",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,.25*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,.75*te)).add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(.75*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*ee,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ee,te)))}),go.Shape.defineFigureGenerator("LineUp",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,.75*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,.25*te)).add(new go.PathSegment(go.PathSegment.Line,ee,.75*te)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ee,ee,te){var ue=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ue*ee,(1-ue)*te,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,ue*te)).add(new go.PathSegment(go.PathSegment.Move,ue*ee,ue*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,(1-ue)*te)).add(new go.PathSegment(go.PathSegment.Move,0,te/2)).add(new go.PathSegment(go.PathSegment.Line,ee,te/2)).add(new go.PathSegment(go.PathSegment.Move,ee/2,0)).add(new go.PathSegment(go.PathSegment.Line,ee/2,te)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ee,ee,te){var ue=ee/2,ae=new go.Geometry().add(new go.PathFigure(ee,ee/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ue,ue,ue,ue).close()));return ae.spot1=We,ae.spot2=it,ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Line1",function(Ee,ee,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=0,ue.startY=0,ue.endX=ee,ue.endY=te,ue}),go.Shape.defineFigureGenerator("Line2",function(Ee,ee,te){var ue=new go.Geometry(go.Geometry.Line);return ue.startX=ee,ue.startY=0,ue.endX=0,ue.endY=te,ue}),go.Shape.defineFigureGenerator("Curve1",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ee,te,be*ee,0,ee,(1-be)*te)))}),go.Shape.defineFigureGenerator("Curve2",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ee,te,0,be*te,(1-be)*ee,te)))}),go.Shape.defineFigureGenerator("Curve3",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(ee,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ee,be*te,be*ee,te)))}),go.Shape.defineFigureGenerator("Curve4",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(ee,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,(1-be)*ee,0,0,(1-be)*te)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(ee,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new gn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=.1:ue<-1?ue=-1:ue>1&&(ue=1);var ae=Math.abs(ue)*ee;if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ee,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(ae,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ae,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee-ae,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,ae,te).close())),ae<ee/2&&de.setSpots(ae/ee,0,(ee-ae)/ee,1),de}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new gn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=10:ue<-ee?ue=-ee:ue>ee&&(ue=ee);var ae=Math.abs(ue);if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ee,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(ae,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ae,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee-ae,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,ae,te).close())),ae<ee/2&&de.setSpots(ae/ee,0,(ee-ae)/ee,1),de}}),go.Shape.setFigureParameter("Trapezoid1",0,new gn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=.2:ue<.5?ue=-.5:ue>.5&&(ue=.5);var ae=Math.abs(ue)*ee;if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ee,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(ae,0).add(new go.PathSegment(go.PathSegment.Line,ee-ae,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ae,te)).add(new go.PathSegment(go.PathSegment.Line,ae,te).close())),ae<ee/2&&de.setSpots(ae/ee,0,(ee-ae)/ee,1),de}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new gn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=20:ue<-ee?ue=-ee/2:ue>ee&&(ue=ee/2);var ae=Math.abs(ue);if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ee,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(ae,0).add(new go.PathSegment(go.PathSegment.Line,ee-ae,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ae,te)).add(new go.PathSegment(go.PathSegment.Line,ae,te).close())),ae<ee/2&&de.setSpots(ae/ee,0,(ee-ae)/ee,1),de}}),go.Shape.setFigureParameter("ManualOperation",0,new gn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)?ue=10:ue<-ee?ue=-ee/2:ue>ee&&(ue=ee/2);var ae=Math.abs(ue);if(ue===0){var de=new go.Geometry(go.Geometry.Rectangle);return de.startX=0,de.startY=0,de.endX=ee,de.endY=te,de}else{var de=new go.Geometry;return ue>0?de.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-ae,te)).add(new go.PathSegment(go.PathSegment.Line,ae,te).close())):de.add(new go.PathFigure(ae,0).add(new go.PathSegment(go.PathSegment.Line,ee-ae,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())),ae<ee/2&&de.setSpots(ae/ee,0,(ee-ae)/ee,1),de}});var yt=[];function vt(){var Ee=yt.pop();return Ee===void 0?[]:Ee}function Je(Ee){Ee.length=0,yt.push(Ee)}function tt(Ee){for(var ee=vt(),te=.5,ue=.5,ae=Math.PI*1.5,de=0,ve=0;ve<Ee;ve++)de=2*Math.PI/Ee*ve+ae,ee[ve]=new go.Point(ue+te*Math.cos(de),ue+te*Math.sin(de));return ee.push(ee[0]),ee}function $e(Ee){var ee=Qe(Ee),te=vt();te[0]=ee[0];for(var ue=1,ae=1;ue<ee.length;ue+=2,ae+=3)te[ae]=ee[ue],te[ae+1]=ee[ue],te[ae+2]=ee[ue+1];return Je(ee),te}function Qe(Ee){for(var ee=tt(Ee),te=vt(),ue=Math.floor(ee.length/2),ae=ee.length-1,de=Ee%2===0?2:1,ve=0;ve<ae;ve++){var Pe=ee[ve],Ae=ee[ve+1],xe=ee[(ue+ve-1)%ae],Le=ee[(ue+ve+de)%ae];te[ve*2]=Pe,te[ve*2+1]=Ve(Pe.x,Pe.y,xe.x,xe.y,Ae.x,Ae.y,Le.x,Le.y,new go.Point)}return te[te.length]=te[0],Je(ee),te}go.Shape.defineFigureGenerator("Pentagon",function(Ee,ee,te){var ue=tt(5),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<5;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.2,.22),ae.spot2=new go.Spot(.8,.9),ae}),go.Shape.defineFigureGenerator("Hexagon",function(Ee,ee,te){var ue=tt(6),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<6;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.07,.25),ae.spot2=new go.Spot(.93,.75),ae}),go.Shape.defineFigureGenerator("Heptagon",function(Ee,ee,te){var ue=tt(7),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<7;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.2,.15),ae.spot2=new go.Spot(.8,.85),ae}),go.Shape.defineFigureGenerator("Octagon",function(Ee,ee,te){var ue=tt(8),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<8;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.15,.15),ae.spot2=new go.Spot(.85,.85),ae}),go.Shape.defineFigureGenerator("Nonagon",function(Ee,ee,te){var ue=tt(9),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<9;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.17,.13),ae.spot2=new go.Spot(.82,.82),ae}),go.Shape.defineFigureGenerator("Decagon",function(Ee,ee,te){var ue=tt(10),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<10;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.16,.16),ae.spot2=new go.Spot(.84,.84),ae}),go.Shape.defineFigureGenerator("Dodecagon",function(Ee,ee,te){var ue=tt(12),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<12;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.16,.16),ae.spot2=new go.Spot(.84,.84),ae}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ee,ee,te){var ue=Qe(5),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<10;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.266,.333),ae.spot2=new go.Spot(.733,.733),ae}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ee,ee,te){var ue=Qe(6),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<12;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.17,.25),ae.spot2=new go.Spot(.83,.75),ae}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ee,ee,te){var ue=Qe(7),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<14;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.222,.277),ae.spot2=new go.Spot(.777,.666),ae}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ee,ee,te){var ue=Qe(8),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<16;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ee,ee,te){var ue=Qe(9),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<18;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.222,.277),ae.spot2=new go.Spot(.777,.666),ae}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ee,ee,te){var ue=Qe(10),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<20;ve++)de.add(new go.PathSegment(go.PathSegment.Line,ue[ve].x*ee,ue[ve].y*te));return de.add(new go.PathSegment(go.PathSegment.Line,ue[0].x*ee,ue[0].y*te).close()),Je(ue),ae.spot1=new go.Spot(.281,.261),ae.spot2=new go.Spot(.723,.748),ae}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ee,ee,te){var ue=$e(5),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<ue.length;ve+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[ve+2].x*ee,ue[ve+2].y*te,ue[ve].x*ee,ue[ve].y*te,ue[ve+1].x*ee,ue[ve+1].y*te));return de.segments.last().close(),Je(ue),ae.spot1=new go.Spot(.222,.277),ae.spot2=new go.Spot(.777,.777),ae}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ee,ee,te){var ue=$e(6),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<ue.length;ve+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[ve+2].x*ee,ue[ve+2].y*te,ue[ve].x*ee,ue[ve].y*te,ue[ve+1].x*ee,ue[ve+1].y*te));return de.segments.last().close(),Je(ue),ae.spot1=new go.Spot(.17,.222),ae.spot2=new go.Spot(.833,.777),ae}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ee,ee,te){var ue=$e(7),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<ue.length;ve+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[ve+2].x*ee,ue[ve+2].y*te,ue[ve].x*ee,ue[ve].y*te,ue[ve+1].x*ee,ue[ve+1].y*te));return de.segments.last().close(),Je(ue),ae.spot1=new go.Spot(.222,.222),ae.spot2=new go.Spot(.777,.777),ae}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ee,ee,te){var ue=$e(8),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<ue.length;ve+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[ve+2].x*ee,ue[ve+2].y*te,ue[ve].x*ee,ue[ve].y*te,ue[ve+1].x*ee,ue[ve+1].y*te));return de.segments.last().close(),Je(ue),ae.spot1=new go.Spot(.222,.222),ae.spot2=new go.Spot(.777,.777),ae}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ee,ee,te){var ue=$e(9),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<ue.length;ve+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[ve+2].x*ee,ue[ve+2].y*te,ue[ve].x*ee,ue[ve].y*te,ue[ve+1].x*ee,ue[ve+1].y*te));return de.segments.last().close(),Je(ue),ae.spot1=new go.Spot(.222,.222),ae.spot2=new go.Spot(.777,.777),ae}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ee,ee,te){var ue=$e(10),ae=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);ae.add(de);for(var ve=1;ve<ue.length;ve+=3)de.add(new go.PathSegment(go.PathSegment.Bezier,ue[ve+2].x*ee,ue[ve+2].y*te,ue[ve].x*ee,ue[ve].y*te,ue[ve+1].x*ee,ue[ve+1].y*te));return de.segments.last().close(),Je(ue),ae.spot1=new go.Spot(.222,.222),ae.spot2=new go.Spot(.777,.777),ae}),go.Shape.setFigureParameter("FramedRectangle",0,new gn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new gn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN,ae=Ee?Ee.parameter2:NaN;isNaN(ue)&&(ue=8),isNaN(ae)&&(ae=8);var de=new go.Geometry,ve=new go.PathFigure(0,0,!0);return de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue<ee/2&&ae<te/2&&(ve.add(new go.PathSegment(go.PathSegment.Move,ue,ae)),ve.add(new go.PathSegment(go.PathSegment.Line,ue,te-ae)),ve.add(new go.PathSegment(go.PathSegment.Line,ee-ue,te-ae)),ve.add(new go.PathSegment(go.PathSegment.Line,ee-ue,ae).close())),de.setSpots(0,0,1,1,ue,ae,-ue,-ae),de}),go.Shape.setFigureParameter("Ring",0,new gn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=8);var ae=ee/2,de=new go.Geometry,ve=new go.PathFigure(ee,ee/2,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Arc,0,360,ae,ae,ae,ae).close());var Pe=Math.max(ae-ue,0);return Pe>0&&(ve.add(new go.PathSegment(go.PathSegment.Move,ee/2+Pe,ee/2)),ve.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ae,ae,Pe,Pe).close())),de.spot1=We,de.spot2=it,de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Cloud",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(.08034461*ee,.1944299*te,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*ee,.05349299*te,-.09239631*ee,.07836421*te,.1406031*ee,-.0542823*te)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*ee,.074219*te,.2450511*ee,-.00697547*te,.3776197*ee,-.01112067*te)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*ee,.07004196*te,.4539471*ee,0,.6066018*ee,-.02526587*te)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*ee,.08370865*te,.6914277*ee,-.01904177*te,.8921095*ee,-.01220843*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*ee,.3194596*te,1.036446*ee,.04105738*te,1.020377*ee,.3022052*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*ee,.562044*te,1.04448*ee,.360238*te,.992256*ee,.5219009*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*ee,.8217117*te,1.032337*ee,.5771781*te,1.018411*ee,.8120651*te)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*ee,.9156953*te,1.028411*ee,.9571472*te,.8556702*ee,1.052487*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*ee,.9310455*te,.7431877*ee,1.009325*te,.5624123*ee,1.021761*te)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*ee,.9344623*te,.4820677*ee,1.031761*te,.3030112*ee,1.002796*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ee,.870098*te,.2329994*ee,1.01518*te,.03213784*ee,1.01518*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*ee,.6545475*te,-.02812061*ee,.9032597*te,-.01205169*ee,.6835638*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*ee,.4265613*te,-.01812061*ee,.6089503*te,-.00606892*ee,.4555777*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ee,.1944299*te,-.01606892*ee,.3892545*te,-.01205169*ee,.1944299*te))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ee,ee,te){var ue=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ue*ee,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,ue*te)).add(new go.PathSegment(go.PathSegment.Line,ee,(1-ue)*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,te)).add(new go.PathSegment(go.PathSegment.Line,ue*ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*te)).add(new go.PathSegment(go.PathSegment.Line,0,ue*te).close())).setSpots(ue/2,ue/2,1-ue/2,1-ue/2)}),go.Shape.setFigureParameter("Pie",0,new gn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new gn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN,ae=Ee?Ee.parameter2:NaN;isNaN(ue)&&(ue=0),isNaN(ae)&&(ae=315);var de=ue%360;de<0&&(de+=360);var ve=ae%360,Pe=Math.min(ee,te)/2;return new go.Geometry().add(new go.PathFigure(Pe,Pe).add(new go.PathSegment(go.PathSegment.Arc,de,ve,Pe,Pe,Pe,Pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ee,ee,te){var ue=be/Math.SQRT2*.5,ae=Math.SQRT2/2,de=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(ee,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,ae*ee,de*te,ee,(1-ue)*te,(ae+ue)*ee,(de+ue)*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()))}),go.Shape.setFigureParameter("ThickCross",0,new gn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30);var ae=Math.min(ue,ee)/2,de=ee/2,ve=te/2;return new go.Geometry().add(new go.PathFigure(de-ae,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+ae,0)).add(new go.PathSegment(go.PathSegment.Line,de+ae,ve-ae)).add(new go.PathSegment(go.PathSegment.Line,ee,ve-ae)).add(new go.PathSegment(go.PathSegment.Line,ee,ve+ae)).add(new go.PathSegment(go.PathSegment.Line,de+ae,ve+ae)).add(new go.PathSegment(go.PathSegment.Line,de+ae,te)).add(new go.PathSegment(go.PathSegment.Line,de-ae,te)).add(new go.PathSegment(go.PathSegment.Line,de-ae,ve+ae)).add(new go.PathSegment(go.PathSegment.Line,0,ve+ae)).add(new go.PathSegment(go.PathSegment.Line,0,ve-ae)).add(new go.PathSegment(go.PathSegment.Line,de-ae,ve-ae).close()))}),go.Shape.setFigureParameter("ThinCross",0,new gn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var ae=Math.min(ue,ee)/2,de=ee/2,ve=te/2;return new go.Geometry().add(new go.PathFigure(de-ae,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+ae,0)).add(new go.PathSegment(go.PathSegment.Line,de+ae,ve-ae)).add(new go.PathSegment(go.PathSegment.Line,ee,ve-ae)).add(new go.PathSegment(go.PathSegment.Line,ee,ve+ae)).add(new go.PathSegment(go.PathSegment.Line,de+ae,ve+ae)).add(new go.PathSegment(go.PathSegment.Line,de+ae,te)).add(new go.PathSegment(go.PathSegment.Line,de-ae,te)).add(new go.PathSegment(go.PathSegment.Line,de-ae,ve+ae)).add(new go.PathSegment(go.PathSegment.Line,0,ve+ae)).add(new go.PathSegment(go.PathSegment.Line,0,ve-ae)).add(new go.PathSegment(go.PathSegment.Line,de-ae,ve-ae).close()))}),go.Shape.setFigureParameter("ThickX",0,new gn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;if((isNaN(ue)||ue<0)&&(ue=30),ee===0||te===0){var ae=new go.Geometry(go.Geometry.Rectangle);return ae.startX=0,ae.startY=0,ae.endX=ee,ae.endY=te,ae}else{var de=ee/2,ve=te/2,Pe=Math.atan2(te,ee),Ae=ue-Math.min(Math.cos(Pe)*ue/2,de),xe=ue-Math.min(Math.sin(Pe)*ue/2,ve),ae=new go.Geometry,Le=new go.PathFigure(Ae,0,!0);return ae.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,de,.2*te)),Le.add(new go.PathSegment(go.PathSegment.Line,ee-Ae,0)),Le.add(new go.PathSegment(go.PathSegment.Line,ee,xe)),Le.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ve)),Le.add(new go.PathSegment(go.PathSegment.Line,ee,te-xe)),Le.add(new go.PathSegment(go.PathSegment.Line,ee-Ae,te)),Le.add(new go.PathSegment(go.PathSegment.Line,de,.8*te)),Le.add(new go.PathSegment(go.PathSegment.Line,Ae,te)),Le.add(new go.PathSegment(go.PathSegment.Line,0,te-xe)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ve)),Le.add(new go.PathSegment(go.PathSegment.Line,0,xe).close()),ae}}),go.Shape.setFigureParameter("ThinX",0,new gn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var ae=new go.Geometry,de=new go.PathFigure(.1*ee,0,!0);return ae.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ee,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,.9*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.1*ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.9*te)),de.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.1*te).close()),ae}),go.Shape.setFigureParameter("SquareIBeam",0,new gn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.2);var ae=new go.Geometry,de=new go.PathFigure(0,0,!0);return ae.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ee,ue*te)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*ee,ue*te)),de.add(new go.PathSegment(go.PathSegment.Line,(.5+ue/2)*ee,(1-ue)*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,(1-ue)*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-ue)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*ee,(1-ue)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(.5-ue/2)*ee,ue*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,ue*te).close()),ae}),go.Shape.setFigureParameter("RoundedIBeam",0,new gn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.5);var ae=new go.Geometry,de=new go.PathFigure(0,0,!0);return ae.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,ee,te,Math.abs(1-ue)*ee,.25*te,Math.abs(1-ue)*ee,.75*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*ee,.75*te,ue*ee,.25*te).close()),ae}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,be*ee,0,ee,(.5-be/2)*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ee,(.5+be/2)*te,be*ee,te).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ee,0,ee,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*ee,.75*te,.5*ee,.25*te).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(.5*ee,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,.1*ee,.8*te,0,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*te,0,0,.45*ee,0)).add(new go.PathSegment(go.PathSegment.Bezier,ee,.3*te,.55*ee,0,ee,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,ee,.5*te,.9*ee,.8*te).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(.5*ee,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*ee,.01*te)).add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,.6*ee,.2*te,ee,.25*te)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ee,.7*te,ee,.8*te,.6*ee,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,te,.5*ee,.75*te,.55*ee,.95*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ee,te)).add(new go.PathSegment(go.PathSegment.Bezier,.45*ee,.7*te,.45*ee,.95*te,.5*ee,.75*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.4*ee,.8*te,0,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.49*ee,.01*te,0,.25*te,.4*ee,.2*te).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.4*ee,.6*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.15*ee,te,.5*ee,.75*te,.45*ee,.95*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.85*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.6*ee,.6*te,.55*ee,.95*te,.5*ee,.75*te));var de=.2,ve=.3,Pe=0,Ae=de*be;return ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5+de+Pe)*te,(.5-de+ve)*ee,(.5+Ae+Pe)*te,(.5-Ae+ve)*ee,(.5+de+Pe)*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+ve)*ee,(.5+Pe)*te,(.5+Ae+ve)*ee,(.5+de+Pe)*te,(.5+de+ve)*ee,(.5+Ae+Pe)*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5-de+Pe)*te,(1-.5+de+ve)*ee,(.5-Ae+Pe)*te,(.5+Ae+ve)*ee,(.5-de+Pe)*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.65*ee,.36771243*te,(.5-Ae+ve)*ee,(.5-de+Pe)*te,(.5-de+ve+.05)*ee,(.5-Ae+Pe-.02)*te)),de=.2,ve=0,Pe=-.3,Ae=de*be,ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+ve)*ee,(.5+Pe)*te,(.5+Ae+ve)*ee,(.5+de+Pe)*te,(.5+de+ve)*ee,(.5+Ae+Pe)*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5-de+Pe)*te,(1-.5+de+ve)*ee,(.5-Ae+Pe)*te,(.5+Ae+ve)*ee,(.5-de+Pe)*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+ve)*ee,(.5+Pe)*te,(.5-Ae+ve)*ee,(.5-de+Pe)*te,(.5-de+ve)*ee,(.5-Ae+Pe)*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ae+ve)*ee,(.5+de+Pe)*te,(.5-de+ve)*ee,(.5+Ae+Pe)*te,(.5-Ae+ve)*ee,(.5+de+Pe)*te)),de=.2,ve=-.3,Pe=0,Ae=de*be,ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5-de+Pe)*te,(1-.5+de+ve-.05)*ee,(.5-Ae+Pe-.02)*te,(.5+Ae+ve)*ee,(.5-de+Pe)*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+ve)*ee,(.5+Pe)*te,(.5-Ae+ve)*ee,(.5-de+Pe)*te,(.5-de+ve)*ee,(.5-Ae+Pe)*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5+de+Pe)*te,(.5-de+ve)*ee,(.5+Ae+Pe)*te,(.5-Ae+ve)*ee,(.5+de+Pe)*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,.6*te,(.5+Ae+ve)*ee,(.5+de+Pe)*te,(.5+de+ve)*ee,(.5+Ae+Pe)*te).close()),ue.setSpots(.06,.33,.93,.68),ue}),go.Shape.defineFigureGenerator("YinYang",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*.5,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Arc,270,180,ee*.5,ee*.5,ee*.5,ee*.5)),ae.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ee*.5,ee*.75,ee*.25,ee*.25)),ae.add(new go.PathSegment(go.PathSegment.Arc,90,180,ee*.5,ee*.25,ee*.25,ee*.25));var de=.1,ve=.5,Pe=.25;return ae.add(new go.PathSegment(go.PathSegment.Move,(ve+de)*ee,Pe*te)),ae.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ee*ve,te*Pe,de*ee,de*ee).close()),ae=new go.PathFigure(ee*.5,0,!1),ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ee*.5,ee*.5,ee*.5,ee*.5)),Pe=.75,ae=new go.PathFigure((ve+de)*ee,Pe*te,!0),ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Arc,0,360,ee*ve,te*Pe,de*ee,de*ee).close()),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Peace",function(Ee,ee,te){var ue=.8535533905932737,ae=.5*ee,de=.5*te;return new go.Geometry().add(new go.PathFigure(ae,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,ae,de,ae,de)).add(new go.PathSegment(go.PathSegment.Line,ae,te)).add(new go.PathSegment(go.PathSegment.Move,ae,de)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,ue*te)).add(new go.PathSegment(go.PathSegment.Move,ae,de)).add(new go.PathSegment(go.PathSegment.Line,ue*ee,ue*te)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=.5,ve=.5,Pe=.5,Ae=new go.PathFigure(ve*ee,(Pe-de)*te);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,Pe*te,(ve-ae)*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+de)*te,(ve-de)*ee,(Pe+ae)*te,(ve-ae)*ee,(Pe+de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,Pe*te,(ve+ae)*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-de)*te,(ve+de)*ee,(Pe-ae)*te,(ve+ae)*ee,(Pe-de)*te)),de=.4,ae=be*.4;var xe=pe(),Le=pe(),Te=pe(),He=pe();st(ve,Pe-de,ve+ae,Pe-de,ve+de,Pe-ae,ve+de,Pe,.42,xe,Le,Te,He,He);var ze=pe(),Ke=pe(),Ze=pe();st(ve,Pe-de,ve+ae,Pe-de,ve+de,Pe-ae,ve+de,Pe,.58,He,He,Ze,ze,Ke);var Mt=pe(),Xe=pe(),Ft=pe();st(ve,Pe+de,ve-ae,Pe+de,ve-de,Pe+ae,ve-de,Pe,.42,Mt,Xe,Ft,He,He);var Ct=pe(),Nt=pe(),It=pe();return st(ve,Pe+de,ve-ae,Pe+de,ve-de,Pe+ae,ve-de,Pe,.58,He,He,It,Ct,Nt),Ae.add(new go.PathSegment(go.PathSegment.Move,It.x*ee,It.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,Pe*te,Ct.x*ee,Ct.y*te,Nt.x*ee,Nt.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te.x*ee,Te.y*te,xe.x*ee,xe.y*te,Le.x*ee,Le.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,It.x*ee,It.y*te).close()),Ae.add(new go.PathSegment(go.PathSegment.Move,Ft.x*ee,Ft.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,Ze.x*ee,Ze.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,Pe*te,ze.x*ee,ze.y*te,Ke.x*ee,Ke.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ft.x*ee,Ft.y*te,Mt.x*ee,Mt.y*te,Xe.x*ee,Xe.y*te).close()),Ie(xe),Ie(Le),Ie(Te),Ie(He),Ie(ze),Ie(Ke),Ie(Ze),Ie(Mt),Ie(Xe),Ie(Ft),Ie(Ct),Ie(Nt),Ie(It),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Fragile",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)).add(new go.PathSegment(go.PathSegment.Line,.2*ee,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.29*ee,.33*te)).add(new go.PathSegment(go.PathSegment.Line,.35*ee,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ee,.5*te,ee,.25*te,.75*ee,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.55*ee,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ee,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ee,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.5*te,0,.25*te).close()))}),go.Shape.setFigureParameter("HourGlass",0,new gn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30),ue>ee&&(ue=ee);var ae=(ee-ue)/2,de=ae+ue;return new go.Geometry().add(new go.PathFigure(de,.5*te).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,ae,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,ee,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,.55*te).add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)).add(new go.PathSegment(go.PathSegment.Line,.3*ee,.45*te)).add(new go.PathSegment(go.PathSegment.Line,ee,.45*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ee,te)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,.55*te).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.4,de=.4,ve=.5,Pe=.5,Ae=pe(),xe=pe(),Le=pe(),Te=pe(),He=new go.PathFigure((ve-de)*ee,Pe*te,!1);ue.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te)),st(ve,Pe-de,ve+ae,Pe-de,ve+de,Pe-ae,ve+de,Pe,.44,Le,Te,xe,Ae,Ae),He.add(new go.PathSegment(go.PathSegment.Bezier,xe.x*ee,xe.y*te,Le.x*ee,Le.y*te,Te.x*ee,Te.y*te));var ze=he(xe.x,xe.y);st(ve,Pe-de,ve+ae,Pe-de,ve+de,Pe-ae,ve+de,Pe,.56,Ae,Ae,xe,Le,Te);var Ke=he(xe.x,xe.y);He.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.95*.9)*ee,ze.y*.1*te)),He.add(new go.PathSegment(go.PathSegment.Line,.85*ee,ze.y*.1*te)),He.add(new go.PathSegment(go.PathSegment.Line,.85*ee,0)),He.add(new go.PathSegment(go.PathSegment.Line,ee,0)),He.add(new go.PathSegment(go.PathSegment.Line,ee,.15*te)),He.add(new go.PathSegment(go.PathSegment.Line,(Ke.x*.1+.9)*ee,.15*te)),He.add(new go.PathSegment(go.PathSegment.Line,(Ke.x*.1+.9)*ee,(Ke.y*.1+.05*.9)*te)),He.add(new go.PathSegment(go.PathSegment.Line,Ke.x*ee,Ke.y*te)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,Pe*te,Le.x*ee,Le.y*te,Te.x*ee,Te.y*te)),He.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,Pe*te,(ve-ae)*ee,(Pe+de)*te,(ve-de)*ee,(Pe+ae)*te)),de=.35,ae=be*.35;var Ze=new go.PathFigure(ve*ee,(Pe-de)*te,!1);ue.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,Pe*te,(ve-ae)*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+de)*te,(ve-de)*ee,(Pe+ae)*te,(ve-ae)*ee,(Pe+de)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,Pe*te,(ve+ae)*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-de)*te,(ve+de)*ee,(Pe-ae)*te,(ve+ae)*ee,(Pe-de)*te));var Mt=new go.PathFigure((ve-de)*ee,Pe*te,!1);return ue.add(Mt),Ie(Ae),Ie(xe),Ie(Le),Ie(Te),Ie(ze),Ie(Ke),ue.spot1=new go.Spot(.202,.257),ue.spot2=new go.Spot(.792,.739),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("GenderFemale",function(Ee,ee,te){var ue=new go.Geometry,ae=.375,de=0,ve=-.125,Pe=ae*be,Ae=new go.PathFigure((.525+de)*ee,(.5+ae+ve)*te,!1);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ae+de)*ee,(.5+ve)*te,(.5+Pe+de)*ee,(.5+ae+ve)*te,(.5+ae+de)*ee,(.5+Pe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ee,(.5-ae+ve)*te,(1-.5+ae+de)*ee,(.5-Pe+ve)*te,(.5+Pe+de)*ee,(.5-ae+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+de)*ee,(.5+ve)*te,(.5-Pe+de)*ee,(.5-ae+ve)*te,(.5-ae+de)*ee,(.5-Pe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+de)*ee,(.5+ae+ve)*te,(.5-ae+de)*ee,(.5+Pe+ve)*te,(.5-Pe+de)*ee,(.5+ae+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*ee,.85*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.85*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*ee,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.475*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.9*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.85*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.85*te).close()),ae=.325,de=0,ve=-.125,Pe=ae*be;var Ae=new go.PathFigure((1-.5+ae+de)*ee,(.5+ve)*te,!1);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ee,(.5+ae+ve)*te,(.5+ae+de)*ee,(.5+Pe+ve)*te,(.5+Pe+de)*ee,(.5+ae+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+de)*ee,(.5+ve)*te,(.5-Pe+de)*ee,(.5+ae+ve)*te,(.5-ae+de)*ee,(.5+Pe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ee,(.5-ae+ve)*te,(.5-ae+de)*ee,(.5-Pe+ve)*te,(.5-Pe+de)*ee,(.5-ae+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ae+de)*ee,(.5+ve)*te,(.5+Pe+de)*ee,(.5-ae+ve)*te,(1-.5+ae+de)*ee,(.5-Pe+ve)*te));var Ae=new go.PathFigure((.525+de)*ee,(.5+ae+ve)*te,!1);return ue.add(Ae),ue.spot1=new go.Spot(.232,.136),ue.spot2=new go.Spot(.682,.611),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("LogicImplies",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*te))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;return isNaN(ue)&&(ue=.2),new go.Geometry().add(new go.PathFigure((1-ue)*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ue*ee,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ue*ee,te))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)).add(new go.PathSegment(go.PathSegment.Line,ee,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ee,ee,te){var ue=new go.Geometry().add(new go.PathFigure(.5*ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*ee,.5*te,.5*ee,.5*te)));return ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("LogicTruth",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Move,.5*ee,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ee,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Move,.25*ee,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ee,.5*te))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)).add(new go.PathSegment(go.PathSegment.Move,0,te)).add(new go.PathSegment(go.PathSegment.Line,ee,te))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ee,ee,te){var ue=.5;return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,0,ue*te)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ue*ee,ue*te,ue*ee,ue*te)).add(new go.PathSegment(go.PathSegment.Line,ee,te))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ee,ee,te){var ue=.5;return new go.Geometry().add(new go.PathFigure(ee,0,!1).add(new go.PathSegment(go.PathSegment.Line,ee,ue*te)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ue*ee,ue*te,ue*ee,ue*te)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new gn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new gn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var ae=Ee?Ee.parameter2:NaN;isNaN(ae)&&(ae=.3);var de=(1-ue)*ee,ve=(.5-ae/2)*te,Pe=(.5+ae/2)*te,Ae=new go.Geometry,xe=new go.PathFigure(0,ve,!0);Ae.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,de,ve)),xe.add(new go.PathSegment(go.PathSegment.Line,de,0)),xe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,de,te)),xe.add(new go.PathSegment(go.PathSegment.Line,de,Pe)),xe.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),Ae.spot1=new go.Spot(0,ve/te);var Le=Ve(0,Pe/te,1,Pe/te,de/ee,1,1,.5,pe());return Ae.spot2=new go.Spot(Le.x,Le.y),Ie(Le),Ae}),go.Shape.setFigureParameter("Arrow2",0,new gn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new gn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=30),ue>ee&&(ue=ee);var ae=Ee?Ee.parameter2:NaN;isNaN(ae)&&(ae=30),ae=Math.min(ae,te/2);var de=ee-ue,ve=(te-ae)/2,Pe=ve+ae,Ae=new go.Geometry,xe=new go.PathFigure(0,ve,!0);Ae.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,de,ve)),xe.add(new go.PathSegment(go.PathSegment.Line,de,0)),xe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,de,te)),xe.add(new go.PathSegment(go.PathSegment.Line,de,Pe)),xe.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),Ae.spot1=new go.Spot(0,ve/te);var Le=Ve(0,Pe/te,1,Pe/te,de/ee,1,1,.5,pe());return Ae.spot2=new go.Spot(Le.x,Le.y),Ie(Le),Ae}),go.Shape.defineFigureGenerator("Chevron",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te).close()),ue}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.214*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,1*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*ee,1*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.786*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,1*te).close()),ue}),go.Shape.setFigureParameter("DoubleEndArrow",0,new gn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var ae=(.5-ue/2)*te,de=(.5+ue/2)*te,ve=new go.Geometry,Pe=new go.PathFigure(ee,.5*te,!0);ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close());var Ae=Ve(0,.5,.3,0,0,ae/te,.1,ae/te,pe());return ve.spot1=new go.Spot(Ae.x,Ae.y),Ae=Ve(.7,1,1,.5,0,de/te,1,de/te,Ae),ve.spot2=new go.Spot(Ae.x,Ae.y),Ie(Ae),ve}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new gn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new gn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var ae=Ee?Ee.parameter2:NaN;isNaN(ae)&&(ae=100);var de=(te-ue)/2,ve=de+ue,Pe=(te-ae)/2,Ae=Pe+ae;(ue>te||ae>te)&&(ae>ue?(ue=ue*te/ae,de=(te-ue)/2,ve=de+ue,Pe=0,Ae=te):(de=0,ve=te,Pe=0,Ae=te));var xe=new go.Geometry,Le=new go.PathFigure(ee,.5*te,!0);xe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Ae)),Le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ve)),Le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ve)),Le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,Ae)),Le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,Pe)),Le.add(new go.PathSegment(go.PathSegment.Line,.3*ee,de)),Le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),Le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Pe).close());var Te=Ve(0,.5,.3,Pe/te,0,de/te,1,de/te,pe());return xe.spot1=new go.Spot(Te.x,Te.y),Te=Ve(.7,Ae/te,1,.5,0,ve/te,1,ve/te,Te),xe.spot2=new go.Spot(Te.x,Te.y),Ie(Te),xe}),go.Shape.setFigureParameter("IBeamArrow",0,new gn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var ae=(.5-ue/2)*te,de=(.5+ue/2)*te,ve=new go.Geometry,Pe=new go.PathFigure(ee,.5*te,!0);ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),ve.spot1=new go.Spot(0,ae/te);var Ae=Ve(.7,1,1,.5,0,de/te,1,de/te,pe());return ve.spot2=new go.Spot(Ae.x,Ae.y),Ie(Ae),ve}),go.Shape.setFigureParameter("IBeamArrow2",0,new gn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new gn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var ae=Ee?Ee.parameter2:NaN;isNaN(ae)&&(ae=100);var de=(te-ue)/2,ve=de+ue,Pe=(te-ae)/2,Ae=Pe+ae;(ue>te||ae>te)&&(ae>ue?(ue=ue*te/ae,de=(te-ue)/2,ve=de+ue,Pe=0,Ae=te):(de=0,ve=te,Pe=0,Ae=te));var xe=new go.Geometry,Le=new go.PathFigure(ee,.5*te,!0);xe.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Ae)),Le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ve)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ve)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,Ae)),Le.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),Le.add(new go.PathSegment(go.PathSegment.Line,0,Pe)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,Pe)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*ee,de)),Le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),Le.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Pe).close()),xe.spot1=new go.Spot(0,de/te);var Te=Ve(.7,Ae/te,1,.5,0,ve/te,1,ve/te,pe());return xe.spot2=new go.Spot(Te.x,Te.y),Ie(Te),xe}),go.Shape.setFigureParameter("Pointer",0,new gn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.1);var ae=new go.Geometry,de=new go.PathFigure(ee,.5*te,!0);ae.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,ue*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),ae.spot1=new go.Spot(ue,.35);var ve=Ve(.2,.65,1,.65,0,1,1,.5,pe());return ae.spot2=new go.Spot(ve.x,ve.y),Ie(ve),ae}),go.Shape.setFigureParameter("RoundedPointer",0,new gn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var ae=new go.Geometry,de=new go.PathFigure(ee,.5*te,!0);ae.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ue*ee,.75*te,ue*ee,.25*te).close()),ae.spot1=new go.Spot(ue,.35);var ve=Ve(0,.65,1,.65,0,1,1,.5,pe());return ae.spot2=new go.Spot(ve.x,ve.y),Ie(ve),ae}),go.Shape.setFigureParameter("SplitEndArrow",0,new gn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.4);var ae=(.5-ue/2)*te,de=(.5+ue/2)*te,ve=new go.Geometry,Pe=new go.PathFigure(ee,.5*te,!0);ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),ve.spot1=new go.Spot(.2,.3);var Ae=Ve(.7,1,1,.5,0,de/te,1,de/te,pe());return ve.spot2=new go.Spot(Ae.x,Ae.y),Ie(Ae),ve}),go.Shape.setFigureParameter("SplitEndArrow2",0,new gn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=50);var ae=(te-ue)/2,de=ae+ue;ue>te&&(ae=0,de=te);var ve=new go.Geometry,Pe=new go.PathFigure(ee,.5*te,!0);ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),ve.spot1=new go.Spot(.2,ae/te);var Ae=Ve(.7,1,1,.5,0,de/te,1,de/te,pe());return ve.spot2=new go.Spot(Ae.x,Ae.y),Ie(Ae),ve}),go.Shape.setFigureParameter("SquareArrow",0,new gn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.7);var ae=new go.Geometry,de=new go.PathFigure(ee,.5*te,!0);return ae.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ue*ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,ue*ee,0).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(ue,1),ae}),go.Shape.defineFigureGenerator("Cone1",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=be*.1,ve=new go.PathFigure(0,.9*te,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,.9*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,ee,(.9+de)*te,(.5+ae)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-ae)*ee,te,0,(.9+de)*te).close()),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.97),ue}),go.Shape.defineFigureGenerator("Cone2",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.9*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,.9*te,(1-.85/.9)*ee,te,.85/.9*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.9*te).close());var de=new go.PathFigure(0,.9*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ee,.9*te,(1-.85/.9)*ee,.8*te,.85/.9*ee,.8*te)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.82),ue}),go.Shape.defineFigureGenerator("Cube1",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.5*ee,te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.85*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.15*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var de=new go.PathFigure(.5*ee,te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),de.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,.15*te)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.5,.85),ue}),go.Shape.defineFigureGenerator("Cube2",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.3*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0).close());var de=new go.PathFigure(0,.3*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Move,.7*ee,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(.7,1),ue}),go.Shape.defineFigureGenerator("Cylinder1",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,te/3);var ae=new go.Geometry,de=be*.5,ve=new go.PathFigure(0,ue,!0);ae.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,be*ue,(.5-de)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,1*ee,ue,(.5+de)*ee,0,1*ee,be*ue)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,te-ue)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,1*te,1*ee,te-be*ue,(.5+de)*ee,1*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,(.5-de)*ee,1*te,0,te-be*ue)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ue));var Pe=new go.PathFigure(ee,ue,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,2*ue,1*ee,2*ue-be*ue,(.5+de)*ee,2*ue)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ue,(.5-de)*ee,2*ue,0,2*ue-be*ue)),ae.spot1=new go.Spot(0,0,0,2*ue),ae.spot2=new go.Spot(1,1),ae}),go.Shape.defineFigureGenerator("Cylinder2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,te/3);var ae=new go.Geometry,de=be*.5,ve=new go.PathFigure(0,te-ue,!0);ae.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,ue)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,be*ue,(.5-de)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,ue,(.5+de)*ee,0,ee,be*ue)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,te-ue)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,ee,te-be*ue,(.5+de)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,(.5-de)*ee,te,0,te-be*ue));var Pe=new go.PathFigure(0,te-ue,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te-2*ue,0,te-ue-be*ue,(.5-de)*ee,te-2*ue)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ee,te-ue,(.5+de)*ee,te-2*ue,ee,te-ue-be*ue)),ae.spot1=new go.Spot(0,0),ae.spot2=new go.Spot(1,1,0,-2*ue),ae}),go.Shape.defineFigureGenerator("Cylinder3",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ee/3);var ae=new go.Geometry,de=be*.5,ve=new go.PathFigure(ue,0,!0);ae.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee-ue,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,ee-be*ue,0,ee,(.5-de)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,te,ee,(.5+de)*te,ee-be*ue,te)),ve.add(new go.PathSegment(go.PathSegment.Line,ue,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,be*ue,te,0,(.5+de)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-de)*te,be*ue,0));var Pe=new go.PathFigure(ue,0,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,2*ue,.5*te,ue+be*ue,0,2*ue,(.5-de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue,te,2*ue,(.5+de)*te,ue+be*ue,te)),ae.spot1=new go.Spot(0,0,2*ue,0),ae.spot2=new go.Spot(1,1),ae}),go.Shape.defineFigureGenerator("Cylinder4",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=5),ue=Math.min(ue,ee/3);var ae=new go.Geometry,de=be*.5,ve=new go.PathFigure(ee-ue,0,!0);ae.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,ee-be*ue,0,ee,(.5-de)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,te,ee,(.5+de)*te,ee-be*ue,te)),ve.add(new go.PathSegment(go.PathSegment.Line,ue,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,be*ue,te,0,(.5+de)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,(.5-de)*te,be*ue,0)),ve.add(new go.PathSegment(go.PathSegment.Line,ee-ue,0));var Pe=new go.PathFigure(ee-ue,0,!1);return ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ee-2*ue,.5*te,ee-ue-be*ue,0,ee-2*ue,(.5-de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,te,ee-2*ue,(.5+de)*te,ee-ue-be*ue,te)),ae.spot1=new go.Spot(0,0),ae.spot2=new go.Spot(1,1,-2*ue,0),ae}),go.Shape.defineFigureGenerator("Prism1",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.25*ee,.25*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var de=new go.PathFigure(.25*ee,.25*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ue.spot1=new go.Spot(.408,.172),ue.spot2=new go.Spot(.833,.662),ue}),go.Shape.defineFigureGenerator("Prism2",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.25*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var de=new go.PathFigure(0,te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),de.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),de.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.5*te)),ue.spot1=new go.Spot(.25,.5),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("Pyramid1",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.5*ee,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.75*te).close());var de=new go.PathFigure(.5*ee,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Pyramid2",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.5*ee,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.85*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var de=new go.PathFigure(.5*ee,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.7*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.85*te)),de.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.7*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,.85*te)),ue.spot1=new go.Spot(.25,.367),ue.spot2=new go.Spot(.75,.875),ue}),go.Shape.defineFigureGenerator("Actor",function(Ee,ee,te){var ue=new go.Geometry,ae=.2,de=.1,ve=be*ae,Pe=be*de,Ae=.5,xe=.1,Le=new go.PathFigure(Ae*ee,(xe+de)*te,!0);ue.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ae)*ee,xe*te,(Ae-ve)*ee,(xe+de)*te,(Ae-ae)*ee,(xe+Pe)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe-de)*te,(Ae-ae)*ee,(xe-Pe)*te,(Ae-ve)*ee,(xe-de)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ae)*ee,xe*te,(Ae+ve)*ee,(xe-de)*te,(Ae+ae)*ee,(xe-Pe)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe+de)*te,(Ae+ae)*ee,(xe+Pe)*te,(Ae+ve)*ee,(xe+de)*te));var Te=.05,He=be*Te;Ae=.05,xe=.25;var ze=new go.PathFigure(.5*ee,.2*te,!0);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,.95*ee,.2*te)),Ae=.95,xe=.25,ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Te)*ee,xe*te,(Ae+He)*ee,(xe-Te)*te,(Ae+Te)*ee,(xe-He)*te)),ze.add(new go.PathSegment(go.PathSegment.Line,ee,.6*te)),ze.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*te)),ze.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.35*te)),Te=.025,He=be*Te,Ae=.825,xe=.35,ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe-Te)*te,(Ae+Te)*ee,(xe-He)*te,(Ae+He)*ee,(xe-Te)*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Te)*ee,xe*te,(Ae-He)*ee,(xe-Te)*te,(Ae-Te)*ee,(xe-He)*te)),ze.add(new go.PathSegment(go.PathSegment.Line,.8*ee,te)),ze.add(new go.PathSegment(go.PathSegment.Line,.55*ee,te)),ze.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.7*te)),Te=.05,He=be*Te,Ae=.5,xe=.7,ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe-Te)*te,(Ae+Te)*ee,(xe-He)*te,(Ae+He)*ee,(xe-Te)*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Te)*ee,xe*te,(Ae-He)*ee,(xe-Te)*te,(Ae-Te)*ee,(xe-He)*te)),ze.add(new go.PathSegment(go.PathSegment.Line,.45*ee,te)),ze.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),ze.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.35*te)),Te=.025,He=be*Te,Ae=.175,xe=.35,ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe-Te)*te,(Ae+Te)*ee,(xe-He)*te,(Ae+He)*ee,(xe-Te)*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Te)*ee,xe*te,(Ae-He)*ee,(xe-Te)*te,(Ae-Te)*ee,(xe-He)*te)),ze.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*te)),ze.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),ze.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),Te=.05,He=be*Te,Ae=.05,xe=.25,ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe-Te)*te,(Ae-Te)*ee,(xe-He)*te,(Ae-He)*ee,(xe-Te)*te)),ze.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.2*te)),ue.spot1=new go.Spot(.2,.2),ue.spot2=new go.Spot(.8,.65),ue}),go.Shape.setFigureParameter("Card",0,new gn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.2);var ae=new go.Geometry,de=new go.PathFigure(ee,0,!0);return ae.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,ue*te)),de.add(new go.PathSegment(go.PathSegment.Line,ue*ee,0).close()),ae.spot1=new go.Spot(0,ue),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Collate",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.5*ee,.5*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te));var de=new go.PathFigure(.5*ee,.5*te,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,.25),ue}),go.Shape.defineFigureGenerator("CreateRequest",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;isNaN(ae)&&(ae=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ve=new go.PathFigure(0,ae*te,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,ae*te)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,(1-ae)*te)),ue}),go.Shape.defineFigureGenerator("Database",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=be*.1,ve=new go.PathFigure(ee,.1*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,.9*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,ee,(.9+de)*te,(.5+ae)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-ae)*ee,te,0,(.9+de)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,(.1-de)*te,(.5-ae)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*te,(.5+ae)*ee,0,ee,(.1-de)*te));var Pe=new go.PathFigure(ee,.1*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*te,ee,(.1+de)*te,(.5+ae)*ee,.2*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-ae)*ee,.2*te,0,(.1+de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,ee,.2*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*te,ee,(.2+de)*te,(.5+ae)*ee,.3*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-ae)*ee,.3*te,0,(.2+de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,ee,.3*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.4*te,ee,(.3+de)*te,(.5+ae)*ee,.4*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,(.5-ae)*ee,.4*te,0,(.3+de)*te)),ue.spot1=new go.Spot(0,.4),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("DataStorage",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,te,ee,0,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.9*te,.25*ee,.1*te).close()),ue.spot1=new go.Spot(.226,0),ue.spot2=new go.Spot(.81,1),ue}),go.Shape.defineFigureGenerator("DiskStorage",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=be*.1,ve=new go.PathFigure(ee,.1*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,.9*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,ee,(.9+de)*te,(.5+ae)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-ae)*ee,te,0,(.9+de)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,(.1-de)*te,(.5-ae)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*te,(.5+ae)*ee,0,ee,(.1-de)*te));var Pe=new go.PathFigure(ee,.1*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*te,ee,(.1+de)*te,(.5+ae)*ee,.2*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-ae)*ee,.2*te,0,(.1+de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,ee,.2*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*te,ee,(.2+de)*te,(.5+ae)*ee,.3*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-ae)*ee,.3*te,0,(.2+de)*te)),ue.spot1=new go.Spot(0,.3),ue.spot2=new go.Spot(1,.9),ue}),go.Shape.defineFigureGenerator("Display",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.25*ee,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,te,ee,0,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.25*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close()),ue.spot1=new go.Spot(.25,0),ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("DividedEvent",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;isNaN(ae)?ae=.2:ae<.15&&(ae=.15);var de=be*.2,ve=new go.PathFigure(0,.2*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,0,0,(.2-de)*te,(.2-de)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,.2*te,(.8+de)*ee,0,ee,(.2-de)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,te,ee,(.8+de)*te,(.8+de)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*te,(.2-de)*ee,te,0,(.8+de)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.2*te));var Pe=new go.PathFigure(0,ae*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee,ae*te)),ue}),go.Shape.defineFigureGenerator("DividedProcess",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;(isNaN(ae)||ae<.1)&&(ae=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ve=new go.PathFigure(0,ae*te,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,ae*te)),ue}),go.Shape.defineFigureGenerator("Document",function(Ee,ee,te){var ue=new go.Geometry;te=te/.8;var ae=new go.PathFigure(0,.7*te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ee,.4*te,.5*ee,te).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;(isNaN(ae)||ae<.2)&&(ae=.2);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ve=new go.PathFigure(ae*ee,0,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,ae*te)),ve.add(new go.PathSegment(go.PathSegment.Move,ee,ae*te)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ae)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,ae*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-ae)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,(1-ae)*te)),ue}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.5*ee,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var de=new go.PathFigure(.1*ee,.4*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.6*te)),de.add(new go.PathSegment(go.PathSegment.Move,.9*ee,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*te)),de.add(new go.PathSegment(go.PathSegment.Move,.6*ee,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.1*te)),de.add(new go.PathSegment(go.PathSegment.Move,.4*ee,.9*te)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.9*te)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("File",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var de=new go.PathFigure(.75*ee,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.25*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Interrupt",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee,.5*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te));var de=new go.PathFigure(ee,.5*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,te));var ve=new go.PathFigure(ee,.5*te,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("InternalStorage",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(ae)&&(ae=.1),isNaN(de)&&(de=.1);var ve=new go.PathFigure(0,0,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var Pe=new go.PathFigure(ae*ee,0,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ae*ee,te)),Pe.add(new go.PathSegment(go.PathSegment.Move,0,de*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee,de*te)),ue}),go.Shape.defineFigureGenerator("Junction",function(Ee,ee,te){var ue=new go.Geometry,ae=1/Math.SQRT2,de=(1-1/Math.SQRT2)/2,ve=be*.5,Pe=.5,Ae=new go.PathFigure(ee,Pe*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ee,te,ee,(Pe+ve)*te,(Pe+ve)*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,Pe*te,(Pe-ve)*ee,te,0,(Pe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ee,0,0,(Pe-ve)*te,(Pe-ve)*ee,0)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,Pe*te,(Pe+ve)*ee,0,ee,(Pe-ve)*te));var xe=new go.PathFigure((de+ae)*ee,(de+ae)*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,de*ee,de*te)),xe.add(new go.PathSegment(go.PathSegment.Move,de*ee,(de+ae)*te)),xe.add(new go.PathSegment(go.PathSegment.Line,(de+ae)*ee,de*te)),ue}),go.Shape.defineFigureGenerator("LinedDocument",function(Ee,ee,te){var ue=new go.Geometry;te=te/.8;var ae=new go.PathFigure(0,.7*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ee,.4*te,.5*ee,te).close());var de=new go.PathFigure(.1*ee,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.75*te)),ue.spot1=new go.Spot(.1,0),ue.spot2=new go.Spot(1,.6),ue}),go.Shape.defineFigureGenerator("LoopLimit",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MagneticTape",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=.5,ve=new go.PathFigure(.5*ee,te,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,de*te,(de-ae)*ee,te,0,(de+ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,de*ee,0,0,(de-ae)*te,(de-ae)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,de*te,(de+ae)*ee,0,ee,(de-ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(de+.1)*ee,.9*te,ee,(de+ae)*te,(de+ae)*ee,.9*te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,.9*te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ue.spot1=new go.Spot(.15,.15),ue.spot2=new go.Spot(.85,.8),ue}),go.Shape.defineFigureGenerator("ManualInput",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.25*te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;isNaN(ae)&&(ae=.7);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ae*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;isNaN(ae)&&(ae=.25);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,ae*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,(1-ae)*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.15*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.85*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("MultiDocument",function(Ee,ee,te){var ue=new go.Geometry;te=te/.8;var ae=new go.PathFigure(ee,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.44*te,.96*ee,.47*te,.93*ee,.45*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.54*te,.86*ee,.57*te,.83*ee,.55*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.4*ee,.4*te,.4*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.1*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0).close());var de=new go.PathFigure(.1*ee,.2*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.54*te)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.44*te)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.8,.77),ue}),go.Shape.defineFigureGenerator("MultiProcess",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.1*ee,.1*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.9*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.9*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.2*te).close());var de=new go.PathFigure(.2*ee,.1*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.1*te)),de.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*te)),de.add(new go.PathSegment(go.PathSegment.Move,.1*ee,.2*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.9*te)),ue.spot1=new go.Spot(0,.2),ue.spot2=new go.Spot(.8,1),ue}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;isNaN(ae)&&(ae=.1);var de=1-ae,ve=new go.PathFigure(0,0,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te).close());var Pe=new go.PathFigure(.5*ae*ee,ae*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*ae)*ee,ae*te)),ue}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.75,1),ue}),go.Shape.defineFigureGenerator("Or",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=.5,ve=new go.PathFigure(ee,de*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,de*ee,te,ee,(de+ae)*te,(de+ae)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,de*te,(de-ae)*ee,te,0,(de+ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,de*ee,0,0,(de-ae)*te,(de-ae)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,de*te,(de+ae)*ee,0,ee,(de-ae)*te));var Pe=new go.PathFigure(ee,.5*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ue}),go.Shape.defineFigureGenerator("PaperTape",function(Ee,ee,te){var ue=new go.Geometry;te=te/.8;var ae=new go.PathFigure(0,.7*te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,.3*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,.3*te,.5*ee,.6*te,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ee,.4*te,.5*ee,te).close()),ue.spot1=new go.Spot(0,.49),ue.spot2=new go.Spot(1,.75),ue}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(ae)&&(ae=.1),isNaN(de)&&(de=.3);var ve=new go.PathFigure(0,0,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-de)*ee,.5*te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(ae)&&(ae=.1),isNaN(de)&&(de=.3);var ve=new go.PathFigure(0,0,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-de)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-de)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("Procedure",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;isNaN(ae)&&(ae=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ve=new go.PathFigure((1-ae)*ee,0,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ae)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Move,ae*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,ae*ee,te)),ue}),go.Shape.defineFigureGenerator("Process",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;isNaN(ae)&&(ae=.1);var de=new go.PathFigure(0,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ve=new go.PathFigure(ae*ee,0,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ae*ee,te)),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Sort",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.5*ee,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var de=new go.PathFigure(0,.5*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ue.spot1=new go.Spot(.25,.25),ue.spot2=new go.Spot(.75,.5),ue}),go.Shape.defineFigureGenerator("Start",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;isNaN(ae)&&(ae=.25);var de=new go.PathFigure(ae*ee,0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ee,.5*te,.25*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ee,.5*te,.25*ee,.5*te));var ve=new go.PathFigure(ae*ee,0,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ae*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-ae)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ae)*ee,te)),ue.spot1=new go.Spot(ae,0),ue.spot2=new go.Spot(1-ae,1),ue}),go.Shape.defineFigureGenerator("Terminator",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.25*ee,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ee,.5*te,.25*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ee,.5*te,.25*ee,.5*te)),ue.spot1=new go.Spot(.23,0),ue.spot2=new go.Spot(.77,1),ue}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ee,ee,te){var ue=new go.Geometry,ae=Ee?Ee.parameter1:NaN;isNaN(ae)&&(ae=.1);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,.75*ee,(1-ae)*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*te).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("AndGate",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,(.5+ae)*ee,0,ee,(.5-ae)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,ee,(.5+ae)*te,(.5+ae)*ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(.55,1),ue}),go.Shape.defineFigureGenerator("Buffer",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Clock",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=.5,ve=new go.PathFigure(ee,de*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,de*ee,te,ee,(de+ae)*te,(de+ae)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,de*te,(de-ae)*ee,te,0,(de+ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,de*ee,0,0,(de-ae)*te,(de-ae)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,de*te,(de+ae)*ee,0,ee,(de-ae)*te));var Pe=new go.PathFigure(ee,de*te,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee,de*te));var Ae=new go.PathFigure(.8*ee,.75*te,!1);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.75*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.75*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.75*te)),ue}),go.Shape.defineFigureGenerator("Ground",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.5*ee,0,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.3*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.4*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,te)),ue}),go.Shape.defineFigureGenerator("Inverter",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.1,de=.1,ve=.9,Pe=.5,Ae=new go.PathFigure(.8*ee,.5*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.5*te));var xe=new go.PathFigure((ve+de)*ee,Pe*te,!0);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,Pe*te,(ve-ae)*ee,(Pe+de)*te,(ve-de)*ee,(Pe+ae)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,Pe*te,(ve+ae)*ee,(Pe-de)*te,(ve+de)*ee,(Pe-ae)*te)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.4,.75),ue}),go.Shape.defineFigureGenerator("NandGate",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=be*.4,ve=be*.1,Pe=.1,Ae=.9,xe=.5,Le=new go.PathFigure(.8*ee,.5*te,!0);ue.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,te,.8*ee,(.5+de)*te,(.4+ae)*ee,te)),Le.add(new go.PathSegment(go.PathSegment.Line,0,te)),Le.add(new go.PathSegment(go.PathSegment.Line,0,0)),Le.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),Le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*te,(.4+ae)*ee,0,.8*ee,(.5-de)*te));var Te=new go.PathFigure((Ae+Pe)*ee,xe*te,!0);return ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe+Pe)*te,(Ae+Pe)*ee,(xe+ve)*te,(Ae+ve)*ee,(xe+Pe)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Pe)*ee,xe*te,(Ae-ve)*ee,(xe+Pe)*te,(Ae-Pe)*ee,(xe+ve)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe-Pe)*te,(Ae-Pe)*ee,(xe-ve)*te,(Ae-ve)*ee,(xe-Pe)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Pe)*ee,xe*te,(Ae+ve)*ee,(xe-Pe)*te,(Ae+Pe)*ee,(xe-ve)*te)),ue.spot1=new go.Spot(0,.05),ue.spot2=new go.Spot(.55,.95),ue}),go.Shape.defineFigureGenerator("NorGate",function(Ee,ee,te){var ue=new go.Geometry,ae=.5,de=be*ae,ve=0,Pe=.5,Ae=new go.PathFigure(.8*ee,.5*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.7*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.75*te,.25*ee,.25*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*te,(ve+de)*ee,(Pe-ae)*te,.7*ee,(Pe-de)*te)),ae=.1,de=be*.1,ve=.9,Pe=.5;var xe=new go.PathFigure((ve-ae)*ee,Pe*te,!0);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ae)*ee,Pe*te,(ve+de)*ee,(Pe-ae)*te,(ve+ae)*ee,(Pe-de)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ae)*ee,Pe*te,(ve-de)*ee,(Pe+ae)*te,(ve-ae)*ee,(Pe+de)*te)),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.6,.75),ue}),go.Shape.defineFigureGenerator("OrGate",function(Ee,ee,te){var ue=new go.Geometry,ae=.5,de=be*ae,ve=0,Pe=.5,Ae=new go.PathFigure(0,0,!0);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,(ve+de+de)*ee,(Pe-ae)*te,.8*ee,(Pe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.8*ee,(Pe+de)*te,(ve+de+de)*ee,(Pe+ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ee,.75*te,.25*ee,.25*te).close()),ue.spot1=new go.Spot(.2,.25),ue.spot2=new go.Spot(.75,.75),ue}),go.Shape.defineFigureGenerator("XnorGate",function(Ee,ee,te){var ue=new go.Geometry,ae=.5,de=be*ae,ve=.2,Pe=.5,Ae=new go.PathFigure(.1*ee,0,!1);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,te,.35*ee,.25*te,.35*ee,.75*te));var xe=new go.PathFigure(.8*ee,.5*te,!0);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,te,.7*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,0,.45*ee,.75*te,.45*ee,.25*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*te,(ve+de)*ee,(Pe-ae)*te,.7*ee,(Pe-de)*te)),ae=.1,de=be*.1,ve=.9,Pe=.5;var Le=new go.PathFigure((ve-ae)*ee,Pe*te,!0);return ue.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ae)*ee,Pe*te,(ve+de)*ee,(Pe-ae)*te,(ve+ae)*ee,(Pe-de)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ae)*ee,Pe*te,(ve-de)*ee,(Pe+ae)*te,(ve-ae)*ee,(Pe+de)*te)),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.65,.75),ue}),go.Shape.defineFigureGenerator("XorGate",function(Ee,ee,te){var ue=new go.Geometry,ae=.5,de=be*ae,ve=.2,Pe=.5,Ae=new go.PathFigure(.1*ee,0,!1);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,te,.35*ee,.25*te,.35*ee,.75*te));var xe=new go.PathFigure(.2*ee,0,!0);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,(ve+de)*ee,(Pe-ae)*te,.9*ee,(Pe-de)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,te,.9*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,0,.45*ee,.75*te,.45*ee,.25*te).close()),ue.spot1=new go.Spot(.4,.25),ue.spot2=new go.Spot(.8,.75),ue}),go.Shape.defineFigureGenerator("Capacitor",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Move,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ue}),go.Shape.defineFigureGenerator("Resistor",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.5*te,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.5*te)),ue}),go.Shape.defineFigureGenerator("Inductor",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.1,de=.1,ve=.1,Pe=.5,Ae=new go.PathFigure((ve-ae*.5)*ee,te,!1);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,0,(ve-ae)*ee,te,(ve-de)*ee,0)),ve=.3,Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,te,(ve+de)*ee,0,(ve+ae)*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,0,(ve-ae)*ee,te,(ve-de)*ee,0)),ve=.5,Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,te,(ve+de)*ee,0,(ve+ae)*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,0,(ve-ae)*ee,te,(ve-de)*ee,0)),ve=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,te,(ve+de)*ee,0,(ve+ae)*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,0,(ve-ae)*ee,te,(ve-de)*ee,0)),ve=.9,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ae*.5)*ee,te,(ve+de)*ee,0,(ve+ae)*ee,te)),ue}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.5,de=.5,ve=.5,Pe=.5,Ae=new go.PathFigure((ve-de)*ee,Pe*te,!1);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,Pe*te,(ve+ae)*ee,(Pe-de)*te,(ve+de)*ee,(Pe-ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,Pe*te,(ve-ae)*ee,(Pe+de)*te,(ve-de)*ee,(Pe+ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Move,(ve-de+.1)*ee,Pe*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de-.1)*ee,Pe*te,ve*ee,(Pe-de)*te,ve*ee,(Pe+de)*te)),ue}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.75*te,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Move,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ue}),go.Shape.defineFigureGenerator("Diode",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee,0,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ue.spot1=new go.Spot(0,.25),ue.spot2=new go.Spot(.5,.75),ue}),go.Shape.defineFigureGenerator("Wifi",function(Ee,ee,te){var ue=new go.Geometry,ae=ee,de=te;ee=ee*.38,te=te*.6;var ve=be*.8,Pe=.8,Ae=0,xe=.5,Le=(ae-ee)/2,Te=(de-te)/2,He=new go.PathFigure(Ae*ee+Le,(xe+Pe)*te+Te,!0);ue.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Pe)*ee+Le,xe*te+Te,(Ae-ve)*ee+Le,(xe+Pe)*te+Te,(Ae-Pe)*ee+Le,(xe+ve)*te+Te)),He.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe-Pe)*te+Te,(Ae-Pe)*ee+Le,(xe-ve)*te+Te,(Ae-ve)*ee+Le,(xe-Pe)*te+Te)),He.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Pe+ve*.5)*ee+Le,xe*te+Te,Ae*ee+Le,(xe-Pe)*te+Te,(Ae-Pe+ve*.5)*ee+Le,(xe-ve)*te+Te)),He.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe+Pe)*te+Te,(Ae-Pe+ve*.5)*ee+Le,(xe+ve)*te+Te,Ae*ee+Le,(xe+Pe)*te+Te).close()),ve=be*.4,Pe=.4,Ae=.2,xe=.5;var ze=new go.PathFigure(Ae*ee+Le,(xe+Pe)*te+Te,!0);ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Pe)*ee+Le,xe*te+Te,(Ae-ve)*ee+Le,(xe+Pe)*te+Te,(Ae-Pe)*ee+Le,(xe+ve)*te+Te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe-Pe)*te+Te,(Ae-Pe)*ee+Le,(xe-ve)*te+Te,(Ae-ve)*ee+Le,(xe-Pe)*te+Te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Pe+ve*.5)*ee+Le,xe*te+Te,Ae*ee+Le,(xe-Pe)*te+Te,(Ae-Pe+ve*.5)*ee+Le,(xe-ve)*te+Te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe+Pe)*te+Te,(Ae-Pe+ve*.5)*ee+Le,(xe+ve)*te+Te,Ae*ee+Le,(xe+Pe)*te+Te).close()),ve=be*.2,Pe=.2,Ae=.5,xe=.5;var Ke=new go.PathFigure((Ae-Pe)*ee+Le,xe*te+Te,!0);ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe-Pe)*te+Te,(Ae-Pe)*ee+Le,(xe-ve)*te+Te,(Ae-ve)*ee+Le,(xe-Pe)*te+Te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Pe)*ee+Le,xe*te+Te,(Ae+ve)*ee+Le,(xe-Pe)*te+Te,(Ae+Pe)*ee+Le,(xe-ve)*te+Te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe+Pe)*te+Te,(Ae+Pe)*ee+Le,(xe+ve)*te+Te,(Ae+ve)*ee+Le,(xe+Pe)*te+Te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Pe)*ee+Le,xe*te+Te,(Ae-ve)*ee+Le,(xe+Pe)*te+Te,(Ae-Pe)*ee+Le,(xe+ve)*te+Te)),ve=be*.4,Pe=.4,Ae=.8,xe=.5;var Ze=new go.PathFigure(Ae*ee+Le,(xe-Pe)*te+Te,!0);ue.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Pe)*ee+Le,xe*te+Te,(Ae+ve)*ee+Le,(xe-Pe)*te+Te,(Ae+Pe)*ee+Le,(xe-ve)*te+Te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe+Pe)*te+Te,(Ae+Pe)*ee+Le,(xe+ve)*te+Te,(Ae+ve)*ee+Le,(xe+Pe)*te+Te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Pe-ve*.5)*ee+Le,xe*te+Te,Ae*ee+Le,(xe+Pe)*te+Te,(Ae+Pe-ve*.5)*ee+Le,(xe+ve)*te+Te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe-Pe)*te+Te,(Ae+Pe-ve*.5)*ee+Le,(xe-ve)*te+Te,Ae*ee+Le,(xe-Pe)*te+Te).close()),ve=be*.8,Pe=.8,Ae=1,xe=.5;var Mt=new go.PathFigure(Ae*ee+Le,(xe-Pe)*te+Te,!0);return ue.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Pe)*ee+Le,xe*te+Te,(Ae+ve)*ee+Le,(xe-Pe)*te+Te,(Ae+Pe)*ee+Le,(xe-ve)*te+Te)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe+Pe)*te+Te,(Ae+Pe)*ee+Le,(xe+ve)*te+Te,(Ae+ve)*ee+Le,(xe+Pe)*te+Te)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Pe-ve*.5)*ee+Le,xe*te+Te,Ae*ee+Le,(xe+Pe)*te+Te,(Ae+Pe-ve*.5)*ee+Le,(xe+ve)*te+Te)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Le,(xe-Pe)*te+Te,(Ae+Pe-ve*.5)*ee+Le,(xe-ve)*te+Te,Ae*ee+Le,(xe-Pe)*te+Te).close()),ue}),go.Shape.defineFigureGenerator("Email",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,0,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,0)),de.add(new go.PathSegment(go.PathSegment.Move,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.54*te)),de.add(new go.PathSegment(go.PathSegment.Move,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.54*te)),ue}),go.Shape.defineFigureGenerator("Ethernet",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.35*ee,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.65*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.35*ee,0).close());var de=new go.PathFigure(.1*ee,te,!0,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.1*ee,te).close());var ve=new go.PathFigure(.6*ee,te,!0,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.6*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.6*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*ee,te).close());var Pe=new go.PathFigure(0,.5*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,.75*ee,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.6*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,.25*ee,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.6*te)),ue}),go.Shape.defineFigureGenerator("Power",function(Ee,ee,te){var ue=new go.Geometry,ae=be*.4,de=.4,ve=.5,Pe=.5,Ae=pe(),xe=pe(),Le=pe(),Te=pe();st(ve,Pe-de,ve+ae,Pe-de,ve+de,Pe-ae,ve+de,Pe,.5,Ae,Ae,xe,Le,Te);var He=he(xe.x,xe.y),ze=new go.PathFigure(xe.x*ee,xe.y*te,!0);ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,Pe*te,Le.x*ee,Le.y*te,Te.x*ee,Te.y*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,Pe*te,(ve-ae)*ee,(Pe+de)*te,(ve-de)*ee,(Pe+ae)*te)),st(ve-de,Pe,ve-de,Pe-ae,ve-ae,Pe-de,ve,Pe-de,.5,Le,Te,xe,Ae,Ae),ze.add(new go.PathSegment(go.PathSegment.Bezier,xe.x*ee,xe.y*te,Le.x*ee,Le.y*te,Te.x*ee,Te.y*te)),ae=be*.3,de=.3,st(ve-de,Pe,ve-de,Pe-ae,ve-ae,Pe-de,ve,Pe-de,.5,Le,Te,xe,Ae,Ae),ze.add(new go.PathSegment(go.PathSegment.Line,xe.x*ee,xe.y*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,Pe*te,Te.x*ee,Te.y*te,Le.x*ee,Le.y*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+de)*te,(ve-de)*ee,(Pe+ae)*te,(ve-ae)*ee,(Pe+de)*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,Pe*te,(ve+ae)*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),st(ve,Pe-de,ve+ae,Pe-de,ve+de,Pe-ae,ve+de,Pe,.5,Ae,Ae,xe,Le,Te),ze.add(new go.PathSegment(go.PathSegment.Bezier,xe.x*ee,xe.y*te,Te.x*ee,Te.y*te,Le.x*ee,Le.y*te).close());var ze=new go.PathFigure(.45*ee,0,!0);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.5*te)),ze.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.5*te)),ze.add(new go.PathSegment(go.PathSegment.Line,.55*ee,0).close()),Ie(Ae),Ie(xe),Ie(Le),Ie(Te),Ie(He),ue.spot1=new go.Spot(.25,.45),ue.spot2=new go.Spot(.75,.8),ue}),go.Shape.defineFigureGenerator("Fallout",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,te/2,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Arc,180,360,ee/2,te/2,ee/2,te/2));function de(ve,Pe,Ae){ve.add(new go.PathSegment(go.PathSegment.Move,(.3+Pe)*ee,(.8+Ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,(.5+Pe)*ee,(.5+Ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,(.1+Pe)*ee,(.5+Ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,(.3+Pe)*ee,(.8+Ae)*te).close())}return de(ae,0,0),de(ae,.4,0),de(ae,.2,-.3),ue}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.2*ee,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.3*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close()),ue.spot1=new go.Spot(.3,.3),ue.spot2=new go.Spot(.7,.7),ue}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.37*ee,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.11*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.77*ee,.04*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.49*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.37*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.63*ee,.86*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.77*ee,.91*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.34*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.34*ee,.78*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.44*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.56*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.68*te).close()),ue}),go.Shape.defineFigureGenerator("FireHazard",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.1*ee,te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.29*ee,0,-.25*ee,.63*te,.45*ee,.44*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.51*ee,.42*te,.48*ee,.17*te,.54*ee,.35*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.59*ee,.18*te,.59*ee,.29*te,.58*ee,.28*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,.6*te,.8*ee,.34*te,.88*ee,.43*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.88*ee,.31*te,.87*ee,.48*te,.88*ee,.43*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,te,1.17*ee,.76*te,.82*ee,.8*te).close()),ue.spot1=new go.Spot(.07,.445),ue.spot2=new go.Spot(.884,.958),ue}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ee,ee,te){var ue=new go.Geometry,ae=.5,de=0,ve=0,Pe=ae*be,Ae=.4*Math.SQRT2/2+.5,xe=.5-.5*Math.SQRT2/2,Le=1,Te=.5,He=.5,ze=0,Ke=new go.PathFigure(Ae*ee,(1-xe)*te,!1);return ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Le*ee,Te*te,Le*ee,.7*te,Le*ee,Te*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(He+de)*ee,(ze+de)*te,(.5+ae+de)*ee,(.5-Pe+de)*te,(.5+Pe+de)*ee,(.5-ae+de)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+de)*ee,(.5+ve)*te,(.5-Pe+de)*ee,(.5-ae+ve)*te,(.5-ae+de)*ee,(.5-Pe+ve)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(.35+de)*ee,.9*te,(.5-ae+de)*ee,(.5+Pe+ve)*te,(.5-Pe+de)*ee,.9*te)),Ke.add(new go.PathSegment(go.PathSegment.Move,(.25+de)*ee,.8*te)),Ke.add(new go.PathSegment(go.PathSegment.Line,(.35+de)*ee,.9*te)),Ke.add(new go.PathSegment(go.PathSegment.Line,(.2+de)*ee,.95*te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Move,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ue}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Move,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!1);ue.add(ae);var de=new go.PathFigure(ee,te,!1);ue.add(de);var ve=new go.PathFigure(0,.5*te,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.5*te,.2*ee,.35*te,.3*ee,.35*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,.7*ee,.65*te,.8*ee,.65*te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.5*te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te).close()),ue}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.2*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.8*te).close());var ae=new go.PathFigure(0,.2*te,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te)),ue}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.7*ee,te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.3*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,0,.6*ee,.5*te,0,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,te,.4*ee,.5*te,ee,.5*te).close());var de=new go.PathFigure(.45*ee,.73*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.73*te)),de.add(new go.PathSegment(go.PathSegment.Move,.38*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,.63*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Move,.31*ee,.27*te)),de.add(new go.PathSegment(go.PathSegment.Line,.56*ee,.27*te)),ue}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!1);ue.add(ae);var de=new go.PathFigure(.335*ee,(1-.555)*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.335*ee,(1-.405)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ee,(1-.405)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ee,(1-.555)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,ee,.68*te,(1-.12)*ee,.46*te,(1-.02)*ee,.54*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.68*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.335*ee,(1-.555)*te,.02*ee,.54*te,.12*ee,.46*te)),de.add(new go.PathSegment(go.PathSegment.Line,.365*ee,(1-.595)*te));var ve=.5-.285,Pe=.5,Ae=ve,xe=Math.PI/4,Le=4*(1-Math.cos(xe))/(3*Math.sin(xe)),Te=Le*.5,He=ve,ze=ve,Ke=Le*He,Ze=Le*ze;de.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-He)*ee,Ae*te,(Pe-(Ke+He)/2)*ee,(Ae+(ze+Ze)/2)*te,(Pe-He)*ee,(Ae+Ze)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ee,(Ae-ze)*te,(Pe-He)*ee,(Ae-Ze)*te,(Pe-Ke)*ee,(Ae-ze)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+He)*ee,Ae*te,(Pe+Ke)*ee,(Ae-ze)*te,(Pe+He)*ee,(Ae-Ze)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ee,(1-.595)*te,(Pe+He)*ee,(Ae+Ze)*te,(Pe+(Ke+He)/2)*ee,(Ae+(ze+Ze)/2)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*ee,(1-.595)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ee,(1-.555)*te)),de.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ee,(1-.405)*te)),de.add(new go.PathSegment(go.PathSegment.Line,.335*ee,(1-.405)*te));var Mt=new go.PathFigure(.2*ee,te,!1);ue.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.8*te));var Xe=new go.PathFigure(.8*ee,te,!1);return ue.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.8*te)),ue}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.1*ee,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.9*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,te).close());var de=new go.PathFigure(.2*ee,.2*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*te)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.4*te)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.6*te)),de.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.8*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.8*te)),ue}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.33*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.66*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.66*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.5*te).close()),ue}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!1);ue.add(ae);var de=new go.PathFigure(ee,te,!1);ue.add(de);var ve=new go.PathFigure(.1*ee,te,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te).close()),ue}),go.Shape.defineFigureGenerator("Caution",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.05*ee,te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,.8*te,0,te,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.1*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.55*ee,.1*te,.5*ee,0,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.95*ee,.9*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,te,ee,te,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.05*ee,te));var de=.05;return ae.add(new go.PathSegment(go.PathSegment.Move,(.5-de)*ee,.875*te)),ae.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ee,.875*te,de*ee,de*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.325*te,.575*ee,.725*te,.625*ee,.375*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.75*te,.375*ee,.375*te,.425*ee,.725*te)),ue}),go.Shape.defineFigureGenerator("Recycle",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.45*ee,.95*te,!1);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.95*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.185*ee,.85*te,.17*ee,.95*te,.15*ee,.9*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.235*ee,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.625*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.65*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.275*ee,.45*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.05*ee,.45*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.05*ee,.575*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ee,.95*te,0,.675*te,0,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.45*ee,.95*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.775*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.22*ee,.775*te));var de=new go.PathFigure(.475*ee,.2*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.225*ee,.3*te)),de.add(new go.PathSegment(go.PathSegment.Line,.275*ee,.175*te)),de.add(new go.PathSegment(go.PathSegment.Line,.325*ee,.05*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,.05*te,.35*ee,0,.375*ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.375*te)),de.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.475*te)),de.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.315*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.32*te)),de.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.05*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.575*ee,0,.65*ee,.05*te,.625*ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,.38*ee,.0105*te));var ve=new go.PathFigure(.675*ee,.575*te,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.875*ee,.525*te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,.775*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.85*ee,.95*te,ee,.8*te,ee,.85*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.95*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.85*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.725*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.775*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.775*te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,.775*te)),ve.add(new go.PathSegment(go.PathSegment.Move,.675*ee,.575*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.775*ee,.775*te)),ue}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ee,ee,te){var ue=new go.Geometry,ae=.5,de=be*.5,ve=new go.PathFigure(ee,ae*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ae*ee,te,ee,(ae+de)*te,(ae+de)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ae*te,(ae-de)*ee,te,0,(ae+de)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ae*ee,0,0,(ae-de)*te,(ae-de)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,ae*te,(ae+de)*ee,0,ee,(ae-de)*te));var Pe=new go.PathFigure(ae*ee,0,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ae*ee,.15*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,ae*ee,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,ae*ee,.85*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,0,ae*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.15*ee,ae*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,ee,ae*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.85*ee,ae*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,ae*ee,ae*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.58*ee,.1*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,ae*ee,ae*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.78*ee,.54*te)),ue}),go.Shape.defineFigureGenerator("Package",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.15*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.15*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var de=new go.PathFigure(0,.15*te,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.15*te).close()),ue.spot1=new go.Spot(0,.1),ue.spot2=new go.Spot(1,1),ue}),go.Shape.defineFigureGenerator("Class",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te).close());var ve=new go.PathFigure(0,.5*te,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te).close()),ue}),go.Shape.defineFigureGenerator("Component",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee,te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.15*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.15*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te).close());var de=new go.PathFigure(0,.2*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.2*te)),de.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close());var ve=new go.PathFigure(0,.6*te,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.6*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.8*te)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.6*te).close()),ue}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.15*ee,.6*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.15*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.85*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*te));var de=new go.PathFigure(.15*ee,.6*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*te)),ue}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee,te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.66*ee,.33*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.66*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.33*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.33*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te).close()),ue}),go.Shape.defineFigureGenerator("Workcell",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.65*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.35*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("Supermarket",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.33*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),ae.add(new go.PathSegment(go.PathSegment.Move,ee,.33*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.66*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.66*te)),ae.add(new go.PathSegment(go.PathSegment.Move,ee,.66*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ue}),go.Shape.defineFigureGenerator("TruckShipment",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(ee,.8*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.8*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te).close());var ve=.1,Pe=be*.1,Ae=.2,xe=.9,Le=new go.PathFigure((Ae-ve)*ee,xe*te,!0);ue.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe-ve)*te,(Ae-ve)*ee,(xe-Pe)*te,(Ae-Pe)*ee,(xe-ve)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ve)*ee,xe*te,(Ae+Pe)*ee,(xe-ve)*te,(Ae+ve)*ee,(xe-Pe)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe+ve)*te,(Ae+ve)*ee,(xe+Pe)*te,(Ae+Pe)*ee,(xe+ve)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ve)*ee,xe*te,(Ae-Pe)*ee,(xe+ve)*te,(Ae-ve)*ee,(xe+Pe)*te).close()),ve=.1,Pe=be*.1,Ae=.8,xe=.9;var Te=new go.PathFigure((Ae-ve)*ee,xe*te,!0);return ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe-ve)*te,(Ae-ve)*ee,(xe-Pe)*te,(Ae-Pe)*ee,(xe-ve)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ve)*ee,xe*te,(Ae+Pe)*ee,(xe-ve)*te,(Ae+ve)*ee,(xe-Pe)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(xe+ve)*te,(Ae+ve)*ee,(xe+Pe)*te,(Ae+Pe)*ee,(xe+ve)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ve)*ee,xe*te,(Ae-Pe)*ee,(xe+ve)*te,(Ae-ve)*ee,(xe+Pe)*te).close()),ue}),go.Shape.defineFigureGenerator("KanbanPost",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.2*ee,0,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,te)),ue}),go.Shape.defineFigureGenerator("Forklift",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0));var de=new go.PathFigure(0,.5*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.8*te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ve=new go.PathFigure(.5*ee,.8*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.1*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.1*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.8*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.8*te));var Pe=new go.PathFigure(.5*ee,.7*te,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te));var Ae=.1,xe=be*.1,Le=.1,Te=.9,He=new go.PathFigure((Le-Ae)*ee,Te*te,!0);ue.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,Le*ee,(Te-Ae)*te,(Le-Ae)*ee,(Te-xe)*te,(Le-xe)*ee,(Te-Ae)*te)),He.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Ae)*ee,Te*te,(Le+xe)*ee,(Te-Ae)*te,(Le+Ae)*ee,(Te-xe)*te)),He.add(new go.PathSegment(go.PathSegment.Bezier,Le*ee,(Te+Ae)*te,(Le+Ae)*ee,(Te+xe)*te,(Le+xe)*ee,(Te+Ae)*te)),He.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Ae)*ee,Te*te,(Le-xe)*ee,(Te+Ae)*te,(Le-Ae)*ee,(Te+xe)*te)),Ae=.1,xe=be*.1,Le=.4,Te=.9;var ze=new go.PathFigure((Le-Ae)*ee,Te*te,!0);return ue.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,Le*ee,(Te-Ae)*te,(Le-Ae)*ee,(Te-xe)*te,(Le-xe)*ee,(Te-Ae)*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Le+Ae)*ee,Te*te,(Le+xe)*ee,(Te-Ae)*te,(Le+Ae)*ee,(Te-xe)*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Le*ee,(Te+Ae)*te,(Le+Ae)*ee,(Te+xe)*te,(Le+xe)*ee,(Te+Ae)*te)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Le-Ae)*ee,Te*te,(Le-xe)*ee,(Te+Ae)*te,(Le-Ae)*ee,(Te+xe)*te)),ue}),go.Shape.defineFigureGenerator("RailShipment",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.1*ee,.4*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.9*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.9*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.4*te).close());var de=new go.PathFigure(.45*ee,.7*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.7*te));var ve=new go.PathFigure(.55*ee,.4*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.9*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.9*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.4*te).close());var Le=.05,Te=be*.05,He=.175,ze=.95,Pe=new go.PathFigure((He-Le)*ee,ze*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,He*ee,(ze-Le)*te,(He-Le)*ee,(ze-Te)*te,(He-Te)*ee,(ze-Le)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(He+Le)*ee,ze*te,(He+Te)*ee,(ze-Le)*te,(He+Le)*ee,(ze-Te)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,He*ee,(ze+Le)*te,(He+Le)*ee,(ze+Te)*te,(He+Te)*ee,(ze+Le)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(He-Le)*ee,ze*te,(He-Te)*ee,(ze+Le)*te,(He-Le)*ee,(ze+Te)*te));var Le=.05,Te=be*.05,He=.375,ze=.95,Ae=new go.PathFigure((He-Le)*ee,ze*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,He*ee,(ze-Le)*te,(He-Le)*ee,(ze-Te)*te,(He-Te)*ee,(ze-Le)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(He+Le)*ee,ze*te,(He+Te)*ee,(ze-Le)*te,(He+Le)*ee,(ze-Te)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,He*ee,(ze+Le)*te,(He+Le)*ee,(ze+Te)*te,(He+Te)*ee,(ze+Le)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(He-Le)*ee,ze*te,(He-Te)*ee,(ze+Le)*te,(He-Le)*ee,(ze+Te)*te));var Le=.05,Te=be*.05,He=.625,ze=.95,xe=new go.PathFigure((He-Le)*ee,ze*te,!0);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,He*ee,(ze-Le)*te,(He-Le)*ee,(ze-Te)*te,(He-Te)*ee,(ze-Le)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(He+Le)*ee,ze*te,(He+Te)*ee,(ze-Le)*te,(He+Le)*ee,(ze-Te)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,He*ee,(ze+Le)*te,(He+Le)*ee,(ze+Te)*te,(He+Te)*ee,(ze+Le)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(He-Le)*ee,ze*te,(He-Te)*ee,(ze+Le)*te,(He-Le)*ee,(ze+Te)*te));var Le=.05,Te=be*.05,He=.825,ze=.95,Ke=new go.PathFigure((He-Le)*ee,ze*te,!0);ue.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,He*ee,(ze-Le)*te,(He-Le)*ee,(ze-Te)*te,(He-Te)*ee,(ze-Le)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(He+Le)*ee,ze*te,(He+Te)*ee,(ze-Le)*te,(He+Le)*ee,(ze-Te)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,He*ee,(ze+Le)*te,(He+Le)*ee,(ze+Te)*te,(He+Te)*ee,(ze+Le)*te)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(He-Le)*ee,ze*te,(He-Te)*ee,(ze+Le)*te,(He-Le)*ee,(ze+Te)*te).close());var Ze=new go.PathFigure(0,te,!1);return ue.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,ee,te).close()),ue}),go.Shape.defineFigureGenerator("Warehouse",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var de=new go.PathFigure(0,.2*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te).close());var ve=new go.PathFigure(.15*ee,te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.5*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.5*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,.15*ee,te).close());var Pe=.05,Ae=be*.05,xe=.35,Le=.775,Te=new go.PathFigure((xe-Pe)*ee,Le*te,!0);return ue.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,xe*ee,(Le-Pe)*te,(xe-Pe)*ee,(Le-Ae)*te,(xe-Ae)*ee,(Le-Pe)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Pe)*ee,Le*te,(xe+Ae)*ee,(Le-Pe)*te,(xe+Pe)*ee,(Le-Ae)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,xe*ee,(Le+Pe)*te,(xe+Pe)*ee,(Le+Ae)*te,(xe+Ae)*ee,(Le+Pe)*te)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Pe)*ee,Le*te,(xe-Ae)*ee,(Le+Pe)*te,(xe-Pe)*ee,(Le+Ae)*te).close()),ue}),go.Shape.defineFigureGenerator("ControlCenter",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Move,.1*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*te).close()),ue}),go.Shape.defineFigureGenerator("Bluetooth",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.75*te,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.4*te)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.4*te)),ue}),go.Shape.defineFigureGenerator("Globe",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.5*ee,0,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,.75*ee,0,ee,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,ee,.75*te,.75*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.25*ee,te,0,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,.25*te,.25*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,.15*ee,.25*te,.15*ee,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.85*ee,.75*te,.85*ee,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.1675*ee,.15*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ee,.15*te,.35*ee,.3*te,.65*ee,.3*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.1675*ee,.85*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ee,.85*te,.35*ee,.7*te,.65*ee,.7*te)),ue}),go.Shape.defineFigureGenerator("Wave",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.25*te,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.25*te,.1*ee,0,.2*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,.25*te,.425*ee,.5*te,.575*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,.25*te,.8*ee,0,.9*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.75*te,.1*ee,.5*te,.2*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,.75*te,.425*ee,te,.575*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,.75*te,.8*ee,.5*te,.9*ee,.5*te)),ue}),go.Shape.defineFigureGenerator("Operator",function(Ee,ee,te){var ue=new go.Geometry,ae=.3,de=be*.3,ve=.5,Pe=.7,Ae=new go.PathFigure((ve-ae)*ee,Pe*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ae)*ee,Pe*te,(ve+de)*ee,(Pe-ae)*te,(ve+ae)*ee,(Pe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ae)*ee,Pe*te,(ve-de)*ee,(Pe+ae)*te,(ve-ae)*ee,(Pe+de)*te));var xe=new go.PathFigure(0,.7*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee,.7*te,0,0,ee,0)),ue}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.5*ee,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*te,.65*ee,.3*te,.65*ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.35*ee,.5*te,.35*ee,.3*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.65*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.3*ee,.6*te,.1*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*te,.2*ee,te,.35*ee,.95*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.65*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,te,.7*ee,.6*te,.9*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*te,.8*ee,te,.65*ee,.95*te)),ue}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee,0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,0,.075*te,0,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,te,0,te,.4*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.4*te,.8*ee,te,.85*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue}),go.Shape.defineFigureGenerator("Battery",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.1*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Move,.4*ee,.1*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.1*te));var de=new go.PathFigure(0,.6*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,0,.4*te)),de.add(new go.PathSegment(go.PathSegment.Line,ee,.4*te)),ue}),go.Shape.defineFigureGenerator("Delete",function(Ee,ee,te){var ue=new go.Geometry,ae=.5,de=be*.5,ve=.5,Pe=.5,Ae=new go.PathFigure((ve-ae)*ee,Pe*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ae)*ee,Pe*te,(ve+de)*ee,(Pe-ae)*te,(ve+ae)*ee,(Pe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ae)*ee,Pe*te,(ve-de)*ee,(Pe+ae)*te,(ve-ae)*ee,(Pe+de)*te));var xe=new go.PathFigure(.15*ee,.5*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.5*te)),ue}),go.Shape.defineFigureGenerator("Flag",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.1*te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Move,0,.1*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.1*te,.15*ee,0,.35*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*te,.65*ee,.2*te,.85*ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.5*te,.85*ee,.6*te,.65*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.35*ee,.4*te,.15*ee,.4*te).close()),ue}),go.Shape.defineFigureGenerator("Help",function(Ee,ee,te){var ue=new go.Geometry,ae=.5,de=be*.5,ve=.5,Pe=.5,Ae=new go.PathFigure((ve-ae)*ee,Pe*te,!1);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ae)*ee,Pe*te,(ve+de)*ee,(Pe-ae)*te,(ve+ae)*ee,(Pe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ae)*ee,Pe*te,(ve-de)*ee,(Pe+ae)*te,(ve-ae)*ee,(Pe+de)*te).close()),ae=.05,de=be*.05,ve=.5,Pe=.8;var xe=new go.PathFigure((ve-ae)*ee,Pe*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe-ae)*te,(ve-ae)*ee,(Pe-de)*te,(ve-de)*ee,(Pe-ae)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ae)*ee,Pe*te,(ve+de)*ee,(Pe-ae)*te,(ve+ae)*ee,(Pe-de)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(Pe+ae)*te,(ve+ae)*ee,(Pe+de)*te,(ve+de)*ee,(Pe+ae)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ae)*ee,Pe*te,(ve-de)*ee,(Pe+ae)*te,(ve-ae)*ee,(Pe+de)*te).close()),xe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.7*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*te,.75*ee,.475*te,.75*ee,.225*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.35*te,.4*ee,.2*te,.3*ee,.25*te)),ue}),go.Shape.defineFigureGenerator("Location",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(.5*ee,te,!0).add(new go.PathSegment(go.PathSegment.Line,.75*ee,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.975*ee,.025*te,.5*ee,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*ee,.5*te,.5*ee,0,.025*ee,.025*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ee,.2*te)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*ee,.3*te,.1*ee,.1*te).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.5*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var de=new go.PathFigure(.2*ee,.5*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.3*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.3*te,.25*ee,0,.75*ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.3*te)),ue}),go.Shape.defineFigureGenerator("Unlocked",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.5*te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var de=new go.PathFigure(.2*ee,.5*te,!1);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.5*te)),de.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.3*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.3*te,.25*ee,0,.75*ee,0)),de.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.35*te)),ue}),go.Shape.defineFigureGenerator("Gear",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(.9375*ee,.56246875*te,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*ee,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.80621875*ee,.4375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.763*ee,.3316875*te,.79840625*ee,.39915625*te,.7834375*ee,.3635*te)).add(new go.PathSegment(go.PathSegment.Line,.8566875*ee,.23796875*te)).add(new go.PathSegment(go.PathSegment.Line,.76825*ee,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.67596875*ee,.24184375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*ee,.19378125*te,.64228125*ee,.2188125*te,.603875*ee,.2021875*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ee,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ee,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ee,.19378125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*ee,.239375*te,.39759375*ee,.20190625*te,.36053125*ee,.2176875*te)).add(new go.PathSegment(go.PathSegment.Line,.2379375*ee,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.14953125*ee,.2379375*te)).add(new go.PathSegment(go.PathSegment.Line,.23934375*ee,.3278125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*ee,.4375*te,.21765625*ee,.36059375*te,.201875*ee,.397625*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ee,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ee,.5625*te)).add(new go.PathSegment(go.PathSegment.Line,.1938125*ee,.5625*te)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*ee,.67596875*te,.20221875*ee,.603875*te,.21884375*ee,.64228125*te)).add(new go.PathSegment(go.PathSegment.Line,.1495625*ee,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.238*ee,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.3316875*ee,.76296875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*ee,.80621875*te,.36353125*ee,.78340625*te,.3991875*ee,.79840625*te)).add(new go.PathSegment(go.PathSegment.Line,.43753125*ee,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ee,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ee,.80621875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*ee,.760625*te,.602375*ee,.79809375*te,.63946875*ee,.78234375*te)).add(new go.PathSegment(go.PathSegment.Line,.76828125*ee,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.85671875*ee,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.76065625*ee,.67221875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*ee,.56246875*te,.78234375*ee,.63940625*te,.798125*ee,.602375*te)).add(new go.PathSegment(go.PathSegment.Line,.9375*ee,.56246875*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ee,.6*te)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*ee,.5*te,.1*ee,.1*te).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.5*te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,.3*te,0,.375*te,.05*ee,.325*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.45*ee,.075*te,.3*ee,.225*te,.4*ee,.175*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.525*ee,.075*te,.46*ee,.05*te,.525*ee,.05*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.4*te,.525*ee,.275*te,.475*ee,.325*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.55*te,ee,.4*te,ee,.55*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.55*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.55*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.6*ee,.7*te,.675*ee,.55*te,.675*ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.575*ee,.85*te,.65*ee,.7*te,.65*ee,.85*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.85*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.85*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.535*ee,te,.61*ee,.85*te,.61*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,.435*ee,te,0,te).close()),ue}),go.Shape.defineFigureGenerator("Map",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,.2*te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ae.add(new go.PathSegment(go.PathSegment.Move,.25*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),ae.add(new go.PathSegment(go.PathSegment.Move,.75*ee,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.8*te)),ue}),go.Shape.defineFigureGenerator("Eject",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,te,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te*.7)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te*.7).close());var de=new go.PathFigure(0,te*.6,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee,.6*te)),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0).close()),ue}),go.Shape.defineFigureGenerator("Pencil",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*te)).add(new go.PathSegment(go.PathSegment.Line,ee,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ee,te)).add(new go.PathSegment(go.PathSegment.Line,.1*ee,.2*te).close()))}),go.Shape.defineFigureGenerator("Building",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*1,te*1,!1);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te*.85)),ae.add(new go.PathSegment(go.PathSegment.Line,.046*ee,te*.85)),ae.add(new go.PathSegment(go.PathSegment.Line,.046*ee,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te*.3)),ae.add(new go.PathSegment(go.PathSegment.Line,.046*ee,te*.3)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,te*.3)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te*.3)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,te*.85)),ae.add(new go.PathSegment(go.PathSegment.Line,ee,te*.85).close());var de=new go.PathFigure(.126*ee,.85*te,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.126*ee,.45*te)),de.add(new go.PathSegment(go.PathSegment.Line,.322*ee,.45*te)),de.add(new go.PathSegment(go.PathSegment.Line,.322*ee,.85*te).close());var ve=new go.PathFigure(.402*ee,.85*te,!1);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.402*ee,.45*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*ee,.45*te)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*ee,.85*te).close());var Pe=new go.PathFigure(.678*ee,.85*te,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.678*ee,.45*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.874*ee,.45*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.874*ee,.85*te).close());var Ae=new go.PathFigure(.5*ee,.1*te,!1);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ee,.3*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ee,.3*te).close()),ue}),go.Shape.defineFigureGenerator("Staircase",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,te*1,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.2,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.2,te*.8)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.4,te*.8)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.4,te*.6)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*.6)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*.4)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*.4)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*.2)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.2)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.15)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.15)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.35)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.35)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.55)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.35,te*.55)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.35,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.15,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.15,te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te*.95).close()),ue}),go.Shape.defineFigureGenerator("5Bars",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,te*1,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.184,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.184,te*(1-.184)).close());var de=new go.PathFigure(ee*.204,te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee*.204,te*(1-.184))),de.add(new go.PathSegment(go.PathSegment.Line,ee*.388,te*(1-.184*2))),de.add(new go.PathSegment(go.PathSegment.Line,ee*.388,te*1).close());var ve=new go.PathFigure(ee*.408,te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.408,te*(1-.184*2))),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.592,te*(1-.184*3))),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.592,te*1).close());var Pe=new go.PathFigure(ee*.612,te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.612,te*(1-.184*3))),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.796,te*(1-.184*4))),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.796,te*1).close());var Ae=new go.PathFigure(ee*.816,te,!0);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*.816,te*(1-.184*4))),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*(1-.184*5))),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1).close()),ue}),go.Shape.defineFigureGenerator("PC",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.3,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.3,0).close());var de=new go.PathFigure(ee*.055,.07*te,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee*.245,te*.07)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.245,te*.1)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.055,te*.1).close());var ve=new go.PathFigure(ee*.055,.13*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.245,te*.13)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.245,te*.16)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.055,te*.16).close());var Pe=new go.PathFigure(ee*.055,.18*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.245,te*.18)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.245,te*.21)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.055,te*.21).close());var Ae=new go.PathFigure(ee*1,0,!0);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*.4,0)),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*.4,te*.65)),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.65).close()),ue}),go.Shape.defineFigureGenerator("Plane",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(.55*ee,te,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.7*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.475*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.35*ee,.525*te,0,.4*te,.225*ee,.45*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.475*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.35*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.325*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.325*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.1*te)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.2*te,.975*ee,0,ee,.08*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.45*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.95*te)),ae.add(new go.PathSegment(go.PathSegment.Line,.55*ee,te).close()),ue}),go.Shape.defineFigureGenerator("Key",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*1,te*.5,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.9,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.4*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.35*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.45,.35*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.3,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.15,.2*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.35*te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.65*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.15,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.3,.8*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.45,.65*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.65*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.6,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.65,.55*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.7,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.75,.55*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.8,.6*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.85,.575*te)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.9,.6*te).close()),ae.add(new go.PathSegment(go.PathSegment.Move,.17*ee,.425*te)),ae.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ee,.5*te,.075*ee,.075*te).close()),ue}),go.Shape.defineFigureGenerator("FilmTape",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(0,0,!1);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Arc,270,180,ee*0,ee*.3,ee*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.08,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.08,te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*1),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*1),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*2),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*2),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*3),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*3),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*4),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*4),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*5),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*5),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*6),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*6),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*7),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*7),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*8),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*8),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*9),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*9),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*10),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*10),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*11),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*11),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*12),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*12),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*13),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*13),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*14),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*14),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*15),te*.95)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*15),te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1));var de=new go.PathFigure(0,0,!1);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*0)),de.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ee*1,ee*.3,ee*.055)),de.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1));var ve=new go.PathFigure(ee*.11,te*.1,!1);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*1+.028*0),te*.1)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*1+.028*0),te*.8)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.11,te*.8).close());var Pe=new go.PathFigure(ee*(.11+.24133333*1+.028*1),te*.1,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*1),te*.1)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*1),te*.8)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*1+.028*1),te*.8).close());var Ae=new go.PathFigure(ee*(.11+.24133333*2+.028*2),te*.1,!1);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*3+.028*2),te*.1)),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*3+.028*2),te*.8)),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*2),te*.8).close()),ue}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ee,ee,te){var ue=new go.Geometry,ae=8,de=ae*be,ve=new go.PathFigure(ae,0,!1);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.86,0)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.14)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,te-ae)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee-ae,te,ee,te-de,ee-de,te)),ve.add(new go.PathSegment(go.PathSegment.Line,ae,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,te-ae,de,te,0,te-de)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,de,de,0).close());var Pe=new go.PathFigure(ee*.83,0,!1);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.83,te*.3)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.17,te*.3)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.17,te*0).close());var Ae=new go.PathFigure(ee*.83,te*1,!1);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*.83,te*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*.17,te*.5)),Ae.add(new go.PathSegment(go.PathSegment.Line,ee*.17,te*1).close());var xe=new go.PathFigure(ee*.78,te*.05,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.05)),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.25)),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.78,te*.25).close()),ue}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=15),ue=Math.min(ue,ee/3),ue=Math.min(ue,te/3);var ae=ue*be,de=te*.8,ve=new go.Geometry,Pe=new go.PathFigure(ue,0,!0);return ve.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee-ue,0)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ee,ue,ee-ae,0,ee,ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee,de-ue)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,de,ee,de-ae,ee-ae,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.7,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.7,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.55,de)),Pe.add(new go.PathSegment(go.PathSegment.Line,ue,de)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,0,de-ue,ae,de,0,de-ae)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,ue)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,ae,ae,0).close()),ae>1?(ve.spot1=new go.Spot(0,0,ae,ae),ve.spot2=new go.Spot(1,.8,-ae,-ae)):(ve.spot1=go.Spot.TopLeft,ve.spot2=new go.Spot(1,.8)),ve}),go.Shape.defineFigureGenerator("Repeat",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*0,te*.45,!0);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.3,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.3,te*.9)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*.9)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.65,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.2,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.2,te*.45).close());var de=new go.PathFigure(ee*1,te*.55,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*1)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.55)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.7,te*.55)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.7,te*.1)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.4,te*.1)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.35,te*0)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*0)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*.55).close()),ue}),go.Shape.defineFigureGenerator("Windows",function(Ee,ee,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()).add(new go.PathSegment(go.PathSegment.Move,.4*ee,.4*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ee,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*te).close()).add(new go.PathSegment(go.PathSegment.Move,.2*ee,.1*te)).add(new go.PathSegment(go.PathSegment.Line,.2*ee,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ee,.1*te).close()).add(new go.PathSegment(go.PathSegment.Move,.1*ee,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.1*ee,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*te).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*0,te*.1,!1);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.9)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*0,te*.9).close());var de=new go.PathFigure(ee*.1,te*.2,!0);ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee*.1,te*.25)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.22,te*.285)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.1,te*.32)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.1,te*.37)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.275,te*.32)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.275,te*.25).close());var ve=new go.PathFigure(ee*.28,te*.37,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.37)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.41)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.28,te*.41).close()),ue}),go.Shape.defineFigureGenerator("Beaker",function(Ee,ee,te){var ue=new go.Geometry,ae=15,de=ae*be,ve=new go.PathFigure(ee*.62,te*.475,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,te-ae)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee-ae,te,ee,te-de,ee-de,te)),ve.add(new go.PathSegment(go.PathSegment.Line,ae,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,te-ae,de,te,0,te-de)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.38,te*.475)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.38,te*.03)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.36,te*0)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.64,te*0)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.62,te*.03).close()),de>1?(ue.spot1=new go.Spot(0,0,de,de),ue.spot2=new go.Spot(1,1,-de,-de)):(ue.spot1=go.Spot.TopLeft,ue.spot2=go.Spot.BottomRight),ue}),go.Shape.defineFigureGenerator("Download",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*0,te*1,!0);ue.add(ae);var de=.1/.3;ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.755,te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.93,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.64,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.61,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.39,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.36,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.07,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*0,te*(1-de)).close());var ve=new go.PathFigure(ee*.4,te*0,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.4,te*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.26,te*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.66)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.26),te*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*0).close()),ue}),go.Shape.defineFigureGenerator("Bin",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*0,te*1,!0);ue.add(ae);var de=.1/.3;return ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.755,te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.93,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.64,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.61,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.39,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.36,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.07,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*0,te*(1-de)).close()),ue}),go.Shape.defineFigureGenerator("Upload",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*0,te*1,!0);ue.add(ae);var de=.1/.3;ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.755,te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.93,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.64,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.61,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.39,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.36,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.07,te*(1-de))),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*.055)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*0,te*(1-de)).close());var ve=new go.PathFigure(ee*.5,te*0,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.26,te*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.4,te*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.4,te*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,ee*.74,te*.25).close()),ue}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*.15,te*0,!1);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.85,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.7,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.3,te*1).close()),ue}),go.Shape.defineFigureGenerator("Drink",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*.15,te*0,!1);ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.85,te*0)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.7,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.3,te*1).close());var de=new go.PathFigure(ee*.235,te*.28,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,ee*.765,te*.28)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.655,te*.97)),de.add(new go.PathSegment(go.PathSegment.Line,ee*.345,te*.97).close()),ue}),go.Shape.defineFigureGenerator("4Arrows",function(Ee,ee,te){var ue=new go.Geometry,ae=new go.PathFigure(ee*.5,te*0,!0);return ue.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.65,te*.25)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.25)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.35)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.65)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.55)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.55)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.65,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*1)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.35,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.75)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.55)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*.55)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*.65)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*0,te*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*.35)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.45)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.25)),ae.add(new go.PathSegment(go.PathSegment.Line,ee*.35,te*.25).close()),ue}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var gn={},zt="5.0",he={},pe=null,Ie=!1,Ve=!1,st=null,We=!1,it=null,be=null,yt=0;yt<arguments.length;yt++){var vt=arguments[yt];if(vt!==null)switch(typeof vt){case"number":zt=vt.toFixed(1);break;case"string":vt.match(new RegExp("^[0-9]\\.[0-9]+$"))?zt=vt:st=vt;break;case"object":typeof vt.is3D!="undefined"?pe=vt:he=vt;break;case"boolean":Ie=vt,Ve=!0;break}}pe===null&&(pe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},he.material_id!==void 0&&!Ve&&(Ie=!0)),st!==null&&he.id===void 0&&(he.id=st);var Je="",tt="",$e=!1,Qe=null,Ee=null,ee=null,te=!1,ue=null,ae=null,de=null,ve=null,Pe=null;he.height!==void 0&&(he.height=Math.round(he.height)),he.width!==void 0&&(he.width=Math.round(he.width));var Ae=function(xt){return parseFloat(xt)>4?parseFloat(xt):5};gn.setHTML5Codebase=function(xt,Bt){be=xt,Et(xt,Bt)},gn.setJavaCodebase=gn.setJavaCodebaseVersion=gn.isCompiledInstalled=gn.setPreCompiledScriptPath=gn.setPreCompiledResourcePath=function(){},gn.setHTML5CodebaseVersion=function(xt,Bt){var rn=parseFloat(xt);if(rn!==NaN&&rn<5){console.log("The GeoGebra HTML5 codebase version "+rn+" is deprecated. Using version latest instead.");return}it=xt,je(xt,Bt)},gn.getHTML5CodebaseVersion=function(){return Ee},gn.getParameters=function(){return he},gn.setFontsCSSURL=function(xt){ve=xt},gn.setGiacJSURL=function(xt){},gn.setJNLPFile=function(xt){Je=xt},gn.setJNLPBaseDir=function(xt){},gn.inject=function(){function xt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Bt="auto",rn=he.id,Hn,pn=!1,_n=0;_n<arguments.length;_n++){var Lt=arguments[_n];typeof Lt=="string"?(Lt=Lt.toLowerCase(),Lt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Bt=Lt:rn=arguments[_n]):typeof Lt=="boolean"?pn=Lt:Lt instanceof HTMLElement&&(Hn=Lt)}Un();function Un(){if(!We){setTimeout(Un,200);return}Bt=_t(Bt);var Gn=Hn||document.getElementById(rn);if(!Gn){console.log("possibly bug on ajax loading? ");return}if(gn.removeExistingApplet(Gn,!1),he.width===void 0&&Gn.clientWidth&&(he.width=Gn.clientWidth),he.height===void 0&&Gn.clientHeight&&(he.height=Gn.clientHeight),!(he.width&&he.height)&&Bt==="html5"&&(delete he.width,delete he.height),Qe=Bt,Bt==="screenshot")Xe(Gn,he);else{var ui=!1;he.hasOwnProperty("playButton")&&he.playButton||he.hasOwnProperty("clickToLoad")&&he.clickToLoad?ui=!0:he.hasOwnProperty("playButtonAutoDecide")&&he.playButtonAutoDecide&&(ui=(!xe()||xt())&&Le()),ui?(Qe="screenshot",Ct(Gn,he,pn,Bt)):Mt(Gn,he,pn)}}};function xe(){try{return window.self!==window.top}catch(xt){return!0}}function Le(){return he.hasOwnProperty("screenshotGenerator")&&he.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}gn.getViews=function(){return pe},gn.isJavaInstalled=function(){return!1};var Te=function(xt){var Bt=function(_n){var Lt=JSON.parse(_n),Un=function(Ln){return Ln.type=="G"||Ln.type=="E"},Gn=Lt.elements?Lt.elements.filter(Un)[0]:Lt;if(!Gn||!Gn.url){rn();return}he.fileName=Gn.url,He(Gn.settings||{}),pe.is3D=!0;var ui="https://www.geogebra.org/images/";gn.setPreviewImage(ue||Gn.previewUrl,ui+"GeoGebra_loading.png",ui+"applet_play.png"),xt()},rn=function(){he.onError&&he.onError(),ln("Error: Fetching material (id "+he.material_id+") failed.",he)},Hn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",pn="/materials/"+he.material_id+"?scope=basic";ze("https://"+Hn+"/api/proxy.php?path="+encodeURIComponent(pn),Bt,rn)};function He(xt){var Bt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rn){xt[rn]=!!xt[rn]}),Bt.forEach(function(rn){he[rn]===void 0&&xt[rn]!==void 0&&(he[rn]=xt[rn])}),he.showToolBarHelp===void 0&&(he.showToolBarHelp=he.showToolBar)}function ze(xt,Bt,rn){var Hn=new XMLHttpRequest;Hn.open("GET",xt),Hn.onload=function(){Bt(Hn.responseText)},Hn.onerror=rn,Hn.send()}gn.isHTML5Installed=function(){return!0},gn.getLoadedAppletType=function(){return Qe},gn.setPreviewImage=function(xt,Bt,rn){ue=xt,ae=Bt,de=rn},gn.removeExistingApplet=function(xt,Bt){var rn;typeof xt=="string"&&(xt=document.getElementById(xt)),Qe=null;var Hn=null;for(rn=0;rn<xt.childNodes.length;rn++){var pn=xt.childNodes[rn],_n=pn.className;_n==="applet_screenshot"?Bt?(pn.style.display="block",Qe="screenshot"):pn.style.display="none":_n!=="applet_scaler prerender"&&(xt.removeChild(pn),Hn=_n&&_n.indexOf("appletParameters")!=-1?pn.id:null,rn--)}var Lt=he.id!==void 0?he.id:Hn,Un=window[Lt];Un&&typeof Un.getBase64=="function"&&(Un.remove(),window[Lt]=null)},gn.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var xt=gn.getAppletObject();return xt&&typeof xt.recalculateEnvironments=="function"?(xt.recalculateEnvironments(),!0):!1},gn.startAnimation=function(){var xt=gn.getAppletObject();return xt&&typeof xt.startAnimation=="function"?(xt.startAnimation(),!0):!1},gn.stopAnimation=function(){var xt=gn.getAppletObject();return xt&&typeof xt.stopAnimation=="function"?(xt.stopAnimation(),!0):!1},gn.getAppletObject=function(){var xt=he.id!==void 0?he.id:"ggbApplet";return window[xt]},gn.resize=function(){};var Ke=function(xt,Bt,rn){var Hn=document.createElement("param");Hn.setAttribute("name",Bt),Hn.setAttribute("value",rn),xt.appendChild(Hn)},Ze=function(xt){return xt&&xt!=="false"},Mt=function(xt,Bt,rn){Ae(Ee)<=4.2&&(rn=!0);var Hn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ee||ggbHTML5LoadedCodebaseIsWebSimple&&!te)&&(Hn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var pn=document.createElement("div");pn.classList.add("appletParameters","notranslate");var _n=Bt.width,Lt=Bt.height;if(Bt.disableAutoScale=Bt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Bt.disableAutoScale,Bt.width!==void 0)if(Ae(Ee)<=4.4)Ze(Bt.showToolBar)&&(Bt.height-=7),Ze(Bt.showAlgebraInput)&&(Bt.height-=37),Bt.width<605&&Ze(Bt.showToolBar)&&(Bt.width=605,_n=605);else{var Un=100;(Ze(Bt.showToolBar)||Ze(Bt.showMenuBar))&&(Bt.hasOwnProperty("customToolBar")&&(Bt.customToolbar=Bt.customToolBar),Un=Ze(Bt.showMenuBar)?245:155),_n<Un&&(Bt.width=Un,_n=Un)}pn.style.border="none",pn.style.display="inline-block";for(var Gn in Bt)Bt.hasOwnProperty(Gn)&&Gn!=="appletOnLoad"&&pn.setAttribute("data-param-"+Gn,Bt[Gn]);ve&&pn.setAttribute("data-param-fontscssurl",ve),gn.resize=function(){GGBAppletUtils.responsiveResize(xt,Bt)},window.addEventListener("resize",function(ye){gn.resize()});var ui=typeof Bt.appletOnLoad=="function"?Bt.appletOnLoad:function(){};if(!rn&&Bt.width!==void 0){Bt.hasOwnProperty("showSplash")||pn.setAttribute("data-param-showSplash","false");var Ln=xt.querySelector(".applet_scaler.prerender"),Wt=Ln!==null;if(Wt)var Vt=Ln.querySelector(".ggb_preview");else{var Vt=It(_n,Lt,Bt.borderColor,!1);Ln=document.createElement("div"),Ln.className="applet_scaler",Ln.style.position="relative",Ln.style.display="block",Ln.style.width=_n+"px",Ln.style.height=Lt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ln,"66%"),Ae(Ee)>=5?(Bt.appletOnLoad=function(ye){var ke=xt.querySelector(".ggb_preview");ke&&ke.parentNode.removeChild(ke),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ln),window.GGBT_wsf_view&&$(window).trigger("resize"),ui(ye)},Wt||Ln.appendChild(Vt)):pn.appendChild(Vt),Ln.appendChild(pn),Wt||xt.appendChild(Ln),setTimeout(function(){gn.resize()},1)}else{var mt=document.createElement("div");mt.className="applet_scaler",mt.style.position="relative",mt.style.display="block",mt.appendChild(pn),xt.appendChild(mt),Bt.appletOnLoad=function(ye){gn.resize(),ui(ye)}}function Ye(ye,ke){ke&&typeof ke.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ye,ke.appletOnLoad):renderGGBElement(ye),ln("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ke)}function Zt(ye,ke){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ye,params:ke}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ge){Ye(Ge.article,Ge.params)}),html5AppletsToProcess=null)},Ae(Ee)<5&&(ye.className+=" geogebraweb")):Ye(ye,ke)}if(Hn){scriptLoadStarted=!0;for(var Gt=0;Gt<pn.childNodes.length;Gt++){var ft=pn.childNodes[Gt].tagName;ft==="TABLE"&&(pn.removeChild(pn.childNodes[Gt]),Gt--)}if(ggbHTML5LoadedScript!==null){var nt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');nt!=null&&nt.parentNode.removeChild(nt)}var Oe=document.createElement("script"),we=function(){Zt(pn,Bt)};Oe.src=tt+ee,ggbHTML5LoadedCodebaseIsWebSimple=te,ggbHTML5LoadedCodebaseVersion=Ee,ggbHTML5LoadedScript=Oe.src,ln("GeoGebra HTML5 codebase loaded: '"+tt+"'.",Bt),!be&&(!it||it=="5.0")?(te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),we()):tt.requirejs?__webpack_require__.e(7374).then(function(){var ye=[__webpack_require__(97374)];we.apply(null,ye)}.bind(this)).catch(__webpack_require__.oe):(Oe.onload=we,xt.appendChild(Oe))}else Zt(pn,Bt);Bt.height=Lt,Bt.width=_n},Xe=function(xt,Bt,rn){var Hn=It(Bt.width,Bt.height,Bt.borderColor,rn),pn=document.createElement("div");pn.style.position="relative",pn.style.display="block",pn.style.width=Bt.width+"px",pn.style.height=Bt.height+"px",pn.className="applet_screenshot applet_scaler"+(rn?" applet_screenshot_play":""),pn.appendChild(Hn);var _n=GGBAppletUtils.getScale(Bt,xt,rn);rn?(xt.appendChild(Nt()),window.GGBT_wsf_view||(xt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pn,"66%"),xt.appendChild(pn),_n!==1&&!isNaN(_n)&&(GGBAppletUtils.scaleElement(pn,_n),pn.style.width=Bt.width+"px",pn.style.height=Bt.height+"px",pn.parentNode.style.width=Bt.width*_n+"px",pn.parentNode.style.height=Bt.height*_n+"px"),gn.resize=function(){Ft(xt,Hn,pn,rn)},window.addEventListener("resize",function(Lt){gn.resize()}),gn.resize()};function Ft(xt,Bt,rn,Hn){if(xt.contains(Bt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(xt)}var pn=GGBAppletUtils.getScale(he,xt,Hn);rn.parentNode!==null&&(!isNaN(pn)&&pn!==1?(GGBAppletUtils.scaleElement(rn,pn),rn.parentNode.style.width=he.width*pn+"px",rn.parentNode.style.height=he.height*pn+"px"):(GGBAppletUtils.scaleElement(rn,1),rn.parentNode.style.width=he.width+"px",rn.parentNode.style.height=he.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(xt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}gn.onExitFullscreen=function(xt,Bt){Bt.appendChild(xt)};var Ct=function(xt,Bt,rn,Hn){Xe(xt,Bt,!0);for(var pn=function(){var Un=[];for(Lt=0;Lt<xt.childNodes.length;Lt++)Un.push(xt.childNodes[Lt]);if(window.GGBT_wsf_view){var Gn=window.GGBT_wsf_view.renderFullScreen(xt,Bt.id),ui=document.getElementById("fullscreencontainer"),Ln=jQuery(xt).find(".fullscreencontent");Ln.length>0?(Gn.remove(),Ln.attr("id","fullscreencontent").show(),jQuery(ui).append(Ln),window.dispatchEvent(new Event("resize"))):Mt(Gn,Bt,!1),window.GGBT_wsf_view.launchFullScreen(ui)}else Qe=Hn,Mt(xt,Bt,!1);if(!window.GGBT_wsf_view)for(Lt=0;Lt<Un.length;Lt++)xt.removeChild(Un[Lt])},_n=xt.getElementsByClassName("ggb_preview_play"),Lt=0;Lt<_n.length;Lt++)_n[Lt].addEventListener("click",pn,!1),_n[Lt].addEventListener("ontouchstart",pn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(xt),Le()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Nt=function(){var xt=document.createElement("div");if(xt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Bt='.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");}',rn=document.createElement("style");rn.styleSheet?rn.styleSheet.cssText=Bt:rn.appendChild(document.createTextNode(Bt)),document.getElementsByTagName("head")[0].appendChild(rn)}return xt},It=function(xt,Bt,rn,Hn){var pn=document.createElement("div");pn.className="ggb_preview",pn.style.position="absolute",pn.style.zIndex="90",pn.style.width=xt-2+"px",pn.style.height=Bt-2+"px",pn.style.top="0px",pn.style.left="0px",pn.style.overflow="hidden",pn.style.backgroundColor="white";var _n="lightgrey";rn!==void 0&&(rn==="none"?_n="transparent":_n=rn),pn.style.border="1px solid "+_n;var Lt=document.createElement("img");if(Lt.style.position="relative",Lt.style.zIndex="1000",Lt.style.top="-1px",Lt.style.left="-1px",ue!==null&&Lt.setAttribute("src",ue),Lt.style.opacity=.7,ae!==null){var Un,Gn,ui;if(!Hn){Un=document.createElement("img"),Un.style.position="absolute",Un.style.zIndex="1001",Un.style.opacity=1,Lt.style.opacity=.3,Gn=360,Gn>xt/4*3&&(Gn=xt/4*3),ui=Gn/5.8,Un.setAttribute("src",ae),Un.setAttribute("width",Gn),Un.setAttribute("height",ui);var Ln=(xt-Gn)/2,Wt=(Bt-ui)/2;Un.style.left=Ln+"px",Un.style.top=Wt+"px",pn.appendChild(Un)}}return pn.appendChild(Lt),pn},_t=function(xt){return xt=xt.toLowerCase(),xt==="html5"||xt==="screenshot"?xt:"html5"},lt=["web","webSimple","web3d","tablet","tablet3d","phone"],je=function(xt,Bt){if(Ee=xt,Bt){Et(Ee,!0);return}var rn=!Ie;if(rn){var Hn=Ae(Ee);!isNaN(Hn)&&Hn<4.4&&(rn=!1)}var pn,_n;window.location.protocol.substr(0,4)==="http"?pn=window.location.protocol:pn="http:";var Lt=Ee.indexOf("//");Lt>0?_n=Ee:Lt===0?_n=pn+Ee:_n="https://www.geogebra.org/apps/5.2.814.0/";for(var Un in lt)if(Ee.slice(lt[Un].length*-1)===lt[Un]||Ee.slice((lt[Un].length+1)*-1)===lt[Un]+"/"){Et(_n,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rn&&!pe.is3D&&!pe.AV&&!pe.SV&&!pe.CV&&!pe.EV2&&!pe.CP&&!pe.PC&&!pe.DA&&!pe.FI&&!pe.PV&&!Ze(he.showToolBar)&&!Ze(he.showMenuBar)&&!Ze(he.showAlgebraInput)&&!Ze(he.enableRightClick)&&(!he.appName||he.appName=="classic")?_n+="webSimple/":_n+="web3d/",Et(_n,!1)},Et=function(xt,Bt){if(xt.requirejs){tt=xt;return}xt.slice(-1)!=="/"&&(xt+="/"),tt=xt,Bt===null&&(Bt=xt.indexOf("http")===-1),$e=Bt,ee="web.nocache.js",te=!1;var rn=tt.split("/");rn.length>1&&(!Bt&&rn[rn.length-2]==="webSimple"?(ee="webSimple.nocache.js",te=!0):lt.indexOf(rn[rn.length-2])>=0&&(ee=rn[rn.length-2]+".nocache.js")),rn=xt.split("/"),Ee=rn[rn.length-3],Ee.substr(0,4)==="test"?Ee=Ee.substr(4,1)+"."+Ee.substr(5,1):(Ee.substr(0,3)==="war"||Ee.substr(0,4)==="beta")&&(Ee="5.0");var Hn=parseFloat(Ee);Hn!==NaN&&Hn<5&&xt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Hn+" is deprecated. Using version latest instead."),je("5.0",Bt))},ln=function(xt,Bt){window.console&&window.console.log&&(!Bt||typeof Bt.showLogging=="undefined"||Bt.showLogging&&Bt.showLogging!=="false")&&console.log(xt)};he.material_id!==void 0?Te(Ht):Ht();function Ht(){var xt=zt;it!==null?xt=it:parseFloat(xt)<5&&(xt="5.0"),je(xt,!1),be!==null&&Et(be,$e),We=!0}return gn},GGBAppletUtils=function(){"use strict";function gn(){return window.GGBT_wsf_edit!==void 0}function zt(We,it){it!=1?(We.style.transformOrigin="0% 0% 0px",We.style.webkitTransformOrigin="0% 0% 0px",We.style.transform="scale("+it+","+it+")",We.style.webkitTransform="scale("+it+","+it+")",We.style.maxWidth="initial",We.querySelector(".ggb_preview")!==null&&(We.querySelector(".ggb_preview").style.maxWidth="initial"),We.querySelectorAll(".ggb_preview img")[0]!==void 0&&(We.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),We.querySelectorAll(".ggb_preview img")[1]!==void 0&&(We.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(We.style.transform="none",We.style.webkitTransform="none")}function he(We,it,be,yt,vt,Je){var tt=null;if(Je!=null&&Je!="")for(var $e=We.parentNode;$e!=null;)if((" "+$e.className+" ").indexOf(" "+Je+" ")>-1){tt=$e;break}else $e=$e.parentNode;var Qe=0,Ee=0,ee=0,te=0,ue=0,ae=0,de=0;if(tt)Qe=tt.offsetWidth,Ee=Math.max(yt?tt.offsetWidth:0,tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Qe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),ee=Qe):(Qe=window.innerWidth,Ee=window.innerHeight,ee=window.innerWidth),We){var ve=We.getBoundingClientRect();ve.left>0&&ve.left<=Qe&&(vt===void 0||!vt)&&(document.dir==="rtl"?(ue=Qe-ve.width-ve.left,ae=ee<=480?10:30):(ae=ve.left,ue=ee<=480?10:30),te=ae+ue)}if(We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pe=We.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te=40,de=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te=0,de=40)}}return We&&((be===void 0||!be)&&it>0&&it+te<Qe?Qe=it:Qe-=te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(be===void 0||!be)&&(Ee-=de)),{width:Qe,height:Ee}}function pe(We,it,be,yt,vt){if(We.isScreenshoGenerator)return 1;var Je=yt!==void 0&&yt,tt=We.noScaleMargin!=null&&We.noScaleMargin,$e=function(Pe){return Pe&&Pe!=="false"},Qe=$e(We.autoHeight),Ee=he(it,We.width,be,Qe,Je&&window.GGBT_wsf_view||tt,vt),ee=parseInt(Ee.width),te=We.width,ue=We.height;if(te===void 0){var ae=it.querySelector(".appletParameters");ae&&(te=ae.offsetWidth,ue=ae.offsetHeight)}var de=ee/te,ve=Je?1:Ee.height/ue;return be!==void 0&&!be&&(de=Math.min(1,de),ve=Math.min(1,ve)),Math.min(de,ve)}function Ie(We,it,be){var yt=1,vt,Je=!1;if(We.hasOwnProperty("allowUpscale")&&(Je=We.allowUpscale),We.hasOwnProperty("scale")&&(yt=parseFloat(We.scale),(isNaN(yt)||yt===null||yt===0)&&(yt=1),yt>1&&(Je=!0)),it&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Je=!0),!(We.hasOwnProperty("disableAutoScale")&&We.disableAutoScale))vt=pe(We,it,Je,be,We.scaleContainerClass);else return yt;return Je&&(!We.hasOwnProperty("scale")||yt===1)?vt:Math.min(yt,vt)}function Ve(We){var it=Math.min(window.innerWidth,document.documentElement.clientWidth),be=Math.min(window.innerHeight,document.documentElement.clientHeight),yt=We.getBoundingClientRect(),vt=(it-yt.width)/2,Je=(be-yt.height)/2;Je<0&&(Je=0),We.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(vt<40?We.style.left="40px":We.style.left=vt+"px",We.style.top=Je+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Je<40?We.style.top="40px":We.style.top=Je+"px",We.style.left=vt+"px")}function st(We,it){var be=We.querySelector(".appletParameters");if(be){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(it.id!==be.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(We)}if(be.parentElement&&/fullscreen/.test(be.parentElement.className))return;var yt=Ie(it,We);gn()&&be.setAttribute("data-param-scale",yt);for(var vt=null,Je=0;Je<We.childNodes.length;Je++)if(We.childNodes[Je].className!==void 0&&We.childNodes[Je].className.match(/^applet_scaler/)){vt=We.childNodes[Je];break}if(vt!==null&&vt.querySelector(".noscale")!==null)return;var tt=it.id!==void 0?it.id:"ggbApplet",$e=window[tt];($e==null||!$e.recalculateEnvironments)&&vt!==null&&!vt.className.match(/fullscreen/)&&(vt.parentNode.style.transform="",!isNaN(yt)&&yt!==1?(vt.parentNode.style.width=it.width*yt+"px",vt.parentNode.style.height=it.height*yt+"px",zt(vt,yt)):(zt(vt,1),vt.parentNode.style.width=it.width+"px",vt.parentNode.style.height=it.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ve(We),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(be).parents(".content-added-content"))}}return{responsiveResize:st,isFlexibleWorksheetEditor:gn,positionCenter:Ve,getScale:Ie,scaleElement:zt}}();__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 gn=n.location.search;return gn.indexOf(J)!=-1||gn.indexOf(K)!=-1}function q(gn,zt){}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(gn){var zt=s[L].bindings;s[L].bindings=function(){for(var he=zt?zt():{},pe=gn[webModule.__softPermutationId],Ie=O;Ie<pe.length;Ie++){var Ve=pe[Ie];he[Ve[O]]=Ve[P]}return he}};var t;function u(){return v(),t}function v(){if(!t){var gn=o.createElement(Q);if(gn.id=L,gn.style.cssText=R+S,gn.tabIndex=-1,o.body.appendChild(gn),t=gn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var zt=document.compatMode==U?V:W;t.write(zt+X),t.close()}}}function w(gn){function zt(pe){function Ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ve=Ie();if(Ve){pe();return}function st(){if(!Ve){if(!Ie())return;Ve=!0,pe(),o.removeEventListener&&o.removeEventListener(Z,st,!1),We&&clearInterval(We)}}o.addEventListener&&o.addEventListener(Z,st,!1);var We=setInterval(function(){st()},$)}function he(pe){var Ie=u(),Ve=Ie.body,st=Ie.createElement(_);st.language=ab,st.crossOrigin=W,st.src=pe,webModule.__errFn&&(st.onerror=function(){webModule.__errFn(L,new Error(bb+pe))}),Ve.appendChild(st)}zt(function(){he(gn)})}webModule.__startLoadingFragment=function(gn){return C(gn)},webModule.__installRunAsyncCode=function(gn){var zt=u(),he=zt.body,pe=zt.createElement(_);pe.language=ab,pe.text=gn,he.appendChild(pe),he.removeChild(pe)};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(gn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(gn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(gn){var zt=c[gn];return zt==null?null:zt},r=d,webModule.__errFn=e}function B(){function gn(We){var it=We.lastIndexOf(rb);it==-1&&(it=We.length);var be=We.indexOf(sb);be==-1&&(be=We.length);var yt=We.lastIndexOf(tb,Math.min(be,it));return yt>=O?We.substring(O,yt+P):W}function zt(We){if(!We.match(/^\w+:\/\//)){var it=o.createElement(ub);it.src=We+vb,We=gn(it.src)}return We}function he(){var We=__gwt_getMetaProperty(wb);return We!=null?We:W}function pe(){for(var We=o.getElementsByTagName(_),it=O;it<We.length;++it)if(We[it].src.indexOf(xb)!=-1)return gn(We[it].src);return W}function Ie(){var We=o.getElementsByTagName(yb);return We.length>O?We[We.length-P].href:W}function Ve(){var We=o.location;return We.href==We.protocol+zb+We.host+We.pathname+We.search+We.hash}var st=he();return st==W&&(st=pe()),st==W&&(st=Ie()),st==W&&Ve()&&(st=gn(o.location.href)),st=zt(st),st}function C(gn){return gn.match(/^\//)||gn.match(/^[a-zA-Z]+:\/\//)?gn:webModule.__moduleBase+gn}function D(){var gn=[],zt=O,he=[],pe=[];function Ie(We){var it=pe[We](),be=he[We];if(it in be)return it;var yt=[];for(var vt in be)yt[be[vt]]=vt;throw r&&r(We,yt,it),null}if(__gwt_isKnownPropertyValue=function(We,it){return it in he[We]},webModule.__getPropMap=function(){var We={};for(var it in he)he.hasOwnProperty(it)&&(We[it]=Ie(it));return We},webModule.__computePropValue=Ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ve;try{Ve=Cb;var st=Ve.indexOf(Db);st!=-1&&(zt=parseInt(Ve.substring(st+P),$),Ve=Ve.substring(O,st))}catch(We){}return webModule.__softPermutationId=zt,C(Ve+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(gn,zt,he){"use strict";he.d(zt,{Ax:function(){return st},Ds:function(){return We},KI:function(){return be},SI:function(){return Ve},f1:function(){return Ie}});var pe=he(10148);function Ie(yt){let vt=!0;if(yt.length>0){for(let Je=0;Je<yt.length;Je++)if(yt[Je].compile_success==0||!yt[Je].compile_success){vt=!1;break}}else vt=!1;return vt}function Ve(yt,vt=""){let Je=[];for(let tt=0;tt<yt.length;tt++){let $e=yt[tt],Qe=vt?`${vt}/${$e.name}`:`${$e.name}`;Je.push({title:$e.name,type:$e.type,isLeaf:$e.type!=="tree",key:Qe})}return Je}function st(yt,vt,Je){for(let tt=0;tt<yt.length;tt++){let $e=yt[tt];if($e.key===vt){$e.children=Je;break}$e.children&&st($e.children,vt,Je)}return yt}function We(yt,vt,Je){let tt;return function(){let $e=this,Qe=arguments,Ee=function(){tt=null,Je||yt.apply($e,Qe)},ee=Je&&!tt;clearTimeout(tt),tt=setTimeout(Ee,vt),ee&&yt.apply($e,Qe)}}const it=!0,be=pe.Z.API_SERVER},38333:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Qe}});var pe=he(59301),Ie=he(8591),Ve=he(92832),st={codeBox:"codeBox___WpkVl"},We=he(92310),it=he.n(We),be=Object.defineProperty,yt=(Ee,ee,te)=>ee in Ee?be(Ee,ee,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ee[ee]=te,vt=(Ee,ee,te)=>yt(Ee,typeof ee!="symbol"?ee+"":ee,te),Je=(Ee,ee,te)=>new Promise((ue,ae)=>{var de=Ae=>{try{Pe(te.next(Ae))}catch(xe){ae(xe)}},ve=Ae=>{try{Pe(te.throw(Ae))}catch(xe){ae(xe)}},Pe=Ae=>Ae.done?ue(Ae.value):Promise.resolve(Ae.value).then(de,ve);Pe((te=te.apply(Ee,ee)).next())});class tt extends pe.Component{constructor(ee){super(ee),vt(this,"canvas"),vt(this,"randomNum",(te,ue)=>Math.floor(Math.random()*(ue-te)+te)),vt(this,"drawPic",()=>{this.randomCode()}),vt(this,"reloadPic",()=>{this.drawPic()}),vt(this,"changeCode",te=>{console.log(te.target.value,222),this.setState({value:te.target.value,showError:!1})}),vt(this,"onVerify",()=>{let te;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(te=!0,Ie.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(te=!0,Ie.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(te=!1),this.setState({showError:te}),te}),this.canvas=pe.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(ee,te){const ue=this.randomNum(ee,te),ae=this.randomNum(ee,te),de=this.randomNum(ee,te);return`rgb(${ue}, ${ae}, ${de})`}drawText(ee,te,ue){ee.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const ae=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);ee.font=ae+"px SimHei";const de=10,ve=(this.state.contentWidth-40)/(this.state.code.length-1);let Pe=de;ue>0&&(Pe=de+ue*ve);let Ae=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);ae>40&&(Ae=40);const xe=this.randomNum(-10,10);ee.translate(Pe,Ae),ee.rotate(xe*Math.PI/180),ee.fillText(te,0,0),ee.rotate(-xe*Math.PI/180),ee.translate(-Pe,-Ae)}drawLine(ee){for(let te=0;te<1;te++)ee.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),ee.beginPath(),ee.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),ee.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),ee.stroke()}drawDot(ee){for(let te=0;te<100;te++)ee.fillStyle=this.randomColor(0,255),ee.beginPath(),ee.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),ee.fill()}randomCode(){let ee="";const te="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let ue=0;ue<this.state.codeLength;ue++){const ae=Math.floor(Math.random()*57);ee+=te[ae]}this.setState({code:ee},()=>{const ae=this.canvas.current.getContext("2d");ae.textBaseline="bottom",ae.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),ae.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let de=0;de<this.state.code.length;de++)this.drawText(ae,this.state.code[de],de);this.drawLine(ae),this.drawDot(ae)})}render(){const{className:ee,width:te=300}=this.props;return pe.createElement("div",{className:it()(st.codeBox,ee),style:{width:te}},pe.createElement("aside",null,pe.createElement(Ve.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),pe.createElement("div",null,pe.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),pe.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const $e=(Ee,ee)=>{let te;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,ee),React.createElement(tt,{ref:ue=>te=ue})),onOk:()=>Je(void 0,null,function*(){if(te.onVerify())return Promise.reject();Ee()})})};var Qe=tt},72194:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return it}});var pe=he(60324),Ie={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Ve=he(32637),st=he(59301),it=({type:be,style:yt})=>{const vt=st.createElement("div",{className:Ie.wrap,onClick:Je=>{Je.preventDefault(),Je.stopPropagation()}},st.createElement("p",null,be==="shixun"||be==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",st.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",be==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),st.createElement("div",{className:Ie.contact},st.createElement("div",{className:Ie.img},st.createElement("img",{src:Ve,width:"124px",height:"124px"})),st.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return st.createElement(pe.Z,{content:vt},st.createElement("span",{className:Ie.text,style:yt},"\u9AD8\u6D88\u8017"))}},65983:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return nt}});var pe=he(59301),Ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ve=he(92310),st=he.n(Ve),We=he(71418);var it=function(Oe,we){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,ke){ye.__proto__=ke}||function(ye,ke){for(var Ge in ke)Object.prototype.hasOwnProperty.call(ke,Ge)&&(ye[Ge]=ke[Ge])})(Oe,we)};function be(Oe,we){function ye(){this.constructor=Oe}it(Oe,we),Oe.prototype=we===null?Object.create(we):(ye.prototype=we.prototype,new ye)}function yt(Oe,we,ye,ke){return new(ye||(ye=Promise))(function(Ge,Fe){function pt(wt){try{en(ke.next(wt))}catch(Xt){Fe(Xt)}}function tn(wt){try{en(ke.throw(wt))}catch(Xt){Fe(Xt)}}function en(wt){var Xt;wt.done?Ge(wt.value):(Xt=wt.value,Xt instanceof ye?Xt:new ye(function(Pn){Pn(Xt)})).then(pt,tn)}en((ke=ke.apply(Oe,we||[])).next())})}function vt(Oe,we){var ye,ke,Ge,Fe,pt={label:0,sent:function(){if(1&Ge[0])throw Ge[1];return Ge[1]},trys:[],ops:[]};return Fe={next:tn(0),throw:tn(1),return:tn(2)},typeof Symbol=="function"&&(Fe[Symbol.iterator]=function(){return this}),Fe;function tn(en){return function(wt){return function(Xt){if(ye)throw new TypeError("Generator is already executing.");for(;pt;)try{if(ye=1,ke&&(Ge=2&Xt[0]?ke.return:Xt[0]?ke.throw||((Ge=ke.return)&&Ge.call(ke),0):ke.next)&&!(Ge=Ge.call(ke,Xt[1])).done)return Ge;switch(ke=0,Ge&&(Xt=[2&Xt[0],Ge.value]),Xt[0]){case 0:case 1:Ge=Xt;break;case 4:return pt.label++,{value:Xt[1],done:!1};case 5:pt.label++,ke=Xt[1],Xt=[0];continue;case 7:Xt=pt.ops.pop(),pt.trys.pop();continue;default:if(Ge=pt.trys,!((Ge=Ge.length>0&&Ge[Ge.length-1])||Xt[0]!==6&&Xt[0]!==2)){pt=0;continue}if(Xt[0]===3&&(!Ge||Xt[1]>Ge[0]&&Xt[1]<Ge[3])){pt.label=Xt[1];break}if(Xt[0]===6&&pt.label<Ge[1]){pt.label=Ge[1],Ge=Xt;break}if(Ge&&pt.label<Ge[2]){pt.label=Ge[2],pt.ops.push(Xt);break}Ge[2]&&pt.ops.pop(),pt.trys.pop();continue}Xt=we.call(Oe,pt)}catch(Pn){Xt=[6,Pn],ke=0}finally{ye=Ge=0}if(5&Xt[0])throw Xt[1];return{value:Xt[0]?Xt[1]:void 0,done:!0}}([en,wt])}}}function Je(){for(var Oe=0,we=0,ye=arguments.length;we<ye;we++)Oe+=arguments[we].length;var ke=Array(Oe),Ge=0;for(we=0;we<ye;we++)for(var Fe=arguments[we],pt=0,tn=Fe.length;pt<tn;pt++,Ge++)ke[Ge]=Fe[pt];return ke}var tt=function(){function Oe(){}return Oe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Oe.setAttributes=function(we,ye){for(var ke=0,Ge=ye;ke<Ge.length;ke++){var Fe=Ge[ke],pt=Fe[0],tn=Fe[1];we.setAttribute(pt,tn)}},Oe.createRect=function(we,ye,ke){var Ge=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ge.setAttribute("width",we.toString()),Ge.setAttribute("height",ye.toString()),ke&&Oe.setAttributes(Ge,ke),Ge},Oe.createLine=function(we,ye,ke,Ge,Fe){var pt=document.createElementNS("http://www.w3.org/2000/svg","line");return pt.setAttribute("x1",we.toString()),pt.setAttribute("y1",ye.toString()),pt.setAttribute("x2",ke.toString()),pt.setAttribute("y2",Ge.toString()),Fe&&Oe.setAttributes(pt,Fe),pt},Oe.createPolygon=function(we,ye){var ke=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ke.setAttribute("points",we),ye&&Oe.setAttributes(ke,ye),ke},Oe.createCircle=function(we,ye){var ke=document.createElementNS("http://www.w3.org/2000/svg","circle");return ke.setAttribute("cx",(we/2).toString()),ke.setAttribute("cy",(we/2).toString()),ke.setAttribute("r",we.toString()),ye&&Oe.setAttributes(ke,ye),ke},Oe.createEllipse=function(we,ye,ke){var Ge=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ge.setAttribute("cx",(we/2).toString()),Ge.setAttribute("cy",(ye/2).toString()),Ge.setAttribute("rx",(we/2).toString()),Ge.setAttribute("ry",(ye/2).toString()),ke&&Oe.setAttributes(Ge,ke),Ge},Oe.createGroup=function(we){var ye=document.createElementNS("http://www.w3.org/2000/svg","g");return we&&Oe.setAttributes(ye,we),ye},Oe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Oe.createMarker=function(we,ye,ke,Ge,Fe,pt,tn){var en=document.createElementNS("http://www.w3.org/2000/svg","marker");return Oe.setAttributes(en,[["id",we],["orient",ye],["markerWidth",ke.toString()],["markerHeight",Ge.toString()],["refX",Fe.toString()],["refY",pt.toString()]]),en.appendChild(tn),en},Oe.createText=function(we){var ye=document.createElementNS("http://www.w3.org/2000/svg","text");return ye.setAttribute("x","0"),ye.setAttribute("y","0"),we&&Oe.setAttributes(ye,we),ye},Oe.createTSpan=function(we,ye){var ke=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ke.textContent=we,ye&&Oe.setAttributes(ke,ye),ke},Oe.createImage=function(we){var ye=document.createElementNS("http://www.w3.org/2000/svg","image");return we&&Oe.setAttributes(ye,we),ye},Oe.createPoint=function(we,ye){var ke=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ke.x=we,ke.y=ye,ke},Oe.createPath=function(we,ye){var ke=document.createElementNS("http://www.w3.org/2000/svg","path");return ke.setAttribute("d",we),ye&&Oe.setAttributes(ke,ye),ke},Oe}(),$e=function(){function Oe(){}return Oe.addKey=function(we){Oe.key=we},Object.defineProperty(Oe,"isLicensed",{get:function(){return!!Oe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Oe.key)},enumerable:!1,configurable:!0}),Oe}(),Qe=function(){function Oe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Oe.prototype.rasterize=function(we,ye,ke){var Ge=this;return new Promise(function(Fe){var pt=ke!==void 0?ke:document.createElement("canvas");we===null&&(Ge.markersOnly=!0,Ge.naturalSize=!1);var tn=document.createElementNS("http://www.w3.org/2000/svg","svg");tn.setAttribute("xmlns","http://www.w3.org/2000/svg"),tn.setAttribute("width",ye.width.baseVal.valueAsString),tn.setAttribute("height",ye.height.baseVal.valueAsString),tn.setAttribute("viewBox","0 0 "+ye.viewBox.baseVal.width.toString()+" "+ye.viewBox.baseVal.height.toString()),tn.innerHTML=ye.innerHTML,Ge.naturalSize===!0?(tn.width.baseVal.value=we.naturalWidth,tn.height.baseVal.value=we.naturalHeight):Ge.width!==void 0&&Ge.height!==void 0&&(tn.width.baseVal.value=Ge.width,tn.height.baseVal.value=Ge.height),pt.width=tn.width.baseVal.value,pt.height=tn.height.baseVal.value;var en=tn.outerHTML,wt=pt.getContext("2d");Ge.markersOnly!==!0&&wt.drawImage(we,0,0,pt.width,pt.height);var Xt=window.URL,Pn=new Image(pt.width,pt.height);Pn.setAttribute("crossOrigin","anonymous");var In=new Blob([en],{type:"image/svg+xml"}),$n=Xt.createObjectURL(In);Pn.onload=function(){wt.drawImage(Pn,0,0),Xt.revokeObjectURL($n);var Pi=pt.toDataURL(Ge.imageType,Ge.imageQuality);Fe(Pi)},Pn.src=$n})},Oe}(),Ee=function(){},ee=function(){function Oe(we){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+we+"_"}return Object.defineProperty(Oe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.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(Oe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Oe.prototype.addClass=function(we){return this.styleSheet===void 0&&this.addStyleSheet(),we.name=""+this.classNamePrefix+we.localName,this.classes.push(we),this.styleSheet.sheet.insertRule("."+we.name+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length),we},Oe.prototype.addRule=function(we){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(we),this.styleSheet.sheet.insertRule(we.selector+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length)},Oe.prototype.addStyleSheet=function(){var we;this.styleSheet=document.createElement("style"),((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).appendChild(this.styleSheet),this.addRule(new te("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new te("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new te("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ue("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ue("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Oe.prototype.removeStyleSheet=function(){var we;this.styleSheet&&(((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Oe}(),te=function(Oe,we){this.selector=Oe,this.style=we},ue=function(Oe,we){this.localName=Oe,this.style=we},ae=function(){function Oe(we,ye,ke,Ge,Fe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=we,this.displayMode=ye,this.markerItems=ke,this.uiStyleSettings=Ge,this.styles=Fe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Oe.prototype.show=function(we){var ye=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ke=document.createElement("div");ke.className=this.toolbarBlockStyleClass.name,ke.style.whiteSpace="nowrap",this.uiContainer.appendChild(ke),this.addActionButton(ke,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ke,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ke,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ke,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ke,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ke,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ke,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ke,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Fe){var pt=document.createElement("div");pt.className=""+ye.toolbarButtonStyleClass.name,pt.setAttribute("data-type-name",Fe.typeName),pt.innerHTML=Fe.icon,pt.addEventListener("click",function(){ye.markerToolbarButtonClicked(pt,Fe)}),ye.buttons.push(pt),ye.markerButtons.push(pt)}),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 Ge=document.createElement("div");Ge.className=this.toolbarBlockStyleClass.name,Ge.style.whiteSpace="nowrap",Ge.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ge),this.addActionButton(Ge,'<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(Ge,'<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()},Oe.prototype.addButtonClickListener=function(we){this.buttonClickListeners.push(we)},Oe.prototype.removeButtonClickListener=function(we){this.buttonClickListeners.indexOf(we)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(we),1)},Oe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Oe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var we=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ye=0;ye<this.markerButtons.length;ye++)ye<we||ye===we&&this.markerButtons.length-1===we?this.markerButtonBlock.appendChild(this.markerButtons[ye]):(ye===we&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ye]))}},Oe.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")},Oe.prototype.resetButtonStyles=function(){var we=this;this.buttons.forEach(function(ye){ye.className=ye.className.replace(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name,"").trim(),ye.className=ye.className.replace(we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:we.toolbarActiveButtonStyleColorsClass.name,"").trim(),ye.className+=" "+(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name)})},Oe.prototype.addActionButton=function(we,ye,ke){var Ge=this,Fe=document.createElement("div");switch(Fe.className=""+this.toolbarButtonStyleClass.name,Fe.innerHTML=ye,Fe.setAttribute("data-action",ke),Fe.addEventListener("click",function(){Ge.actionToolbarButtonClicked(Fe,ke)}),ke){case"select":Fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Fe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Fe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Fe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Fe.style.fill=this.uiStyleSettings.closeButtonColor}we.appendChild(Fe),this.buttons.push(Fe)},Oe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ue("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 ue("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ue("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ue("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 ue("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var we=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ue("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
|
|
|
padding: `+we+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ue("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ue("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new te("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new te("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Oe.prototype.markerToolbarButtonClicked=function(we,ye){this.setActiveButton(we),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ke){return ke("marker",ye)}),this.markerButtonOverflowBlock.style.display="none"},Oe.prototype.actionToolbarButtonClicked=function(we,ye){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ke){return ke("action",ye)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Oe.prototype.setActiveButton=function(we){this.resetButtonStyles(),we.className=we.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),we.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Oe.prototype.setActiveMarkerButton=function(we){var ye=this.markerButtons.find(function(ke){return ke.getAttribute("data-type-name")===we});ye&&this.setActiveButton(ye)},Oe.prototype.setCurrentMarker=function(we){var ye=this;this.currentMarker=we,this.buttons.filter(function(ke){return/delete|notes/.test(ke.getAttribute("data-action"))}).forEach(function(ke){ye.currentMarker===void 0?(ke.style.fillOpacity="0.4",ke.style.pointerEvents="none"):(ke.style.fillOpacity="1",ke.style.pointerEvents="all")})},Oe}(),de=function(){function Oe(we,ye,ke,Ge){this.panels=[],this.panelButtons=[],this.markerjsContainer=we,this.displayMode=ye,this.uiStyleSettings=ke,this.styles=Ge,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Oe.prototype.addStyles=function(){var we;this.toolboxStyleClass=this.styles.addClass(new ue("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 ue("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ye=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ue("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ue("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ue("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 ue("toolbox-panel-row_colors",`
|
|
|
background-color: `+((we=this.uiStyleSettings.toolboxBackgroundColor)!==null&&we!==void 0?we:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ue("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ye)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ye)+`px;
|
|
|
padding: `+ye+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ue("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ue("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new te("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new te("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Oe.prototype.show=function(we){var ye;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ye=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ye!==void 0?ye:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Oe.prototype.setPanelButtons=function(we){var ye,ke,Ge=this;this.panels=we,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ye=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ye!==void 0?ye:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ke=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ke!==void 0?ke:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Fe){var pt;Fe.uiStyleSettings=Ge.uiStyleSettings;var tn=document.createElement("div");tn.className=Ge.toolboxButtonStyleClass.name+" "+((pt=Ge.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pt!==void 0?pt:Ge.toolboxButtonStyleColorsClass.name),tn.innerHTML=Fe.icon,tn.title=Fe.title,tn.addEventListener("click",function(){Ge.panelButtonClick(Fe)}),Ge.panelButtons.push(tn),Ge.buttonRow.appendChild(tn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Oe.prototype.panelButtonClick=function(we){var ye=this,ke=-1;if(we!==this.activePanel){ke=this.panels.indexOf(we),this.panelRow.innerHTML="";var Ge=we.getUi();Ge.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ge),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=we}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ye.displayMode==="inline"?ye.panelRow.style.display="none":ye.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Fe,pt){var tn,en;Fe.className=ye.toolboxButtonStyleClass.name+" "+(pt===ke?""+((tn=ye.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&tn!==void 0?tn:ye.toolboxActiveButtonStyleColorsClass.name):""+((en=ye.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&en!==void 0?en:ye.toolboxButtonStyleColorsClass.name))})},Oe}(),ve=function(Oe,we){this.title=Oe,this.icon=we},Pe=function(Oe){function we(ye,ke,Ge,Fe){var pt=Oe.call(this,ye,Fe||'<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 pt.colors=[],pt.addTransparent=!1,pt.colorBoxes=[],pt.colors=ke,pt.currentColor=Ge,pt.setCurrentColor=pt.setCurrentColor.bind(pt),pt.getColorBox=pt.getColorBox.bind(pt),pt}return be(we,Oe),we.prototype.getUi=function(){var ye=this,ke=document.createElement("div");return ke.style.overflow="hidden",ke.style.whiteSpace="nowrap",this.colors.forEach(function(Ge){var Fe=ye.getColorBox(Ge);ke.appendChild(Fe),ye.colorBoxes.push(Fe)}),ke},we.prototype.getColorBox=function(ye){var ke=this,Ge=this.uiStyleSettings.toolbarHeight/4,Fe=this.uiStyleSettings.toolbarHeight-Ge,pt=document.createElement("div");pt.style.display="inline-block",pt.style.boxSizing="content-box",pt.style.width=Fe-2+"px",pt.style.height=Fe-2+"px",pt.style.padding="1px",pt.style.marginRight="2px",pt.style.marginBottom="2px",pt.style.borderWidth="2px",pt.style.borderStyle="solid",pt.style.borderRadius=(Fe+2)/2+"px",pt.style.borderColor=ye===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pt.addEventListener("click",function(){ke.setCurrentColor(ye,pt)});var tn=document.createElement("div");return tn.style.display="inline-block",tn.style.width=Fe-2+"px",tn.style.height=Fe-2+"px",tn.style.backgroundColor=ye,tn.style.borderRadius=Fe/2+"px",ye==="transparent"&&(tn.style.fill=this.uiStyleSettings.toolboxAccentColor,tn.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>`),pt.appendChild(tn),pt},we.prototype.setCurrentColor=function(ye,ke){var Ge=this;this.currentColor=ye,this.colorBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===ke?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ye)},we}(ve),Ae=function(){function Oe(we,ye,ke){this._state="new",this._isSelected=!1,this._container=we,this._overlayContainer=ye,this.globalSettings=ke,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Oe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Oe.prototype.ownsTarget=function(we){return!1},Object.defineProperty(Oe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Oe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Oe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Oe.prototype.pointerDown=function(we,ye){},Oe.prototype.dblClick=function(we,ye){},Oe.prototype.manipulate=function(we){},Oe.prototype.pointerUp=function(we){this.stateChanged()},Oe.prototype.dispose=function(){},Oe.prototype.addMarkerVisualToContainer=function(we){this.container.childNodes.length>0?this.container.insertBefore(we,this.container.childNodes[0]):this.container.appendChild(we)},Oe.prototype.getState=function(){return{typeName:Oe.typeName,state:this.state,notes:this.notes}},Oe.prototype.restoreState=function(we){this._state=we.state,this.notes=we.notes},Oe.prototype.scale=function(we,ye){},Oe.prototype.colorChanged=function(we){this.onColorChanged&&this.onColorChanged(we),this.stateChanged()},Oe.prototype.fillColorChanged=function(we){this.onFillColorChanged&&this.onFillColorChanged(we),this.stateChanged()},Oe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var we=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),we.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(we)&&this.onStateChanged(this)}},Oe.typeName="MarkerBase",Oe}(),xe=function(){function Oe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Oe.prototype.findGripByVisual=function(we){return this.topLeft.ownsTarget(we)?this.topLeft:this.topCenter.ownsTarget(we)?this.topCenter:this.topRight.ownsTarget(we)?this.topRight:this.centerLeft.ownsTarget(we)?this.centerLeft:this.centerRight.ownsTarget(we)?this.centerRight:this.bottomLeft.ownsTarget(we)?this.bottomLeft:this.bottomCenter.ownsTarget(we)?this.bottomCenter:this.bottomRight.ownsTarget(we)?this.bottomRight:void 0},Oe}(),Le=function(){function Oe(){this.GRIP_SIZE=10,this.visual=tt.createGroup(),this.visual.appendChild(tt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(tt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Oe.prototype.ownsTarget=function(we){return we===this.visual||we===this.visual.childNodes[0]||we===this.visual.childNodes[1]},Oe}(),Te=function(){function Oe(){}return Oe.toITransformMatrix=function(we){return{a:we.a,b:we.b,c:we.c,d:we.d,e:we.e,f:we.f}},Oe.toSVGMatrix=function(we,ye){return we.a=ye.a,we.b=ye.b,we.c=ye.c,we.d=ye.d,we.e=ye.e,we.f=ye.f,we},Oe}(),He=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.left=0,Fe.top=0,Fe.width=0,Fe.height=0,Fe.defaultSize={x:50,y:20},Fe.offsetX=0,Fe.offsetY=0,Fe.rotationAngle=0,Fe.CB_DISTANCE=10,Fe._suppressMarkerCreateEvent=!1,Fe.container.transform.baseVal.appendItem(tt.createTransform()),Fe.setupControlBox(),Fe}return be(we,Oe),Object.defineProperty(we.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"visual",{get:function(){return this._visual},set:function(ye){this._visual=ye;var ke=tt.createTransform();this._visual.transform.baseVal.appendItem(ke)},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(ye){return!!Oe.prototype.ownsTarget.call(this,ye)||!!(this.controlGrips.findGripByVisual(ye)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ye))},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.state==="new"&&(this.left=ye.x,this.top=ye.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ge=this.unrotatePoint(ye);if(this.manipulationStartX=Ge.x,this.manipulationStartY=Ge.y,this.offsetX=Ge.x-this.left,this.offsetY=Ge.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ke),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ke)){this.activeGrip=this.rotatorGrip;var Fe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Fe.x-this.width/2,this.top=Fe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var pt=this.container.transform.baseVal.getItem(0);pt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},we.prototype.pointerUp=function(ye){var ke=this.state;Oe.prototype.pointerUp.call(this,ye),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ye),this._state="select",ke==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},we.prototype.moveVisual=function(ye){this.visual.style.transform="translate("+ye.x+"px, "+ye.y+"px)"},we.prototype.manipulate=function(ye){var ke=this.unrotatePoint(ye);this.state==="creating"?this.resize(ye):this.state==="move"?(this.left=this.manipulationStartLeft+(ke.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ke.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ke):this.state==="rotate"&&this.rotate(ye)},we.prototype.resize=function(ye){var ke=this.manipulationStartLeft,Ge=this.manipulationStartWidth,Fe=this.manipulationStartTop,pt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ke=this.manipulationStartLeft+ye.x-this.manipulationStartX,Ge=this.manipulationStartWidth+this.manipulationStartLeft-ke;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ge=this.manipulationStartWidth+ye.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Fe=this.manipulationStartTop+ye.y-this.manipulationStartY,pt=this.manipulationStartHeight+this.manipulationStartTop-Fe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pt=this.manipulationStartHeight+ye.y-this.manipulationStartY}Ge>=0?(this.left=ke,this.width=Ge):(this.left=ke+Ge,this.width=-Ge),pt>=0?(this.top=Fe,this.height=pt):(this.top=Fe+pt,this.height=-pt),this.setSize()},we.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},we.prototype.rotate=function(ye){if(Math.abs(ye.x-this.centerX)>.1){var ke=Math.sign(ye.x-this.centerX);this.rotationAngle=180*Math.atan((ye.y-this.centerY)/(ye.x-this.centerX))/Math.PI+90*ke,this.applyRotation()}},we.prototype.applyRotation=function(){var ye=this.container.transform.baseVal.getItem(0);ye.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ye,0)},we.prototype.rotatePoint=function(ye){if(this.rotationAngle===0)return ye;var ke=this.container.getCTM(),Ge=tt.createPoint(ye.x,ye.y);return{x:(Ge=Ge.matrixTransform(ke)).x,y:Ge.y}},we.prototype.unrotatePoint=function(ye){if(this.rotationAngle===0)return ye;var ke=this.container.getCTM();ke=ke.inverse();var Ge=tt.createPoint(ye.x,ye.y);return{x:(Ge=Ge.matrixTransform(ke)).x,y:Ge.y}},we.prototype.select=function(){Oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){Oe.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=tt.createGroup();var ye=tt.createTransform();ye.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ye),this.container.appendChild(this.controlBox),this.controlRect=tt.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=tt.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 xe,this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){var ye=this.controlBox.transform.baseVal.getItem(0);ye.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ye,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()},we.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()},we.prototype.createGrip=function(){var ye=new Le;return ye.visual.transform.baseVal.appendItem(tt.createTransform()),this.controlBox.appendChild(ye.visual),ye},we.prototype.positionGrips=function(){var ye=this.controlGrips.topLeft.GRIP_SIZE,ke=-ye/2,Ge=ke,Fe=(this.width+this.CB_DISTANCE)/2-ye/2,pt=(this.height+this.CB_DISTANCE)/2-ye/2,tn=this.height+this.CB_DISTANCE-ye/2,en=this.width+this.CB_DISTANCE-ye/2;this.positionGrip(this.controlGrips.topLeft.visual,ke,Ge),this.positionGrip(this.controlGrips.topCenter.visual,Fe,Ge),this.positionGrip(this.controlGrips.topRight.visual,en,Ge),this.positionGrip(this.controlGrips.centerLeft.visual,ke,pt),this.positionGrip(this.controlGrips.centerRight.visual,en,pt),this.positionGrip(this.controlGrips.bottomLeft.visual,ke,tn),this.positionGrip(this.controlGrips.bottomCenter.visual,Fe,tn),this.positionGrip(this.controlGrips.bottomRight.visual,en,tn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Fe,Ge-3*this.CB_DISTANCE)},we.prototype.positionGrip=function(ye,ke,Ge){var Fe=ye.transform.baseVal.getItem(0);Fe.setTranslate(ke,Ge),ye.transform.baseVal.replaceItem(Fe,0)},we.prototype.hideControlBox=function(){this.controlBox.style.display="none"},we.prototype.showControlBox=function(){this.controlBox.style.display=""},we.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Te.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Te.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Oe.prototype.getState.call(this))},we.prototype.restoreState=function(ye){Oe.prototype.restoreState.call(this,ye);var ke=ye;this.left=ke.left,this.top=ke.top,this.width=ke.width,this.height=ke.height,this.rotationAngle=ke.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Te.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ke.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Te.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ke.containerTransformMatrix))},we.prototype.scale=function(ye,ke){Oe.prototype.scale.call(this,ye,ke);var Ge=this.rotatePoint({x:this.left,y:this.top}),Fe=this.unrotatePoint({x:Ge.x*ye,y:Ge.y*ke});this.left=Fe.x,this.top=Fe.y,this.width=this.width*ye,this.height=this.height*ke,this.adjustControlBox()},we}(Ae),ze=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.opacity=1,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){return!(!Oe.prototype.ownsTarget.call(this,ye)&&ye!==this.visual)},we.prototype.createVisual=function(){this.visual=tt.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)},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},we.prototype.manipulate=function(ye){Oe.prototype.manipulate.call(this,ye)},we.prototype.resize=function(ye){Oe.prototype.resize.call(this,ye),this.setSize()},we.prototype.setSize=function(){Oe.prototype.setSize.call(this),tt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(ye){Oe.prototype.pointerUp.call(this,ye),this.setSize()},we.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.visual&&tt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ye),this.stateChanged()},we.prototype.setFillColor=function(ye){this.fillColor=ye,this.visual&&tt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},we.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.visual&&tt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.visual&&tt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Oe.prototype.getState.call(this))},we.prototype.restoreState=function(ye){var ke=ye;this.fillColor=ke.fillColor,this.strokeColor=ke.strokeColor,this.strokeWidth=ke.strokeWidth,this.strokeDasharray=ke.strokeDasharray,this.opacity=ke.opacity,this.createVisual(),Oe.prototype.restoreState.call(this,ye),this.setSize()},we.prototype.scale=function(ye,ke){Oe.prototype.scale.call(this,ye,ke),this.setSize()},we.title="Rectangle marker",we}(He),Ke=function(Oe){function we(ye,ke,Ge,Fe){var pt=Oe.call(this,ye,Fe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return pt.widths=[],pt.widthBoxes=[],pt.widths=ke,pt.currentWidth=Ge,pt.setCurrentWidth=pt.setCurrentWidth.bind(pt),pt}return be(we,Oe),we.prototype.getUi=function(){var ye=this,ke=document.createElement("div");return ke.style.display="flex",ke.style.overflow="hidden",ke.style.flexGrow="2",this.widths.forEach(function(Ge){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.flexGrow="2",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderColor=Ge===ye.currentWidth?ye.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){ye.setCurrentWidth(Ge,Fe)}),ke.appendChild(Fe);var pt=document.createElement("div");pt.innerText=Ge.toString(),pt.style.marginRight="5px",Fe.appendChild(pt);var tn=document.createElement("div");tn.style.minHeight="20px",tn.style.flexGrow="2",tn.style.display="flex",tn.style.alignItems="center";var en=document.createElement("hr");en.style.minWidth="20px",en.style.border="0px",en.style.borderTop=Ge+"px solid "+ye.uiStyleSettings.toolboxColor,en.style.flexGrow="2",tn.appendChild(en),Fe.appendChild(tn),ye.widthBoxes.push(Fe)}),ke},we.prototype.setCurrentWidth=function(ye,ke){var Ge=this;this.currentWidth=ye,this.widthBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===ke?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},we}(ve),Ze=function(Oe){function we(ye,ke,Ge,Fe){var pt=Oe.call(this,ye,Fe||'<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 pt.styles=[],pt.styleBoxes=[],pt.styles=ke,pt.currentStyle=Ge,pt.setCurrentStyle=pt.setCurrentStyle.bind(pt),pt}return be(we,Oe),we.prototype.getUi=function(){var ye=this,ke=document.createElement("div");return ke.style.display="flex",ke.style.overflow="hidden",ke.style.flexGrow="2",this.styles.forEach(function(Ge){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.overflow="hidden",Fe.style.maxWidth=100/ye.styles.length-5+"%",Fe.style.borderColor=Ge===ye.currentStyle?ye.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){ye.setCurrentStyle(Ge,Fe)}),ke.appendChild(Fe);var pt=document.createElement("div");pt.style.minHeight="20px",pt.style.flexGrow="2",pt.style.overflow="hidden";var tn=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ye.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ge!==""?'stroke-dasharray="'+Ge+'"':"")+` />
|
|
|
</svg>`;pt.innerHTML=tn,Fe.appendChild(pt),ye.styleBoxes.push(Fe)}),ke},we.prototype.setCurrentStyle=function(ye,ke){var Ge=this;this.currentStyle=ye,this.styleBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===ke?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},we}(ve),Mt=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.strokeColor=Ge.defaultColor,Fe.strokeWidth=Ge.defaultStrokeWidth,Fe.strokeDasharray=Ge.defaultStrokeDasharray,Fe.strokePanel=new Pe("Line color",Ge.defaultColorSet,Ge.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new Ke("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return be(we,Oe),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Oe.prototype.getState.call(this);return ye.typeName=we.typeName,ye},we.typeName="FrameMarker",we.title="Frame marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',we}(ze),Xe=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"},Ft=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.x1=0,Fe.y1=0,Fe.x2=0,Fe.y2=0,Fe.defaultLength=50,Fe.manipulationStartX=0,Fe.manipulationStartY=0,Fe.manipulationStartX1=0,Fe.manipulationStartY1=0,Fe.manipulationStartX2=0,Fe.manipulationStartY2=0,Fe.setupControlBox(),Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){return!!Oe.prototype.ownsTarget.call(this,ye)||!(!this.grip1.ownsTarget(ye)&&!this.grip2.ownsTarget(ye))},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.manipulationStartX=ye.x,this.manipulationStartY=ye.y,this.state==="new"&&(this.x1=ye.x,this.y1=ye.y,this.x2=ye.x,this.y2=ye.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ke)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ke)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},we.prototype.pointerUp=function(ye){var ke=this.state;Oe.prototype.pointerUp.call(this,ye),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(ye),this._state="select",ke==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},we.prototype.adjustVisual=function(){},we.prototype.manipulate=function(ye){this.state==="creating"?this.resize(ye):this.state==="move"?(this.x1=this.manipulationStartX1+ye.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ye.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ye.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ye.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ye)},we.prototype.resize=function(ye){switch(this.activeGrip){case this.grip1:this.x1=ye.x,this.y1=ye.y;break;case this.grip2:case void 0:this.x2=ye.x,this.y2=ye.y}this.adjustVisual(),this.adjustControlBox()},we.prototype.select=function(){Oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){Oe.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=tt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){this.positionGrips()},we.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},we.prototype.createGrip=function(){var ye=new Le;return ye.visual.transform.baseVal.appendItem(tt.createTransform()),this.controlBox.appendChild(ye.visual),ye},we.prototype.positionGrips=function(){var ye=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ye/2,this.y1-ye/2),this.positionGrip(this.grip2.visual,this.x2-ye/2,this.y2-ye/2)},we.prototype.positionGrip=function(ye,ke,Ge){var Fe=ye.transform.baseVal.getItem(0);Fe.setTranslate(ke,Ge),ye.transform.baseVal.replaceItem(Fe,0)},we.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Oe.prototype.getState.call(this))},we.prototype.restoreState=function(ye){Oe.prototype.restoreState.call(this,ye);var ke=ye;this.x1=ke.x1,this.y1=ke.y1,this.x2=ke.x2,this.y2=ke.y2},we.prototype.scale=function(ye,ke){Oe.prototype.scale.call(this,ye,ke),this.x1=this.x1*ye,this.y1=this.y1*ke,this.x2=this.x2*ye,this.y2=this.y2*ke,this.adjustVisual(),this.adjustControlBox()},we}(Ae),Ct=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.strokeColor=Ge.defaultColor,Fe.strokeWidth=Ge.defaultStrokeWidth,Fe.strokeDasharray=Ge.defaultStrokeDasharray,Fe.strokePanel=new Pe("Line color",Ge.defaultColorSet,Ge.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new Ke("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){return!(!Oe.prototype.ownsTarget.call(this,ye)&&ye!==this.visual&&ye!==this.selectorLine&&ye!==this.visibleLine)},we.prototype.createVisual=function(){this.visual=tt.createGroup(),this.selectorLine=tt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=tt.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)},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},we.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()),tt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),tt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),tt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.adjustVisual(),this.colorChanged(ye)},we.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.adjustVisual()},we.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Oe.prototype.getState.call(this));return ye.typeName=we.typeName,ye},we.prototype.restoreState=function(ye){Oe.prototype.restoreState.call(this,ye);var ke=ye;this.strokeColor=ke.strokeColor,this.strokeWidth=ke.strokeWidth,this.strokeDasharray=ke.strokeDasharray,this.createVisual(),this.adjustVisual()},we.typeName="LineMarker",we.title="Line marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',we}(Ft),Nt=function(Oe){function we(ye,ke,Ge,Fe){var pt=Oe.call(this,ye,Fe||'<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 pt.fonts=[],pt.fontBoxes=[],pt.fonts=ke,pt.currentFont=Ge,pt.setCurrentFont=pt.setCurrentFont.bind(pt),pt}return be(we,Oe),we.prototype.getUi=function(){var ye=this,ke=document.createElement("div");return ke.style.overflow="hidden",ke.style.flexGrow="2",this.fonts.forEach(function(Ge){var Fe=document.createElement("div");Fe.style.display="inline-block",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.overflow="hidden",Fe.style.maxWidth=100/ye.fonts.length-5+"%",Fe.style.borderColor=Ge===ye.currentFont?ye.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){ye.setCurrentFont(Ge,Fe)}),ke.appendChild(Fe);var pt=document.createElement("div");pt.style.display="flex",pt.style.minHeight="20px",pt.style.flexGrow="2",pt.style.fontFamily=Ge,pt.style.overflow="hidden";var tn=document.createElement("div");tn.style.whiteSpace="nowrap",tn.style.overflow="hidden",tn.style.textOverflow="ellipsis",tn.innerHTML="The quick brown fox jumps over the lazy dog",pt.appendChild(tn),Fe.appendChild(pt),ye.fontBoxes.push(Fe)}),ke},we.prototype.setCurrentFont=function(ye,ke){var Ge=this;this.currentFont=ye,this.fontBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===ke?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},we}(ve),It=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.color="transparent",Fe.padding=5,Fe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Fe.text=Fe.DEFAULT_TEXT,Fe.isMoved=!1,Fe.color=Ge.defaultColor,Fe.fontFamily=Ge.defaultFontFamily,Fe.defaultSize={x:100,y:30},Fe.setColor=Fe.setColor.bind(Fe),Fe.setFont=Fe.setFont.bind(Fe),Fe.renderText=Fe.renderText.bind(Fe),Fe.sizeText=Fe.sizeText.bind(Fe),Fe.textEditDivClicked=Fe.textEditDivClicked.bind(Fe),Fe.showTextEditor=Fe.showTextEditor.bind(Fe),Fe.setSize=Fe.setSize.bind(Fe),Fe.positionTextEditor=Fe.positionTextEditor.bind(Fe),Fe.colorPanel=new Pe("Color",Ge.defaultColorSet,Ge.defaultColor),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.fontFamilyPanel=new Nt("Font",Ge.defaultFontFamilies,Ge.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){if(Oe.prototype.ownsTarget.call(this,ye)||ye===this.visual||ye===this.textElement||ye===this.bgRectangle)return!0;var ke=!1;return this.textElement.childNodes.forEach(function(Ge){Ge===ye&&(ke=!0)}),ke},we.prototype.createVisual=function(){this.visual=tt.createGroup(),this.bgRectangle=tt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=tt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(tt.createTransform()),this.textElement.transform.baseVal.appendItem(tt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.isMoved=!1,this.pointerDownPoint=ye,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},we.prototype.renderText=function(){var ye=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ke){ye.textElement.appendChild(tt.createTSpan(ke.trim()===""?" ":ke.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},we.prototype.getTextScale=function(){var ye=this.textElement.getBBox(),ke=1;if(ye.width>0&&ye.height>0){var Ge=(1*this.width-this.width*this.padding*2/100)/ye.width,Fe=(1*this.height-this.height*this.padding*2/100)/ye.height;ke=Math.min(Ge,Fe)}return ke},we.prototype.getTextPosition=function(ye){var ke=this.textElement.getBBox(),Ge=0,Fe=0;return ke.width>0&&ke.height>0&&(Ge=(this.width-ke.width*ye)/2,Fe=this.height/2-ke.height*ye/2),{x:Ge,y:Fe}},we.prototype.sizeText=function(){var ye=this.textElement.getBBox(),ke=this.getTextScale(),Ge=this.getTextPosition(ke);Ge.y-=ye.y*ke,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ge.x+"px, "+Ge.y+"px) scale("+ke+", "+ke+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ge.x,Ge.y),this.textElement.transform.baseVal.getItem(1).setScale(ke,ke))},we.prototype.manipulate=function(ye){Oe.prototype.manipulate.call(this,ye),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ye.x-this.pointerDownPoint.x)>5||Math.abs(ye.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(ye){Oe.prototype.resize.call(this,ye),this.isMoved=!0,this.setSize(),this.sizeText()},we.prototype.setSize=function(){Oe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(tt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),tt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},we.prototype.pointerUp=function(ye){var ke=this.state;ke==="creating"&&(this._suppressMarkerCreateEvent=!0),Oe.prototype.pointerUp.call(this,ye),this.setSize(),(ke==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.showTextEditor=function(){var ye=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ke){ke.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ke=Number.parseFloat(ye.textEditor.style.fontSize);ye.textEditor.clientWidth>=Number.parseInt(ye.textEditor.style.maxWidth)&&ke>.9;)ke-=.1,ye.textEditor.style.fontSize=Math.max(ke,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ke){ke.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ke){if(ke.clipboardData){var Ge=ke.clipboardData.getData("text"),Fe=window.getSelection();if(!Fe.rangeCount)return!1;Fe.deleteFromDocument(),Fe.getRangeAt(0).insertNode(document.createTextNode(Ge)),ke.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ye.textEditDivClicked(ye.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},we.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ye=this.getTextScale(),ke=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ge=this.textElement.getBBox(),Fe={x:Ge.width*ye,y:Ge.height*ye};ke.x-=Fe.x/2,ke.y-=Fe.y/2,this.textEditor.style.top=ke.y+"px",this.textEditor.style.left=ke.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ke.x+"px",this.textEditor.style.fontSize=Math.max(16*ye,12)+"px",this.textElement.style.display="none"}},we.prototype.textEditDivClicked=function(ye){this.text=ye.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},we.prototype.select=function(){Oe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},we.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Oe.prototype.deselect.call(this)},we.prototype.dblClick=function(ye,ke){Oe.prototype.dblClick.call(this,ye,ke),this.showTextEditor()},we.prototype.setColor=function(ye){this.textElement&&tt.setAttributes(this.textElement,[["fill",ye]]),this.color=ye,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ye)},we.prototype.setFont=function(ye){this.textElement&&tt.setAttributes(this.textElement,[["font-family",ye]]),this.fontFamily=ye,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},we.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},we.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Oe.prototype.getState.call(this));return ye.typeName=we.typeName,ye},we.prototype.restoreState=function(ye){var ke=ye;this.color=ke.color,this.fontFamily=ke.fontFamily,this.padding=ke.padding,this.text=ke.text,this.createVisual(),Oe.prototype.restoreState.call(this,ye),this.setSize()},we.prototype.scale=function(ye,ke){Oe.prototype.scale.call(this,ye,ke),this.setSize(),this.sizeText(),this.positionTextEditor()},we.typeName="TextMarker",we.title="Text marker",we.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>',we}(He),_t=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.color="transparent",Fe.lineWidth=3,Fe.drawing=!1,Fe.pixelRatio=1,Fe.color=Ge.defaultColor,Fe.lineWidth=Ge.defaultStrokeWidth,Fe.pixelRatio=Ge.freehandPixelRatio,Fe.setColor=Fe.setColor.bind(Fe),Fe.addCanvas=Fe.addCanvas.bind(Fe),Fe.finishCreation=Fe.finishCreation.bind(Fe),Fe.setLineWidth=Fe.setLineWidth.bind(Fe),Fe.colorPanel=new Pe("Color",Ge.defaultColorSet,Ge.defaultColor),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.lineWidthPanel=new Ke("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),Fe.lineWidthPanel.onWidthChanged=Fe.setLineWidth,Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){return!(!Oe.prototype.ownsTarget.call(this,ye)&&ye!==this.visual&&ye!==this.drawingImage)},we.prototype.createVisual=function(){this.visual=tt.createGroup(),this.drawingImage=tt.createImage(),this.visual.appendChild(this.drawingImage);var ye=tt.createTransform();this.visual.transform.baseVal.appendItem(ye),this.addMarkerVisualToContainer(this.visual)},we.prototype.pointerDown=function(ye,ke){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ye.x,ye.y),this.drawing=!0):Oe.prototype.pointerDown.call(this,ye,ke)},we.prototype.manipulate=function(ye){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ye.x,ye.y),this.canvasContext.stroke()):Oe.prototype.manipulate.call(this,ye)},we.prototype.resize=function(ye){Oe.prototype.resize.call(this,ye),tt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),tt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(ye){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Oe.prototype.pointerUp.call(this,ye)},we.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)},we.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Oe.prototype.select.call(this)},we.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Oe.prototype.deselect.call(this)},we.prototype.finishCreation=function(){for(var ye=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ke=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ge=ke[0],Fe=ke[1],pt=ke[2],tn=ke[3],en=!1,wt=0;wt<this.canvasElement.height;wt++)for(var Xt=0;Xt<this.canvasElement.width;Xt++)ye.data[wt*this.canvasElement.width*4+4*Xt+3]>0&&(en=!0,wt<Fe&&(Fe=wt),Xt<Ge&&(Ge=Xt),wt>tn&&(tn=wt),Xt>pt&&(pt=Xt));if(en){this.left=Ge/this.pixelRatio,this.top=Fe/this.pixelRatio,this.width=(pt-Ge)/this.pixelRatio,this.height=(tn-Fe)/this.pixelRatio;var Pn=document.createElement("canvas");Pn.width=pt-Ge,Pn.height=tn-Fe,Pn.getContext("2d").putImageData(this.canvasContext.getImageData(Ge,Fe,pt-Ge,tn-Fe),0,0),this.drawingImgUrl=Pn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},we.prototype.setDrawingImage=function(){tt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),tt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},we.prototype.setColor=function(ye){this.color=ye,this.colorChanged(ye)},we.prototype.setLineWidth=function(ye){this.lineWidth=ye},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Object.assign({drawingImgUrl:this.drawingImgUrl},Oe.prototype.getState.call(this));return ye.typeName=we.typeName,ye},we.prototype.restoreState=function(ye){this.createVisual(),Oe.prototype.restoreState.call(this,ye),this.drawingImgUrl=ye.drawingImgUrl,this.setDrawingImage()},we.prototype.scale=function(ye,ke){Oe.prototype.scale.call(this,ye,ke),this.setDrawingImage()},we.typeName="FreehandMarker",we.title="Freehand marker",we.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>',we}(He),lt=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,Ge||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Fe.typeBoxes=[],Fe.currentType=ke,Fe.setCurrentType=Fe.setCurrentType.bind(Fe),Fe}return be(we,Oe),we.prototype.getUi=function(){var ye=this,ke=document.createElement("div");ke.style.display="flex",ke.style.overflow="hidden",ke.style.flexGrow="2";for(var Ge=function(tn){var en="both";switch(tn){case 0:en="both";break;case 1:en="start";break;case 2:en="end";break;case 3:en="none"}var wt=document.createElement("div");if(wt.style.display="flex",wt.style.flexGrow="2",wt.style.alignItems="center",wt.style.justifyContent="space-between",wt.style.padding="5px",wt.style.borderWidth="2px",wt.style.borderStyle="solid",wt.style.borderColor=en===Fe.currentType?Fe.uiStyleSettings.toolboxAccentColor:"transparent",wt.addEventListener("click",function(){ye.setCurrentType(en,wt)}),ke.appendChild(wt),en==="both"||en==="start"){var Xt=document.createElement("div");Xt.style.display="flex",Xt.style.alignItems="center",Xt.style.minHeight="20px",Xt.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="`+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Xt.style.marginLeft="5px",wt.appendChild(Xt)}var Pn=document.createElement("div");Pn.style.display="flex",Pn.style.alignItems="center",Pn.style.minHeight="20px",Pn.style.flexGrow="2";var In=document.createElement("hr");if(In.style.minWidth="20px",In.style.border="0px",In.style.borderTop="3px solid "+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee"),In.style.flexGrow="2",Pn.appendChild(In),wt.appendChild(Pn),en==="both"||en==="end"){var $n=document.createElement("div");$n.style.display="flex",$n.style.alignItems="center",$n.style.minHeight="20px",$n.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="`+(Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,$n.style.marginRight="5px",wt.appendChild($n)}Fe.typeBoxes.push(wt)},Fe=this,pt=0;pt<4;pt++)Ge(pt);return ke},we.prototype.setCurrentType=function(ye,ke){var Ge=this;this.currentType=ye,this.typeBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===ke?Ge.uiStyleSettings!==void 0?Ge.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},we}(ve),je=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.arrowType="end",Fe.arrowBaseHeight=10,Fe.arrowBaseWidth=10,Fe.getArrowPoints=Fe.getArrowPoints.bind(Fe),Fe.setArrowType=Fe.setArrowType.bind(Fe),Fe.arrowTypePanel=new lt("Arrow type","end"),Fe.arrowTypePanel.onArrowTypeChanged=Fe.setArrowType,Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){return!(!Oe.prototype.ownsTarget.call(this,ye)&&ye!==this.arrow1&&ye!==this.arrow2)},we.prototype.getArrowPoints=function(ye,ke){var Ge=this.arrowBaseWidth+2*this.strokeWidth,Fe=this.arrowBaseHeight+2*this.strokeWidth;return ye-Ge/2+","+(ke+Fe/2)+" "+ye+","+(ke-Fe/2)+" "+(ye+Ge/2)+","+(ke+Fe/2)},we.prototype.createTips=function(){this.arrow1=tt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(tt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=tt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(tt.createTransform()),this.visual.appendChild(this.arrow2)},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(Oe.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",tt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),tt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ye=0;Math.abs(this.x1-this.x2)>.1&&(ye=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ke=this.arrow1.transform.baseVal.getItem(0);ke.setRotate(ye,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ke,0);var Ge=this.arrow2.transform.baseVal.getItem(0);Ge.setRotate(ye+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ge,0)}},we.prototype.setArrowType=function(ye){this.arrowType=ye,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Object.assign({arrowType:this.arrowType},Oe.prototype.getState.call(this));return ye.typeName=we.typeName,ye},we.prototype.restoreState=function(ye){Oe.prototype.restoreState.call(this,ye);var ke=ye;this.arrowType=ke.arrowType,this.createTips(),this.adjustVisual()},we.typeName="ArrowMarker",we.title="Arrow marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',we}(Ct),Et=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.fillColor=Ge.defaultFillColor,Fe.strokeWidth=0,Fe.fillPanel=new Pe("Color",Ge.defaultColorSet,Ge.defaultFillColor),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe}return be(we,Oe),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Oe.prototype.getState.call(this);return ye.typeName=we.typeName,ye},we.typeName="CoverMarker",we.title="Cover marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',we}(ze),ln=function(Oe){function we(ye,ke,Ge,Fe){var pt=Oe.call(this,ye,Fe||'<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 pt.opacities=[],pt.opacityBoxes=[],pt.opacities=ke,pt.currentOpacity=Ge,pt.setCurrentOpacity=pt.setCurrentOpacity.bind(pt),pt}return be(we,Oe),we.prototype.getUi=function(){var ye=this,ke=document.createElement("div");return ke.style.display="flex",ke.style.overflow="hidden",ke.style.flexGrow="2",ke.style.justifyContent="space-between",this.opacities.forEach(function(Ge){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.justifyContent="center",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderColor=Ge===ye.currentOpacity?ye.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){ye.setCurrentOpacity(Ge,Fe)}),ke.appendChild(Fe);var pt=document.createElement("div");pt.innerText=100*Ge+"%",Fe.appendChild(pt),ye.opacityBoxes.push(Fe)}),ke},we.prototype.setCurrentOpacity=function(ye,ke){var Ge=this;this.currentOpacity=ye,this.opacityBoxes.forEach(function(Fe){Fe.style.borderColor=Fe===ke?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},we}(ve),Ht=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.setOpacity=Fe.setOpacity.bind(Fe),Fe.fillColor=Ge.defaultHighlightColor,Fe.strokeWidth=0,Fe.opacity=Ge.defaultHighlightOpacity,Fe.fillPanel=new Pe("Color",Ge.defaultColorSet,Fe.fillColor),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.opacityPanel=new ln("Opacity",Ge.defaultOpacitySteps,Fe.opacity),Fe.opacityPanel.onOpacityChanged=Fe.setOpacity,Fe}return be(we,Oe),we.prototype.setOpacity=function(ye){this.opacity=ye,this.visual&&tt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Oe.prototype.getState.call(this);return ye.typeName=we.typeName,ye},we.typeName="HighlightMarker",we.title="Highlight marker",we.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>',we}(Et),xt='<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>',Bt='<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>',rn=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.bgColor="transparent",Fe.tipPosition={x:0,y:0},Fe.tipBase1Position={x:0,y:0},Fe.tipBase2Position={x:0,y:0},Fe.tipMoving=!1,Fe.color=Ge.defaultStrokeColor,Fe.bgColor=Ge.defaultFillColor,Fe.fontFamily=Ge.defaultFontFamily,Fe.defaultSize={x:100,y:30},Fe.setBgColor=Fe.setBgColor.bind(Fe),Fe.getTipPoints=Fe.getTipPoints.bind(Fe),Fe.positionTip=Fe.positionTip.bind(Fe),Fe.setTipPoints=Fe.setTipPoints.bind(Fe),Fe.colorPanel=new Pe("Text color",Ge.defaultColorSet,Fe.color,xt),Fe.colorPanel.onColorChanged=Fe.setColor,Fe.bgColorPanel=new Pe("Fill color",Ge.defaultColorSet,Fe.bgColor,Bt),Fe.bgColorPanel.onColorChanged=Fe.setBgColor,Fe.fontFamilyPanel=new Nt("Font",Ge.defaultFontFamilies,Ge.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe.tipGrip=new Le,Fe.tipGrip.visual.transform.baseVal.appendItem(tt.createTransform()),Fe.controlBox.appendChild(Fe.tipGrip.visual),Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){return Oe.prototype.ownsTarget.call(this,ye)||this.tipGrip.ownsTarget(ye)||this.tip===ye},we.prototype.createTip=function(){tt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=tt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},we.prototype.pointerDown=function(ye,ke){this.state==="new"&&Oe.prototype.pointerDown.call(this,ye,ke),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ke)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Oe.prototype.pointerDown.call(this,ye,ke)},we.prototype.pointerUp=function(ye){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Oe.prototype.pointerUp.call(this,ye);else{var ke=this.state==="creating";Oe.prototype.pointerUp.call(this,ye),this.setTipPoints(ke),this.positionTip()}},we.prototype.manipulate=function(ye){if(this.tipMoving){var ke=this.unrotatePoint(ye);this.tipPosition={x:ke.x-this.manipulationStartLeft,y:ke.y-this.manipulationStartTop},this.positionTip()}else Oe.prototype.manipulate.call(this,ye)},we.prototype.setBgColor=function(ye){this.bgRectangle&&this.tip&&(tt.setAttributes(this.bgRectangle,[["fill",ye]]),tt.setAttributes(this.tip,[["fill",ye]])),this.bgColor=ye,this.fillColorChanged(ye)},we.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},we.prototype.setTipPoints=function(ye){ye===void 0&&(ye=!1);var ke=Math.min(this.height/2,15),Ge=this.height/5;ye&&(this.tipPosition={x:ke+Ge/2,y:this.height+20});var Fe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Fe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ge=this.width/5,ke=Math.min(this.width/2,15),this.tipBase1Position={x:ke,y:0},this.tipBase2Position={x:ke+Ge,y:0}):(this.tipBase1Position={x:0,y:ke},this.tipBase2Position={x:0,y:ke+Ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Fe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ge=this.width/5,ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ke-Ge,y:0},this.tipBase2Position={x:this.width-ke,y:0}):(this.tipBase1Position={x:this.width,y:ke},this.tipBase2Position={x:this.width,y:ke+Ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Fe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ge=this.width/5,ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ke-Ge,y:this.height},this.tipBase2Position={x:this.width-ke,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ke-Ge},this.tipBase2Position={x:this.width,y:this.height-ke}):Fe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ge=this.width/5,ke=Math.min(this.width/2,15),this.tipBase1Position={x:ke,y:this.height},this.tipBase2Position={x:ke+Ge,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ke},this.tipBase2Position={x:0,y:this.height-ke-Ge})},we.prototype.resize=function(ye){Oe.prototype.resize.call(this,ye),this.positionTip()},we.prototype.positionTip=function(){tt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ye=this.tipGrip.visual.transform.baseVal.getItem(0);ye.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ye,0)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.select=function(){this.positionTip(),Oe.prototype.select.call(this)},we.prototype.getState=function(){var ye=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Oe.prototype.getState.call(this));return ye.typeName=we.typeName,ye},we.prototype.restoreState=function(ye){var ke=ye;this.bgColor=ke.bgColor,this.tipPosition=ke.tipPosition,Oe.prototype.restoreState.call(this,ye),this.createTip(),this.setTipPoints()},we.prototype.scale=function(ye,ke){Oe.prototype.scale.call(this,ye,ke),this.tipPosition={x:this.tipPosition.x*ye,y:this.tipPosition.y*ke},this.positionTip()},we.typeName="CalloutMarker",we.title="Callout marker",we.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>',we}(It),Hn=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.opacity=1,Fe.strokeColor=Ge.defaultColor,Fe.strokeWidth=Ge.defaultStrokeWidth,Fe.strokeDasharray=Ge.defaultStrokeDasharray,Fe.fillColor=Ge.defaultFillColor,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.setOpacity=Fe.setOpacity.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe.strokePanel=new Pe("Line color",Je(Ge.defaultColorSet,["transparent"]),Ge.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.fillPanel=new Pe("Fill color",Je(Ge.defaultColorSet,["transparent"]),Fe.fillColor,Bt),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.strokeWidthPanel=new Ke("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe.opacityPanel=new ln("Opacity",Ge.defaultOpacitySteps,Fe.opacity),Fe.opacityPanel.onOpacityChanged=Fe.setOpacity,Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){return!(!Oe.prototype.ownsTarget.call(this,ye)&&ye!==this.visual)},we.prototype.createVisual=function(){this.visual=tt.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)},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},we.prototype.manipulate=function(ye){Oe.prototype.manipulate.call(this,ye)},we.prototype.resize=function(ye){Oe.prototype.resize.call(this,ye),this.setSize()},we.prototype.setSize=function(){Oe.prototype.setSize.call(this),tt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},we.prototype.pointerUp=function(ye){Oe.prototype.pointerUp.call(this,ye),this.setSize()},we.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.visual&&tt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ye),this.stateChanged()},we.prototype.setFillColor=function(ye){this.fillColor=ye,this.visual&&tt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ye),this.stateChanged()},we.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.visual&&tt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.visual&&tt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.setOpacity=function(ye){this.opacity=ye,this.visual&&tt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Oe.prototype.getState.call(this));return ye.typeName=we.typeName,ye},we.prototype.restoreState=function(ye){var ke=ye;this.fillColor=ke.fillColor,this.strokeColor=ke.strokeColor,this.strokeWidth=ke.strokeWidth,this.strokeDasharray=ke.strokeDasharray,this.opacity=ke.opacity,this.createVisual(),Oe.prototype.restoreState.call(this,ye),this.setSize()},we.prototype.scale=function(ye,ke){Oe.prototype.scale.call(this,ye,ke),this.setSize()},we.typeName="EllipseMarker",we.title="Ellipse marker",we.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>',we}(He),pn=function(Oe){function we(ye,ke,Ge){return Oe.call(this,ye,ke,Ge)||this}return be(we,Oe),Object.defineProperty(we.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(ye){return!(!Oe.prototype.ownsTarget.call(this,ye)&&ye!==this.tip1&&ye!==this.tip2)},we.prototype.createTips=function(){this.tip1=tt.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(tt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=tt.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(tt.createTransform()),this.visual.appendChild(this.tip2)},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(Oe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(tt.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()]]),tt.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 ye=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ke=this.tip1.transform.baseVal.getItem(0);ke.setRotate(ye,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ke,0);var Ge=this.tip2.transform.baseVal.getItem(0);Ge.setRotate(ye+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ge,0)}},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Oe.prototype.getState.call(this);return ye.typeName=we.typeName,ye},we.prototype.restoreState=function(ye){Oe.prototype.restoreState.call(this,ye),this.createTips(),this.adjustVisual()},we.typeName="MeasurementMarker",we.title="Measurement marker",we.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>',we}(Ct),_n=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.strokePanel.colors=Ge.defaultColorSet,Fe.fillColor="transparent",Fe}return be(we,Oe),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Oe.prototype.getState.call(this);return ye.typeName=we.typeName,ye},we.typeName="EllipseFrameMarker",we.title="Ellipse frame marker",we.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>',we}(Hn),Lt=function(){function Oe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Oe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Oe.prototype.addUndoStep=function(we){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(we)||(this.undoStack.push(we),JSON.stringify(this.lastRedoStep)!==JSON.stringify(we)&&this.redoStack.splice(0,this.redoStack.length))},Oe.prototype.replaceLastUndoStep=function(we){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=we)},Oe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Oe.prototype.undo=function(){if(this.undoStack.length>1){var we=this.undoStack.pop();return we!==void 0&&this.redoStack.push(we),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Oe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Oe}(),Un=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.curveX=0,Fe.curveY=0,Fe.manipulationStartCurveX=0,Fe.manipulationStartCurveY=0,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.positionGrips=Fe.positionGrips.bind(Fe),Fe.addControlGrips=Fe.addControlGrips.bind(Fe),Fe.adjustVisual=Fe.adjustVisual.bind(Fe),Fe.setupControlBox=Fe.setupControlBox.bind(Fe),Fe.resize=Fe.resize.bind(Fe),Fe.strokeColor=Ge.defaultColor,Fe.strokeWidth=Ge.defaultStrokeWidth,Fe.strokeDasharray=Ge.defaultStrokeDasharray,Fe.strokePanel=new Pe("Line color",Ge.defaultColorSet,Ge.defaultColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.strokeWidthPanel=new Ke("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){return!(!Oe.prototype.ownsTarget.call(this,ye)&&ye!==this.visual&&ye!==this.selectorCurve&&ye!==this.visibleCurve&&!this.curveGrip.ownsTarget(ye))},we.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},we.prototype.createVisual=function(){this.visual=tt.createGroup(),this.selectorCurve=tt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=tt.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)},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ye.x,this.curveY=ye.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ke)&&(this.activeGrip=this.curveGrip,this._state="resize")},we.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),tt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),tt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),tt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setupControlBox=function(){Oe.prototype.setupControlBox.call(this),this.curveControlLine1=tt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=tt.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)},we.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Oe.prototype.addControlGrips.call(this)},we.prototype.positionGrips=function(){Oe.prototype.positionGrips.call(this);var ye=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ye/2,this.curveY-ye/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()))},we.prototype.manipulate=function(ye){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ye.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ye.y-this.manipulationStartY),Oe.prototype.manipulate.call(this,ye)},we.prototype.resize=function(ye){this.activeGrip===this.curveGrip&&(this.curveX=ye.x,this.curveY=ye.y),Oe.prototype.resize.call(this,ye),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},we.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.adjustVisual(),this.colorChanged(ye)},we.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.adjustVisual()},we.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.adjustVisual()},we.prototype.scale=function(ye,ke){this.curveX=this.curveX*ye,this.curveY=this.curveY*ke,Oe.prototype.scale.call(this,ye,ke)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Oe.prototype.getState.call(this));return ye.typeName=we.typeName,ye},we.prototype.restoreState=function(ye){Oe.prototype.restoreState.call(this,ye);var ke=ye;this.strokeColor=ke.strokeColor,this.strokeWidth=ke.strokeWidth,this.strokeDasharray=ke.strokeDasharray,this.curveX=ke.curveX,this.curveY=ke.curveY,this.createVisual(),this.adjustVisual()},we.typeName="CurveMarker",we.title="Curve marker",we.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>',we}(Ft),Gn=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,ke,Ge)||this;return Fe.fillColor="transparent",Fe.strokeColor="transparent",Fe.strokeWidth=0,Fe.strokeDasharray="",Fe.textColor="transparent",Fe.fontSize="1rem",Fe.isMoved=!1,Fe.captionText="Caption",Fe.PADDING=5,Fe.captionBoxWidth=0,Fe.captionBoxHeight=0,Fe.strokeColor=Ge.defaultColor,Fe.strokeWidth=Ge.defaultStrokeWidth,Fe.strokeDasharray=Ge.defaultStrokeDasharray,Fe.fillColor=Ge.defaultFillColor,Fe.textColor=Ge.defaultStrokeColor,Fe.fontFamily=Ge.defaultFontFamily,Fe.fontSize=Ge.defaultCaptionFontSize,Fe.captionText=Ge.defaultCaptionText,Fe.setStrokeColor=Fe.setStrokeColor.bind(Fe),Fe.setFillColor=Fe.setFillColor.bind(Fe),Fe.setStrokeWidth=Fe.setStrokeWidth.bind(Fe),Fe.setStrokeDasharray=Fe.setStrokeDasharray.bind(Fe),Fe.createVisual=Fe.createVisual.bind(Fe),Fe.sizeCaption=Fe.sizeCaption.bind(Fe),Fe.setCaptionText=Fe.setCaptionText.bind(Fe),Fe.showTextEditor=Fe.showTextEditor.bind(Fe),Fe.positionTextEditor=Fe.positionTextEditor.bind(Fe),Fe.finishTextEditing=Fe.finishTextEditing.bind(Fe),Fe.setFont=Fe.setFont.bind(Fe),Fe.setTextColor=Fe.setTextColor.bind(Fe),Fe.strokePanel=new Pe("Line color",Je(Ge.defaultColorSet,["transparent"]),Fe.strokeColor),Fe.strokePanel.onColorChanged=Fe.setStrokeColor,Fe.fillPanel=new Pe("Fill color",Je(Ge.defaultColorSet,["transparent"]),Fe.fillColor,Bt),Fe.fillPanel.onColorChanged=Fe.setFillColor,Fe.strokeWidthPanel=new Ke("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),Fe.strokeWidthPanel.onWidthChanged=Fe.setStrokeWidth,Fe.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),Fe.strokeStylePanel.onStyleChanged=Fe.setStrokeDasharray,Fe.fontFamilyPanel=new Nt("Font",Ge.defaultFontFamilies,Ge.defaultFontFamily),Fe.fontFamilyPanel.onFontChanged=Fe.setFont,Fe.textColorPanel=new Pe("Text color",Ge.defaultColorSet,Fe.textColor,xt),Fe.textColorPanel.onColorChanged=Fe.setTextColor,Fe}return be(we,Oe),we.prototype.ownsTarget=function(ye){return!(!Oe.prototype.ownsTarget.call(this,ye)&&ye!==this.visual&&ye!==this.frame&&ye!==this.captionBg&&ye!==this.captionElement)},we.prototype.createVisual=function(){this.visual=tt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=tt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=tt.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=tt.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()},we.prototype.setCaptionText=function(ye){this.captionText=ye,this.captionElement.textContent=this.captionText,this.sizeCaption()},we.prototype.pointerDown=function(ye,ke){Oe.prototype.pointerDown.call(this,ye,ke),this.isMoved=!1,this.pointerDownPoint=ye,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},we.prototype.manipulate=function(ye){Oe.prototype.manipulate.call(this,ye),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ye.x-this.pointerDownPoint.x)>5||Math.abs(ye.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(ye){Oe.prototype.resize.call(this,ye),this.setSize()},we.prototype.sizeCaption=function(){var ye=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ye.width+2*this.PADDING,this.captionBoxHeight=ye.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),tt.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')"]]),tt.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')"]])},we.prototype.showTextEditor=function(){var ye=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ke){ke.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ke){ke.key==="Enter"&&ye.finishTextEditing(ye.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ke){ke.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ye.finishTextEditing(ye.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ye.finishTextEditing(ye.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},we.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"))},we.prototype.finishTextEditing=function(ye){this.setCaptionText(ye.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},we.prototype.setFont=function(ye){this.captionElement&&tt.setAttributes(this.captionElement,[["font-family",ye]]),this.fontFamily=ye,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},we.prototype.setTextColor=function(ye){this.captionElement&&tt.setAttributes(this.captionElement,[["fill",ye]]),this.textColor=ye,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},we.prototype.setSize=function(){Oe.prototype.setSize.call(this),tt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},we.prototype.pointerUp=function(ye){Oe.prototype.pointerUp.call(this,ye),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.dblClick=function(ye,ke){Oe.prototype.dblClick.call(this,ye,ke),this.showTextEditor()},we.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.frame&&tt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ye),this.stateChanged()},we.prototype.setFillColor=function(ye){this.fillColor=ye,this.captionBg&&tt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ye),this.stateChanged()},we.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.frame&&tt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.frame&&tt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var ye=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},Oe.prototype.getState.call(this));return ye.typeName=this.typeName,ye},we.prototype.restoreState=function(ye){var ke=ye;this.fillColor=ke.fillColor,this.strokeColor=ke.strokeColor,this.strokeWidth=ke.strokeWidth,this.strokeDasharray=ke.strokeDasharray,this.textColor=ke.textColor,this.fontFamily=ke.fontFamily,this.captionText=ke.captionText,this.fontSize=ke.fontSize,this.createVisual(),Oe.prototype.restoreState.call(this,ye),this.setSize()},we.prototype.scale=function(ye,ke){Oe.prototype.scale.call(this,ye,ke),this.setSize()},we.typeName="CaptionFrameMarker",we.title="Caption frame marker",we.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>',we}(He),ui=function(){function Oe(we,ye){ye===void 0&&(ye=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=we,this.cancelable=ye}return Object.defineProperty(Oe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Oe.prototype.preventDefault=function(){this._defaultPrevented=!0},Oe}(),Ln=function(Oe){function we(ye,ke,Ge){var Fe=Oe.call(this,ye,!1)||this;return Fe.dataUrl=ke,Fe.state=Ge,Fe}return be(we,Oe),we}(ui),Wt=function(Oe){function we(ye,ke,Ge){Ge===void 0&&(Ge=!1);var Fe=Oe.call(this,ye,Ge)||this;return Fe.marker=ke,Fe}return be(we,Oe),we}(ui),Vt=function(){function Oe(){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 Oe.prototype.addEventListener=function(we,ye){this[we].push(ye)},Oe.prototype.removeEventListener=function(we,ye){var ke=this[we].indexOf(ye);ke>-1&&this[we].splice(ke,1)},Oe}(),mt=function(){function Oe(we){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Xe,this._isOpen=!1,this.undoRedoManager=new Lt,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 Vt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Oe.instanceCounter++,this.styles=new ee(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=we,this.targetRoot=document.body,this.width=we.clientWidth,this.height=we.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(Oe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Mt,_t,je,It,_n,Hn,Ht,rn,pn,Et,Ct,Un,Gn]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Mt,_t,je,It,Hn,Ht,rn]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Mt,_t,je,It,Ht]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(we){var ye=this;this._availableMarkerTypes.splice(0),we.forEach(function(ke){if(typeof ke=="string"){var Ge=ye.ALL_MARKER_TYPES.find(function(Fe){return Fe.typeName===ke});Ge!==void 0&&ye._availableMarkerTypes.push(Ge)}else ye._availableMarkerTypes.push(ke)})},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(we){this._zoomLevel=we,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(Oe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Oe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),$e.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Oe.prototype.show=function(){var we=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ye){return ye(new ui(we))})},Oe.prototype.render=function(){return yt(this,void 0,void 0,function(){var we;return vt(this,function(ye){switch(ye.label){case 0:return this.setCurrentMarker(),(we=new Qe).naturalSize=this.renderAtNaturalSize,we.imageType=this.renderImageType,we.imageQuality=this.renderImageQuality,we.markersOnly=this.renderMarkersOnly,we.width=this.renderWidth,we.height=this.renderHeight,[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ye.sent(),[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ye.sent()]}})})},Oe.prototype.close=function(we){var ye=this;if(we===void 0&&(we=!1),this.isOpen){var ke=!1;we||this.eventListeners.beforeclose.forEach(function(Ge){var Fe=new ui(ye,!0);Ge(Fe),Fe.defaultPrevented&&(ke=!0)}),ke||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Ge){return Ge(new ui(ye))}),this.detachEvents(),this._isOpen=!1)}},Oe.prototype.addMarkersToToolbar=function(){for(var we,ye=[],ke=0;ke<arguments.length;ke++)ye[ke]=arguments[ke];(we=this._availableMarkerTypes).push.apply(we,ye)},Oe.prototype.addRenderEventListener=function(we){this.addEventListener("render",function(ye){we(ye.dataUrl,ye.state)})},Oe.prototype.removeRenderEventListener=function(we){},Oe.prototype.addCloseEventListener=function(we){this.addEventListener("close",function(){we()})},Oe.prototype.removeCloseEventListener=function(we){},Oe.prototype.setupResizeObserver=function(){var we=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){we.resize(we.target.clientWidth,we.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return we.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Oe.prototype.onPopupTargetResize=function(){var we=1*this.target.clientWidth/this.target.clientHeight,ye=this.editorCanvas.clientWidth/we>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*we:this.editorCanvas.clientWidth,ke=ye<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/we;this.resize(ye,ke)},Oe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Oe.prototype.resize=function(we,ye){this._isResizing=!0;var ke=we/this.imageWidth,Ge=ye/this.imageHeight;this.imageWidth=Math.round(we),this.imageHeight=Math.round(ye),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ke,Ge),this._isResizing=!1},Oe.prototype.scaleMarkers=function(we,ye){var ke,Ge=this;this._currentMarker&&this._currentMarker instanceof It?this._currentMarker.scale(we,ye):(ke=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Fe){Fe!==Ge._currentMarker&&Fe.scale(we,ye)}),ke!==void 0&&this.setCurrentMarker(ke)},Oe.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"},Oe.prototype.setTopLeft=function(){var we=this.editingTarget.getBoundingClientRect(),ye=this.editorCanvas.getBoundingClientRect();this.left=we.left-ye.left,this.top=we.top-ye.top},Oe.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)},Oe.prototype.addDefs=function(){for(var we,ye=[],ke=0;ke<arguments.length;ke++)ye[ke]=arguments[ke];this.defs=tt.createDefs(),this.addDefsToImage(),(we=this.defs).append.apply(we,ye)},Oe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Oe.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)},Oe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Oe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Oe.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)},Oe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Oe.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)},Oe.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 we=document.createElement("a");we.href="https://markerjs.com/",we.target="_blank",we.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>',we.title="Powered by marker.js",we.style.display="grid",we.style.alignItems="center",we.style.justifyItems="center",we.style.padding="3px",we.style.width="20px",we.style.height="20px",this.logoUI.appendChild(we),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Oe.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")},Oe.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"},Oe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Oe.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 we=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=we+"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 ae(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 de(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Oe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Oe.prototype.removeMarker=function(we){this.markerImage.removeChild(we.container),this.markers.indexOf(we)>-1&&this.markers.splice(this.markers.indexOf(we),1),we.dispose()},Oe.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())},Oe.prototype.toolbarButtonClicked=function(we,ye){if(we==="marker"&&ye!==void 0)this.createNewMarker(ye);else if(we==="action")switch(ye){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()}},Oe.prototype.deleteSelectedMarker=function(){var we=this;if(this._currentMarker!==void 0){var ye=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ge){var Fe=new Wt(we,we._currentMarker,!0);Ge(Fe),Fe.defaultPrevented&&(ye=!0)}),!ye){var ke=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ge){return Ge(new Wt(we,ke))})}}},Oe.prototype.clear=function(){var we=this,ye=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pt){var tn=new Wt(we,void 0,!0);pt(tn),tn.defaultPrevented&&(ye=!0)}),!ye)){this.setCurrentMarker();for(var ke=function(pt){var tn=Ge.markers[pt];Ge.setCurrentMarker(Ge.markers[pt]),Ge._currentMarker.dispose(),Ge.markerImage.removeChild(Ge._currentMarker.container),Ge.markers.splice(Ge.markers.indexOf(Ge._currentMarker),1),Ge.eventListeners.markerdelete.forEach(function(en){return en(new Wt(we,tn))})},Ge=this,Fe=this.markers.length-1;Fe>=0;Fe--)ke(Fe);this.addUndoStep()}},Object.defineProperty(Oe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Oe.prototype.showNotesEditor=function(){var we;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=(we=this._currentMarker.notes)!==null&&we!==void 0?we:"",this.overlayContainer.appendChild(this.notesArea))},Oe.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)},Oe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Oe.prototype.addUndoStep=function(){var we=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ye=this.getState(),ke=this.undoRedoManager.getLastUndoStep();if(!ke||ke.width===ye.width&&ke.height===ye.height){var Ge=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ye),Ge<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Fe){return Fe(new ui(we))})}else this.undoRedoManager.replaceLastUndoStep(ye),this.eventListeners.statechange.forEach(function(Fe){return Fe(new ui(we))})}},Oe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Oe.prototype.undoStep=function(){var we=this,ye=this.undoRedoManager.undo();ye!==void 0&&(this.restoreState(ye),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ke){return ke(new ui(we))}))},Oe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Oe.prototype.redoStep=function(){var we=this,ye=this.undoRedoManager.redo();ye!==void 0&&(this.restoreState(ye),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ke){return ke(new ui(we))}))},Oe.prototype.stepZoom=function(){var we=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=we<this.zoomSteps.length-1?this.zoomSteps[we+1]:this.zoomSteps[0]},Oe.prototype.panTo=function(we){this.contentDiv.scrollBy({left:this.prevPanPoint.x-we.x,top:this.prevPanPoint.y-we.y}),this.prevPanPoint=we},Oe.prototype.startRenderAndClose=function(){return yt(this,void 0,void 0,function(){var we,ye,ke=this;return vt(this,function(Ge){switch(Ge.label){case 0:return[4,this.render()];case 1:return we=Ge.sent(),ye=this.getState(),this.eventListeners.render.forEach(function(Fe){return Fe(new Ln(ke,we,ye))}),this.close(!0),[2]}})})},Oe.prototype.getState=function(we){we===!0&&this.setCurrentMarker();var ye={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ke){return ye.markers.push(ke.getState())}),ye},Oe.prototype.restoreState=function(we){var ye=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);we.markers.forEach(function(ke){var Ge=ye._availableMarkerTypes.find(function(pt){return pt.typeName===ke.typeName});if(Ge!==void 0){var Fe=ye.addNewMarker(Ge);Fe.restoreState(ke),ye.markers.push(Fe)}}),we.width&&we.height&&(we.width!==this.imageWidth||we.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/we.width,this.imageHeight/we.height),this.eventListeners.restorestate.forEach(function(ke){return ke(new ui(ye))})},Oe.prototype.addNewMarker=function(we){var ye=tt.createGroup();return this.markerImage.appendChild(ye),new we(ye,this.overlayContainer,this.settings)},Oe.prototype.createNewMarker=function(we){var ye,ke=this;(ye=typeof we=="string"?this._availableMarkerTypes.find(function(Ge){return Ge.typeName===we}):we)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ye),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(ye.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ge){return Ge(new Wt(ke,ke._currentMarker))}))},Oe.prototype.markerCreated=function(we){var ye=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(we),this.setCurrentMarker(we),we instanceof _t&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(_t):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ke){return ke(new Wt(ye,ye._currentMarker))})},Oe.prototype.colorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=we,this.settings.defaultStrokeColor=we)},Oe.prototype.fillColorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=we)},Oe.prototype.markerStateChanged=function(we){var ye=this;this.eventListeners.markerchange.forEach(function(ke){return ke(new Wt(ye,we))})},Oe.prototype.setCurrentMarker=function(we){var ye=this;this._currentMarker!==we&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ke){return ke(new Wt(ye,ye._currentMarker))})),this._currentMarker=we,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ke){return ke(new Wt(ye,ye._currentMarker))}))},Oe.prototype.onPointerDown=function(we){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||we.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ye=this.markers.find(function(ke){return ke.ownsTarget(we.target)});ye!==void 0?(this.setCurrentMarker(ye),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:we.clientX,y:we.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY))},Oe.prototype.onDblClick=function(we){if(this._isFocused||this.focus(),this.mode==="select"){var ye=this.markers.find(function(ke){return ke.ownsTarget(we.target)});ye!==void 0&&ye!==this._currentMarker&&this.setCurrentMarker(ye),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target):this.setCurrentMarker()}},Oe.prototype.onPointerMove=function(we){this.touchPoints!==1&&we.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||we.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(we.clientX,we.clientY)):this.zoomLevel>1&&this.panTo({x:we.clientX,y:we.clientY}))},Oe.prototype.onPointerUp=function(we){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(we.clientX,we.clientY)),this.isDragging=!1,this.addUndoStep()},Oe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Oe.prototype.onKeyUp=function(we){this._currentMarker===void 0||this.notesArea!==void 0||we.key!=="Delete"&&we.key!=="Backspace"||this.deleteSelectedMarker()},Oe.prototype.clientToLocalCoordinates=function(we,ye){var ke=this.markerImage.getBoundingClientRect();return{x:(we-ke.left)/this.zoomLevel,y:(ye-ke.top)/this.zoomLevel}},Oe.prototype.onWindowResize=function(){this.positionUI()},Oe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var we=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=we+"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()},Oe.prototype.addLicenseKey=function(we){$e.addKey(we)},Oe.prototype.addEventListener=function(we,ye){this.eventListeners.addEventListener(we,ye)},Oe.prototype.removeEventListener=function(we,ye){this.eventListeners.removeEventListener(we,ye)},Oe.prototype.renderState=function(we){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(we),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Oe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Oe.prototype.focus=function(){var we=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ye){return ye(new ui(we))}))},Oe.prototype.blur=function(){var we=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ye){return ye(new ui(we))}))},Oe.instanceCounter=0,Oe}(),Ye=he(70635),Zt=he(58130),Gt=(Oe,we,ye)=>new Promise((ke,Ge)=>{var Fe=en=>{try{tn(ye.next(en))}catch(wt){Ge(wt)}},pt=en=>{try{tn(ye.throw(en))}catch(wt){Ge(wt)}},tn=en=>en.done?ke(en.value):Promise.resolve(en.value).then(Fe,pt);tn((ye=ye.apply(Oe,we)).next())}),nt=({data:Oe,className:we,fullWidth:ye,style:ke={},onClose:Ge,onOk:Fe,showFullTools:pt,noAssociationId:tn})=>{const en=(0,pe.useRef)(null),wt=(0,pe.useRef)(null),Xt=(0,pe.useRef)(null),Pn=(0,pe.useRef)(null),[In,$n]=(0,pe.useState)(!1),[Pi,wn]=(0,pe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,pe.useEffect)(()=>{Xt.current||(Xt.current=document.createElement("style"),document.head.appendChild(Xt.current)),Oe!=null&&Oe.visible?(document.body.setAttribute("data-custom","y-hidden"),Xt.current.innerHTML=" html { overflow-y: hidden; }",Oe!=null&&Oe.src&&Ai()):(document.body.removeAttribute("data-custom"),Xt.current&&(document.head.removeChild(Xt.current),Xt.current=null))},[Oe==null?void 0:Oe.visible]);const Ai=()=>Gt(void 0,null,function*(){$n(!0),wn("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Qn=yield(0,Zt.ZJ)(Oe==null?void 0:Oe.src);en.current.src="",en.current.src=Qn,en.current.onload=function(){sr()},$n(!1),wn("")}),Vi=Qn=>Gt(void 0,null,function*(){$n(!0),wn("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ci=yield(0,Ye.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Oe.title,file:Qn.dataUrl}});Ci!=null&&Ci.id&&!tn?(yield(0,Ye.ZP)(`/api/attachments/${Oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ci==null?void 0:Ci.id,settings:JSON.stringify(Qn.state)}})).status===0&&Fe():Ci!=null&&Ci.id&&Fe(Ci),$n(!1),wn("")}),ur=()=>{const Qn=document.querySelector('a[href="https://markerjs.com/"]');Qn&&Qn.parentNode&&(Qn.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(er=>{const ri=document.querySelector(er.name);ri&&ri.setAttribute("title",er.title)})},sr=()=>{wt.current=new mt(en.current),wt.current.targetRoot=Pn.current,wt.current.addEventListener("render",Vi),wt.current.addEventListener("beforeclose",Ge),pt&&(wt.current.availableMarkerTypes=wt.current.ALL_MARKER_TYPES,wt.current.uiStyleSettings.redoButtonVisible=!0,wt.current.uiStyleSettings.notesButtonVisible=!0,wt.current.uiStyleSettings.zoomButtonVisible=!0,wt.current.uiStyleSettings.zoomOutButtonVisible=!0,wt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=wt.current.uiStyleSettings,wt.current.show(),Oe!=null&&Oe.snapshotData&&wt.current.restoreState(Oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ur()},300)};return pe.createElement(pe.Fragment,null,(Oe==null?void 0:Oe.visible)&&pe.createElement(We.Z,{spinning:In,tip:Pi,style:{position:"absolute"}},pe.createElement("div",{ref:Pn,className:st()(Ie.imageDimensions,we,ye?Ie.fullWidth:""),style:ke},pe.createElement("img",{className:Ie.img,ref:en}))))}},75890:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(95237),Ve=he(43604),st=he(99313),We=he(3113),it=he(25711),be=he(93938),yt=he(48136),vt=he(59301);const Je=(0,pe.forwardRef)(({callback:tt,showSaveButton:$e,value:Qe=""},Ee)=>{const ee=(0,pe.useRef)(),te=[{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 "}]}]}],ue=[{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}`}]}]}],ae=Pe=>{ee.current.setValue(ee.current.getValue()+" "+Pe.value+" ")},de=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:vt.createElement(Ie.Z,{className:be.Z.lists,gutter:[10,10]},te.map((Pe,Ae)=>vt.createElement(Ve.Z,{flex:"110px",className:be.Z.item},vt.createElement("div",null,vt.createElement(it.Z,{value:`$$${Pe.value}$$`}),Pe.name),vt.createElement("div",{className:be.Z.children},Pe.children.map((xe,Le)=>vt.createElement("div",{key:Le},vt.createElement("h1",null,xe.name),vt.createElement(Ie.Z,{gutter:[10,10]},xe.data.map((Te,He)=>vt.createElement(Ve.Z,{key:He,onClick:()=>ae(Te),className:be.Z.diamond},vt.createElement(it.Z,{value:"`$$"+Te.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:vt.createElement(Ie.Z,{className:be.Z.lists,gutter:[10,10]},ue.map((Pe,Ae)=>vt.createElement(Ve.Z,{flex:"110px",className:be.Z.item},vt.createElement("div",null,vt.createElement(it.Z,{value:"`$$"+Pe.value+"$$`"}),Pe.name),vt.createElement("div",{className:be.Z.children},Pe.children.map((xe,Le)=>vt.createElement("div",{key:Le},xe.name&&vt.createElement("h1",null,xe.name),vt.createElement(Ie.Z,{gutter:[10,10]},xe.data.map((Te,He)=>vt.createElement(Ve.Z,{key:He,onClick:()=>ae(Te),className:be.Z.diamond},vt.createElement(it.Z,{value:"`$$"+Te.value+"$$`"}))))))))))}],ve=()=>{var Pe=document.createElement("div");Pe.innerHTML=ee.current.getValue();var Ae=Pe.innerText;return tt&&tt(Ae),Ae};return(0,pe.useImperativeHandle)(Ee,()=>({getData:ve})),vt.createElement("div",{className:be.Z.mathWrap},vt.createElement(st.default,{defaultActiveKey:"1",items:de}),vt.createElement("math-field",{locale:"zh_cn",className:be.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ee,style:{width:800,marginTop:30,fontSize:18}},Qe||""),$e&&vt.createElement("div",{className:be.Z.button},vt.createElement(We.ZP,{size:"large",onClick:ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});zt.Z=Je},97267:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(93314),Ve=he(3113),st=Object.defineProperty,We=Object.defineProperties,it=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Je=(Ee,ee,te)=>ee in Ee?st(Ee,ee,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ee[ee]=te,tt=(Ee,ee)=>{for(var te in ee||(ee={}))yt.call(ee,te)&&Je(Ee,te,ee[te]);if(be)for(var te of be(ee))vt.call(ee,te)&&Je(Ee,te,ee[te]);return Ee},$e=(Ee,ee)=>We(Ee,it(ee));const Qe=({img:Ee,buttonProps:ee={},styles:te={},customText:ue,ButtonText:ae,ButtonClick:de,Buttonclass:ve,ButtonTwo:Pe,imgStyles:Ae,loading:xe=!1})=>pe.createElement("section",{className:"tc animated fadeIn",style:tt(tt({},{color:"#999",margin:"100px auto",visibility:xe?"hidden":"visible"}),te)},pe.createElement("img",{src:Ee||Ie,style:$e(tt({},Ae),{pointerEvents:"none",userSelect:"none"})}),pe.createElement("p",{className:"mt20 font14"},ue||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ae&&pe.createElement(Ve.ZP,tt({className:ve,onClick:de},ee),ae),Pe&&Pe);zt.Z=Qe},46898:function(gn,zt,he){"use strict";he.d(zt,{Q:function(){return it}});var pe=he(59301),Ie=he(57809),Ve=he(5112),st=he(88897),We=he(59301),it=(yt=>(yt[yt.Number=1]="Number",yt[yt.Percent=2]="Percent",yt))(it||{});const be=({value:yt,onChange:vt,disabled:Je,hidePercentOption:tt=!1,percentType:$e="select"})=>{const Qe=(0,pe.useMemo)(()=>tt?1:2,[tt]),[Ee,ee]=(0,pe.useState)(Qe);console.log(Ee);const te=ae=>yt.type===1?`${ae}\u5206`:`${ae}%`,ue=(0,pe.useCallback)(ae=>{if(Ee===1){const de=ae.replace("\u5206","");return isNaN(parseInt(de,10))?0:de}else return ae.replace("%","")},[Ee]);return(0,pe.useEffect)(()=>{ee(yt.type)},[yt]),We.createElement("div",{style:{display:"flex",alignItems:"center"}},$e=="select"&&We.createElement(Ie.default,{size:"large",onChange:ae=>{ee(ae),vt({type:ae,inputValue:ae===1?5:20})},value:Ee||Qe,style:{width:100},options:tt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Je}),$e=="radio"&&We.createElement(Ve.ZP.Group,{size:"large",onChange:ae=>{const de=ae.target.value;ee(de),vt({type:de,inputValue:de===1?5:20})},value:Ee||Qe,disabled:Je},!tt&&We.createElement(Ve.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),We.createElement(Ve.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),$e=="radio"&&We.createElement("div",{style:{marginRight:"10px",color:"#000000"}},yt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),We.createElement(st.Z,{size:"large",disabled:Je,value:yt.inputValue,style:{width:"120px"},parser:ue,addonAfter:yt.type===1?"\u5206":"%",max:Ee===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:ae=>{vt({type:Ee,inputValue:ae})}}),$e=="radio"&&yt.type==2&&We.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};zt.Z=be},79646:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return ve}});var pe=he(59301),Ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ve=he(3113),st=he(63093),We=he(48551),it=he(6848),be=he(58130),yt=he(79124),vt=he(97267),Je=he(10148),tt=he(63486),$e=he(59301),Qe=Object.defineProperty,Ee=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(Pe,Ae,xe)=>Ae in Pe?Qe(Pe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Pe[Ae]=xe,ae=(Pe,Ae)=>{for(var xe in Ae||(Ae={}))ee.call(Ae,xe)&&ue(Pe,xe,Ae[xe]);if(Ee)for(var xe of Ee(Ae))te.call(Ae,xe)&&ue(Pe,xe,Ae[xe]);return Pe},de=(Pe,Ae,xe)=>new Promise((Le,Te)=>{var He=Ze=>{try{Ke(xe.next(Ze))}catch(Mt){Te(Mt)}},ze=Ze=>{try{Ke(xe.throw(Ze))}catch(Mt){Te(Mt)}},Ke=Ze=>Ze.done?Le(Ze.value):Promise.resolve(Ze.value).then(He,ze);Ke((xe=xe.apply(Pe,Ae)).next())}),ve=({editOffice:Pe="view",data:Ae,theme:xe,type:Le,filename:Te,monacoEditor:He,className:ze,style:Ke,close:Ze,onClose:Mt,hasMask:Xe,disabledDownload:Ft,onImgDimensions:Ct,showNodata:Nt,recordInfo:It})=>{const[_t,lt]=(0,pe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[je,Et]=(0,pe.useState)(""),[ln,Ht]=(0,pe.useState)(),xt=window.ENV==="build"?"/react/build":"",Bt=location.host.startsWith("localhost")?Je.Z.PROXY_SERVER:Je.Z.API_SERVER,Hn=10*(1024*1024),pn=(0,pe.useRef)();Ae!=null&&Ae.startsWith("/api")&&Le!=="txt"&&(Ae=Je.Z.API_SERVER+Ae);const _n=ui=>ui.substring(ui.lastIndexOf("/")+1).split(".").pop();Te&&He&&(He.filename=Te),(0,pe.useEffect)(()=>{var ui,Ln;const Wt=(Ln=(ui=document.cookie)==null?void 0:ui.replace(/\s/g,""))==null?void 0:Ln.split(";");Wt==null||Wt.map(Vt=>{let mt=Vt.split("=");mt[0]==="_educoder_session"&&Et(mt[1])})},[]),(0,pe.useEffect)(()=>{Le==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?Ht({url:Ae,fileType:_n(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):Lt())},[Le,Ae]);const Lt=()=>de(void 0,null,function*(){console.log("data:",Ae);let ui=Ae;Ae.startsWith("http")||(ui=location.origin+ui);let Ln=new URL(ui).pathname.split("/").pop();const Wt=yield(0,yt.gJ)({attachment_id:Ln});Wt.url=Bt+Wt.url,Ht(Wt)}),Un=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){Gn();return}(0,be.Sv)(Te||"educoder",Ae,Te)},Gn=()=>{It&&(0,tt.fc)({id:It==null?void 0:It.id,watch_type:1,course_id:It==null?void 0:It.course_id}),(0,be.Nd)(Te||"educoder",decodeURIComponent(Ae))};return $e.createElement("div",{style:ae({},Ke||{}),className:`${Xe&&Ie.bgBlack} ${Le?Ie.wrp:"hide"}`},Ze&&$e.createElement("div",{className:Ie.close,ref:pn},!!Ct&&$e.createElement(it.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>pn.current},$e.createElement("span",{onClick:()=>{Mt(),Ct()}},$e.createElement("i",{className:"icon-yulanpizhu"}))),!Ft&&$e.createElement(it.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>pn.current},$e.createElement("span",{onClick:Gn},$e.createElement("i",{className:"icon-quxiaozhiding"}))),$e.createElement(it.Z,{title:"\u5173\u95ED",getPopupContainer:()=>pn.current},$e.createElement("span",{className:"",onClick:Mt},$e.createElement("i",{className:"icon-guanbi1"})))),$e.createElement("div",{className:`${Ie[ze]} ${ze} ${Ie.monaco} ${Le==="txt"?"show":"hide"}`},Le==="txt"&&$e.createElement($e.Fragment,null,$e.createElement(We.ZP,ae({},He)))),Le==="audio"&&$e.createElement("audio",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ae}`,autoPlay:!0}),Le==="video"&&$e.createElement($e.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?$e.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):$e.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),Le==="office"&&ln&&$e.createElement("iframe",{src:`${xt}/office.html?key=${ln.key}&url=${btoa(ln.url)}&callbackUrl=${Bt+(ln.callbackUrl||"")}&fileType=${ln.fileType}&title=${ln.title||""}&model=${Pe}&officeServer=${Je.Z.ONLYOFFICE}&disabledDownload=${!!Ft}`}),Le==="html"&&$e.createElement("iframe",{src:Ae+"&disposition=inline"}),Le==="pdf"&&$e.createElement("iframe",{src:`${xt}/js/pdfview/index.html?filename=${Te||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!Ft}`}),Le==="image"&&$e.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(Le==="other"||Le==="download")&&$e.createElement($e.Fragment,null,Nt?$e.createElement(vt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:$e.createElement(Ve.ZP,{icon:$e.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Un,disabled:Ft},"\u4E0B\u8F7D")}):$e.createElement(Ve.ZP,{type:"primary",size:"middle",onClick:Un,disabled:Ft},$e.createElement(st.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(gn,zt,he){"use strict";he.d(zt,{z:function(){return Le},Z:function(){return Te}});var pe=he(59301),Ie=he(1751),Ve=he(31087),st=he(64018),We=he(37312),it=he(10148),be=he(58130),yt=he(15342),vt=he(1012),Je=he(79646),tt=he(59301),Qe=({html:He})=>{const ze=(0,pe.useRef)(null),Ke=(0,pe.useRef)(null),Ze=`.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,pe.useEffect)(()=>{const Mt=ze.current.attachShadow({mode:"open"});Ke.current=document.createElement("div"),Ke.current.className="markdown-body",Ke.current.innerHTML=He,Mt.appendChild(Ke.current);const Xe=document.createElement("style");return Xe.textContent=Ze,Mt.appendChild(Xe),()=>{Mt.innerHTML=""}},[]),(0,pe.useEffect)(()=>{Ke.current&&(Ke.current.innerHTML=He)},[He]),tt.createElement("div",{ref:ze})},Ee=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ae=(He,ze,Ke)=>ze in He?Ee(He,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):He[ze]=Ke,de=(He,ze)=>{for(var Ke in ze||(ze={}))te.call(ze,Ke)&&ae(He,Ke,ze[Ke]);if(ee)for(var Ke of ee(ze))ue.call(ze,Ke)&&ae(He,Ke,ze[Ke]);return He};const ve="@\u2581\u2581@",Pe="@\u2581@",Ae=/<pre[^>]*>/g;function xe(He){let ze=document.createElement("div");return ze.innerHTML=He,ze.childNodes.length===0?"":ze.childNodes[0].nodeValue}const Le=(He,ze)=>{He=He||"";const Ke=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Mt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Xe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ze?He.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ke,(Ft,Ct,Nt,It,_t,lt,je)=>{const Et=Ct||It||lt,ln=Nt||_t||je||"?";return it.Z.API_SERVER+"/api/attachments/"+Et+ln+"&t="+(0,be.Jn)(Et,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(He=He.replace(Xe,(Ft,Ct,Nt,It,_t,lt,je)=>{const Et=Ct||It||lt,ln=Nt||_t||je||"?";return it.Z.API_SERVER+"/attachments/download/"+Et+ln+"&t="+(0,be.Jn)(Et,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(Ke,(Ft,Ct,Nt,It,_t,lt,je)=>{const Et=Ct||It||lt,ln=Nt||_t||je||"?";return it.Z.API_SERVER+"/api/attachments/"+Et+ln+"&t="+(0,be.Jn)(Et,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(Ze,(Ft,Ct,Nt,It,_t)=>{const lt=Ct||It,je=Nt||_t||"";return'"'+it.Z.API_SERVER+"/api/attachments/"+lt+je+lt+je+"&t="+(0,be.Jn)(lt,Date.now())}).replace(Mt,(Ft,Ct,Nt,It,_t)=>{const lt=Ct||It,je=Nt||_t||"";return"("+it.Z.API_SERVER+"/files/uploads/"+lt+je+lt+je+"&t="+(0,be.Jn)(lt,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,`
|
|
|
`),He)};var Te=({value:He="",className:ze,showTextOnly:Ke,showLines:Ze,style:Mt={},stylesPrev:Xe={},highlightKeywords:Ft,showProgramFill:Ct,isProgramFill:Nt,disabledFill:It=!1,programFillValue:_t,onFillChange:lt=ln=>{},onFillBlur:je=()=>{},onFillFocus:Et=()=>{}})=>{let ln=String(He);const[Ht,xt]=(0,pe.useState)(""),[Bt,rn]=(0,pe.useState)("office"),[Hn,pn]=(0,pe.useState)([]),_n=(0,pe.useRef)("a"+(0,vt.Z)()),Lt={},Un=(Oe,we,ye)=>{const ke=document.createElement(Oe===Pe?"input":"textarea");ke.style.width="100%",ke.style.height=Oe===Pe?"40px":"151px",ke.rows=5,ke.spellcheck=!1,ke.name="edu-program-fill",ke.placeholder="\u8BF7\u8F93\u5165",ke.dataset.id=we;const Ge=Object.keys(Lt).length;return Lt[Ge]=ke,`<span class="edu-program-fill-wrap ${Oe===Pe?"":"show"}" style="width:${Oe===Pe?"400px":"100%"}" title=${ye||""}><span>${ke.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Gn(Oe){return Oe=Oe.replace(/!\[.*?\]\(.*?\)/g,""),Oe=Oe.replace(/\[.*?\]\(.*?\)/g,""),Oe=Oe.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Oe=Oe.replace(/<embed.*?>/g,""),Oe=Oe.replace(/<img.*?>/g,""),Oe=Oe.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Oe=Oe.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Oe=Oe.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Oe=Oe.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Oe}const ui=Oe=>Oe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(we,ye){let ke=ye.replace(/(\n|\r)/g,"").split("}"),Ge=[];return ke.map(Fe=>{Fe!=""&&Ge.push(`.${_n.current} ${Fe}`)}),`<style>${Ge.join("}")}</style>`}),Ln=(0,pe.useMemo)(()=>{try{const ke=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ge=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Fe=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,pt=/\(\/attachments\/download\//g;ln=ln.replace(pt,"("+it.Z.API_SERVER+"/attachments/download/").replace(ke,"("+it.Z.API_SERVER+"/api/attachments/").replace(Ge,'"'+it.Z.API_SERVER+"/api/attachments/").replace(Fe,'"'+it.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(ke){}if(Ct){let ke=-1;return ln=ln.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ge,Fe,pt){var tn;return++ke,Un(Ge,ke,(tn=_t==null?void 0:_t[ke])==null?void 0:tn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ui(ln||"")}</pre>`}let Oe=ui(ln);Oe=(0,Ve.ZP)(Oe);const we=(0,Ve.ez)();ln.match(/\[TOC\]/)&&(Oe=Oe.replace("<p>[TOC]</p>",(0,Ve.Qv)()),(0,Ve.Iy)()),Oe=Oe.replace(/(__special_katext_id_\d+__)/g,(ke,Ge)=>{const{type:Fe,expression:pt}=we[Ge];return(0,yt.renderToString)(xe(pt)||"",{displayMode:Fe==="block",throwOnError:!1,output:"html"})}),Oe=Oe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ve.AL)();const ye=document.createElement("div");if(ye.innerHTML=Oe,Ke)return ye.innerText;if(Ft){const ke=Ft.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ye(ye,ke),ye.innerHTML}return setTimeout(()=>ft(),500),ye.innerHTML},[ln,Ft]);(0,pe.useEffect)(()=>{Zt.current&&Zt.current.querySelectorAll(["input","textarea"]).forEach(we=>{we.oninput=Wt,we.onblur=Vt,we.onfocus=mt})},[Hn]),(0,pe.useEffect)(()=>{var Oe,we,ye,ke,Ge;if(_t!=null&&_t.length)try{const Fe=Zt.current.querySelectorAll(".edu-program-fill-score"),pt=Zt.current.querySelectorAll('[name="edu-program-fill"]');for(const[tn,en]of pt.entries())en.value=((Oe=_t==null?void 0:_t[tn])==null?void 0:Oe.value)||"",((we=_t==null?void 0:_t[tn])==null?void 0:we.type)==="warning"?en.className="program-fill-warning":((ye=_t==null?void 0:_t[tn])==null?void 0:ye.type)==="success"?en.className="program-fill-success":en.className="";for(const[tn,en]of Fe.entries())en.innerHTML=(ke=_t==null?void 0:_t[tn])!=null&&ke.score?`${(Ge=_t==null?void 0:_t[tn])==null?void 0:Ge.score}\u5206`:"";pn(_t)}catch(Fe){console.log(Fe,"error")}},[_t]);const Wt=Oe=>{Hn[Oe.target.dataset.id]=Hn[Oe.target.dataset.id]||{},Hn[Oe.target.dataset.id].value=Oe.target.value,pn([...Hn]),lt(Hn,Oe.target.dataset.id)},Vt=Oe=>{Hn[Oe.target.dataset.id]=Hn[Oe.target.dataset.id]||{},Hn[Oe.target.dataset.id].value=Oe.target.value,pn([...Hn]),je(Hn,Oe.target.dataset.id)},mt=Oe=>{Hn[Oe.target.dataset.id]=Hn[Oe.target.dataset.id]||{},Hn[Oe.target.dataset.id].value=Oe.target.value,pn([...Hn]),Et(Hn,Oe.target.dataset.id)};function Ye(Oe,we){return Oe.childNodes.forEach(ye=>{var ke;if(ye.childNodes.length>0)Ye(ye,we);else if(ye.nodeName!=="IMG")if(ye.innerHTML)ye.innerHTML=(ke=ye.innerHTML)==null?void 0:ke.replace(new RegExp(we,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ge=document.createElement("span");Ge.innerHTML=ye.textContent.replace(new RegExp(we,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ye.replaceWith(Ge)}})}const Zt=(0,pe.useRef)();Ve.jb.WebkitLineClamp=Ze,Ze&&(Mt=de(de({},Mt),Ve.jb));function Gt(Oe){let we=Oe.target;if(we.tagName.toUpperCase()==="A"){let ye=we.getAttribute("href");if(ye.indexOf("office")>-1)Oe.preventDefault(),xt(ye),rn("office");else if(ye.indexOf("application/pdf")>-1)Oe.preventDefault(),xt(ye),rn("pdf");else if(ye.indexOf("text/html")>-1)Oe.preventDefault(),xt(ye),rn("html");else if(ye.startsWith("#")){Oe.preventDefault();let ke=document.getElementById(ye.replace("#",""));ke&&ke.scrollIntoView(!0)}}}const ft=()=>{var Oe;const we=(Oe=Zt.current)==null?void 0:Oe.querySelectorAll("video");we==null||we.forEach(ye=>{if(ye.oncontextmenu=()=>!1,ye.src.indexOf(".m3u8")>-1&&!ye.canPlayType("application/vnd.apple.mpegurl")){if(We.ZP.isSupported()){var ke=new We.ZP;ke.loadSource(ye.src),ke.attachMedia(ye)}}})};(0,pe.useEffect)(()=>{if(Zt.current&&Ln&&Ln.match(Ae)&&window.PR.prettyPrint(),Zt.current)return Zt.current.addEventListener("click",Gt),()=>{var Oe;(Oe=Zt.current)==null||Oe.removeEventListener("click",Gt),(0,Ve.AL)(),(0,Ve.Iy)()}},[Ln,Zt.current,Gt]),(0,pe.useEffect)(()=>{var Oe;const we=ye=>{ye.preventDefault(),ye.clipboardData.setData("text",window.getSelection().toString())};return(Oe=Zt.current)==null||Oe.addEventListener("copy",we),()=>{var ye;(ye=Zt.current)==null||ye.removeEventListener("copy",we)}},[Zt.current]);const nt=Oe=>/<style[\s\S]*?>/i.test(Oe||"");return pe.createElement(pe.Fragment,null,Ke&&pe.createElement("div",{ref:Zt},Ln),!Ke&&!nt(Ln)&&pe.createElement("div",{ref:Zt,style:de({},Mt),className:`${ze||""} ${It?"disabled-fill":""} markdown-body ${_n.current}`,dangerouslySetInnerHTML:{__html:Ln}}),!Ke&&nt(Ln)&&pe.createElement(Qe,{html:Ln}),pe.createElement(Je.Z,{close:!0,data:Ht,type:Ht!=null&&Ht.length?Bt:"",style:de({},Xe),onClose:()=>xt("")}))}},44809:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Le}});var pe=he(59301),Ie=he(9221),Ve=Object.defineProperty,st=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,be=(Te,He,ze)=>He in Te?Ve(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Te[He]=ze,yt=(Te,He)=>{for(var ze in He||(He={}))We.call(He,ze)&&be(Te,ze,He[ze]);if(st)for(var ze of st(He))it.call(He,ze)&&be(Te,ze,He[ze]);return Te},vt=(Te,He)=>{var ze={};for(var Ke in Te)We.call(Te,Ke)&&He.indexOf(Ke)<0&&(ze[Ke]=Te[Ke]);if(Te!=null&&st)for(var Ke of st(Te))He.indexOf(Ke)<0&&it.call(Te,Ke)&&(ze[Ke]=Te[Ke]);return ze};const tt={header:{cell:Te=>{var He=Te,{onResize:ze,width:Ke}=He,Ze=vt(He,["onResize","width"]);return Ke?pe.createElement(Ie.Resizable,{width:Ke,height:0,handle:pe.createElement("span",{className:"react-resizable-handle",onClick:Mt=>{Mt.stopPropagation()}}),onResize:ze,draggableOpts:{enableUserSelectHack:!1}},pe.createElement("th",yt({},Ze))):pe.createElement("th",yt({},Ze))}}};var $e=he(2595),Qe=Object.defineProperty,Ee=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,de=(Te,He,ze)=>He in Te?Qe(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Te[He]=ze,ve=(Te,He)=>{for(var ze in He||(He={}))ue.call(He,ze)&&de(Te,ze,He[ze]);if(te)for(var ze of te(He))ae.call(He,ze)&&de(Te,ze,He[ze]);return Te},Pe=(Te,He)=>Ee(Te,ee(He)),Ae=(Te,He)=>{var ze={};for(var Ke in Te)ue.call(Te,Ke)&&He.indexOf(Ke)<0&&(ze[Ke]=Te[Ke]);if(Te!=null&&te)for(var Ke of te(Te))He.indexOf(Ke)<0&&ae.call(Te,Ke)&&(ze[Ke]=Te[Ke]);return ze},Le=Te=>{var He=Te,{pagination:ze,resColumns:Ke,dataSource:Ze,onRow:Mt}=He,Xe=Ae(He,["pagination","resColumns","dataSource","onRow"]);const[Ft,Ct]=(0,pe.useState)(!1),[Nt,It]=(0,pe.useState)([{}]),_t=(0,pe.useRef)(null);(0,pe.useEffect)(()=>{let je=Ke;je=je.map((Et,ln)=>Pe(ve({},Et),{onHeaderCell:Ht=>({width:Ht.width,onResize:lt(ln)})})),It(je)},[]),(0,pe.useEffect)(()=>{_t.current=Nt},[Nt]);const lt=je=>(Et,{size:ln})=>{const Ht=[..._t.current];Ht[je]=Pe(ve({},Ht[je]),{width:ln.width}),It(Ht)};return pe.createElement("div",null,pe.createElement($e.default,Pe(ve({bordered:!0,components:tt,columns:Nt,dataSource:Ze,pagination:ze,loading:Ft,onRow:Mt},Xe),{rowKey:je=>je.key||je.id})))}},2567:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return He},P:function(){return xe}});var pe=he(59301),Ie=he(78241),Ve=he(43418),st=he(5112),We=he(92832),it=he(2595),be={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},yt=he(20387),vt=Object.defineProperty,Je=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ee=(ze,Ke,Ze)=>Ke in ze?vt(ze,Ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ze[Ke]=Ze,te=(ze,Ke)=>{for(var Ze in Ke||(Ke={}))Qe.call(Ke,Ze)&&ee(ze,Ze,Ke[Ze]);if($e)for(var Ze of $e(Ke))Ee.call(Ke,Ze)&&ee(ze,Ze,Ke[Ze]);return ze},ue=(ze,Ke)=>Je(ze,tt(Ke)),ae=(ze,Ke)=>{var Ze={};for(var Mt in ze)Qe.call(ze,Mt)&&Ke.indexOf(Mt)<0&&(Ze[Mt]=ze[Mt]);if(ze!=null&&$e)for(var Mt of $e(ze))Ke.indexOf(Mt)<0&&Ee.call(ze,Mt)&&(Ze[Mt]=ze[Mt]);return Ze},de=(ze,Ke,Ze)=>new Promise((Mt,Xe)=>{var Ft=It=>{try{Nt(Ze.next(It))}catch(_t){Xe(_t)}},Ct=It=>{try{Nt(Ze.throw(It))}catch(_t){Xe(_t)}},Nt=It=>It.done?Mt(It.value):Promise.resolve(It.value).then(Ft,Ct);Nt((Ze=Ze.apply(ze,Ke)).next())});const ve=({studentNames:ze,total:Ke})=>{const Ze=["","\u4E00","\u4E24","\u4E09"];return Ke>3?pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:be.orangeColor},ze==null?void 0:ze.join("\u3001")),"\u7B49",pe.createElement("span",{className:be.orangeColor},Ke),"\u540D\u5B66\u751F"):pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:be.orangeColor},ze==null?void 0:ze.join("\u3001")),Ze[Ke],"\u540D\u5B66\u751F")},Pe=({used:ze,copy:Ke,canNotCopy:Ze,studentNames:Mt,studentCount:Xe,inPaper:Ft,is_random:Ct=!1,position:Nt=""})=>{const It=()=>{if(Ke>0&&Ze>0)return pe.createElement(pe.Fragment,null,"\u5176\u4E2D",pe.createElement("span",{className:be.orangeColor},Ke),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",pe.createElement("span",{className:be.orangeColor},Ze),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(Ke>0&&Ze===0)return pe.createElement(pe.Fragment,null,"\u5176\u4E2D",pe.createElement("span",{className:be.orangeColor},Ke),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(Ke===0&&Ze>0)return pe.createElement(pe.Fragment,null,"\u5176\u4E2D",pe.createElement("span",{className:be.orangeColor},Ze),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},_t=Nt||(Ft?"\u8BD5\u5377":"\u8BFE\u7A0B");return pe.createElement("span",null,pe.createElement(ve,{studentNames:Mt,total:Xe}),"\u5B66\u4E60\u8FC7",_t,"\u4E2D\u7684",pe.createElement("span",{className:be.orangeColor},ze),"\u4E2A\u9879\u76EE\uFF0C",It(),"\u3002\u8BF7\u9009\u62E9",Ct?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},Ae=({onCancel:ze,onOk:Ke,visible:Ze,inPaper:Mt,renderData:Xe,type:Ft,isMultipleCourse:Ct=!1})=>{const[Nt]=Ie.default.useForm(),[It,_t]=(0,pe.useState)(1),[lt,je]=(0,pe.useState)(!1),Et=(0,pe.useMemo)(()=>(Xe==null?void 0:Xe.total_num)===1&&(Xe==null?void 0:Xe.can_copy_num)===1,[Xe]),ln=(0,pe.useMemo)(()=>{var Ht;return(Ht=Xe==null?void 0:Xe.course_data_list)==null?void 0:Ht.filter(xt=>xt.is_show)},[Xe]);return pe.createElement(pe.Fragment,null,Et?pe.createElement(Ve.default,{centered:!0,closable:!0,open:Ze,destroyOnClose:!0,title:"\u63D0\u793A",className:be.antdModal,width:682,confirmLoading:lt,onCancel:ze,onOk:()=>de(void 0,null,function*(){var Ht;je(!0);let xt=It;if(Ct){const Bt=te({},Nt.getFieldsValue());xt=(Ht=Xe==null?void 0:Xe.course_data_list)==null?void 0:Ht.map(rn=>Bt[rn.id]!==void 0?ue(te({},rn),{is_copy:Bt[rn.id]}):rn)}yield Ke(xt),je(!1)})},pe.createElement("div",{className:be.content,style:{marginBottom:20}},Ct?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":pe.createElement(pe.Fragment,null,pe.createElement(ve,{studentNames:Xe==null?void 0:Xe.student_names,total:Xe==null?void 0:Xe.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),Ct?pe.createElement(Ie.default,{form:Nt,preserve:!1},ln==null?void 0:ln.map(Ht=>pe.createElement(pe.Fragment,{key:Ht.id},pe.createElement("h3",{className:"ml15 mb5"},Ht.name),pe.createElement(Ie.default.Item,{name:Ht.id,initialValue:1},pe.createElement(st.ZP.Group,{className:be.content},pe.createElement(st.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),pe.createElement(st.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):pe.createElement(st.ZP.Group,{value:It,onChange:Ht=>_t(Ht.target.value),className:be.content,style:{marginBottom:30}},pe.createElement(st.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),pe.createElement(st.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),pe.createElement("div",null,pe.createElement("div",{className:be.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),pe.createElement("div",{className:be.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),pe.createElement("div",{className:`${be.content} ${be.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):pe.createElement(Ve.default,{centered:!0,closable:!0,destroyOnClose:!0,open:Ze,confirmLoading:lt,title:"\u63D0\u793A",width:682,onCancel:ze,onOk:()=>de(void 0,null,function*(){var Ht;je(!0);let xt=0;if(Ct){const Bt=te({},Nt.getFieldsValue());xt=(Ht=Xe==null?void 0:Xe.course_data_list)==null?void 0:Ht.map(rn=>Bt[rn.id]!==void 0?ue(te({},rn),{is_use:Bt[rn.id]}):rn)}yield Ke(xt),je(!1)})},pe.createElement("div",{className:be.content},pe.createElement(ve,{studentNames:Xe==null?void 0:Xe.student_names,total:Xe==null?void 0:Xe.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",Ct?pe.createElement(Ie.default,{form:Nt,preserve:!1},pe.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),ln==null?void 0:ln.map(Ht=>pe.createElement(pe.Fragment,{key:Ht.id},pe.createElement("h3",{className:"ml15 mb5"},Ht.name),pe.createElement(Ie.default.Item,{name:Ht.id,initialValue:1},pe.createElement(st.ZP.Group,{className:be.content},pe.createElement(st.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),pe.createElement(st.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):pe.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",pe.createElement("span",{className:be.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},xe=function(){const[ze,Ke]=(0,pe.useState)(!1),[Ze,Mt]=(0,pe.useState)();return[ze,()=>Ke(!1),Ze,Ct=>de(this,null,function*(){var Nt;const It=Ct,{isImportMultipleCourse:_t=!1}=It,lt=ae(It,["isImportMultipleCourse"]);console.log(Ct);const je=(Ct==null?void 0:Ct.result)||(yield(0,yt.Tr)(lt));return"status"in je?!1:_t?((Nt=je==null?void 0:je.course_data_list)==null?void 0:Nt.some(ln=>ln.is_show))?(Mt(je),Ke(!0),!0):je.course_data_list||[]:je.student_count===0?!1:(Mt(je),Ke(!0),!0)})]},Le=ze=>{const[Ke]=Ie.default.useForm(),[Ze,Mt]=(0,pe.useState)(!1),{onCancel:Xe,onOk:Ft,visible:Ct,inPaper:Nt=!1,renderData:It,type:_t,isMultipleCourse:lt=!1,position:je}=ze;let Et=(0,pe.useMemo)(()=>Nt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:be.tableCell,render(xt,Bt){return pe.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank"},xt)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(xt,Bt)=>pe.createElement(pe.Fragment,null,pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?Bt.stage_shixun_id:Bt.shixun_course_id||Bt.id}`,"is_copy"],initialValue:1},pe.createElement(st.ZP.Group,null,pe.createElement(st.ZP,{value:1},"\u662F"),pe.createElement(st.ZP,{value:0},"\u5426"))),pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?Bt==null?void 0:Bt.stage_shixun_id:Bt.shixun_course_id||Bt.id}`,"is_use"],hidden:!0,initialValue:1},pe.createElement(We.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:be.tableCell,render(xt,Bt){return pe.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank"},xt)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(xt,Bt)=>pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?Bt.stage_shixun_id:Bt.shixun_course_id||Bt.id}`,"is_use"],initialValue:1},pe.createElement(st.ZP.Group,null,pe.createElement(st.ZP,{value:1},"\u662F"),pe.createElement(st.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(xt,Bt)=>pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?Bt.stage_shixun_id:Bt.shixun_course_id||Bt.id}`,"is_copy"],initialValue:1},pe.createElement(st.ZP.Group,null,pe.createElement(st.ZP,{value:1},"\u662F"),pe.createElement(st.ZP,{value:0},"\u5426")))}],[Nt]),ln=(0,pe.useMemo)(()=>Nt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:be.tableCell,align:"center",ellipsis:!0,render:(xt,Bt)=>pe.createElement(pe.Fragment,null,pe.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank"},xt),pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?Bt==null?void 0:Bt.stage_shixun_id:Bt.shixun_course_id||Bt.id}`,"is_copy"],hidden:!0,initialValue:0},pe.createElement(We.default,{type:"hidden"})),pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?Bt==null?void 0:Bt.stage_shixun_id:Bt.shixun_course_id||Bt.id}`,"is_use"],hidden:!0,initialValue:1},pe.createElement(We.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:be.tableCell,ellipsis:!0,align:"center",render:(xt,Bt)=>pe.createElement("a",{href:`/shixuns/${Bt.identifier}/challenges`,target:"_blank"},xt)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(xt,Bt)=>pe.createElement(pe.Fragment,null,pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?Bt==null?void 0:Bt.stage_shixun_id:Bt.shixun_course_id||Bt.id}`,"is_use"],initialValue:0},pe.createElement(st.ZP.Group,null,pe.createElement(st.ZP,{value:1},"\u662F"),pe.createElement(st.ZP,{value:0},"\u5426"))),pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?Bt==null?void 0:Bt.stage_shixun_id:Bt.shixun_course_id||Bt.id}`,"is_copy"],hidden:!0,initialValue:0},pe.createElement(We.default,{type:"hidden"})))}],[Nt]);if(lt){const xt={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:be.tableCell,render:(Bt,rn)=>pe.createElement("a",{href:`/classrooms/${rn.course_id}`},Bt)};Et=[xt,...Et],ln=[xt,...ln]}const Ht=(0,pe.useMemo)(()=>Pe({used:It==null?void 0:It.repeat_shixun_num,copy:It==null?void 0:It.can_copy_num,canNotCopy:It==null?void 0:It.no_copy_num,studentNames:It==null?void 0:It.student_names,studentCount:It==null?void 0:It.student_count,is_random:It==null?void 0:It.is_random,inPaper:Nt,position:je}),[It,Nt,je]);return pe.createElement(Ve.default,{title:"\u63D0\u793A",centered:!0,open:Ct,confirmLoading:Ze,onOk:()=>de(void 0,null,function*(){Mt(!0);const xt=Ke.getFieldsValue(),Bt=Object.keys(xt).map(rn=>({id:parseInt(rn.split("_")[0]),course_id:parseInt(rn.split("_")[1]),is_use:xt[rn].is_use,is_copy:xt[rn].is_copy}));yield Ft(Bt),Mt(!1)}),onCancel:Xe,width:880,okText:"\u786E\u8BA4",className:be.antdModal,destroyOnClose:!0},pe.createElement(Ie.default,{form:Ke,preserve:!1},pe.createElement("div",{className:be.brief},Ht),pe.createElement("div",{style:{marginBottom:30}},pe.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),pe.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),pe.createElement("div",{className:be.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(It==null?void 0:It.can_copy_num)>0&&pe.createElement("div",null,pe.createElement("div",{className:be.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),pe.createElement(it.default,{columns:Et,className:be.antdTable,dataSource:It==null?void 0:It.can_copy_list,rowKey:_t==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(It==null?void 0:It.no_copy_num)>0&&pe.createElement("div",null,pe.createElement("div",{className:be.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),pe.createElement(it.default,{columns:ln,className:be.antdTable,dataSource:It==null?void 0:It.no_copy_list,rowKey:_t==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(It==null?void 0:It.no_use_list.length)>0&&(It==null?void 0:It.no_use_list.map(xt=>pe.createElement("div",{key:_t==="subject"?xt.stage_shixun_id:xt.shixun_course_id||xt.id},pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?xt==null?void 0:xt.stage_shixun_id:xt.shixun_course_id||xt.id}`,"is_copy"],hidden:!0,initialValue:0},pe.createElement(We.default,{type:"hidden"})),pe.createElement(Ie.default.Item,{name:[`${_t==="subject"?xt==null?void 0:xt.stage_shixun_id:xt.shixun_course_id||xt.id}`,"is_use"],hidden:!0,initialValue:1},pe.createElement(We.default,{type:"hidden"})))))))};var He=ze=>{const{modalType:Ke}=ze;return Ke==="multiple"?pe.createElement(Le,te({},ze)):pe.createElement(Ae,te({},ze))}},56017:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return We}});var pe=he(59301),Ie={flex_box_center:"flex_box_center___sOi51",flex_space_between:"flex_space_between___pl96A",flex_box_vertical_center:"flex_box_vertical_center___LVWaS",flex_box_center_end:"flex_box_center_end___bFW2z",flex_box_column:"flex_box_column___Iuosg",disabled:"disabled___kyQ47"},Ve=he(6848),We=({children:it,tips:be,title:yt,style:vt})=>{const Je=yt||pe.createElement("div",null,pe.createElement("div",null,"\u63D0\u793A\uFF1A"),pe.createElement("div",null,"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u96C6\u4E2D\u9605\u5377\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u6210\u7EE9\u8BC4\u5B9A\uFF0C\u4E0D\u53EF\u8FDB\u884C\u6B64\u64CD\u4F5C\u3002"),pe.createElement("div",null,"\uFF08\u5982\u9700\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5\uFF0C\u8BF7\u521B\u5EFA\u65B0\u8BD5\u5377\u540E\u53D1\u5E03\uFF09"));return it&&be?pe.createElement(Ve.Z,{overlayStyle:{maxWidth:"initial"},title:Je},pe.createElement("span",{className:Ie.disabled,style:vt},it)):it&&!be?pe.createElement(pe.Fragment,null,it):pe.createElement(pe.Fragment,null)}},36866:function(gn,zt,he){"use strict";he.d(zt,{h:function(){return Pe},Z:function(){return ve}});var pe=he(59301),Ie=he(57809),Ve=he(78241),st=he(3113),We=he(89780),it=he.n(We),be=he(79906),yt=Object.defineProperty,vt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Ee=(Ae,xe,Le)=>xe in Ae?yt(Ae,xe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Ae[xe]=Le,ee=(Ae,xe)=>{for(var Le in xe||(xe={}))$e.call(xe,Le)&&Ee(Ae,Le,xe[Le]);if(tt)for(var Le of tt(xe))Qe.call(xe,Le)&&Ee(Ae,Le,xe[Le]);return Ae},te=(Ae,xe)=>vt(Ae,Je(xe));const ue=Ie.default.Option,ae={labelCol:{span:4},wrapperCol:{span:20}},de={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var ve=({callback:Ae,onCancel:xe})=>{const[Le,Te]=(0,pe.useState)("python");function He(Ke){Te(de[Ke][1])}function ze(Ke){Ae(Ke)}return pe.createElement(Ve.default,te(ee({},ae),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ze,style:{width:500}}),pe.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},pe.createElement(Ie.default,{getPopupContainer:Ke=>Ke.parentNode,onChange:He},Object.keys(de).map(Ke=>pe.createElement(ue,{key:Ke,value:Ke},de[Ke][0])))),pe.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},pe.createElement(Pe,{mode:Le})),pe.createElement("div",{className:"flex-container flex-end"},pe.createElement(st.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(st.ZP,{type:"ghost",onClick:xe},"\u53D6\u6D88")))};function Pe({value:Ae,onChange:xe,mode:Le,options:Te={}}){const He=(0,pe.useRef)(),[ze,Ke]=(0,pe.useState)();return(0,pe.useEffect)(()=>{if(ze){let Ze=function(Mt){const Xe=Mt.getValue();xe&&xe(Xe)};return ze.on("change",Ze),()=>{ze.off("change",Ze)}}},[ze,xe]),(0,pe.useEffect)(()=>{ze&&ze.setOption("mode",Le)},[ze,Le]),(0,pe.useEffect)(()=>{ze&&(Ae!==ze.getValue()||Ae==="")&&setTimeout(()=>{ze.setValue(Ae||"")},300)},[ze,Ae]),(0,pe.useEffect)(()=>{if(He.current&&!ze){const Ze=it().fromTextArea(He.current,ee({mode:Le,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Te));Ke(Ze)}},[He.current,ze]),pe.createElement("div",{className:"my-codemirror-container"},pe.createElement("textarea",{ref:He}))}},23469:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return ki}});var pe=he(59301),Ie=he(89780),Ve=he.n(Ie),st=he(76374),We=he(79906),it=he(6313),be=he(25717),yt=he(99498),vt=he(25419),Je=he(67549),tt=he(25711),$e=({value:an="",className:nn,showTextOnly:Ut,showLines:bt,style:xn={}})=>{const hn=(0,pe.useMemo)(()=>"",[an]);return pe.createElement(pe.Fragment,null,pe.createElement("div",{dangerouslySetInnerHTML:{__html:hn}}))},Qe=he(59301),Ee=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,ve=(an,nn,Ut)=>nn in an?Ee(an,nn,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):an[nn]=Ut,Pe=(an,nn)=>{for(var Ut in nn||(nn={}))ae.call(nn,Ut)&&ve(an,Ut,nn[Ut]);if(ue)for(var Ut of ue(nn))de.call(nn,Ut)&&ve(an,Ut,nn[Ut]);return an},Ae=(an,nn)=>ee(an,te(nn));let xe=[{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 Le({onActionCallback:an,title:nn,icon:Ut,actionName:bt,className:xn="",children:hn}){function Tt(){an(bt)}return Qe.createElement("a",{title:nn,className:xn,onClick:Tt},Qe.createElement("i",{className:`${Ut}`}),hn)}var Te=({watch:an,showNullButton:nn,showNullProgramButton:Ut,onActionCallback:bt,fullScreen:xn,insertTemp:hn,hidetoolBar:Tt,extraUse:ot})=>{const fn=[...xe,{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 Qe.createElement("ul",{className:"markdown-toolbar-container"},!Tt&&fn.map((yn,li)=>Qe.createElement("li",{key:li},yn.actionName?Qe.createElement(Le,Ae(Pe({},yn),{onActionCallback:bt})):Qe.createElement("span",{className:"v-line"}))),nn?Qe.createElement("li",null,Qe.createElement(Le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:bt},Qe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ut?Qe.createElement(Qe.Fragment,null,Qe.createElement("li",null,Qe.createElement(Le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:bt},Qe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Qe.createElement("li",null,Qe.createElement(Le,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:bt},Qe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,hn&&Qe.createElement("li",null,Qe.createElement(Le,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${hn}`,onActionCallback:bt},Qe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ot&&Qe.createElement("li",null,ot),Qe.createElement("li",{className:"btn-full-screen"},Qe.createElement(Le,{icon:`${xn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:bt})))},He=he(50474),ze=he(78241),Ke=he(92832),Ze=he(3113),Mt=Object.defineProperty,Xe=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,_t=(an,nn,Ut)=>nn in an?Mt(an,nn,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):an[nn]=Ut,lt=(an,nn)=>{for(var Ut in nn||(nn={}))Nt.call(nn,Ut)&&_t(an,Ut,nn[Ut]);if(Ct)for(var Ut of Ct(nn))It.call(nn,Ut)&&_t(an,Ut,nn[Ut]);return an},je=(an,nn)=>Xe(an,Ft(nn));const Et={labelCol:{span:4},wrapperCol:{span:20}};var ln=({callback:an,onCancel:nn})=>{function Ut(bt){an(bt)}return pe.createElement(ze.default,je(lt({},Et),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ut,style:{width:500}}),pe.createElement(ze.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},pe.createElement(Ke.default,null)),pe.createElement(ze.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},pe.createElement(Ke.default,null)),pe.createElement("div",{className:"flex-container flex-end"},pe.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(Ze.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},Ht=he(36866),xt=he(56701),Bt=he(43418),rn=he(95237),Hn=he(65983),pn=he(59301),_n=({callback:an,onCancel:nn})=>{const Ut=document.createElement("canvas"),bt=Ut.getContext("2d");Ut.width=1e3,Ut.height=800,bt.fillStyle="#ffffff",bt.fillRect(0,0,Ut.width,Ut.height);const xn=Ut.toDataURL("image/png");return pn.createElement(Bt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},pn.createElement(rn.Z,{style:{height:"100vh"}},pn.createElement(Hn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xn,visible:!0,title:String(Date.now())},onOk:hn=>{an({src:hn.url})},onClose:nn})))},Lt=he(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 nn=1/0;an.selection.each(function(Ut){Ut instanceof go.Link||(nn=Math.min(Ut.position.x,nn))}),an.selection.each(function(Ut){Ut instanceof go.Link||Ut.move(new go.Point(nn,Ut.position.y))}),an.commitTransaction("aligning left")},Un.prototype.alignRight=function(){var an=this.diagram;an.startTransaction("aligning right");var nn=-1/0;an.selection.each(function(Ut){if(!(Ut instanceof go.Link)){var bt=Ut.actualBounds.x+Ut.actualBounds.width;nn=Math.max(bt,nn)}}),an.selection.each(function(Ut){Ut instanceof go.Link||Ut.move(new go.Point(nn-Ut.actualBounds.width,Ut.position.y))}),an.commitTransaction("aligning right")},Un.prototype.alignTop=function(){var an=this.diagram;an.startTransaction("alignTop");var nn=1/0;an.selection.each(function(Ut){Ut instanceof go.Link||(nn=Math.min(Ut.position.y,nn))}),an.selection.each(function(Ut){Ut instanceof go.Link||Ut.move(new go.Point(Ut.position.x,nn))}),an.commitTransaction("alignTop")},Un.prototype.alignBottom=function(){var an=this.diagram;an.startTransaction("aligning bottom");var nn=-1/0;an.selection.each(function(Ut){if(!(Ut instanceof go.Link)){var bt=Ut.actualBounds.y+Ut.actualBounds.height;nn=Math.max(bt,nn)}}),an.selection.each(function(Ut){Ut instanceof go.Link||Ut.move(new go.Point(Ut.actualBounds.x,nn-Ut.actualBounds.height))}),an.commitTransaction("aligning bottom")},Un.prototype.alignCenterX=function(){var an=this.diagram,nn=an.selection.first();if(nn){an.startTransaction("aligning Center X");var Ut=nn.actualBounds.x+nn.actualBounds.width/2;an.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(Ut-bt.actualBounds.width/2,bt.actualBounds.y))}),an.commitTransaction("aligning Center X")}},Un.prototype.alignCenterY=function(){var an=this.diagram,nn=an.selection.first();if(nn){an.startTransaction("aligning Center Y");var Ut=nn.actualBounds.y+nn.actualBounds.height/2;an.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(bt.actualBounds.x,Ut-bt.actualBounds.height/2))}),an.commitTransaction("aligning Center Y")}},Un.prototype.alignColumn=function(an){var nn=this.diagram;nn.startTransaction("align Column"),an===void 0&&(an=0),an=parseFloat(an);var Ut=new Array;nn.selection.each(function(ot){ot instanceof go.Link||Ut.push(ot)});for(var bt=0;bt<Ut.length-1;bt++){var xn=Ut[bt],hn=xn.actualBounds.y+xn.actualBounds.height+an,Tt=Ut[bt+1];Tt.move(new go.Point(xn.actualBounds.x,hn))}nn.commitTransaction("align Column")},Un.prototype.alignRow=function(an){an===void 0&&(an=0),an=parseFloat(an);var nn=this.diagram;nn.startTransaction("align Row");var Ut=new Array;nn.selection.each(function(ot){ot instanceof go.Link||Ut.push(ot)});for(var bt=0;bt<Ut.length-1;bt++){var xn=Ut[bt],hn=xn.actualBounds.x+xn.actualBounds.width+an,Tt=Ut[bt+1];Tt.move(new go.Point(hn,xn.actualBounds.y))}nn.commitTransaction("align Row")},Un.prototype.canRotate=function(an){var nn=this.diagram;return!(nn===null||nn.isReadOnly||nn.isModelReadOnly||nn.selection.count<1)},Un.prototype.rotate=function(an){an===void 0&&(an=90);var nn=this.diagram;nn.startTransaction("rotate "+an.toString());var nn=this.diagram;nn.selection.each(function(Ut){Ut instanceof go.Link||Ut instanceof go.Group||(Ut.angle+=an)}),nn.commitTransaction("rotate "+an.toString())},Un.prototype.pullToFront=function(){var an=this.diagram;an.startTransaction("pullToFront");var nn=new go.Map;an.selection.each(function(Ut){nn.set(Ut.layer,0)}),nn.iteratorKeys.each(function(Ut){var bt=0;Ut.parts.each(function(xn){if(!xn.isSelected){var hn=xn.zOrder;isNaN(hn)?xn.zOrder=0:bt=Math.max(bt,hn)}}),nn.set(Ut,bt)}),an.selection.each(function(Ut){Un._assignZOrder(Ut,nn.get(Ut.layer)+1)}),an.commitTransaction("pullToFront")},Un.prototype.pushToBack=function(){var an=this.diagram;an.startTransaction("pushToBack");var nn=new go.Map;an.selection.each(function(Ut){nn.set(Ut.layer,0)}),nn.iteratorKeys.each(function(Ut){var bt=0;Ut.parts.each(function(xn){if(!xn.isSelected){var hn=xn.zOrder;isNaN(hn)?xn.zOrder=0:bt=Math.min(bt,hn)}}),nn.set(Ut,bt)}),an.selection.each(function(Ut){Un._assignZOrder(Ut,nn.get(Ut.layer)-1-Un._findGroupDepth(Ut))}),an.commitTransaction("pushToBack")},Un._assignZOrder=function(an,nn,Ut){Ut===void 0&&(Ut=an),an.layer===Ut.layer&&(an.zOrder=nn),an instanceof go.Group&&an.memberParts.each(function(bt){Un._assignZOrder(bt,nn+1,Ut)})},Un._findGroupDepth=function(an){if(an instanceof go.Group){var nn=0;return an.memberParts.each(function(Ut){nn=Math.max(nn,Un._findGroupDepth(Ut))}),nn+1}else return 0},Un.prototype.doKeyDown=function(){var an=this.diagram;if(an!==null){var nn=an.lastInput;if(nn.key==="Up"||nn.key==="Down"||nn.key==="Left"||nn.key==="Right"){var Ut=this.arrowKeyBehavior;if(Ut==="none")return;if(Ut==="select"){this._arrowKeySelect();return}else if(Ut==="move"){this._arrowKeyMove();return}else if(Ut==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Un.prototype._getAllParts=function(){var an=new Array;return this.diagram.nodes.each(function(nn){an.push(nn)}),this.diagram.parts.each(function(nn){an.push(nn)}),an},Un.prototype._arrowKeyMove=function(){var an=this.diagram,nn=an.lastInput,Ut=0,bt=0;if(nn.control||nn.meta)Ut=1,bt=1;else if(an.grid!==null){var xn=an.grid.gridCellSize;bt=xn.width,Ut=xn.height}an.startTransaction("arrowKeyMove"),an.selection.each(function(hn){nn.key==="Up"?hn.move(new go.Point(hn.actualBounds.x,hn.actualBounds.y-Ut)):nn.key==="Down"?hn.move(new go.Point(hn.actualBounds.x,hn.actualBounds.y+Ut)):nn.key==="Left"?hn.move(new go.Point(hn.actualBounds.x-bt,hn.actualBounds.y)):nn.key==="Right"&&hn.move(new go.Point(hn.actualBounds.x+bt,hn.actualBounds.y))}),an.commitTransaction("arrowKeyMove")},Un.prototype._arrowKeySelect=function(){var an=this.diagram,nn=an.lastInput,Ut=null;nn.key==="Up"?Ut=this._findNearestPartTowards(270):nn.key==="Down"?Ut=this._findNearestPartTowards(90):nn.key==="Left"?Ut=this._findNearestPartTowards(180):nn.key==="Right"&&(Ut=this._findNearestPartTowards(0)),Ut!==null&&(nn.shift?Ut.isSelected=!0:nn.control||nn.meta?Ut.isSelected=!Ut.isSelected:an.select(Ut))},Un.prototype._findNearestPartTowards=function(an){var nn=this.diagram.selection.first();if(nn===null)return null;for(var Ut=nn.actualBounds.center,bt=this._getAllParts(),xn=1/0,hn=nn,Tt=0;Tt<bt.length;Tt++){var ot=bt[Tt];if(ot!==nn&&ot.canSelect()){var fn=ot.actualBounds.center,yn=Ut.directionPoint(fn),li=this._angleCloseness(yn,an);if(li<=45){var vn=Ut.distanceSquaredPoint(fn);vn*=1+Math.sin(li*Math.PI/180),vn<xn&&(xn=vn,hn=ot)}}}return hn},Un.prototype._angleCloseness=function(an,nn){return Math.min(Math.abs(nn-an),Math.min(Math.abs(nn+360-an),Math.abs(nn-360-an)))},Un.prototype._arrowKeyTree=function(){var an=this.diagram,nn=an.selection.first();if(nn instanceof go.Node){var Ut=an.lastInput;if(Ut.key==="Right"){if(!nn.isTreeLeaf)if(!nn.isTreeExpanded)an.commandHandler.canExpandTree(nn)&&an.commandHandler.expandTree(nn);else{var bt=this._sortTreeChildrenByY(nn).first();bt!==null&&an.select(bt)}}else if(Ut.key==="Left")if(!nn.isTreeLeaf&&nn.isTreeExpanded)an.commandHandler.canCollapseTree(nn)&&an.commandHandler.collapseTree(nn);else{var xn=nn.findTreeParentNode();xn!==null&&an.select(xn)}else if(Ut.key==="Up"){var xn=nn.findTreeParentNode();if(xn!==null){var hn=this._sortTreeChildrenByY(xn),Tt=hn.indexOf(nn);if(Tt>0){for(var ot=hn.elt(Tt-1);ot!==null&&ot.isTreeExpanded&&!ot.isTreeLeaf;){var fn=this._sortTreeChildrenByY(ot);ot=fn.last()}ot!==null&&an.select(ot)}else an.select(xn)}}else if(Ut.key==="Down")if(nn.isTreeExpanded&&!nn.isTreeLeaf){var bt=this._sortTreeChildrenByY(nn).first();bt!==null&&an.select(bt)}else for(;nn!==null;){var xn=nn.findTreeParentNode();if(xn===null)break;var hn=this._sortTreeChildrenByY(xn),Tt=hn.indexOf(nn);if(Tt<hn.length-1){an.select(hn.elt(Tt+1));break}else nn=xn}var yn=an.selection.first();yn!==null&&an.scrollToRect(yn.actualBounds)}},Un.prototype._sortTreeChildrenByY=function(an){var nn=new go.List().addAll(an.findTreeChildrenNodes());return nn.sort(function(Ut,bt){var xn=Ut.location,hn=bt.location;return xn.y<hn.y?-1:xn.y>hn.y?1:xn.x<hn.x?-1:xn.x>hn.x?1:0}),nn},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 Gn=Un,ui=he(37404),Ln=he(43604),Wt=he(70635),Vt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},mt=he(59301),Ye=(an,nn,Ut)=>new Promise((bt,xn)=>{var hn=fn=>{try{ot(Ut.next(fn))}catch(yn){xn(yn)}},Tt=fn=>{try{ot(Ut.throw(fn))}catch(yn){xn(yn)}},ot=fn=>fn.done?bt(fn.value):Promise.resolve(fn.value).then(hn,Tt);ot((Ut=Ut.apply(an,nn)).next())});function Zt({onCancel:an,callback:nn}){let Ut=(0,pe.useRef)(),bt=(0,pe.useRef)(),xn=(0,pe.useRef)(),hn=(0,pe.useRef)(!1);const Tt=(0,pe.useRef)(!1),[ot,fn]=(0,pe.useState)(0);function yn(){const vn=Lt.bx.make,at={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"};Ut.current=new Lt.S0(bt.current,{padding:20,grid:vn(Lt.s_,"Grid",vn(Lt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),vn(Lt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Jt=>{var Fi=Jt.diagram.commandHandler.addTopLevelParts(Jt.diagram.selection,!0);Fi||Jt.diagram.currentTool.doCancel()},commandHandler:vn(Gn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Jt=>{var Fi=Jt.subject;Fi.location=Fi.location.copy().snapToGridPoint(Jt.diagram.grid.gridOrigin,Jt.diagram.grid.gridCellSize),setTimeout(()=>{Jt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Jt=>{var Fi=Jt.subject;setTimeout(()=>{Jt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Jt=>{var Fi=Jt.parameter.part;Fi.invalidateConnectedLinks();var Si=Jt.subject;Jt.diagram.toolManager.linkingTool.isForwards?Si.toNode.invalidateConnectedLinks():Si.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ut.current.nodeTemplate=vn(Lt.NB,"Auto",{locationSpot:Lt.z6.Center,locationObjectName:"SHAPE",desiredSize:new Lt.$u(120,60),minSize:new Lt.$u(40,40),resizable:!0,resizeCellSize:new Lt.$u(10,10),rotatable:!0},new Lt.KX("location","loc",Lt.E9.parse).makeTwoWay(Lt.E9.stringify),new Lt.KX("desiredSize","size",Lt.$u.parse).makeTwoWay(Lt.$u.stringify),vn(Lt.bn,{name:"SHAPE",fill:at.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Lt.z6.AllSides,toSpot:Lt.z6.AllSides},new Lt.KX("figure"),new Lt.KX("fill"),new Lt.KX("stroke","borderColor"),new Lt.KX("strokeWidth","thickness"),new Lt.KX("strokeDashArray","dash")),vn(Lt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),vn(Lt.al,{margin:1,textAlign:"center",overflow:Lt.al.OverflowEllipsis,editable:!0},new Lt.KX("text").makeTwoWay(),new Lt.KX("stroke","color"))),Ut.current.nodeTemplate.toolTip=vn("ToolTip",vn(Lt.s_,"Vertical",{maxSize:new Lt.$u(200,NaN)},vn(Lt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Lt.KX("text")),vn(Lt.al,{font:"10pt sans-serif",textAlign:"center"},new Lt.KX("text","details"))));function Bn(Jt,Fi){var Si=(Wi,Nr)=>{Wi.handled=!0,Wi.diagram.model.commit(br=>{var Ir=Nr.part.adornedPart,hr=new Lt.E9().setRectSpot(Ir.actualBounds,Jt);hr.subtract(Ir.location),hr.scale(2,2),hr.x+=Math.sign(hr.x)*130,hr.y+=Math.sign(hr.y)*130,hr.add(Ir.location),hr.snapToGridPoint(Wi.diagram.grid.gridOrigin,Wi.diagram.grid.gridCellSize);var Ui=br.copyNodeData(Ir.data);br.setGroupKeyForNodeData(Ui,br.getGroupKeyForNodeData(Ir.data)),br.addNodeData(Ui);var Jr={from:Ir.key,to:br.getKeyForNodeData(Ui)};br.addLinkData(Jr);var An=Wi.diagram.findNodeForData(Ui);An.location=hr,Wi.diagram.select(An),setTimeout(()=>{Wi.diagram.commandHandler.editTextBlock()},20)})};return vn(Lt.bn,{figure:Fi,alignment:Jt,alignmentFocus:Jt.opposite(),width:Jt.equals(Lt.z6.Top)||Jt.equals(Lt.z6.Bottom)?25:18,height:Jt.equals(Lt.z6.Top)||Jt.equals(Lt.z6.Bottom)?18:25,fill:"orange",stroke:at.white,strokeWidth:4,mouseEnter:(Wi,Nr)=>Nr.fill="dodgerblue",mouseLeave:(Wi,Nr)=>Nr.fill="orange",isActionable:!0,click:Si,contextClick:Si})}function pi(Jt){return vn(Lt.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:(Fi,Si)=>Si.fill="dodgerblue",mouseLeave:(Fi,Si)=>Si.fill="orange",click:(Fi,Si)=>{Fi.diagram.commandHandler.showContextMenu(Si.part.adornedPart)}},Jt||{})}Ut.current.nodeTemplate.selectionAdornmentTemplate=vn(Lt.uz,"Spot",vn(Lt.Vm,{padding:10}),Bn(Lt.z6.Top,"TriangleUp"),Bn(Lt.z6.Left,"TriangleLeft"),Bn(Lt.z6.Right,"TriangleRight"),Bn(Lt.z6.Bottom,"TriangleDown"),pi({alignment:new Lt.z6(.75,0)}));function Li(Jt,Fi){return(Si,Wi)=>{Si.handled=!0,Si.diagram.model.commit(Nr=>{Nr.set(Wi.part.adornedPart.data,Jt,Fi)})}}function qt(Jt,Fi){return Fi||(Fi="color"),vn(Lt.bn,{width:16,height:16,stroke:"lightgray",fill:Jt,margin:1,background:"transparent",mouseEnter:(Si,Wi)=>Wi.stroke="dodgerblue",mouseLeave:(Si,Wi)=>Wi.stroke="lightgray",click:Li(Fi,Jt),contextClick:Li(Fi,Jt)})}function Nn(){return[vn("ContextMenuButton",vn(Lt.s_,"Horizontal",qt(at.white,"fill"),qt(at.beige,"fill"),qt(at.extralightblue,"fill"),qt(at.extralightred,"fill"))),vn("ContextMenuButton",vn(Lt.s_,"Horizontal",qt(at.lightgray,"fill"),qt(at.lightgreen,"fill"),qt(at.lightblue,"fill"),qt(at.lightred,"fill")))]}function on(){return[vn("ContextMenuButton",vn(Lt.s_,"Horizontal",qt(at.black),qt(at.green),qt(at.blue),qt(at.red))),vn("ContextMenuButton",vn(Lt.s_,"Horizontal",qt(at.white),qt(at.magenta),qt(at.purple),qt(at.orange)))]}function Sn(Jt,Fi){return Fi||(Fi="thickness"),vn(Lt.bn,"LineH",{width:16,height:16,strokeWidth:Jt,margin:1,background:"transparent",mouseEnter:(Si,Wi)=>Wi.background="dodgerblue",mouseLeave:(Si,Wi)=>Wi.background="transparent",click:Li(Fi,Jt),contextClick:Li(Fi,Jt)})}function Fn(Jt,Fi){return Fi||(Fi="dash"),vn(Lt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Jt,margin:1,background:"transparent",mouseEnter:(Si,Wi)=>Wi.background="dodgerblue",mouseLeave:(Si,Wi)=>Wi.background="transparent",click:Li(Fi,Jt),contextClick:Li(Fi,Jt)})}function En(){return[vn("ContextMenuButton",vn(Lt.s_,"Horizontal",Sn(1),Sn(2),Sn(3),Sn(4))),vn("ContextMenuButton",vn(Lt.s_,"Horizontal",Fn(null),Fn([2,4]),Fn([4,4])))]}function kn(Jt,Fi){return Fi||(Fi="figure"),vn(Lt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Jt,margin:1,background:"transparent",mouseEnter:(Si,Wi)=>Wi.fill="dodgerblue",mouseLeave:(Si,Wi)=>Wi.fill="lightgray",click:Li(Fi,Jt),contextClick:Li(Fi,Jt)})}Ut.current.nodeTemplate.contextMenu=vn("ContextMenu",vn("ContextMenuButton",vn(Lt.s_,"Horizontal",kn("Rectangle"),kn("RoundedRectangle"),kn("Ellipse"),kn("Diamond"))),vn("ContextMenuButton",vn(Lt.s_,"Horizontal",kn("Parallelogram2"),kn("ManualOperation"),kn("Procedure"),kn("Cylinder1"))),vn("ContextMenuButton",vn(Lt.s_,"Horizontal",kn("Terminator"),kn("CreateRequest"),kn("Document"),kn("TriangleDown"))),Nn(),on(),En()),Ut.current.groupTemplate=vn(Lt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Lt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Jt,Fi)=>{var Si=Fi.addMembers(Fi.diagram.selection,!0);Si||Fi.diagram.currentTool.doCancel()},avoidable:!1},new Lt.KX("location","loc",Lt.E9.parse).makeTwoWay(Lt.E9.stringify),vn(Lt.s_,"Auto",{name:"BODY"},vn(Lt.bn,{parameter1:10,fill:at.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Lt.z6.AllSides,toSpot:Lt.z6.AllSides},new Lt.KX("fill"),new Lt.KX("stroke","color"),new Lt.KX("strokeWidth","thickness"),new Lt.KX("strokeDashArray","dash")),vn(Lt.Vm,{background:"transparent",margin:20})),vn(Lt.al,{alignment:Lt.z6.Top,alignmentFocus:Lt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Lt.KX("text"),new Lt.KX("stroke","color"))),Ut.current.groupTemplate.selectionAdornmentTemplate=vn(Lt.uz,"Spot",vn(Lt.s_,"Auto",vn(Lt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),vn(Lt.Vm,{margin:1.5})),pi({alignment:Lt.z6.TopRight,alignmentFocus:Lt.z6.BottomRight})),Ut.current.groupTemplate.contextMenu=vn("ContextMenu",Nn(),on(),En()),Ut.current.linkTemplate=vn(Lt.rU,{layerName:"Foreground",routing:Lt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Lt.KX("fromSpot","fromSpot",Lt.z6.parse),new Lt.KX("toSpot","toSpot",Lt.z6.parse),new Lt.KX("fromShortLength","dir",Jt=>Jt>=1?10:0),new Lt.KX("toShortLength","dir",Jt=>Jt>=1?10:0),new Lt.KX("points").makeTwoWay(),vn(Lt.bn,{strokeWidth:2},new Lt.KX("stroke","color"),new Lt.KX("strokeWidth","thickness"),new Lt.KX("strokeDashArray","dash")),vn(Lt.bn,{segmentIndex:0,segmentOffset:new Lt.E9(15,0),segmentOrientation:Lt.rU.OrientAlong,alignmentFocus:Lt.z6.Right,figure:"circle",width:10,strokeWidth:0},new Lt.KX("fill","color"),new Lt.KX("visible","dir",Jt=>Jt===1)),vn(Lt.bn,{segmentIndex:-1,segmentOffset:new Lt.E9(-10,6),segmentOrientation:Lt.rU.OrientPlus90,alignmentFocus:Lt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Lt.KX("fill","color"),new Lt.KX("visible","dir",Jt=>Jt>=1),new Lt.KX("width","thickness",Jt=>7+3*Jt),new Lt.KX("height","thickness",Jt=>7+3*Jt),new Lt.KX("segmentOffset","thickness",Jt=>new Lt.E9(-15,4+1.5*Jt))),vn(Lt.bn,{segmentIndex:0,segmentOffset:new Lt.E9(15,-6),segmentOrientation:Lt.rU.OrientMinus90,alignmentFocus:Lt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Lt.KX("fill","color"),new Lt.KX("visible","dir",Jt=>Jt===2),new Lt.KX("width","thickness",Jt=>7+3*Jt),new Lt.KX("height","thickness",Jt=>7+3*Jt),new Lt.KX("segmentOffset","thickness",Jt=>new Lt.E9(-15,4+1.5*Jt))),vn(Lt.al,{alignmentFocus:new Lt.z6(0,1,-4,0),editable:!0},new Lt.KX("text").makeTwoWay(),new Lt.KX("stroke","color"))),Ut.current.linkTemplate.selectionAdornmentTemplate=vn(Lt.uz,vn(Lt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Zn(2)},new Lt.KX("pathPattern","thickness",Zn)),pi({alignmentFocus:new Lt.z6(0,0,-6,-4)}));function Zn(Jt){return vn(Lt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Jt+4).toString()+" H3"})}function Jn(Jt){var Fi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Jt===0?Fi="M0 0 M16 16 M0 8 L16 8":Jt===2&&(Fi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),vn(Lt.bn,{geometryString:Fi,margin:2,background:"transparent",mouseEnter:(Si,Wi)=>Wi.background="dodgerblue",mouseLeave:(Si,Wi)=>Wi.background="transparent",click:Li("dir",Jt),contextClick:Li("dir",Jt)})}function si(Jt){var Fi=(Si,Wi)=>{Si.handled=!0,Si.diagram.model.commit(Nr=>{var br=Wi.part.adornedPart;Nr.set(br.data,Jt?"toSpot":"fromSpot",Lt.z6.stringify(Lt.z6.AllSides)),(Jt?br.toNode:br.fromNode).invalidateConnectedLinks()})};return vn(Lt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Si,Wi)=>Wi.background="dodgerblue",mouseLeave:(Si,Wi)=>Wi.background="transparent",click:Fi,contextClick:Fi})}function Tn(Jt,Fi){var Si=0,Wi=Lt.z6.RightSide;Jt.equals(Lt.z6.Top)?(Si=270,Wi=Lt.z6.TopSide):Jt.equals(Lt.z6.Left)?(Si=180,Wi=Lt.z6.LeftSide):Jt.equals(Lt.z6.Bottom)&&(Si=90,Wi=Lt.z6.BottomSide),Fi||(Si-=180);var Nr=(br,Ir)=>{br.handled=!0,br.diagram.model.commit(hr=>{var Ui=Ir.part.adornedPart;hr.set(Ui.data,Fi?"toSpot":"fromSpot",Lt.z6.stringify(Wi)),(Fi?Ui.toNode:Ui.fromNode).invalidateConnectedLinks()})};return vn(Lt.bn,{alignment:Jt,alignmentFocus:Jt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Si,background:"transparent",mouseEnter:(br,Ir)=>Ir.background="dodgerblue",mouseLeave:(br,Ir)=>Ir.background="transparent",click:Nr,contextClick:Nr})}Ut.current.linkTemplate.contextMenu=vn("ContextMenu",on(),En(),vn("ContextMenuButton",vn(Lt.s_,"Horizontal",Jn(0),Jn(1),Jn(2))),vn("ContextMenuButton",vn(Lt.s_,"Horizontal",vn(Lt.s_,"Spot",si(!1),Tn(Lt.z6.Top,!1),Tn(Lt.z6.Left,!1),Tn(Lt.z6.Right,!1),Tn(Lt.z6.Bottom,!1)),vn(Lt.s_,"Spot",{margin:new Lt.Zt(0,0,0,2)},si(!0),Tn(Lt.z6.Top,!0),Tn(Lt.z6.Left,!0),Tn(Lt.z6.Right,!0),Tn(Lt.z6.Bottom,!0)))));const mi=`{ "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 nr=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Br(Jt){return console.log("shapeName:",Jt),nr.indexOf(Jt)>=0}var rr=new Lt.YI(xn.current,{maxSelectionCount:1,linkTemplate:vn(Lt.rU,{locationSpot:Lt.z6.Center,selectionAdornmentTemplate:vn(Lt.uz,"Link",{locationSpot:Lt.z6.Center},vn(Lt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),vn(Lt.bn,{toArrow:"Standard",stroke:null}))},{routing:Lt.rU.AvoidsNodes,curve:Lt.rU.JumpOver,corner:5,toShortLength:4},new Lt.KX("points"),vn(Lt.bn,{isPanelMain:!0,strokeWidth:2}),vn(Lt.bn,{toArrow:"Standard",stroke:null})),model:new Lt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Lt.bn.getFigureGenerators().toArray().map(Jt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Jt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ut.current.addDiagramListener("TextEdited",function(Jt){var Fi;const Si=Jt.subject.part;var Wi=(Fi=document.activeElement)==null?void 0:Fi.value;typeof Wi=="string"&&Wi.trim()===""&&Ut.current.model.commit(function(Nr){Nr.set(Si.data,"text","\u672A\u547D\u540D"),Ut.current.commandHandler.stopCommand()},"increment")}),rr.nodeTemplate=vn(Lt.NB,"Auto",{locationSpot:Lt.z6.Center},new Lt.KX("location","location",Lt.E9.parse).makeTwoWay(Lt.E9.stringify),vn(Lt.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 Lt.KX("stroke").makeTwoWay(),new Lt.KX("fill").makeTwoWay(),new Lt.KX("figure")),vn(Lt.al,{margin:new Lt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Lt.$u(16,16),maxSize:new Lt.$u(10,NaN),textAlign:"center",editable:!0},new Lt.KX("key").makeTwoWay())),setTimeout(()=>{Ut.current.grid=vn(Lt.s_,"Grid",vn(Lt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),vn(Lt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ut.current.grid.visible=!0,Ut.current.grid.gridCellStroke="darkgray",Ut.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ut.current,Ut.current}const li=()=>Ye(this,null,function*(){var vn=Ut.current.makeImage();const at=yield(0,Wt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:vn.src}});nn({src:at.url})});return(0,pe.useEffect)(()=>(setTimeout(()=>{yn()},500),fn(ot+1),()=>{Ut.current=null}),[]),mt.createElement("div",{ref:Tt,className:hn.current?`${Vt.maxH60} body-overflow-initial`:"body-overflow-initial"},mt.createElement(Bt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ot,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:mt.createElement(rn.Z,null,mt.createElement(Ln.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),mt.createElement(Ln.Z,{onClick:()=>{var vn,at,Bn=Ut.current.selection.first();if(hn.current=!hn.current,document.activeElement&&Bn){let pi=(at=(vn=document.activeElement)==null?void 0:vn.value)==null?void 0:at.trim();typeof pi=="string"&&Ut.current.model.commit(function(Li){Li.set(Bn.data,"text",pi||"\u672A\u547D\u540D"),Ut.current.commandHandler.stopCommand()},"increment")}fn(ot+1)}},mt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:an},mt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Vt.flowChartWrp},mt.createElement("div",{style:{display:"flex",height:"100%"}},mt.createElement("div",{style:{width:"300px",height:"100%"}},mt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),mt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Vt.myPaletteDiv,ref:xn})),mt.createElement("div",{style:{flex:1,position:"relative"}},mt.createElement("div",{ref:bt,style:{height:"80vh"}}))),mt.createElement("div",{className:"tr"},mt.createElement(Ze.ZP,{size:"large",onClick:li,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Gt=Zt,ft=he(5112),nt=he(88897);const Oe=ft.ZP.Group,we={margin:"0 8px"};var ye=({callback:an,onCancel:nn})=>{function Ut(bt){an(bt)}return pe.createElement(ze.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ut},pe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},pe.createElement("span",{style:we},"\u5355\u5143\u683C\u6570\uFF1A"),pe.createElement("span",{style:we},"\u884C\u6570"),pe.createElement(ze.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},pe.createElement(nt.Z,null)),pe.createElement("span",{style:we},"\u5217\u6570"),pe.createElement(ze.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},pe.createElement(nt.Z,null))),pe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},pe.createElement("span",{style:we},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),pe.createElement(ze.default.Item,{name:"align"},pe.createElement(Oe,null,pe.createElement(ft.ZP,{value:"default"},pe.createElement("i",{className:"fa fa-align-justify"})),pe.createElement(ft.ZP,{value:"left"},pe.createElement("i",{className:"fa fa-align-left"})),pe.createElement(ft.ZP,{value:"center"},pe.createElement("i",{className:"fa fa-align-center"})),pe.createElement(ft.ZP,{value:"right"},pe.createElement("i",{className:"fa fa-align-right"}))))),pe.createElement("div",{className:"flex-container flex-end"},pe.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(Ze.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},ke=he(78673),Ge=he(98598),Fe=he.n(Ge),tn=(0,pe.forwardRef)(({use3d:an,width:nn,height:Ut,callback:bt,showSaveButton:xn},hn)=>{const Tt=(0,pe.useRef)(),ot=(0,pe.useRef)(),[fn,yn]=(0,pe.useState)(!1),li=(0,pe.useRef)({id:Tt,appName:"graphing",width:nn||1e3,height:Ut||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,pe.useEffect)(()=>{ot.current=new(Fe())(li.current,!0),window.onload=function(){ot.current.inject("applet_container")}},[]);const vn=()=>{var at=window.ggbApplet.getPNGBase64(1,!0,72);return bt&&bt(at),at};return(0,pe.useEffect)(()=>{li.current.appName=fn?"3D":"graphing",ot.current.inject("applet_container")},[fn]),(0,pe.useEffect)(()=>{yn(an)},[an]),(0,pe.useImperativeHandle)(hn,()=>({getImgData:vn})),pe.createElement(pe.Fragment,null,pe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Tt}),pe.createElement(rn.Z,{align:"middle"},pe.createElement(Ln.Z,{flex:1},pe.createElement(ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:fn,onChange:at=>yn(at)})),pe.createElement(Ln.Z,null,pe.createElement(Ze.ZP,{size:"large",onClick:vn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),en=he(75890),wt=he(8591);const Xt="link",Pn="upload-image",In="add-flowchart",$n="draw-image",Pi="add-flowchart",wn="code-block",Ai="add-table",Vi="------------",ur={default:Vi,left:`:${Vi}`,center:`:${Vi}:`,right:`${Vi}:`};var sr=he(91300);function Qn(){}let Ci=0;const er=1e4,ri="\u2581",tr="@\u2581\u2581@",Di="@\u2581@",De=`
|
|
|
**\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`,Yr=["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 yr(an){return/^\d+$/.test(an)?`${an}px`:an}const lo=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wo={[lo+"-B"]:"bold",[lo+"-I"]:"italic"},No={[Xt]:"\u6DFB\u52A0\u94FE\u63A5",[wn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Pn]:"\u6DFB\u52A0\u56FE\u7247",[$n]:"\u6DFB\u52A0\u753B\u56FE",[In]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ai]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ki=({defaultValue:an="",onChange:nn,width:Ut="100%",height:bt=400,miniToolbar:xn=!1,isFocus:hn=!1,watch:Tt,insertTemp:ot,mode:fn="markdown",id:yn="markdown-editor-id",showResizeBar:li=!1,noStorage:vn=!1,showNullButton:at=!1,showNullProgramButton:Bn=!1,hidetoolBar:pi=!1,fullScreen:Li=!1,onBlur:qt,onCMBeforeChange:Nn,onFullScreen:on,className:Sn="",disablePaste:Fn=!1,disabled:En=!1,disabledFill:kn=!1,placeholder:Zn="",values:Jn="",extraUse:si})=>{const[Tn,mi]=(0,pe.useState)(null),[nr,Br]=(0,pe.useState)(an),[rr,Jt]=(0,pe.useState)(Tt),[Fi,Si]=(0,pe.useState)(Li),[Wi,Nr]=(0,pe.useState)(""),[br,Ir]=(0,pe.useState)(0),[hr,Ui]=(0,pe.useState)(bt),[Jr,An]=(0,pe.useState)(!1),[Co,Wn]=(0,pe.useState)(0),[Hr,ha]=(0,pe.useState)(0),yo=(0,pe.useRef)(),Ot=(0,pe.useRef)(),di=(0,pe.useRef)(),Mn=(0,pe.useRef)();(0,pe.useEffect)(()=>{const lr=window.scrollY||window.pageYOffset;Br(Jn),Tn==null||Tn.setValue(Jn),window.scrollTo(0,lr)},[Jn]),(0,pe.useEffect)(()=>{on==null||on(Fi)},[Fi]),(0,pe.useEffect)(()=>{if(yo.current){let lr=function(kr,oi){var Ao;if(Fn){oi.preventDefault();return}const Jo=oi.clipboardData;if(Jo){const Fa=Jo.types.toString(),na=Jo.items;if(Fa==="Files"||Jo.types.indexOf("Files")>-1){if(oi.preventDefault(),fn=="stex")return;try{let ia=na[1];((Ao=na[0])==null?void 0:Ao.kind)==="file"&&(ia=na[0]);const xa=ia.getAsFile(),fo=xa.name.split(".").pop();(0,xt.I)(xa,qa=>{var bs,So,Cn;qa.id?((bs=xa==null?void 0:xa.type)==null?void 0:bs.indexOf("image"))>-1?$i.replaceSelection(``):((So=xa==null?void 0:xa.type)==null?void 0:So.indexOf("video"))>-1?$i.replaceSelection(`<video width="100%" controls src="/api/attachments/${qa.id}"></video>`):((Cn=xa==null?void 0:xa.type)==null?void 0:Cn.indexOf("pdf"))>-1?$i.replaceSelection(`<a href="/api/attachments/${qa.id}?type=${xa.type}&disposition=inline" target="_blank">${xa.name}</a>`):Yr.includes(fo)?$i.replaceSelection(`<a href="/api/attachments/${qa.id}?type=office&disposition=inline" target="_blank">${xa.name}</a>`):$i.replaceSelection(`[${xa.name}](/api/attachments/${qa.id}?type=${qa.content_type})`):(qa==null?void 0:qa.status)===401&&(document.location.href="/user/login")})}catch(ia){wt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const $i=Ve().fromTextArea(yo.current,{mode:fn,lineNumbers:!xn,lineWrapping:!0,value:an,autoCloseTags:!0,autoCloseBrackets:!0});return $i.on("keyup",function(kr,oi){oi.keyCode===8&&(kr.getValue()==""?$i.setOption("placeholder",Zn):$i.setOption("placeholder",null))}),$i.on("keydown",function(kr,oi){if(oi.keyCode===8){var Ao=Ar(kr);Ao&&oi.preventDefault()}}),hn&&$i.focus(),$i.on("paste",lr),En&&$i.on("beforeChange",function(kr,oi){(oi.origin==="paste"||oi.origin==="+input")&&oi.cancel()}),mi($i),()=>{$i.off("paste",lr)}}},[]);const qn=(0,pe.useCallback)(()=>{if(Ot.current)try{}catch(lr){console.log(lr,"---- to set md editor body height")}},[hr,Ot,Fi]);(0,pe.useEffect)(()=>{function lr(){let $i=new st.Z(kr=>{for(let oi of kr)(oi.target.offsetHeight>0||oi.target.offsetWidth>0)&&(qn(),Tn.setSize("100%","100%"),Tn.refresh())});return $i.observe(yo.current.parentElement),$i}if(Tn){const $i=lr();return()=>{var kr,oi;(kr=yo.current)!=null&&kr.parentElement&&$i.unobserve((oi=yo.current)==null?void 0:oi.parentElement)}}},[Tn,qn]),(0,pe.useEffect)(()=>{if(Tn){let lr=[];for(const[$i,kr]of Object.entries(Wo)){let oi={[$i]:()=>{Sr(kr)}};lr.push(oi),Tn.addKeyMap(oi)}return()=>{for(let $i of lr)Tn.removeKeyMap($i)}}},[Tn]),(0,pe.useEffect)(()=>{Li!==Fi&&Si(Li)},[Li]),(0,sr.Z)(()=>{if(!vn&&br>0){let lr=new Date().getTime(),$i=window.sessionStorage.getItem(yn);lr>=br+er&&(!$i||$i!==nr)&&(window.sessionStorage.setItem(yn,nr),An(!0))}},er),(0,pe.useEffect)(()=>{Jt(Tt)},[Tn,Tt]),(0,pe.useEffect)(()=>{Tn&&hn&&Tn.focus()},[Tn,hn]),(0,pe.useEffect)(()=>{if(rr&&Tn){let lr=function(kr){let oi=kr.target;if(Mn.current){let Ao=oi.scrollTop/oi.scrollHeight;Mn.current.scrollTop=Mn.current.scrollHeight*Ao}};const $i=Tn.getScrollerElement();return $i.addEventListener("scroll",lr),()=>{$i.removeEventListener("scroll",lr)}}},[Tn,rr]),(0,pe.useEffect)(()=>{if(Tn&&Nn){let lr=function($i,kr){Nn($i,kr)};return Tn.on("beforeChange",lr),()=>{Tn.off("beforeChange",lr)}}},[Tn,Nn]),(0,pe.useEffect)(()=>{if(Tn&&qt){let lr=function(){qt(Tn.getValue())};return Tn.on("blur",lr),()=>{Tn.off("blur",lr)}}},[Tn,qt]);function Ar(lr,$i){var kr=lr.getDoc(),oi=kr.getCursor(),Ao=kr.getLine(oi.line),Jo=Ao.charAt(oi.ch-1),Fa=Ao.lastIndexOf("@\u2581@",oi.ch),na=Ao.lastIndexOf("@\u2581\u2581@",oi.ch),ia=Fa>na?Fa:na,xa=Fa>na?3:4;if(tr.indexOf(Jo)===-1)return null;if(console.log("change1:",$i,lr,Ao,oi,ia,Fa,na,Jo),ia>=0&&oi.ch-ia<5){var fo=ia+xa;return kr.replaceRange("",{line:oi.line,ch:ia},{line:oi.line,ch:fo}),{line:oi.line,ch:fo}}return null}(0,pe.useEffect)(()=>{if(Tn){let lr=function($i,kr){const oi=$i.getValue();Br(oi),Ir(new Date().getTime()),$i.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nn&&(Bn?nn(oi,fr(oi)):nn(oi))};return Tn.on("change",lr),()=>{Tn.off("change",lr)}}},[Tn,nn]),(0,pe.useEffect)(()=>{if(Tn)if(an==null)Tn.setValue(""),Br("");else{const lr=window.scrollY||window.pageYOffset;an!==Tn.getValue()&&(Tn.setValue(an),Br(an),Tn.setCursor(En?1:Tn.lineCount(),0),window.scrollTo(0,lr))}},[Tn,an]);const Sr=(0,pe.useCallback)(lr=>{const $i=Tn.getCursor(),kr=Tn.getSelection();let oi=kr.split(`
|
|
|
`);switch(lr){case"bold":return Tn.replaceSelection("**"+kr+"**"),kr===""&&Tn.setCursor($i.line,$i.ch+2),Tn.focus();case"italic":return Tn.replaceSelection("*"+kr+"*"),kr===""&&Tn.setCursor($i.line,$i.ch+1),Tn.focus();case"code":return Tn.replaceSelection("`"+kr+"`"),kr===""&&Tn.setCursor($i.line,$i.ch+1),Tn.focus();case"inline-latex":return Nr("inline-latex"),Tn.focus();case"latex":return Tn.replaceSelection("```latex\n"+kr+"\n```"),Tn.setCursor($i.line+1,kr.length+1),Tn.focus();case"line-break":return Tn.replaceSelection(`<br/>
|
|
|
`),Tn.focus();case"list-ul":return kr===""?Tn.replaceSelection("- "+kr):Tn.replaceSelection(oi.map(Ao=>Ao===""?"":`- ${Ao}`).join(`
|
|
|
`)),Tn.focus();case"list-ol":return kr===""?Tn.replaceSelection("1. "+kr):Tn.replaceSelection(oi.map((Ao,Jo)=>Ao===""?"":`${Jo+1}. ${Ao}`).join(`
|
|
|
`)),Tn.focus();case"add-null-ch":return kr===""&&Tn.setCursor($i.line,$i.ch),Tn.replaceSelection(ri),Tn.focus();case"add-signal":return kr===""&&Tn.setCursor($i.line,$i.ch),Tn.replaceSelection(Di),Tn.focus();case"add-multiple":return kr===""&&Tn.setCursor($i.line,$i.ch),Tn.replaceSelection(tr),Tn.focus();case"inster-template-1":return kr===""&&Tn.setCursor($i.line,$i.ch),Tn.replaceSelection(De),Tn.focus();case"eraser":return Tn.setValue(""),Tn.focus();case"trigger-watch":return Jt(!rr),Tn.focus();case"trigger-full-screen":return Si(!Fi),Tn.focus();case Xt:Nr(Xt);return;case wn:Nr(wn);return;case Pn:Nr(Pn);return;case $n:Nr($n);return;case"maths-latex":Nr("maths-latex");return;case In:Nr(In);return;case Ai:Nr(Ai);return;default:throw new Error}},[Tn,rr,Fi]),Kn=(0,pe.useCallback)((lr,$i)=>{var kr,oi,Ao,Jo,Fa,na;switch(Nr(""),Wi){case Xt:const{title:bs,link:So}=lr;return Tn.replaceSelection(`[${bs}](${So})`),Tn.focus();case wn:const{language:Cn,content:cs}=lr;return Tn.replaceSelection(["```"+Cn,cs,"```"].join(`
|
|
|
`)),Tn.focus();case"maths-latex":for(var ia=atob(lr),xa=new Uint8Array(ia.length),fo=0;fo<ia.length;fo++)xa[fo]=ia.charCodeAt(fo);var qa=new Blob([xa],{type:"image/png"});(0,xt.I)(qa,is=>{is.id?Tn.replaceSelection(``):(is==null?void 0:is.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Tn.replaceSelection("`$$"+lr+"$$`");break;case Pn:case $n:case Pi:const{src:Ya,alt:Ss}=lr,Lo=$i,fa=(Ao=(oi=(kr=Lo==null?void 0:Lo.name)==null?void 0:kr.split("."))==null?void 0:oi.pop)==null?void 0:Ao.call(oi);return((Jo=Lo==null?void 0:Lo.type)==null?void 0:Jo.indexOf("image"))>-1||!(Lo!=null&&Lo.type)?Ss?Tn.replaceSelection(``):Tn.replaceSelection(``):((Fa=Lo==null?void 0:Lo.type)==null?void 0:Fa.indexOf("video"))>-1?Tn.replaceSelection(`<video width="100%" controls src="${Ya}"></video>`):((na=Lo==null?void 0:Lo.type)==null?void 0:na.indexOf("pdf"))>-1?Tn.replaceSelection(`<a href="${Ya}?type=${Lo.type}&disposition=inline" target="_blank">${Lo.name}</a>`):Yr.includes(fa)?Tn.replaceSelection(`<a href="${Ya}?type=office&disposition=inline" target="_blank">${Lo.name}</a>`):Tn.replaceSelection(`[${Lo.name}](${Ya})`),Tn.focus();case Ai:const{row:Pa,col:sa,align:vo}=lr;let aa=`
|
|
|
`;for(let is=0;is<Pa;is++){let qr=[],gr=[];for(let zr=0;zr<sa;zr++)is===1&&gr.push(ur[vo]),qr.push(" ");is===1&&(aa+=`| ${gr.join(" | ")} |
|
|
|
`),aa+=`| ${qr.join(sa===1?"":" | ")} |
|
|
|
`}return Tn.replaceSelection(aa+`
|
|
|
`),Tn.focus();default:throw new Error}},[Tn,Wi]),qe=(0,pe.useMemo)(()=>{switch(Wi){case Xt:return pe.createElement(ln,{callback:Kn,onCancel:_i});case wn:return pe.createElement(Ht.Z,{callback:Kn,onCancel:_i});case Pn:return pe.createElement(xt.Z,{callback:Kn,onCancel:_i});case In:return pe.createElement(Gt,{callback:Kn,onCancel:_i});case Ai:return pe.createElement(ye,{callback:Kn,onCancel:_i});case"maths-latex":return pe.createElement(tn,{showSaveButton:!0,callback:Kn});case"inline-latex":return pe.createElement(en.Z,{showSaveButton:!0,callback:Kn});default:return null}},[Wi]);function _i(){Nr("")}(0,pe.useEffect)(()=>{if(di.current){let lr=function(Fa){Ao=!0,Jo=Fa.pageY},$i=function(){Ao=!1},kr=function(Fa){if(Ao){let na=Fa.pageY-Jo;na<0&&(na=0),na>300&&(na=300);let ia=bt+na+"px";Ui(ia)}},oi=di.current,Ao=!1,Jo=0;return oi.addEventListener("mousedown",lr),document.addEventListener("mousemove",kr),document.addEventListener("mouseup",$i),()=>{oi.removeEventListener("mousedown",lr),document.removeEventListener("mousemove",kr),document.removeEventListener("mouseup",$i)}}},[Tn,di]),(0,pe.useEffect)(()=>{Ui(bt)},[bt]);const uo=yr(Ut),wr=yr(hr),Uo={width:uo,height:wr},Er=(0,pe.useMemo)(()=>{if(br){let lr=new Date(br),$i=lr.getHours(),kr=lr.getMinutes(),oi=lr.getSeconds();return $i=$i<10?"0"+$i:$i,kr=kr<10?"0"+kr:kr,oi=oi<10?"0"+oi:oi,`${$i}:${kr}:${oi}`}return 0},[br]),fr=lr=>{const $i=[];if(Bn){let kr=-1;lr=lr.replace(/(@▁▁@|@▁@)/g,function(oi,Ao,Jo){$i.push({multiLine:oi!==Di})})}return $i};function ho(){window.sessionStorage.removeItem(yn),An(!1),Ir(0)}function ro(){An(!1),Ir(0),Tn.setValue(window.sessionStorage.getItem(yn))}(0,pe.useEffect)(()=>{No[Wi]&&Wi!==$n&&Wi!==In&&setTimeout(()=>{const lr=document.getElementsByClassName("markdown-popup-form")[0],$i=window.innerWidth/2-lr.offsetWidth/2,kr=window.innerHeight/2-lr.offsetHeight/2;Wn($i),ha(kr)},0)},[Wi]);const Gr=lr=>{lr.preventDefault();const $i=lr.clientX-Co,kr=lr.clientY-Hr;document.body.onmousemove=oi=>{let Ao=oi.clientX-$i,Jo=oi.clientY-kr;const Fa=document.getElementsByClassName("markdown-popup-form")[0],na=window.innerWidth-Fa.offsetWidth,ia=window.innerHeight-Fa.offsetHeight;Ao=Math.max(0,Math.min(Ao,na)),Jo=Math.max(0,Math.min(Jo,ia)),_o(oi.clientX,oi.clientY,$i,kr)&&(Wn(Ao),ha(Jo))},document.body.onmouseup=function(){document.body.onmousemove=null}},_o=(lr,$i,kr,oi)=>{const Ao=document.body.clientHeight,Jo=document.body.clientWidth;return lr<20&&kr>lr||lr>Jo-20&&kr<lr||$i<20&&oi>$i||$i>Ao-20&&oi<$i?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"markdown-editor-wrapper",ref:Ot},pe.createElement("div",{className:`markdown-editor-container ${Sn} ${rr?"on-preview":""} ${xn?"mini":""} ${Fi?"full-screen":""}`,style:Uo},pe.createElement(Te,{insertTemp:ot,watch:rr,fullScreen:Fi,showNullButton:at,showNullProgramButton:Bn,onActionCallback:Sr,hidetoolBar:pi,extraUse:si}),pe.createElement("div",{className:"markdown-editor-body"},pe.createElement("div",{className:"codemirror-container"},pe.createElement("textarea",{ref:yo,placeholder:Zn})),rr?pe.createElement("div",{ref:Mn,className:"preview-container"},fn==="stex"&&pe.createElement($e,{value:nr}),fn!=="stex"&&pe.createElement(tt.Z,{disabledFill:kn,showProgramFill:Bn,value:nr})):null))),li?pe.createElement("a",{ref:di,className:"editor-resize"}):null,Wi===$n&&pe.createElement(_n,{callback:Kn,onCancel:_i}),Wi===In&&pe.createElement(Gt,{callback:Kn,onCancel:_i}),pe.createElement(He.Z,null,No[Wi]&&Wi!==$n&&Wi!==In?pe.createElement(Bt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Co,top:Hr},title:pe.createElement("div",{style:{cursor:"move"},onMouseDown:Gr},No[Wi]),open:!0,onCancel:_i,footer:null,destroyOnClose:!0,width:Wi===In?"1200px":null,height:Wi===In?"80vh":null,className:"markdown-popup-form"},qe):null))}},56701:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return ve},I:function(){return Ae}});var pe=he(78241),Ie=he(8591),Ve=he(92832),st=he(3113),We=he(58788),it=he(59301),be=he(59301),yt=Object.defineProperty,vt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Ee=(xe,Le,Te)=>Le in xe?yt(xe,Le,{enumerable:!0,configurable:!0,writable:!0,value:Te}):xe[Le]=Te,ee=(xe,Le)=>{for(var Te in Le||(Le={}))$e.call(Le,Te)&&Ee(xe,Te,Le[Te]);if(tt)for(var Te of tt(Le))Qe.call(Le,Te)&&Ee(xe,Te,Le[Te]);return xe},te=(xe,Le)=>vt(xe,Je(Le));const{useForm:ue}=pe.default,ae={width:280,marginRight:10},de={labelCol:{span:5},wrapperCol:{span:19}};var ve=({callback:xe,onCancel:Le})=>{const[Te]=ue();let He=(0,it.useRef)();function ze(Mt){xe(Mt,He.current)}function Ke(Mt,Xe){if(Mt.status===-1){Ie.ZP.error(Mt.message);return}Te.setFieldsValue({src:`/api/attachments/${Mt.id}`,type:Xe.type})}function Ze(Mt){let Xe=Mt.target.files[0];He.current=Xe,Ae(Xe,Ke)}return be.createElement(pe.default,te(ee({form:Te},de),{className:"upload-image-panel",onFinish:ze,style:{width:470,overflow:"hidden"}}),be.createElement(pe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},be.createElement("div",{className:"flex-container"},be.createElement(pe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},be.createElement(Ve.default,{style:ae})),be.createElement(Pe,{onFileChange:Ze}))),be.createElement(pe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},be.createElement(Ve.default,{style:{width:264}})),be.createElement(pe.default.Item,{style:{textAlign:"right"}},be.createElement(st.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),be.createElement(st.ZP,{type:"default",onClick:Le},"\u53D6\u6D88")))};function Pe({onFileChange:xe}){return be.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",be.createElement("input",{type:"file",onChange:xe}))}function Ae(xe,Le){if(!xe)throw new String("\u6CA1\u6709\u6587\u4EF6");let Te=new FormData;Te.append("editormd-image-file",xe),Te.append("file_param_name","editormd-image-file"),Te.append("byxhr","true");var He=new window.XMLHttpRequest;He.withCredentials=!0,He.addEventListener("load",function(ze){Le(JSON.parse(ze.target.responseText),xe)},!1),He.addEventListener("error",function(ze){console.error(ze)},!1),He.open("POST",`${We.KI}/api/attachments.json`),He.send(Te)}},50474:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Ve}});var pe=he(59301),Ie=he(4676);class Ve extends pe.Component{constructor(We){super(We);const it=window.document;this.node=it.createElement("div"),it.body.appendChild(this.node)}render(){const{children:We}=this.props;return(0,Ie.createPortal)(We,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(gn,zt,he){"use strict";he.d(zt,{SV:function(){return Zt},ZP:function(){return Ye}});var pe=he(59301),Ie=he(76374);const Ve={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"]},st={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"]},We={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(`
|
|
|
`)}]},it={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(`
|
|
|
`)}]},be={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 yt=he(86061),vt=he.n(yt),Je=Object.defineProperty,tt=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(Gt,ft,nt)=>ft in Gt?Je(Gt,ft,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Gt[ft]=nt,ue=(Gt,ft)=>{for(var nt in ft||(ft={}))Ee.call(ft,nt)&&te(Gt,nt,ft[nt]);if(Qe)for(var nt of Qe(ft))ee.call(ft,nt)&&te(Gt,nt,ft[nt]);return Gt},ae=(Gt,ft)=>tt(Gt,$e(ft)),de=(Gt,ft,nt)=>new Promise((Oe,we)=>{var ye=Fe=>{try{Ge(nt.next(Fe))}catch(pt){we(pt)}},ke=Fe=>{try{Ge(nt.throw(Fe))}catch(pt){we(pt)}},Ge=Fe=>Fe.done?Oe(Fe.value):Promise.resolve(Fe.value).then(ye,ke);Ge((nt=nt.apply(Gt,ft)).next())});const ve={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Pe=(Gt,ft)=>ft.map(nt=>({label:nt,kind:Gt.languages.CompletionItemKind.Keyword,insertText:nt})),Ae=Gt=>Object.keys(ve.tables).map(ft=>({label:ft,kind:Gt.languages.CompletionItemKind.Variable,insertText:ft})),xe=(Gt,ft)=>{const nt=ve.tables[Gt];return nt?nt.map(Oe=>({label:Oe,kind:ft.languages.CompletionItemKind.Field,insertText:Oe})):[]};function Le(Gt,ft,nt,Oe,we){let ye=ft.getWordUntilPosition(nt),ke={startLineNumber:nt.lineNumber,endLineNumber:nt.lineNumber,startColumn:ye.startColumn,endColumn:ye.endColumn},Ge=Oe.map(Fe=>({label:Fe,kind:Gt.languages.CompletionItemKind.Keyword,insertText:Fe,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke}));return we.map(Fe=>{Ge.push(ae(ue({},Fe),{range:ke}))}),Ge}var Te=Gt=>{ve.languages.map(we=>(Gt.languages.registerDocumentFormattingEditProvider(we,{provideDocumentFormattingEdits(ye,ke,Ge){return de(this,null,function*(){const Fe=vt()(ye.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:ye.getFullModelRange(),text:Fe}]})}}),we));const ft=We.quickKey.map(we=>({label:we.label,kind:Gt.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),nt=it.quickKey.map(we=>({label:we.label,kind:Gt.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Oe=st.quickKey.map(we=>({label:we.label,kind:Gt.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Gt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ge={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Fe=we.getLineContent(ye.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...We.keywords.map(pt=>({label:pt,kind:Gt.languages.CompletionItemKind.Function,documentation:pt,insertText:pt,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...We.quickKey.map(pt=>({label:pt.label,kind:Gt.languages.CompletionItemKind.Function,documentation:pt.content,insertText:Fe.startsWith("#")?pt.content.replace(/#/,""):pt.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),Gt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ge={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn};return{suggestions:[...Ve.keywords.map(Fe=>({label:Fe,kind:Gt.languages.CompletionItemKind.Function,documentation:Fe,insertText:Fe,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),Gt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ge={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Fe=we.getLineContent(ye.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...st.keywords.map(pt=>({label:pt,kind:Gt.languages.CompletionItemKind.Function,documentation:pt,insertText:pt,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...st.quickKey.map(pt=>({label:pt.label,kind:Gt.languages.CompletionItemKind.Function,documentation:pt.content,insertText:Fe.startsWith("#")?pt.content.replace(/#/,""):pt.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),Gt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ge={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Fe=we.getLineContent(ye.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...be.keywords.map(pt=>({label:pt,kind:Gt.languages.CompletionItemKind.Function,documentation:pt,insertText:pt,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...be.quickKey.map(pt=>({label:pt.label,kind:Gt.languages.CompletionItemKind.Function,documentation:pt.content,insertText:Fe.startsWith("#")?pt.content.replace(/#/,""):pt.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),Gt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ge={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Fe=we.getLineContent(ye.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...it.keywords.map(pt=>({label:pt,kind:Gt.languages.CompletionItemKind.Function,documentation:pt,insertText:pt,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...it.quickKey.map(pt=>({label:pt.label,kind:Gt.languages.CompletionItemKind.Function,documentation:pt.content,insertText:Fe.startsWith("#")?pt.content.replace(/#/,""):pt.content,insertTextRules:Gt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}})};const He="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ze=Object.defineProperty,Ke=(Gt,ft,nt)=>ft in Gt?ze(Gt,ft,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Gt[ft]=nt,Ze=(Gt,ft,nt)=>Ke(Gt,typeof ft!="symbol"?ft+"":ft,nt);const Mt=class wx{constructor(ft,nt,Oe){this.placeholder=ft,this.editor=nt,this.monaco=Oe,nt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return wx.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)}};Ze(Mt,"ID","editor.widget.placeholderHint");var Ft=Mt,Ct=he(96236),Nt=he(8591),It=he(6848),_t=he(89392),lt=he(86766),je=he(56102),Et=Object.defineProperty,ln=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Hn=(Gt,ft,nt)=>ft in Gt?Et(Gt,ft,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Gt[ft]=nt,pn=(Gt,ft)=>{for(var nt in ft||(ft={}))Bt.call(ft,nt)&&Hn(Gt,nt,ft[nt]);if(xt)for(var nt of xt(ft))rn.call(ft,nt)&&Hn(Gt,nt,ft[nt]);return Gt},_n=(Gt,ft)=>ln(Gt,Ht(ft)),Lt=(Gt,ft)=>{var nt={};for(var Oe in Gt)Bt.call(Gt,Oe)&&ft.indexOf(Oe)<0&&(nt[Oe]=Gt[Oe]);if(Gt!=null&&xt)for(var Oe of xt(Gt))ft.indexOf(Oe)<0&&rn.call(Gt,Oe)&&(nt[Oe]=Gt[Oe]);return nt},Un=(Gt,ft,nt)=>new Promise((Oe,we)=>{var ye=Fe=>{try{Ge(nt.next(Fe))}catch(pt){we(pt)}},ke=Fe=>{try{Ge(nt.throw(Fe))}catch(pt){we(pt)}},Ge=Fe=>Fe.done?Oe(Fe.value):Promise.resolve(Fe.value).then(ye,ke);Ge((nt=nt.apply(Gt,ft)).next())});function Gn(Gt){return/^\d+$/.test(Gt)?`${Gt}px`:Gt}function ui(){}let Ln=!1;const Wt={"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 Vt(Gt=[]){let ft=Gt;if(Array.isArray(Gt)){for(let nt=0;nt<Gt.length;nt++){let Oe=Wt[Gt[nt]];if(Oe)return Oe}return ft[0]}return Wt[ft]||ft}let mt=null;var Ye=Gt=>{var ft=Gt,{width:nt="100%",height:Oe="100%",value:we,language:ye="javascript",style:ke={},options:Ge={},overrideServices:Fe={},theme:pt="vs-dark",onEditBlur:tn,isCopy:en=!1,onSave:wt,autoHeight:Xt=!1,forbidCopy:Pn=!1,onChange:In=ui,editorDidMount:$n=ui,onFocus:Pi=ui,onBreakPoint:wn=ui,breakPointValue:Ai=[],filename:Vi="educoder.txt",errorLine:ur,errorContent:sr="",highlightLine:Qn,openBreakPoint:Ci=!1,placeholder:er=""}=ft,ri=Lt(ft,["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 tr=(0,pe.useRef)(),Di=(0,pe.useRef)({}),De=(0,pe.useRef)(),Yr=(0,pe.useRef)(),yr=(0,pe.useRef)([]),Dr=(0,pe.useRef)(!1),lo=(0,pe.useRef)(),Wo=(0,pe.useRef)(),No=(0,pe.useRef)(!1),[ki,an]=(0,pe.useState)(!1);function nn(){let qt;return tr.current&&(qt=new Ie.Z(Nn=>{for(let on of Nn)(on.target.offsetHeight>0||on.target.offsetWidth>0)&&Di.current.instance.layout()}),qt.observe(tr.current)),qt}function Ut(){Nt.ZP.warning({content:decodeURIComponent(He),key:"monaco-editor-tip"})}const bt=()=>{let qt=Di.current.instance;if(we!=null&&qt&&ki){const Nn=qt.getModel();Nn&&we!==Nn.getValue()&&(Ln=!0,Nn.setValue(we),qt.layout(),Ln=!1)}};(0,pe.useEffect)(()=>{const qt=lt.Z.subscribe("formatDocument",Nn=>{var on;let Sn=Di.current.instance;(on=Sn==null?void 0:Sn.getAction)==null||on.call(Sn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Nn=>{In(Nn)},qt},[]),(0,pe.useEffect)(()=>{var qt;let Nn=Di.current.instance;Yr.current&&clearTimeout(Yr.current),Yr.current=setTimeout(()=>{bt()},500),we&&(we!=null&&we.length)&&((qt=Nn==null?void 0:Nn.updateOptions)==null||qt.call(Nn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(we.split(/\r\n|\r|\n/g).length))+3,5)}))},[we,ki,Di.current]),(0,pe.useEffect)(()=>{if(ur&&Di.current&&Di.current.instance){let Nn=Di.current.instance;Nn.changeViewZones(function(on){var Sn=document.createElement("div");Sn.style.padding="10px 20px",Sn.style.width="calc(100% - 20px)",Sn.className="my-error-line-wrp",Sn.innerHTML=sr,on.addZone({afterLineNumber:ur||11,heightInLines:3,domNode:Sn})});var qt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Nn.addOverlayWidget(qt),Nn.revealPositionInCenter({lineNumber:20,column:1})}},[ur,Di.current,ki]);const xn=(qt="",Nn)=>{if(!qt||qt.trim()==="")return!0;const Sn=Di.current.instance.getModel().getLineTokens(Nn);let Fn=!1;for(let En=0;En<2;En++)Sn.getStandardTokenType(En)===1&&(Fn=!0);return Fn};(0,pe.useEffect)(()=>{var qt;const Nn=(qt=Di.current)==null?void 0:qt.instance;if(Nn&&ki&&Pn){const on=Nn.onDidBlurEditorWidget(()=>{No.current=!1}),Sn=Nn.onDidFocusEditorText(()=>{No.current=!0});return()=>{on.dispose(),Sn.dispose()}}},[Di.current,ki,Pn]),(0,pe.useEffect)(()=>{var qt;if((qt=Di.current)!=null&&qt.instance&&ki&&Ci){let Nn=Di.current.instance,on=Nn.getModel();if(!on)return;(()=>{var rr;let Jt=[],Fi=[];const Si=on.getAllDecorations();for(let Nr of Si)Nr.options.className==="highlighted-line"&&(Jt.push((rr=Nr==null?void 0:Nr.range)==null?void 0:rr.startLineNumber),Fi.push(Nr==null?void 0:Nr.id));if(Qn===Jt[0])return;on.deltaDecorations(Fi,[]);const Wi=on.getLineCount();Qn&&Qn<=Wi&&(Nn.deltaDecorations([],[{range:new mt.Range(Qn,1,Qn,on.getLineMaxColumn(Qn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Nn.revealLineInCenter(Qn))})();const Fn=(rr=!1)=>{var Jt;let Fi=[],Si=[];const Wi=on.getAllDecorations();for(let Nr of Wi)Nr.options.linesDecorationsClassName==="breakpoints-select"&&(Fi.push((Jt=Nr==null?void 0:Nr.range)==null?void 0:Jt.startLineNumber),Si.push(Nr==null?void 0:Nr.id));if(rr)return{lines:Fi,ids:Si};wn(Fi)},En=rr=>Un(void 0,null,function*(){let Jt={range:new mt.Range(rr,1,rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield on.deltaDecorations([],[Jt]),Fn()}),kn=rr=>Un(void 0,null,function*(){let Jt=[];const Fi=Nn.getLineDecorations(rr);for(let Si of Fi)Si.options.linesDecorationsClassName==="breakpoints-select"&&Jt.push(Si.id);yield on.deltaDecorations(Jt,[]),Fn()}),Zn=rr=>{let Jt=Nn.getLineDecorations(rr);for(let Fi of Jt)if(Fi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_t.isEqual)(Ai,Fn(!0).lines)){on.deltaDecorations(Fn(!0).ids,[]);const rr=Ai.map(Jt=>({range:new mt.Range(Jt,1,Jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));on.deltaDecorations([],rr)}const Jn=Nn.onDidChangeModelContent(rr=>{let Jt=Nn.getPosition();if(Jt){let Fi=Jt.lineNumber;clearTimeout(Wo.current),Wo.current=setTimeout(()=>{xn(on.getLineContent(Fi),Fi)?kn(Fi):Zn(Fi)?(kn(Fi),En(Fi)):Fn()},100)}}),si=Nn.onMouseDown(rr=>{var Jt,Fi,Si;if(rr.target.detail&&((Si=(Fi=(Jt=rr.target)==null?void 0:Jt.element)==null?void 0:Fi.className)!=null&&Si.includes("line-numbers"))){let Wi=rr.target.position.lineNumber;if(xn(on.getLineContent(Wi),Wi))return;Zn(Wi)?kn(Wi):En(Wi)}}),Tn=rr=>{let Jt={range:new mt.Range(rr,1,rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};yr.current=Nn.deltaDecorations(yr.current,[Jt])},mi=()=>{yr.current=Nn.deltaDecorations(yr.current,[])},nr=Nn.onMouseMove(rr=>{var Jt,Fi,Si;if(mi(),rr.target.detail&&((Si=(Fi=(Jt=rr.target)==null?void 0:Jt.element)==null?void 0:Fi.className)!=null&&Si.includes("line-numbers"))){let Wi=rr.target.position.lineNumber;if(xn(on.getLineContent(Wi),Wi))return;Tn(Wi)}}),Br=Nn.onMouseLeave(()=>{mi()});return()=>{Jn.dispose(),si.dispose(),nr.dispose(),Br.dispose()}}},[Di.current,ki,Ai,Qn,Ci,ye]),(0,pe.useEffect)(()=>{var qt;(qt=Di.current)!=null&&qt.instance&&Ci&&Di.current.instance.setPosition({lineNumber:0,column:0})},[Qn]);function hn(){let qt=Di.current.instance;if(qt){const Nn=qt.getSelection(),on=Di.current.pastePos||{},Sn=new mt.Range(on.startLineNumber||Nn.endLineNumber,on.startColumn||Nn.endColumn,on.endLineNumber||Nn.endLineNumber,on.endColumn||Nn.endColumn);setTimeout(()=>{qt.executeEdits("",[{range:Sn,text:""}])},300)}}function Tt(qt){(window.navigator.platform.match("Mac")?qt.metaKey:qt.ctrlKey)&&qt.keyCode==83&&(qt.preventDefault(),wt())}const ot=()=>{if(Xt&&Di.current.instance){const qt=Di.current.instance.getContentHeight();pi(qt<Oe?Oe:qt)}else pi(Oe)};function fn(qt){var Nn=document.createEvent("MouseEvents");Nn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),qt.dispatchEvent(Nn)}const yn=qt=>{if(!No.current)return;const{keyCode:Nn,ctrlKey:on,metaKey:Sn,target:Fn,type:En}=qt;return(En==="paste"||(Nn===67||Nn===86)&&(Sn||on))&&Fn.nodeName==="TEXTAREA"&&(Ut(),qt.preventDefault()),!1};function li(qt,Nn){var on=window.URL||window.webkitURL||window,Sn=new Blob([Nn]),Fn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Fn.href=on.createObjectURL(Sn),Fn.download=qt,fn(Fn)}(0,pe.useEffect)(()=>{ot()},[ot]),(0,pe.useEffect)(()=>{tr.current&&!ki&&Promise.all([he.e(8909),he.e(1810)]).then(he.bind(he,71448)).then(qt=>{try{mt=qt,Di.current.instance=mt.editor.create(tr.current,{value:we,language:Vt(ye),theme:pt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Fe);const Nn=Di.current.instance;let Fn=[...Ct.BH._menuItems].find(Jn=>Jn[0]._debugName=="EditorContext")[1],En=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],kn=(Jn,si)=>{var Tn,mi;let nr=Jn._first;do si.includes((mi=(Tn=nr.element)==null?void 0:Tn.command)==null?void 0:mi.id)&&Jn._remove(nr);while(nr=nr.next)};if($n(Nn,mt),setTimeout(()=>{ot(),Di.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{li(Vi||"educoder.txt",Nn.getValue())}})},500),Di.current.subscription=Nn.onDidChangeModelContent(Jn=>{Dr.current?clearTimeout(lo.current):(ot(),In(Nn.getValue(),Jn)),lo.current=setTimeout(()=>{Dr.current=!1},500)}),window.Monaco||Te(mt,Vt(ye)),Pn&&(kn(Fn,En),tr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",yn),window.removeEventListener("paste",yn),window.addEventListener("keydown",yn),window.addEventListener("paste",yn)),window.Monaco=mt,tn&&Nn.onDidBlurEditorWidget(()=>{tn(Nn.getValue())}),Pi&&Nn.onDidFocusEditorText(()=>{Pi(Nn.getValue())}),Pn)try{Nn.onDidPaste(Jn=>{const si=Nn.getSelection(),Tn=Di.current.pastePos||{},mi=new mt.Range(Tn.startLineNumber||si.endLineNumber,Tn.startColumn||si.endColumn,Tn.endLineNumber||si.endLineNumber,Tn.endColumn||si.endColumn);Nn.executeEdits("",[{range:Jn.range,text:""}])})}catch(Jn){}let Zn=nn();return er&&typeof er=="string"&&new Ft(er,Nn,mt),an(!0),()=>{const Jn=Di.current.instance;Jn.dispose();const si=Jn.getModel();si&&si.dispose(),Di.current.subscription&&Di.current.subscription.dispose(),Zn.unobserve(tr.current)}}catch(Nn){}})},[]),(0,pe.useEffect)(()=>{if(Di.current.instance&&ki)return document.addEventListener("keydown",Tt,!1),()=>{document.removeEventListener("keydown",Tt)}},[wt,ki]),(0,pe.useEffect)(()=>{let qt=Di.current.instance;if(qt&&ki){let Nn=Vt(ye);mt.editor.setModelLanguage(qt.getModel(),Nn)}},[ye,ki]),(0,pe.useEffect)(()=>{Di.current.instance&&ki&&mt.editor.setTheme(pt)},[pt,ki]),(0,pe.useEffect)(()=>{let qt=Di.current.instance;De.current=Ge,qt&&ki&&(qt.updateOptions(pn({},Ge)),setTimeout(()=>{qt.getModel().updateOptions(pn({},Ge))},200))},[JSON.stringify(Ge),ki]),(0,pe.useEffect)(()=>{let qt=Di.current.instance;qt&&ki&&qt.layout()},[nt,Oe,ki]);const[vn,at]=(0,pe.useState)(Gn(nt)),[Bn,pi]=(0,pe.useState)(Gn(Oe)),Li=_n(pn({},ke),{width:vn,height:Bn,position:"relative"});return pe.createElement("div",{className:"my-monaco-editor",ref:tr,style:Li},en&&pe.createElement(je.CopyToClipboard,{text:we,onCopy:()=>Nt.ZP.success("\u590D\u5236\u6210\u529F")},pe.createElement(It.Z,{title:"\u590D\u5236\u4EE3\u7801"},pe.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},pe.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Zt({width:Gt="100%",height:ft="100%",original:nt,modified:Oe,language:we,options:ye={}}){const ke=(0,pe.useRef)(),[Ge,Fe]=(0,pe.useState)(null);function pt(Xt){let Pn;return ke.current&&(Pn=new Ie.Z(In=>{for(let $n of In)($n.target.offsetHeight>0||$n.target.offsetWidth>0)&&Xt.layout()}),Pn.observe(ke.current)),Pn}(0,pe.useEffect)(()=>(ke.current&&Promise.all([he.e(8909),he.e(9404)]).then(he.bind(he,2550)).then(Xt=>{mt=Xt;const Pn=mt.editor.createDiffEditor(ke.current,_n(pn({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},ye),{wordWrap:!0}));Fe(Pn);let In=pt(Pn);return()=>{Pn.dispose();const $n=Pn.getModel();$n&&$n.dispose(),In.unobserve(ke.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,pe.useEffect)(()=>{Ge&&Ge.setModel({original:mt.editor.createModel(nt,we),modified:mt.editor.createModel(Oe,we)})},[nt,Oe,we,Ge]);const tn=Gn(Gt),en=Gn(ft),wt={width:tn,height:en};return pe.createElement("div",{className:"my-diff-editor",ref:ke,style:wt})}},94606:function(gn,zt,he){"use strict";he.d(zt,{jL:function(){return We},w9:function(){return Bt},QD:function(){return In},cQ:function(){return je},op:function(){return pt},O5:function(){return No},_b:function(){return ur},t7:function(){return ae},Gi:function(){return Un},YG:function(){return _n},qp:function(){return tt},vr:function(){return wn},qE:function(){return wt},Je:function(){return Pe},wb:function(){return Ct},cq:function(){return mt},tp:function(){return Ee}});var pe=he(59301),Ie={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6B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1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",We=({dataSource:ki=[],img:an,imgWidth:nn=346,title:Ut,sunTitle:bt,bannerExtraContent:xn})=>pe.createElement("div",{className:Ie.banner},pe.createElement("div",{className:Ie.content},pe.createElement("aside",null,pe.createElement("p",null,pe.createElement("b",null,Ut),pe.createElement("span",null,bt)),ki.length>0&&pe.createElement("div",{className:Ie.btns},ki.map((hn,Tt)=>pe.createElement("div",{key:Tt,onClick:hn.click},hn.name,hn.sign?pe.createElement("img",{src:Ve,width:39}):null))),xn),an&&pe.createElement("img",{style:{marginTop:33,marginRight:38},src:an,width:nn}))),it={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},be=he(92310),yt=he.n(be),vt=he(89392),tt=({dataSource:ki=[],value:an,onChange:nn,onTitleChange:Ut,className:bt,title:xn,titleWidth:hn=41,style:Tt={},fontColor:ot="#6A7283",showCount:fn})=>{const[yn,li]=(0,pe.useState)(0),[vn,at]=(0,pe.useState)(!1),Bn=(0,pe.useRef)(null),pi=(0,pe.useRef)(null);return(0,pe.useEffect)(()=>{var Li;ki.length!==0&&(((Li=Bn==null?void 0:Bn.current)==null?void 0:Li.clientHeight)>97?li(1):li(0)),ki.length===0&&li(0),at(!1)},[ki]),pe.createElement("div",{className:yt()(it.row,bt),style:Tt},pe.createElement("div",{onClick:(0,vt.throttle)(()=>Ut==null?void 0:Ut(),2e3),style:{width:hn,marginTop:vn?12:4},className:`${it.title} ${Ut?"current":""}`},xn),pe.createElement("div",{className:vn?`${it.tagsWrap} ${it.tagsBorderWrap}`:it.tagsWrap},pe.createElement("div",{className:it.bar,ref:pi,style:yn>0?{height:yn===1?97:"auto",overflow:yn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},pe.createElement("div",{className:it.tag,ref:Bn},ki==null?void 0:ki.map(Li=>pe.createElement("span",{onClick:()=>nn(Li.id),key:Li.id,style:{color:ot},className:an===Li.id?it.active:""},pe.createElement("span",{title:Li.name,className:it.name},Li.name),!!fn&&pe.createElement("span",{className:it.num},Li.count))))),!!yn&&pe.createElement(pe.Fragment,null,yn===1?pe.createElement("div",{onClick:()=>{var Li;li(2),((Li=Bn==null?void 0:Bn.current)==null?void 0:Li.clientHeight)>245?at(!0):at(!1)},className:it.action},"\u5C55\u5F00",pe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):pe.createElement("div",{onClick:()=>{pi.current.scrollTop=0,li(1),at(!1)},className:it.action},"\u6536\u8D77",pe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},$e={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ee=({dataSource:ki=[],value:an,onChange:nn,className:Ut,style:bt={}})=>pe.createElement("div",{style:bt,className:yt()($e.tabs,Ut)},ki.map(xn=>pe.createElement("span",{onClick:()=>nn(xn.id),className:an===xn.id?$e.active:"",key:xn.id},xn.name))),ee={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},te=he(92832),ae=({dataSource:ki=[],value:an="",onChange:nn,onInputChange:Ut=()=>{},className:bt,style:xn={},placeholder:hn,allowClear:Tt=!1})=>{var ot;const[fn,yn]=(0,pe.useState)(""),[li,vn]=(0,pe.useState)("");(0,pe.useEffect)(()=>{var pi;let Li=an;(pi=JSON.stringify(an))!=null&&pi.includes("{")&&(yn(an.id),Li=an.value||"");try{vn(decodeURIComponent(Li||""))}catch(qt){vn(decodeURIComponent(Li||""))}},[an]);const at=()=>{nn(encodeURIComponent(li),fn||null)},Bn=pi=>{pi!==fn&&(yn(pi),nn(encodeURIComponent(li),pi))};return pe.createElement("div",{className:yt()(ee.input,bt),style:xn},!!ki.length&&pe.createElement("div",{className:ee.dropdown},pe.createElement("div",{className:ee.text},(ot=ki.find(pi=>pi.id===fn))==null?void 0:ot.name,pe.createElement("i",{className:"iconfont icon-zhankai4"}),pe.createElement("b",{className:ee.b1}),pe.createElement("b",{className:ee.b2})),pe.createElement("div",{className:ee.menu},ki.map((pi,Li)=>pe.createElement("div",{key:Li,onClick:()=>Bn(pi.id)},pi.name)))),pe.createElement(te.default,{onPressEnter:at,value:li,onChange:pi=>{vn(pi.target.value),Ut(encodeURIComponent(pi.target.value),fn||null)},bordered:!1,placeholder:hn}),pe.createElement("i",{onClick:at,className:"iconfont icon-sousuo9 font14 pl10 current"}))},de={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Pe=({value:ki,onChange:an,className:nn,total:Ut,pageSize:bt,style:xn={}})=>{const hn=ki<2,Tt=ki>=Math.ceil(Ut/bt);return Ut<=bt?pe.createElement(pe.Fragment,null):pe.createElement("div",{className:yt()(de.quickPager,nn),style:xn},pe.createElement("div",{onClick:()=>{hn||an(ki-1,"prev")},className:hn?de.disabled:""},"\u4E0A\u4E00\u9875"),pe.createElement("div",{onClick:()=>{Tt||an(ki+1,"next")},className:Tt?de.disabled:""},"\u4E0B\u4E00\u9875"))},Ae={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},xe=he(71418),Le=he(6848),Te=he(39978),He=he(10148),ze=he(58130),Ke=he(96908),Ze=he(57177),Mt=he(81378),Xe=he(97267),Ct=({className:ki,dataSource:an=[],col:nn=4,right:Ut,bottom:bt=23,precision:xn=0,wrapWidth:hn=1200,trackEventItems:Tt,loading:ot})=>{const fn=Math.floor((hn-(nn-1)*Ut)/nn);return pe.createElement(xe.Z,{spinning:ot},pe.createElement("div",{className:yt()(Ae.list,ki)},!!an.length&&an.map((yn,li)=>{const{name:vn,id:at,identifier:Bn,power:pi,cover_image_id:Li,pic:qt}=yn;return pe.createElement("div",{className:Ae.wrap,key:at,style:{width:fn,marginRight:(1+li)%nn===0?0:Ut+xn,marginBottom:bt}},pe.createElement("a",{target:"_blank",href:`/shixuns/${Bn}/challenges`,className:Ae.li,onClick:Nn=>{Nn.preventDefault(),Tt&&(0,ze.L9)([Tt]),pi&&(0,ze.xg)(`/shixuns/${Bn}/challenges`)}},pe.createElement("div",{className:Ae.img},pe.createElement("img",{className:Ae.cover,src:`${qt}`}),yn.is_jupyter&&pe.createElement("img",{className:Ae.sign,src:Ke}),yn.is_jupyter_lab&&pe.createElement("img",{className:Ae.sign,src:Ze}),yn.is_unity_3d&&pe.createElement("img",{className:Ae.sign,src:Mt})),pe.createElement("div",{className:Ae.name},pe.createElement(Le.Z,{title:vn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},pe.createElement("span",{className:Ae.e},vn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),pe.createElement("div",{className:Ae.tags},pe.createElement(Le.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),pe.createElement("span",null,yn.challenges_count))),!!yn.myshixuns_count&&pe.createElement(Le.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),pe.createElement("span",null,yn.myshixuns_count))),pe.createElement(Le.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},pe.createElement("span",null,pe.createElement("span",null,yn.level))),pe.createElement("div",{className:Ae.rate},pe.createElement(Te.Z,{allowHalf:!0,disabled:!0,defaultValue:yn.score_info}),pe.createElement("span",null,"\xA0",yn.score_info?`${yn.score_info}\u5206`:"5\u5206")))),!pi&&pe.createElement("div",{className:Ae.lockWrap},pe.createElement("img",{src:`${He.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),pe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!an.length&&pe.createElement(Xe.Z,null)))},Nt={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},It=he(2119),_t=he(59301),je=({className:ki,dataSource:an=[],col:nn=4,right:Ut,bottom:bt=23,precision:xn=0,wrapWidth:hn=1200,trackEventItems:Tt,loading:ot,onRemove:fn=()=>{},isCurrent:yn=!0,showAlias:li=!1})=>{const vn=Math.floor((hn-(nn-1)*Ut)/nn),at=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return _t.createElement(xe.Z,{spinning:ot},_t.createElement("div",{className:yt()(Nt.list,ki)},!!(an!=null&&an.length)&&(an==null?void 0:an.map((Bn,pi)=>{var Li;const{name:qt,id:Nn,identifier:on,featured:Sn,school_name:Fn,image_url:En,excellent:kn,is_plan:Zn}=Bn;return _t.createElement("div",{key:Nn,className:Nt.wrap,style:{width:vn,marginRight:(1+pi)%nn===0?0:Ut+xn,marginBottom:bt}},_t.createElement("a",{className:Nt.li,onClick:Jn=>{Jn.preventDefault(),Jn.stopPropagation(),Tt&&(0,ze.L9)([Tt]),(0,ze.xg)(`/paths/${on}`)}},_t.createElement("div",{className:Nt.img},_t.createElement("img",{className:Nt.cover,src:`${En}`}),yn&&(0,It.bg)()&&(Bn==null?void 0:Bn.studying)&&_t.createElement("div",{className:`${Nt.movebq} user-path-items`,onClick:Jn=>{Jn.stopPropagation(),fn(Bn)}},_t.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),_t.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Li=Bn==null?void 0:Bn.subject_tags)==null?void 0:Li.map((Jn,si)=>{var Tn,mi;if(si===0){const Br=(Tn=at.find(rr=>rr.name==Jn))==null?void 0:Tn.swimg;return _t.createElement("img",{className:Nt.sign,src:Br,style:{left:"-4px"}})}const nr=(mi=at.find(Br=>Br.name==Jn))==null?void 0:mi.ptimg;return _t.createElement("img",{className:Nt.sign,src:nr,style:{left:`${48+52*(si-1)+2*si}px`}})}),_t.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Bn==null?void 0:Bn.excellent)&&_t.createElement("div",{className:Nt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),_t.createElement("div",{className:Nt.name},_t.createElement(Le.Z,{title:li&&(Bn!=null&&Bn.excellent_alias_name)?_t.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${qt}`,_t.createElement("br",null),_t.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Bn==null?void 0:Bn.excellent_alias_name}`)):qt},_t.createElement("span",{className:Nt.e},li&&(Bn==null?void 0:Bn.excellent_alias_name)||qt))),_t.createElement(Le.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Fn}`},_t.createElement("div",{className:Nt.unit},_t.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Fn)),_t.createElement("div",{className:Nt.tags},_t.createElement("div",null,_t.createElement(Le.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},_t.createElement("span",null,_t.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),_t.createElement("span",null,Bn.stages_count))),_t.createElement(Le.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},_t.createElement("span",null,_t.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),_t.createElement("span",null,Bn.members_count)))))))})),!an.length&&_t.createElement(Xe.Z,null)))},Et={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ln="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQ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5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ht=he(59301),Bt=({className:ki,dataSource:an=[],col:nn=4,right:Ut,bottom:bt=23,precision:xn=0,wrapWidth:hn=1200,trackEventItems:Tt,loading:ot})=>{const fn=Math.floor((hn-(nn-1)*Ut)/nn);return Ht.createElement(xe.Z,{spinning:ot},Ht.createElement("div",{className:yt()(Et.list,ki)},!!an.length&&an.map((yn,li)=>{const{subject_identifier:vn,id:at,identifier:Bn,power:pi}=yn,Li=yn.is_public!=0&&yn.is_public;return Ht.createElement("div",{className:Et.wrap,key:at,style:{width:fn,marginRight:(1+li)%nn===0?0:Ut+xn,marginBottom:bt}},Ht.createElement("a",{className:Et.li,onClick:qt=>{qt.preventDefault(),Tt&&(0,ze.L9)([Tt]),(0,ze.xg)(yn.first_category_url)}},Ht.createElement("div",{className:Et.top},Ht.createElement(Le.Z,{title:yn.name},Ht.createElement("div",{className:Et.name},yn.name)),Ht.createElement("img",{className:Et.img,src:He.Z.IMG_SERVER+"/images/"+yn.avatar_url}),Ht.createElement("div",{className:Et.text,title:yn.creator},yn.creator),vn&&Ht.createElement("div",{className:Et.btns},Ht.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ht.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Li&&Ht.createElement("div",{className:Et.sign},"\u516C\u5F00")),Ht.createElement("div",{className:Et.bottom},yn.visits>0&&Ht.createElement(Le.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ht.createElement("span",null,Ht.createElement("i",{className:"iconfont icon-liulanyan"}),Ht.createElement("span",null,yn.visits))),yn.course_members_count>0&&Ht.createElement(Le.Z,{title:"\u6210\u5458",placement:"bottom"},Ht.createElement("span",null,Ht.createElement("i",{className:"iconfont icon-chengyuan"}),yn.course_members_count)),yn.tasks_count>0&&Ht.createElement(Le.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ht.createElement("span",null,Ht.createElement("i",{className:"iconfont icon-zuoye"}),yn.tasks_count)),yn.is_end?Ht.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ht.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!yn.is_accessible&&Ht.createElement("div",{className:Et.lockWrap},Ht.createElement("img",{src:`${He.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ht.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!an.length&&Ht.createElement(Xe.Z,null)))},rn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Hn=he(42203),_n=({dataSource:ki=[],value:an,onChange:nn,className:Ut,style:bt={},tabBarExtraContent:xn})=>pe.createElement("div",{className:yt()(rn.tabs,Ut),style:bt},pe.createElement("div",{className:rn.tabsWrap},ki.map((hn,Tt)=>pe.createElement("aside",{className:rn.tab,onClick:()=>{nn(hn.id),hn.link&&Hn.history.push(hn.link)},key:Tt},pe.createElement("div",{className:an===hn.id?rn.active:""},hn.name),(hn==null?void 0:hn.resetCount)==null&&(hn==null?void 0:hn.total)!==void 0&&pe.createElement("span",null,"\uFF08",hn==null?void 0:hn.total,"\uFF09"),(hn==null?void 0:hn.resetCount)!==void 0&&(hn==null?void 0:hn.total)!==void 0&&pe.createElement(Le.Z,{title:(hn==null?void 0:hn.tip)!=null?hn==null?void 0:hn.tip:""},pe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",pe.createElement("span",{style:{color:"#000"}},hn==null?void 0:hn.resetCount),"/",pe.createElement("span",null,hn==null?void 0:hn.total),"\uFF09"))))),pe.createElement("div",{className:rn.tabBar},xn)),Un=({className:ki,style:an={},children:nn})=>pe.createElement("div",{className:yt()(ki),style:an},nn),Gn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},ui=he(38854),Ln=he(20834);const Wt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var mt=({sortValue:ki,dropValue:an,className:nn,onSort:Ut,onDrop:bt,dataSource:xn=Wt})=>{var hn;return pe.createElement("div",{className:yt()(Gn.orderWrap,nn)},pe.createElement(ui.Z,{dropdownRender:()=>pe.createElement(Ln.default,null,xn.map((Tt,ot)=>pe.createElement(Ln.default.Item,{key:ot,onClick:()=>bt(Tt.id)},Tt.name)))},pe.createElement("span",{className:Gn.orderTextWrap},(hn=xn.find(Tt=>an===Tt.id))==null?void 0:hn.name)),pe.createElement("span",{className:Gn.orderIconWrap},pe.createElement("span",{className:Gn.orderAsc},pe.createElement("i",{className:ki==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Gn.cursorPointer} ${Gn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Gn.cursorPointer}`,onClick:()=>Ut(ki==="asc"?"desc":"asc")})),pe.createElement("span",{className:Gn.orderDesc},pe.createElement("i",{className:ki==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Gn.cursorPointer} ${Gn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Gn.cursorPointer}`,onClick:()=>Ut(ki==="asc"?"desc":"asc")}))))},Ye={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Zt=he(3113),Gt=Object.defineProperty,ft=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,we=(ki,an,nn)=>an in ki?Gt(ki,an,{enumerable:!0,configurable:!0,writable:!0,value:nn}):ki[an]=nn,ye=(ki,an)=>{for(var nn in an||(an={}))nt.call(an,nn)&&we(ki,nn,an[nn]);if(ft)for(var nn of ft(an))Oe.call(an,nn)&&we(ki,nn,an[nn]);return ki},ke=(ki,an)=>{var nn={};for(var Ut in ki)nt.call(ki,Ut)&&an.indexOf(Ut)<0&&(nn[Ut]=ki[Ut]);if(ki!=null&&ft)for(var Ut of ft(ki))an.indexOf(Ut)<0&&Oe.call(ki,Ut)&&(nn[Ut]=ki[Ut]);return nn},Ge=(ki,an,nn)=>new Promise((Ut,bt)=>{var xn=ot=>{try{Tt(nn.next(ot))}catch(fn){bt(fn)}},hn=ot=>{try{Tt(nn.throw(ot))}catch(fn){bt(fn)}},Tt=ot=>ot.done?Ut(ot.value):Promise.resolve(ot.value).then(xn,hn);Tt((nn=nn.apply(ki,an)).next())}),pt=ki=>{var an=ki,{className:nn,style:Ut,children:bt,loading:xn=!1,openLoading:hn,onClick:Tt=()=>{},size:ot="middle",shape:fn="round"}=an,yn=ke(an,["className","style","children","loading","openLoading","onClick","size","shape"]);const[li,vn]=(0,pe.useState)(!1);return pe.createElement(Zt.ZP,ye({onClick:(0,vt.throttle)(at=>Ge(void 0,null,function*(){hn&&vn(!0);try{yield Tt(at)}catch(Bn){console.log("error",Bn)}hn&&vn(!1)}),2e3,{leading:!0,trailing:!1}),className:yt()(Ye.btn,Ye[`${ot}-${fn}`],nn),style:Ut,size:ot,shape:fn,loading:li||xn},yn),bt)},tn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},wt=({className:ki,style:an,children:nn=null,onClick:Ut,title:bt})=>pe.createElement("div",{className:yt()(tn.head,ki),style:an},pe.createElement("span",{className:"primary-hover",onClick:Ut},pe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),pe.createElement("b",{title:bt},bt),pe.createElement("div",{className:tn.node},nn)),Xt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},In=({confirmShow:ki=!0,confirmTitle:an,confirmClick:nn,cancelShow:Ut=!0,cancelTitle:bt,cancelClick:xn,className:hn,style:Tt,confirmLoading:ot=!1})=>pe.createElement("div",{className:yt()(Xt.btns,hn),style:Tt},ki&&pe.createElement(Zt.ZP,{loading:ot,onClick:nn,type:"primary",className:Xt.confirm},an),Ut&&pe.createElement(Zt.ZP,{onClick:xn,className:Xt.cancel},bt)),$n={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},wn=({className:ki,style:an={},LeftContent:nn,children:Ut,RightContent:bt})=>pe.createElement("div",{className:yt()($n.fixedBottom,ki),style:an},pe.createElement("div",{className:$n.wrap},pe.createElement("div",{className:$n.left},nn),pe.createElement("div",{className:$n.center},Ut),pe.createElement("div",{className:$n.right},bt))),Ai={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},ur=({className:ki,style:an={},dataSource:nn=[]})=>pe.createElement("div",{className:yt()(Ai.crumbs,ki),style:an},nn.map((Ut,bt)=>bt<nn.length-1?pe.createElement(pe.Fragment,{key:bt},Ut.path||Ut.onClick?pe.createElement("span",{className:Ai.hover,onClick:Ut!=null&&Ut.onClick?Ut.onClick:()=>Hn.history.push(Ut.path)},Ut.name):pe.createElement("span",null,Ut.name),pe.createElement("span",null,"\xA0",">","\xA0")):pe.createElement("span",{key:bt,style:{color:"#5F6368"}},Ut.name))),sr=he(31797),Qn=Object.defineProperty,Ci=Object.defineProperties,er=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,De=(ki,an,nn)=>an in ki?Qn(ki,an,{enumerable:!0,configurable:!0,writable:!0,value:nn}):ki[an]=nn,Yr=(ki,an)=>{for(var nn in an||(an={}))tr.call(an,nn)&&De(ki,nn,an[nn]);if(ri)for(var nn of ri(an))Di.call(an,nn)&&De(ki,nn,an[nn]);return ki},yr=(ki,an)=>Ci(ki,er(an)),Dr=(ki,an)=>{var nn={};for(var Ut in ki)tr.call(ki,Ut)&&an.indexOf(Ut)<0&&(nn[Ut]=ki[Ut]);if(ki!=null&&ri)for(var Ut of ri(ki))an.indexOf(Ut)<0&&Di.call(ki,Ut)&&(nn[Ut]=ki[Ut]);return nn};const{Countdown:lo}=sr.default;var No=ki=>{var an=ki,{onChange:nn}=an,Ut=Dr(an,["onChange"]);const[bt,xn]=(0,pe.useState)(null);(0,pe.useEffect)(()=>{typeof bt=="number"&&bt>=0&&nn(bt)},[bt]);const hn=Tt=>{const ot=Math.floor(Tt/1e3);xn(ot)};return pe.createElement(lo,yr(Yr({},Ut),{onChange:hn}))}},91300:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Ie}});var pe=he(59301);function Ie(Ve,st){const We=(0,pe.useRef)();(0,pe.useEffect)(()=>{We.current=Ve}),(0,pe.useEffect)(()=>{function it(){We.current()}if(st!==null){let be=setInterval(it,st);return()=>clearInterval(be)}},[st])}},73782:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(43418),Ve=he(70635),st=he(42203),We=he(59301),it=(yt,vt,Je)=>new Promise((tt,$e)=>{var Qe=te=>{try{ee(Je.next(te))}catch(ue){$e(ue)}},Ee=te=>{try{ee(Je.throw(te))}catch(ue){$e(ue)}},ee=te=>te.done?tt(te.value):Promise.resolve(te.value).then(Qe,Ee);ee((Je=Je.apply(yt,vt)).next())});const be=({exercise:yt,dispatch:vt,init:Je,haveInit:tt=!1})=>{const $e=(0,st.useParams)(),[Qe,Ee]=(0,pe.useState)(!1);let[ee,te]=(0,pe.useState)();const[ue,ae]=(0,pe.useState)(!1),[de,ve]=(0,pe.useState)(!1);(0,pe.useEffect)(()=>{yt.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&Pe()},[yt.actionTabs]);function Pe(){return it(this,null,function*(){var Ae,xe;let Le=yield(0,Ve.ZP)(`/api/courses/${$e==null?void 0:$e.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});if(((Ae=Le==null?void 0:Le.cover_exercises)==null?void 0:Ae.length)>0)Ee(!0),te((xe=Le==null?void 0:Le.cover_exercises)==null?void 0:xe[0]);else{let Te=yield(0,Ve.ZP)(`/api/courses/${$e==null?void 0:$e.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});vt({type:"exercise/setActionTabs",payload:{key:""}}),(Te==null?void 0:Te.status)===0&&(tt&&Je(),Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{st.history.push("/paperlibrary")}}))}})}return We.createElement("div",null,We.createElement(Ie.default,{open:Qe,centered:!0,onCancel:Ae=>it(void 0,null,function*(){if(Ae.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){ae(!0);let xe=yield(0,Ve.ZP)(`/api/courses/${$e==null?void 0:$e.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs,update:1}});vt({type:"exercise/setActionTabs",payload:{key:""}}),ae(!1),(xe==null?void 0:xe.status)===0&&(tt&&Je(),Ee(!1),Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{st.history.push("/paperlibrary")}}))}else Ee(!1)}),cancelButtonProps:{loading:ue},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:de},onOk:()=>it(void 0,null,function*(){ve(!0);let Ae=yield(0,Ve.ZP)(`/api/courses/${$e==null?void 0:$e.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});ve(!1),(Ae==null?void 0:Ae.status)===0&&(tt&&Je(),vt({type:"exercise/setActionTabs",payload:{key:""}}),Ee(!1),Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{st.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},We.createElement("div",null,We.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),We.createElement("div",null,We.createElement("div",null,"\u8BD5\u5377\uFF1A",ee==null?void 0:ee.origin_exercise_nam),We.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",We.createElement("a",{href:`/paperlibrary/see/${ee==null?void 0:ee.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},ee==null?void 0:ee.examination_bank_name))))))};zt.Z=(0,st.connect)(({exercise:yt})=>({exercise:yt}))(be)},64950:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Te}});var pe=he(59301),Ie=he(43418),Ve=he(95237),st=he(43604),We=he(57809),it=he(2595),be=he(3113),yt=he(94606),vt=he(70635),Je={cstuModal:"cstuModal___aIPVR",removeStyle:"removeStyle___wY4gp",bottom:"bottom___a8tK0",yes:"yes___Zhc4z",no:"no___Ngwsa",Onerow:"Onerow___Q59ve",searchMember:"searchMember___Jj460",searchMemberHeader:"searchMemberHeader___SxfUY"},tt=he(42203),$e=he(96622),Qe=he(59301),Ee=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,ve=(He,ze,Ke)=>ze in He?Ee(He,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):He[ze]=Ke,Pe=(He,ze)=>{for(var Ke in ze||(ze={}))ae.call(ze,Ke)&&ve(He,Ke,ze[Ke]);if(ue)for(var Ke of ue(ze))de.call(ze,Ke)&&ve(He,Ke,ze[Ke]);return He},Ae=(He,ze)=>ee(He,te(ze)),xe=(He,ze,Ke)=>new Promise((Ze,Mt)=>{var Xe=Nt=>{try{Ct(Ke.next(Nt))}catch(It){Mt(It)}},Ft=Nt=>{try{Ct(Ke.throw(Nt))}catch(It){Mt(It)}},Ct=Nt=>Nt.done?Ze(Nt.value):Promise.resolve(Nt.value).then(Xe,Ft);Ct((Ke=Ke.apply(He,ze)).next())});const Le=({visible:He,setVisible:ze,onK:Ke,selectKeys:Ze,selectRows:Mt,appointStudent:Xe,modalParams:Ft,courseId:Ct})=>{const Nt=(0,tt.useParams)(),[It,_t]=(0,pe.useState)(!1),[lt,je]=(0,pe.useState)(!1),[Et,ln]=(0,pe.useState)([]),[Ht,xt]=(0,pe.useState)([]),[Bt,rn]=(0,pe.useState)([]),[Hn,pn]=(0,pe.useState)("all"),[_n,Lt]=(0,pe.useState)("all");let[Un,Gn]=(0,pe.useState)(!0);const[ui,Ln]=(0,pe.useState)([{value:"all",label:"\u5168\u90E8\u5206\u73ED"}]),[Wt,Vt]=(0,pe.useState)({page:1,limit:1e4,status:null,course_group_id:null,keywords:"",sort_by:null,direction:null}),mt={selectedRowKeys:Ht,columnWidth:40,hideSelectAll:!0,onSelect:(nt,Oe,we)=>{let ye=!0;for(let ke=0;ke<Ht.length;ke++)(nt==null?void 0:nt.user_id)===Ht[ke]&&(Ht==null||Ht.splice(ke,1),Bt==null||Bt.splice(ke,1),ye=!1);ye&&(Ht.push(nt==null?void 0:nt.user_id),Bt.push(nt)),xt([...Ht]),rn([...Bt])},onSelectAll:(nt,Oe,we)=>{if(nt&&we.length>0){we.forEach(ye=>{Ht.push(ye.user_id),Bt.push(ye)}),xt([...Ht]),rn([...Bt]);return}if(!nt&&we.length>0){let ye=[],ke=[];const Ge=new Set(we),Fe=new Set(Ht),pt=new Set(Bt);ye=[...Fe].filter(tn=>[...Ge].every(en=>en.user_id!==tn)),ke=[...pt].filter(tn=>[...Ge].every(en=>en.user_id!==tn.user_id)),xt([...ye]),rn([...ke])}}};(0,pe.useEffect)(()=>{He&&Ze&&(xt([...Ze]),rn(Mt))},[He,Ze]),(0,pe.useEffect)(()=>{He&&(!Xe&&Ft?Wt.status=Ft:Wt.status=null,Vt(Pe({},Wt)),Zt())},[He,Xe,Ft]);const Ye=[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(nt,Oe,we)=>Qe.createElement("span",{style:{color:"#333"}},we+1)},{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(nt,Oe,we)=>Qe.createElement("span",null,nt)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(nt,Oe,we)=>Qe.createElement("span",{style:{color:"#666"}},nt)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(nt,Oe)=>Qe.createElement("span",null,nt)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",sorter:!0,render:(nt,Oe)=>Qe.createElement("span",null,nt||"--")},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(nt,Oe)=>Qe.createElement("span",null,nt)}].filter(nt=>Ft===1||Ft===2?nt.title!=="\u72B6\u6001":!0),Zt=()=>xe(void 0,null,function*(){var nt,Oe,we;je(!0);const ye=yield(0,vt.ZP)(`/api/exercises/${Nt.categoryId||Ct}/wait_make_up_students.json`,{method:"get",params:Ae(Pe({},Wt),{keywords:(nt=Wt==null?void 0:Wt.keywords)==null?void 0:nt.trim()})});if(ye.status===0){const ke=((we=(Oe=ye==null?void 0:ye.data)==null?void 0:Oe.all_course_groups)==null?void 0:we.map(Ge=>({value:Ge==null?void 0:Ge.id,label:Ge==null?void 0:Ge.name})))||[];Ln([{value:"all",label:"\u5168\u90E8\u5206\u73ED"},...ke]),ln(ye.data)}je(!1)}),Gt=()=>{Wt.page=1,Wt.status=null,Wt.course_group_id=null,Wt.keywords="",pn("all"),Lt("all"),xt([]),rn([]),Vt(Pe({},Wt)),Xe&&Ke(Ht==null?void 0:Ht.length,Ht,Bt)},ft=()=>{Wt.page=1,Wt.status=null,Wt.course_group_id=null,Wt.keywords="",Vt(Pe({},Wt)),pn("all"),Lt("all"),xt([]),rn([]),ze(!1)};return Qe.createElement(Ie.default,{centered:!0,className:Je.cstuModal,title:Ft===1?"\u7F3A\u8003\u5B66\u751F":Ft===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:He,width:1200,footer:null,onCancel:()=>{ft()}},Qe.createElement(Ve.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},Qe.createElement(Ve.Z,null,Qe.createElement(st.Z,null,Qe.createElement(We.default,{size:"large",value:Hn,style:{width:200,marginRight:20},onChange:nt=>{pn(nt),nt==="all"?Wt.course_group_id=null:Wt.course_group_id=nt,Wt.page=1,Vt(Pe({},Wt)),Zt()},options:ui})),Xe&&Qe.createElement(st.Z,null,Qe.createElement(We.default,{size:"large",value:_n,style:{width:200},onChange:nt=>{Lt(nt),nt==="all"?Wt.status=null:Wt.status=nt,Wt.page=1,Vt(Pe({},Wt)),Zt()},options:[{value:"all",label:"\u5168\u90E8\u72B6\u6001"},{value:"1",label:"\u7F3A\u8003"},{value:"2",label:"\u672A\u53CA\u683C"},{value:"3",label:"\u53CA\u683C"}]}))),Qe.createElement(st.Z,null,Qe.createElement(yt.t7,{style:{width:300,marginLeft:15},value:Wt.keywords,allowClear:!0,onChange:nt=>{Wt.keywords=nt,Wt.page=1,Vt(Pe({},Wt)),Zt()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),Qe.createElement(Ve.Z,{align:"middle",className:"mb30"},Qe.createElement(st.Z,{span:14},Qe.createElement("div",{className:"flexd-table-header"},Qe.createElement(it.default,{pagination:!1,dataSource:[],columns:Ye,rowSelection:Xe?mt:null,rowKey:nt=>nt.user_id})),Qe.createElement("div",null,Qe.createElement(it.default,{rowSelection:Xe?mt:null,columns:Ye,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:nt=>nt.user_id,loading:lt,dataSource:Et==null?void 0:Et.exercise_users,onChange:(nt,Oe,we)=>{Wt.page=nt==null?void 0:nt.current,Wt.limit=nt==null?void 0:nt.pageSize,we!=null&&we.order?(Wt.sort_by=we==null?void 0:we.field,Wt.direction=(we==null?void 0:we.order)==="ascend"?"asc":"desc"):(Wt.sort_by=null,Wt.direction=null),Vt(Pe({},Wt)),Zt()},pagination:!1}))),Qe.createElement(st.Z,{span:1},Qe.createElement("img",{src:$e,style:{marginLeft:10}})),Qe.createElement(st.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},Qe.createElement("div",{className:Je.searchMember,style:{width:550}},Qe.createElement(Ve.Z,{className:Je.searchMemberHeader},Qe.createElement(st.Z,{className:"ml30",flex:"100px"},"\u59D3\u540D"),Qe.createElement(st.Z,{flex:"110px"},"\u5B66\u53F7"),Qe.createElement(st.Z,{flex:"120px",style:{marginLeft:5}},"\u5206\u73ED")),Qe.createElement("div",{style:{overflow:"auto",height:390}},Bt==null?void 0:Bt.map((nt,Oe)=>Qe.createElement(Ve.Z,{key:Oe,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},Qe.createElement(st.Z,{flex:"100px"},nt.user_name),Qe.createElement(st.Z,{flex:"110px"},nt.student_id),Qe.createElement(st.Z,{flex:"120px",style:{marginLeft:5}},nt.user_group_name),Qe.createElement(st.Z,{style:{marginLeft:10}},Qe.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{rn(Bt.filter(we=>we.user_id!=nt.user_id)),xt(Ht.filter(we=>we!=nt.user_id))}})))))))),!(Ft===1||Ft===2)&&Qe.createElement("div",{className:Je.bottom},Qe.createElement(be.ZP,{className:Je.no,onClick:()=>{ft()}},"\u53D6\u6D88"),Qe.createElement(be.ZP,{loading:It,type:"primary",onClick:()=>{Gt()}},"\u786E\u5B9A")))};var Te=(0,tt.connect)(({})=>({}))(Le)},66537:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(78241),Ve=he(8591),st=he(43418),We=he(71418),it=he(95237),be=he(5112),yt=he(78550),vt=he(24905),Je=he(61186),tt=he.n(Je),$e=he(70635),Qe=he(58130),Ee=he(42203),ee=he(13021),te=he(95759),ue=Object.defineProperty,ae=Object.defineProperties,de=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,xe=(Mt,Xe,Ft)=>Xe in Mt?ue(Mt,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Mt[Xe]=Ft,Le=(Mt,Xe)=>{for(var Ft in Xe||(Xe={}))Pe.call(Xe,Ft)&&xe(Mt,Ft,Xe[Ft]);if(ve)for(var Ft of ve(Xe))Ae.call(Xe,Ft)&&xe(Mt,Ft,Xe[Ft]);return Mt},Te=(Mt,Xe)=>ae(Mt,de(Xe)),He=(Mt,Xe,Ft)=>new Promise((Ct,Nt)=>{var It=je=>{try{lt(Ft.next(je))}catch(Et){Nt(Et)}},_t=je=>{try{lt(Ft.throw(je))}catch(Et){Nt(Et)}},lt=je=>je.done?Ct(je.value):Promise.resolve(je.value).then(It,_t);lt((Ft=Ft.apply(Mt,Xe)).next())});function ze(Mt,Xe){const Ft=[];for(let Ct=Mt;Ct<Xe;Ct++)Ft.push(Ct);return Ft}const Ke=Mt=>{let Xe=new Date;const Ft=tt()(Mt).format("HH");if(tt()(Mt).isSame(tt()(Xe),"day")){const Ct=tt()(Xe).format("HH"),Nt=tt()(Xe).format("mm");return{disabledHours:()=>ze(0,24).splice(1,Ct*1-1),disabledMinutes:()=>tt()(Mt).isSame(tt()(Xe),"hour")&&Ft<=Ct?ze(0,60).splice(0,Nt):ze(60,60)}}else if(tt()(Mt).isSame(tt()(),"day")){const Ct=tt()().format("HH"),Nt=tt()().format("mm");return{disabledHours:()=>ze(0,24).splice(0,Ct),disabledMinutes:()=>Ft<=Ct?ze(0,Nt):ze(60,60)}}else return!1},Ze=({exercise:Mt,dispatch:Xe})=>{var Ft;const Ct=(0,Ee.useParams)(),[Nt]=Ie.default.useForm(),[It,_t]=(0,pe.useState)(1),[lt,je]=(0,pe.useState)([]),[Et,ln]=(0,pe.useState)(!0),[Ht,xt]=(0,pe.useState)([]),[Bt,rn]=(0,pe.useState)(!0),[Hn,pn]=(0,pe.useState)(!1);(0,pe.useEffect)(()=>{Mt.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&_n()},[Mt.actionTabs]);const _n=Gn=>He(void 0,null,function*(){var ui,Ln;ln(!0);const Wt=yield Xe({type:"exercise/getEndGroups",payload:Te(Le({},Ct),{check_ids:[...((ui=Mt.actionTabs.selectArrs)==null?void 0:ui.map(mt=>Number(mt)))||[]]})}),Vt=(Ln=Wt==null?void 0:Wt.course_info)==null?void 0:Ln.map((mt,Ye)=>Te(Le({},mt),{key:mt.course_group_id,title:mt.course_group_name,name:mt.course_group_name,disabled:!!mt.is_published}));Wt&&(Wt!=null&&Wt.course_info)&&(je([...Vt]),Nt.setFieldsValue({end_time:tt()(tt()(new Date((0,Qe.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),ln(!1)}),Lt=()=>He(void 0,null,function*(){var Gn,ui,Ln,Wt;const Vt=Le({},Nt.getFieldsValue());if((Ht==null?void 0:Ht.length)<=0&<.length>0&&!((Gn=Mt.actionTabs)!=null&&Gn.unified_setting)){Ve.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}pn(!0);const mt={check_ids:[...((ui=Mt.actionTabs.selectArrs)==null?void 0:ui.map(Zt=>Number(Zt)))||[]],group_ids:Ht};Bt||(mt.end_time=tt()(Vt.end_time).format("YYYY-MM-DD HH:mm")),mt.group_ids=Ht.map(Zt=>Zt.course_group_id),(yield(0,$e.ZP)(`/api/courses/${Ct.coursesId}/exercises/end_exercise.json`,{method:"post",body:mt})).status===0&&(Ve.ZP.success("\u64CD\u4F5C\u6210\u529F"),(0,Qe.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),Xe({type:"exercise/setActionTabs",payload:{}}),(Ln=Mt==null?void 0:Mt.actionTabs)!=null&&Ln.cb?(Wt=Mt==null?void 0:Mt.actionTabs)==null||Wt.cb():Xe({type:"classroomList/getClassroomExercisesList",payload:Le({},Mt.actionTabs.params)})),pn(!1)}),Un=()=>{_t(1),je([]),xt([]),rn(!0)};return pe.createElement(st.default,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",open:Mt.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Lt,width:680,confirmLoading:Hn||Et,onCancel:()=>{Un(),Xe({type:"exercise/setActionTabs",payload:{}})}},pe.createElement(We.Z,{spinning:Et},lt&&pe.createElement(Ie.default,{form:Nt},pe.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},pe.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:ee.Z}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),pe.createElement(it.Z,{className:"mt20 mb10"},pe.createElement("span",{className:"mr10"},pe.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),pe.createElement(be.ZP.Group,{value:Bt,onChange:Gn=>{rn(Gn.target.value),xt([])}},pe.createElement(be.ZP,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),pe.createElement(be.ZP,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),pe.createElement(Ie.default.Item,{name:"end_time",style:{marginTop:-3,visibility:Bt?"hidden":"visible"}},pe.createElement(yt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:tt()((0,Qe.U6)(),"HH:mm")},disabledDate:Gn=>Gn&&Gn<tt()().subtract(0,"days"),disabledTime:Ke,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),lt.length>0&&!((Ft=Mt.actionTabs)!=null&&Ft.unified_setting)&&pe.createElement(it.Z,{style:{marginBottom:"10px"}},pe.createElement("span",{className:"mr10"},pe.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),pe.createElement("div",null,lt.length>0&&pe.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},pe.createElement("span",{style:{flex:1}},pe.createElement(vt.default,{checked:Ht.length===lt.length,onChange:Gn=>{Ht.length===lt.length?xt([]):xt(lt)}},"\u5168\u9009")," "),pe.createElement("span",{style:{width:16}}),pe.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Ht.length||0,"\u4E2A\u5206\u73ED")),pe.createElement(te.Z,{data:lt,selectedRowKeys:Ht,setSelectedRowKeys:xt}))))))};zt.Z=(0,Ee.connect)(({exercise:Mt})=>({exercise:Mt}))(Ze)},40651:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return lt}});var pe=he(59301),Ie=he(78241),Ve=he(8591),st=he(43418),We=he(71418),it=he(95237),be=he(5112),yt=he(88897),vt=he(78550),Je=he(78673),tt=he(24905),$e=he(3113),Qe=he(61186),Ee=he.n(Qe),ee=he(70635),te=he(58130),ue=he(42203),ae=he(79124),de=he(13021),ve=he(95759),Pe=he(64950),Ae={contentInterval:"contentInterval___wAfD8",numberInput:"numberInput___R9kLf",minorRuleText:"minorRuleText___LjpSg",failedList:"failedList___KYTHd",name:"name___MqNtz",publish:"publish___TPl6Z"},xe=he(59301),Le=Object.defineProperty,Te=Object.defineProperties,He=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Mt=(je,Et,ln)=>Et in je?Le(je,Et,{enumerable:!0,configurable:!0,writable:!0,value:ln}):je[Et]=ln,Xe=(je,Et)=>{for(var ln in Et||(Et={}))Ke.call(Et,ln)&&Mt(je,ln,Et[ln]);if(ze)for(var ln of ze(Et))Ze.call(Et,ln)&&Mt(je,ln,Et[ln]);return je},Ft=(je,Et)=>Te(je,He(Et)),Ct=(je,Et,ln)=>new Promise((Ht,xt)=>{var Bt=pn=>{try{Hn(ln.next(pn))}catch(_n){xt(_n)}},rn=pn=>{try{Hn(ln.throw(pn))}catch(_n){xt(_n)}},Hn=pn=>pn.done?Ht(pn.value):Promise.resolve(pn.value).then(Bt,rn);Hn((ln=ln.apply(je,Et)).next())});function Nt(je,Et){const ln=[];for(let Ht=je;Ht<Et;Ht++)ln.push(Ht);return ln}const It=je=>{let Et=new Date;const ln=Ee()(je).format("HH");if(Ee()(je).isSame(Ee()(Et),"day")){const Ht=Ee()(Et).format("HH"),xt=Ee()(Et).format("mm");return{disabledHours:()=>Nt(0,24).splice(1,Ht*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",ln,Ht),Ee()(je).isSame(Ee()(Et),"hour")&&ln<=Ht?Nt(0,60).splice(0,xt):Nt(60,60))}}else if(Ee()(je).isSame(Ee()(),"day")){const Ht=Ee()().format("HH"),xt=Ee()().format("mm");return{disabledHours:()=>Nt(0,24).splice(0,Ht),disabledMinutes:()=>ln<=Ht?Nt(0,xt):Nt(60,60)}}else return!1},_t=({exercise:je,dispatch:Et})=>{var ln,Ht,xt,Bt,rn,Hn,pn,_n,Lt,Un,Gn,ui,Ln,Wt,Vt,mt,Ye,Zt,Gt,ft,nt,Oe;const we=(0,ue.useParams)(),[ye]=Ie.default.useForm(),[ke,Ge]=(0,pe.useState)(1),[Fe,pt]=(0,pe.useState)([]),[tn,en]=(0,pe.useState)(!0),[wt,Xt]=(0,pe.useState)([]),[Pn,In]=(0,pe.useState)(!0),[$n,Pi]=(0,pe.useState)(!1),{workSetting:wn}=je,[Ai,Vi]=(0,pe.useState)(!1),[ur,sr]=(0,pe.useState)([]),[Qn,Ci]=(0,pe.useState)([]),[er,ri]=(0,pe.useState)(!1),[tr,Di]=(0,pe.useState)(!1),[De,Yr]=(0,pe.useState)(!1),[yr,Dr]=(0,pe.useState)(null),[lo,Wo]=(0,pe.useState)(1);(0,pe.useEffect)(()=>{var hn;if(je.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(ki(),bt(),je.actionTabs.type===2)){const Tt=(hn=je.actionTabs)==null?void 0:hn.unified_setting;In(Tt)}},[je.actionTabs]),(0,pe.useEffect)(()=>{var hn,Tt,ot,fn,yn,li,vn;(hn=wn==null?void 0:wn.exercise)!=null&&hn.publish_time&&ye.setFieldsValue({publish_time:Ee()((Tt=wn==null?void 0:wn.exercise)==null?void 0:Tt.publish_time)}),(ot=wn==null?void 0:wn.exercise)!=null&&ot.end_time&&ye.setFieldsValue({end_time:Ee()((fn=wn==null?void 0:wn.exercise)==null?void 0:fn.end_time)}),ye.setFieldsValue({exercise_type:(yn=wn==null?void 0:wn.exercise)==null?void 0:yn.exercise_type,simulate_exercise_num:(li=wn==null?void 0:wn.exercise)==null?void 0:li.simulate_exercise_num}),Wo((vn=wn==null?void 0:wn.exercise)==null?void 0:vn.exercise_type)},[je]);const No=hn=>{var Tt;const ot=ye.getFieldValue("publish_time");if(!ot||(Tt=wn==null?void 0:wn.exercise)!=null&&Tt.publish_time)return;let fn;hn===1?fn=Ee()(ot).add(120,"minutes"):fn=Ee()(ot).add(7,"days"),ye.setFieldsValue({end_time:fn})},ki=hn=>Ct(void 0,null,function*(){var Tt,ot;en(!0);const fn=yield(0,ae.N3)({coursesId:we.coursesId,check_ids:[...((Tt=je.actionTabs.selectArrs)==null?void 0:Tt.map(li=>Number(li)))||[]]});console.log(fn,"res");const yn=((ot=fn==null?void 0:fn.course_info)==null?void 0:ot.map((li,vn)=>Ft(Xe({},li),{key:li.course_group_id,title:li.course_group_name,name:li.course_group_name,disabled:!!li.is_published})))||[];if((fn==null?void 0:fn.status)!==-1){pt([...yn]);const li=Ee()();ye.setFieldsValue({publish_time:li}),(ye.getFieldValue("exercise_type")||1)===1?ye.setFieldsValue({end_time:Ee()(li).add(120,"minutes")}):ye.setFieldsValue({end_time:Ee()(li).add(7,"days")})}en(!1)});(0,pe.useEffect)(()=>{var hn,Tt,ot,fn,yn,li;if((hn=wn==null?void 0:wn.exercise)!=null&&hn.is_appoint_user){const vn=((ot=(Tt=wn==null?void 0:wn.exercise)==null?void 0:Tt.all_exercise_users)==null?void 0:ot.map(at=>at.user_id))||[];sr([...vn])}ri((fn=wn==null?void 0:wn.exercise)==null?void 0:fn.is_appoint_user),Di((yn=wn==null?void 0:wn.exercise)==null?void 0:yn.is_miss_exam_user),Yr((li=wn==null?void 0:wn.exercise)==null?void 0:li.is_no_passing_user)},[wn]),(0,pe.useEffect)(()=>{var hn,Tt,ot,fn,yn,li,vn,at;(Tt=(hn=je==null?void 0:je.actionTabs)==null?void 0:hn.selectArrs)!=null&&Tt[0]&&je.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&Et({type:"exercise/getWorkSetting",payload:{categoryId:(fn=(ot=je==null?void 0:je.actionTabs)==null?void 0:ot.selectArrs)==null?void 0:fn[0],category:(li=(yn=je==null?void 0:je.actionTabs)==null?void 0:yn.selectArrs)==null?void 0:li[0],coursesId:(at=(vn=je==null?void 0:je.actionTabs)==null?void 0:vn.params)==null?void 0:at.id}})},[(ln=je==null?void 0:je.actionTabs)==null?void 0:ln.selectArrs]);const an=()=>Ct(void 0,null,function*(){var hn,Tt,ot,fn,yn,li;const vn=Xe({},ye.getFieldsValue()),at=Ee()(Ee()(vn.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),Bn=Ee()(Ee()(vn.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(at,at,33),Bn<=at){Ve.ZP.info("\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4");return}if((wt==null?void 0:wt.length)<=0&&!Pn&&Fe.length>0&&!((hn=wn==null?void 0:wn.exercise)!=null&&hn.is_make_up_exercise)){Ve.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}const pi=Fe.map(Tn=>Tn.key),Li={check_ids:[...((Tt=je.actionTabs.selectArrs)==null?void 0:Tt.map(Tn=>Number(Tn)))||[]],end_time:Ee()(vn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Ee()(vn.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:wt.map(Tn=>Tn.course_group_id),unified_setting:!wt.length,exercise_type:vn.exercise_type,simulate_exercise_num:vn.simulate_exercise_num};if(((ot=je.actionTabs.selectArrsAll)==null?void 0:ot.length)>0&&je.actionTabs.type===1&&(Li.check_ids=[...((yn=(fn=je.actionTabs.selectArrsAll)==null?void 0:fn.filter(Tn=>!Tn.high_resources_consume||Tn.high_resources_consume_permission))==null?void 0:yn.map(Tn=>Number(Tn==null?void 0:Tn.id)))||[]]),(li=wn==null?void 0:wn.exercise)!=null&&li.is_make_up_exercise){if(er&&ur.length<=0||!er&&!(tr||De)){Ve.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}Li.is_appoint_user=er,Li.is_miss_exam_user=tr,Li.is_no_passing_user=De,er?Li.make_up_exercise_users=ur.map(Tn=>({user_id:Tn})):Li.make_up_exercise_user=[]}let{is_locked:qt,open_camera:Nn,screen_open:on,login_restrict:Sn,ip_bind:Fn,ip_limit:En,is_random:kn,id:Zn,identity_verify:Jn,open_phone_video_recording:si}=wn==null?void 0:wn.exercise;if(je.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(qt||Nn||on||Sn||Fn||En=="pub"||En=="inner"||Jn||si)&&vn.exercise_type==2){if(Et({type:"exercise/setActionTabs",payload:{}}),je.actionTabs.type==2){let Tn=st.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:"\u63D0\u793A",icon:null,content:xe.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",xe.createElement("span",{style:{color:"#FA6400"}}," ",(0,te.hi)(wn==null?void 0:wn.exercise)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"),onOk:()=>Ct(void 0,null,function*(){if((yield Ut(Li))&&je.actionTabs.isRouter){Tn.destroy(),ue.history.push(`/classrooms/${we.coursesId}/exercise/${Zn}/detail?random=${kn}&tabs=3&childrenTabs=2`);return}Et({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}),onCancel:()=>{Tn.destroy(),Ut(Li)}})}else{let Tn=st.default.info({width:580,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",icon:null,content:xe.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u5F00\u542F\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\uFF0C\u53EF\u6839\u636E\u8003\u8BD5\u9700\u8981\u8FDB\u884C\u8C03\u6574\u3002"),onOk:()=>Ct(void 0,null,function*(){if((yield Ut(Li))&&je.actionTabs.isRouter){Tn.destroy(),ue.history.push(`/classrooms/${we.coursesId}/exercise/${Zn}/detail?random=${kn}&tabs=3&childrenTabs=2`);return}Et({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})})})}return}Ut(Li)}),nn=()=>{var hn;let Tt=[...(hn=je.actionTabs.selectArrsAll)==null?void 0:hn.filter(ot=>ot.high_resources_consume&&!ot.high_resources_consume_permission)];(Tt==null?void 0:Tt.length)>0&&je.actionTabs.type===1&&st.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:xe.createElement("div",null,xe.createElement("div",{className:Ae.tipcontent},xe.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",Tt==null?void 0:Tt.length," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),xe.createElement("div",{className:"mt20 mb20"},Tt==null?void 0:Tt.map(ot=>xe.createElement("div",{className:Ae.failedList,key:ot.id},xe.createElement("div",{className:Ae.name},ot==null?void 0:ot.exercise_name),xe.createElement("div",{className:Ae.publish,onClick:()=>{(0,te.xg)(`/classrooms/${we.coursesId}/exercise/${ot.id}/detail?random=${ot.is_random}`)}},"\u53D1\u5E03"))))))})},Ut=hn=>Ct(void 0,null,function*(){var Tt,ot,fn;if(je.actionTabs.type===1){let vn=[...(Tt=je.actionTabs.selectArrsAll)==null?void 0:Tt.filter(at=>at.high_resources_consume&&!at.high_resources_consume_permission)];if((vn==null?void 0:vn.length)==je.actionTabs.selectArrsAll.length){Et({type:"exercise/setActionTabs",payload:{}}),nn();return}}let yn=!1;return Pi(!0),(yield(0,ee.ZP)(`/api/courses/${we.coursesId}/exercises/publish.json`,{method:"post",body:hn})).status===0&&((0,te.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),bt(),Ve.ZP.success("\u53D1\u5E03\u6210\u529F"),Et({type:"exercise/setActionTabs",payload:{}}),(ot=je==null?void 0:je.actionTabs)!=null&&ot.cb?(fn=je==null?void 0:je.actionTabs)==null||fn.cb():Et({type:"classroomList/getClassroomExercisesList",payload:Xe({},je.actionTabs.params)}),yn=!0,je.actionTabs.type===1&&nn()),Pi(!1),yn}),bt=()=>{Ge(1),pt([]),Xt([])},xn=(hn,Tt,ot)=>{hn<=0?Ve.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"):(sr(Tt),Ci(ot),Vi(!1))};return xe.createElement(st.default,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",open:je.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:660,onOk:an,confirmLoading:$n||tn,onCancel:()=>{bt(),Et({type:"exercise/setActionTabs",payload:{}})}},xe.createElement(We.Z,{spinning:tn},Fe&&xe.createElement(Ie.default,{form:ye},!!((Ht=je==null?void 0:je.actionTabs)!=null&&Ht.disabled)&&xe.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},xe.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:de.Z}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),!((xt=wn==null?void 0:wn.exercise)!=null&&xt.is_make_up_exercise)&&xe.createElement(xe.Fragment,null,xe.createElement(it.Z,null,xe.createElement("span",{className:"mr10",style:{lineHeight:"32px"}},xe.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u6A21\u5F0F"),xe.createElement(Ie.default.Item,{name:"exercise_type"},xe.createElement(be.ZP.Group,{disabled:((Bt=wn==null?void 0:wn.exercise)==null?void 0:Bt.exercise_status)>1,onChange:hn=>{Wo(hn.target.value),No(hn.target.value)}},xe.createElement(be.ZP,{value:1},"\u6B63\u5F0F\u8003\u8BD5"),xe.createElement(be.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")))),lo==2&&xe.createElement(it.Z,{className:`${Ae.contentInterval}`},xe.createElement("span",{className:`${Ae.minorRuleText}`,style:{marginLeft:50}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),xe.createElement(Ie.default.Item,{name:"simulate_exercise_num"},xe.createElement(yt.Z,{className:Ae.numberInput,style:{width:145},precision:0,size:"middle",disabled:((rn=wn==null?void 0:wn.exercise)==null?void 0:rn.exercise_status)>1,min:1,max:999})),xe.createElement("span",null,"\u6B21",xe.createElement("span",{style:{color:"#999999"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),xe.createElement(it.Z,null,xe.createElement("span",{className:"mr10 mt5"},xe.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),xe.createElement(Ie.default.Item,{name:"publish_time"},xe.createElement(vt.default,{style:{width:170},disabledDate:hn=>hn&&hn<=Ee()().subtract(0,"days"),disabledTime:It,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ee()((0,te.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),xe.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),xe.createElement(Ie.default.Item,{name:"end_time"},xe.createElement(vt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ee()((0,te.U6)(),"HH:mm")},disabledDate:hn=>hn&&hn<Ee()().subtract(0,"days"),disabledTime:It,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),((Hn=wn==null?void 0:wn.exercise)==null?void 0:Hn.is_make_up_exercise)&&xe.createElement(xe.Fragment,null,xe.createElement(it.Z,null,xe.createElement("span",{style:{marginRight:"20px",fontSize:"14px",color:"3333",fontWeight:600}},"\u5F85\u8865\u8003\u5B66\u751F"),xe.createElement(Je.Z,{checked:er,onChange:(hn,Tt)=>{var ot,fn,yn,li,vn;if(ri(hn),hn)if((ot=wn==null?void 0:wn.exercise)!=null&&ot.is_appoint_user){const at=(yn=(fn=wn==null?void 0:wn.exercise)==null?void 0:fn.all_exercise_users)==null?void 0:yn.map(Bn=>Bn.user_id);sr([...at])}else sr([]),Di(!1),Yr(!1);else Di((li=wn==null?void 0:wn.exercise)==null?void 0:li.is_miss_exam_user),Yr((vn=wn==null?void 0:wn.exercise)==null?void 0:vn.is_no_passing_user)},disabled:((pn=wn==null?void 0:wn.exercise)==null?void 0:pn.exercise_status)!==1}),xe.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!er&&xe.createElement(it.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},xe.createElement(tt.default,{checked:tr,disabled:((_n=wn==null?void 0:wn.exercise)==null?void 0:_n.exercise_status)!==1||((Lt=wn==null?void 0:wn.exercise)==null?void 0:Lt.miss_exam_count)<=0,onChange:hn=>{Di(hn.target.checked)}},xe.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),xe.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{Dr(1),ri(!1),Vi(!0)}},"\uFF08",`${(Un=wn==null?void 0:wn.exercise)==null?void 0:Un.miss_exam_count}\u4EBA`,"\uFF09"),xe.createElement(tt.default,{checked:De,disabled:((Gn=wn==null?void 0:wn.exercise)==null?void 0:Gn.exercise_status)!==1||((ui=wn==null?void 0:wn.exercise)==null?void 0:ui.no_passing_count)<=0,onChange:hn=>{Yr(hn.target.checked)}},xe.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),xe.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Dr(2),ri(!1),Vi(!0)}},"\uFF08",`${(Ln=wn==null?void 0:wn.exercise)==null?void 0:Ln.no_passing_count}\u4EBA`,"\uFF09")),er&&xe.createElement(it.Z,{className:"mt20",style:{paddingLeft:"90px"}},xe.createElement($e.ZP,{type:"primary",ghost:!0,disabled:((Wt=wn==null?void 0:wn.exercise)==null?void 0:Wt.exercise_status)!==1,onClick:()=>{Vi(!0),Dr(void 0)}},xe.createElement("span",null,xe.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),xe.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),xe.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${ur.length||0} \u4EBA`,"\uFF09"))),je.actionTabs.type===2&&!((Vt=wn==null?void 0:wn.exercise)!=null&&Vt.is_make_up_exercise)&&xe.createElement(it.Z,{style:{marginBottom:"10px"}},xe.createElement("span",{className:"mr10"},xe.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7"),xe.createElement(be.ZP.Group,{value:Pn,onChange:hn=>{In(hn.target.value),Xt([])}},xe.createElement(be.ZP,{disabled:!!((mt=je==null?void 0:je.actionTabs)!=null&&mt.disabled)||Fe.some(hn=>hn==null?void 0:hn.is_published)||!((Ye=je==null?void 0:je.actionTabs)!=null&&Ye.manage_all_group),value:!0},"\u7EDF\u4E00\u53D1\u5E03"),xe.createElement(be.ZP,{disabled:Fe.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),Fe.length<=0&&je.actionTabs.type===2&&!((Zt=wn==null?void 0:wn.exercise)!=null&&Zt.is_make_up_exercise)&&xe.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"'),(je.actionTabs.type===1||!Pn)&&!((Gt=wn==null?void 0:wn.exercise)!=null&&Gt.is_make_up_exercise)&&Fe.length>0&&xe.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},xe.createElement("span",{style:{flex:1}},xe.createElement(tt.default,{checked:wt.length===Fe.length,onChange:hn=>{wt.length===Fe.length?Xt([]):Xt(Fe)}},"\u5168\u9009")),xe.createElement("span",{style:{width:16}}),xe.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",wt.length||0,"\u4E2A\u5206\u73ED")),(je.actionTabs.type===1||!Pn)&&!((ft=wn==null?void 0:wn.exercise)!=null&&ft.is_make_up_exercise)&&Fe.length>0&&xe.createElement(ve.Z,{data:Fe,selectedRowKeys:wt,setSelectedRowKeys:Xt})),xe.createElement(Pe.Z,{visible:Ai,setVisible:Vi,onK:xn,selectKeys:ur,selectRows:Qn,appointStudent:er,modalParams:yr,courseId:we.categoryId||((Oe=(nt=je==null?void 0:je.actionTabs)==null?void 0:nt.selectArrs)==null?void 0:Oe[0])})))};var lt=(0,ue.connect)(({exercise:je})=>({exercise:je}))(_t)},95759:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Je}});var pe=he(59301),Ie=he(92832),Ve=he(24905),st=he(95237),We={leftdiv:"leftdiv___iuhY9",listClass:"listClass___o5N53",spantitle:"spantitle___KVMSL",rightdiv:"rightdiv___f2zZr"},it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",be=he(97267),yt=(tt,$e,Qe)=>new Promise((Ee,ee)=>{var te=de=>{try{ae(Qe.next(de))}catch(ve){ee(ve)}},ue=de=>{try{ae(Qe.throw(de))}catch(ve){ee(ve)}},ae=de=>de.done?Ee(de.value):Promise.resolve(de.value).then(te,ue);ae((Qe=Qe.apply(tt,$e)).next())}),Je=({data:tt,value:$e=[],handleChangePage:Qe,setSelectedRowKeys:Ee,selectedRowKeys:ee,onChange:te=()=>{}})=>{const[ue,ae]=(0,pe.useState)([]),[de,ve]=(0,pe.useState)([]),[Pe,Ae]=(0,pe.useState)([]);let[xe,Le]=(0,pe.useState)(1),[Te,He]=(0,pe.useState)();return(0,pe.useEffect)(()=>{ae(tt),ve([]),Ae([])},[tt]),(0,pe.useEffect)(()=>{Ee&&(ve(ee),Ae(ee))},[ee]),pe.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},pe.createElement("div",{className:We.leftdiv},pe.createElement(Ie.default.Search,{size:"middle",onChange:ze=>yt(void 0,null,function*(){ae(tt.filter(Ke=>{var Ze;return(Ze=Ke==null?void 0:Ke.name)==null?void 0:Ze.includes(ze.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ue.length===0&&pe.createElement(be.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),pe.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},pe.createElement(Ve.default.Group,{value:de.map(ze=>`${ze.course_group_id}`),onChange:ze=>{Ee(ue.filter(Ke=>ze.includes(`${Ke.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ue.map((ze,Ke)=>pe.createElement(st.Z,{key:ze.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},pe.createElement(Ve.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:ze.is_published,value:`${ze.course_group_id}`},pe.createElement("div",{className:We.listClass},pe.createElement("span",{className:We.spantitle,style:{width:ze.is_published?"108px":"170px"}},ze.name),ze.is_published&&pe.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),pe.createElement("div",{className:We.rightdiv},pe.createElement(Ie.default.Search,{onChange:ze=>{Ae(de.filter(Ke=>Ke.name.includes(ze.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Pe.length===0&&pe.createElement(be.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Pe.length>0&&pe.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},pe.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Pe.map((ze,Ke)=>pe.createElement(st.Z,{justify:"space-between",style:{marginTop:"10px"},key:ze.course_group_id},pe.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},ze.name),pe.createElement("img",{src:it,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{Ee(de.filter(Ze=>`${Ze.course_group_name}`!=`${ze.course_group_name}`))}})))))))}},98445:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(31797),Ve=he(88897),st=he(78241),We=he(43418),it=he(71418),be=he(2595),yt=he(92832),vt=he(95237),Je=he(43604),tt=he(3113),$e=he(79124),Qe=he(61186),Ee=he.n(Qe),ee=he(42203),te=he(58130),ue=he(77066),ae=he(2119),de=he(35427),ve=he(59301),Pe=(Te,He,ze)=>new Promise((Ke,Ze)=>{var Mt=Ct=>{try{Ft(ze.next(Ct))}catch(Nt){Ze(Nt)}},Xe=Ct=>{try{Ft(ze.throw(Ct))}catch(Nt){Ze(Nt)}},Ft=Ct=>Ct.done?Ke(Ct.value):Promise.resolve(Ct.value).then(Mt,Xe);Ft((ze=ze.apply(Te,He)).next())});const{Countdown:Ae}=Ie.default,xe=({value:Te,onChange:He,MaxMinutes:ze})=>ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",ve.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",ve.createElement("br",null)),ve.createElement(Ve.Z,{value:Te,onChange:He,min:0,precision:0,max:ze,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${ze}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),Le=({exercise:Te,successCb:He,dispatch:ze})=>{var Ke,Ze,Mt,Xe;const Ft=(0,ee.useParams)(),[Ct]=st.default.useForm(),Nt=st.default.useWatch("time",Ct),[It,_t]=(0,pe.useState)(!1),lt=(0,pe.useRef)(),{actionTabs:je}=Te,[Et,ln]=(0,pe.useState)(),[,Ht,xt,Bt]=(0,de.U)($e.n7,{id:Ft.categoryId}),[,rn,Hn]=(0,de.U)($e.Cd,{});(0,pe.useEffect)(()=>{Te.actionTabs.key==="student-unlock"&&(_t(!1),Ct.resetFields())},[Te.actionTabs.key]);const pn=()=>new Promise(mt=>Pe(void 0,null,function*(){var Ye,Zt;return lt.current=yield(0,ue.y)({ip_limit:(Ye=je==null?void 0:je.exerciseParams)==null?void 0:Ye.ip_limit,ip_bind:(Zt=je==null?void 0:je.exerciseParams)==null?void 0:Zt.ip_bind_type}),mt()})),_n=()=>Pe(void 0,null,function*(){var mt,Ye,Zt,Gt,ft;yield Ct.validateFields();const nt=Ct.getFieldsValue();if(_t(!0),(((mt=je==null?void 0:je.exerciseParams)==null?void 0:mt.ip_limit)!=="no"||(Ye=je==null?void 0:je.exerciseParams)!=null&&Ye.ip_bind_type)&&(yield pn()),(yield(0,$e.ZD)((Zt=je==null?void 0:je.exerciseParams)==null?void 0:Zt.id,{exercise_user_id:(Gt=je==null?void 0:je.exerciseParams)==null?void 0:Gt.exercise_user_id,unlock_key:nt.unlock_key,time:nt.time,ip:lt.current})).status===0){if(He){ze({type:"exercise/setActionTabs",payload:{}}),He();return}const we=je==null?void 0:je.exerciseParams;(0,te.nr)({inner_ip:we.inner_ip,public_ip:we.public_ip,open_camera:we.open_camera,ip_limit:we.ip_limit,ip_bind:we.ip_bind,ip_bind_type:we.ip_bind_type,exercise_tips:we.exercise_tips,exerciseId:we.id,screen_open:we.screen_open,screen_num:we.screen_num,screen_sec:we.screen_sec,coursesId:Ft.coursesId,login:(ft=(0,ae.eY)())==null?void 0:ft.login,history,identity_verify:we.identity_verify,open_phone_video_recording:we.open_phone_video_recording,current_status:we.current_status}),ze({type:"exercise/setActionTabs",payload:{}})}_t(!1)}),Lt=[{title:"IP\u5730\u5740",dataIndex:"ip",key:"ip",render:mt=>ve.createElement("span",{className:mt.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},mt)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:mt=>ve.createElement("span",{className:mt.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},mt)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],Un=((Ke=je==null?void 0:je.exerciseParams)==null?void 0:Ke.errorMessage)&&typeof((Ze=je==null?void 0:je.exerciseParams)==null?void 0:Ze.errorMessage)=="object";(0,pe.useEffect)(()=>{Te.actionTabs.key==="student-unlock"&&Pe(void 0,null,function*(){const mt=yield Hn(Ft);yield xt({}),mt.status||ln(mt)})},[Te.actionTabs.key]);const{time:Gn,end_time:ui}=(Et==null?void 0:Et.exercise)||{},Ln=Bt!=null&&Bt.user_end_time?Ee()(Bt==null?void 0:Bt.user_end_time).add(1,"minutes"):Ee()(),Wt=Ee()(Bt==null?void 0:Bt.user_total_end_time)>Ln?Math.round(Ee().duration(Ee()(Bt==null?void 0:Bt.user_total_end_time).diff(Ln.startOf("minute"))).asMinutes()):0,Vt=((Bt==null?void 0:Bt.student_left_minutes)||0)+(Nt||0);return ve.createElement(ve.Fragment,null,ve.createElement(We.default,{width:514,centered:!0,closable:!!((Mt=je==null?void 0:je.exerciseParams)!=null&&Mt.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:Te.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{ze({type:"exercise/setActionTabs",payload:{}})}},ve.createElement(it.Z,{spinning:Ht||rn},Un&&ve.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!Un&&ve.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),Un&&ve.createElement(be.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((Xe=je==null?void 0:je.exerciseParams)==null?void 0:Xe.errorMessage)||{}],columns:Lt}),ve.createElement("div",{className:""},ve.createElement(st.default,{form:Ct,layout:"vertical",autoComplete:"off"},ve.createElement(st.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},ve.createElement(yt.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),Gn!==-1?ve.createElement(ve.Fragment,null,ve.createElement(st.default.Item,{name:"time",label:ve.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",ve.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",Ee()(Bt==null?void 0:Bt.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},ve.createElement(xe,{MaxMinutes:Wt})),ve.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",ve.createElement("span",{className:"ml5"},Ht||rn?"--":Vt),"\u5206\u949F",Vt!==0&&(Bt==null?void 0:Bt.user_end_time)&&ve.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",ve.createElement("span",{className:"ml5"},Ee()(Bt==null?void 0:Bt.user_end_time).add(Nt||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):ve.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",Ee()(ui).format("YYYY-MM-DD HH:mm")))),ve.createElement(vt.Z,{justify:"space-between",align:"middle"},ve.createElement(Je.Z,null),ve.createElement(Je.Z,null,ve.createElement(tt.ZP,{loading:It,onClick:_n},"\u8FDB\u5165\u8003\u8BD5"))))))};zt.Z=(0,ee.connect)(({exercise:Te})=>({exercise:Te}))(Le)},80814:function(gn,zt,he){"use strict";he.d(zt,{w:function(){return it}});var pe=he(70635),Ie=he(43418),Ve=he(42203),st=he(59301),We=(be,yt,vt)=>new Promise((Je,tt)=>{var $e=ee=>{try{Ee(vt.next(ee))}catch(te){tt(te)}},Qe=ee=>{try{Ee(vt.throw(ee))}catch(te){tt(te)}},Ee=ee=>ee.done?Je(ee.value):Promise.resolve(ee.value).then($e,Qe);Ee((vt=vt.apply(be,yt)).next())});const it=(be,yt,vt="\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E...",Je=1,tt=2)=>We(void 0,null,function*(){Je===1&&(0,Ve.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:Je===1?vt:"\u6B63\u5728\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}});const $e=yield(0,pe.ZP)(`/api/exercises/${yt}/user_appraise_status.json`,{method:"get",params:{appraise_type:Je}});if(($e==null?void 0:$e.status)===-1)return(0,Ve.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}}),Promise.reject();let Qe={status:0};if(($e==null?void 0:$e.type)===2&&(Qe=yield(0,pe.ZP)(`/api/exercises/${yt}/create_appraise_students.json`,{method:"get"})),(0,Ve.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(Qe==null?void 0:Qe.status)===-1)return Promise.reject();if(($e==null?void 0:$e.type)===2){const Ee=()=>{Ve.history.replace(`/classrooms/${be}/exercise/${yt}/centralizeReview/${Qe==null?void 0:Qe.login}`)};if(Ie.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",keyboard:!1,onOk:Ee,onCancel:()=>{tt===1&&Ve.history.replace(`/classrooms/${be}/exercise/${yt}/detail`)},content:st.createElement("div",null,st.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",st.createElement("span",{onClick:Ee,className:"ml5 mr5 c-light-primary current"},"\u96C6\u4E2D\u9605\u5377"),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),st.createElement("div",{className:"c-grey-999"},"\uFF08\u9605\u5377\u7ED3\u675F\u540E\u6062\u590D\u5B66\u751F\u4E2A\u4EBA\u8BC4\u9605\u529F\u80FD\uFF0C\u5E76\u5C55\u793A\u5B66\u751F\u6210\u7EE9\uFF09"))}),tt!==3)return Promise.reject()}if(($e==null?void 0:$e.type)===3&&(Ie.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",keyboard:!1,title:"\u63D0\u793A",onOk:()=>{tt===1&&Ve.history.replace(`/classrooms/${be}/exercise/${yt}/detail`)},content:st.createElement("div",null,($e==null?void 0:$e.message)||"")}),tt!==3)||($e==null?void 0:$e.type)===4&&(Ie.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",title:"\u63D0\u793A",keyboard:!1,onOk:()=>{tt===1&&Ve.history.replace(`/classrooms/${be}/exercise/${yt}/detail`)},content:st.createElement("div",null,($e==null?void 0:$e.message)||"")}),tt!==3))return Promise.reject()})},9477:function(gn,zt,he){"use strict";he.r(zt),he.d(zt,{default:function(){return yo}});var pe=he(59301),Ie=he(42203),Ve=he(43418),st=he(20834),We=he(8591),it=he(78485),be=he(25700),yt=he(81228),vt=he(3113),Je=he(24905),tt=he(61186),$e=he.n(tt),Qe=he(2119),Ee=he(58130),ee=he(97267),te=he(70635),ue=he(99313),ae=he(78241),de=he(6848),ve=he(88897),Pe=he(57809),Ae=he(92832),xe=he(26724),Le=he.n(xe),Te=he(44809),He=he(74809),ze=he(18032),Ke=he(2567),Ze=he(66674),Mt=he(72194),Xe=he(59301),Ft=Object.defineProperty,Ct=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,je=(Ot,di,Mn)=>di in Ot?Ft(Ot,di,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Ot[di]=Mn,Et=(Ot,di)=>{for(var Mn in di||(di={}))_t.call(di,Mn)&&je(Ot,Mn,di[Mn]);if(It)for(var Mn of It(di))lt.call(di,Mn)&&je(Ot,Mn,di[Mn]);return Ot},ln=(Ot,di)=>Ct(Ot,Nt(di)),Ht=(Ot,di,Mn)=>new Promise((qn,Ar)=>{var Sr=_i=>{try{qe(Mn.next(_i))}catch(uo){Ar(uo)}},Kn=_i=>{try{qe(Mn.throw(_i))}catch(uo){Ar(uo)}},qe=_i=>_i.done?qn(_i.value):Promise.resolve(_i.value).then(Sr,Kn);qe((Mn=Mn.apply(Ot,di)).next())});const{TabPane:xt}=ue.default,Bt=({classroomList:Ot,exercise:di,loading:Mn,dispatch:qn})=>{var Ar;const Sr=(0,Ie.useParams)(),Kn=(0,Ie.useLocation)(),[qe]=ae.default.useForm(),{brankList:_i}=di;let[uo,wr]=(0,pe.useState)(!0),[Uo,Er]=(0,pe.useState)(!1);const[fr,ho]=(0,pe.useState)("myself");let[ro,Gr]=(0,pe.useState)([]),[_o,lr]=(0,pe.useState)([]),[$i,kr]=(0,pe.useState)(),[oi,Ao]=(0,pe.useState)([]);const Jo=(0,pe.useRef)(null),[Fa,na]=(0,pe.useState)(!1),[ia,xa]=(0,pe.useState)(""),[fo,qa]=(0,pe.useState)(""),bs=[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0,align:"left",render:(gr,zr,Yn)=>Xe.createElement("div",{style:{display:"flex",alignItems:"center"}},Xe.createElement(de.Z,{title:gr},Xe.createElement("div",{title:gr,className:He.Z.name},gr)),(zr==null?void 0:zr.high_resources_consume)&&Xe.createElement(Mt.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"course_list_name",width:180,ellipsis:!0,align:"left",render:gr=>Xe.createElement(de.Z,{title:gr},Xe.createElement("span",null,gr))},{title:"\u7C7B\u578B",dataIndex:"is_random",width:90,align:"left",render:gr=>gr?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",width:150,align:"left"},{title:"\u8BD5\u9898\u6570",dataIndex:"item_num",width:60,align:"center"},{title:"\u603B\u5206",dataIndex:"total_score",width:60,align:"center"},{title:"\u64CD\u4F5C",dataIndex:"is_random",width:60,align:"center",render:(gr,zr)=>Xe.createElement("a",{href:gr?`/randompaper/detail/${zr.id}`:`/paperlibrary/see/${zr.id}?defaultActiveKey=1`,target:"_blank>"},"\u9884\u89C8")}],[So,Cn]=(0,pe.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,pe.useEffect)(()=>{di.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&(Ss(),Ao([]),cs())},[di.actionTabs.key]);const cs=()=>Ht(void 0,null,function*(){const gr=yield qn({type:"paperlibrary/getTeachGroupData"});lr(gr)}),Ya=gr=>{const zr=parseInt(gr);return isNaN(zr)?"":zr},Ss=()=>Ht(void 0,null,function*(){var gr,zr;if(uo){++So.page,wr(!1);const Yn=yield qn({type:"exercise/getBrankList",payload:ln(Et({},So),{search:(gr=So.search)==null?void 0:gr.trim()})});ro=Yn!=null&&Yn.object_list?[...ro.concat(Yn==null?void 0:Yn.object_list)]:ro,So.filter==="public"?kr(Yn.is_teacher):kr(!0),((zr=Yn.object_list)==null?void 0:zr.length)<So.limit?wr(!1):wr(!0),Gr([...ro])}}),Lo=gr=>{Jo.current.scrollTop=0,ro=[],So.page=0,So.group_id=gr,uo=!0,Ao([]),Cn(Et({},So)),Ss()},fa={selectedRowKeys:oi,onChange:gr=>{Ao(gr)},type:"radio"},Pa=()=>{Cn(Et({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),Gr([]),wr(!0),ho("myself"),qn({type:"exercise/setActionTabs",payload:{}}),Er(!1)},[sa,vo,aa,is]=(0,Ke.P)(),qr=gr=>Ht(void 0,null,function*(){let zr=!1;ro.forEach(qo=>{oi.includes(qo.id)&&(zr=qo.is_random)});const Yn=gr.map(qo=>({shixun_id:qo.id,is_use:qo.is_use,is_copy:qo.is_copy}));if(!zr){const qo=yield qn({type:"exercise/saveBanks",payload:{course_id:Sr.coursesId,category_id:(Sr==null?void 0:Sr.categoryId)||null,object_type:"examination_bank",bank_id:oi,shixuns_info:Yn}});(qo==null?void 0:qo.status)===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),qn({type:"classroomList/getClassroomExercisesList",payload:Et({},di.actionTabs.params)}),qn({type:"classroomList/getClassroomLeftMenus",payload:{id:Sr.coursesId}}),xa(`/classrooms/${Sr.coursesId}/exercise/${qo.exercise_id}/detail?random=${qo.is_random}&tabs=3`),qa(`/classrooms/${Sr.coursesId}/exercise/add/${qo.exercise_id}?random=${qo.is_random}&type=2`),na(!0),We.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F"),vo(),Pa());return}qn({type:"exercise/setActionTabs",payload:{}}),vo();let Fr=1,io=Ve.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:Xe.createElement("div",{className:He.Z.modalColumn},Xe.createElement("div",{className:He.Z.modalRow},Xe.createElement("sup",{className:He.Z.sup},"*"),Xe.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),Xe.createElement(ve.Z,{parser:Ya,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Fr,onChange:qo=>{Fr=qo;const Xs=document.getElementById("model_error");Fr<1||Fr>50?Xs.style.display="block":Xs.style.display="none"}})),Xe.createElement("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:Pa,onOk:()=>Ht(void 0,null,function*(){if(Fr<1||Fr>50){const Xs=document.getElementById("model_error");return Xs.style.display="block",Promise.reject()}io.update({cancelButtonProps:{disabled:!0}});const qo=yield qn({type:"exercise/saveBanks",payload:{course_id:Sr.coursesId,object_type:"examination_bank",bank_id:oi,shixuns_info:Yn,num:Fr}});io.update({cancelButtonProps:{disabled:!1}}),qo&&qo.status===0?((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),Ve.default.destroyAll(),qn({type:"classroomList/getClassroomExercisesList",payload:Et({},di.actionTabs.params)}),Pa(),vo(),We.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F")):(Pa(),vo())})})});return Xe.createElement(Xe.Fragment,null,Xe.createElement(Ve.default,{centered:!0,width:1012,title:"\u9009\u62E9\u8BD5\u5377",maskClosable:!1,destroyOnClose:!0,open:di.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Uo,bodyStyle:{minHeight:200},wrapClassName:He.Z.warpModal,onOk:()=>Ht(void 0,null,function*(){var gr;if(!oi.length){We.ZP.error("\u8BF7\u9009\u62E9\u8BD5\u5377");return}Er(!0);let zr=!1,Yn=!1;if(ro.forEach(io=>{oi.includes(io.id)&&io.need_authorize&&(zr=io.need_authorize),oi.includes(io.id)&&(Yn=io.is_random)}),zr){(0,ze.rX)(!1,"\u8BE5\u8BD5\u5377\u4E2D\u5305\u542B\u5B9E\u8BAD\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");return}(yield is({id:`${oi[0]}`,course_id:(gr=Ot.detailTopBanner)==null?void 0:gr.course_id,type:"examination_bank"}))||qr([]),Er(!1)}),onCancel:Pa},Xe.createElement(ue.default,{activeKey:fr,onTabClick:gr=>Ht(void 0,null,function*(){Jo.current.scrollTop=0,ro=[],fr!==gr&&Ao([]),ho(gr),So.page=0,So.filter=gr,So.group_id=null,uo=!0,Ss()})},Xe.createElement(xt,{tab:Xe.createElement("span",null,"\u6211\u7684\u8BD5\u5377\u5E93"),key:"myself"}),Xe.createElement(xt,{tab:Xe.createElement("span",null,"\u6559\u7814\u5171\u4EAB"),key:"teacher"}),Xe.createElement(xt,{tab:Xe.createElement("span",null,"\u516C\u5171\u8BD5\u5377\u5E93"),key:"public"})),Xe.createElement("div",{className:He.Z.tabSearch},fr==="teacher"&&Xe.createElement(Pe.default,{value:So.group_id,onChange:Lo,size:"middle",style:{width:200,marginRight:30}},Xe.createElement(Pe.default.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),(Ar=_o==null?void 0:_o.groups)==null?void 0:Ar.map(gr=>Xe.createElement(Pe.default.Option,{key:gr==null?void 0:gr.group_id,value:gr==null?void 0:gr.group_id},gr==null?void 0:gr.name))),Xe.createElement(Ae.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:So.search,onChange:gr=>{So.search=gr.target.value,Cn(Et({},So))},onSearch:gr=>{Jo.current.scrollTop=0,ro=[],So.page=0,uo=!0,Ao([]),gr&&(0,Ze.tk)({name:gr,copywriting:gr,position:"Exercise"}),Ss()}})),Xe.createElement("div",{ref:Jo,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!$i&&fr==="public"&&Xe.createElement("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"}},Xe.createElement("span",null,"\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u624D\u80FD\u8BBF\u95EE\u516C\u5171\u8BD5\u5377\u5E93\u8D44\u6E90"),Xe.createElement("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:()=>{window.open("/account/certification")}},"\u7ACB\u5373\u8BA4\u8BC1")),Xe.createElement(Le(),{initialLoad:!1,pageStart:0,loadMore:()=>{Ss()},hasMore:uo,useWindow:!1},di.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&$i&&Xe.createElement(Te.Z,{className:He.Z.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:ro,onRow:gr=>({onClick:()=>{Ao([gr==null?void 0:gr.id])}}),resColumns:bs,rowSelection:fa})))),Xe.createElement(Ve.default,{title:"\u63D0\u793A",open:Fa,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Xe.createElement("div",null,Xe.createElement(vt.ZP,{onClick:()=>{na(!1),Ie.history.push(fo)}},"\u4FEE\u6539\u8BD5\u5377"),Xe.createElement(vt.ZP,{type:"primary",onClick:()=>{Ie.history.push(ia),na(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{na(!1)}},Xe.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),Xe.createElement(Ke.Z,{inPaper:!0,visible:sa,onCancel:vo,onOk:qr,renderData:aa,modalType:"multiple",type:"examination_bank"}))};var rn=(0,Ie.connect)(({exercise:Ot,loading:di,classroomList:Mn})=>({exercise:Ot,loading:di,classroomList:Mn}))(Bt),Hn=he(40651),pn=he(66537),_n=Object.defineProperty,Lt=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,ui=(Ot,di,Mn)=>di in Ot?_n(Ot,di,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Ot[di]=Mn,Ln=(Ot,di)=>{for(var Mn in di||(di={}))Un.call(di,Mn)&&ui(Ot,Mn,di[Mn]);if(Lt)for(var Mn of Lt(di))Gn.call(di,Mn)&&ui(Ot,Mn,di[Mn]);return Ot},Wt=(Ot,di,Mn)=>new Promise((qn,Ar)=>{var Sr=_i=>{try{qe(Mn.next(_i))}catch(uo){Ar(uo)}},Kn=_i=>{try{qe(Mn.throw(_i))}catch(uo){Ar(uo)}},qe=_i=>_i.done?qn(_i.value):Promise.resolve(_i.value).then(Sr,Kn);qe((Mn=Mn.apply(Ot,di)).next())});const Vt=({exercise:Ot,dispatch:di})=>{const Mn=(0,Ie.useParams)();return pe.createElement(Ve.default,{centered:!0,title:"\u63D0\u793A",open:Ot.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Wt(void 0,null,function*(){(yield(0,te.ZP)(`/api/courses/${Mn.coursesId}/exercises/set_public.json`,{method:"post",body:{check_ids:[...Ot.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BBE\u4E3A\u516C\u5F00"]),We.ZP.success("\u64CD\u4F5C\u6210\u529F"),di({type:"exercise/setActionTabs",payload:{}}),di({type:"classroomList/getClassroomExercisesList",payload:Ln({},Ot.actionTabs.params)}))}),onCancel:()=>{di({type:"exercise/setActionTabs",payload:{}})}},pe.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",pe.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var mt=(0,Ie.connect)(({exercise:Ot})=>({exercise:Ot}))(Vt),Ye=he(38333),Zt=Object.defineProperty,Gt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Oe=(Ot,di,Mn)=>di in Ot?Zt(Ot,di,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Ot[di]=Mn,we=(Ot,di)=>{for(var Mn in di||(di={}))ft.call(di,Mn)&&Oe(Ot,Mn,di[Mn]);if(Gt)for(var Mn of Gt(di))nt.call(di,Mn)&&Oe(Ot,Mn,di[Mn]);return Ot},ye=(Ot,di)=>{var Mn={};for(var qn in Ot)ft.call(Ot,qn)&&di.indexOf(qn)<0&&(Mn[qn]=Ot[qn]);if(Ot!=null&&Gt)for(var qn of Gt(Ot))di.indexOf(qn)<0&&nt.call(Ot,qn)&&(Mn[qn]=Ot[qn]);return Mn},ke=(Ot,di,Mn)=>new Promise((qn,Ar)=>{var Sr=_i=>{try{qe(Mn.next(_i))}catch(uo){Ar(uo)}},Kn=_i=>{try{qe(Mn.throw(_i))}catch(uo){Ar(uo)}},qe=_i=>_i.done?qn(_i.value):Promise.resolve(_i.value).then(Sr,Kn);qe((Mn=Mn.apply(Ot,di)).next())});const Ge=Ot=>{var di=Ot,{exercise:Mn,dispatch:qn,user:Ar}=di,Sr=ye(di,["exercise","dispatch","user"]),Kn,qe;const _i=(0,Ie.useParams)(),[uo,wr]=(0,pe.useState)(!1),[Uo,Er]=(0,pe.useState)(!1),fr=(0,pe.useRef)(null);(0,pe.useEffect)(()=>{var ro,Gr;if(Mn.actionTabs.key==="\u6279\u91CF\u5220\u9664"){if((0,Qe.j5)()){Er(!0);return}const _o={hasNum:0,noHasNum:0};(Gr=(ro=Mn==null?void 0:Mn.actionTabs)==null?void 0:ro.selectArrsAll)==null||Gr.map(lr=>{var $i;lr.author_login===(($i=Ar.userInfo)==null?void 0:$i.login)?++_o.hasNum:++_o.noHasNum}),_o.noHasNum>0?Ve.default.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:pe.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",pe.createElement("span",{className:"c-blue"},_o.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",pe.createElement("span",{className:"c-red"},_o.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",pe.createElement("br",null),"\u8BFE\u5802\u5185\u53EA\u80FD\u5220\u9664\u672C\u4EBA\u53D1\u5E03\u7684\u8D44\u6E90\uFF0C\u8BF7\u53D6\u6D88\u9009\u4E2D\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u7684\u8D44\u6E90\u3002"),onOk:()=>{ho()}}):Er(!0)}else Er(!1)},[Mn.actionTabs.key]);const ho=()=>{qn({type:"exercise/setActionTabs",payload:{}})};return pe.createElement(Ve.default,{centered:!0,title:"\u63D0\u793A",open:Uo,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:uo,destroyOnClose:!0,onOk:()=>ke(void 0,null,function*(){var ro;if((ro=fr.current)!=null&&ro.onVerify())return;wr(!0);const Gr=yield(0,te.ZP)(`/api/courses/${_i.coursesId}/exercises/destroys.json`,{method:"post",body:{check_ids:[...Mn.actionTabs.selectArrs]}});wr(!1),Gr.status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u5220\u9664"]),We.ZP.success("\u5220\u9664\u6210\u529F"),qn({type:"exercise/setActionTabs",payload:{}}),qn({type:"classroomList/getClassroomExercisesList",payload:we({},Mn.actionTabs.params)}),qn({type:"classroomList/getClassroomLeftMenus",payload:we({},Mn.actionTabs.params)}))}),onCancel:()=>{qn({type:"exercise/setActionTabs",payload:{}})}},!((Kn=Mn==null?void 0:Mn.actionTabs)!=null&&Kn.status)||!["\u672A\u5F00\u59CB"].includes((qe=Mn==null?void 0:Mn.actionTabs)==null?void 0:qe.status)?pe.createElement(pe.Fragment,null,pe.createElement("p",{style:{color:"#DD0000"}},"\u5220\u9664\u8003\u8BD5\u5219\u4F1A\u6E05\u9664\u5B66\u751F\u6240\u6709\u7684\u7B54\u9898\u6570\u636E\uFF0C\u4E14\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF0C\u5982\u786E\u5B9A\u5220\u9664\uFF0C\u8BF7\u8F93\u5165\u4E0B\u65B9\u9A8C\u8BC1\u7801"),pe.createElement(Ye.Z,{ref:ro=>fr.current=ro})):pe.createElement("p",null,"\u5220\u9664\u8BD5\u5377\u4F1A\u540C\u6B65\u5220\u9664\u8BD5\u5377\u4E2D\u7684\u6240\u6709\u8003\u8BD5\uFF0C\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F"))};var Fe=(0,Ie.connect)(({exercise:Ot,user:di})=>({exercise:Ot,user:di}))(Ge),pt=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,wt=(Ot,di)=>{var Mn={};for(var qn in Ot)tn.call(Ot,qn)&&di.indexOf(qn)<0&&(Mn[qn]=Ot[qn]);if(Ot!=null&&pt)for(var qn of pt(Ot))di.indexOf(qn)<0&&en.call(Ot,qn)&&(Mn[qn]=Ot[qn]);return Mn},Xt=(Ot,di,Mn)=>new Promise((qn,Ar)=>{var Sr=_i=>{try{qe(Mn.next(_i))}catch(uo){Ar(uo)}},Kn=_i=>{try{qe(Mn.throw(_i))}catch(uo){Ar(uo)}},qe=_i=>_i.done?qn(_i.value):Promise.resolve(_i.value).then(Sr,Kn);qe((Mn=Mn.apply(Ot,di)).next())});const Pn=Ot=>{var di=Ot,{exercise:Mn,dispatch:qn}=di,Ar=wt(di,["exercise","dispatch"]);const Sr=(0,Ie.useParams)();return Sr.id=Sr.coursesId,(0,pe.useEffect)(()=>{Mn.actionTabs.key==="\u52A0\u5165\u8BD5\u5377\u5E93"&&new Promise(()=>Xt(void 0,null,function*(){(yield(0,te.ZP)(`/api/courses/${Sr.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...Mn.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u52A0\u5165\u8BD5\u5377\u5E93"]),We.ZP.success("\u5DF2\u52A0\u5165\u4E2A\u4EBA\u8BD5\u5377\u5E93\uFF0C\u8BD5\u9898\u540C\u6B65\u52A0\u5165\u81F3\u4E2A\u4EBA\u9898\u5E93")),qn({type:"exercise/setActionTabs",payload:{}})}))},[Mn.actionTabs.key]),pe.createElement(pe.Fragment,null)};var In=(0,Ie.connect)(({exercise:Ot})=>({exercise:Ot}))(Pn),$n=he(60324),Pi=he(2595),wn={flex_box_center:"flex_box_center___VejG5",flex_space_between:"flex_space_between___RwAiX",flex_box_vertical_center:"flex_box_vertical_center___N5QNs",flex_box_center_end:"flex_box_center_end___SUMZc",flex_box_column:"flex_box_column___ombQA",bg:"bg___i74VI",containerTitle:"containerTitle___eAbbs",containerDesc:"containerDesc___WeE4m",tablestyle:"tablestyle___uKNiL",listItem:"listItem___aJrbL",info:"info___X9HlC",title:"title___ZDroC",titleLeft:"titleLeft___JzNZc",titleRight:"titleRight___RP0gb",flexBox:"flexBox___txRbA",iconV:"iconV___JMCv9",acitons:"acitons___iqFGc",moveCategory:"moveCategory___Rihfv",name:"name___LdzGg",categoryName:"categoryName___Tz45n",schedule:"schedule___a20T3",fnSign:"fnSign___gsn3j",spanSize:"spanSize___jht3F",classromediv:"classromediv___T7h_f",glow:"glow___LU7dg",popover:"popover___Qeg0P",dot:"dot___c9Vwj",moni:"moni___LBVeo",authorized:"authorized___yQPQx"},Ai=Object.defineProperty,Vi=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,Qn=(Ot,di,Mn)=>di in Ot?Ai(Ot,di,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Ot[di]=Mn,Ci=(Ot,di)=>{for(var Mn in di||(di={}))ur.call(di,Mn)&&Qn(Ot,Mn,di[Mn]);if(Vi)for(var Mn of Vi(di))sr.call(di,Mn)&&Qn(Ot,Mn,di[Mn]);return Ot};const er=Ot=>React.createElement("svg",Ci({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},Ot),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD 2"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fill:"#979797",fillRule:"nonzero"},React.createElement("path",{d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 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LjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiLz48L2c+PC9nPjwvc3ZnPg==",tr=Object.defineProperty,Di=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,yr=(Ot,di,Mn)=>di in Ot?tr(Ot,di,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Ot[di]=Mn,Dr=(Ot,di)=>{for(var Mn in di||(di={}))De.call(di,Mn)&&yr(Ot,Mn,di[Mn]);if(Di)for(var Mn of Di(di))Yr.call(di,Mn)&&yr(Ot,Mn,di[Mn]);return Ot};const lo=Ot=>React.createElement("svg",Dr({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},Ot),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{fill:"#229BFF",d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z",fill:"#0152d9"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z",fill:"#0152d9"}))));var Wo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBmaWxsPSIjMjI5QkZGIiBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiIGZpbGw9IiMwMTUyZDkiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiIGZpbGw9IiMwMTUyZDkiLz48L2c+PC9nPjwvc3ZnPg==",No=he(41727),ki=he(12971),an=he(56017),nn=he(80814),Ut=he(98445),bt=he(69429),xn=Object.defineProperty,hn=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,fn=(Ot,di,Mn)=>di in Ot?xn(Ot,di,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Ot[di]=Mn,yn=(Ot,di)=>{for(var Mn in di||(di={}))Tt.call(di,Mn)&&fn(Ot,Mn,di[Mn]);if(hn)for(var Mn of hn(di))ot.call(di,Mn)&&fn(Ot,Mn,di[Mn]);return Ot};const li=Ot=>React.createElement("svg",yn({width:18,height:13,xmlns:"http://www.w3.org/2000/svg"},Ot),React.createElement("title",null,"\u7F16\u7EC4 3"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m2.288 4.95 5.456 1.725 3.085-1.016c.176-.058.176.039.013.167-.686.544-1.286 1.24-1.613 2.076a4.679 4.679 0 0 0 2.414 2.542l-1.313 1.311-2.748.863-5.294-1.763V4.95ZM7.661 0l7.502 2.936-7.502 2.692L.73 3.192V8.14h-.7V2.946L0 2.936 7.661 0Z",fill:"#739EFF"}),React.createElement("g",{fill:"#FF9D18",fillRule:"nonzero"},React.createElement("path",{d:"m11.381 9.3.949-.948a1.305 1.305 0 0 1-.097-.498c0-.762.623-1.385 1.384-1.385.18 0 .346.035.499.097l.713-.713a3.6 3.6 0 0 0-1.212-.215c-1.453 0-2.852.921-3.323 2.216A3.281 3.281 0 0 0 11.381 9.3Z"}),React.createElement("path",{d:"M12.787 7.854v.041l.872-.872h-.042a.833.833 0 0 0-.83.83Zm3.066-1.447.674-.674.738-.738-.394-.395-.795.795-4.629 4.629-1.097 1.097.394.395.664-.665.567-.566.438-.438c.384.147.793.222 1.204.222 1.447 0 2.86-.92 3.33-2.215-.208-.568-.602-1.067-1.094-1.447Zm-2.236 2.831c-.173 0-.346-.035-.498-.097l.464-.464h.041c.457 0 .83-.373.83-.83v-.042l.465-.464c.048.166.083.34.083.513 0 .761-.623 1.384-1.385 1.384Z"}))));var vn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi4yODggNC45NSA1LjQ1NiAxLjcyNSAzLjA4NS0xLjAxNmMuMTc2LS4wNTguMTc2LjAzOS4wMTMuMTY3LS42ODYuNTQ0LTEuMjg2IDEuMjQtMS42MTMgMi4wNzZhNC42NzkgNC42NzkgMCAwIDAgMi40MTQgMi41NDJsLTEuMzEzIDEuMzExLTIuNzQ4Ljg2My01LjI5NC0xLjc2M1Y0Ljk1Wk03LjY2MSAwbDcuNTAyIDIuOTM2LTcuNTAyIDIuNjkyTC43MyAzLjE5MlY4LjE0aC0uN1YyLjk0NkwwIDIuOTM2IDcuNjYxIDBaIiBmaWxsPSIjNzM5RUZGIi8+PGcgZmlsbD0iI0ZGOUQxOCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJtMTEuMzgxIDkuMy45NDktLjk0OGExLjMwNSAxLjMwNSAwIDAgMS0uMDk3LS40OThjMC0uNzYyLjYyMy0xLjM4NSAxLjM4NC0xLjM4NS4xOCAwIC4zNDYuMDM1LjQ5OS4wOTdsLjcxMy0uNzEzYTMuNiAzLjYgMCAwIDAtMS4yMTItLjIxNWMtMS40NTMgMC0yLjg1Mi45MjEtMy4zMjMgMi4yMTZBMy4yODEgMy4yODEgMCAwIDAgMTEuMzgxIDkuM1oiLz48cGF0aCBkPSJNMTIuNzg3IDcuODU0di4wNDFsLjg3Mi0uODcyaC0uMDQyYS44MzMuODMzIDAgMCAwLS44My44M1ptMy4wNjYtMS40NDcuNjc0LS42NzQuNzM4LS43MzgtLjM5NC0uMzk1LS43OTUuNzk1LTQuNjI5IDQuNjI5LTEuMDk3IDEuMDk3LjM5NC4zOTUuNjY0LS42NjUuNTY3LS41NjYuNDM4LS40MzhjLjM4NC4xNDcuNzkzLjIyMiAxLjIwNC4yMjIgMS40NDcgMCAyLjg2LS45MiAzLjMzLTIuMjE1LS4yMDgtLjU2OC0uNjAyLTEuMDY3LTEuMDk0LTEuNDQ3Wm0tMi4yMzYgMi44MzFjLS4xNzMgMC0uMzQ2LS4wMzUtLjQ5OC0uMDk3bC40NjQtLjQ2NGguMDQxYy40NTcgMCAuODMtLjM3My44My0uODN2LS4wNDJsLjQ2NS0uNDY0Yy4wNDguMTY2LjA4My4zNC4wODMuNTEzIDAgLjc2MS0uNjIzIDEuMzg0LTEuMzg1IDEuMzg0WiIvPjwvZz48L2c+PC9zdmc+",at=he(59301),Bn=Object.defineProperty,pi=Object.defineProperties,Li=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Sn=(Ot,di,Mn)=>di in Ot?Bn(Ot,di,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Ot[di]=Mn,Fn=(Ot,di)=>{for(var Mn in di||(di={}))Nn.call(di,Mn)&&Sn(Ot,Mn,di[Mn]);if(qt)for(var Mn of qt(di))on.call(di,Mn)&&Sn(Ot,Mn,di[Mn]);return Ot},En=(Ot,di)=>pi(Ot,Li(di)),kn=(Ot,di,Mn)=>new Promise((qn,Ar)=>{var Sr=_i=>{try{qe(Mn.next(_i))}catch(uo){Ar(uo)}},Kn=_i=>{try{qe(Mn.throw(_i))}catch(uo){Ar(uo)}},qe=_i=>_i.done?qn(_i.value):Promise.resolve(_i.value).then(Sr,Kn);qe((Mn=Mn.apply(Ot,di)).next())});const Zn=({v:Ot,k:di,match:Mn,selectArrs:qn,setSelectArrs:Ar,dispatch:Sr,params:Kn,classroomList:qe,batchStatus:_i,manageAllGroup:uo,user:wr})=>{var Uo,Er,fr,ho,ro,Gr,_o,lr,$i,kr,oi,Ao,Jo,Fa,na,ia,xa,fo;const[qa,bs]=(0,pe.useState)([]),[So,Cn]=(0,pe.useState)(!1),cs=(0,pe.useRef)(),Ya=(0,pe.useRef)();var Ss=!1;const Lo="YYYY-MM-DD",fa=$e()("2020-11-15",Lo);function Pa(){return kn(this,null,function*(){console.log(Kn,222);let Yn=yield(0,te.ZP)(`/api/courses/${Kn==null?void 0:Kn.coursesId}/exercises/group_use_list.json`,{method:"get",params:En(Fn({},Kn),{id:Ot.id})});bs((Yn==null?void 0:Yn.groups)||[])})}const sa=()=>Ve.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:at.createElement(at.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")});Ot!=null&&Ot.appraise_label&&(Ss=!0);const vo=(Yn,Fr=!1)=>{var io;Ie.history.push(`/classrooms/${Kn.coursesId}/exercisenotice/${Yn.id}/users/${(io=(0,Qe.eY)())==null?void 0:io.login}`)},aa=[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"},{title:"\u8003\u8BD5\u72B6\u6001",dataIndex:"exercise_status",key:"exercise_status",width:100,filters:[{text:"\u672A\u5F00\u59CB",value:1},{text:"\u8003\u8BD5\u4E2D",value:2},{text:"\u5DF2\u622A\u6B62",value:3}],onFilter:(Yn,Fr)=>Fr.exercise_status===Yn,render:(Yn,Fr)=>at.createElement("div",null,Yn===1&&at.createElement("span",null,at.createElement("i",{className:wn.dot,style:{background:"#C3C3C3"}}),"\u672A\u5F00\u59CB"),Yn===2&&at.createElement("span",null,at.createElement("i",{className:wn.dot,style:{background:"#4EACFF"}}),"\u8003\u8BD5\u4E2D"),Yn===3&&at.createElement("span",null,at.createElement("i",{className:wn.dot,style:{background:"#FC2D6B"}}),"\u5DF2\u622A\u6B62"))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:Kn.order_by==="publish_time"?Kn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:Kn.order_by==="end_time"?Kn.sort_direction==="desc"?"descend":"ascend":null},{title:"\u63D0\u4EA4\u4EBA\u6570",dataIndex:"exercise_answer",key:"exercise_answer",align:"center",width:80,render:(Yn,Fr)=>Fr.exercise_status===1?"-":at.createElement("span",null,Yn,"/",Fr.exercise_users)},{title:"\u5F85\u8BC4\u9605\u8BD5\u5377",dataIndex:"unreview_count",key:"unreview_count",align:"center",width:90,render:(Yn,Fr)=>Fr.exercise_status===1?"-":Yn===0?at.createElement("span",{style:{cursor:"no-drop",color:"#999999"}},Yn):at.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${Kn==null?void 0:Kn.coursesId}/exercise/${Ot==null?void 0:Ot.id}/detail?random=false&exercise_group_id=${Fr.course_group_id}`)},Yn)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",key:"action",width:60,render:(Yn,Fr)=>Fr.exercise_status===1?at.createElement("img",{style:{cursor:"not-allowed"},src:ri}):at.createElement(de.Z,{title:"\u8BC4\u9605"},at.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${Kn==null?void 0:Kn.coursesId}/exercise/${Ot==null?void 0:Ot.id}/detail?random=false&exercise_group_id=${Fr.course_group_id}`)},at.createElement("img",{src:Wo})))}],is=Yn=>{if(Ss)return at.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style mr10"},"\u96C6\u4E2D\u9605\u5377");if(Yn!=null&&Yn.includes("\u672A\u5F00\u59CB"))return at.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style mr10"},"\u672A\u5F00\u59CB");if(Yn!=null&&Yn.includes("\u8003\u8BD5\u4E2D"))return at.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style mr10"},"\u8003\u8BD5\u4E2D");if(Yn!=null&&Yn.includes("\u5DF2\u622A\u6B62"))return at.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style mr10"},"\u5DF2\u622A\u6B62");if(Yn!=null&&Yn.includes("\u5BFC\u5165"))return at.createElement("span",{className:"export mr10"},"\u5BFC\u5165")},qr=()=>{const Yn=(Ot==null?void 0:Ot.simulate_exercise_num)-(Ot==null?void 0:Ot.user_simulate_num);return Yn>=0?Yn:0},gr=(Yn=Ot)=>{var Fr,io,qo;if(Yn!=null&&Yn.is_encrypt){Sr({type:"classroomList/setActionTabs",payload:{open:"\u89E3\u5C01",id:Yn==null?void 0:Yn.id,phone:(Fr=wr==null?void 0:wr.userInfo)==null?void 0:Fr.phone,login:(io=wr==null?void 0:wr.userInfo)==null?void 0:io.login}});return}(qo=wr==null?void 0:wr.userInfo)!=null&&qo.phone?Sr({type:"classroomList/setActionTabs",payload:{open:"\u8BD5\u5377\u5C01\u5B58",id:Yn==null?void 0:Yn.id}}):Sr({type:"classroomList/setActionTabs",payload:{open:"\u624B\u673A\u53F7\u7ED1\u5B9A"}})},zr=Yn=>{var Fr,io,qo;if(((Fr=wr==null?void 0:wr.userInfo)==null?void 0:Fr.login)!==(Ot==null?void 0:Ot.author_login)){We.ZP.warning("\u8BD5\u5377\u5DF2\u5C01\u5B58\uFF0C\u8BF7\u8054\u7CFB\u8BD5\u5377\u6240\u6709\u8005\u8FDB\u884C\u89E3\u5C01~");return}Sr({type:"classroomList/setActionTabs",payload:{open:"\u63D0\u793A",id:Ot==null?void 0:Ot.id,phone:(io=wr==null?void 0:wr.userInfo)==null?void 0:io.phone,login:(qo=wr==null?void 0:wr.userInfo)==null?void 0:qo.login,onFinish:Yn}})};return at.createElement("div",{className:wn.listItem,onClick:Yn=>{const Fr=()=>{(!(0,Qe.GJ)()||(0,Qe.GJ)()&&Ya.current&&!Ya.current.contains(Yn.target))&&(0,Ee.xg)(`/classrooms/${Kn.coursesId}/exercise/${Ot.id}/detail?random=${Ot.is_random}`)};if(Ot!=null&&Ot.is_encrypt){zr(Fr);return}Fr()}},(0,Qe.GJ)()&&at.createElement("span",{ref:Ya},at.createElement(Je.default,{checked:qn.includes(Ot.id),value:Ot.id,style:{padding:"10px"},onClick:Yn=>{Yn.stopPropagation()},disabled:(Ot==null?void 0:Ot.is_encrypt)||(Ot==null?void 0:Ot.is_make_up_exercise),onChange:Yn=>{let Fr=qn.indexOf(Ot.id);qn.indexOf(Ot.id)>-1?Ar(qn.filter(io=>io!==Ot.id)):Ar(qn.concat(Ot.id))}})),at.createElement("div",{className:wn.info},at.createElement("div",{className:wn.title},at.createElement("div",{className:wn.titleLeft,style:{marginRight:15}},is(Ot==null?void 0:Ot.exercise_tips),(Ot==null?void 0:Ot.is_make_up_exercise)&&at.createElement("img",{src:No,width:44,height:24,style:{marginRight:10}}),at.createElement(de.Z,{title:Ot.exercise_name},at.createElement("span",{className:wn.name},Ot.exercise_name)),(Ot==null?void 0:Ot.high_resources_consume)&&!(Ot!=null&&Ot.high_resources_consume_permission)&&at.createElement(Mt.Z,{type:"exercise",style:{marginLeft:10}}),(Ot==null?void 0:Ot.high_resources_consume)&&(Ot==null?void 0:Ot.high_resources_consume_permission)&&at.createElement("span",{className:wn.authorized},"\u5DF2\u6388\u6743"),((Uo=Ot==null?void 0:Ot.exercise_tips)==null?void 0:Uo.includes("\u5DF2\u622A\u6B62"))&&((Er=qe==null?void 0:qe.detailTopBanner)==null?void 0:Er.forbid_end_exercise)&&at.createElement(de.Z,{title:"\u5DF2\u5BF9\u5B66\u751F\u9690\u85CF"},at.createElement("img",{src:vn,width:20,className:"ml10"})),!Ot.is_public&&(0,Qe.GJ)()&&at.createElement(de.Z,{title:"\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"},at.createElement("span",{className:"iconfont icon-suo1 ml10 mr10 c-light-black font12"})),(Ot==null?void 0:Ot.exercise_type)==2&&at.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex",alignItems:"center"},className:wn.moni},at.createElement("img",{src:ki,width:18,height:14}),"\u6A21\u62DF\u8003\u8BD5"),((fr=Ot==null?void 0:Ot.exercise_tips)==null?void 0:fr.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"))&&at.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex"},className:"tag-style-fzb iconfont icon-fangzuobi"},"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"),((ho=Ot==null?void 0:Ot.exercise_tips)==null?void 0:ho.includes("\u5DF2\u622A\u6B62"))&&((ro=Ot==null?void 0:Ot.exercise_tips)==null?void 0:ro.includes("\u672A\u63D0\u4EA4"))&&at.createElement("span",{style:{flexShrink:0,backgroundColor:"#B8B8B8"},className:"tag-style ml10"},"\u672A\u63D0\u4EA4"),(Ot==null?void 0:Ot.is_encrypt)&&at.createElement(de.Z,{title:"\u8BD5\u5377\u5DF2\u52A0\u5BC6"}," ",at.createElement("img",{src:bt,width:21,className:"ml10",style:{marginTop:"-8px"}})," ")),at.createElement("div",{className:wn.titleRight,onClick:Yn=>{Yn.stopPropagation(),Yn.preventDefault()}},(Ot==null?void 0:Ot.appraise_setting)&&at.createElement("span",{className:wn.flexBox,style:{marginRight:"16px"},onClick:()=>kn(void 0,null,function*(){const Yn=()=>kn(void 0,null,function*(){Sr({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E..."}});const Fr=yield(0,te.ZP)(`/api/exercises/${Ot.id}/create_appraise_students.json`,{method:"get"});Sr({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(0,Ee.xg)(`/classrooms/${Kn==null?void 0:Kn.coursesId}/exercise/${Ot.id}/centralizeReview/${Fr==null?void 0:Fr.login}`)});if(Ot!=null&&Ot.is_encrypt){zr(Yn);return}Yn()})},at.createElement("i",{className:"iconfont icon-jizhongyuejuan"}),at.createElement("div",null,"\u96C6\u4E2D\u9605\u5377")),!(Ot!=null&&Ot.exercise_tips.includes("\u5BFC\u5165"))&&(0,Qe.GJ)()&&(!(Ot!=null&&Ot.is_make_up_exercise)||(Ot==null?void 0:Ot.is_make_up_exercise)&&(Ot==null?void 0:Ot.exercise_status)===1&&(Ot==null?void 0:Ot.allow_create_make_up))&&at.createElement(an.Z,{tips:Ot==null?void 0:Ot.open_appraise},at.createElement("span",{className:wn.flexBox,style:{marginRight:"16px"},onClick:()=>{const Yn=()=>{var Fr,io,qo;if(((Fr=wr==null?void 0:wr.userInfo)==null?void 0:Fr.user_status)===2){(0,ze.Rd)();return}if((0,Qe.Rm)()&&!((qo=(io=qe==null?void 0:qe.AssistantObject)==null?void 0:io.exercise)!=null&&qo.can_publish)){We.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}if((Ot==null?void 0:Ot.exercise_question_count)===0){We.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}let Xs=()=>{Sr({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[Ot.id],unified_setting:Ot.unified_setting,params:Kn,disabled:Ot.exercise_status!==1,type:2,manage_all_group:uo,isRouter:!0}})};Ot!=null&&Ot.high_resources_consume&&!(Ot!=null&&Ot.high_resources_consume_permission)?Sr({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Kn.coursesId,type:"exercise",type_id:Ot.id,name:Ot.exercise_name,fn:()=>{Sr({type:"classroomList/getClassroomExercisesList",payload:Fn({},Kn)}),Xs()}}}):Xs()};if(Ot!=null&&Ot.is_encrypt){zr(Yn);return}Yn()}},at.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),at.createElement("div",null,"\u53D1\u5E03"))),!(Ot!=null&&Ot.exercise_tips.includes("\u5BFC\u5165"))&&(0,Qe.GJ)()&&!(0,Ee._m)()&&Ot.assistant_auth&&at.createElement("span",{className:wn.flexBox,style:{marginRight:"16px"},onClick:Yn=>{Yn.stopPropagation();const Fr=()=>{var io,qo;if((0,Qe.Rm)()&&!((qo=(io=qe==null?void 0:qe.AssistantObject)==null?void 0:io.exercise)!=null&&qo.can_preview)){We.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}const Xs=$e()(Ot.created_at,Lo);$e()(fa).diff($e()(Xs),"days")>0&&(Ot!=null&&Ot.is_random)?sa():Ot!=null&&Ot.is_random?(0,Ee.xg)(`/classrooms/${Kn.coursesId}/exercise/${Ot.id}/random/preview?random=${Ot.is_random}`):(0,Ee.xg)(`/classrooms/${Kn.coursesId}/exercise/${Ot.id}/detail?random=${Ot.is_random}&tabs=2`)};if(Ot!=null&&Ot.is_encrypt){zr(Fr);return}Fr()}},at.createElement("i",{className:"iconfont icon-yulan3"}),at.createElement("div",null,"\u9884\u89C8")),(0,Qe.RV)()&&at.createElement("span",{className:wn.flexBox,style:{marginRight:"16px"},onClick:()=>{const Yn=()=>{(0,Ee.xg)(`/classrooms/${Kn.coursesId}/exercise/${Ot.id}/detail?random=${Ot.is_random}`)};if(Ot!=null&&Ot.is_encrypt){zr(Yn);return}Yn()}},at.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),at.createElement("div",null,"\u8BE6\u60C5")),(0,Qe.GJ)()&&!(0,Ee._m)()&&at.createElement($n.Z,{placement:"bottom",content:at.createElement("div",{className:wn.popover},!(Ot!=null&&Ot.exercise_tips.includes("\u5BFC\u5165"))&&at.createElement("p",{onClick:Yn=>kn(void 0,null,function*(){const Fr=()=>{(0,Ee.xg)(`/classrooms/${Kn.coursesId}/exercise/${Ot.id}/detail?random=${Ot.is_random}&tabs=3`)};if(Ot!=null&&Ot.is_encrypt){zr(Fr);return}Fr()})},"\u89C4\u5219\u8BBE\u7F6E"),(Ot==null?void 0:Ot.exercise_tips.includes("\u5BFC\u5165"))&&at.createElement("p",{onClick:Yn=>kn(void 0,null,function*(){const Fr=()=>{Sr({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:Ot==null?void 0:Ot.exercise_name,id:Ot==null?void 0:Ot.id,type:"hack"}})};if(Ot!=null&&Ot.is_encrypt){zr(Fr);return}Fr()})},"\u8865\u5145\u6210\u7EE9"),!(Ot!=null&&Ot.exercise_tips.includes("\u5BFC\u5165"))&&(0,Qe.GJ)()&&Ot.is_random&&Ot.assistant_auth&&at.createElement("p",{onClick:Yn=>{Yn.stopPropagation();const Fr=()=>{const io=$e()(Ot.created_at,Lo);$e()(fa).diff($e()(io),"days")>0&&(Ot!=null&&Ot.is_random)?sa():(0,Ee.xg)(`/classrooms/${Kn.coursesId}/exercise/${Ot.id}/random/edit?type=settings`)};if(Ot!=null&&Ot.is_encrypt){zr(Fr);return}Fr()}},"\u7F16\u8F91\u8003\u8BD5"),at.createElement("p",{onClick:Yn=>kn(void 0,null,function*(){const Fr=()=>{var io;Sr({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u5220\u9664",selectArrs:[Ot.id],selectArrsAll:[Ot],params:Kn,status:(io=Ot==null?void 0:Ot.exercise_tips)==null?void 0:io[0]}})};if(Ot!=null&&Ot.is_encrypt){zr(Fr);return}Fr()})},"\u5220\u9664\u8BD5\u5377"),!(Ot!=null&&Ot.exercise_tips.includes("\u5BFC\u5165"))&&at.createElement("p",{onClick:()=>{const Yn=()=>{Sr({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[Ot.id],params:Kn}})};if(Ot!=null&&Ot.is_encrypt){zr(Yn);return}Yn()}},"\u52A0\u5165\u8BD5\u5377\u5E93"),((Gr=Ot==null?void 0:Ot.exercise_tips)==null?void 0:Gr.includes("\u672A\u5F00\u59CB"))&&(Ot==null?void 0:Ot.author_login)===((_o=wr==null?void 0:wr.userInfo)==null?void 0:_o.login)&&at.createElement("p",{onClick:Yn=>kn(void 0,null,function*(){gr(Ot)})}," ",Ot!=null&&Ot.is_encrypt?"\u89E3\u5C01":"\u52A0\u5BC6\u5C01\u5B58"),!(Ot!=null&&Ot.exercise_tips.includes("\u5BFC\u5165"))&&((0,Qe.GJ)()||(($i=(lr=qe==null?void 0:qe.AssistantObject)==null?void 0:lr.exercise)==null?void 0:$i.can_stop))&&![1,3].includes(Ot==null?void 0:Ot.exercise_status)&&at.createElement("p",{onClick:Yn=>kn(void 0,null,function*(){const Fr=()=>{var io,qo;if((0,Qe.Rm)()&&!((qo=(io=qe==null?void 0:qe.AssistantObject)==null?void 0:io.exercise)!=null&&qo.can_stop)){We.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}Sr({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[Ot.id],params:Kn,unified_setting:Ot.unified_setting}})};if(Ot!=null&&Ot.is_encrypt){zr(Fr);return}Fr()})},"\u7ED3\u675F\u8003\u8BD5"))},at.createElement("span",{onClick:Yn=>Yn.stopPropagation(),className:wn.flexBox,style:{cursor:"default"}},at.createElement("i",{className:"iconfont icon-gengduo4"}),at.createElement("div",null,"\u66F4\u591A"))),(0,Qe.dE)()&&at.createElement(at.Fragment,null,!!Ot.off_limits&&at.createElement(de.Z,{title:`\u8FDF\u5230\u8D85\u8FC7${Ot==null?void 0:Ot.last_times}\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`},at.createElement("b",{className:"font16 c-grey-999"},"\u8FDF\u5230\u7981\u6B62\u7B54\u9898")),(Ot==null?void 0:Ot.exercise_type)==1&&!Ot.off_limits&&Ot.current_status===0&&Ot.exercise_status>1&&!((kr=Ot.exercise_tips)!=null&&kr.includes("\u5DF2\u622A\u6B62"))&&at.createElement("a",{className:wn.flexBox,style:{marginRight:"16px"},onClick:Yn=>{Yn.stopPropagation(),Yn.preventDefault(),vo(Ot,!0)},href:""},at.createElement("i",{className:"iconfont icon-jixukaoshi"}),at.createElement("div",null,(Ot==null?void 0:Ot.screen_used_num)>(Ot==null?void 0:Ot.screen_total_num)&&"\u7533\u8BF7"," \u7EE7\u7EED\u8003\u8BD5")),!((oi=Ot.exercise_tips)!=null&&oi.includes("\u5DF2\u622A\u6B62"))&&(Ot==null?void 0:Ot.screen_used_num)>(Ot==null?void 0:Ot.screen_total_num)&&at.createElement("a",{className:wn.flexBox,style:{marginRight:"16px"},onClick:Yn=>{Yn.stopPropagation(),Yn.preventDefault(),vo(Ot,!0)},href:""},at.createElement("i",{className:"iconfont icon-jixukaoshi"}),at.createElement("div",null,"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5")),!Ot.off_limits&&Ot.current_status===1&&(Ot==null?void 0:Ot.screen_used_num)<(Ot==null?void 0:Ot.screen_total_num)&&Ot.exercise_status>1&&document.domain!="kepukehuan.educoder.net"&&!((Ot==null?void 0:Ot.exercise_type)==2&&(Ot==null?void 0:Ot.exercise_status)!=3)&&at.createElement("span",{className:wn.flexBox,style:{marginRight:"16px"},onClick:Yn=>kn(void 0,null,function*(){var Fr;if(Yn.stopPropagation(),!(Ot!=null&&Ot.answered_open)){We.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,nn.w)(Kn.coursesId,Ot.id,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,Ee.xg)(`/classrooms/${Kn.coursesId}/exercise/${Ot.id}/users/${(Fr=(0,Qe.eY)())==null?void 0:Fr.login}?check=true`)})},at.createElement("i",{className:"iconfont icon-chakankaoshi"}),at.createElement("div",null,"\u67E5\u770B\u8003\u8BD5")),(Ot==null?void 0:Ot.exercise_type)==1&&!Ot.off_limits&&Ot.current_status===2&&Ot.exercise_status>1&&!((Ao=Ot.exercise_tips)!=null&&Ao.includes("\u5DF2\u622A\u6B62"))&&at.createElement("a",{className:wn.flexBox,style:{marginRight:"16px",color:(Ot==null?void 0:Ot.is_redo)===1&&"red"},onClick:Yn=>{Yn.stopPropagation(),Yn.preventDefault(),vo(Ot)},href:""},at.createElement("i",{className:"iconfont icon-a-kaishijixudajuan"}),at.createElement("div",null,(Ot==null?void 0:Ot.is_redo)===0?"\u5F00\u59CB\u8003\u8BD5":"\u91CD\u65B0\u8003\u8BD5")),(Ot==null?void 0:Ot.exercise_type)==2&&!Ot.off_limits&&Ot.exercise_status>1&&!((Jo=Ot.exercise_tips)!=null&&Jo.includes("\u5DF2\u622A\u6B62"))&&at.createElement(de.Z,{title:at.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",Ot==null?void 0:Ot.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",qr(),"\u6B21")},at.createElement("a",{className:wn.flexBox,onClick:Yn=>{qr()==0&&(Ot==null?void 0:Ot.current_status)!=0||(Yn.stopPropagation(),Yn.preventDefault(),vo(Ot))},href:""},at.createElement("i",{className:`iconfont ${(Ot==null?void 0:Ot.current_status)!=0?"icon-a-kaishijixudajuan":"icon-jixukaoshi"}`}),at.createElement("div",null,(Ot==null?void 0:Ot.current_status)!=0?"\u5F00\u59CB\u8003\u8BD5":"\u7EE7\u7EED\u8003\u8BD5")))))),(0,Qe.GJ)()&&at.createElement("p",{style:{display:"flex"}},at.createElement("span",{className:"c-grey-666",style:{display:"inline-block",maxWidth:"90px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},title:Ot.author},Ot.author),at.createElement("span",{className:"ml30 c-grey-666"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",$e()(Ot.created_at).format("YYYY-MM-DD HH:mm:ss")),((Fa=Ot==null?void 0:Ot.exercise_tips)==null?void 0:Fa.includes("\u672A\u5F00\u59CB"))&&Ot.publish_time&&at.createElement("span",{className:"ml30 c-grey-666"},"\u5F00\u59CB\u65F6\u95F4\uFF1A",$e()(Ot.publish_time).format("YYYY-MM-DD HH:mm:ss")),at.createElement("span",{className:"ml30 c-grey-666"},"\u7B54\u9898\u65F6\u957F\uFF1A",Ot.time===null?"\u4E0D\u9650":`${Ot.time}\u5206\u949F`),at.createElement("span",{className:"ml30 c-grey-666"},"\u7C7B\u578B\uFF1A",Ot.is_random?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"),!((na=Ot==null?void 0:Ot.exercise_tips)!=null&&na.includes("\u672A\u5F00\u59CB"))&&!(Ot!=null&&Ot.is_make_up_exercise)&&!(Ot!=null&&Ot.exercise_tips.includes("\u5BFC\u5165"))&&at.createElement("span",{className:wn.iconV,style:{marginLeft:"auto",textAlign:"end"},onClick:Yn=>kn(void 0,null,function*(){Yn.stopPropagation(),Yn.preventDefault(),So||Pa(),Cn(!So)})},at.createElement(de.Z,{title:`${So?"\u6536\u8D77":"\u5C55\u5F00"}`},at.createElement("i",{className:`iconfont icon-${So?"shouqi":"xiala2"}`})))),(0,Qe.dE)()&&at.createElement("p",{style:{display:"flex"}},at.createElement("span",{className:"c-grey-333"},Ot.author),at.createElement("span",{className:"ml30 c-grey-999 mr20"},"\u7B54\u9898\u65F6\u957F\uFF1A",Ot.time===null?"\u4E0D\u9650":`${Ot.time}\u5206\u949F`),!!(Ot!=null&&Ot.exercise_left_time)&&at.createElement("span",{className:"ml15 c-grey-999"},"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",Ot==null?void 0:Ot.exercise_left_time),!!(Ot!=null&&Ot.before_start)&&at.createElement("span",{className:"ml15 c-grey-999"},"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u65F6\u95F4\uFF1A",Ot==null?void 0:Ot.before_start)),(0,Qe.GJ)()&&!((ia=Ot==null?void 0:Ot.exercise_tips)!=null&&ia.includes("\u672A\u5F00\u59CB"))&&at.createElement("p",null,at.createElement("span",{style:{letterSpacing:2},className:"c-grey-333 mr15"},"\u63D0\u4EA4\u72B6\u6001\uFF1A"),at.createElement("span",{className:"c-grey-333 mr20"},"\u672A\u5F00\u59CB ",at.createElement("span",null,Ot==null?void 0:Ot.unanswer_users)),at.createElement("span",{className:"c-grey-333 mr20"},"\u8003\u8BD5\u4E2D ",at.createElement("span",{style:{color:"rgb(90, 184, 145)"}},Ot==null?void 0:Ot.answering_users)),at.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u4EA4\u5377 ",at.createElement("span",{style:{color:"#FC2D6B"}},Ot==null?void 0:Ot.answer_users)),at.createElement("span",{className:"c-grey-333"},"\u5DF2\u4EA4\u5377/\u672A\u7B54 ",at.createElement("span",{style:{color:"#FC2D6B"}},Ot==null?void 0:Ot.commit_with_no_answers_users))),(0,Qe.GJ)()&&!((xa=Ot==null?void 0:Ot.exercise_tips)!=null&&xa.includes("\u672A\u5F00\u59CB"))&&So&&qa.length>5&&at.createElement(Pi.default,{scroll:{y:240},pagination:!1,dataSource:qa,onRow:Yn=>({onClick:Fr=>{Fr.stopPropagation(),Fr.preventDefault()}}),onHeaderRow:(Yn,Fr)=>({onClick:io=>{io.stopPropagation(),io.preventDefault()}}),rowKey:"course_group_id",style:{marginTop:"10px"},onChange:(Yn,Fr,io)=>{io.field&&(Kn.order_by=io.field),io.order||(Kn.sort_direction="asc"),io.order==="ascend"&&(Kn.sort_direction="asc"),io.order==="descend"&&(Kn.sort_direction="desc"),io.order||(Kn.sort_direction="asc"),Pa()},columns:aa}),(0,Qe.GJ)()&&!((fo=Ot==null?void 0:Ot.exercise_tips)!=null&&fo.includes("\u672A\u5F00\u59CB"))&&So&&qa.length<6&&qa.length>0&&at.createElement(Pi.default,{rowKey:"course_group_id",pagination:!1,onRow:Yn=>({onClick:Fr=>{Fr.stopPropagation(),Fr.preventDefault()}}),onHeaderRow:(Yn,Fr)=>({onClick:io=>{io.stopPropagation(),io.preventDefault()}}),dataSource:qa,style:{marginTop:"10px"},onChange:(Yn,Fr,io)=>{io.field&&(Kn.order_by=io.field),io.order||(Kn.sort_direction="asc"),io.order==="ascend"&&(Kn.sort_direction="asc"),io.order==="descend"&&(Kn.sort_direction="desc"),io.order||(Kn.sort_direction="asc"),Pa()},columns:aa}),(Ot==null?void 0:Ot.total)!==void 0&&at.createElement("p",null,at.createElement("span",{className:"c-grey-333 mr15"},"\u96C6\u4E2D\u9605\u5377\u603B\u8FDB\u5EA6\uFF1A"),at.createElement("span",{className:"c-grey-333 mr20"},"\u603B\u8BC4\u6570",at.createElement("span",null,Ot==null?void 0:Ot.total)),at.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u8BC4\u9605 ",at.createElement("span",{style:{color:"#4EACFF"}},Ot==null?void 0:Ot.finish_total)),at.createElement("span",{className:"c-grey-333"},"\u5F85\u8BC4\u9605 ",at.createElement("span",{style:{color:"#FC2D6B"}},Ot==null?void 0:Ot.unfinished_total)))),at.createElement(Ut.Z,{closable:!0,successCb:()=>vo(cs.current)}))};var Jn=(0,Ie.connect)(({classroomList:Ot})=>({classroomList:Ot}))(Zn),si=he(68906),Tn=he(23770),mi=he(47598),nr=he(73782),Br=he(80205),rr=he(73601),Jt=he(68641),Fi=he(40389),Si=he(59301),Wi=Object.defineProperty,Nr=Object.defineProperties,br=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Jr=(Ot,di,Mn)=>di in Ot?Wi(Ot,di,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Ot[di]=Mn,An=(Ot,di)=>{for(var Mn in di||(di={}))hr.call(di,Mn)&&Jr(Ot,Mn,di[Mn]);if(Ir)for(var Mn of Ir(di))Ui.call(di,Mn)&&Jr(Ot,Mn,di[Mn]);return Ot},Co=(Ot,di)=>Nr(Ot,br(di)),Wn=(Ot,di)=>{var Mn={};for(var qn in Ot)hr.call(Ot,qn)&&di.indexOf(qn)<0&&(Mn[qn]=Ot[qn]);if(Ot!=null&&Ir)for(var qn of Ir(Ot))di.indexOf(qn)<0&&Ui.call(Ot,qn)&&(Mn[qn]=Ot[qn]);return Mn},Hr=(Ot,di,Mn)=>new Promise((qn,Ar)=>{var Sr=_i=>{try{qe(Mn.next(_i))}catch(uo){Ar(uo)}},Kn=_i=>{try{qe(Mn.throw(_i))}catch(uo){Ar(uo)}},qe=_i=>_i.done?qn(_i.value):Promise.resolve(_i.value).then(Sr,Kn);qe((Mn=Mn.apply(Ot,di)).next())});const ha=Ot=>{var di=Ot,{user:Mn,classroomList:qn,globalSetting:Ar,loading:Sr,dispatch:Kn,match:qe}=di,_i=Wn(di,["user","classroomList","globalSetting","loading","dispatch","match"]),uo,wr,Uo,Er,fr,ho,ro,Gr,_o,lr,$i,kr,oi,Ao,Jo,Fa,na;const ia=(0,Ie.useParams)(),[xa]=(0,Ie.useSearchParams)(),[fo,qa]=(0,pe.useState)(()=>Co(An({},ia),{limit:20})),bs=(0,Ie.useLocation)(),{detailExerciseList:So,detailTopBanner:Cn,detailLeftMenus:cs}=qn,[Ya,Ss]=(0,pe.useState)([]),[Lo,fa]=(0,pe.useState)(!1),[Pa,sa]=(0,pe.useState)([]),[vo,aa]=(0,pe.useState)(!1),[is,qr]=(0,pe.useState)(!1),[gr,zr]=(0,pe.useState)(!1),[Yn,Fr]=(0,pe.useState)(!1),[io,qo]=(0,pe.useState)("\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"),Xs=[{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F",type:"created_at",direction:"asc"},{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F",type:"created_at",direction:"desc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u5347\u5E8F",type:"time",direction:"asc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u964D\u5E8F",type:"time",direction:"desc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u5347\u5E8F",type:"exercise_name",direction:"asc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u964D\u5E8F",type:"exercise_name",direction:"desc"}];fo.type=xa.get("tabs")==="all"?"":xa.get("tabs")||"",fo.id=fo.coursesId,(0,pe.useEffect)(()=>{var Xr,pa,hl;if((Xr=Mn==null?void 0:Mn.userInfo)!=null&&Xr.login){if((0,Qe.GJ)()){const tl=Ee.cX.getItem(`${(pa=Mn==null?void 0:Mn.userInfo)==null?void 0:pa.login}Teacher`,"Exercise");tl&&(fo.sort_by=tl==null?void 0:tl.type,fo.sort_direction=tl==null?void 0:tl.direction,qo(tl==null?void 0:tl.name))}Kn({type:"classroomList/getClassroomExercisesList",payload:An(An({},fo),ia)})}else(hl=Mn==null?void 0:Mn.userInfo)!=null&&hl.username&&Kn({type:"classroomList/getClassroomExercisesList",payload:An(An({},fo),ia)});fa(!1)},[(uo=Mn==null?void 0:Mn.userInfo)==null?void 0:uo.login,bs.pathname]),(0,pe.useEffect)(()=>{qn.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&Kn({type:"classroomList/getClassroomExercisesList",payload:An(An({},fo),ia)})},[qn.actionTabs.key]),(0,pe.useEffect)(()=>{qn.actionTabs.key==="\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"&&(aa(!0),qr(Cn==null?void 0:Cn.show_unstart_exercise),zr(Cn==null?void 0:Cn.forbid_end_exercise))},[qn.actionTabs.key]),(0,pe.useEffect)(()=>{Ss([])},[So]);const Kl=(Xr,pa)=>{Ss([]),fo.page=Xr,fo.limit=pa,Kn({type:"classroomList/getClassroomExercisesList",payload:An(An({},fo),ia)})},Zi=Xr=>{fo.type=Xr.key==="all"?"":Xr.key,fo.page=1,Ie.history.replace(`${bs.pathname}?tabs=${Xr.key}`),Fr(!1),Kn({type:"classroomList/getClassroomExercisesList",payload:An(An({},fo),ia)})};(0,pe.useEffect)(()=>{xa.get("tabs")==="all"&&(fo.type="",fo.page=1)},[xa.get("tabs")]),(0,pe.useEffect)(()=>{(0,Qe.Rm)()&&Kn({type:"classroomList/getAssistantPermissions",payload:{course_id:fo.coursesId}})},[(wr=Mn==null?void 0:Mn.userInfo)==null?void 0:wr.username]),(0,pe.useEffect)(()=>{const Xr=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),Ve.default.info({title:"\u63D0\u793A",centered:!0,width:600,content:Si.createElement("div",null,"\u5728\u7EBF\u8003\u8BD5\u7981\u6B62\u4F7F\u7528\u94FE\u63A5\u76F4\u63A5\u8BBF\u95EE\u7B54\u9898\u9875\u9762\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u9762\u4E24\u79CD\u6B63\u5E38\u65B9\u5F0F\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Si.createElement("br",null),"1\u3001\u5728",Si.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",Si.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",Si.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Si.createElement("br",null),"2\u3001\u5728",Si.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",Si.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",Si.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Si.createElement("br",null),Xr==="allowRouter"&&Si.createElement(Si.Fragment,null,"3\u3001",Si.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:"\u77E5\u9053\u4E86"}))},[]);const $a=[{name:"\u5168\u90E8",id:"all",total:(Uo=So.exercises_counts)==null?void 0:Uo.exercises_total_counts},{name:"\u672A\u5F00\u59CB",id:1,total:(Er=So.exercises_counts)==null?void 0:Er.unstart_counts},{name:"\u8003\u8BD5\u4E2D",id:2,total:(fr=So.exercises_counts)==null?void 0:fr.publish_counts},{name:"\u96C6\u4E2D\u9605\u5377",id:4,total:(ho=So.exercises_counts)==null?void 0:ho.appraise_exercise_count},{name:"\u5DF2\u622A\u6B62",id:3,total:(ro=So.exercises_counts)==null?void 0:ro.end_counts}],As=[{name:"\u6279\u91CF\u53D1\u5E03",icon:Si.createElement("i",{className:"iconfont icon-fabu5"})},{name:"\u6279\u91CF\u7ED3\u675F",icon:Si.createElement("i",{className:"iconfont icon-piliangjiezhi2"})},{name:"\u6279\u91CF\u5220\u9664",icon:Si.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:Si.createElement("i",{className:"iconfont icon-sheweigongkai2"})},{name:"\u52A0\u5165\u8BD5\u5377\u5E93",icon:Si.createElement("i",{className:"iconfont icon-piliangjiaru font14"})}].filter(Xr=>(0,Qe.GJ)()?!0:Xr.name!=="\u6279\u91CF\u5220\u9664").filter(Xr=>Cn.is_public?!0:Xr.name!=="\u8BBE\u4E3A\u516C\u5F00"),Rl=()=>Ve.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:Si.createElement(Si.Fragment,null,"EduCoder\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")}),zl="YYYY-MM-DD",Vl=$e()("2020-11-15",zl),xo=Xr=>{var pa;fo.sort_by=Xr.type,fo.sort_direction=Xr.direction,(0,Qe.GJ)()&&Ee.cX.setItem(`${(pa=Mn==null?void 0:Mn.userInfo)==null?void 0:pa.login}Teacher`,Xr,"Exercise"),fo.page=1,Kn({type:"classroomList/getClassroomExercisesList",payload:An({},fo)}),qo(Xr.name)},Vu=()=>Si.createElement(st.default,null,Si.createElement(st.default.Item,{key:1,onClick:()=>{var Xr,pa;if((0,Qe.Rm)()&&!((pa=(Xr=qn==null?void 0:qn.AssistantObject)==null?void 0:Xr.exercise)!=null&&pa.can_create)){We.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}Kn({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:fo}})}},"\u5FEB\u901F\u9009\u62E9\u8BD5\u5377"),Si.createElement(st.default.Item,{key:2,onClick:()=>{var Xr,pa;if((0,Qe.Rm)()&&!((pa=(Xr=qn==null?void 0:qn.AssistantObject)==null?void 0:Xr.exercise)!=null&&pa.can_create)){We.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}window.scrollTo(0,0),Ie.history.push(`/classrooms/${fo.coursesId}/exercise/add?catalogue=${(ia==null?void 0:ia.categoryId)||""}`)}},"\u521B\u5EFA\u65B0\u8BD5\u5377"),Si.createElement(st.default.Item,{key:3,onClick:()=>{var Xr,pa;if((0,Qe.Rm)()&&!((pa=(Xr=qn.AssistantObject)==null?void 0:Xr.practice)!=null&&pa.can_create)){We.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}Kn({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"exercise"}})}},"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9")),Ll=Xr=>Hr(void 0,null,function*(){var pa,hl,tl,fl,wl,Yu,uc,Uu;const Xu=Xr.name;if(((pa=Mn==null?void 0:Mn.userInfo)==null?void 0:pa.user_status)===2&&Xr.name==="\u6279\u91CF\u53D1\u5E03"){(0,ze.Rd)();return}const _u=[];if((hl=So.exercises)==null||hl.map(xs=>{if(Ya.includes(xs.id)&&xs.is_random){const ll=$e()(xs.created_at,zl);$e()(Vl).diff($e()(ll),"days")>0&&(xs!=null&&xs.is_random)&&_u.push(xs)}}),Ya==""){let xs="\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1";Xu==="\u52A0\u5165\u8BD5\u5377\u5E93"&&(xs="\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u8BD5\u5377\u5E93\u7684\u8BD5\u5377"),We.ZP.error(xs)}else if(_u.length)Rl();else{if(Xu==="\u6279\u91CF\u53D1\u5E03"){if((0,Qe.Rm)()&&!((fl=(tl=qn==null?void 0:qn.AssistantObject)==null?void 0:tl.exercise)!=null&&fl.can_publish)){We.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}let xs=!1;So.exercises.forEach(Fl=>{Ya.includes(Fl.id)&&Fl.total_num===0&&Fl.is_random&&(xs=!0)});let ll;if(ll=(Yu=(wl=So.exercises.filter(Fl=>Ya.includes(Fl==null?void 0:Fl.id)).filter(Fl=>(Fl==null?void 0:Fl.exercise_question_count)===0))==null?void 0:wl[0])==null?void 0:Yu.exercise_name,(ll==null?void 0:ll.length)>0){We.ZP.warning(`${ll}\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5`);return}if(xs){We.ZP.warning("\u968F\u673A\u8BD5\u5377\u8FD8\u672A\u5728\u8BE5\u8BFE\u5802\u751F\u6210\u8BD5\u5377\uFF0C\u8BF7\u70B9\u51FB\u7F16\u8F91\u53BB\u8BBE\u7F6E\u51FA\u5377\u6570\u91CF\u5427\u3002");return}let Cl=!1;if(So.exercises.forEach(Fl=>{Ya.includes(Fl.id)&&Fl.exercise_status!==1&&(Cl=!0)}),Cl){We.ZP.warning("\u8BD5\u5377\u5DF2\u53D1\u5E03\u8003\u8BD5\u4E0D\u53EF\u6279\u91CF\u53D1\u5E03\u3002");return}}if(Xu==="\u52A0\u5165\u8BD5\u5377\u5E93"){const xs=yield(0,te.ZP)(`/api/courses/${fo.id}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:[...Ya]}});if(((uc=xs==null?void 0:xs.cover_exercises)==null?void 0:uc.length)>0){sa(xs==null?void 0:xs.cover_exercises);return}}Kn({type:"exercise/setActionTabs",payload:{key:Xu,selectArrs:Ya,selectArrsAll:(Uu=So.exercises)==null?void 0:Uu.filter(xs=>Ya.includes(xs.id)),params:fo,type:1}})}});return Si.createElement("section",{className:"minH500"},Si.createElement(si.Z,{isLoading:Sr["classroomList/getClassroomExercisesList"],tabDataSource:$a,isAdmin:(0,Qe.GJ)(),dispatch:Kn,type:So==null?void 0:So.main_category_name,isExercise:!0,user:Mn,getDropdownMenu:Vu,onTabMenuClick:Zi,classroomList:qn,defaultSelectedKeys:[fo.type||"all"]}),Si.createElement(Tn.Z,{dataSource:So.exercises||[],isAdmin:(0,Qe.GJ)(),batchStatus:Yn,SortMenuName:io,setSortMenuName:qo,SortMenus:Xs,onSearch:Xr=>{fo.search=Xr.trim(),fo.page=1,Kn({type:"classroomList/getClassroomExercisesList",payload:An({},fo)})},isShowMode:!0,onModeChange:Xr=>{fo.is_normal=Xr,fo.page=1,Kn({type:"classroomList/getClassroomExercisesList",payload:An({},fo)})},onSort:xo,onBatch:Xr=>Fr(Xr)}),Si.createElement(it.Z,{loading:Sr["classroomList/getClassroomExercisesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},(Gr=So.exercises_counts)!=null&&Gr.exercises_all_counts?So.exercises.map(function(Xr,pa){return Si.createElement(Jn,{key:pa,v:Xr,k:pa,match:qe,batchStatus:Yn,selectArrs:Ya,setSelectArrs:Ss,dispatch:Kn,params:fo,user:Mn,manageAllGroup:So.manage_all_group})}):Si.createElement(ee.Z,null),Si.createElement("aside",{className:"tc mb50 mt30"},((_o=So.exercises_counts)==null?void 0:_o.exercises_all_counts)>0&&Si.createElement(be.Z,{showTotal:Xr=>{var pa;return`\u5171 ${(pa=So==null?void 0:So.exercises_counts)==null?void 0:pa.exercises_all_counts} \u6761`},showSizeChanger:!0,onChange:Kl,defaultCurrent:fo.page,current:fo.page||1,pageSize:fo.limit||20,total:So.exercises_counts&&So.exercises_counts.exercises_all_counts}))),Ya.length>0&&(0,Qe.GJ)()&&Si.createElement(yt.Z,{offsetBottom:0},Si.createElement(mi.Z,{buttonDataSource:As,onButtonClick:Ll,useBatchStatus:Fr,setSeleArr:Ss,catalogue:(($i=(lr=cs==null?void 0:cs.course_modules)==null?void 0:lr.find(Xr=>Xr.type==="exercise"))==null?void 0:$i.second_category)||[],addCatalogue:Xr=>{Xr.preventDefault(),Kn({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:fo,selectArrs:{category_id:So==null?void 0:So.main_category_id,type:"exercise"}}})},allSelect:Ya.length?Ya.length===((oi=(kr=So.exercises)==null?void 0:kr.filter(Xr=>!Xr.is_make_up_exercise))==null?void 0:oi.length):!1,setAllSelect:Xr=>{var pa;Xr.target.checked?Ss((pa=So==null?void 0:So.exercises)==null?void 0:pa.filter(hl=>!hl.is_make_up_exercise).map(hl=>hl.id)):Ss([])},selectArrs:Ya,onMenuClick:Xr=>Hr(void 0,[Xr],function*({key:pa}){if(Ya=="")return We.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,te.ZP)(`/api/courses/${fo.id}/exercises/move_to_category.json`,{method:"post",body:{exercise_ids:Ya,new_category_id:pa}})).status===0&&(We.ZP.success("\u64CD\u4F5C\u6210\u529F"),Kn({type:"classroomList/getClassroomExercisesList",payload:An({},ia)}))})})),Si.createElement(Hn.Z,null),Si.createElement(pn.Z,null),Si.createElement(Fe,null),Si.createElement(mt,null),Si.createElement(rr.Z,{onOk:()=>{Kn({type:"classroomList/getClassroomExercisesList",payload:An({},ia)})}}),Si.createElement(Jt.Z,{onOk:()=>{}}),Si.createElement(rn,{cb:()=>Ss([])}),Si.createElement(In,null),Si.createElement(Ut.Z,null),Si.createElement(Ve.default,{title:Si.createElement("span",null,Si.createElement(Br.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"),open:Pa.length>0,footer:!1,onCancel:()=>{sa([])}},Si.createElement("div",{style:{height:300,overflow:"auto"}},Si.createElement("div",null,"\u6709",Pa==null?void 0:Pa.length,"\u5F20\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),Pa==null?void 0:Pa.map(Xr=>Si.createElement("div",{style:{marginTop:25}},Si.createElement("div",null,"\u8BD5\u5377\uFF1A",Xr==null?void 0:Xr.origin_exercise_nam),Si.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",Si.createElement("a",{href:`/paperlibrary/see/${Xr==null?void 0:Xr.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},Xr==null?void 0:Xr.examination_bank_name))))),Si.createElement("div",{style:{textAlign:"end"}},Si.createElement(vt.ZP,{style:{height:30},onClick:()=>Hr(void 0,null,function*(){const Xr=yield(0,te.ZP)(`/api/courses/${fo.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...Ya],update:1}});(Xr==null?void 0:Xr.status)===0&&(We.ZP.info("\u8986\u76D6\u6210\u529F"),sa([]))})},"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"),Si.createElement(vt.ZP,{type:"primary",onClick:()=>Hr(void 0,null,function*(){const Xr=yield(0,te.ZP)(`/api/courses/${fo.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...Ya]}});(Xr==null?void 0:Xr.status)===0&&(We.ZP.info("\u5F62\u6210\u6210\u529F"),sa([]))}),style:{marginLeft:10,height:30}},"\u5F62\u6210\u65B0\u8BD5\u5377"))),Si.createElement(Ve.default,{title:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E",open:vo,centered:!0,onOk:()=>Hr(void 0,null,function*(){let Xr=yield(0,te.ZP)(`/api/courses/${fo.coursesId}/update_show_unstart_exercise`,{method:"put",body:{show_unstart_exercise:is,forbid_end_exercise:gr}});(Xr==null?void 0:Xr.status)===0&&(aa(!1),Kn({type:"classroomList/setActionTabs",payload:{key:""}}),Kn({type:"classroomList/getClassroomTopBanner",payload:{id:fo.coursesId}}),We.ZP.info("\u64CD\u4F5C\u6210\u529F"))}),onCancel:()=>{aa(!1),Kn({type:"classroomList/setActionTabs",payload:{key:""}})}},Si.createElement(Je.default,{checked:is,onChange:Xr=>{qr(Xr.target.checked)}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5DF2\u53D1\u5E03\u4F46\u672A\u5F00\u59CB\u7684\u8003\u8BD5",Si.createElement("span",{style:{color:"#666666"}},"\uFF08\u8003\u8BD5\u5F00\u59CB\u4E4B\u540E\u5B66\u751F\u624D\u80FD\u4F5C\u7B54\uFF09")),Si.createElement(Je.default,{className:"mt20",checked:gr,onChange:Xr=>{zr(Xr.target.checked)}},"\u7981\u6B62\u5B66\u751F\u67E5\u770B\u5DF2\u622A\u6B62\u7684\u8003\u8BD5")),Si.createElement(nr.Z,null),Si.createElement(Si.Fragment,null,Si.createElement(Fi.T$,{onCancel:()=>{Kn({type:"classroomList/setActionTabs",payload:Co(An({},qn==null?void 0:qn.actionTabs),{open:""})})},open:((Ao=qn==null?void 0:qn.actionTabs)==null?void 0:Ao.open)==="\u624B\u673A\u53F7\u7ED1\u5B9A"}),Si.createElement(Fi.$i,{onCancel:()=>{Kn({type:"classroomList/setActionTabs",payload:Co(An({},qn==null?void 0:qn.actionTabs),{open:""})})},onFinish:()=>{Kn({type:"classroomList/getClassroomExercisesList",payload:An(An({},fo),ia)})},open:((Jo=qn==null?void 0:qn.actionTabs)==null?void 0:Jo.open)==="\u8BD5\u5377\u5C01\u5B58",Data:Co(An({},qn==null?void 0:qn.actionTabs),{type:"exercise"})}),Si.createElement(Fi.K1,{onCancel:()=>{Kn({type:"classroomList/setActionTabs",payload:Co(An({},qn==null?void 0:qn.actionTabs),{open:""})})},onFinish:()=>{Kn({type:"classroomList/getClassroomExercisesList",payload:An(An({},fo),ia)})},open:((Fa=qn==null?void 0:qn.actionTabs)==null?void 0:Fa.open)==="\u89E3\u5C01",Data:Co(An({},qn==null?void 0:qn.actionTabs),{type:"exercise"})}),Si.createElement(Fi.O7,{onCancel:()=>{Kn({type:"classroomList/setActionTabs",payload:Co(An({},qn==null?void 0:qn.actionTabs),{open:""})})},onFinish:()=>{Kn({type:"classroomList/getClassroomExercisesList",payload:An(An({},fo),ia)})},open:((na=qn==null?void 0:qn.actionTabs)==null?void 0:na.open)==="\u63D0\u793A",Data:Co(An({},qn==null?void 0:qn.actionTabs),{type:"exercise"})})))};var yo=(0,Ie.connect)(({user:Ot,classroomList:di,loading:Mn,globalSetting:qn})=>({user:Ot,classroomList:di,globalSetting:qn,loading:Mn.effects}))(ha)},66539:function(gn,zt,he){"use strict";he.d(zt,{Q8:function(){return _t},d0:function(){return lt},w6:function(){return It}});var pe=he(59301),Ie=he(78550),Ve=he(57809),st=he(8591),We=he(43418),it=he(5112),be=he(95237),yt=he(43604),vt=he(6848),Je=he(24905),tt=he(3113),$e=he(61186),Qe=he.n($e),Ee=he(2119),ee=he(70635),te=he(89392),ue=he.n(te),ae=he(58130),de=he(57534),ve=he(42203),Pe=he(46898),Ae=he(18032),xe=he(30738),Le=he(59301),Te=Object.defineProperty,He=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Xe=(Ht,xt,Bt)=>xt in Ht?Te(Ht,xt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):Ht[xt]=Bt,Ft=(Ht,xt)=>{for(var Bt in xt||(xt={}))Ze.call(xt,Bt)&&Xe(Ht,Bt,xt[Bt]);if(Ke)for(var Bt of Ke(xt))Mt.call(xt,Bt)&&Xe(Ht,Bt,xt[Bt]);return Ht},Ct=(Ht,xt)=>He(Ht,ze(xt)),Nt=(Ht,xt,Bt)=>new Promise((rn,Hn)=>{var pn=Un=>{try{Lt(Bt.next(Un))}catch(Gn){Hn(Gn)}},_n=Un=>{try{Lt(Bt.throw(Un))}catch(Gn){Hn(Gn)}},Lt=Un=>Un.done?rn(Un.value):Promise.resolve(Un.value).then(pn,_n);Lt((Bt=Bt.apply(Ht,xt)).next())});function It(Ht,xt){const Bt=[];for(let rn=Ht;rn<xt;rn++)Bt.push(rn);return Bt}const _t=(Ht,xt,Bt)=>{const rn=Ht<Qe()().startOf("day"),Hn=Ht>Qe()(xt).endOf("day"),pn=Ht<Qe()(Bt).startOf("day");return xt?Bt?Qe()()<=Qe()(Bt)?pn||Hn:rn||Hn:Ht&&rn||Hn:Bt&&Qe()()<=Qe()(Bt)?pn:rn},lt=(Ht,xt)=>{const Bt=parseInt(Qe()(Ht).format("HH")),rn=parseInt(Qe()().format("HH")),Hn=parseInt(Qe()().format("mm"));if(!Ht)return{disabledHours:()=>It(0,rn),disabledMinutes:()=>It(0,Hn)};if(xt){const pn=parseInt(Qe()(xt).format("HH")),_n=parseInt(Qe()(xt).format("mm"));return Qe()(Ht).isSame(Qe()(xt),"day")?{disabledHours:()=>It(0,pn),disabledMinutes:()=>Bt<=pn?It(0,_n):[]}:void 0}if(Qe()(Ht).isSame(Qe()(),"day"))return{disabledHours:()=>It(0,rn),disabledMinutes:()=>Qe()(Ht).isSame(Qe()(),"hour")&&Bt<=rn?It(0,Hn):[]}},{RangePicker:je}=Ie.default,{Option:Et}=Ve.default,ln=({shixunHomeworks:Ht,loading:xt,dispatch:Bt,classroomList:rn,user:Hn})=>{var pn,_n,Lt,Un,Gn,ui,Ln,Wt,Vt;const mt=(0,ve.useParams)(),{workSetting:Ye,workList:Zt,shixunWorkList:Gt,headerInfo:ft,changeData:nt}=Ht,[Oe,we]=(0,pe.useState)(!1),[ye,ke]=(0,pe.useState)(!1);let[Ge,Fe]=(0,pe.useState)([]),[pt,tn]=(0,pe.useState)([]),[en,wt]=(0,pe.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Pe.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});(0,pe.useEffect)(()=>()=>{Fe([])},[]),(0,pe.useEffect)(()=>{we(!(0,Ee.GJ)())},[(0,Ee.GJ)()]);const Xt=()=>{Bt({type:"shixunHomeworks/getWorkSetting",payload:Ft({},mt)})};(0,pe.useEffect)(()=>{if(!(Ye!=null&&Ye.course_id))return;Object.keys(en).map(function(Ci){en[Ci]=Ye[Ci]}),(!en.allow_late||!en.unified_late)&&(en.late_penalty=20,en.penalty_type=Pe.Q.Percent),en.unified_setting||(en.unified_late=!1,en.unified_anonymous_comment=!1,en.unified_anonymous_appeal=!1),Ge=JSON.parse(JSON.stringify(Ye.group_settings.map(Ci=>Ct(Ft({},Ci),{group_name:[Ci.group_name]})).filter(Ci=>Ci.publish_time!==null))),pt=JSON.parse(JSON.stringify(Ye.allow_late_settings.map(Ci=>Ct(Ft({},Ci),{group_name:[Ci.group_name]})).filter(Ci=>Ci.late_time!==null))),wt(Ft({},en));const Qn=(0,ae.QE)((Ge==null?void 0:Ge.length)>0?Ge:[]);Fe([...Qn]),(pt==null?void 0:pt.length)<=0?tn([{penalty_type:Pe.Q.Percent,late_penalty:20}]):tn([...pt])},[Ye]);const Pn=()=>{var Qn,Ci;if(((Qn=Hn==null?void 0:Hn.userInfo)==null?void 0:Qn.user_status)===2){(0,Ae.Rd)();return}const er=JSON.parse(JSON.stringify(en));if(er.challenge_settings.filter(ri=>!ri.hide),er.categoryId=mt.categoryId,(Ci=er.challenge_settings)!=null&&Ci.every(ri=>!ri.checked)){st.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(Ge),!en.unified_setting)Ge=Ge==null?void 0:Ge.map(ri=>{var tr;if(!ri.publish_time||!ri.end_time)throw st.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(!ri.group_name)throw st.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ri.group_name=typeof(ri==null?void 0:ri.group_name)=="string"?[ri==null?void 0:ri.group_name]:ri==null?void 0:ri.group_name,ri.group_id=(tr=Ye.group_settings)==null?void 0:tr.filter(Di=>{var De;return(De=ri==null?void 0:ri.group_name)==null?void 0:De.includes(Di.group_name)}).map(Di=>Di.group_id||Di.id).toString().split(","),ri});else if(!en.publish_time||!en.end_time)throw st.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(er.group_settings=Ge,en.allow_late)if(en.unified_late){if(en.late_penalty===null||en.late_penalty===void 0||en.late_penalty<0||en.late_penalty>100)throw st.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(!en.late_time)throw st.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 pt=pt==null?void 0:pt.map(ri=>{var tr,Di;if(ri.late_penalty===null||ri.late_penalty===void 0||ri.late_penalty<0||ri.late_penalty>100)throw st.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(!ri.late_time)throw st.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(!ri.group_name)throw st.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ri.group_name=typeof(ri==null?void 0:ri.group_name)=="string"?[ri==null?void 0:ri.group_name]:ri==null?void 0:ri.group_name,ri.group_id=(Di=(tr=ri==null?void 0:ri.group_name)==null?void 0:tr.map(De=>{var Yr,yr;let Dr=(yr=(Yr=Ye.group_settings)==null?void 0:Yr.filter(lo=>(lo==null?void 0:lo.group_name)===De))==null?void 0:yr[0];return Dr==null?void 0:Dr.group_id}))==null?void 0:Di.toString().split(","),ri}),er.allow_late_settings=pt;In(er)},In=Qn=>{var Ci;if(Qn.total_score===null){st.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Qn!=null&&Qn.work_efficiency&&Qn.eff_score===null){st.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const er=Qn.challenge_settings.reduce((Di,De)=>Di+Number(De.challenge_score),0);if((er==null?void 0:er.toFixed(10))!==((Ci=Qn.total_score-Qn.eff_score)==null?void 0:Ci.toFixed(10))){st.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Qn.total_score}\u5206`);return}const ri={shixun_evaluation:Qn.shixun_evaluation,challenge_settings:Qn.challenge_settings};let tr=()=>{var Di;const De=()=>Nt(void 0,null,function*(){ke(!0),(yield(0,ee.ZP)(`/api/homework_commons/${mt.categoryId}/publish_setting.json`,{method:"post",body:Ft({},Qn)})).status===0&&(st.ZP.success("\u66F4\u65B0\u6210\u529F"),Xt(),Bt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Ft({},mt)})),ke(!1)});!(0,te.isEqual)(nt,ri)&&!((Di=ft==null?void 0:ft.homework_status)!=null&&Di.includes("\u672A\u53D1\u5E03"))?We.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:De}):De()};Ye!=null&&Ye.high_resources_consume&&!(Ye!=null&&Ye.high_resources_consume_permission)?Bt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:mt.coursesId,type:"shixun",type_id:mt.categoryId,name:Ye.homework_name,fn:()=>{tr()}}}):tr()},$n=(Qn,Ci,er="group_id")=>{var ri;return Ci?Ci.find(tr=>tr[er]===Qn):(ri=Ye==null?void 0:Ye.group_settings)==null?void 0:ri.find(tr=>tr.group_id[0]===Qn)},Pi=(Ye==null?void 0:Ye.allow_late)||(Ye==null?void 0:Ye.anonymous_comment),wn=Qn=>{var Ci,er;const ri=$n(Qn,Ye==null?void 0:Ye.allow_late_settings,"id"),tr=$n(Qn,Ye==null?void 0:Ye.anonymous_comment_settings),Di=$n(Qn);return(Ye==null?void 0:Ye.allow_late)&&ri&&Qe()(ri==null?void 0:ri.late_time)<=Qe()()||(Ye==null?void 0:Ye.anonymous_comment)&&tr&&(tr==null?void 0:tr.evaluation_start)!==null||((er=(Qe()(Di==null?void 0:Di.end_time)<=Qe()()&&((Ci=Ye==null?void 0:Ye.allow_late_settings)==null?void 0:Ci.filter(De=>De.group_id.includes(Qn))))[0])==null?void 0:er.late_time)!=null},Ai=(0,pe.useMemo)(()=>(Ye==null?void 0:Ye.allow_late)||(Ye==null?void 0:Ye.all_group_late),[Ye,ft]),Vi=Ye==null?void 0:Ye.anonymous_comment,ur=Qn=>{if(!Qn)return!1;const Ci=$n(Qn,Ye==null?void 0:Ye.anonymous_comment_settings);return(Ye==null?void 0:Ye.anonymous_comment)&&Ci&&(Ci==null?void 0:Ci.evaluation_start)!==null},sr=(Qn,Ci)=>{var er,ri,tr;Bt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Qn,index:Ci,rangePickerDisabled:Oe||(Qe()()<=Qe()((ri=$n((er=Qn==null?void 0:Qn.group_id)==null?void 0:er[0]))==null?void 0:ri.publish_time)?!1:[!0,wn((tr=Qn==null?void 0:Qn.group_id)==null?void 0:tr[0])]),disabledDate:Ye==null?void 0:Ye.course_end_date}})};return Le.createElement("section",{className:de.Z.form},Le.createElement("div",{className:de.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Le.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")),Le.createElement("div",null,Le.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Le.createElement(it.ZP.Group,{disabled:Oe||!((pn=ft==null?void 0:ft.homework_status)!=null&&pn.includes("\u672A\u53D1\u5E03"))||(0,Ee.Rm)()&&!((_n=rn.AssistantObject.practice)!=null&&_n.can_publish),value:en.unified_setting,onChange:Qn=>{var Ci;if(!((Ci=ft==null?void 0:ft.homework_status)!=null&&Ci.includes("\u672A\u53D1\u5E03"))){st.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(en.unified_setting=!en.unified_setting,en.unified_setting||(en.unified_late=!1,tn([{late_penalty:5}])),wt(Object.assign({},en)),en.unified_setting===!1&&Ge==""){Fe(Ge.concat({}));return}en.unified_setting&&(Fe([]),tn([{late_penalty:5}]))}},Le.createElement(it.ZP,{value:!0,disabled:Oe||!(Ye!=null&&Ye.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Le.createElement(it.ZP,{disabled:Oe||!((Lt=Ye==null?void 0:Ye.group_settings)!=null&&Lt.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Un=Ye==null?void 0:Ye.group_settings)==null?void 0:Un.length)===0&&Le.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")),en.unified_setting&&Le.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Le.createElement(be.Z,{align:"middle"},Le.createElement(yt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Le.createElement(yt.Z,{className:"ml10"},Le.createElement(Ie.default,{size:"large",disabled:Oe||!((Gn=ft==null?void 0:ft.homework_status)!=null&&Gn.includes("\u672A\u53D1\u5E03")||(ui=ft==null?void 0:ft.homework_status)!=null&&ui.includes("\u672A\u5F00\u59CB"))||(0,Ee.Rm)()&&!((Ln=rn.AssistantObject.practice)!=null&&Ln.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:Qn=>_t(Qn,Ye==null?void 0:Ye.course_end_date),disabledTime:Qn=>lt(Qn),value:en.publish_time?Qe()(en.publish_time):"",onChange:(Qn,Ci)=>{en.publish_time=Ci,(en.end_time==""||!en.end_time)&&en.unified_setting&&(en.end_time=Qe()(Qn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),wt(Object.assign({},en))}}))),Le.createElement(be.Z,{align:"middle",className:"pl30"},Le.createElement(yt.Z,null,"\u622A\u6B62\u65F6\u95F4"),Le.createElement(yt.Z,{className:"ml10"},Le.createElement(Ie.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Qe()((0,ae.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Ye==null?void 0:Ye.allow_late)&&(Ye==null?void 0:Ye.homework_status.includes("\u5DF2\u622A\u6B62"))||Oe||(Ye==null?void 0:Ye.allow_late)&&Qe()()>=Qe()(Ye==null?void 0:Ye.end_time)||(0,Ee.Rm)()&&!((Wt=rn.AssistantObject.practice)!=null&&Wt.can_publish),disabledDate:Qn=>_t(Qn,Ye==null?void 0:Ye.course_end_date,en.publish_time),disabledTime:Qn=>lt(Qn,en.publish_time),value:en.end_time?Qe()(en.end_time):"",onChange:(Qn,Ci)=>{en.end_time=Ci,wt(Object.assign({},en))}})))),!en.unified_setting&&(Ge==null?void 0:Ge.length)>0&&Le.createElement(be.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},Ge&&Ge.map(function(Qn,Ci){var er,ri,tr,Di,De,Yr,yr;return Le.createElement(yt.Z,{span:24,key:Ci},Le.createElement(be.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ci==(Ge==null?void 0:Ge.length)-1?"0px":"10px"}},Le.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Ci+1),Le.createElement(Ve.default,{disabled:Oe||((er=ft==null?void 0:ft.homework_status)!=null&&er.includes("\u672A\u53D1\u5E03")&&Qn.id||Qe()()<Qe()(Qn==null?void 0:Qn.publish_time)?!1:!!(Qn!=null&&Qn.publish_time))||(0,Ee.Rm)()&&!((ri=rn.AssistantObject.practice)!=null&&ri.can_publish),mode:"multiple",className:de.Z.multiple_select,style:{width:"250px"},value:Qn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Dr=>{var lo;if((0,Ee.Rm)()&&!((lo=rn.AssistantObject.practice)!=null&&lo.can_publish)){st.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}Ge[Ci].group_name=Dr,Ge[Ci].group_id=Qn.group_id;const Wo=(0,te.flattenDeep)(Ge.map(ki=>ki.group_name)),No=pt.map(ki=>{let an=(ki==null?void 0:ki.group_name)||[];return Ct(Ft({},ki),{group_name:(0,te.remove)(an,nn=>Wo.includes(nn))})});tn(No),Fe(Ge.slice())},maxTagCount:4,maxTagPlaceholder:Dr=>Le.createElement("div",{style:{cursor:"pointer"},onClick:()=>sr(Qn,Ci)},"+",Dr==null?void 0:Dr.length)},Ye.group_settings&&Ye.group_settings.map(function(Dr){if(!Ge.map(Wo=>Wo.group_name).flat().includes(Dr.group_name))return Le.createElement(Et,{value:Dr.group_name,key:Dr.id},Dr.group_name)})),Le.createElement("div",{className:"ml20"},Le.createElement(je,{size:"large",ranges:{\u6B64\u523B:[Qn.publish_time?Qe()(Qn.publish_time):Qe()(),Qe()()]},allowClear:!1,disabled:Oe||(Qe()()<=Qe()((Di=$n((tr=Qn==null?void 0:Qn.group_id)==null?void 0:tr[0]))==null?void 0:Di.publish_time)?!1:[!0,wn((De=Qn==null?void 0:Qn.group_id)==null?void 0:De[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:Dr=>_t(Dr,Ye==null?void 0:Ye.course_end_date),disabledTime:Dr=>lt(Dr),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Qe()((0,ae.U6)(),"HH:mm"),Qe()((0,ae.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Qn.publish_time&&[Qe()(Qn.publish_time),Qn.end_time?Qe()(Qn.end_time):void 0],onChange:(Dr,lo)=>{var Wo;if((0,Ee.Rm)()&&!((Wo=rn.AssistantObject.practice)!=null&&Wo.can_publish)){st.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}Ge[Ci].publish_time=lo[0],!Qn.end_time&&lo[0]?Ge[Ci].end_time=Qe()(lo[0]).add(7,"days"):Ge[Ci].end_time=lo[1],Fe([...Ge])},onCalendarChange:(Dr,lo,Wo)=>{if(lo!=null&&lo[0]&&!lo[1]){const No=Qe()(lo[0]).add(7,"days");Ge[Ci].publish_time=lo[0],Ge[Ci].end_time=No,Fe([...Ge])}}})),!Oe&&Le.createElement("div",{style:{display:"flex",width:"50px"}},((Yr=Qn==null?void 0:Qn.group_id)==null?void 0:Yr.length)>1&&Le.createElement(vt.Z,{title:"\u89C4\u5219\u62C6\u5206"},Le.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>sr(Qn,Ci)})),Ge.length<((yr=Ye==null?void 0:Ye.group_settings)==null?void 0:yr.length)&&Le.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Dr;if((0,Ee.Rm)()&&!((Dr=rn.AssistantObject.practice)!=null&&Dr.can_publish)){st.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}Fe(Ge.concat({}))}}),((Qn==null?void 0:Qn.publish_time)&&Qe()()<Qe()(Qn==null?void 0:Qn.publish_time)||!(Qn!=null&&Qn.publish_time))&&Ci!=0&&Le.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Dr=(0,te.cloneDeep)(pt);Dr.forEach((lo,Wo)=>{lo.group_name&&(lo.group_name=lo.group_name.filter(No=>{var ki;return!((ki=Ge[Ci].group_name)!=null&&ki.includes(No))}))}),Ge=Ge.filter((lo,Wo)=>Ci!==Wo),tn(Dr),Fe(Ge.slice()),setTimeout(()=>Fe(Ge.slice()),10)}}))))}))),Le.createElement(be.Z,null,Le.createElement(yt.Z,null,Le.createElement("div",{className:de.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Le.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"))),Le.createElement(yt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Le.createElement(Je.default,{checked:en.allow_late,disabled:Oe||Ai,onChange:Qn=>{var Ci;if((0,Ee.Rm)()&&!((Ci=rn.AssistantObject.practice)!=null&&Ci.can_late)){st.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}Qn.target.checked&&We.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Le.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Le.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"),Le.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Le.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"))}),en.allow_late=!en.allow_late,pt==""&&tn([{late_penalty:5}]),wt(Object.assign({},en))}},Le.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(en==null?void 0:en.allow_late)&&Le.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Le.createElement("div",{style:{display:"flex"}},Le.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Le.createElement(it.ZP.Group,{style:{marginLeft:"20px"},disabled:Oe||(Ye==null?void 0:Ye.anonymous_comment)||(Ye==null?void 0:Ye.allow_late),value:en.unified_late,onChange:Qn=>{var Ci;if((0,Ee.Rm)()&&!((Ci=rn.AssistantObject.practice)!=null&&Ci.can_late)){st.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}en.unified_late=Qn.target.value,pt==""&&!Qn.target.value&&tn([{penalty_type:Pe.Q.Percent,late_penalty:20}]),wt(Ft({},en))}},(en==null?void 0:en.unified_setting)&&Le.createElement(it.ZP,{value:!0,disabled:!(Ye!=null&&Ye.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((Vt=Ye==null?void 0:Ye.group_settings)==null?void 0:Vt.length)>0&&Le.createElement(it.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),en!=null&&en.unified_late?Le.createElement(Le.Fragment,null,Le.createElement(be.Z,{align:"middle",style:{marginTop:"10px"}},Le.createElement(yt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Le.createElement(yt.Z,{className:"ml20"},Le.createElement(Pe.Z,{disabled:Oe||Vi,value:{type:en.penalty_type,inputValue:en.late_penalty},onChange:Qn=>{var Ci;if((0,Ee.Rm)()&&!((Ci=rn.AssistantObject.practice)!=null&&Ci.can_late)){st.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}wt(Ct(Ft({},en),{late_penalty:Qn.inputValue,penalty_type:Qn.type}))}})),Le.createElement(yt.Z,{flex:"1",className:"ml5"},Le.createElement("span",{className:"c-grey-c ml10"},en.penalty_type===Pe.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Le.createElement(be.Z,{align:"middle",style:{marginTop:"15px"}},Le.createElement(yt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Le.createElement(yt.Z,{className:"ml20"},Le.createElement(Ie.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Qe()((0,ae.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Oe||Vi,value:en.late_time?Qe()(en.late_time):"",disabledDate:Qn=>_t(Qn,Ye==null?void 0:Ye.course_end_date),onChange:(Qn,Ci)=>{var er;if((0,Ee.Rm)()&&!((er=rn.AssistantObject.practice)!=null&&er.can_late)){st.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}en.late_time=Ci,wt(Object.assign({},en))}})))):pt.map(function(Qn,Ci){var er;return Le.createElement(yt.Z,{span:24,key:Ci},Le.createElement(be.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Le.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Ci+1),Le.createElement(Ve.default,{disabled:Oe||!((er=ft==null?void 0:ft.homework_status)!=null&&er.includes("\u672A\u53D1\u5E03"))&&Qn.id||(Ye==null?void 0:Ye.anonymous_comment),mode:"multiple",className:de.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Qn.group_name=="string"?[Qn.group_name]:Qn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:ri=>{var tr;if((0,Ee.Rm)()&&!((tr=rn.AssistantObject.practice)!=null&&tr.can_late)){st.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt[Ci].group_name=ri,pt[Ci].group_id=Qn.group_id,tn(pt.slice())}},Ye.group_settings&&Ye.group_settings.map(function(ri){const tr=pt.map(De=>De.group_name).flat(),Di=Ge.map(De=>De.group_name).flat();if(en!=null&&en.unified_setting){if(!tr.includes(ri.group_name))return Le.createElement(Et,{value:ri.group_name,key:ri.id},ri.group_name)}else if(Di.includes(ri.group_name)&&!tr.includes(ri.group_name))return Le.createElement(Et,{value:ri.group_name,key:ri.id},ri.group_name)})),Le.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Le.createElement(Pe.Z,{disabled:Oe||ur(Qn.id),value:{type:Qn.penalty_type,inputValue:Qn.late_penalty},onChange:ri=>{var tr;if((0,Ee.Rm)()&&!((tr=rn.AssistantObject.practice)!=null&&tr.can_late)){st.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt[Ci].late_penalty=ri.inputValue,pt[Ci].penalty_type=ri.type,tn([...pt])}}),Le.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Le.createElement(Ie.default,{size:"large",disabled:Oe||ur(Qn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Qe()((0,ae.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:ri=>_t(ri,Ye==null?void 0:Ye.course_end_date),format:"YYYY-MM-DD HH:mm",value:Qn!=null&&Qn.late_time?Qe()(Qn.late_time):void 0,onChange:(ri,tr)=>{var Di;if((0,Ee.Rm)()&&!((Di=rn.AssistantObject.practice)!=null&&Di.can_late)){st.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt[Ci].late_time=tr,tn([...pt])}}),!Oe&&Le.createElement("div",{style:{display:"flex",width:"50px"}},Le.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ri;if((0,Ee.Rm)()&&!((ri=rn.AssistantObject.practice)!=null&&ri.can_late)){st.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}tn(pt.concat({penalty_type:Pe.Q.Percent,late_penalty:20}))}}),Ci>0&&!Qn.id&&Le.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var ri;if((0,Ee.Rm)()&&!((ri=rn.AssistantObject.practice)!=null&&ri.can_late)){st.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pt=pt.filter((tr,Di)=>Ci!==Di),tn(pt.slice()),setTimeout(()=>tn(pt.slice()),10)}}))))})),!Oe&&Le.createElement(Le.Fragment,null,Le.createElement(tt.ZP,{type:"primary",size:"large",loading:ye,style:{width:"138px",marginTop:"30px"},onClick:()=>Pn()},"\u4FDD\u5B58")),Le.createElement(xe.Z,{onConfirm:(Qn,Ci)=>{Ge.splice(Qn,0,...Ci),Ge.splice(Qn+Ci.length,1);const er=(0,ae.QE)([...Ge]);Fe([...er])}}))};zt.ZP=(0,ve.connect)(({shixunHomeworks:Ht,classroomList:xt,loading:Bt,user:rn})=>({shixunHomeworks:Ht,classroomList:xt,loading:Bt.effects,user:rn}))(ln)},68641:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(24645),Ve=he(78241),st=he(43418),We=he(8591),it=he(2595),be=he(42203),yt=he(10148),vt=he(63593),Je=he(70635),tt=he(61186),$e=he.n(tt),Qe=he(58130),Ee=he(59301),ee=Object.defineProperty,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,de=(Le,Te,He)=>Te in Le?ee(Le,Te,{enumerable:!0,configurable:!0,writable:!0,value:He}):Le[Te]=He,ve=(Le,Te)=>{for(var He in Te||(Te={}))ue.call(Te,He)&&de(Le,He,Te[He]);if(te)for(var He of te(Te))ae.call(Te,He)&&de(Le,He,Te[He]);return Le},Pe=(Le,Te,He)=>new Promise((ze,Ke)=>{var Ze=Ft=>{try{Xe(He.next(Ft))}catch(Ct){Ke(Ct)}},Mt=Ft=>{try{Xe(He.throw(Ft))}catch(Ct){Ke(Ct)}},Xe=Ft=>Ft.done?ze(Ft.value):Promise.resolve(Ft.value).then(Ze,Mt);Xe((He=He.apply(Le,Te)).next())});const{Dragger:Ae}=Ie.default,xe=({classroomList:Le,dispatch:Te,onOk:He})=>{const ze=(0,be.useParams)(),[Ke]=Ve.default.useForm(),[Ze,Mt]=(0,pe.useState)(),[Xe,Ft]=(0,pe.useState)(!1),Ct={height:100,onRemove:()=>{Mt("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Nt=>Pe(void 0,null,function*(){return Mt(Nt),!1})};return(0,pe.useEffect)(()=>{Ke.setFieldsValue({publish_time:$e()($e()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:$e()($e()(new Date((0,Qe.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),Ee.createElement(st.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Le.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Xe},onOk:()=>Pe(void 0,null,function*(){Ke.submit()}),onCancel:()=>{Ke.resetFields(),Te({type:"classroomList/setActionTabs",payload:{}})}},Ee.createElement(Ve.default,{form:Ke,onFinish:Nt=>Pe(void 0,null,function*(){var It,_t,lt;if(!(Ze!=null&&Ze.size)){We.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Ft(!0);let je=new FormData;je.append("type",Le.actionTabs.type),je.append("file",Ze);let Et;window.location.href.indexOf("exercise")>-1?Et=`/api/exercises/${Le.actionTabs.id}/supplement_score.json`:Et=`/api/homework_commons/${Le.actionTabs.id}/supplement_score.json`;let ln=yield(0,Je.ZP)(Et,{method:"post",body:je},!0);Ft(!1),(ln==null?void 0:ln.status)===0&&(He(),Ke.resetFields(),Te({type:"classroomList/setActionTabs",payload:{}}),((_t=(It=ln==null?void 0:ln.data)==null?void 0:It.fail)==null?void 0:_t.length)>0&&st.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Ee.createElement(it.default,{pagination:!1,dataSource:(lt=ln==null?void 0:ln.data)==null?void 0:lt.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,Qe.FH)("",yt.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Le.actionTabs.type}`)}}))})},Ee.createElement(Ve.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Le.actionTabs.name),Ee.createElement(Ve.default.Item,{style:{marginBottom:0},label:Ee.createElement("div",null,Ee.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),Ee.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},Ee.createElement("div",null,Ee.createElement("a",{download:"\u6A21\u7248.xlsx",className:vt.Z.downloadbutton,href:yt.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Le.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),Ee.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),Ee.createElement(Ve.default.Item,{style:{marginBottom:0}},Ee.createElement(Ae,ve({},Ct),Ee.createElement("a",{className:vt.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),Ee.createElement("br",null),Ee.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"))))))};zt.Z=(0,be.connect)(({classroomList:Le})=>({classroomList:Le}))(xe)},73601:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(24645),Ve=he(78241),st=he(43418),We=he(8591),it=he(2595),be=he(92832),yt=he(95237),vt=he(43604),Je=he(88897),tt=he(78550),$e=he(42203),Qe=he(23469),Ee=he(10148),ee=he(63593),te=he(70635),ue=he(66539),ae=he(61186),de=he.n(ae),ve=he(58130),Pe=he(59301),Ae=Object.defineProperty,xe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,He=(Xe,Ft,Ct)=>Ft in Xe?Ae(Xe,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):Xe[Ft]=Ct,ze=(Xe,Ft)=>{for(var Ct in Ft||(Ft={}))Le.call(Ft,Ct)&&He(Xe,Ct,Ft[Ct]);if(xe)for(var Ct of xe(Ft))Te.call(Ft,Ct)&&He(Xe,Ct,Ft[Ct]);return Xe},Ke=(Xe,Ft,Ct)=>new Promise((Nt,It)=>{var _t=Et=>{try{je(Ct.next(Et))}catch(ln){It(ln)}},lt=Et=>{try{je(Ct.throw(Et))}catch(ln){It(ln)}},je=Et=>Et.done?Nt(Et.value):Promise.resolve(Et.value).then(_t,lt);je((Ct=Ct.apply(Xe,Ft)).next())});const{Dragger:Ze}=Ie.default,Mt=({classroomList:Xe,dispatch:Ft,onOk:Ct})=>{const Nt=(0,$e.useParams)(),[It]=Ve.default.useForm(),[_t,lt]=(0,pe.useState)(),[je,Et]=(0,pe.useState)(!1),ln={height:100,onRemove:()=>{lt("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:Ht=>Ke(void 0,null,function*(){return lt(Ht),!1})};return(0,pe.useEffect)(()=>{It.setFieldsValue({publish_time:de()(de()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:de()(de()(new Date((0,ve.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[Xe.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"]),Pe.createElement(st.default,{centered:!0,title:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",open:Xe.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:je},onOk:()=>Ke(void 0,null,function*(){It.submit()}),onCancel:()=>{It.resetFields(),Ft({type:"classroomList/setActionTabs",payload:{}})}},Pe.createElement(Ve.default,{form:It,colon:!1,onFinish:Ht=>Ke(void 0,null,function*(){var xt,Bt,rn;if(!(_t!=null&&_t.size)){We.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Et(!0);let Hn=new FormData;Hn.append("name",Ht.name),Hn.append("type",Xe.actionTabs.type),Hn.append("category_id",(Nt==null?void 0:Nt.categoryId)||null),Xe.actionTabs.type==="exercise"?(Hn.append("time",Ht.time||""),Hn.append("total_score",Ht.total_score)):Hn.append("description",Ht.description||""),Hn.append("publish_time",de()(Ht.publish_time).format("YYYY-MM-DD HH:mm")),Hn.append("end_time",de()(Ht.end_time).format("YYYY-MM-DD HH:mm")),Hn.append("file",_t);let pn=yield(0,te.ZP)(`/api/courses/${Nt.coursesId}/export_external_score_homework.json`,{method:"post",body:Hn},!0);Et(!1),(pn==null?void 0:pn.status)===0&&(It.resetFields(),Ft({type:"classroomList/setActionTabs",payload:{}}),Ct(),((Bt=(xt=pn==null?void 0:pn.data)==null?void 0:xt.fail)==null?void 0:Bt.length)>0&&st.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Pe.createElement(it.default,{pagination:!1,dataSource:(rn=pn==null?void 0:pn.data)==null?void 0:rn.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,ve.FH)("",Ee.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Xe.actionTabs.type}`)}}))})},Pe.createElement(Ve.default.Item,{label:Xe.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377\u540D\u79F0",labelCol:{span:3},name:"name",rules:[{required:!0,message:`\u8BF7\u8F93\u5165${Xe.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`}]},Pe.createElement(be.default,{showCount:!0,placeholder:`\u8BF7\u8F93\u5165${Xe.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`,maxLength:60})),Xe.actionTabs.type!=="exercise"&&Pe.createElement(Ve.default.Item,{label:"\u4F5C\u4E1A\u63CF\u8FF0",labelCol:{span:3},name:"description"},Pe.createElement(Qe.Z,{watch:!0})),Xe.actionTabs.type==="exercise"&&Pe.createElement(yt.Z,{style:{marginLeft:6}},Pe.createElement(vt.Z,{span:12},Pe.createElement(Ve.default.Item,{label:"\u8BD5\u5377\u603B\u5206",name:"total_score",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u603B\u5206"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"\u8BD5\u5377\u603B\u5206\u5FC5\u987B\u4E3A\u6B63\u6570"}]},Pe.createElement(be.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u603B\u5206",style:{width:256},addonAfter:"\u5206"}))),Pe.createElement(vt.Z,{span:12},Pe.createElement(Ve.default.Item,{label:"\u7B54\u9898\u65F6\u957F",labelCol:{span:6},name:"time"},Pe.createElement(Je.Z,{style:{width:"100%"},addonAfter:"\u5206\u949F",placeholder:"\u8BF7\u8F93\u5165\u7B54\u9898\u65F6\u957F"})))),Pe.createElement(yt.Z,{style:{marginLeft:6,marginBottom:12}},Pe.createElement(vt.Z,{span:12},Pe.createElement(Ve.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},Pe.createElement(tt.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:256},disabledDate:Ht=>(0,ue.Q8)(Ht),disabledTime:Ht=>(0,ue.d0)(Ht),allowClear:!1,format:"YYYY-MM-DD HH:mm"}))),Pe.createElement(vt.Z,{span:12},Pe.createElement(Ve.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},Pe.createElement(tt.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:Ht=>(0,ue.Q8)(Ht,"",It.getFieldValue("publish_time")),disabledTime:Ht=>(0,ue.d0)(Ht,It.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})))),Pe.createElement(Ve.default.Item,{style:{marginBottom:0},label:Pe.createElement("div",null,Pe.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),Pe.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},Pe.createElement("div",null,Pe.createElement("a",{download:"\u6A21\u7248.xlsx",className:ee.Z.downloadbutton,href:Ee.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Xe.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),Pe.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),Pe.createElement(Ve.default.Item,{style:{marginBottom:0}},Pe.createElement(Ze,ze({},ln),Pe.createElement("a",{className:ee.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),Pe.createElement("br",null),Pe.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"))))))};zt.Z=(0,$e.connect)(({classroomList:Xe})=>({classroomList:Xe}))(Mt)},47598:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return tt}});var pe=he(59301),Ie=he(20834),Ve=he(92832),st=he(24905),We=he(3113),it=he(38854),be={bottomControlContainer:"bottomControlContainer___woAeo",buttonWrap:"buttonWrap___iRw4K",moveCategory:"moveCategory___oiQqw"},yt=he(2119),vt=he(18290),tt=({buttonDataSource:$e,onButtonClick:Qe,useBatchStatus:Ee,allSelect:ee,setAllSelect:te,selectArrs:ue,onMenuClick:ae,setSeleArr:de,catalogue:ve,addCatalogue:Pe})=>{const[Ae,xe]=(0,pe.useState)(!1),[Le,Te]=(0,pe.useState)("");console.log("---",ve);const He=pe.createElement("div",{className:be.moveCategory,onMouseLeave:ze=>xe(!1)},pe.createElement(Ie.default,{onClick:ae,style:{maxHeight:300,width:240,overflow:"auto"}},pe.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},pe.createElement(Ve.default,{onChange:ze=>{Te(ze.target.value)}})),ve==null?void 0:ve.map(function(ze,Ke){var Ze;if(!(Le!==""&&ze.category_name.indexOf(Le)<0))return pe.createElement(pe.Fragment,null,pe.createElement(Ie.default.Item,{className:"multi-llipsis1e",key:ze.category_id,title:ze.category_name},ze.category_name),(Ze=ze==null?void 0:ze.third_category)==null?void 0:Ze.map(Mt=>pe.createElement(Ie.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:Mt.category_id,title:Mt.category_name},Mt.category_name)))}),Pe&&pe.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:Pe},"\u65B0\u5EFA\u5B50\u76EE\u5F55...")));return pe.createElement("div",{className:be.bottomControlContainer},pe.createElement("div",null,pe.createElement("div",null,pe.createElement(st.default,{checked:ee,onChange:te},"\u5168\u9009\u672C\u9875\uFF08",ue.length,"\uFF09")),(0,yt.GJ)()&&$e.map(ze=>pe.createElement("div",{key:ze.name},pe.createElement(We.ZP,{type:"primary",icon:ze.icon,className:be.buttonWrap,onClick:()=>Qe(ze)},ze.name))),(0,yt.GJ)()&&(Pe||ve)&&pe.createElement("div",null,pe.createElement(it.Z,{open:Ae,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>He,getPopupContainer:ze=>ze.parentNode},pe.createElement("span",{className:"ant-dropdown-link",onMouseEnter:ze=>xe(!0)},pe.createElement(We.ZP,{type:"primary",className:be.buttonWrap,icon:pe.createElement("i",{className:"iconfont icon-yidongmulu"})},pe.createElement("span",null,"\u79FB\u52A8\u5230\u76EE\u5F55 ",pe.createElement(vt.Z,null))))))),pe.createElement("div",null,pe.createElement(We.ZP,{type:"primary",ghost:!0,onClick:()=>{Ee(!1),de([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},30738:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return te}});var pe=he(59301),Ie=he(42203),Ve=he(78550),st=he(43418),We=he(92832),it=he(95237),be=he(43604),yt={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},vt=he(61186),Je=he.n(vt),tt=he(58130),$e=he(97267),Qe=he(59301);const{RangePicker:Ee}=Ve.default,ee=({dispatch:ue,classroomList:ae,onConfirm:de})=>{const[ve,Pe]=(0,pe.useState)([]),[Ae,xe]=(0,pe.useState)([]),[Le,Te]=(0,pe.useState)("");(0,pe.useEffect)(()=>{var Ke;if(ae.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let Ze=ae.actionTabs.data;console.log("data",Ze);let Mt=(Ke=Ze==null?void 0:Ze.group_name)==null?void 0:Ke.map((Xe,Ft)=>{var Ct;return{group_id:Ze==null?void 0:Ze.group_id[Ft],group_name:Ze==null?void 0:Ze.group_name[Ft],is_admin:Ze==null?void 0:Ze.is_admin,end_time:Ze==null?void 0:Ze.end_time,publish_time:Array.isArray(Ze==null?void 0:Ze.publish_time)?(Ct=Ze==null?void 0:Ze.publish_time)==null?void 0:Ct[0]:Ze==null?void 0:Ze.publish_time}});Mt&&(Pe([...Mt]),xe([...Mt]))}},[ae.actionTabs]);const He=()=>{ue({type:"classroomList/setActionTabs",payload:{}}),Te("")},ze=Ke=>{if(Ke){const Ze=Ae==null?void 0:Ae.filter(Mt=>{var Xe,Ft;return(Ft=(Xe=Mt==null?void 0:Mt.group_name)==null?void 0:Xe.toLowerCase())==null?void 0:Ft.includes(Ke==null?void 0:Ke.toLowerCase())});Pe(Ze)}else Pe(Ae)};return Qe.createElement(st.default,{width:980,title:Qe.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Qe.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Qe.createElement("span",{className:yt.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")),Qe.createElement(We.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:Le,onChange:Ke=>{Te(Ke.target.value.trim()),ze(Ke.target.value.trim())}})),centered:!0,maskClosable:!1,open:ae.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>He(),onOk:()=>{var Ke;de((Ke=ae.actionTabs)==null?void 0:Ke.index,Ae),He()}},Qe.createElement("div",{className:yt.modal_con},Qe.createElement(it.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ve==null?void 0:ve.length)>0?ve.map(function(Ke,Ze){var Mt,Xe;return Qe.createElement(be.Z,{span:24,key:Ze},Qe.createElement(it.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ze==(ve==null?void 0:ve.length)-1?"0px":"10px"}},Qe.createElement("div",{className:yt.multiple_select,title:Ke.group_name},Ke.group_name),Qe.createElement("div",{className:"ml20"},Qe.createElement(Ee,{size:"large",ranges:{\u6B64\u523B:[Ke.publish_time?Je()(Ke.publish_time):Je()(),Je()()]},allowClear:!1,disabled:(Mt=ae.actionTabs)==null?void 0:Mt.rangePickerDisabled,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Ft=>{var Ct;return(0,tt.Q8)(Ft,(Ct=ae.actionTabs)==null?void 0:Ct.disabledDate)},disabledTime:Ft=>(0,tt.d0)(Ft),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Je()((0,tt.U6)(),"HH:mm"),Je()((0,tt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Ke.publish_time&&[Je()(Ke.publish_time),Ke.end_time?Je()(Ke.end_time):void 0],onChange:(Ft,Ct)=>{ve[Ze].publish_time=Ct[0],ve[Ze].end_time=Ct[1],Pe([...ve]),Ae.forEach(Nt=>{Nt.group_id===Ke.group_id&&(Nt.publish_time=Ct[0],Nt.end_time=Ct[1])}),xe([...Ae])}})),(Xe=ae.actionTabs)!=null&&Xe.rangePickerDisabled?Qe.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Qe.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ve.splice(Ze,1),Pe([...ve]),Ae.forEach((Ft,Ct)=>{Ft.group_id===Ke.group_id&&Ae.splice(Ct,1)}),xe([...Ae])}})))}):Qe.createElement($e.Z,null))))};var te=(0,Ie.connect)(({classroomList:ue})=>({classroomList:ue}))(ee)},23770:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return ae}});var pe=he(59301),Ie=he(20834),Ve=he(24905),st=he(3113),We=he(38854),it=he(6848),be=he(57809),yt=he(92832),vt={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},Je=he(2119),tt=he(88551),$e=he(18290),Qe=he(26724),Ee=he.n(Qe),ee=he(42203),te=(de,ve,Pe)=>new Promise((Ae,xe)=>{var Le=ze=>{try{He(Pe.next(ze))}catch(Ke){xe(Ke)}},Te=ze=>{try{He(Pe.throw(ze))}catch(Ke){xe(Ke)}},He=ze=>ze.done?Ae(ze.value):Promise.resolve(ze.value).then(Le,Te);He((Pe=Pe.apply(de,ve)).next())}),ae=({isAdmin:de,dataSource:ve,batchStatus:Pe,SortMenuName:Ae,setSortMenuName:xe,detailCourseGroupsList:Le,onSearch:Te,onBoard:He,onSort:ze,isboard:Ke,dispatch:Ze,onBatch:Mt,SortMenus:Xe,isShowMode:Ft=!1,onModeChange:Ct})=>{const[Nt,It]=(0,pe.useState)(!1),[_t,lt]=(0,pe.useState)([]),[je,Et]=(0,pe.useState)(!0);let[ln,Ht]=(0,pe.useState)([]);const[xt,Bt]=(0,pe.useState)(1),[rn,Hn]=(0,pe.useState)(!1),pn=(0,ee.useParams)(),_n=ui=>{xe(ui.name),ze(ui)};(0,pe.useEffect)(()=>{Ke&&Lt()},[Ke]);const Lt=()=>te(void 0,null,function*(){var ui;if(je&&!rn){Hn(!0),Bt(xt+1);const Ln=yield Ze({type:"classroomList/getCourseGroupsList",payload:{page:xt,id:pn.coursesId,limit:20,nonenavigate:!0}});let Wt=[...(Ln==null?void 0:Ln.course_groups)||[]];((ui=Ln==null?void 0:Ln.course_groups)==null?void 0:ui.length)<20&&(Et(!1),Wt.push({id:0,name:"\u672A\u5206\u73ED"})),Hn(!1),Ht([...ln,...Wt])}}),Un=pe.createElement("section",{className:vt.dropmenu},pe.createElement("div",{style:{maxHeight:200,overflow:"auto"}},pe.createElement(Ee(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:ui=>{Lt()},hasMore:je,useWindow:!1},pe.createElement(Ie.default,{style:{width:240,zIndex:10}},(Le==null?void 0:Le.group_count)>0&&(ln==null?void 0:ln.filter(ui=>ui.edit_auth||ui.name==="\u672A\u5206\u73ED").map(function(ui,Ln){return pe.createElement(Ie.default.Item,{key:ui.id},pe.createElement(Ve.default,{checked:_t.includes(ui.id),value:ui.id,onChange:Wt=>{let Vt=_t.indexOf(ui.id);_t.indexOf(ui.id)>-1?lt(_t.filter(mt=>mt!==ui.id)):lt(_t.concat(ui.id))}},ui.name))}))))),pe.createElement("aside",{style:{background:"#fff"}},pe.createElement("div",null,pe.createElement(st.ZP,{type:"link",onClick:()=>{He(_t)}},"\u786E\u5B9A"),pe.createElement(st.ZP,{type:"link",onClick:()=>{lt([])}},"\u91CD\u7F6E")))),Gn=Ae==="\u9ED8\u8BA4\u6392\u5E8F";return pe.createElement("div",{className:vt.searchSortControllerContainer},!!(Xe!=null&&Xe.length)&&pe.createElement("div",null,pe.createElement(We.Z,{dropdownRender:()=>pe.createElement(Ie.default,{selectedKeys:[Ae]},Xe.map(ui=>pe.createElement(Ie.default.Item,{key:ui.name,onClick:()=>_n(ui)},ui.name)))},pe.createElement("div",null,pe.createElement("span",{className:`${vt.btn} ${Gn?vt.btnSort:""}`},pe.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),Ae)))),Gn&&pe.createElement(it.Z,{title:"\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F\u6392\u5217"},pe.createElement("span",{className:vt.tips},pe.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),Ft&&pe.createElement(be.default,{defaultValue:"",onChange:Ct,style:{width:160,marginLeft:"auto",marginRight:"20px"},options:[{value:"",label:"\u5168\u90E8\u8003\u8BD5\u6A21\u5F0F"},{value:!0,label:"\u6B63\u5F0F\u8003\u8BD5"},{value:!1,label:"\u6A21\u62DF\u8003\u8BD5"}]}),pe.createElement(yt.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onSearch:Te,style:{width:220,marginLeft:Ft?"":"auto"}}),(0,Je.eB)()&&Ke&&pe.createElement(We.Z,{dropdownRender:()=>Un,open:Nt,onOpenChange:ui=>{It(ui)}},pe.createElement("a",null,"\u5206\u73ED",Nt?pe.createElement(tt.Z,{style:{marginLeft:6}}):pe.createElement($e.Z,{style:{marginLeft:6}}))))}},68906:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return $e}});var pe=he(59301),Ie=he(95237),Ve=he(43604),st=he(20834),We=he(38854),it=he(8591),be=he(6848),yt={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},vt=he(42203),Je=he(2119),$e=({isLoading:Qe,addText:Ee,tabDataSource:ee,isAdmin:te,dispatch:ue,classroomList:ae,type:de,isExercise:ve,defaultSelectedKeys:Pe,onTabMenuClick:Ae,getDropdownMenu:xe,showControlButton:Le,buttonText:Te,buttonIcon:He="icon-tianjiadaohang",extraNode:ze,user:Ke,onButtonClick:Ze,isModelUser:Mt})=>{var Xe,Ft,Ct,Nt,It;const _t=(0,vt.useParams)();return pe.createElement("div",{className:yt.tabMenuContainer},pe.createElement(Ie.Z,null,pe.createElement(Ve.Z,{flex:"1"},pe.createElement(st.default,{onSelect:lt=>Qe?{}:Ae(lt),mode:"horizontal",selectedKeys:Pe},ee.map(lt=>pe.createElement(st.default.Item,{key:typeof lt.index=="number"?lt.index:lt.id},pe.createElement("span",{className:"c-grey-666"},lt.name),lt.total!==void 0&&te&&pe.createElement("span",{className:"c-grey-999 ml20"},lt.total||0))))),te&&ve&&pe.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{ue({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),te&&pe.createElement(Ve.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},ve&&pe.createElement(We.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>pe.createElement(st.default,null,pe.createElement(st.default.Item,{key:1,onClick:()=>{var lt;if((0,Je.Rm)()&&!((lt=ae.AssistantObject.exercise)!=null&<.can_download)){it.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}ue({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:de,exportType:"exercise",category_id:_t.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),pe.createElement(st.default.Item,{key:3,onClick:()=>{var lt;if((0,Je.Rm)()&&!((lt=ae.AssistantObject.exercise)!=null&<.can_download)){it.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}vt.history.push(`/classrooms/${_t==null?void 0:_t.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},pe.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},pe.createElement("span",{style:{color:"#666666",cursor:"pointer"}},pe.createElement("i",{className:"iconfont icon-xiazai6"})))),pe.createElement("div",{className:yt.control},pe.createElement("div",{className:yt.extra},ze),Le&&(Te=="\u6DFB\u52A0\u76F4\u64AD"?pe.createElement(We.Z,{menu:{items:(Ft=(Xe=[{label:pe.createElement("div",{onClick:()=>{Ze("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Mt&&{label:pe.createElement("div",{onClick:()=>{Ze("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Xe.filter(lt=>lt==null?void 0:lt.show))==null?void 0:Ft.map(lt=>({label:lt==null?void 0:lt.label,key:lt==null?void 0:lt.key}))}},pe.createElement("span",{className:yt.selectBtn},pe.createElement("span",null,pe.createElement("i",{className:`iconfont ${He}`})),pe.createElement("span",null,Te))):pe.createElement("span",{onClick:Ze,style:{cursor:"pointer"},className:yt.selectBtn},pe.createElement("span",null,pe.createElement("i",{className:`iconfont ${He}`})),pe.createElement("span",null,Te))),!!xe&&pe.createElement(We.Z,{disabled:((Ct=Ke==null?void 0:Ke.userInfo)==null?void 0:Ct.user_status)===2,className:"ml10",dropdownRender:xe},pe.createElement("span",{className:((Nt=Ke==null?void 0:Ke.userInfo)==null?void 0:Nt.user_status)===2?yt.selectBtn1:yt.selectBtn},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-tianjiadaohang"})),pe.createElement(be.Z,{title:((It=Ke==null?void 0:Ke.userInfo)==null?void 0:It.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},pe.createElement("span",null,Ee||"\u521B\u5EFA\u8BD5\u5377"))))))))}},40389:function(gn,zt,he){"use strict";he.d(zt,{$i:function(){return ze},K1:function(){return Ze},O7:function(){return Mt},T$:function(){return He}});var pe=he(94606),Ie=he(81349),Ve=he(79124),st=he(3129),We=he(35427),it=he(43418),be=he(78241),yt=he(8591),vt=he(92832),Je=he(95237),tt=he(43604),$e=he(59301),Qe=he(42203),Ee=he(28209),ee=he.n(Ee),te=he(58130),ue=he(59301),ae=Object.defineProperty,de=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Ae=(Xe,Ft,Ct)=>Ft in Xe?ae(Xe,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):Xe[Ft]=Ct,xe=(Xe,Ft)=>{for(var Ct in Ft||(Ft={}))ve.call(Ft,Ct)&&Ae(Xe,Ct,Ft[Ct]);if(de)for(var Ct of de(Ft))Pe.call(Ft,Ct)&&Ae(Xe,Ct,Ft[Ct]);return Xe},Le=(Xe,Ft,Ct)=>new Promise((Nt,It)=>{var _t=Et=>{try{je(Ct.next(Et))}catch(ln){It(ln)}},lt=Et=>{try{je(Ct.throw(Et))}catch(ln){It(ln)}},je=Et=>Et.done?Nt(Et.value):Promise.resolve(Et.value).then(_t,lt);je((Ct=Ct.apply(Xe,Ft)).next())});const Te=Xe=>{const Ft=ee().enc.Utf8.parse("c03f36595bd5610b");return ee().AES.encrypt(Xe||"",Ft,{iv:Ft,mode:ee().mode.CBC}).toString()},He=({onCancel:Xe,open:Ft})=>ue.createElement(it.default,{title:"\u63D0\u793A",width:619,centered:!0,open:Ft,destroyOnClose:!0,okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",onCancel:Xe,onOk:()=>{Qe.history.push("/account/secure")}},ue.createElement("span",null,"\u52A0\u5BC6\u5C01\u5B58\u4E4B\u540E\uFF0C\u5FD8\u8BB0\u5BC6\u7801\u65F6\u9700\u8981\u4F7F\u7528\u624B\u673A\u53F7\u8FDB\u884C\u5BC6\u7801\u91CD\u7F6E\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801")),ze=({onCancel:Xe,onFinish:Ft,open:Ct,Data:Nt})=>{const[It]=be.default.useForm(),[,_t,lt]=(0,We.U)((Nt==null?void 0:Nt.type)=="exercise"?Ve.yE:Ie.yE,{id:Nt==null?void 0:Nt.id});return(0,$e.useEffect)(()=>{Ct||It.resetFields()},[Ct]),ue.createElement(it.default,{title:"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58",width:619,centered:!0,open:Ct,destroyOnClose:!0,confirmLoading:_t,onCancel:Xe,onOk:()=>{It==null||It.submit()}},ue.createElement("div",{className:"pt16 pb16 pl12 pr12 rounded-4px flex item-center gap-8px",style:{background:"rgba(233, 127, 55, .06)",color:"#FA6400"}},ue.createElement("i",{className:"iconfont icon-tishi7"}),ue.createElement("span",null,"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58\u540E\uFF0C\u6240\u6709\u7528\u6237\u9700\u8981\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\u624D\u80FD\u8FDB\u884C\u67E5\u770B\u3001\u7F16\u8F91\u8BD5\u5377\u7B49\u64CD\u4F5C\uFF01")),ue.createElement(be.default,{form:It,className:"mt-20px",size:"large",colon:!1,onFinish:je=>Le(void 0,null,function*(){const Et=yield lt({id:Nt==null?void 0:Nt.id,is_encrypt:!0,pwd:Te(je.pwd),pwd_confirm:Te(je.pwd_confirm)});Et.status===0?(yt.ZP.success("\u52A0\u5BC6\u6210\u529F"),Ft==null||Ft(Et),Xe()):It.setFields([{name:"pwd",errors:[Et==null?void 0:Et.message]}])})},ue.createElement(be.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},ue.createElement(vt.default.Password,{placeholder:"\u8BF7\u8BBE\u7F6E\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})),ue.createElement(be.default.Item,{label:"\u786E\u8BA4\u5BC6\u7801",name:"pwd_confirm",rules:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"},({getFieldValue:je})=>({validator(Et,ln){return!ln||je("pwd")===ln?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},ue.createElement(vt.default.Password,{placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"}))))},Ke=({onCancel:Xe,open:Ft,Data:Ct})=>{var Nt;const[It]=be.default.useForm(),[_t]=be.default.useForm(),[lt,je]=(0,$e.useState)(!1),[Et,ln]=(0,$e.useState)(0),[,,Ht]=(0,We.U)(st.o1,{type:(Ct==null?void 0:Ct.type)=="exercise"?12:11}),[,xt,Bt]=(0,We.U)((Ct==null?void 0:Ct.type)=="exercise"?Ve.dp:Ie.dp,{id:Ct==null?void 0:Ct.id}),[,rn,Hn]=(0,We.U)((Ct==null?void 0:Ct.type)=="exercise"?Ve.Qc:Ie.Qc,{id:Ct==null?void 0:Ct.id});return(0,$e.useEffect)(()=>{var pn;Ct!=null&&Ct.phone&&It.setFieldsValue({login:(pn=Ct==null?void 0:Ct.phone)==null?void 0:pn.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")})},[Ct==null?void 0:Ct.phone]),(0,$e.useEffect)(()=>{Et>0&&setTimeout(()=>{ln(Et-1)},1e3)},[Et]),(0,$e.useEffect)(()=>{Ft||(It.resetFields(),_t.resetFields())},[Ft]),ue.createElement(ue.Fragment,null,ue.createElement(it.default,{title:"\u624B\u673A\u53F7\u7801\u6821\u9A8C",width:619,centered:!0,open:Ft,destroyOnClose:!0,confirmLoading:xt,onCancel:Xe,onOk:()=>{It==null||It.submit()}},ue.createElement("div",{style:{color:"#191919"}},"\u8BF7\u5148\u8FDB\u884C\u624B\u673A\u53F7\u7801\u6821\u9A8C"),ue.createElement(be.default,{className:"mt20",initialValues:{phone:(Nt=Ct==null?void 0:Ct.phone)==null?void 0:Nt.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},form:It,size:"large",colon:!1,onFinish:pn=>Le(void 0,null,function*(){console.log("allValue",pn);const _n=yield Bt({code:pn==null?void 0:pn.code,login:Ct==null?void 0:Ct.phone,id:Ct==null?void 0:Ct.id});_n.status===0?(yt.ZP.success("\u6821\u9A8C\u6210\u529F"),Xe==null||Xe(),je(!0)):It.setFields([{name:"code",errors:[_n==null?void 0:_n.message]}])})},ue.createElement(be.default.Item,{label:"\u624B\u673A\u53F7",name:"login",required:!0},ue.createElement(vt.default,{placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",disabled:!0})),ue.createElement(Je.Z,{wrap:!1,gutter:20},ue.createElement(tt.Z,{flex:1},ue.createElement(be.default.Item,{label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},ue.createElement(vt.default,{placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}))),ue.createElement(tt.Z,null,ue.createElement(pe.op,{openLoading:!0,size:"large",disabled:Et>0,style:{borderRadius:"4px"},onClick:()=>Le(void 0,null,function*(){const pn=yield Ht({type:(Ct==null?void 0:Ct.type)=="exercise"?12:11,login:Ct==null?void 0:Ct.phone,smscode:(0,te.M)(Ct==null?void 0:Ct.phone)});(pn==null?void 0:pn.status)===1&&(yt.ZP.success("\u53D1\u9001\u6210\u529F"),ln(60))})},Et===0?"\u83B7\u53D6\u9A8C\u8BC1\u7801":`(${Et})\u79D2\u53EF\u91CD\u65B0\u83B7\u53D6`))))),ue.createElement(it.default,{title:"\u91CD\u7F6E\u5C01\u5B58\u5BC6\u7801",width:619,centered:!0,open:lt,destroyOnClose:!0,confirmLoading:rn,onCancel:()=>{je(!1)},onOk:()=>{_t==null||_t.submit()}},ue.createElement(be.default,{className:"mt20",form:_t,size:"large",colon:!1,onFinish:pn=>Le(void 0,null,function*(){console.log("allValue",pn),(yield Hn(xe({id:Ct==null?void 0:Ct.id},pn))).status===0&&(yt.ZP.success("\u91CD\u7F6E\u6210\u529F"),je(!1))})},ue.createElement(be.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},ue.createElement(vt.default.Password,{placeholder:"\u8BF7\u8BBE\u7F6E\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})),ue.createElement(be.default.Item,{label:"\u786E\u8BA4\u5BC6\u7801",name:"pwd_confirm",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"},({getFieldValue:pn})=>({validator(_n,Lt){return!Lt||pn("pwd")===Lt?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},ue.createElement(vt.default.Password,{placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})))))},Ze=({onCancel:Xe,onFinish:Ft,open:Ct,Data:Nt})=>{const[It]=be.default.useForm(),[_t,lt]=(0,$e.useState)(!1),[,je,Et]=(0,We.U)((Nt==null?void 0:Nt.type)=="exercise"?Ve.yE:Ie.yE,{id:Nt==null?void 0:Nt.id});return(0,$e.useEffect)(()=>{Ct||It.resetFields()},[Ct]),ue.createElement(ue.Fragment,null,ue.createElement(it.default,{title:"\u8BD5\u5377\u89E3\u5C01",width:619,centered:!0,open:Ct,destroyOnClose:!0,confirmLoading:je,onCancel:Xe,onOk:()=>{It==null||It.submit()}},ue.createElement(Je.Z,{wrap:!1,align:"top",gutter:16},ue.createElement(tt.Z,{flex:1},ue.createElement(be.default,{form:It,size:"large",colon:!1,onFinish:ln=>Le(void 0,null,function*(){const Ht=yield Et({id:Nt==null?void 0:Nt.id,is_encrypt:!1,pwd:Te(ln.pwd)});(Ht==null?void 0:Ht.status)===0?(yt.ZP.success("\u89E3\u5C01\u6210\u529F"),Ft==null||Ft(Ht),Xe==null||Xe()):It.setFields([{name:"pwd",errors:[Ht==null?void 0:Ht.message]}])})},ue.createElement(be.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}]},ue.createElement(vt.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"})))),ue.createElement(tt.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{lt(!0),Xe==null||Xe()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F")))),ue.createElement(Ke,{onCancel:()=>{lt(!1)},open:_t,Data:xe({},Nt)}))},Mt=({onCancel:Xe,onFinish:Ft,open:Ct,Data:Nt})=>{const[It]=be.default.useForm(),[_t,lt]=(0,$e.useState)(!1),[,je,Et]=(0,We.U)((Nt==null?void 0:Nt.type)=="exercise"?Ve.yE:Ie.yE,{id:Nt==null?void 0:Nt.id});return(0,$e.useEffect)(()=>{Ct||It.resetFields()},[Ct]),ue.createElement(ue.Fragment,null,ue.createElement(it.default,{title:"\u63D0\u793A",width:619,centered:!0,open:Ct,destroyOnClose:!0,confirmLoading:je,onCancel:Xe,onOk:()=>{It==null||It.submit()}},ue.createElement("div",{className:"pt16 pb16 pl12 pr12 rounded-4px flex item-center gap-8px",style:{background:"rgba(233, 127, 55, .06)",color:"#FA6400"}},ue.createElement("i",{className:"iconfont icon-tishi7"}),ue.createElement("span",null,"\u8BD5\u5377\u5DF2\u8FDB\u884C\u52A0\u5BC6\u5C01\u5B58\uFF0C\u5982\u9700\u8FDB\u884C\u64CD\u4F5C\uFF0C\u8BF7\u5148\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\u8FDB\u884C\u89E3\u5C01\uFF01")),ue.createElement(be.default,{form:It,className:"mt-20px",size:"large",colon:!1,onFinish:ln=>Le(void 0,null,function*(){const Ht=yield Et({id:Nt==null?void 0:Nt.id,is_encrypt:!1,pwd:Te(ln.pwd)});(Ht==null?void 0:Ht.status)===0?(yt.ZP.success("\u89E3\u5C01\u6210\u529F"),Ft==null||Ft(Ht),Xe==null||Xe()):It.setFields([{name:"pwd",errors:[Ht==null?void 0:Ht.message]}])})},ue.createElement(Je.Z,{wrap:!1,gutter:20},ue.createElement(tt.Z,{flex:1},ue.createElement(be.default.Item,{label:"\u5C01\u5B58\u5BC6\u7801",name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},ue.createElement(vt.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}))),ue.createElement(tt.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{lt(!0),Xe==null||Xe()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F"))))),ue.createElement(Ke,{onCancel:()=>{lt(!1)},open:_t,Data:xe({},Nt)}))}},35427:function(gn,zt,he){"use strict";he.d(zt,{U:function(){return vt}});var pe=he(59301),Ie=Object.defineProperty,Ve=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,it=(Je,tt,$e)=>tt in Je?Ie(Je,tt,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Je[tt]=$e,be=(Je,tt)=>{for(var $e in tt||(tt={}))st.call(tt,$e)&&it(Je,$e,tt[$e]);if(Ve)for(var $e of Ve(tt))We.call(tt,$e)&&it(Je,$e,tt[$e]);return Je},yt=(Je,tt,$e)=>new Promise((Qe,Ee)=>{var ee=ae=>{try{ue($e.next(ae))}catch(de){Ee(de)}},te=ae=>{try{ue($e.throw(ae))}catch(de){Ee(de)}},ue=ae=>ae.done?Qe(ae.value):Promise.resolve(ae.value).then(ee,te);ue(($e=$e.apply(Je,tt)).next())});function vt(Je,tt){const[$e,Qe]=(0,pe.useState)(tt),[Ee,ee]=(0,pe.useState)(!1),[te,ue]=(0,pe.useState)();return[$e,Ee,(de,ve=!1)=>yt(this,null,function*(){const Pe=ve?tt:be(be({},$e),de);ee(!0),Qe(Pe);const Ae=yield Je(Pe);return ee(!1),ue(Ae),Ae}),te]}},31087:function(gn,zt,he){"use strict";he.d(zt,{AL:function(){return Pe},Iy:function(){return tt},Qv:function(){return Ee},ez:function(){return ve},jb:function(){return $e}});var pe=he(32834),Ie=he.n(pe),Ve=he(11690),st=he.n(Ve);let We=1;function it(He,ze){const Ke=He.match(/^(\s+)(?:```)/);if(Ke===null)return ze;const Ze=Ke[1];return ze.split(`
|
|
|
`).map(Mt=>{const Xe=Mt.match(/^\s+/);if(Xe===null)return Mt;const[Ft]=Xe;return Ft.length>=Ze.length?Mt.slice(Ze.length):Mt}).join(`
|
|
|
`)}let be=[],yt=["<ul>"];const vt=new(Ie()).Renderer,Je=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function tt(){be.length=0,yt=["<ul>"]}const $e={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Qe(He,ze,Ke,Ze){if(ze>=He.length||He[ze].level<=Ke)return ze;var Mt=He[ze];Ze.push("<li><a href='#"+We+Mt.anchor+"'>"+Mt.text+"</a>"),ze++;var Xe=[];return ze=Qe(He,ze,Mt.level,Xe),Xe.length>0&&(Ze.push("<ul>"),Xe.forEach(function(Ft){Ze.push(Ft)}),Ze.push("</ul>")),Ze.push("</li>"),ze=Qe(He,ze,Ke,Ze),ze}function Ee(){return Qe(be,0,0,yt),yt.push("</ul>"),yt.join("")}const ee={heading(He){const ze=Je.exec(He);if(We+=1,ze)return{type:"heading",raw:ze[0],depth:ze[1].length,text:ze[2]}},fences(He){const ze=this.rules.block.fences.exec(He);if(ze){const Ke=ze[0];let Ze=it(Ke,ze[3]||"");const Mt=ze[2]?ze[2].trim():ze[2];if(["latex","katex","math"].indexOf(Mt)>=0){const Xe=ae(),Ft=Ze;Ze=Xe,de[Xe]={type:"block",expression:Ft}}return{type:"code",raw:Ke,lang:Mt,text:Ze}}}},te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ue=0;const ae=()=>`__special_katext_id_${ue++}__`;let de={};function ve(){return de}function Pe(){ue=0,de={}}function Ae(He){return He=He.replace(te,(ze,Ke)=>{const Ze=ae();return de[Ze]={type:"inline",expression:Ke},Ze}),He}const xe=vt.listitem;vt.listitem=function(He){return xe(Ae(He))};const Le=vt.paragraph;vt.paragraph=function(He){return Le(Ae(He))};const Te=vt.tablecell;vt.tablecell=function(He,ze){return Te(Ae(He),ze)},vt.code=function(He,ze,Ke){const Ze=(ze||"").match(/\S*/)[0];return Ze?["latex","katex","math"].indexOf(Ze)>=0?`<p class='editormd-tex'>${He}</p>`:`<pre class="prettyprint linenums"><code class="language-${ze}">${Ke?He:(0,Ve.escape)(He,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Ke?He:(0,Ve.escape)(He,!0))+"</code></pre>"},vt.heading=function(He,ze,Ke){let Ze=this.options.headerPrefix+Ke.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return be.push({anchor:Ze,level:ze,text:He}),"<h"+ze+' id="'+We+Ze+'">'+He+"</h"+ze+">"},Ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ie().use({tokenizer:ee,renderer:vt}),zt.ZP=Ie()},18032:function(gn,zt,he){"use strict";he.d(zt,{rX:function(){return Pe},pW:function(){return Ae},gy:function(){return xe},xY:function(){return ve},O5:function(){return de},tJ:function(){return Ee},o1:function(){return ee},Rd:function(){return ae}});var pe=he(42203),Ie=he(43418),Ve=he(28103),st=he(8591),We=he(2119),it=he(58130),be=he(80205),yt=he(25510),vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACAD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YAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Je=he.p+"static/newqrcode.a8740efb.png",tt=he(32637),$e=he(59301),Qe=(Le,Te,He)=>new Promise((ze,Ke)=>{var Ze=Ft=>{try{Xe(He.next(Ft))}catch(Ct){Ke(Ct)}},Mt=Ft=>{try{Xe(He.throw(Ft))}catch(Ct){Ke(Ct)}},Xe=Ft=>Ft.done?ze(Ft.value):Promise.resolve(Ft.value).then(Ze,Mt);Xe((He=He.apply(Le,Te)).next())});const Ee=(Le,Te=!1)=>!!(ee(Le)&&te(Te)),ee=Le=>(0,We.bg)()?!0:(Le({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),te=(Le=!1)=>{var Te;const{user:He}=(0,pe.getDvaApp)()._store.getState();return(Te=He.userInfo)!=null&&Te.profile_completed?!0:(Ie.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,it.xg)("/account/profile/edit"),ue()}}),!1)},ue=()=>{Ie.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()}})},ae=()=>{Ie.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:$e.createElement("div",{style:{textAlign:"center"}},$e.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"),$e.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:tt}),$e.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},de=()=>{var Le;const{user:Te}=(0,pe.getDvaApp)()._store.getState();return(Le=Te.userInfo)!=null&&Le.professional_certification?!0:(Ie.default.confirm({title:"\u63D0\u793A",centered:!0,content:$e.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,it.xg)("/account/certification")}}),!1)},ve=()=>(0,We.V9)()?!0:(Ie.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:$e.createElement("div",{className:"tc",style:{marginLeft:-38}},$e.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),$e.createElement("img",{src:Je,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),Pe=(Le,Te)=>Le?!0:(Ie.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:$e.createElement("div",null,$e.createElement("p",null,Te||"\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"),$e.createElement("div",{style:{marginLeft:"110px"}},$e.createElement("img",{src:vt,width:200}),$e.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,it.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Ae=Le=>{Ie.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:$e.createElement("div",null,$e.createElement("div",null,$e.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"),$e.createElement(Ve.Z,null),$e.createElement("p",{style:{color:"#666666",fontSize:12}}," ",$e.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 ",$e.createElement("a",null,Le),"\u5929\u3002"),$e.createElement("p",{style:{color:"#666666",fontSize:12}}," ",$e.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")),$e.createElement("div",{style:{textAlign:"center",marginTop:30}},$e.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:yt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},xe=(Le,Te="")=>{const{shixunsDetail:{detail:He}}=(0,pe.getDvaApp)()._store.getState();if((He==null?void 0:He.public)===2||(He==null?void 0:He.public)===1||(He==null?void 0:He.shixun_status)===3){let ze="";return(He==null?void 0:He.public)===2&&(ze="\u5DF2\u516C\u5F00"),(He==null?void 0:He.public)===1&&(ze="\u5F85\u5BA1\u6838"),(He==null?void 0:He.shixun_status)===3&&(ze="\u5DF2\u5173\u95ED"),Ie.default.info({centered:!0,icon:$e.createElement(be.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:$e.createElement("div",{className:"tc",style:{marginLeft:-38}},$e.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},$e.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",ze,"\uFF0C",Te,"\u3002"),$e.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),$e.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:yt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(He==null?void 0:He.shixun_status)===2?(Ie.default.confirm({centered:!0,icon:$e.createElement(be.Z,null),title:"\u63D0\u793A",content:$e.createElement("div",null,$e.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Te,"\u3002"),$e.createElement("br",null),$e.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:()=>{Ie.default.confirm({width:440,centered:!0,icon:$e.createElement(be.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:()=>Qe(void 0,null,function*(){(yield Le({type:"shixunsDetail/cancelRelease",payload:{id:He==null?void 0:He.identifier}})).status!==401&&(st.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Le({type:"shixunsDetail/getShixunsDetail",payload:{id:He==null?void 0:He.identifier}}),Le({type:"practiceSetting/getCommonData",payload:{id:He==null?void 0:He.identifier}}))})})}}),!0):!1}},50371:function(gn,zt){"use strict";function he(){const pe=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ie=1;Ie<arguments.length;Ie++){const Ve=Ie<0||arguments.length<=Ie?void 0:arguments[Ie];Ve&&Object.keys(Ve).forEach(st=>{const We=Ve[st];We!==void 0&&(pe[st]=We)})}return pe}zt.Z=he},77578:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return pe}});const pe=Ie=>Ie?typeof Ie=="function"?Ie():Ie:null},13845:function(gn,zt,he){"use strict";he.d(zt,{F:function(){return pe},Z:function(){return Ie}});function pe(Ve){return Ve!=null&&Ve===Ve.window}function Ie(Ve,st){var We,it;if(typeof window=="undefined")return 0;const be=st?"scrollTop":"scrollLeft";let yt=0;return pe(Ve)?yt=Ve[st?"pageYOffset":"pageXOffset"]:Ve instanceof Document?yt=Ve.documentElement[be]:(Ve instanceof HTMLElement||Ve)&&(yt=Ve[be]),Ve&&!pe(Ve)&&typeof yt!="number"&&(yt=(it=((We=Ve.ownerDocument)!==null&&We!==void 0?We:Ve).documentElement)===null||it===void 0?void 0:it[be]),yt}},56762:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Ie}});var pe=he(59301);function Ie(){const[,Ve]=pe.useReducer(st=>st+1,0);return Ve}},68031:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return st}});var pe=he(23073);function Ie(We,it,be,yt){const vt=be-it;return We/=yt/2,We<1?vt/2*We*We*We+it:vt/2*((We-=2)*We*We+2)+it}var Ve=he(13845);function st(We){let it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:be=()=>window,callback:yt,duration:vt=450}=it,Je=be(),tt=(0,Ve.Z)(Je,!0),$e=Date.now(),Qe=()=>{const ee=Date.now()-$e,te=Ie(ee>vt?vt:ee,tt,We,vt);(0,Ve.F)(Je)?Je.scrollTo(window.pageXOffset,te):Je instanceof Document||Je.constructor.name==="HTMLDocument"?Je.documentElement.scrollTop=te:Je.scrollTop=te,ee<vt?(0,pe.Z)(Qe):typeof yt=="function"&&yt()};(0,pe.Z)(Qe)}},27666:function(gn,zt,he){"use strict";var pe=he(26390),Ie=he(23073);function Ve(st){let We;const it=yt=>()=>{We=null,st.apply(void 0,(0,pe.Z)(yt))},be=function(){if(We==null){for(var yt=arguments.length,vt=new Array(yt),Je=0;Je<yt;Je++)vt[Je]=arguments[Je];We=(0,Ie.Z)(it(vt))}};return be.cancel=()=>{Ie.Z.cancel(We),We=null},be}zt.Z=Ve},81228:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Le}});var pe=he(79545),Ie=he(68550),Ve=he(17928),st=he(7711),We=he(59301),it=he(92310),be=he.n(it),yt=he(29301),vt=he(64002),Je=he(27666),tt=he(36355),$e=he(83116),Qe=he(37613);const Ee=Te=>{const{componentCls:He}=Te;return{[He]:{position:"fixed",zIndex:Te.zIndexPopup}}};var ee=(0,$e.Z)("Affix",Te=>{const He=(0,Qe.TS)(Te,{zIndexPopup:Te.zIndexBase+10});return[Ee(He)]});function te(Te){return Te!==window?Te.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ue(Te,He,ze){if(ze!==void 0&&He.top>Te.top-ze)return ze+He.top}function ae(Te,He,ze){if(ze!==void 0&&He.bottom<Te.bottom+ze){const Ke=window.innerHeight-He.bottom;return ze+Ke}}const de=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function ve(){return typeof window!="undefined"?window:null}var Pe;(function(Te){Te[Te.None=0]="None",Te[Te.Prepare=1]="Prepare"})(Pe||(Pe={}));let Ae=function(Te){(0,Ve.Z)(ze,Te);var He=(0,st.Z)(ze);function ze(){var Ke;return(0,pe.Z)(this,ze),Ke=He.apply(this,arguments),Ke.state={status:Pe.None,lastAffix:!1,prevTarget:null},Ke.placeholderNodeRef=(0,We.createRef)(),Ke.fixedNodeRef=(0,We.createRef)(),Ke.addListeners=()=>{const Ze=Ke.getTargetFunc(),Mt=Ze==null?void 0:Ze(),{prevTarget:Xe}=Ke.state;Xe!==Mt&&(de.forEach(Ft=>{Xe==null||Xe.removeEventListener(Ft,Ke.lazyUpdatePosition),Mt==null||Mt.addEventListener(Ft,Ke.lazyUpdatePosition)}),Ke.updatePosition(),Ke.setState({prevTarget:Mt}))},Ke.removeListeners=()=>{Ke.timer&&(clearTimeout(Ke.timer),Ke.timer=null);const{prevTarget:Ze}=Ke.state,Mt=Ke.getTargetFunc(),Xe=Mt==null?void 0:Mt();de.forEach(Ft=>{Xe==null||Xe.removeEventListener(Ft,Ke.lazyUpdatePosition),Ze==null||Ze.removeEventListener(Ft,Ke.lazyUpdatePosition)}),Ke.updatePosition.cancel(),Ke.lazyUpdatePosition.cancel()},Ke.getOffsetTop=()=>{const{offsetBottom:Ze,offsetTop:Mt}=Ke.props;return Ze===void 0&&Mt===void 0?0:Mt},Ke.getOffsetBottom=()=>Ke.props.offsetBottom,Ke.measure=()=>{const{status:Ze,lastAffix:Mt}=Ke.state,{onChange:Xe}=Ke.props,Ft=Ke.getTargetFunc();if(Ze!==Pe.Prepare||!Ke.fixedNodeRef.current||!Ke.placeholderNodeRef.current||!Ft)return;const Ct=Ke.getOffsetTop(),Nt=Ke.getOffsetBottom(),It=Ft();if(It){const _t={status:Pe.None},lt=te(Ke.placeholderNodeRef.current);if(lt.top===0&<.left===0&<.width===0&<.height===0)return;const je=te(It),Et=ue(lt,je,Ct),ln=ae(lt,je,Nt);Et!==void 0?(_t.affixStyle={position:"fixed",top:Et,width:lt.width,height:lt.height},_t.placeholderStyle={width:lt.width,height:lt.height}):ln!==void 0&&(_t.affixStyle={position:"fixed",bottom:ln,width:lt.width,height:lt.height},_t.placeholderStyle={width:lt.width,height:lt.height}),_t.lastAffix=!!_t.affixStyle,Xe&&Mt!==_t.lastAffix&&Xe(_t.lastAffix),Ke.setState(_t)}},Ke.prepareMeasure=()=>{Ke.setState({status:Pe.Prepare,affixStyle:void 0,placeholderStyle:void 0})},Ke.updatePosition=(0,Je.Z)(()=>{Ke.prepareMeasure()}),Ke.lazyUpdatePosition=(0,Je.Z)(()=>{const Ze=Ke.getTargetFunc(),{affixStyle:Mt}=Ke.state;if(Ze&&Mt){const Xe=Ke.getOffsetTop(),Ft=Ke.getOffsetBottom(),Ct=Ze();if(Ct&&Ke.placeholderNodeRef.current){const Nt=te(Ct),It=te(Ke.placeholderNodeRef.current),_t=ue(It,Nt,Xe),lt=ae(It,Nt,Ft);if(_t!==void 0&&Mt.top===_t||lt!==void 0&&Mt.bottom===lt)return}}Ke.prepareMeasure()}),Ke}return(0,Ie.Z)(ze,[{key:"getTargetFunc",value:function(){const{getTargetContainer:Ze}=this.context,{target:Mt}=this.props;return Mt!==void 0?Mt:Ze!=null?Ze:ve}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(Ze){this.addListeners(),(Ze.offsetTop!==this.props.offsetTop||Ze.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:Ze,placeholderStyle:Mt}=this.state,{affixPrefixCls:Xe,rootClassName:Ft,children:Ct}=this.props,Nt=be()(Ze&&Ft,{[Xe]:!!Ze});let It=(0,vt.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return We.createElement(yt.Z,{onResize:this.updatePosition},We.createElement("div",Object.assign({},It,{ref:this.placeholderNodeRef}),Ze&&We.createElement("div",{style:Mt,"aria-hidden":"true"}),We.createElement("div",{className:Nt,ref:this.fixedNodeRef,style:Ze},We.createElement(yt.Z,{onResize:this.updatePosition},Ct))))}}]),ze}(We.Component);Ae.contextType=tt.E_;var Le=(0,We.forwardRef)((Te,He)=>{const{prefixCls:ze,rootClassName:Ke}=Te,{getPrefixCls:Ze}=(0,We.useContext)(tt.E_),Mt=Ze("affix",ze),[Xe,Ft]=ee(Mt),Ct=Object.assign(Object.assign({},Te),{affixPrefixCls:Mt,rootClassName:be()(Ke,Ft)});return Xe(We.createElement(Ae,Object.assign({},Ct,{ref:He})))})},24905:function(gn,zt,he){"use strict";he.d(zt,{default:function(){return Le}});var pe=he(92310),Ie=he.n(pe),Ve=he(5630),st=he(59301),We=he(36355),it=he(1684),be=he(32441),vt=st.createContext(null),Je=he(98447),tt=he(14088),$e=he(4572),Qe=function(Te,He){var ze={};for(var Ke in Te)Object.prototype.hasOwnProperty.call(Te,Ke)&&He.indexOf(Ke)<0&&(ze[Ke]=Te[Ke]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ke=Object.getOwnPropertySymbols(Te);Ze<Ke.length;Ze++)He.indexOf(Ke[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ke[Ze])&&(ze[Ke[Ze]]=Te[Ke[Ze]]);return ze};const Ee=(Te,He)=>{var ze;const{prefixCls:Ke,className:Ze,rootClassName:Mt,children:Xe,indeterminate:Ft=!1,style:Ct,onMouseEnter:Nt,onMouseLeave:It,skipGroup:_t=!1,disabled:lt}=Te,je=Qe(Te,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Et,direction:ln,checkbox:Ht}=st.useContext(We.E_),xt=st.useContext(vt),{isFormItemInput:Bt}=st.useContext(be.aM),rn=st.useContext(it.Z),Hn=(ze=(xt==null?void 0:xt.disabled)||lt)!==null&&ze!==void 0?ze:rn,pn=st.useRef(je.value);st.useEffect(()=>{xt==null||xt.registerValue(je.value)},[]),st.useEffect(()=>{if(!_t)return je.value!==pn.current&&(xt==null||xt.cancelValue(pn.current),xt==null||xt.registerValue(je.value),pn.current=je.value),()=>xt==null?void 0:xt.cancelValue(je.value)},[je.value]);const _n=Et("checkbox",Ke),[Lt,Un]=(0,Je.ZP)(_n),Gn=Object.assign({},je);xt&&!_t&&(Gn.onChange=function(){je.onChange&&je.onChange.apply(je,arguments),xt.toggleOption&&xt.toggleOption({label:Xe,value:je.value})},Gn.name=xt.name,Gn.checked=xt.value.includes(je.value));const ui=Ie()(`${_n}-wrapper`,{[`${_n}-rtl`]:ln==="rtl",[`${_n}-wrapper-checked`]:Gn.checked,[`${_n}-wrapper-disabled`]:Hn,[`${_n}-wrapper-in-form-item`]:Bt},Ht==null?void 0:Ht.className,Ze,Mt,Un),Ln=Ie()({[`${_n}-indeterminate`]:Ft},$e.A,Un),Wt=Ft?"mixed":void 0;return Lt(st.createElement(tt.Z,{component:"Checkbox",disabled:Hn},st.createElement("label",{className:ui,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Ct),onMouseEnter:Nt,onMouseLeave:It},st.createElement(Ve.Z,Object.assign({"aria-checked":Wt},Gn,{prefixCls:_n,className:Ln,disabled:Hn,ref:He})),Xe!==void 0&&st.createElement("span",null,Xe))))};var te=st.forwardRef(Ee),ue=he(26390),ae=he(64002),de=function(Te,He){var ze={};for(var Ke in Te)Object.prototype.hasOwnProperty.call(Te,Ke)&&He.indexOf(Ke)<0&&(ze[Ke]=Te[Ke]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ke=Object.getOwnPropertySymbols(Te);Ze<Ke.length;Ze++)He.indexOf(Ke[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ke[Ze])&&(ze[Ke[Ze]]=Te[Ke[Ze]]);return ze};const ve=(Te,He)=>{const{defaultValue:ze,children:Ke,options:Ze=[],prefixCls:Mt,className:Xe,rootClassName:Ft,style:Ct,onChange:Nt}=Te,It=de(Te,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:_t,direction:lt}=st.useContext(We.E_),[je,Et]=st.useState(It.value||ze||[]),[ln,Ht]=st.useState([]);st.useEffect(()=>{"value"in It&&Et(It.value||[])},[It.value]);const xt=st.useMemo(()=>Ze.map(Vt=>typeof Vt=="string"||typeof Vt=="number"?{label:Vt,value:Vt}:Vt),[Ze]),Bt=Vt=>{Ht(mt=>mt.filter(Ye=>Ye!==Vt))},rn=Vt=>{Ht(mt=>[].concat((0,ue.Z)(mt),[Vt]))},Hn=Vt=>{const mt=je.indexOf(Vt.value),Ye=(0,ue.Z)(je);mt===-1?Ye.push(Vt.value):Ye.splice(mt,1),"value"in It||Et(Ye),Nt==null||Nt(Ye.filter(Zt=>ln.includes(Zt)).sort((Zt,Gt)=>{const ft=xt.findIndex(Oe=>Oe.value===Zt),nt=xt.findIndex(Oe=>Oe.value===Gt);return ft-nt}))},pn=_t("checkbox",Mt),_n=`${pn}-group`,[Lt,Un]=(0,Je.ZP)(pn),Gn=(0,ae.Z)(It,["value","disabled"]),ui=Ze.length?xt.map(Vt=>st.createElement(te,{prefixCls:pn,key:Vt.value.toString(),disabled:"disabled"in Vt?Vt.disabled:It.disabled,value:Vt.value,checked:je.includes(Vt.value),onChange:Vt.onChange,className:`${_n}-item`,style:Vt.style,title:Vt.title},Vt.label)):Ke,Ln={toggleOption:Hn,value:je,disabled:It.disabled,name:It.name,registerValue:rn,cancelValue:Bt},Wt=Ie()(_n,{[`${_n}-rtl`]:lt==="rtl"},Xe,Ft,Un);return Lt(st.createElement("div",Object.assign({className:Wt,style:Ct},Gn,{ref:He}),st.createElement(vt.Provider,{value:Ln},ui)))},Pe=st.forwardRef(ve);var Ae=st.memo(Pe);const xe=te;xe.Group=Ae,xe.__ANT_CHECKBOX=!0;var Le=xe},98447:function(gn,zt,he){"use strict";he.d(zt,{C2:function(){return We}});var pe=he(17313),Ie=he(37613),Ve=he(83116);const st=it=>{const{checkboxCls:be}=it,yt=`${be}-wrapper`;return[{[`${be}-group`]:Object.assign(Object.assign({},(0,pe.Wf)(it)),{display:"inline-flex",flexWrap:"wrap",columnGap:it.marginXS,[`> ${it.antCls}-row`]:{flex:1}}),[yt]:Object.assign(Object.assign({},(0,pe.Wf)(it)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${yt}`]:{marginInlineStart:0},[`&${yt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[be]:Object.assign(Object.assign({},(0,pe.Wf)(it)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:it.borderRadiusSM,alignSelf:"center",[`${be}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${be}-inner`]:Object.assign({},(0,pe.oN)(it))},[`${be}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:it.checkboxSize,height:it.checkboxSize,direction:"ltr",backgroundColor:it.colorBgContainer,border:`${it.lineWidth}px ${it.lineType} ${it.colorBorder}`,borderRadius:it.borderRadiusSM,borderCollapse:"separate",transition:`all ${it.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:it.checkboxSize/14*5,height:it.checkboxSize/14*8,border:`${it.lineWidthBold}px solid ${it.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${it.motionDurationFast} ${it.motionEaseInBack}, opacity ${it.motionDurationFast}`}},"& + span":{paddingInlineStart:it.paddingXS,paddingInlineEnd:it.paddingXS}})},{[`
|
|
|
${yt}:not(${yt}-disabled),
|
|
|
${be}:not(${be}-disabled)
|
|
|
`]:{[`&:hover ${be}-inner`]:{borderColor:it.colorPrimary}},[`${yt}:not(${yt}-disabled)`]:{[`&:hover ${be}-checked:not(${be}-disabled) ${be}-inner`]:{backgroundColor:it.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${be}-checked:not(${be}-disabled):after`]:{borderColor:it.colorPrimaryHover}}},{[`${be}-checked`]:{[`${be}-inner`]:{backgroundColor:it.colorPrimary,borderColor:it.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${it.motionDurationMid} ${it.motionEaseOutBack} ${it.motionDurationFast}`}}},[`
|
|
|
${yt}-checked:not(${yt}-disabled),
|
|
|
${be}-checked:not(${be}-disabled)
|
|
|
`]:{[`&:hover ${be}-inner`]:{backgroundColor:it.colorPrimaryHover,borderColor:"transparent"}}},{[be]:{"&-indeterminate":{[`${be}-inner`]:{backgroundColor:it.colorBgContainer,borderColor:it.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:it.fontSizeLG/2,height:it.fontSizeLG/2,backgroundColor:it.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${yt}-disabled`]:{cursor:"not-allowed"},[`${be}-disabled`]:{[`&, ${be}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${be}-inner`]:{background:it.colorBgContainerDisabled,borderColor:it.colorBorder,"&:after":{borderColor:it.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:it.colorTextDisabled},[`&${be}-indeterminate ${be}-inner::after`]:{background:it.colorTextDisabled}}}]};function We(it,be){const yt=(0,Ie.TS)(be,{checkboxCls:`.${it}`,checkboxSize:be.controlInteractiveSize});return[st(yt)]}zt.ZP=(0,Ve.Z)("Checkbox",(it,be)=>{let{prefixCls:yt}=be;return[We(yt,it)]})},93891:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(36355),Ve=he(64165);const st=We=>{const{componentName:it}=We,{getPrefixCls:be}=(0,pe.useContext)(Ie.E_),yt=be("empty");switch(it){case"Table":case"List":return pe.createElement(Ve.Z,{image:Ve.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return pe.createElement(Ve.Z,{image:Ve.Z.PRESENTED_IMAGE_SIMPLE,className:`${yt}-small`});default:return pe.createElement(Ve.Z,null)}};zt.Z=st},78550:function(gn,zt,he){"use strict";he.d(zt,{default:function(){return nl}});var pe=he(61186),Ie=he.n(pe),Ve=he(51395),st=he(90111),We=he.n(st),it=he(58319),be=he.n(it),yt=he(23250),vt=he.n(yt),Je=he(74959),tt=he.n(Je),$e=he(10238),Qe=he.n($e),Ee=he(33656),ee=he.n(Ee);Ie().extend(ee()),Ie().extend(Qe()),Ie().extend(We()),Ie().extend(be()),Ie().extend(vt()),Ie().extend(tt()),Ie().extend(function(Ue,rt){var gt=rt.prototype,$t=gt.format;gt.format=function(Dn){var On=(Dn||"").replace("Wo","wo");return $t.bind(this)(On)}});var te={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"},ue=function(rt){var gt=te[rt];return gt||rt.split("_")[0]},ae=function(){(0,Ve.ET)(!1,"Not match any format. Please help to fire a issue about this.")},de={getNow:function(){return Ie()()},getFixedDate:function(rt){return Ie()(rt,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(rt){return rt.endOf("month")},getWeekDay:function(rt){var gt=rt.locale("en");return gt.weekday()+gt.localeData().firstDayOfWeek()},getYear:function(rt){return rt.year()},getMonth:function(rt){return rt.month()},getDate:function(rt){return rt.date()},getHour:function(rt){return rt.hour()},getMinute:function(rt){return rt.minute()},getSecond:function(rt){return rt.second()},addYear:function(rt,gt){return rt.add(gt,"year")},addMonth:function(rt,gt){return rt.add(gt,"month")},addDate:function(rt,gt){return rt.add(gt,"day")},setYear:function(rt,gt){return rt.year(gt)},setMonth:function(rt,gt){return rt.month(gt)},setDate:function(rt,gt){return rt.date(gt)},setHour:function(rt,gt){return rt.hour(gt)},setMinute:function(rt,gt){return rt.minute(gt)},setSecond:function(rt,gt){return rt.second(gt)},isAfter:function(rt,gt){return rt.isAfter(gt)},isValidate:function(rt){return rt.isValid()},locale:{getWeekFirstDay:function(rt){return Ie()().locale(ue(rt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(rt,gt){return gt.locale(ue(rt)).weekday(0)},getWeek:function(rt,gt){return gt.locale(ue(rt)).week()},getShortWeekDays:function(rt){return Ie()().locale(ue(rt)).localeData().weekdaysMin()},getShortMonths:function(rt){return Ie()().locale(ue(rt)).localeData().monthsShort()},format:function(rt,gt,$t){return gt.locale(ue(rt)).format($t)},parse:function(rt,gt,$t){for(var sn=ue(rt),Dn=0;Dn<$t.length;Dn+=1){var On=$t[Dn],ii=gt;if(On.includes("wo")||On.includes("Wo")){for(var ci=ii.split("-")[0],Ei=ii.split("-")[1],Xi=Ie()(ci,"YYYY").startOf("year").locale(sn),wi=0;wi<=52;wi+=1){var zi=Xi.add(wi,"week");if(zi.format("Wo")===Ei)return zi}return ae(),null}var xi=Ie()(ii,On,!0).locale(sn);if(xi.isValid())return xi}return gt&&ae(),null}}},ve=de,Pe=he(53487),Ae=he(5891),xe=he(59301),Le={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"},Te=Le,He=he(88853),ze=function(rt,gt){return xe.createElement(He.Z,(0,Ae.Z)({},rt,{ref:gt,icon:Te}))},Ke=xe.forwardRef(ze),Ze=Ke,Mt={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"},Xe=Mt,Ft=function(rt,gt){return xe.createElement(He.Z,(0,Ae.Z)({},rt,{ref:gt,icon:Xe}))},Ct=xe.forwardRef(Ft),Nt=Ct,It=he(33130),_t={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"},lt=_t,je=function(rt,gt){return xe.createElement(He.Z,(0,Ae.Z)({},rt,{ref:gt,icon:lt}))},Et=xe.forwardRef(je),ln=Et,Ht=he(92310),xt=he.n(Ht),Bt=he(79545),rn=he(68550),Hn=he(21882),pn=he(17928),_n=he(7711),Lt=he(80962),Un=he(57259),Gn=he(29043),ui=he(35788),Ln=he(36994),Wt=he(79722),Vt=he(51346),mt=10,Ye=mt*10,Zt=7;function Gt(Ue,rt){if(!Ue&&!rt)return!0;if(!Ue||!rt)return!1}function ft(Ue,rt,gt){var $t=Gt(rt,gt);if(typeof $t=="boolean")return $t;var sn=Math.floor(Ue.getYear(rt)/10),Dn=Math.floor(Ue.getYear(gt)/10);return sn===Dn}function nt(Ue,rt,gt){var $t=Gt(rt,gt);return typeof $t=="boolean"?$t:Ue.getYear(rt)===Ue.getYear(gt)}function Oe(Ue,rt){var gt=Math.floor(Ue.getMonth(rt)/3);return gt+1}function we(Ue,rt,gt){var $t=Gt(rt,gt);return typeof $t=="boolean"?$t:nt(Ue,rt,gt)&&Oe(Ue,rt)===Oe(Ue,gt)}function ye(Ue,rt,gt){var $t=Gt(rt,gt);return typeof $t=="boolean"?$t:nt(Ue,rt,gt)&&Ue.getMonth(rt)===Ue.getMonth(gt)}function ke(Ue,rt,gt){var $t=Gt(rt,gt);return typeof $t=="boolean"?$t:Ue.getYear(rt)===Ue.getYear(gt)&&Ue.getMonth(rt)===Ue.getMonth(gt)&&Ue.getDate(rt)===Ue.getDate(gt)}function Ge(Ue,rt,gt){var $t=Gt(rt,gt);return typeof $t=="boolean"?$t:Ue.getHour(rt)===Ue.getHour(gt)&&Ue.getMinute(rt)===Ue.getMinute(gt)&&Ue.getSecond(rt)===Ue.getSecond(gt)}function Fe(Ue,rt,gt,$t){var sn=Gt(gt,$t);return typeof sn=="boolean"?sn:nt(Ue,gt,$t)&&Ue.locale.getWeek(rt,gt)===Ue.locale.getWeek(rt,$t)}function pt(Ue,rt,gt){return ke(Ue,rt,gt)&&Ge(Ue,rt,gt)}function tn(Ue,rt,gt,$t){return!rt||!gt||!$t?!1:!ke(Ue,rt,$t)&&!ke(Ue,gt,$t)&&Ue.isAfter($t,rt)&&Ue.isAfter(gt,$t)}function en(Ue,rt,gt){var $t=rt.locale.getWeekFirstDay(Ue),sn=rt.setDate(gt,1),Dn=rt.getWeekDay(sn),On=rt.addDate(sn,$t-Dn);return rt.getMonth(On)===rt.getMonth(gt)&&rt.getDate(On)>1&&(On=rt.addDate(On,-7)),On}function wt(Ue,rt,gt){var $t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(rt){case"year":return gt.addYear(Ue,$t*10);case"quarter":case"month":return gt.addYear(Ue,$t);default:return gt.addMonth(Ue,$t)}}function Xt(Ue,rt){var gt=rt.generateConfig,$t=rt.locale,sn=rt.format;return typeof sn=="function"?sn(Ue):gt.locale.format($t.locale,Ue,sn)}function Pn(Ue,rt){var gt=rt.generateConfig,$t=rt.locale,sn=rt.formatList;return!Ue||typeof sn[0]=="function"?null:gt.locale.parse($t.locale,Ue,sn)}function In(Ue){var rt=Ue.cellDate,gt=Ue.mode,$t=Ue.disabledDate,sn=Ue.generateConfig;if(!$t)return!1;var Dn=function(or,ei,ji){for(var ar=ei;ar<=ji;){var eo=void 0;switch(or){case"date":{if(eo=sn.setDate(rt,ar),!$t(eo))return!1;break}case"month":{if(eo=sn.setMonth(rt,ar),!In({cellDate:eo,mode:"month",generateConfig:sn,disabledDate:$t}))return!1;break}case"year":{if(eo=sn.setYear(rt,ar),!In({cellDate:eo,mode:"year",generateConfig:sn,disabledDate:$t}))return!1;break}}ar+=1}return!0};switch(gt){case"date":case"week":return $t(rt);case"month":{var On=1,ii=sn.getDate(sn.getEndDate(rt));return Dn("date",On,ii)}case"quarter":{var ci=Math.floor(sn.getMonth(rt)/3)*3,Ei=ci+2;return Dn("month",ci,Ei)}case"year":return Dn("month",0,11);case"decade":{var Xi=sn.getYear(rt),wi=Math.floor(Xi/mt)*mt,zi=wi+mt-1;return Dn("year",wi,zi)}}}function $n(Ue,rt){var gt=rt.formatList,$t=rt.generateConfig,sn=rt.locale;return(0,Wt.Z)(function(){if(!Ue)return[[""],""];for(var Dn="",On=[],ii=0;ii<gt.length;ii+=1){var ci=gt[ii],Ei=Xt(Ue,{generateConfig:$t,locale:sn,format:ci});On.push(Ei),ii===0&&(Dn=Ei)}return[On,Dn]},[Ue,gt,sn],function(Dn,On){return!pt($t,Dn[0],On[0])||!(0,Vt.Z)(Dn[1],On[1],!0)||!(0,Vt.Z)(Dn[2],On[2],!0)})}function Pi(Ue,rt){var gt=rt.formatList,$t=rt.generateConfig,sn=rt.locale,Dn=(0,xe.useState)(null),On=(0,Gn.Z)(Dn,2),ii=On[0],ci=On[1],Ei=(0,xe.useRef)(null);function Xi(ji){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Ei.current),ar){ci(ji);return}Ei.current=requestAnimationFrame(function(){ci(ji)})}var wi=$n(ii,{formatList:gt,generateConfig:$t,locale:sn}),zi=(0,Gn.Z)(wi,2),xi=zi[1];function or(ji){Xi(ji)}function ei(){var ji=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Xi(null,ji)}return(0,xe.useEffect)(function(){ei(!0)},[Ue]),(0,xe.useEffect)(function(){return function(){return cancelAnimationFrame(Ei.current)}},[]),[xi,or,ei]}var wn=he(85108),Ai=he(23073),Vi=he(26390),ur=he(48886),sr=new Map;function Qn(Ue,rt){var gt;function $t(){(0,ur.Z)(Ue)?rt():gt=(0,Ai.Z)(function(){$t()})}return $t(),function(){Ai.Z.cancel(gt)}}function Ci(Ue,rt,gt){if(sr.get(Ue)&&cancelAnimationFrame(sr.get(Ue)),gt<=0){sr.set(Ue,requestAnimationFrame(function(){Ue.scrollTop=rt}));return}var $t=rt-Ue.scrollTop,sn=$t/gt*10;sr.set(Ue,requestAnimationFrame(function(){Ue.scrollTop+=sn,Ue.scrollTop!==rt&&Ci(Ue,rt,gt-10)}))}function er(Ue,rt){var gt=rt.onLeftRight,$t=rt.onCtrlLeftRight,sn=rt.onUpDown,Dn=rt.onPageUpDown,On=rt.onEnter,ii=Ue.which,ci=Ue.ctrlKey,Ei=Ue.metaKey;switch(ii){case wn.Z.LEFT:if(ci||Ei){if($t)return $t(-1),!0}else if(gt)return gt(-1),!0;break;case wn.Z.RIGHT:if(ci||Ei){if($t)return $t(1),!0}else if(gt)return gt(1),!0;break;case wn.Z.UP:if(sn)return sn(-1),!0;break;case wn.Z.DOWN:if(sn)return sn(1),!0;break;case wn.Z.PAGE_UP:if(Dn)return Dn(-1),!0;break;case wn.Z.PAGE_DOWN:if(Dn)return Dn(1),!0;break;case wn.Z.ENTER:if(On)return On(),!0;break}return!1}function ri(Ue,rt,gt,$t){var sn=Ue;if(!sn)switch(rt){case"time":sn=$t?"hh:mm:ss a":"HH:mm:ss";break;case"week":sn="gggg-wo";break;case"month":sn="YYYY-MM";break;case"quarter":sn="YYYY-[Q]Q";break;case"year":sn="YYYY";break;default:sn=gt?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return sn}function tr(Ue,rt,gt){var $t=Ue==="time"?8:10,sn=typeof rt=="function"?rt(gt.getNow()).length:rt.length;return Math.max($t,sn)+2}var Di=null,De=new Set;function Yr(Ue){return!Di&&typeof window!="undefined"&&window.addEventListener&&(Di=function(gt){(0,Vi.Z)(De).forEach(function($t){$t(gt)})},window.addEventListener("mousedown",Di)),De.add(Ue),function(){De.delete(Ue),De.size===0&&(window.removeEventListener("mousedown",Di),Di=null)}}function yr(Ue){var rt=Ue.target;if(Ue.composed&&rt.shadowRoot){var gt;return((gt=Ue.composedPath)===null||gt===void 0?void 0:gt.call(Ue)[0])||rt}return rt}var Dr=function(rt){return rt==="month"||rt==="date"?"year":rt},lo=function(rt){return rt==="date"?"month":rt},Wo=function(rt){return rt==="month"||rt==="date"?"quarter":rt},No=function(rt){return rt==="date"?"week":rt},ki={year:Dr,month:lo,quarter:Wo,week:No,time:null,date:null};function an(Ue,rt){return Ue.some(function(gt){return gt&>.contains(rt)})}function nn(Ue){var rt=Ue.open,gt=Ue.value,$t=Ue.isClickOutside,sn=Ue.triggerOpen,Dn=Ue.forwardKeyDown,On=Ue.onKeyDown,ii=Ue.blurToCancel,ci=Ue.onSubmit,Ei=Ue.onCancel,Xi=Ue.onFocus,wi=Ue.onBlur,zi=Ue.changeOnBlur,xi=(0,xe.useState)(!1),or=(0,Gn.Z)(xi,2),ei=or[0],ji=or[1],ar=(0,xe.useState)(!1),eo=(0,Gn.Z)(ar,2),Kr=eo[0],oo=eo[1],ao=(0,xe.useRef)(!1),to=(0,xe.useRef)(!1),Ji=(0,xe.useRef)(!1),la={onMouseDown:function(){ji(!0),sn(!0)},onKeyDown:function(va){var Wa=function(){Ji.current=!0};if(On(va,Wa),!Ji.current){switch(va.which){case wn.Z.ENTER:{rt?ci()!==!1&&ji(!0):sn(!0),va.preventDefault();return}case wn.Z.TAB:{ei&&rt&&!va.shiftKey?(ji(!1),va.preventDefault()):!ei&&rt&&!Dn(va)&&va.shiftKey&&(ji(!0),va.preventDefault());return}case wn.Z.ESC:{ji(!0),Ei();return}}!rt&&![wn.Z.SHIFT].includes(va.which)?sn(!0):ei||Dn(va)}},onFocus:function(va){ji(!0),oo(!0),Xi&&Xi(va)},onBlur:function(va){if(ao.current||!$t(document.activeElement)){ao.current=!1;return}ii?setTimeout(function(){for(var Wa=document,za=Wa.activeElement;za&&za.shadowRoot;)za=za.shadowRoot.activeElement;$t(za)&&Ei()},0):rt&&(sn(!1),to.current&&ci()),oo(!1),wi==null||wi(va)}};return(0,xe.useEffect)(function(){to.current=!1},[rt]),(0,xe.useEffect)(function(){to.current=!0},[gt]),(0,xe.useEffect)(function(){return Yr(function(Qo){var va=yr(Qo),Wa=$t(va);rt&&(Wa?!zi&&(!Kr||Wa)&&sn(!1):(ao.current=!0,(0,Ai.Z)(function(){ao.current=!1})))})}),[la,{focused:Kr,typing:ei}]}function Ut(Ue,rt){return xe.useMemo(function(){return Ue||(rt?((0,Ve.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(rt).map(function(gt){var $t=(0,Gn.Z)(gt,2),sn=$t[0],Dn=$t[1];return{label:sn,value:Dn}})):[])},[Ue,rt])}var bt=he(28800);function xn(Ue){var rt=Ue.valueTexts,gt=Ue.onTextChange,$t=xe.useState(""),sn=(0,Gn.Z)($t,2),Dn=sn[0],On=sn[1],ii=xe.useRef([]);ii.current=rt;function ci(Xi){On(Xi),gt(Xi)}function Ei(){On(ii.current[0])}return(0,bt.Z)(function(){rt.every(function(Xi){return Xi!==Dn})&&Ei()},[rt.join("||")]),[Dn,ci,Ei]}var hn=xe.createContext({}),Tt=hn,ot=he(80665);function fn(Ue){var rt=Ue.cellRender,gt=Ue.monthCellRender,$t=Ue.dateRender,sn=xe.useMemo(function(){if(rt)return rt;if(!(!gt&&!$t))return function(Dn,On){var ii=Dn;return $t&&On.type==="date"?$t(ii,On.today):gt&&On.type==="month"?gt(ii,On.locale):On.originNode}},[rt,gt,$t]);return sn}function yn(Ue,rt){for(var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",$t=String(Ue);$t.length<rt;)$t="".concat(gt).concat(Ue);return $t}var li=function(){for(var rt=arguments.length,gt=new Array(rt),$t=0;$t<rt;$t++)gt[$t]=arguments[$t];return gt};function vn(Ue){return Ue==null?[]:Array.isArray(Ue)?Ue:[Ue]}function at(Ue,rt){return Ue?Ue[rt]:null}function Bn(Ue,rt,gt){var $t=[at(Ue,0),at(Ue,1)];return $t[gt]=typeof rt=="function"?rt($t[gt]):rt,!$t[0]&&!$t[1]?null:$t}function pi(Ue){return typeof Ue=="function"?Ue():Ue}function Li(Ue){var rt=Ue.cellPrefixCls,gt=Ue.generateConfig,$t=Ue.rangedValue,sn=Ue.hoverRangedValue,Dn=Ue.isInView,On=Ue.isSameCell,ii=Ue.offsetCell,ci=Ue.today,Ei=Ue.value;function Xi(wi){var zi,xi=ii(wi,-1),or=ii(wi,1),ei=at($t,0),ji=at($t,1),ar=at(sn,0),eo=at(sn,1),Kr=tn(gt,ar,eo,wi);function oo(va){return On(ei,va)}function ao(va){return On(ji,va)}var to=On(ar,wi),Ji=On(eo,wi),la=(Kr||Ji)&&(!Dn(xi)||ao(xi)),Qo=(Kr||to)&&(!Dn(or)||oo(or));return zi={},(0,Lt.Z)(zi,"".concat(rt,"-in-view"),Dn(wi)),(0,Lt.Z)(zi,"".concat(rt,"-in-range"),tn(gt,ei,ji,wi)),(0,Lt.Z)(zi,"".concat(rt,"-range-start"),oo(wi)),(0,Lt.Z)(zi,"".concat(rt,"-range-end"),ao(wi)),(0,Lt.Z)(zi,"".concat(rt,"-range-start-single"),oo(wi)&&!ji),(0,Lt.Z)(zi,"".concat(rt,"-range-end-single"),ao(wi)&&!ei),(0,Lt.Z)(zi,"".concat(rt,"-range-start-near-hover"),oo(wi)&&(On(xi,ar)||tn(gt,ar,eo,xi))),(0,Lt.Z)(zi,"".concat(rt,"-range-end-near-hover"),ao(wi)&&(On(or,eo)||tn(gt,ar,eo,or))),(0,Lt.Z)(zi,"".concat(rt,"-range-hover"),Kr),(0,Lt.Z)(zi,"".concat(rt,"-range-hover-start"),to),(0,Lt.Z)(zi,"".concat(rt,"-range-hover-end"),Ji),(0,Lt.Z)(zi,"".concat(rt,"-range-hover-edge-start"),la),(0,Lt.Z)(zi,"".concat(rt,"-range-hover-edge-end"),Qo),(0,Lt.Z)(zi,"".concat(rt,"-range-hover-edge-start-near-range"),la&&On(xi,ji)),(0,Lt.Z)(zi,"".concat(rt,"-range-hover-edge-end-near-range"),Qo&&On(or,ei)),(0,Lt.Z)(zi,"".concat(rt,"-today"),On(ci,wi)),(0,Lt.Z)(zi,"".concat(rt,"-selected"),On(Ei,wi)),zi}return Xi}var qt=xe.createContext({}),Nn=qt;function on(Ue,rt,gt,$t,sn){var Dn=Ue.setHour(rt,gt);return Dn=Ue.setMinute(Dn,$t),Dn=Ue.setSecond(Dn,sn),Dn}function Sn(Ue,rt,gt){if(!gt)return rt;var $t=rt;return $t=Ue.setHour($t,Ue.getHour(gt)),$t=Ue.setMinute($t,Ue.getMinute(gt)),$t=Ue.setSecond($t,Ue.getSecond(gt)),$t}function Fn(Ue,rt,gt,$t,sn,Dn){var On=Math.floor(Ue/$t)*$t;if(On<Ue)return[On,60-sn,60-Dn];var ii=Math.floor(rt/sn)*sn;if(ii<rt)return[On,ii,60-Dn];var ci=Math.floor(gt/Dn)*Dn;return[On,ii,ci]}function En(Ue,rt){var gt=Ue.getYear(rt),$t=Ue.getMonth(rt)+1,sn=Ue.getEndDate(Ue.getFixedDate("".concat(gt,"-").concat($t,"-01"))),Dn=Ue.getDate(sn),On=$t<10?"0".concat($t):"".concat($t);return"".concat(gt,"-").concat(On,"-").concat(Dn)}function kn(Ue){for(var rt=Ue.prefixCls,gt=Ue.disabledDate,$t=Ue.onSelect,sn=Ue.picker,Dn=Ue.rowNum,On=Ue.colNum,ii=Ue.prefixColumn,ci=Ue.rowClassName,Ei=Ue.baseDate,Xi=Ue.getCellClassName,wi=Ue.getCellText,zi=Ue.getCellNode,xi=Ue.getCellDate,or=Ue.generateConfig,ei=Ue.titleCell,ji=Ue.headerCells,ar=xe.useContext(Tt),eo=ar.onDateMouseEnter,Kr=ar.onDateMouseLeave,oo=ar.mode,ao="".concat(rt,"-cell"),to=[],Ji=0;Ji<Dn;Ji+=1){for(var la=[],Qo=void 0,va=function(){var Ba,hs=Ji*On+Wa,Ma=xi(Ei,hs),wa=In({cellDate:Ma,mode:oo,disabledDate:gt,generateConfig:or});Wa===0&&(Qo=Ma,ii&&la.push(ii(Qo)));var Na=ei&&ei(Ma),rs=xe.createElement("div",{className:"".concat(ao,"-inner")},wi(Ma));la.push(xe.createElement("td",{key:Wa,title:Na,className:xt()(ao,(0,Un.Z)((Ba={},(0,Lt.Z)(Ba,"".concat(ao,"-disabled"),wa),(0,Lt.Z)(Ba,"".concat(ao,"-start"),wi(Ma)===1||sn==="year"&&Number(Na)%10===0),(0,Lt.Z)(Ba,"".concat(ao,"-end"),Na===En(or,Ma)||sn==="year"&&Number(Na)%10===9),Ba),Xi(Ma))),onClick:function(){wa||$t(Ma)},onMouseEnter:function(){!wa&&eo&&eo(Ma)},onMouseLeave:function(){!wa&&Kr&&Kr(Ma)}},zi?zi(Ma,rs):rs))},Wa=0;Wa<On;Wa+=1)va();to.push(xe.createElement("tr",{key:Ji,className:ci&&ci(Qo)},la))}return xe.createElement("div",{className:"".concat(rt,"-body")},xe.createElement("table",{className:"".concat(rt,"-content")},ji&&xe.createElement("thead",null,xe.createElement("tr",null,ji)),xe.createElement("tbody",null,to)))}function Zn(Ue){var rt=Ue.prefixCls,gt=Ue.generateConfig,$t=Ue.prefixColumn,sn=Ue.locale,Dn=Ue.rowCount,On=Ue.viewDate,ii=Ue.value,ci=Ue.cellRender,Ei=Ue.isSameCell,Xi=xe.useContext(Nn),wi=Xi.rangedValue,zi=Xi.hoverRangedValue,xi=en(sn.locale,gt,On),or="".concat(rt,"-cell"),ei=gt.locale.getWeekFirstDay(sn.locale),ji=gt.getNow(),ar=[],eo=sn.shortWeekDays||(gt.locale.getShortWeekDays?gt.locale.getShortWeekDays(sn.locale):[]);$t&&ar.push(xe.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Kr=0;Kr<Zt;Kr+=1)ar.push(xe.createElement("th",{key:Kr},eo[(Kr+ei)%Zt]));var oo=Li({cellPrefixCls:or,today:ji,value:ii,generateConfig:gt,rangedValue:$t?null:wi,hoverRangedValue:$t?null:zi,isSameCell:Ei||function(to,Ji){return ke(gt,to,Ji)},isInView:function(Ji){return ye(gt,Ji,On)},offsetCell:function(Ji,la){return gt.addDate(Ji,la)}}),ao=ci?function(to,Ji){return ci(to,{originNode:Ji,today:ji,type:"date",locale:sn})}:void 0;return xe.createElement(kn,(0,Ae.Z)({},Ue,{rowNum:Dn,colNum:Zt,baseDate:xi,getCellNode:ao,getCellText:gt.getDate,getCellClassName:oo,getCellDate:gt.addDate,titleCell:function(Ji){return Xt(Ji,{locale:sn,format:"YYYY-MM-DD",generateConfig:gt})},headerCells:ar}))}var Jn=Zn,si={visibility:"hidden"};function Tn(Ue){var rt=Ue.prefixCls,gt=Ue.prevIcon,$t=gt===void 0?"\u2039":gt,sn=Ue.nextIcon,Dn=sn===void 0?"\u203A":sn,On=Ue.superPrevIcon,ii=On===void 0?"\xAB":On,ci=Ue.superNextIcon,Ei=ci===void 0?"\xBB":ci,Xi=Ue.onSuperPrev,wi=Ue.onSuperNext,zi=Ue.onPrev,xi=Ue.onNext,or=Ue.children,ei=xe.useContext(Tt),ji=ei.hideNextBtn,ar=ei.hidePrevBtn;return xe.createElement("div",{className:rt},Xi&&xe.createElement("button",{type:"button",onClick:Xi,tabIndex:-1,className:"".concat(rt,"-super-prev-btn"),style:ar?si:{}},ii),zi&&xe.createElement("button",{type:"button",onClick:zi,tabIndex:-1,className:"".concat(rt,"-prev-btn"),style:ar?si:{}},$t),xe.createElement("div",{className:"".concat(rt,"-view")},or),xi&&xe.createElement("button",{type:"button",onClick:xi,tabIndex:-1,className:"".concat(rt,"-next-btn"),style:ji?si:{}},Dn),wi&&xe.createElement("button",{type:"button",onClick:wi,tabIndex:-1,className:"".concat(rt,"-super-next-btn"),style:ji?si:{}},Ei))}var mi=Tn;function nr(Ue){var rt=Ue.prefixCls,gt=Ue.generateConfig,$t=Ue.locale,sn=Ue.viewDate,Dn=Ue.onNextMonth,On=Ue.onPrevMonth,ii=Ue.onNextYear,ci=Ue.onPrevYear,Ei=Ue.onYearClick,Xi=Ue.onMonthClick,wi=xe.useContext(Tt),zi=wi.hideHeader;if(zi)return null;var xi="".concat(rt,"-header"),or=$t.shortMonths||(gt.locale.getShortMonths?gt.locale.getShortMonths($t.locale):[]),ei=gt.getMonth(sn),ji=xe.createElement("button",{type:"button",key:"year",onClick:Ei,tabIndex:-1,className:"".concat(rt,"-year-btn")},Xt(sn,{locale:$t,format:$t.yearFormat,generateConfig:gt})),ar=xe.createElement("button",{type:"button",key:"month",onClick:Xi,tabIndex:-1,className:"".concat(rt,"-month-btn")},$t.monthFormat?Xt(sn,{locale:$t,format:$t.monthFormat,generateConfig:gt}):or[ei]),eo=$t.monthBeforeYear?[ar,ji]:[ji,ar];return xe.createElement(mi,(0,Ae.Z)({},Ue,{prefixCls:xi,onSuperPrev:ci,onPrev:On,onNext:Dn,onSuperNext:ii}),eo)}var Br=nr,rr=6;function Jt(Ue){var rt=Ue.prefixCls,gt=Ue.panelName,$t=gt===void 0?"date":gt,sn=Ue.keyboardConfig,Dn=Ue.active,On=Ue.operationRef,ii=Ue.generateConfig,ci=Ue.value,Ei=Ue.viewDate,Xi=Ue.onViewDateChange,wi=Ue.onPanelChange,zi=Ue.onSelect,xi="".concat(rt,"-").concat($t,"-panel");On.current={onKeyDown:function(ar){return er(ar,(0,Un.Z)({onLeftRight:function(Kr){zi(ii.addDate(ci||Ei,Kr),"key")},onCtrlLeftRight:function(Kr){zi(ii.addYear(ci||Ei,Kr),"key")},onUpDown:function(Kr){zi(ii.addDate(ci||Ei,Kr*Zt),"key")},onPageUpDown:function(Kr){zi(ii.addMonth(ci||Ei,Kr),"key")}},sn))}};var or=function(ar){var eo=ii.addYear(Ei,ar);Xi(eo),wi(null,eo)},ei=function(ar){var eo=ii.addMonth(Ei,ar);Xi(eo),wi(null,eo)};return xe.createElement("div",{className:xt()(xi,(0,Lt.Z)({},"".concat(xi,"-active"),Dn))},xe.createElement(Br,(0,Ae.Z)({},Ue,{prefixCls:rt,value:ci,viewDate:Ei,onPrevYear:function(){or(-1)},onNextYear:function(){or(1)},onPrevMonth:function(){ei(-1)},onNextMonth:function(){ei(1)},onMonthClick:function(){wi("month",Ei)},onYearClick:function(){wi("year",Ei)}})),xe.createElement(Jn,(0,Ae.Z)({},Ue,{onSelect:function(ar){return zi(ar,"mouse")},prefixCls:rt,value:ci,viewDate:Ei,rowCount:rr})))}var Fi=Jt;function Si(Ue){var rt=xe.useContext(Tt),gt=rt.hideHeader;if(gt)return null;var $t=Ue.prefixCls,sn=Ue.generateConfig,Dn=Ue.locale,On=Ue.value,ii=Ue.format,ci="".concat($t,"-header");return xe.createElement(mi,{prefixCls:ci},On?Xt(On,{locale:Dn,format:ii,generateConfig:sn}):"\xA0")}var Wi=Si;function Nr(Ue){var rt=Ue.value,gt=Ue.generateConfig,$t=Ue.disabledMinutes,sn=Ue.disabledSeconds,Dn=Ue.minutes,On=Ue.seconds,ii=Ue.use12Hours,ci=function(Xi,wi,zi,xi){var or=gt.getNow(),ei=rt||or,ji=wi<0?gt.getHour(or):wi,ar=zi<0?gt.getMinute(or):zi,eo=xi<0?gt.getSecond(or):xi,Kr=$t&&$t(ji);if(Kr!=null&&Kr.includes(ar)){var oo=Dn.find(function(Ji){return!Kr.includes(Ji.value)});if(oo)ar=oo.value;else return null}var ao=sn&&sn(ji,ar);if(ao!=null&&ao.includes(eo)){var to=On.find(function(Ji){return!ao.includes(Ji.value)});if(to)eo=to.value;else return null}return ei=on(gt,ei,!ii||!Xi?ji:ji+12,ar,eo),ei};return ci}function br(Ue){var rt=Ue.prefixCls,gt=Ue.units,$t=Ue.onSelect,sn=Ue.value,Dn=Ue.active,On=Ue.hideDisabledOptions,ii=Ue.info,ci=Ue.type,Ei="".concat(rt,"-cell"),Xi=xe.useContext(Tt),wi=Xi.open,zi=(0,xe.useRef)(null),xi=(0,xe.useRef)(new Map),or=(0,xe.useRef)();return(0,xe.useLayoutEffect)(function(){var ei=xi.current.get(sn);ei&&wi!==!1&&Ci(zi.current,ei.offsetTop,120)},[sn]),(0,xe.useLayoutEffect)(function(){if(wi){var ei=xi.current.get(sn);ei&&(or.current=Qn(ei,function(){Ci(zi.current,ei.offsetTop,0)}))}return function(){var ji;(ji=or.current)===null||ji===void 0||ji.call(or)}},[wi]),xe.createElement("ul",{className:xt()("".concat(rt,"-column"),(0,Lt.Z)({},"".concat(rt,"-column-active"),Dn)),ref:zi,style:{position:"relative"}},gt.map(function(ei){var ji;return On&&ei.disabled?null:xe.createElement("li",{key:ei.value,ref:function(eo){xi.current.set(ei.value,eo)},className:xt()(Ei,(ji={},(0,Lt.Z)(ji,"".concat(Ei,"-disabled"),ei.disabled),(0,Lt.Z)(ji,"".concat(Ei,"-selected"),sn===ei.value),ji)),onClick:function(){ei.disabled||$t(ei.value)}},ii.cellRender?ii.cellRender(ei.value,{today:ii.today,locale:ii.locale,originNode:xe.createElement("div",{className:"".concat(Ei,"-inner")},ei.label),type:"time",subType:ci}):xe.createElement("div",{className:"".concat(Ei,"-inner")},ei.label))}))}var Ir=br;function hr(Ue,rt){if(Ue.length!==rt.length)return!0;for(var gt=0;gt<Ue.length;gt+=1)if(Ue[gt].disabled!==rt[gt].disabled)return!0;return!1}function Ui(Ue,rt,gt,$t){for(var sn=[],Dn=gt>=1?gt|0:1,On=Ue;On<=rt;On+=Dn)sn.push({label:yn(On,2),value:On,disabled:($t||[]).includes(On)});return sn}function Jr(Ue){var rt=Ue.generateConfig,gt=Ue.prefixCls,$t=Ue.operationRef,sn=Ue.activeColumnIndex,Dn=Ue.value,On=Ue.showHour,ii=Ue.showMinute,ci=Ue.showSecond,Ei=Ue.use12Hours,Xi=Ue.hourStep,wi=Xi===void 0?1:Xi,zi=Ue.minuteStep,xi=zi===void 0?1:zi,or=Ue.secondStep,ei=or===void 0?1:or,ji=Ue.disabledHours,ar=Ue.disabledMinutes,eo=Ue.disabledSeconds,Kr=Ue.disabledTime,oo=Ue.hideDisabledOptions,ao=Ue.onSelect,to=Ue.cellRender,Ji=Ue.locale,la=[],Qo="".concat(gt,"-content"),va="".concat(gt,"-time-panel"),Wa,za=Dn?rt.getHour(Dn):-1,Ba=za,hs=Dn?rt.getMinute(Dn):-1,Ma=Dn?rt.getSecond(Dn):-1,wa=rt.getNow(),Na=xe.useMemo(function(){if(Kr){var ti=Kr(wa);return[ti.disabledHours,ti.disabledMinutes,ti.disabledSeconds]}return[ji,ar,eo]},[ji,ar,eo,Kr,wa]),rs=(0,Gn.Z)(Na,3),fs=rs[0],Ua=rs[1],ka=rs[2],Rs=Ui(0,23,wi,fs&&fs()),ul=(0,Wt.Z)(function(){return Rs},Rs,hr);Ei&&(Wa=Ba>=12,Ba%=12);var ut=xe.useMemo(function(){if(!Ei)return[!1,!1];var ti=[!0,!0];return ul.forEach(function(gi){var Ri=gi.disabled,Oi=gi.value;Ri||(Oi>=12?ti[1]=!1:ti[0]=!1)}),ti},[Ei,ul]),St=(0,Gn.Z)(ut,2),Yt=St[0],Qt=St[1],mn=xe.useMemo(function(){return Ei?ul.filter(Wa?function(ti){return ti.value>=12}:function(ti){return ti.value<12}).map(function(ti){var gi=ti.value%12,Ri=gi===0?"12":yn(gi,2);return(0,Un.Z)((0,Un.Z)({},ti),{},{label:Ri,value:gi})}):ul},[Ei,Wa,ul]),un=Ui(0,59,xi,Ua&&Ua(za)),jn=Ui(0,59,ei,ka&&ka(za,hs)),zn=Nr({value:Dn,generateConfig:rt,disabledMinutes:Ua,disabledSeconds:ka,minutes:un,seconds:jn,use12Hours:Ei});$t.current={onUpDown:function(gi){var Ri=la[sn];if(Ri)for(var Oi=Ri.units.findIndex(function(pr){return pr.value===Ri.value}),Bi=Ri.units.length,ir=1;ir<Bi;ir+=1){var Ti=Ri.units[(Oi+gi*ir+Bi)%Bi];if(Ti.disabled!==!0){Ri.onSelect(Ti.value);break}}}};function Rn(ti,gi,Ri,Oi,Bi){ti!==!1&&la.push({node:xe.cloneElement(gi,{prefixCls:va,value:Ri,active:sn===la.length,onSelect:Bi,units:Oi,hideDisabledOptions:oo}),onSelect:Bi,value:Ri,units:Oi})}Rn(On,xe.createElement(Ir,{key:"hour",type:"hour",info:{today:wa,locale:Ji,cellRender:to}}),Ba,mn,function(ti){ao(zn(Wa,ti,hs,Ma),"mouse")}),Rn(ii,xe.createElement(Ir,{key:"minute",type:"minute",info:{today:wa,locale:Ji,cellRender:to}}),hs,un,function(ti){ao(zn(Wa,Ba,ti,Ma),"mouse")}),Rn(ci,xe.createElement(Ir,{key:"second",type:"second",info:{today:wa,locale:Ji,cellRender:to}}),Ma,jn,function(ti){ao(zn(Wa,Ba,hs,ti),"mouse")});var yi=-1;return typeof Wa=="boolean"&&(yi=Wa?1:0),Rn(Ei===!0,xe.createElement(Ir,{key:"meridiem",type:"meridiem",info:{today:wa,locale:Ji,cellRender:to}}),yi,[{label:"AM",value:0,disabled:Yt},{label:"PM",value:1,disabled:Qt}],function(ti){ao(zn(!!ti,Ba,hs,Ma),"mouse")}),xe.createElement("div",{className:Qo},la.map(function(ti){var gi=ti.node;return gi}))}var An=Jr,Co=function(rt){return rt.filter(function(gt){return gt!==!1}).length};function Wn(Ue){var rt=Ue.generateConfig,gt=Ue.format,$t=gt===void 0?"HH:mm:ss":gt,sn=Ue.prefixCls,Dn=Ue.active,On=Ue.operationRef,ii=Ue.showHour,ci=Ue.showMinute,Ei=Ue.showSecond,Xi=Ue.use12Hours,wi=Xi===void 0?!1:Xi,zi=Ue.onSelect,xi=Ue.value,or="".concat(sn,"-time-panel"),ei=xe.useRef(),ji=xe.useState(-1),ar=(0,Gn.Z)(ji,2),eo=ar[0],Kr=ar[1],oo=Co([ii,ci,Ei,wi]);return On.current={onKeyDown:function(to){return er(to,{onLeftRight:function(la){Kr((eo+la+oo)%oo)},onUpDown:function(la){eo===-1?Kr(0):ei.current&&ei.current.onUpDown(la)},onEnter:function(){zi(xi||rt.getNow(),"key"),Kr(-1)}})},onBlur:function(){Kr(-1)}},xe.createElement("div",{className:xt()(or,(0,Lt.Z)({},"".concat(or,"-active"),Dn))},xe.createElement(Wi,(0,Ae.Z)({},Ue,{format:$t,prefixCls:sn})),xe.createElement(An,(0,Ae.Z)({},Ue,{prefixCls:sn,activeColumnIndex:eo,operationRef:ei})))}var Hr=Wn,ha=li("date","time");function yo(Ue){var rt=Ue.prefixCls,gt=Ue.operationRef,$t=Ue.generateConfig,sn=Ue.value,Dn=Ue.defaultValue,On=Ue.disabledTime,ii=Ue.showTime,ci=Ue.onSelect,Ei=Ue.cellRender,Xi="".concat(rt,"-datetime-panel"),wi=xe.useState(null),zi=(0,Gn.Z)(wi,2),xi=zi[0],or=zi[1],ei=xe.useRef({}),ji=xe.useRef({}),ar=(0,ot.Z)(ii)==="object"?(0,Un.Z)({},ii):{};function eo(to){var Ji=ha.indexOf(xi)+to,la=ha[Ji]||null;return la}var Kr=function(Ji){ji.current.onBlur&&ji.current.onBlur(Ji),or(null)};gt.current={onKeyDown:function(Ji){if(Ji.which===wn.Z.TAB){var la=eo(Ji.shiftKey?-1:1);return or(la),la&&Ji.preventDefault(),!0}if(xi){var Qo=xi==="date"?ei:ji;return Qo.current&&Qo.current.onKeyDown&&Qo.current.onKeyDown(Ji),!0}return[wn.Z.LEFT,wn.Z.RIGHT,wn.Z.UP,wn.Z.DOWN].includes(Ji.which)?(or("date"),!0):!1},onBlur:Kr,onClose:Kr};var oo=function(Ji,la){var Qo=Ji;la==="date"&&!sn&&ar.defaultValue?(Qo=$t.setHour(Qo,$t.getHour(ar.defaultValue)),Qo=$t.setMinute(Qo,$t.getMinute(ar.defaultValue)),Qo=$t.setSecond(Qo,$t.getSecond(ar.defaultValue))):la==="time"&&!sn&&Dn&&(Qo=$t.setYear(Qo,$t.getYear(Dn)),Qo=$t.setMonth(Qo,$t.getMonth(Dn)),Qo=$t.setDate(Qo,$t.getDate(Dn))),ci&&ci(Qo,"mouse")},ao=On?On(sn||null):{};return xe.createElement("div",{className:xt()(Xi,(0,Lt.Z)({},"".concat(Xi,"-active"),xi))},xe.createElement(Fi,(0,Ae.Z)({},Ue,{cellRender:Ei,operationRef:ei,active:xi==="date",onSelect:function(Ji){oo(Sn($t,Ji,!sn&&(0,ot.Z)(ii)==="object"?ii.defaultValue:null),"date")}})),xe.createElement(Hr,(0,Ae.Z)({},Ue,{cellRender:Ei?function(to,Ji){return Ei(to,(0,Un.Z)((0,Un.Z)({},Ji),{},{type:"time"}))}:void 0,format:void 0},ar,ao,{disabledTime:null,defaultValue:void 0,operationRef:ji,active:xi==="time",onSelect:function(Ji){oo(Ji,"time")}})))}var Ot=yo;function di(Ue){var rt=Ue.prefixCls,gt=Ue.generateConfig,$t=Ue.viewDate,sn=Ue.onPrevDecades,Dn=Ue.onNextDecades,On=xe.useContext(Tt),ii=On.hideHeader;if(ii)return null;var ci="".concat(rt,"-header"),Ei=gt.getYear($t),Xi=Math.floor(Ei/Ye)*Ye,wi=Xi+Ye-1;return xe.createElement(mi,(0,Ae.Z)({},Ue,{prefixCls:ci,onSuperPrev:sn,onSuperNext:Dn}),Xi,"-",wi)}var Mn=di,qn=3,Ar=4;function Sr(Ue){var rt=mt-1,gt=Ue.prefixCls,$t=Ue.viewDate,sn=Ue.generateConfig,Dn=Ue.cellRender,On=Ue.locale,ii="".concat(gt,"-cell"),ci=sn.getYear($t),Ei=Math.floor(ci/mt)*mt,Xi=Math.floor(ci/Ye)*Ye,wi=Xi+Ye-1,zi=sn.setYear($t,Xi-Math.ceil((qn*Ar*mt-Ye)/2)),xi=function(ji){var ar,eo=sn.getYear(ji),Kr=eo+rt;return ar={},(0,Lt.Z)(ar,"".concat(ii,"-in-view"),Xi<=eo&&Kr<=wi),(0,Lt.Z)(ar,"".concat(ii,"-selected"),eo===Ei),ar},or=Dn?function(ei,ji){return Dn(ei,{originNode:ji,today:sn.getNow(),type:"decade",locale:On})}:void 0;return xe.createElement(kn,(0,Ae.Z)({},Ue,{rowNum:Ar,colNum:qn,baseDate:zi,getCellNode:or,getCellText:function(ji){var ar=sn.getYear(ji);return"".concat(ar,"-").concat(ar+rt)},getCellClassName:xi,getCellDate:function(ji,ar){return sn.addYear(ji,ar*mt)}}))}var Kn=Sr;function qe(Ue){var rt=Ue.prefixCls,gt=Ue.onViewDateChange,$t=Ue.generateConfig,sn=Ue.viewDate,Dn=Ue.operationRef,On=Ue.onSelect,ii=Ue.onPanelChange,ci="".concat(rt,"-decade-panel");Dn.current={onKeyDown:function(zi){return er(zi,{onLeftRight:function(or){On($t.addYear(sn,or*mt),"key")},onCtrlLeftRight:function(or){On($t.addYear(sn,or*Ye),"key")},onUpDown:function(or){On($t.addYear(sn,or*mt*qn),"key")},onEnter:function(){ii("year",sn)}})}};var Ei=function(zi){var xi=$t.addYear(sn,zi*Ye);gt(xi),ii(null,xi)},Xi=function(zi){On(zi,"mouse"),ii("year",zi)};return xe.createElement("div",{className:ci},xe.createElement(Mn,(0,Ae.Z)({},Ue,{prefixCls:rt,onPrevDecades:function(){Ei(-1)},onNextDecades:function(){Ei(1)}})),xe.createElement(Kn,(0,Ae.Z)({},Ue,{prefixCls:rt,onSelect:Xi})))}var _i=qe;function uo(Ue){var rt=Ue.prefixCls,gt=Ue.generateConfig,$t=Ue.locale,sn=Ue.viewDate,Dn=Ue.onNextYear,On=Ue.onPrevYear,ii=Ue.onYearClick,ci=xe.useContext(Tt),Ei=ci.hideHeader;if(Ei)return null;var Xi="".concat(rt,"-header");return xe.createElement(mi,(0,Ae.Z)({},Ue,{prefixCls:Xi,onSuperPrev:On,onSuperNext:Dn}),xe.createElement("button",{type:"button",onClick:ii,className:"".concat(rt,"-year-btn")},Xt(sn,{locale:$t,format:$t.yearFormat,generateConfig:gt})))}var wr=uo,Uo=3,Er=4;function fr(Ue){var rt=Ue.prefixCls,gt=Ue.locale,$t=Ue.value,sn=Ue.viewDate,Dn=Ue.generateConfig,On=Ue.cellRender,ii=xe.useContext(Nn),ci=ii.rangedValue,Ei=ii.hoverRangedValue,Xi="".concat(rt,"-cell"),wi=Li({cellPrefixCls:Xi,value:$t,generateConfig:Dn,rangedValue:ci,hoverRangedValue:Ei,isSameCell:function(ji,ar){return ye(Dn,ji,ar)},isInView:function(){return!0},offsetCell:function(ji,ar){return Dn.addMonth(ji,ar)}}),zi=gt.shortMonths||(Dn.locale.getShortMonths?Dn.locale.getShortMonths(gt.locale):[]),xi=Dn.setMonth(sn,0),or=On?function(ei,ji){return On(ei,{originNode:ji,locale:gt,today:Dn.getNow(),type:"month"})}:void 0;return xe.createElement(kn,(0,Ae.Z)({},Ue,{rowNum:Er,colNum:Uo,baseDate:xi,getCellNode:or,getCellText:function(ji){return gt.monthFormat?Xt(ji,{locale:gt,format:gt.monthFormat,generateConfig:Dn}):zi[Dn.getMonth(ji)]},getCellClassName:wi,getCellDate:Dn.addMonth,titleCell:function(ji){return Xt(ji,{locale:gt,format:"YYYY-MM",generateConfig:Dn})}}))}var ho=fr;function ro(Ue){var rt=Ue.prefixCls,gt=Ue.operationRef,$t=Ue.onViewDateChange,sn=Ue.generateConfig,Dn=Ue.value,On=Ue.viewDate,ii=Ue.onPanelChange,ci=Ue.onSelect,Ei="".concat(rt,"-month-panel");gt.current={onKeyDown:function(zi){return er(zi,{onLeftRight:function(or){ci(sn.addMonth(Dn||On,or),"key")},onCtrlLeftRight:function(or){ci(sn.addYear(Dn||On,or),"key")},onUpDown:function(or){ci(sn.addMonth(Dn||On,or*Uo),"key")},onEnter:function(){ii("date",Dn||On)}})}};var Xi=function(zi){var xi=sn.addYear(On,zi);$t(xi),ii(null,xi)};return xe.createElement("div",{className:Ei},xe.createElement(wr,(0,Ae.Z)({},Ue,{prefixCls:rt,onPrevYear:function(){Xi(-1)},onNextYear:function(){Xi(1)},onYearClick:function(){ii("year",On)}})),xe.createElement(ho,(0,Ae.Z)({},Ue,{prefixCls:rt,onSelect:function(zi){ci(zi,"mouse"),ii("date",zi)}})))}var Gr=ro;function _o(Ue){var rt=Ue.prefixCls,gt=Ue.generateConfig,$t=Ue.locale,sn=Ue.viewDate,Dn=Ue.onNextYear,On=Ue.onPrevYear,ii=Ue.onYearClick,ci=xe.useContext(Tt),Ei=ci.hideHeader;if(Ei)return null;var Xi="".concat(rt,"-header");return xe.createElement(mi,(0,Ae.Z)({},Ue,{prefixCls:Xi,onSuperPrev:On,onSuperNext:Dn}),xe.createElement("button",{type:"button",onClick:ii,className:"".concat(rt,"-year-btn")},Xt(sn,{locale:$t,format:$t.yearFormat,generateConfig:gt})))}var lr=_o,$i=4,kr=1;function oi(Ue){var rt=Ue.prefixCls,gt=Ue.locale,$t=Ue.value,sn=Ue.viewDate,Dn=Ue.generateConfig,On=Ue.cellRender,ii=xe.useContext(Nn),ci=ii.rangedValue,Ei=ii.hoverRangedValue,Xi="".concat(rt,"-cell"),wi=Li({cellPrefixCls:Xi,value:$t,generateConfig:Dn,rangedValue:ci,hoverRangedValue:Ei,isSameCell:function(ei,ji){return we(Dn,ei,ji)},isInView:function(){return!0},offsetCell:function(ei,ji){return Dn.addMonth(ei,ji*3)}}),zi=Dn.setDate(Dn.setMonth(sn,0),1),xi=On?function(or,ei){return On(or,{originNode:ei,locale:gt,today:Dn.getNow(),type:"quarter"})}:void 0;return xe.createElement(kn,(0,Ae.Z)({},Ue,{rowNum:kr,colNum:$i,baseDate:zi,getCellNode:xi,getCellText:function(ei){return Xt(ei,{locale:gt,format:gt.quarterFormat||"[Q]Q",generateConfig:Dn})},getCellClassName:wi,getCellDate:function(ei,ji){return Dn.addMonth(ei,ji*3)},titleCell:function(ei){return Xt(ei,{locale:gt,format:"YYYY-[Q]Q",generateConfig:Dn})}}))}var Ao=oi;function Jo(Ue){var rt=Ue.prefixCls,gt=Ue.operationRef,$t=Ue.onViewDateChange,sn=Ue.generateConfig,Dn=Ue.value,On=Ue.viewDate,ii=Ue.onPanelChange,ci=Ue.onSelect,Ei="".concat(rt,"-quarter-panel");gt.current={onKeyDown:function(zi){return er(zi,{onLeftRight:function(or){ci(sn.addMonth(Dn||On,or*3),"key")},onCtrlLeftRight:function(or){ci(sn.addYear(Dn||On,or),"key")},onUpDown:function(or){ci(sn.addYear(Dn||On,or),"key")}})}};var Xi=function(zi){var xi=sn.addYear(On,zi);$t(xi),ii(null,xi)};return xe.createElement("div",{className:Ei},xe.createElement(lr,(0,Ae.Z)({},Ue,{prefixCls:rt,onPrevYear:function(){Xi(-1)},onNextYear:function(){Xi(1)},onYearClick:function(){ii("year",On)}})),xe.createElement(Ao,(0,Ae.Z)({},Ue,{prefixCls:rt,onSelect:function(zi){ci(zi,"mouse")}})))}var Fa=Jo;function na(Ue){var rt=Ue.prefixCls,gt=Ue.generateConfig,$t=Ue.locale,sn=Ue.value,Dn=Ue.disabledDate,On=Ue.onSelect,ii=xe.useContext(Nn),ci=ii.rangedValue,Ei=ii.hoverRangedValue,Xi=xe.useContext(Tt),wi=Xi.onDateMouseEnter,zi=Xi.onDateMouseLeave,xi=(Ei==null?void 0:Ei[0])||(ci==null?void 0:ci[0]),or=(Ei==null?void 0:Ei[1])||(ci==null?void 0:ci[1]),ei="".concat(rt,"-cell"),ji=function(oo){var ao=In({cellDate:oo,mode:"week",disabledDate:Dn,generateConfig:gt});return xe.createElement("td",{key:"week",className:xt()(ei,"".concat(ei,"-week")),onClick:function(){ao||On(oo,"mouse")},onMouseEnter:function(){!ao&&wi&&wi(oo)},onMouseLeave:function(){!ao&&zi&&zi(oo)}},xe.createElement("div",{className:"".concat(ei,"-inner")},gt.locale.getWeek($t.locale,oo)))},ar="".concat(rt,"-week-panel-row"),eo=function(oo){var ao,to=Fe(gt,$t.locale,xi,oo),Ji=Fe(gt,$t.locale,or,oo);return xt()(ar,(ao={},(0,Lt.Z)(ao,"".concat(ar,"-selected"),!ci&&Fe(gt,$t.locale,sn,oo)),(0,Lt.Z)(ao,"".concat(ar,"-range-start"),to),(0,Lt.Z)(ao,"".concat(ar,"-range-end"),Ji),(0,Lt.Z)(ao,"".concat(ar,"-range-hover"),!to&&!Ji&&tn(gt,xi,or,oo)),ao))};return xe.createElement(Fi,(0,Ae.Z)({},Ue,{panelName:"week",prefixColumn:ji,rowClassName:eo,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var ia=na,xa=10;function fo(Ue){var rt=Ue.prefixCls,gt=Ue.generateConfig,$t=Ue.viewDate,sn=Ue.onPrevDecade,Dn=Ue.onNextDecade,On=Ue.onDecadeClick,ii=xe.useContext(Tt),ci=ii.hideHeader;if(ci)return null;var Ei="".concat(rt,"-header"),Xi=gt.getYear($t),wi=Math.floor(Xi/xa)*xa,zi=wi+xa-1;return xe.createElement(mi,(0,Ae.Z)({},Ue,{prefixCls:Ei,onSuperPrev:sn,onSuperNext:Dn}),xe.createElement("button",{type:"button",onClick:On,className:"".concat(rt,"-decade-btn")},wi,"-",zi))}var qa=fo,bs=3,So=4;function Cn(Ue){var rt=Ue.prefixCls,gt=Ue.value,$t=Ue.viewDate,sn=Ue.locale,Dn=Ue.generateConfig,On=Ue.cellRender,ii=xe.useContext(Nn),ci=ii.rangedValue,Ei=ii.hoverRangedValue,Xi="".concat(rt,"-cell"),wi=Dn.getYear($t),zi=Math.floor(wi/xa)*xa,xi=zi+xa-1,or=Dn.setYear($t,zi-Math.ceil((bs*So-xa)/2)),ei=Dn.getNow(),ji=function(oo){var ao=Dn.getYear(oo);return zi<=ao&&ao<=xi},ar=Li({cellPrefixCls:Xi,value:gt,generateConfig:Dn,rangedValue:ci,hoverRangedValue:Ei,isSameCell:function(oo,ao){return nt(Dn,oo,ao)},isInView:ji,offsetCell:function(oo,ao){return Dn.addYear(oo,ao)}}),eo=On?function(Kr,oo){return On(Kr,{originNode:oo,today:ei,type:"year",locale:sn})}:void 0;return xe.createElement(kn,(0,Ae.Z)({},Ue,{rowNum:So,colNum:bs,baseDate:or,getCellNode:eo,getCellText:Dn.getYear,getCellClassName:ar,getCellDate:Dn.addYear,titleCell:function(oo){return Xt(oo,{locale:sn,format:"YYYY",generateConfig:Dn})}}))}var cs=Cn;function Ya(Ue){var rt=Ue.prefixCls,gt=Ue.operationRef,$t=Ue.onViewDateChange,sn=Ue.generateConfig,Dn=Ue.value,On=Ue.viewDate,ii=Ue.sourceMode,ci=Ue.onSelect,Ei=Ue.onPanelChange,Xi="".concat(rt,"-year-panel");gt.current={onKeyDown:function(xi){return er(xi,{onLeftRight:function(ei){ci(sn.addYear(Dn||On,ei),"key")},onCtrlLeftRight:function(ei){ci(sn.addYear(Dn||On,ei*xa),"key")},onUpDown:function(ei){ci(sn.addYear(Dn||On,ei*bs),"key")},onEnter:function(){Ei(ii==="date"?"date":"month",Dn||On)}})}};var wi=function(xi){var or=sn.addYear(On,xi*10);$t(or),Ei(null,or)};return xe.createElement("div",{className:Xi},xe.createElement(qa,(0,Ae.Z)({},Ue,{prefixCls:rt,onPrevDecade:function(){wi(-1)},onNextDecade:function(){wi(1)},onDecadeClick:function(){Ei("decade",On)}})),xe.createElement(cs,(0,Ae.Z)({},Ue,{prefixCls:rt,onSelect:function(xi){Ei(ii==="date"?"date":"month",xi),ci(xi,"mouse")}})))}var Ss=Ya;function Lo(Ue,rt,gt){return gt?xe.createElement("div",{className:"".concat(Ue,"-footer-extra")},gt(rt)):null}function fa(Ue){var rt=Ue.prefixCls,gt=Ue.components,$t=gt===void 0?{}:gt,sn=Ue.needConfirmButton,Dn=Ue.onNow,On=Ue.onOk,ii=Ue.okDisabled,ci=Ue.showNow,Ei=Ue.locale,Xi,wi;if(sn){var zi=$t.button||"button";Dn&&ci!==!1&&(Xi=xe.createElement("li",{className:"".concat(rt,"-now")},xe.createElement("a",{className:"".concat(rt,"-now-btn"),onClick:Dn},Ei.now))),wi=sn&&xe.createElement("li",{className:"".concat(rt,"-ok")},xe.createElement(zi,{disabled:ii,onClick:On},Ei.ok))}return!Xi&&!wi?null:xe.createElement("ul",{className:"".concat(rt,"-ranges")},Xi,wi)}var Pa=["date","month"];function sa(Ue){var rt,gt=Ue,$t=gt.prefixCls,sn=$t===void 0?"rc-picker":$t,Dn=gt.className,On=gt.style,ii=gt.locale,ci=gt.generateConfig,Ei=gt.value,Xi=gt.defaultValue,wi=gt.pickerValue,zi=gt.defaultPickerValue,xi=gt.disabledDate,or=gt.mode,ei=gt.picker,ji=ei===void 0?"date":ei,ar=gt.tabIndex,eo=ar===void 0?0:ar,Kr=gt.showNow,oo=gt.showTime,ao=gt.showToday,to=gt.renderExtraFooter,Ji=gt.hideHeader,la=gt.onSelect,Qo=gt.onChange,va=gt.onPanelChange,Wa=gt.onMouseDown,za=gt.onPickerValueChange,Ba=gt.onOk,hs=gt.components,Ma=gt.direction,wa=gt.hourStep,Na=wa===void 0?1:wa,rs=gt.minuteStep,fs=rs===void 0?1:rs,Ua=gt.secondStep,ka=Ua===void 0?1:Ua,Rs=gt.dateRender,ul=gt.monthCellRender,ut=gt.cellRender,St=ji==="date"&&!!oo||ji==="time",Yt=24%Na===0,Qt=60%fs===0,mn=60%ka===0,un=xe.useContext(Tt),jn=un.operationRef,zn=un.onSelect,Rn=un.hideRanges,yi=un.defaultOpenValue,ti=xe.useContext(Nn),gi=ti.inRange,Ri=ti.panelPosition,Oi=ti.rangedValue,Bi=ti.hoverRangedValue,ir=xe.useRef({}),Ti=xe.useRef(!0),pr=(0,ui.Z)(null,{value:Ei,defaultValue:Xi,postState:function(Hi){return!Hi&&yi&&ji==="time"?yi:Hi}}),cr=(0,Gn.Z)(pr,2),xr=cr[0],so=cr[1],Eo=(0,ui.Z)(null,{value:wi,defaultValue:zi||xr,postState:function(Hi){var Tr=ci.getNow();if(!Hi)return Tr;if(!xr&&oo){var Ko=(0,ot.Z)(oo)==="object"?oo.defaultValue:Xi;return Sn(ci,Array.isArray(Hi)?Hi[0]:Hi,Ko||Tr)}return Array.isArray(Hi)?Hi[0]:Hi}}),Mr=(0,Gn.Z)(Eo,2),Zr=Mr[0],jo=Mr[1],Pr=function(Hi){jo(Hi),za&&za(Hi)},_r=function(Hi){var Tr=ki[ji];return Tr?Tr(Hi):Hi},Lr=(0,ui.Z)(function(){return ji==="time"?"time":_r("date")},{value:or}),qi=(0,Gn.Z)(Lr,2),mr=qi[0],Qr=qi[1];xe.useEffect(function(){Qr(ji)},[ji]);var bo=xe.useState(function(){return mr}),Mo=(0,Gn.Z)(bo,2),vr=Mo[0],Ho=Mo[1],Xo=function(Hi,Tr){var Ko=_r(Hi||mr);Ho(mr),Qr(Ko),va&&(mr!==Ko||pt(ci,Zr,Zr))&&va(Tr,Ko)},ea=function(Hi,Tr){var Ko=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(mr===ji||Ko)&&(so(Hi),la&&la(Hi),zn&&zn(Hi,Tr),Qo&&!pt(ci,Hi,xr)&&!(xi!=null&&xi(Hi))&&Qo(Hi))},$o=function(Hi){if(Pa.includes(mr)){var Tr,Ko,ua=mr==="date";switch(Hi===wn.Z.PAGE_UP||Hi===wn.Z.PAGE_DOWN?Ko=ua?ci.addMonth:ci.addYear:Ko=ua?ci.addDate:ci.addMonth,Hi){case wn.Z.LEFT:case wn.Z.PAGE_UP:Tr=Ko(Zr,-1);break;case wn.Z.RIGHT:case wn.Z.PAGE_DOWN:Tr=Ko(Zr,1);break;case wn.Z.UP:case wn.Z.DOWN:Tr=Ko(Zr,Number("".concat(Hi===wn.Z.UP?"-":"").concat(ua?Zt:Uo)));break}if(Tr)return!(xi!=null&&xi(Tr))}return!0},Xa=function(Hi){if(ir.current&&ir.current.onKeyDown){var Tr=!0,Ko=Hi.which;if([wn.Z.LEFT,wn.Z.RIGHT,wn.Z.UP,wn.Z.DOWN,wn.Z.PAGE_UP,wn.Z.PAGE_DOWN,wn.Z.ENTER].includes(Ko)&&(Hi.preventDefault(),Ko!==wn.Z.ENTER&&eo===0&&(Tr=$o(Ko))),Tr)return ir.current.onKeyDown(Hi)}return(0,Ve.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},ga=function(Hi){ir.current&&ir.current.onBlur&&ir.current.onBlur(Hi)};jn&&Ri!=="right"&&(jn.current={onKeyDown:Xa,onClose:function(){ir.current&&ir.current.onClose&&ir.current.onClose()}}),xe.useEffect(function(){Ei&&!Ti.current&&jo(Ei)},[Ei]),xe.useEffect(function(){Ti.current=!1},[]);var Ro,po=fn({cellRender:ut,monthCellRender:ul,dateRender:Rs}),Bo=(0,Un.Z)((0,Un.Z)({},Ue),{},{cellRender:po,operationRef:ir,prefixCls:sn,viewDate:Zr,value:xr,onViewDateChange:Pr,sourceMode:vr,onPanelChange:Xo,disabledDate:xi});switch(delete Bo.onChange,delete Bo.onSelect,mr){case"decade":Ro=xe.createElement(_i,(0,Ae.Z)({},Bo,{onSelect:function(Hi,Tr){Pr(Hi),ea(Hi,Tr)}}));break;case"year":Ro=xe.createElement(Ss,(0,Ae.Z)({},Bo,{onSelect:function(Hi,Tr){Pr(Hi),ea(Hi,Tr)}}));break;case"month":Ro=xe.createElement(Gr,(0,Ae.Z)({},Bo,{onSelect:function(Hi,Tr){Pr(Hi),ea(Hi,Tr)}}));break;case"quarter":Ro=xe.createElement(Fa,(0,Ae.Z)({},Bo,{onSelect:function(Hi,Tr){Pr(Hi),ea(Hi,Tr)}}));break;case"week":Ro=xe.createElement(ia,(0,Ae.Z)({},Bo,{onSelect:function(Hi,Tr){Pr(Hi),ea(Hi,Tr)}}));break;case"time":delete Bo.showTime,Ro=xe.createElement(Hr,(0,Ae.Z)({},Bo,(0,ot.Z)(oo)==="object"?oo:null,{onSelect:function(Hi,Tr){Pr(Hi),ea(Hi,Tr)}}));break;default:oo?Ro=xe.createElement(Ot,(0,Ae.Z)({},Bo,{onSelect:function(Hi,Tr){Pr(Hi),ea(Hi,Tr)}})):Ro=xe.createElement(Fi,(0,Ae.Z)({},Bo,{onSelect:function(Hi,Tr){Pr(Hi),ea(Hi,Tr)}}))}var Ga,Ta,es=function(){var Hi=ci.getNow(),Tr=Fn(ci.getHour(Hi),ci.getMinute(Hi),ci.getSecond(Hi),Yt?Na:1,Qt?fs:1,mn?ka:1),Ko=on(ci,Hi,Tr[0],Tr[1],Tr[2]);ea(Ko,"submit")};Rn||(Ga=Lo(sn,mr,to),oo&&mr!=="date"?Ta=null:Ta=fa({prefixCls:sn,components:hs,needConfirmButton:St,okDisabled:!xr||xi&&xi(xr),locale:ii,showNow:Kr,onNow:St&&es,onOk:function(){xr&&(ea(xr,"submit",!0),Ba&&Ba(xr))}}));var To;if(ao&&mr==="date"&&ji==="date"&&!oo){var Po=ci.getNow(),zo="".concat(sn,"-today-btn"),co=xi&&xi(Po);To=xe.createElement("a",{className:xt()(zo,co&&"".concat(zo,"-disabled")),"aria-disabled":co,onClick:function(){co||ea(Po,"mouse",!0)}},ii.today)}return xe.createElement(Tt.Provider,{value:(0,Un.Z)((0,Un.Z)({},un),{},{mode:mr,hideHeader:"hideHeader"in Ue?Ji:un.hideHeader,hidePrevBtn:gi&&Ri==="right",hideNextBtn:gi&&Ri==="left"})},xe.createElement("div",{tabIndex:eo,className:xt()("".concat(sn,"-panel"),Dn,(rt={},(0,Lt.Z)(rt,"".concat(sn,"-panel-has-range"),Oi&&Oi[0]&&Oi[1]),(0,Lt.Z)(rt,"".concat(sn,"-panel-has-range-hover"),Bi&&Bi[0]&&Bi[1]),(0,Lt.Z)(rt,"".concat(sn,"-panel-rtl"),Ma==="rtl"),rt)),style:On,onKeyDown:Xa,onBlur:ga,onMouseDown:Wa},Ro,Ga||Ta||To?xe.createElement("div",{className:"".concat(sn,"-footer")},Ga,Ta,To):null))}var vo=sa,aa=he(35593),is={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 qr(Ue){var rt,gt=Ue.prefixCls,$t=Ue.popupElement,sn=Ue.popupStyle,Dn=Ue.visible,On=Ue.dropdownClassName,ii=Ue.dropdownAlign,ci=Ue.transitionName,Ei=Ue.getPopupContainer,Xi=Ue.children,wi=Ue.range,zi=Ue.popupPlacement,xi=Ue.direction,or="".concat(gt,"-dropdown"),ei=function(){return zi!==void 0?zi:xi==="rtl"?"bottomRight":"bottomLeft"};return xe.createElement(aa.Z,{showAction:[],hideAction:[],popupPlacement:ei(),builtinPlacements:is,prefixCls:or,popupTransitionName:ci,popup:$t,popupAlign:ii,popupVisible:Dn,popupClassName:xt()(On,(rt={},(0,Lt.Z)(rt,"".concat(or,"-range"),wi),(0,Lt.Z)(rt,"".concat(or,"-rtl"),xi==="rtl"),rt)),popupStyle:sn,getPopupContainer:Ei},Xi)}var gr=qr;function zr(Ue){var rt=Ue.prefixCls,gt=Ue.presets,$t=Ue.onClick,sn=Ue.onHover;return gt.length?xe.createElement("div",{className:"".concat(rt,"-presets")},xe.createElement("ul",null,gt.map(function(Dn,On){var ii=Dn.label,ci=Dn.value;return xe.createElement("li",{key:On,onClick:function(){return $t==null?void 0:$t(pi(ci))},onMouseEnter:function(){return sn==null?void 0:sn(pi(ci))},onMouseLeave:function(){return sn==null?void 0:sn(null)}},ii)}))):null}function Yn(Ue){var rt=Ue.picker,gt=Ue.disabledHours,$t=Ue.disabledMinutes,sn=Ue.disabledSeconds;rt==="time"&&(gt||$t||sn)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Fr(Ue,rt,gt){var $t=(0,ot.Z)(rt)==="object"?rt.clearIcon:gt;return $t||xe.createElement("span",{className:"".concat(Ue,"-clear-btn")})}function io(Ue){var rt,gt=Ue,$t=gt.prefixCls,sn=$t===void 0?"rc-picker":$t,Dn=gt.id,On=gt.name,ii=gt.tabIndex,ci=gt.style,Ei=gt.className,Xi=gt.dropdownClassName,wi=gt.dropdownAlign,zi=gt.popupStyle,xi=gt.transitionName,or=gt.generateConfig,ei=gt.locale,ji=gt.inputReadOnly,ar=gt.allowClear,eo=gt.autoFocus,Kr=gt.showTime,oo=gt.picker,ao=oo===void 0?"date":oo,to=gt.format,Ji=gt.use12Hours,la=gt.value,Qo=gt.defaultValue,va=gt.presets,Wa=gt.open,za=gt.defaultOpen,Ba=gt.defaultOpenValue,hs=gt.suffixIcon,Ma=gt.clearIcon,wa=gt.disabled,Na=gt.disabledDate,rs=gt.placeholder,fs=gt.getPopupContainer,Ua=gt.pickerRef,ka=gt.panelRender,Rs=gt.onChange,ul=gt.onOpenChange,ut=gt.onFocus,St=gt.onBlur,Yt=gt.onMouseDown,Qt=gt.onMouseUp,mn=gt.onMouseEnter,un=gt.onMouseLeave,jn=gt.onContextMenu,zn=gt.onClick,Rn=gt.onKeyDown,yi=gt.onSelect,ti=gt.direction,gi=gt.autoComplete,Ri=gi===void 0?"off":gi,Oi=gt.inputRender,Bi=gt.changeOnBlur,ir=xe.useRef(null),Ti=ao==="date"&&!!Kr||ao==="time",pr=Ut(va),cr=vn(ri(to,ao,Kr,Ji)),xr=xe.useRef(null),so=xe.useRef(null),Eo=xe.useRef(null),Mr=(0,ui.Z)(null,{value:la,defaultValue:Qo}),Zr=(0,Gn.Z)(Mr,2),jo=Zr[0],Pr=Zr[1],_r=xe.useState(jo),Lr=(0,Gn.Z)(_r,2),qi=Lr[0],mr=Lr[1],Qr=xe.useRef(null),bo=(0,ui.Z)(!1,{value:Wa,defaultValue:za,postState:function(Oo){return wa?!1:Oo},onChange:function(Oo){ul&&ul(Oo),!Oo&&Qr.current&&Qr.current.onClose&&Qr.current.onClose()}}),Mo=(0,Gn.Z)(bo,2),vr=Mo[0],Ho=Mo[1],Xo=$n(qi,{formatList:cr,generateConfig:or,locale:ei}),ea=(0,Gn.Z)(Xo,2),$o=ea[0],Xa=ea[1],ga=xn({valueTexts:$o,onTextChange:function(Oo){var Ls=Pn(Oo,{locale:ei,formatList:cr,generateConfig:or});Ls&&(!Na||!Na(Ls))&&mr(Ls)}}),Ro=(0,Gn.Z)(ga,3),po=Ro[0],Bo=Ro[1],Ga=Ro[2],Ta=function(Oo){mr(Oo),Pr(Oo),Rs&&!pt(or,jo,Oo)&&Rs(Oo,Oo?Xt(Oo,{generateConfig:or,locale:ei,format:cr[0]}):"")},es=function(Oo){wa&&Oo||Ho(Oo)},To=function(Oo){return vr&&Qr.current&&Qr.current.onKeyDown?Qr.current.onKeyDown(Oo):((0,Ve.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Po=function(){for(var Oo=arguments.length,Ls=new Array(Oo),Vs=0;Vs<Oo;Vs++)Ls[Vs]=arguments[Vs];zn==null||zn.apply(void 0,Ls),ir.current&&(ir.current.focus(),es(!0))},zo=function(Oo){Bi&&Ta(qi),St==null||St(Oo)},co=nn({blurToCancel:Ti,open:vr,value:po,triggerOpen:es,forwardKeyDown:To,isClickOutside:function(Oo){return!an([xr.current,so.current,Eo.current],Oo)},onSubmit:function(){return!qi||Na&&Na(qi)?!1:(Ta(qi),es(!1),Ga(),!0)},onCancel:function(){es(!1),mr(jo),Ga()},onKeyDown:function(Oo,Ls){Rn==null||Rn(Oo,Ls)},onFocus:ut,onBlur:zo,changeOnBlur:Bi}),Ur=(0,Gn.Z)(co,2),Hi=Ur[0],Tr=Ur[1],Ko=Tr.focused,ua=Tr.typing;xe.useEffect(function(){vr||(mr(jo),!$o.length||$o[0]===""?Bo(""):Xa!==po&&Ga())},[vr,$o]),xe.useEffect(function(){vr||Ga()},[ao]),xe.useEffect(function(){mr(jo)},[jo]),Ua&&(Ua.current={focus:function(){var Oo;(Oo=ir.current)===null||Oo===void 0||Oo.focus()},blur:function(){var Oo;(Oo=ir.current)===null||Oo===void 0||Oo.blur()}});var il=Pi(po,{formatList:cr,generateConfig:or,locale:ei}),zs=(0,Gn.Z)(il,3),yl=zs[0],Da=zs[1],Ka=zs[2],Fo=(0,Un.Z)((0,Un.Z)({},Ue),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Gs=xe.createElement("div",{className:"".concat(sn,"-panel-layout")},xe.createElement(zr,{prefixCls:sn,presets:pr,onClick:function(Oo){Ta(Oo),es(!1)}}),xe.createElement(vo,(0,Ae.Z)({},Fo,{generateConfig:or,className:xt()((0,Lt.Z)({},"".concat(sn,"-panel-focused"),!ua)),value:qi,locale:ei,tabIndex:-1,onSelect:function(Oo){yi==null||yi(Oo),mr(Oo)},direction:ti,onPanelChange:function(Oo,Ls){var Vs=Ue.onPanelChange;Ka(!0),Vs==null||Vs(Oo,Ls)}})));ka&&(Gs=ka(Gs));var Sl=xe.createElement("div",{className:"".concat(sn,"-panel-container"),ref:xr,onMouseDown:function(Oo){Oo.preventDefault()}},Gs),ja;hs&&(ja=xe.createElement("span",{className:"".concat(sn,"-suffix"),onMouseDown:function(Oo){Oo.preventDefault()}},hs));var _a=Fr(sn,ar,Ma),ts=xe.createElement("span",{onMouseDown:function(Oo){Oo.preventDefault(),Oo.stopPropagation()},onMouseUp:function(Oo){Oo.preventDefault(),Oo.stopPropagation(),Ta(null),es(!1)},className:"".concat(sn,"-clear"),role:"button"},_a),ws=!!ar&&jo&&!wa,Ks=(0,Un.Z)((0,Un.Z)((0,Un.Z)({id:Dn,tabIndex:ii,disabled:wa,readOnly:ji||typeof cr[0]=="function"||!ua,value:yl||po,onChange:function(Oo){Bo(Oo.target.value)},autoFocus:eo,placeholder:rs,ref:ir,title:po},Hi),{},{size:tr(ao,cr[0],or),name:On},(0,Ln.Z)(Ue,{aria:!0,data:!0})),{},{autoComplete:Ri}),ya=Oi?Oi(Ks):xe.createElement("input",Ks),os=function(Oo,Ls){(Ls==="submit"||Ls!=="key"&&!Ti)&&(Ta(Oo),es(!1))},_s=ti==="rtl"?"bottomRight":"bottomLeft";return xe.createElement(Tt.Provider,{value:{operationRef:Qr,hideHeader:ao==="time",onSelect:os,open:vr,defaultOpenValue:Ba,onDateMouseEnter:Da,onDateMouseLeave:Ka}},xe.createElement(gr,{visible:vr,popupElement:Sl,popupStyle:zi,prefixCls:sn,dropdownClassName:Xi,dropdownAlign:wi,getPopupContainer:fs,transitionName:xi,popupPlacement:_s,direction:ti},xe.createElement("div",{ref:Eo,className:xt()(sn,Ei,(rt={},(0,Lt.Z)(rt,"".concat(sn,"-disabled"),wa),(0,Lt.Z)(rt,"".concat(sn,"-focused"),Ko),(0,Lt.Z)(rt,"".concat(sn,"-rtl"),ti==="rtl"),rt)),style:ci,onMouseDown:Yt,onMouseUp:Qt,onMouseEnter:mn,onMouseLeave:un,onContextMenu:jn,onClick:Po},xe.createElement("div",{className:xt()("".concat(sn,"-input"),(0,Lt.Z)({},"".concat(sn,"-input-placeholder"),!!yl)),ref:so},ya,ja,ws&&ts))))}var qo=function(Ue){(0,pn.Z)(gt,Ue);var rt=(0,_n.Z)(gt);function gt(){var $t;(0,Bt.Z)(this,gt);for(var sn=arguments.length,Dn=new Array(sn),On=0;On<sn;On++)Dn[On]=arguments[On];return $t=rt.call.apply(rt,[this].concat(Dn)),(0,Lt.Z)((0,Hn.Z)($t),"pickerRef",xe.createRef()),(0,Lt.Z)((0,Hn.Z)($t),"focus",function(){$t.pickerRef.current&&$t.pickerRef.current.focus()}),(0,Lt.Z)((0,Hn.Z)($t),"blur",function(){$t.pickerRef.current&&$t.pickerRef.current.blur()}),$t}return(0,rn.Z)(gt,[{key:"render",value:function(){return xe.createElement(io,(0,Ae.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),gt}(xe.Component),Xs=qo;function Kl(Ue,rt){var gt=Ue.picker,$t=Ue.locale,sn=Ue.selectedValue,Dn=Ue.disabledDate,On=Ue.disabled,ii=Ue.generateConfig,ci=at(sn,0),Ei=at(sn,1);function Xi(ei){return ii.locale.getWeekFirstDate($t.locale,ei)}function wi(ei){var ji=ii.getYear(ei),ar=ii.getMonth(ei);return ji*100+ar}function zi(ei){var ji=ii.getYear(ei),ar=Oe(ii,ei);return ji*10+ar}var xi=xe.useCallback(function(ei){if(On[0]||Dn&&Dn(ei))return!0;if(On[1]&&Ei)return!ke(ii,ei,Ei)&&ii.isAfter(ei,Ei);if(!rt&&Ei)switch(gt){case"quarter":return zi(ei)>zi(Ei);case"month":return wi(ei)>wi(Ei);case"week":return Xi(ei)>Xi(Ei);default:return!ke(ii,ei,Ei)&&ii.isAfter(ei,Ei)}return!1},[Dn,On[1],Ei,rt]),or=xe.useCallback(function(ei){if(On[1]||Dn&&Dn(ei))return!0;if(On[0]&&ci)return!ke(ii,ei,Ei)&&ii.isAfter(ci,ei);if(!rt&&ci)switch(gt){case"quarter":return zi(ei)<zi(ci);case"month":return wi(ei)<wi(ci);case"week":return Xi(ei)<Xi(ci);default:return!ke(ii,ei,ci)&&ii.isAfter(ci,ei)}return!1},[Dn,On[0],ci,rt]);return[xi,or]}var Zi=he(80764),$a=he(8107);function As(Ue,rt,gt,$t,sn,Dn,On,ii,ci,Ei){var Xi=xe.useState(!1),wi=(0,Gn.Z)(Xi,2),zi=wi[0],xi=wi[1],or=(0,Zi.useMergedState)(Ue||!1,{value:rt}),ei=(0,Gn.Z)(or,2),ji=ei[0],ar=ei[1],eo=(0,Zi.useMergedState)(Ue||!1,{value:rt,onChange:function(Na){Ei==null||Ei(Na)}}),Kr=(0,Gn.Z)(eo,2),oo=Kr[0],ao=Kr[1],to=(0,Zi.useMergedState)(0,{value:gt}),Ji=(0,Gn.Z)(to,2),la=Ji[0],Qo=Ji[1],va=xe.useState(null),Wa=(0,Gn.Z)(va,2),za=Wa[0],Ba=Wa[1];xe.useEffect(function(){oo&&xi(!0)},[oo]);var hs=function(Na){return Na===0?1:0},Ma=(0,$a.Z)(function(wa,Na,rs){if(Na===!1)ao(wa);else if(wa){Qo(Na),ao(wa);var fs=hs(Na);!oo||![On,ii][fs]?Ba(fs):(xi(!1),za!==null&&Ba(null))}else if(rs==="confirm"||rs==="blur"&&$t){var Ua=ji?hs(Na):za;Ua!==null&&(xi(!1),Qo(Ua)),Ba(null),Ua!==null&&!ci[Ua]?(0,Ai.Z)(function(){var ka,Rs=[sn,Dn][Ua];(ka=Rs.current)===null||ka===void 0||ka.focus()}):ao(!1)}else ao(!1),ar(!1)});return[oo,la,zi,Ma]}function Rl(Ue,rt,gt,$t){var sn=wt(Ue,gt,$t,1);function Dn(On){return On(Ue,rt)?"same":On(sn,rt)?"closing":"far"}switch(gt){case"year":return Dn(function(On,ii){return ft($t,On,ii)});case"quarter":case"month":return Dn(function(On,ii){return nt($t,On,ii)});default:return Dn(function(On,ii){return ye($t,On,ii)})}}function zl(Ue,rt,gt,$t){var sn=at(Ue,0),Dn=at(Ue,1);if(rt===0)return sn;if(sn&&Dn){var On=Rl(sn,Dn,gt,$t);switch(On){case"same":return sn;case"closing":return sn;default:return wt(Dn,gt,$t,-1)}}return sn}function Vl(Ue){var rt=Ue.values,gt=Ue.picker,$t=Ue.defaultDates,sn=Ue.generateConfig,Dn=xe.useState(function(){return[at($t,0),at($t,1)]}),On=(0,Gn.Z)(Dn,2),ii=On[0],ci=On[1],Ei=xe.useState(null),Xi=(0,Gn.Z)(Ei,2),wi=Xi[0],zi=Xi[1],xi=at(rt,0),or=at(rt,1);function ei(ar){return ii[ar]?ii[ar]:at(wi,ar)||zl(rt,ar,gt,sn)||xi||or||sn.getNow()}function ji(ar,eo){if(ar){var Kr=Bn(wi,ar,eo);ci(Bn(ii,null,eo)||[null,null]);var oo=(eo+1)%2;at(rt,oo)||(Kr=Bn(Kr,ar,oo)),zi(Kr)}else(xi||or)&&zi(null)}return[ei,ji]}function xo(Ue,rt){return Ue&&Ue[0]&&Ue[1]&&rt.isAfter(Ue[0],Ue[1])?[Ue[1],Ue[0]]:Ue}function Vu(Ue,rt,gt,$t){return!!(Ue||$t&&$t[rt]||gt[(rt+1)%2])}function Ll(Ue){var rt,gt,$t,sn=Ue,Dn=sn.prefixCls,On=Dn===void 0?"rc-picker":Dn,ii=sn.id,ci=sn.style,Ei=sn.className,Xi=sn.popupStyle,wi=sn.dropdownClassName,zi=sn.transitionName,xi=sn.dropdownAlign,or=sn.getPopupContainer,ei=sn.generateConfig,ji=sn.locale,ar=sn.placeholder,eo=sn.autoFocus,Kr=sn.disabled,oo=sn.format,ao=sn.picker,to=ao===void 0?"date":ao,Ji=sn.showTime,la=sn.use12Hours,Qo=sn.separator,va=Qo===void 0?"~":Qo,Wa=sn.value,za=sn.defaultValue,Ba=sn.defaultPickerValue,hs=sn.open,Ma=sn.defaultOpen,wa=sn.disabledDate,Na=sn.disabledTime,rs=sn.dateRender,fs=sn.monthCellRender,Ua=sn.cellRender,ka=sn.panelRender,Rs=sn.presets,ul=sn.ranges,ut=sn.allowEmpty,St=sn.allowClear,Yt=sn.suffixIcon,Qt=sn.clearIcon,mn=sn.pickerRef,un=sn.inputReadOnly,jn=sn.mode,zn=sn.renderExtraFooter,Rn=sn.onChange,yi=sn.onOpenChange,ti=sn.onPanelChange,gi=sn.onCalendarChange,Ri=sn.onFocus,Oi=sn.onBlur,Bi=sn.onMouseDown,ir=sn.onMouseUp,Ti=sn.onMouseEnter,pr=sn.onMouseLeave,cr=sn.onClick,xr=sn.onOk,so=sn.onKeyDown,Eo=sn.components,Mr=sn.order,Zr=sn.direction,jo=sn.activePickerIndex,Pr=sn.autoComplete,_r=Pr===void 0?"off":Pr,Lr=sn.changeOnBlur,qi=to==="date"&&!!Ji||to==="time",mr=(0,xe.useRef)(null),Qr=(0,xe.useRef)(null),bo=(0,xe.useRef)(null),Mo=(0,xe.useRef)(null),vr=(0,xe.useRef)(null),Ho=(0,xe.useRef)(null),Xo=(0,xe.useRef)(null),ea=(0,xe.useRef)(null),$o=vn(ri(oo,to,Ji,la)),Xa=(0,xe.useRef)(null),ga=xe.useMemo(function(){return Array.isArray(Kr)?Kr:[Kr||!1,Kr||!1]},[Kr]),Ro=(0,ui.Z)(null,{value:Wa,defaultValue:za,postState:function(Zo){return to==="time"&&!Mr?Zo:xo(Zo,ei)}}),po=(0,Gn.Z)(Ro,2),Bo=po[0],Ga=po[1],Ta=Vl({values:Bo,picker:to,defaultDates:Ba,generateConfig:ei}),es=(0,Gn.Z)(Ta,2),To=es[0],Po=es[1],zo=(0,ui.Z)(Bo,{postState:function(Zo){var ca=Zo;if(ga[0]&&ga[1])return ca;for(var ns=0;ns<2;ns+=1)ga[ns]&&!ca&&!at(ca,ns)&&!at(ut,ns)&&(ca=Bn(ca,ei.getNow(),ns));return ca}}),co=(0,Gn.Z)(zo,2),Ur=co[0],Hi=co[1],Tr=(0,ui.Z)([to,to],{value:jn}),Ko=(0,Gn.Z)(Tr,2),ua=Ko[0],il=Ko[1];(0,xe.useEffect)(function(){il([to,to])},[to]);var zs=function(Zo,ca){il(Zo),ti&&ti(ca,Zo)},yl=As(Ma,hs,jo,Lr,Ho,Xo,at(Ur,0),at(Ur,1),ga,yi),Da=(0,Gn.Z)(yl,4),Ka=Da[0],Fo=Da[1],Gs=Da[2],Sl=Da[3],ja=Ka&&Fo===0,_a=Ka&&Fo===1,ts=Kl({picker:to,selectedValue:Ur,locale:ji,disabled:ga,disabledDate:wa,generateConfig:ei},!Ka||Gs),ws=(0,Gn.Z)(ts,2),Ks=ws[0],ya=ws[1],os=(0,xe.useState)(0),_s=(0,Gn.Z)(os,2),Va=_s[0],Oo=_s[1];(0,xe.useEffect)(function(){!Ka&&mr.current&&Oo(mr.current.offsetWidth)},[Ka]);function Ls(ss){Sl(!0,ss,"open"),(0,Ai.Z)(function(){var Zo,ca=[Ho,Xo][ss];(Zo=ca.current)===null||Zo===void 0||Zo.focus()},0)}function Vs(ss,Zo){var ca=ss,ns=at(ca,0),ol=at(ca,1);ns&&ol&&ei.isAfter(ns,ol)&&(to==="week"&&!Fe(ei,ji.locale,ns,ol)||to==="quarter"&&!we(ei,ns,ol)||to!=="week"&&to!=="quarter"&&to!=="time"&&!ke(ei,ns,ol)?Zo===0?(ca=[ns,null],ol=null):(ns=null,ca=[null,ol]):(to!=="time"||Mr!==!1)&&(ca=xo(ca,ei))),Hi(ca);var ld=ca&&ca[0]?Xt(ca[0],{generateConfig:ei,locale:ji,format:$o[0]}):"",Xl=ca&&ca[1]?Xt(ca[1],{generateConfig:ei,locale:ji,format:$o[0]}):"";if(gi){var Kc={range:Zo===0?"start":"end"};gi(ca,[ld,Xl],Kc)}var mc=Vu(ns,0,ga,ut),hh=Vu(ol,1,ga,ut),Vc=ca===null||mc&&hh;Vc&&(Ga(ca),Rn&&(!pt(ei,at(Bo,0),ns)||!pt(ei,at(Bo,1),ol))&&Rn(ca,[ld,Xl]))}var Mu=function(Zo){return Ka&&Xa.current&&Xa.current.onKeyDown?Xa.current.onKeyDown(Zo):((0,Ve.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},su={formatList:$o,generateConfig:ei,locale:ji},Ja=$n(at(Ur,0),su),xl=(0,Gn.Z)(Ja,2),ys=xl[0],gs=xl[1],mu=$n(at(Ur,1),su),fc=(0,Gn.Z)(mu,2),Yl=fc[0],Ju=fc[1],Qu=function(Zo,ca){var ns=Pn(Zo,{locale:ji,formatList:$o,generateConfig:ei}),ol=ca===0?Ks:ya;ns&&!ol(ns)&&(Hi(Bn(Ur,ns,ca)),Po(ns,ca))},lu=xn({valueTexts:ys,onTextChange:function(Zo){return Qu(Zo,0)}}),Oa=(0,Gn.Z)(lu,3),as=Oa[0],Js=Oa[1],ps=Oa[2],Ia=xn({valueTexts:Yl,onTextChange:function(Zo){return Qu(Zo,1)}}),Qs=(0,Gn.Z)(Ia,3),Bl=Qs[0],Lu=Qs[1],ah=Qs[2],cn=(0,xe.useState)(null),Mc=(0,Gn.Z)(cn,2),gc=Mc[0],Rh=Mc[1],vd=(0,xe.useState)(null),Hc=(0,Gn.Z)(vd,2),Lc=Hc[0],ff=Hc[1],bl=Pi(as,{formatList:$o,generateConfig:ei,locale:ji}),od=(0,Gn.Z)(bl,3),Od=od[0],Id=od[1],Rd=od[2],gf=Pi(Bl,{formatList:$o,generateConfig:ei,locale:ji}),zd=(0,Gn.Z)(gf,3),jd=zd[0],vu=zd[1],Wc=zd[2],zh=function(Zo){ff(Bn(Ur,Zo,Fo)),Fo===0?Id(Zo):vu(Zo)},$u=function(){ff(Bn(Ur,null,Fo)),Fo===0?Rd():Wc()},Zc=xe.useState(Ka),ad=(0,Gn.Z)(Zc,2),sd=ad[0],Ul=ad[1];xe.useEffect(function(){Ul(Ka)},[Ka]);var sh=function(Zo){if(Lr&&sd){var ca=at(Ur,Fo);ca&&Vs(Ur,Fo)}return Oi==null?void 0:Oi(Zo)},Hd=function(Zo,ca){return{blurToCancel:!Lr&&qi,forwardKeyDown:Mu,onBlur:sh,isClickOutside:function(ol){return!an([Qr.current,bo.current,Mo.current,mr.current],ol)},onFocus:function(ol){Ri&&Ri(ol)},triggerOpen:function(ol){ol?Sl(ol,Zo,"open"):Sl(ol,at(Ur,Zo)?Zo:!1,"blur")},onSubmit:function(){if(!Ur||wa&&wa(Ur[Zo]))return!1;Vs(Ur,Zo),ca(),Sl(!1,Fo,"confirm")},onCancel:function(){Sl(!1,Zo,"cancel"),Hi(Bo),ca()}}},uu={onKeyDown:function(Zo,ca){so==null||so(Zo,ca)},changeOnBlur:Lr},yd=nn((0,Un.Z)((0,Un.Z)({},Hd(0,ps)),{},{open:ja,value:as},uu)),Wd=(0,Gn.Z)(yd,2),lh=Wd[0],Fc=Wd[1],Nl=Fc.focused,Zd=Fc.typing,rl=nn((0,Un.Z)((0,Un.Z)({},Hd(1,ah)),{},{open:_a,value:Bl},uu)),Za=(0,Gn.Z)(rl,2),Cs=Za[0],Al=Za[1],yu=Al.focused,Su=Al.typing,uh=function(Zo){cr&&cr(Zo),!Ka&&!Ho.current.contains(Zo.target)&&!Xo.current.contains(Zo.target)&&(ga[0]?ga[1]||Ls(1):Ls(0))},Gc=function(Zo){Bi&&Bi(Zo),Ka&&(Nl||yu)&&!Ho.current.contains(Zo.target)&&!Xo.current.contains(Zo.target)&&Zo.preventDefault()},Gd=Bo&&Bo[0]?Xt(Bo[0],{locale:ji,format:"YYYYMMDDHHmmss",generateConfig:ei}):"",Iu=Bo&&Bo[1]?Xt(Bo[1],{locale:ji,format:"YYYYMMDDHHmmss",generateConfig:ei}):"";(0,xe.useEffect)(function(){Ka||(Hi(Bo),!ys.length||ys[0]===""?Js(""):gs!==as&&ps(),!Yl.length||Yl[0]===""?Lu(""):Ju!==Bl&&ah())},[Ka,ys,Yl]),(0,xe.useEffect)(function(){Hi(Bo)},[Gd,Iu]);var qu=fn({cellRender:Ua,monthCellRender:fs,dateRender:rs}),pf=xe.useMemo(function(){if(qu)return function(ss,Zo){return qu(ss,(0,Un.Z)((0,Un.Z)({},Zo),{},{range:Fo?"end":"start"}))}},[Fo,qu]);mn&&(mn.current={focus:function(){Ho.current&&Ho.current.focus()},blur:function(){Ho.current&&Ho.current.blur(),Xo.current&&Xo.current.blur()}});var mf=Ut(Rs,ul);function ch(){var ss=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Zo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ca=null;Ka&&Lc&&Lc[0]&&Lc[1]&&ei.isAfter(Lc[1],Lc[0])&&(ca=Lc);var ns=Ji;if(Ji&&(0,ot.Z)(Ji)==="object"&&Ji.defaultValue){var ol=Ji.defaultValue;ns=(0,Un.Z)((0,Un.Z)({},Ji),{},{defaultValue:at(ol,Fo)||void 0})}return xe.createElement(Nn.Provider,{value:{inRange:!0,panelPosition:ss,rangedValue:gc||Ur,hoverRangedValue:ca}},xe.createElement(vo,(0,Ae.Z)({},Ue,Zo,{cellRender:pf,showTime:ns,mode:ua[Fo],generateConfig:ei,style:void 0,direction:Zr,disabledDate:Fo===0?Ks:ya,disabledTime:function(Xl){return Na?Na(Xl,Fo===0?"start":"end"):!1},className:xt()((0,Lt.Z)({},"".concat(On,"-panel-focused"),Fo===0?!Zd:!Su)),value:at(Ur,Fo),locale:ji,tabIndex:-1,onPanelChange:function(Xl,Kc){Fo===0&&Rd(!0),Fo===1&&Wc(!0),zs(Bn(ua,Kc,Fo),Bn(Ur,Xl,Fo));var mc=Xl;ss==="right"&&ua[Fo]===Kc&&(mc=wt(mc,Kc,ei,-1)),Po(mc,Fo)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Fo===0?at(Ur,1):at(Ur,0)})))}var Ru=0,vf=0;if(Fo&&bo.current&&vr.current&&Qr.current&&ea.current){Ru=bo.current.offsetWidth+vr.current.offsetWidth;var Zf=ea.current.offsetLeft>Ru?ea.current.offsetLeft-Ru:ea.current.offsetLeft,yf=Qr.current.offsetWidth,pc=ea.current.offsetWidth;yf&&pc&&Ru>yf-pc-(Zr==="rtl"?0:Zf)&&(vf=Ru)}var xg=Zr==="rtl"?{right:Ru}:{left:Ru};function Gf(){var ss,Zo=Lo(On,ua[Fo],zn),ca=fa({prefixCls:On,components:Eo,needConfirmButton:qi,okDisabled:!at(Ur,Fo)||wa&&wa(Ur[Fo]),locale:ji,onOk:function(){var vc=at(Ur,Fo);vc&&(Vs(Ur,Fo),xr==null||xr(Ur),Sl(!1,Fo,"confirm"))}});if(to!=="time"&&!Ji){var ns=To(Fo),ol=wt(ns,to,ei),ld=ua[Fo],Xl=ld===to,Kc=ch(Xl?"left":!1,{pickerValue:ns,onPickerValueChange:function(vc){Po(vc,Fo)}}),mc=ch("right",{pickerValue:ol,onPickerValueChange:function(vc){Po(wt(vc,to,ei,-1),Fo)}});Zr==="rtl"?ss=xe.createElement(xe.Fragment,null,mc,Xl&&Kc):ss=xe.createElement(xe.Fragment,null,Kc,Xl&&mc)}else ss=ch();var hh=xe.createElement("div",{className:"".concat(On,"-panel-layout")},xe.createElement(zr,{prefixCls:On,presets:mf,onClick:function(vc){Vs(vc,null),Sl(!1,Fo,"preset")},onHover:function(vc){Rh(vc)}}),xe.createElement("div",null,xe.createElement("div",{className:"".concat(On,"-panels")},ss),(Zo||ca)&&xe.createElement("div",{className:"".concat(On,"-footer")},Zo,ca)));return ka&&(hh=ka(hh)),xe.createElement("div",{className:"".concat(On,"-panel-container"),style:{marginLeft:vf},ref:Qr,onMouseDown:function(vc){vc.preventDefault()}},hh)}var dh=xe.createElement("div",{className:xt()("".concat(On,"-range-wrapper"),"".concat(On,"-").concat(to,"-range-wrapper")),style:{minWidth:Va}},xe.createElement("div",{ref:ea,className:"".concat(On,"-range-arrow"),style:xg}),Gf()),Sd;Yt&&(Sd=xe.createElement("span",{className:"".concat(On,"-suffix"),onMouseDown:function(Zo){Zo.preventDefault()}},Yt));var Kf=Fr(On,St,Qt),Dc=xe.createElement("span",{onMouseDown:function(Zo){Zo.preventDefault(),Zo.stopPropagation()},onMouseUp:function(Zo){Zo.preventDefault(),Zo.stopPropagation();var ca=Bo;ga[0]||(ca=Bn(ca,null,0)),ga[1]||(ca=Bn(ca,null,1)),Vs(ca,null),Sl(!1,Fo,"clear")},className:"".concat(On,"-clear"),role:"button"},Kf),Vf=St&&(at(Bo,0)&&!ga[0]||at(Bo,1)&&!ga[1]),jh={size:tr(to,$o[0],ei)},Sf=0,Hh=0;bo.current&&Mo.current&&vr.current&&(Fo===0?Hh=bo.current.offsetWidth:(Sf=Ru,Hh=Mo.current.offsetWidth));var Yf=Zr==="rtl"?{right:Sf}:{left:Sf},lp=function(Zo,ca){var ns=Bn(Ur,Zo,Fo);if(ca==="submit"||ca!=="key"&&!qi){Vs(ns,Fo),Fo===0?Rd():Wc();var ol=Fo===0?1:0;ga[ol]?Sl(!1,!1,"confirm"):Sl(!1,Fo,"confirm")}else Hi(ns)};return xe.createElement(Tt.Provider,{value:{operationRef:Xa,hideHeader:to==="time",onDateMouseEnter:zh,onDateMouseLeave:$u,hideRanges:!0,onSelect:lp,open:Ka}},xe.createElement(gr,{visible:Ka,popupElement:dh,popupStyle:Xi,prefixCls:On,dropdownClassName:wi,dropdownAlign:xi,getPopupContainer:or,transitionName:zi,range:!0,direction:Zr},xe.createElement("div",(0,Ae.Z)({ref:mr,className:xt()(On,"".concat(On,"-range"),Ei,(rt={},(0,Lt.Z)(rt,"".concat(On,"-disabled"),ga[0]&&ga[1]),(0,Lt.Z)(rt,"".concat(On,"-focused"),Fo===0?Nl:yu),(0,Lt.Z)(rt,"".concat(On,"-rtl"),Zr==="rtl"),rt)),style:ci,onClick:uh,onMouseEnter:Ti,onMouseLeave:pr,onMouseDown:Gc,onMouseUp:ir},(0,Ln.Z)(Ue,{aria:!0,data:!0})),xe.createElement("div",{className:xt()("".concat(On,"-input"),(gt={},(0,Lt.Z)(gt,"".concat(On,"-input-active"),Fo===0),(0,Lt.Z)(gt,"".concat(On,"-input-placeholder"),!!Od),gt)),ref:bo},xe.createElement("input",(0,Ae.Z)({id:ii,disabled:ga[0],readOnly:un||typeof $o[0]=="function"||!Zd,value:Od||as,onChange:function(Zo){Js(Zo.target.value)},autoFocus:eo,placeholder:at(ar,0)||"",ref:Ho},lh,jh,{autoComplete:_r}))),xe.createElement("div",{className:"".concat(On,"-range-separator"),ref:vr},va),xe.createElement("div",{className:xt()("".concat(On,"-input"),($t={},(0,Lt.Z)($t,"".concat(On,"-input-active"),Fo===1),(0,Lt.Z)($t,"".concat(On,"-input-placeholder"),!!jd),$t)),ref:Mo},xe.createElement("input",(0,Ae.Z)({disabled:ga[1],readOnly:un||typeof $o[0]=="function"||!Su,value:jd||Bl,onChange:function(Zo){Lu(Zo.target.value)},placeholder:at(ar,1)||"",ref:Xo},Cs,jh,{autoComplete:_r}))),xe.createElement("div",{className:"".concat(On,"-active-bar"),style:(0,Un.Z)((0,Un.Z)({},Yf),{},{width:Hh,position:"absolute"})}),Sd,Vf&&Dc)))}var Xr=function(Ue){(0,pn.Z)(gt,Ue);var rt=(0,_n.Z)(gt);function gt(){var $t;(0,Bt.Z)(this,gt);for(var sn=arguments.length,Dn=new Array(sn),On=0;On<sn;On++)Dn[On]=arguments[On];return $t=rt.call.apply(rt,[this].concat(Dn)),(0,Lt.Z)((0,Hn.Z)($t),"pickerRef",xe.createRef()),(0,Lt.Z)((0,Hn.Z)($t),"focus",function(){$t.pickerRef.current&&$t.pickerRef.current.focus()}),(0,Lt.Z)((0,Hn.Z)($t),"blur",function(){$t.pickerRef.current&&$t.pickerRef.current.blur()}),$t}return(0,rn.Z)(gt,[{key:"render",value:function(){return xe.createElement(Ll,(0,Ae.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),gt}(xe.Component),pa=Xr,hl=Xs,tl=he(19080),fl=he(36355),wl=he(1684),Yu=he(19716),uc=he(32441),Uu=he(9763),Xu=he(33234),_u=he(48183),xs=he(64993),ll=he(9937),Cl=he(17313),Fl=he(47585),nd=he(74207),Au=he(13826),Yo=he(92899),Aa=he(37613),El=he(83116);const Ns=(Ue,rt,gt,$t)=>{const{lineHeight:sn}=Ue,Dn=Math.floor(gt*sn)+2,On=Math.max((rt-Dn)/2,0),ii=Math.max(rt-Dn-On,0);return{padding:`${On}px ${$t}px ${ii}px`}},ks=Ue=>{const{componentCls:rt,pickerCellCls:gt,pickerCellInnerCls:$t,cellHeight:sn,motionDurationSlow:Dn,borderRadiusSM:On,motionDurationMid:ii,cellHoverBg:ci,lineWidth:Ei,lineType:Xi,colorPrimary:wi,cellActiveWithRangeBg:zi,colorTextLightSolid:xi,controlHeightSM:or,cellRangeBorderColor:ei,pickerCellBorderGap:ji,cellHoverWithRangeBg:ar,cellWidth:eo,colorTextDisabled:Kr,cellBgDisabled:oo}=Ue;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:sn,transform:"translateY(-50%)",transition:`all ${Dn}`,content:'""'},[$t]:{position:"relative",zIndex:2,display:"inline-block",minWidth:sn,height:sn,lineHeight:`${sn}px`,borderRadius:On,transition:`background ${ii}, border ${ii}`},"&-range-hover-start, &-range-hover-end":{[$t]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${gt}-in-view),
|
|
|
&:hover:not(${gt}-selected):not(${gt}-range-start):not(${gt}-range-end):not(${gt}-range-hover-start):not(${gt}-range-hover-end)`]:{[$t]:{background:ci}},[`&-in-view${gt}-today ${$t}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Ei}px ${Xi} ${wi}`,borderRadius:On,content:'""'}},[`&-in-view${gt}-in-range`]:{position:"relative","&::before":{background:zi}},[`&-in-view${gt}-selected ${$t},
|
|
|
&-in-view${gt}-range-start ${$t},
|
|
|
&-in-view${gt}-range-end ${$t}`]:{color:xi,background:wi},[`&-in-view${gt}-range-start:not(${gt}-range-start-single),
|
|
|
&-in-view${gt}-range-end:not(${gt}-range-end-single)`]:{"&::before":{background:zi}},[`&-in-view${gt}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${gt}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${gt}-range-hover-start:not(${gt}-in-range):not(${gt}-range-start):not(${gt}-range-end),
|
|
|
&-in-view${gt}-range-hover-end:not(${gt}-in-range):not(${gt}-range-start):not(${gt}-range-end),
|
|
|
&-in-view${gt}-range-hover-start${gt}-range-start-single,
|
|
|
&-in-view${gt}-range-hover-start${gt}-range-start${gt}-range-end${gt}-range-end-near-hover,
|
|
|
&-in-view${gt}-range-hover-end${gt}-range-start${gt}-range-end${gt}-range-start-near-hover,
|
|
|
&-in-view${gt}-range-hover-end${gt}-range-end-single,
|
|
|
&-in-view${gt}-range-hover:not(${gt}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:or,borderTop:`${Ei}px dashed ${ei}`,borderBottom:`${Ei}px dashed ${ei}`,transform:"translateY(-50%)",transition:`all ${Dn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:ji},[`&-in-view${gt}-in-range${gt}-range-hover::before,
|
|
|
&-in-view${gt}-in-range${gt}-range-hover-start::before,
|
|
|
&-in-view${gt}-in-range${gt}-range-hover-end::before,
|
|
|
&-in-view${gt}-range-start${gt}-range-hover::before,
|
|
|
&-in-view${gt}-range-end${gt}-range-hover::before,
|
|
|
&-in-view${gt}-range-start:not(${gt}-range-start-single)${gt}-range-hover-start::before,
|
|
|
&-in-view${gt}-range-end:not(${gt}-range-end-single)${gt}-range-hover-end::before,
|
|
|
${rt}-panel
|
|
|
> :not(${rt}-date-panel)
|
|
|
&-in-view${gt}-in-range${gt}-range-hover-start::before,
|
|
|
${rt}-panel
|
|
|
> :not(${rt}-date-panel)
|
|
|
&-in-view${gt}-in-range${gt}-range-hover-end::before`]:{background:ar},[`&-in-view${gt}-range-start:not(${gt}-range-start-single):not(${gt}-range-end) ${$t}`]:{borderStartStartRadius:On,borderEndStartRadius:On,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${gt}-range-end:not(${gt}-range-end-single):not(${gt}-range-start) ${$t}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:On,borderEndEndRadius:On},[`&-range-hover${gt}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${gt}-range-hover:first-child::after,
|
|
|
tr > &-in-view${gt}-range-hover-end:first-child::after,
|
|
|
&-in-view${gt}-start${gt}-range-hover-edge-start${gt}-range-hover-edge-start-near-range::after,
|
|
|
&-in-view${gt}-range-hover-edge-start:not(${gt}-range-hover-edge-start-near-range)::after,
|
|
|
&-in-view${gt}-range-hover-start::after`]:{insetInlineStart:(eo-sn)/2,borderInlineStart:`${Ei}px dashed ${ei}`,borderStartStartRadius:On,borderEndStartRadius:On},[`tr > &-in-view${gt}-range-hover:last-child::after,
|
|
|
tr > &-in-view${gt}-range-hover-start:last-child::after,
|
|
|
&-in-view${gt}-end${gt}-range-hover-edge-end${gt}-range-hover-edge-end-near-range::after,
|
|
|
&-in-view${gt}-range-hover-edge-end:not(${gt}-range-hover-edge-end-near-range)::after,
|
|
|
&-in-view${gt}-range-hover-end::after`]:{insetInlineEnd:(eo-sn)/2,borderInlineEnd:`${Ei}px dashed ${ei}`,borderStartEndRadius:On,borderEndEndRadius:On},"&-disabled":{color:Kr,pointerEvents:"none",[$t]:{background:"transparent"},"&::before":{background:oo}},[`&-disabled${gt}-today ${$t}::before`]:{borderColor:Kr}}},ds=Ue=>{const{componentCls:rt,pickerCellCls:gt,pickerCellInnerCls:$t,pickerYearMonthCellWidth:sn,pickerControlIconSize:Dn,cellWidth:On,paddingSM:ii,paddingXS:ci,paddingXXS:Ei,colorBgContainer:Xi,lineWidth:wi,lineType:zi,borderRadiusLG:xi,colorPrimary:or,colorTextHeading:ei,colorSplit:ji,pickerControlIconBorderWidth:ar,colorIcon:eo,textHeight:Kr,motionDurationMid:oo,colorIconHover:ao,fontWeightStrong:to,cellHeight:Ji,pickerCellPaddingVertical:la,colorTextDisabled:Qo,colorText:va,fontSize:Wa,cellHoverWithRangeBg:za,motionDurationSlow:Ba,withoutTimeCellHeight:hs,pickerQuarterPanelContentHeight:Ma,colorLink:wa,colorLinkActive:Na,colorLinkHover:rs,cellRangeBorderColor:fs,borderRadiusSM:Ua,colorTextLightSolid:ka,cellHoverBg:Rs,timeColumnHeight:ul,timeColumnWidth:ut,timeCellHeight:St,controlItemBgActive:Yt,marginXXS:Qt,pickerDatePanelPaddingHorizontal:mn}=Ue,un=On*7+mn*2,jn=(un-ci*2)/3-sn-ii,zn=(un-ci*2)/4-sn;return{[rt]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Xi,border:`${wi}px ${zi} ${ji}`,borderRadius:xi,outline:"none","&-focused":{borderColor:or},"&-rtl":{direction:"rtl",[`${rt}-prev-icon,
|
|
|
${rt}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${rt}-next-icon,
|
|
|
${rt}-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:un},"&-header":{display:"flex",padding:`0 ${ci}px`,color:ei,borderBottom:`${wi}px ${zi} ${ji}`,"> *":{flex:"none"},button:{padding:0,color:eo,lineHeight:`${Kr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${oo}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Wa,"&:hover":{color:ao}},"&-view":{flex:"auto",fontWeight:to,lineHeight:`${Kr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:ci},"&:hover":{color:or}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:Dn,height:Dn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:Dn,height:Dn,border:"0 solid currentcolor",borderBlockStartWidth:ar,borderBlockEndWidth:0,borderInlineStartWidth:ar,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(Dn/2),insetInlineStart:Math.ceil(Dn/2),display:"inline-block",width:Dn,height:Dn,border:"0 solid currentcolor",borderBlockStartWidth:ar,borderBlockEndWidth:0,borderInlineStartWidth:ar,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:Ji,fontWeight:"normal"},th:{height:Ji+la*2,color:va,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${la}px 0`,color:Qo,cursor:"pointer","&-in-view":{color:va}},ks(Ue)),[`&-date-panel ${rt}-cell-in-view${rt}-cell-in-range${rt}-cell-range-hover-start ${$t},
|
|
|
&-date-panel ${rt}-cell-in-view${rt}-cell-in-range${rt}-cell-range-hover-end ${$t}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:za,transition:`all ${Ba}`,content:'""'}},[`&-date-panel
|
|
|
${rt}-cell-in-view${rt}-cell-in-range${rt}-cell-range-hover-start
|
|
|
${$t}::after`]:{insetInlineEnd:-(On-Ji)/2,insetInlineStart:0},[`&-date-panel ${rt}-cell-in-view${rt}-cell-in-range${rt}-cell-range-hover-end ${$t}::after`]:{insetInlineEnd:0,insetInlineStart:-(On-Ji)/2},[`&-range-hover${rt}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${rt}-content`]:{height:hs*4},[$t]:{padding:`0 ${ci}px`}},"&-quarter-panel":{[`${rt}-content`]:{height:Ma},[`${rt}-cell-range-hover-start::after`]:{insetInlineStart:zn,borderInlineStart:`${wi}px dashed ${fs}`,[`${rt}-panel-rtl &`]:{insetInlineEnd:zn,borderInlineEnd:`${wi}px dashed ${fs}`}},[`${rt}-cell-range-hover-end::after`]:{insetInlineEnd:zn,borderInlineEnd:`${wi}px dashed ${fs}`,[`${rt}-panel-rtl &`]:{insetInlineStart:zn,borderInlineStart:`${wi}px dashed ${fs}`}}},[`&-panel ${rt}-footer`]:{borderTop:`${wi}px ${zi} ${ji}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Kr-2*wi}px`,textAlign:"center","&-extra":{padding:`0 ${ii}px`,lineHeight:`${Kr-2*wi}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${wi}px ${zi} ${ji}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:wa,"&:hover":{color:rs},"&:active":{color:Na},[`&${rt}-today-btn-disabled`]:{color:Qo,cursor:"not-allowed"}},"&-decade-panel":{[$t]:{padding:`0 ${ci/2}px`},[`${rt}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${rt}-body`]:{padding:`0 ${ci}px`},[$t]:{width:sn},[`${rt}-cell-range-hover-start::after`]:{borderStartStartRadius:Ua,borderEndStartRadius:Ua,borderStartEndRadius:0,borderEndEndRadius:0,[`${rt}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ua,borderEndEndRadius:Ua}},[`${rt}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ua,borderEndEndRadius:Ua,[`${rt}-panel-rtl &`]:{borderStartStartRadius:Ua,borderEndStartRadius:Ua,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${rt}-cell-range-hover-start::after`]:{insetInlineStart:jn,borderInlineStart:`${wi}px dashed ${fs}`,[`${rt}-panel-rtl &`]:{insetInlineEnd:jn,borderInlineEnd:`${wi}px dashed ${fs}`}},[`${rt}-cell-range-hover-end::after`]:{insetInlineEnd:jn,borderInlineEnd:`${wi}px dashed ${fs}`,[`${rt}-panel-rtl &`]:{insetInlineStart:jn,borderInlineStart:`${wi}px dashed ${fs}`}}},"&-week-panel":{[`${rt}-body`]:{padding:`${ci}px ${ii}px`},[`${rt}-cell`]:{[`&:hover ${$t},
|
|
|
&-selected ${$t},
|
|
|
${$t}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${oo}`},"&:first-child:before":{borderStartStartRadius:Ua,borderEndStartRadius:Ua},"&:last-child:before":{borderStartEndRadius:Ua,borderEndEndRadius:Ua}},"&:hover td":{"&:before":{background:Rs}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${gt}`]:{"&:before":{background:or},[`&${rt}-cell-week`]:{color:new xs.C(ka).setAlpha(.5).toHexString()},[$t]:{color:ka}}},"&-range-hover td:before":{background:Yt}}},"&-date-panel":{[`${rt}-body`]:{padding:`${ci}px ${mn}px`},[`${rt}-content`]:{width:On*7,th:{width:On,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${rt}-time-panel`]:{borderInlineStart:`${wi}px ${zi} ${ji}`},[`${rt}-date-panel,
|
|
|
${rt}-time-panel`]:{transition:`opacity ${Ba}`},"&-active":{[`${rt}-date-panel,
|
|
|
${rt}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${rt}-content`]:{display:"flex",flex:"auto",height:ul},"&-column":{flex:"1 0 auto",width:ut,margin:`${Ei}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${oo}`,overflowX:"hidden","&::after":{display:"block",height:ul-St,content:'""'},"&:not(:first-child)":{borderInlineStart:`${wi}px ${zi} ${ji}`},"&-active":{background:new xs.C(Yt).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${rt}-time-panel-cell`]:{marginInline:Qt,[`${rt}-time-panel-cell-inner`]:{display:"block",width:ut-2*Qt,height:St,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(ut-St)/2,color:va,lineHeight:`${St}px`,borderRadius:Ua,cursor:"pointer",transition:`background ${oo}`,"&:hover":{background:Rs}},"&-selected":{[`${rt}-time-panel-cell-inner`]:{background:Yt}},"&-disabled":{[`${rt}-time-panel-cell-inner`]:{color:Qo,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${rt}-time-panel-column:after`]:{height:ul-St+Ei*2}}}},Ps=Ue=>{const{componentCls:rt,colorBgContainer:gt,colorError:$t,errorActiveShadow:sn,colorWarning:Dn,warningActiveShadow:On}=Ue;return{[`${rt}:not(${rt}-disabled)`]:{[`&${rt}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:gt,borderColor:$t},[`&${rt}-focused, &:focus`]:Object.assign({},(0,ll.M1)((0,Aa.TS)(Ue,{activeBorderColor:$t,activeShadow:sn}))),[`${rt}-active-bar`]:{background:$t}},[`&${rt}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:gt,borderColor:Dn},[`&${rt}-focused, &:focus`]:Object.assign({},(0,ll.M1)((0,Aa.TS)(Ue,{activeBorderColor:Dn,activeShadow:On}))),[`${rt}-active-bar`]:{background:Dn}}}}},Is=Ue=>{const{componentCls:rt,antCls:gt,controlHeight:$t,fontSize:sn,paddingInline:Dn,colorBgContainer:On,lineWidth:ii,lineType:ci,colorBorder:Ei,borderRadius:Xi,motionDurationMid:wi,colorBgContainerDisabled:zi,colorTextDisabled:xi,colorTextPlaceholder:or,controlHeightLG:ei,fontSizeLG:ji,controlHeightSM:ar,paddingInlineSM:eo,paddingXS:Kr,marginXS:oo,colorTextDescription:ao,lineWidthBold:to,lineHeight:Ji,colorPrimary:la,motionDurationSlow:Qo,zIndexPopup:va,paddingXXS:Wa,paddingSM:za,textHeight:Ba,cellActiveWithRangeBg:hs,colorPrimaryBorder:Ma,sizePopupArrow:wa,borderRadiusXS:Na,borderRadiusOuter:rs,colorBgElevated:fs,borderRadiusLG:Ua,boxShadowSecondary:ka,borderRadiusSM:Rs,colorSplit:ul,cellHoverBg:ut,presetsWidth:St,presetsMaxWidth:Yt,boxShadowPopoverArrow:Qt,colorTextQuaternary:mn}=Ue;return[{[rt]:Object.assign(Object.assign(Object.assign({},(0,Cl.Wf)(Ue)),Ns(Ue,$t,sn,Dn)),{position:"relative",display:"inline-flex",alignItems:"center",background:On,lineHeight:1,border:`${ii}px ${ci} ${Ei}`,borderRadius:Xi,transition:`border ${wi}, box-shadow ${wi}`,"&:hover, &-focused":Object.assign({},(0,ll.pU)(Ue)),"&-focused":Object.assign({},(0,ll.M1)(Ue)),[`&${rt}-disabled`]:{background:zi,borderColor:Ei,cursor:"not-allowed",[`${rt}-suffix`]:{color:mn}},[`&${rt}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${rt}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,ll.ik)(Ue)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${rt}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:or}}},"&-large":Object.assign(Object.assign({},Ns(Ue,ei,ji,Dn)),{[`${rt}-input > input`]:{fontSize:ji}}),"&-small":Object.assign({},Ns(Ue,ar,sn,eo)),[`${rt}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Kr/2,color:xi,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:oo}}},[`${rt}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:xi,lineHeight:1,background:On,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${wi}, color ${wi}`,"> *":{verticalAlign:"top"},"&:hover":{color:ao}},[`${rt}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:ji,color:xi,fontSize:ji,verticalAlign:"top",cursor:"default",[`${rt}-focused &`]:{color:ao},[`${rt}-range-separator &`]:{[`${rt}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${rt}-clear`]:{insetInlineEnd:Dn},"&:hover":{[`${rt}-clear`]:{opacity:1}},[`${rt}-active-bar`]:{bottom:-ii,height:to,marginInlineStart:Dn,background:la,opacity:0,transition:`all ${Qo} ease-out`,pointerEvents:"none"},[`&${rt}-focused`]:{[`${rt}-active-bar`]:{opacity:1}},[`${rt}-range-separator`]:{alignItems:"center",padding:`0 ${Kr}px`,lineHeight:1},[`&${rt}-small`]:{[`${rt}-clear`]:{insetInlineEnd:eo},[`${rt}-active-bar`]:{marginInlineStart:eo}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Cl.Wf)(Ue)),ds(Ue)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:va,[`&${rt}-dropdown-hidden`]:{display:"none"},[`&${rt}-dropdown-placement-bottomLeft`]:{[`${rt}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${rt}-dropdown-placement-topLeft`]:{[`${rt}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${gt}-slide-up-enter${gt}-slide-up-enter-active${rt}-dropdown-placement-topLeft,
|
|
|
&${gt}-slide-up-enter${gt}-slide-up-enter-active${rt}-dropdown-placement-topRight,
|
|
|
&${gt}-slide-up-appear${gt}-slide-up-appear-active${rt}-dropdown-placement-topLeft,
|
|
|
&${gt}-slide-up-appear${gt}-slide-up-appear-active${rt}-dropdown-placement-topRight`]:{animationName:Au.Qt},[`&${gt}-slide-up-enter${gt}-slide-up-enter-active${rt}-dropdown-placement-bottomLeft,
|
|
|
&${gt}-slide-up-enter${gt}-slide-up-enter-active${rt}-dropdown-placement-bottomRight,
|
|
|
&${gt}-slide-up-appear${gt}-slide-up-appear-active${rt}-dropdown-placement-bottomLeft,
|
|
|
&${gt}-slide-up-appear${gt}-slide-up-appear-active${rt}-dropdown-placement-bottomRight`]:{animationName:Au.fJ},[`&${gt}-slide-up-leave${gt}-slide-up-leave-active${rt}-dropdown-placement-topLeft,
|
|
|
&${gt}-slide-up-leave${gt}-slide-up-leave-active${rt}-dropdown-placement-topRight`]:{animationName:Au.ly},[`&${gt}-slide-up-leave${gt}-slide-up-leave-active${rt}-dropdown-placement-bottomLeft,
|
|
|
&${gt}-slide-up-leave${gt}-slide-up-leave-active${rt}-dropdown-placement-bottomRight`]:{animationName:Au.Uw},[`${rt}-panel > ${rt}-time-panel`]:{paddingTop:Wa},[`${rt}-ranges`]:{marginBottom:0,padding:`${Wa}px ${za}px`,overflow:"hidden",lineHeight:`${Ba-2*ii-Kr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${rt}-preset > ${gt}-tag-blue`]:{color:la,background:hs,borderColor:Ma,cursor:"pointer"},[`${rt}-ok`]:{marginInlineStart:"auto"}},[`${rt}-range-wrapper`]:{display:"flex",position:"relative"},[`${rt}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:Dn*1.5,transition:`left ${Qo} ease-out`},(0,Fl.r)(wa,Na,rs,fs,Qt)),[`${rt}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:fs,borderRadius:Ua,boxShadow:ka,transition:`margin ${Qo}`,[`${rt}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${rt}-presets`]:{display:"flex",flexDirection:"column",minWidth:St,maxWidth:Yt,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Kr,borderInlineEnd:`${ii}px ${ci} ${ul}`,li:Object.assign(Object.assign({},Cl.vS),{borderRadius:Rs,paddingInline:Kr,paddingBlock:(ar-Math.round(sn*Ji))/2,cursor:"pointer",transition:`all ${Qo}`,"+ li":{marginTop:oo},"&:hover":{background:ut}})}},[`${rt}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${rt}-panel`]:{borderWidth:`0 0 ${ii}px`},"&:last-child":{[`${rt}-panel`]:{borderWidth:0}}},[`${rt}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${rt}-content,
|
|
|
table`]:{textAlign:"center"},"&-focused":{borderColor:Ei}}}}),"&-dropdown-range":{padding:`${wa*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${rt}-separator`]:{transform:"rotate(180deg)"},[`${rt}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Au.oN)(Ue,"slide-up"),(0,Au.oN)(Ue,"slide-down"),(0,Yo.Fm)(Ue,"move-up"),(0,Yo.Fm)(Ue,"move-down")]},Ts=Ue=>{const{componentCls:rt,controlHeightLG:gt,paddingXXS:$t,padding:sn}=Ue;return{pickerCellCls:`${rt}-cell`,pickerCellInnerCls:`${rt}-cell-inner`,pickerYearMonthCellWidth:gt*1.5,pickerQuarterPanelContentHeight:gt*1.4,pickerCellPaddingVertical:$t+$t/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:sn+$t/2}},cc=Ue=>({cellHoverBg:Ue.controlItemBgHover,cellActiveWithRangeBg:Ue.controlItemBgActive,cellHoverWithRangeBg:new xs.C(Ue.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new xs.C(Ue.colorPrimary).lighten(20).toHexString(),cellBgDisabled:Ue.colorBgContainerDisabled,timeColumnWidth:Ue.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:Ue.controlHeightSM*1.5,cellHeight:Ue.controlHeightSM,textHeight:Ue.controlHeightLG,withoutTimeCellHeight:Ue.controlHeightLG*1.65});var au=(0,El.Z)("DatePicker",Ue=>{const rt=(0,Aa.TS)((0,ll.e5)(Ue),Ts(Ue));return[Is(rt),Ps(rt),(0,nd.c)(Ue,{focusElCls:`${Ue.componentCls}-focused`})]},Ue=>Object.assign(Object.assign(Object.assign({},(0,ll.TM)(Ue)),cc(Ue)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:Ue.zIndexPopupBase+50}));function Ms(Ue,rt,gt){return gt!==void 0?gt:rt==="year"&&Ue.lang.yearPlaceholder?Ue.lang.yearPlaceholder:rt==="quarter"&&Ue.lang.quarterPlaceholder?Ue.lang.quarterPlaceholder:rt==="month"&&Ue.lang.monthPlaceholder?Ue.lang.monthPlaceholder:rt==="week"&&Ue.lang.weekPlaceholder?Ue.lang.weekPlaceholder:rt==="time"&&Ue.timePickerLocale.placeholder?Ue.timePickerLocale.placeholder:Ue.lang.placeholder}function ih(Ue,rt,gt){return gt!==void 0?gt:rt==="year"&&Ue.lang.yearPlaceholder?Ue.lang.rangeYearPlaceholder:rt==="quarter"&&Ue.lang.quarterPlaceholder?Ue.lang.rangeQuarterPlaceholder:rt==="month"&&Ue.lang.monthPlaceholder?Ue.lang.rangeMonthPlaceholder:rt==="week"&&Ue.lang.weekPlaceholder?Ue.lang.rangeWeekPlaceholder:rt==="time"&&Ue.timePickerLocale.placeholder?Ue.timePickerLocale.rangePlaceholder:Ue.lang.rangePlaceholder}function md(Ue,rt){const gt={adjustX:1,adjustY:1};switch(rt){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:gt};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:gt};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:gt};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:gt};default:return{points:Ue==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:gt}}}function id(Ue){return Ue?Array.isArray(Ue)?Ue:[Ue]:[]}function Wr(Ue){const{format:rt,picker:gt,showHour:$t,showMinute:sn,showSecond:Dn,use12Hours:On}=Ue,ii=id(rt)[0],ci=Object.assign({},Ue);return rt&&Array.isArray(rt)&&(ci.format=ii),ii&&typeof ii=="string"&&(!ii.includes("s")&&Dn===void 0&&(ci.showSecond=!1),!ii.includes("m")&&sn===void 0&&(ci.showMinute=!1),!ii.includes("H")&&!ii.includes("h")&&!ii.includes("K")&&!ii.includes("k")&&$t===void 0&&(ci.showHour=!1),(ii.includes("a")||ii.includes("A"))&&On===void 0&&(ci.use12Hours=!0)),gt==="time"?ci:(typeof ii=="function"&&delete ci.format,{showTime:ci})}function rd(Ue,rt,gt){if(Ue===!1)return!1;const $t={clearIcon:rt!=null?rt:gt};return typeof Ue=="object"?Object.assign(Object.assign({},$t),Ue):$t}var Kt=he(3113);function vi(Ue){return xe.createElement(Kt.ZP,Object.assign({size:"small",type:"primary"},Ue))}var rh={button:vi},dc=function(Ue,rt){var gt={};for(var $t in Ue)Object.prototype.hasOwnProperty.call(Ue,$t)&&rt.indexOf($t)<0&&(gt[$t]=Ue[$t]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,$t=Object.getOwnPropertySymbols(Ue);sn<$t.length;sn++)rt.indexOf($t[sn])<0&&Object.prototype.propertyIsEnumerable.call(Ue,$t[sn])&&(gt[$t[sn]]=Ue[$t[sn]]);return gt};function hc(Ue){return(0,xe.forwardRef)((gt,$t)=>{const{prefixCls:sn,getPopupContainer:Dn,className:On,placement:ii,size:ci,disabled:Ei,bordered:Xi=!0,placeholder:wi,popupClassName:zi,dropdownClassName:xi,status:or,clearIcon:ei,allowClear:ji,rootClassName:ar}=gt,eo=dc(gt,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Kr=xe.useRef(null),{getPrefixCls:oo,direction:ao,getPopupContainer:to}=(0,xe.useContext)(fl.E_),Ji=oo("picker",sn),{compactSize:la,compactItemClassnames:Qo}=(0,Xu.ri)(Ji,ao),{format:va,showTime:Wa,picker:za}=gt,Ba=oo(),[hs,Ma]=au(Ji),wa=Object.assign(Object.assign({},Wa?Wr(Object.assign({format:va,picker:za},Wa)):{}),za==="time"?Wr(Object.assign(Object.assign({format:va},gt),{picker:za})):{}),Na=(0,Yu.Z)(Qt=>{var mn;return(mn=ci!=null?ci:la)!==null&&mn!==void 0?mn:Qt}),rs=xe.useContext(wl.Z),fs=Ei!=null?Ei:rs,Ua=(0,xe.useContext)(uc.aM),{hasFeedback:ka,status:Rs,feedbackIcon:ul}=Ua,ut=xe.createElement(xe.Fragment,null,za==="time"?xe.createElement(Nt,null):xe.createElement(Ze,null),ka&&ul);(0,xe.useImperativeHandle)($t,()=>({focus:()=>{var Qt;return(Qt=Kr.current)===null||Qt===void 0?void 0:Qt.focus()},blur:()=>{var Qt;return(Qt=Kr.current)===null||Qt===void 0?void 0:Qt.blur()}}));const[St]=(0,Uu.Z)("Calendar",_u.Z),Yt=Object.assign(Object.assign({},St),gt.locale);return hs(xe.createElement(pa,Object.assign({separator:xe.createElement("span",{"aria-label":"to",className:`${Ji}-separator`},xe.createElement(ln,null)),disabled:fs,ref:Kr,dropdownAlign:md(ao,ii),placeholder:ih(Yt,za,wi),suffixIcon:ut,prevIcon:xe.createElement("span",{className:`${Ji}-prev-icon`}),nextIcon:xe.createElement("span",{className:`${Ji}-next-icon`}),superPrevIcon:xe.createElement("span",{className:`${Ji}-super-prev-icon`}),superNextIcon:xe.createElement("span",{className:`${Ji}-super-next-icon`}),transitionName:`${Ba}-slide-up`},eo,wa,{className:xt()({[`${Ji}-${Na}`]:Na,[`${Ji}-borderless`]:!Xi},(0,tl.Z)(Ji,(0,tl.F)(Rs,or),ka),Ma,Qo,On,ar),locale:Yt.lang,prefixCls:Ji,getPopupContainer:Dn||to,generateConfig:Ue,components:rh,direction:ao,dropdownClassName:xt()(Ma,zi||xi,ar),allowClear:rd(ji,ei,xe.createElement(It.Z,null))})))})}var Ac=function(Ue,rt){var gt={};for(var $t in Ue)Object.prototype.hasOwnProperty.call(Ue,$t)&&rt.indexOf($t)<0&&(gt[$t]=Ue[$t]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,$t=Object.getOwnPropertySymbols(Ue);sn<$t.length;sn++)rt.indexOf($t[sn])<0&&Object.prototype.propertyIsEnumerable.call(Ue,$t[sn])&&(gt[$t[sn]]=Ue[$t[sn]]);return gt};function oh(Ue){function rt(ci,Ei){const Xi=Ei==="TimePicker"?"timePicker":"datePicker",wi=(0,xe.forwardRef)((zi,xi)=>{const{prefixCls:or,getPopupContainer:ei,style:ji,className:ar,rootClassName:eo,size:Kr,bordered:oo=!0,placement:ao,placeholder:to,popupClassName:Ji,dropdownClassName:la,disabled:Qo,status:va,clearIcon:Wa,allowClear:za}=zi,Ba=Ac(zi,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:hs,direction:Ma,getPopupContainer:wa,[Xi]:Na}=(0,xe.useContext)(fl.E_),rs=hs("picker",or),{compactSize:fs,compactItemClassnames:Ua}=(0,Xu.ri)(rs,Ma),ka=xe.useRef(null),{format:Rs,showTime:ul}=zi,[ut,St]=au(rs);(0,xe.useImperativeHandle)(xi,()=>({focus:()=>{var Ti;return(Ti=ka.current)===null||Ti===void 0?void 0:Ti.focus()},blur:()=>{var Ti;return(Ti=ka.current)===null||Ti===void 0?void 0:Ti.blur()}}));const Yt={showToday:!0};let Qt={};ci&&(Qt.picker=ci);const mn=ci||zi.picker;Qt=Object.assign(Object.assign(Object.assign({},Qt),ul?Wr(Object.assign({format:Rs,picker:mn},ul)):{}),mn==="time"?Wr(Object.assign(Object.assign({format:Rs},zi),{picker:mn})):{});const un=hs(),jn=(0,Yu.Z)(Ti=>{var pr;return(pr=Kr!=null?Kr:fs)!==null&&pr!==void 0?pr:Ti}),zn=xe.useContext(wl.Z),Rn=Qo!=null?Qo:zn,yi=(0,xe.useContext)(uc.aM),{hasFeedback:ti,status:gi,feedbackIcon:Ri}=yi,Oi=xe.createElement(xe.Fragment,null,mn==="time"?xe.createElement(Nt,null):xe.createElement(Ze,null),ti&&Ri),[Bi]=(0,Uu.Z)("DatePicker",_u.Z),ir=Object.assign(Object.assign({},Bi),zi.locale);return ut(xe.createElement(hl,Object.assign({ref:ka,placeholder:Ms(ir,mn,to),suffixIcon:Oi,dropdownAlign:md(Ma,ao),prevIcon:xe.createElement("span",{className:`${rs}-prev-icon`}),nextIcon:xe.createElement("span",{className:`${rs}-next-icon`}),superPrevIcon:xe.createElement("span",{className:`${rs}-super-prev-icon`}),superNextIcon:xe.createElement("span",{className:`${rs}-super-next-icon`}),transitionName:`${un}-slide-up`},Yt,Ba,Qt,{locale:ir.lang,className:xt()({[`${rs}-${jn}`]:jn,[`${rs}-borderless`]:!oo},(0,tl.Z)(rs,(0,tl.F)(gi,va),ti),St,Ua,Na==null?void 0:Na.className,ar,eo),style:Object.assign(Object.assign({},Na==null?void 0:Na.style),ji),prefixCls:rs,getPopupContainer:ei||wa,generateConfig:Ue,components:rh,direction:Ma,disabled:Rn,dropdownClassName:xt()(St,eo,Ji||la),allowClear:rd(za,Wa,xe.createElement(It.Z,null))})))});return Ei&&(wi.displayName=Ei),wi}const gt=rt(),$t=rt("week","WeekPicker"),sn=rt("month","MonthPicker"),Dn=rt("year","YearPicker"),On=rt("time","TimePicker"),ii=rt("quarter","QuarterPicker");return{DatePicker:gt,WeekPicker:$t,MonthPicker:sn,YearPicker:Dn,TimePicker:On,QuarterPicker:ii}}const Td=null;function Os(Ue){const{DatePicker:rt,WeekPicker:gt,MonthPicker:$t,YearPicker:sn,TimePicker:Dn,QuarterPicker:On}=oh(Ue),ii=hc(Ue),ci=rt;return ci.WeekPicker=gt,ci.MonthPicker=$t,ci.YearPicker=sn,ci.RangePicker=ii,ci.TimePicker=Dn,ci.QuarterPicker=On,ci}var ko=Os;const gl=ko(ve);function Dl(Ue){const rt=md(Ue.direction,Ue.placement);return rt.overflow.adjustY=!1,rt.overflow.adjustX=!1,Object.assign(Object.assign({},Ue),{dropdownAlign:rt})}const vs=(0,Pe.Z)(gl,"picker",null,Dl);gl._InternalPanelDoNotUseOrYouWillBeFired=vs;const ma=(0,Pe.Z)(gl.RangePicker,"picker",null,Dl);gl._InternalRangePanelDoNotUseOrYouWillBeFired=ma,gl.generatePicker=ko;var nl=gl},28103:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return $e}});var pe=he(92310),Ie=he.n(pe),Ve=he(59301),st=he(36355),We=he(17313),it=he(83116),be=he(37613);const yt=Qe=>{const{componentCls:Ee,sizePaddingEdgeHorizontal:ee,colorSplit:te,lineWidth:ue,textPaddingInline:ae,orientationMargin:de,verticalMarginInline:ve}=Qe;return{[Ee]:Object.assign(Object.assign({},(0,We.Wf)(Qe)),{borderBlockStart:`${ue}px solid ${te}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ve,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ue}px solid ${te}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Qe.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ee}-with-text`]:{display:"flex",alignItems:"center",margin:`${Qe.dividerHorizontalWithTextGutterMargin}px 0`,color:Qe.colorTextHeading,fontWeight:500,fontSize:Qe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${te}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ue}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ee}-with-text-left`]:{"&::before":{width:`${de*100}%`},"&::after":{width:`${100-de*100}%`}},[`&-horizontal${Ee}-with-text-right`]:{"&::before":{width:`${100-de*100}%`},"&::after":{width:`${de*100}%`}},[`${Ee}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:ae},"&-dashed":{background:"none",borderColor:te,borderStyle:"dashed",borderWidth:`${ue}px 0 0`},[`&-horizontal${Ee}-with-text${Ee}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ee}-dashed`]:{borderInlineStartWidth:ue,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ee}-with-text`]:{color:Qe.colorText,fontWeight:"normal",fontSize:Qe.fontSize},[`&-horizontal${Ee}-with-text-left${Ee}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ee}-inner-text`]:{paddingInlineStart:ee}},[`&-horizontal${Ee}-with-text-right${Ee}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ee}-inner-text`]:{paddingInlineEnd:ee}}})}};var vt=(0,it.Z)("Divider",Qe=>{const Ee=(0,be.TS)(Qe,{dividerHorizontalWithTextGutterMargin:Qe.margin,dividerHorizontalGutterMargin:Qe.marginLG,sizePaddingEdgeHorizontal:0});return[yt(Ee)]},Qe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Qe.marginXS})),Je=function(Qe,Ee){var ee={};for(var te in Qe)Object.prototype.hasOwnProperty.call(Qe,te)&&Ee.indexOf(te)<0&&(ee[te]=Qe[te]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,te=Object.getOwnPropertySymbols(Qe);ue<te.length;ue++)Ee.indexOf(te[ue])<0&&Object.prototype.propertyIsEnumerable.call(Qe,te[ue])&&(ee[te[ue]]=Qe[te[ue]]);return ee},$e=Qe=>{const{getPrefixCls:Ee,direction:ee,divider:te}=Ve.useContext(st.E_),{prefixCls:ue,type:ae="horizontal",orientation:de="center",orientationMargin:ve,className:Pe,rootClassName:Ae,children:xe,dashed:Le,plain:Te,style:He}=Qe,ze=Je(Qe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ke=Ee("divider",ue),[Ze,Mt]=vt(Ke),Xe=de.length>0?`-${de}`:de,Ft=!!xe,Ct=de==="left"&&ve!=null,Nt=de==="right"&&ve!=null,It=Ie()(Ke,te==null?void 0:te.className,Mt,`${Ke}-${ae}`,{[`${Ke}-with-text`]:Ft,[`${Ke}-with-text${Xe}`]:Ft,[`${Ke}-dashed`]:!!Le,[`${Ke}-plain`]:!!Te,[`${Ke}-rtl`]:ee==="rtl",[`${Ke}-no-default-orientation-margin-left`]:Ct,[`${Ke}-no-default-orientation-margin-right`]:Nt},Pe,Ae),_t=Ve.useMemo(()=>typeof ve=="number"?ve:/^\d+$/.test(ve)?Number(ve):ve,[ve]),lt=Object.assign(Object.assign({},Ct&&{marginLeft:_t}),Nt&&{marginRight:_t});return Ze(Ve.createElement("div",Object.assign({className:It,style:Object.assign(Object.assign({},te==null?void 0:te.style),He)},ze,{role:"separator"}),xe&&ae!=="vertical"&&Ve.createElement("span",{className:`${Ke}-inner-text`,style:lt},xe)))}},91857:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(53878),Ve=he(92310),st=he.n(Ve),We=he(31561),it=he(80764),be=he(35788),yt=he(64002),vt=he(79676),Je=he(53487),tt=he(92343),$e=he(36355),Qe=he(20834),Ee=he(40875),ee=he(88088),te=he(47211);const ue=null,ae=Ae=>{const{menu:xe,arrow:Le,prefixCls:Te,children:He,trigger:ze,disabled:Ke,dropdownRender:Ze,getPopupContainer:Mt,overlayClassName:Xe,rootClassName:Ft,open:Ct,onOpenChange:Nt,visible:It,onVisibleChange:_t,mouseEnterDelay:lt=.15,mouseLeaveDelay:je=.1,autoAdjustOverflow:Et=!0,placement:ln="",overlay:Ht,transitionName:xt}=Ae,{getPopupContainer:Bt,getPrefixCls:rn,direction:Hn}=pe.useContext($e.E_),pn=pe.useMemo(()=>{const ye=rn();return xt!==void 0?xt:ln.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[rn,ln,xt]),_n=pe.useMemo(()=>ln?ln.includes("Center")?ln.slice(0,ln.indexOf("Center")):ln:Hn==="rtl"?"bottomRight":"bottomLeft",[ln,Hn]),Lt=rn("dropdown",Te),[Un,Gn]=(0,te.Z)(Lt),[,ui]=(0,ee.Z)(),Ln=pe.Children.only(He),Wt=(0,tt.Tm)(Ln,{className:st()(`${Lt}-trigger`,{[`${Lt}-rtl`]:Hn==="rtl"},Ln.props.className),disabled:Ke}),Vt=Ke?[]:ze;let mt;Vt&&Vt.includes("contextMenu")&&(mt=!0);const[Ye,Zt]=(0,be.Z)(!1,{value:Ct!=null?Ct:It}),Gt=(0,it.useEvent)(ye=>{Nt==null||Nt(ye),_t==null||_t(ye),Zt(ye)}),ft=st()(Xe,Ft,Gn,{[`${Lt}-rtl`]:Hn==="rtl"}),nt=(0,vt.Z)({arrowPointAtCenter:typeof Le=="object"&&Le.pointAtCenter,autoAdjustOverflow:Et,offset:ui.marginXXS,arrowWidth:Le?ui.sizePopupArrow:0,borderRadius:ui.borderRadius}),Oe=pe.useCallback(()=>{Zt(!1)},[]),we=()=>{let ye;return xe!=null&&xe.items?ye=pe.createElement(Qe.default,Object.assign({},xe)):typeof Ht=="function"?ye=Ht():ye=Ht,Ze&&(ye=Ze(ye)),ye=pe.Children.only(typeof ye=="string"?pe.createElement("span",null,ye):ye),pe.createElement(Ee.J,{prefixCls:`${Lt}-menu`,expandIcon:pe.createElement("span",{className:`${Lt}-menu-submenu-arrow`},pe.createElement(Ie.Z,{className:`${Lt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Oe,validator:ke=>{let{mode:Ge}=ke}},ye)};return Un(pe.createElement(We.Z,Object.assign({alignPoint:mt},(0,yt.Z)(Ae,["rootClassName"]),{mouseEnterDelay:lt,mouseLeaveDelay:je,visible:Ye,builtinPlacements:nt,arrow:!!Le,overlayClassName:ft,prefixCls:Lt,getPopupContainer:Mt||Bt,transitionName:pn,trigger:Vt,overlay:we,placement:_n,onVisibleChange:Gt}),Wt))};function de(Ae){return Object.assign(Object.assign({},Ae),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ve=(0,Je.Z)(ae,"dropdown",Ae=>Ae,de),Pe=Ae=>pe.createElement(ve,Object.assign({},Ae),pe.createElement("span",null));ae._InternalPanelDoNotUseOrYouWillBeFired=Pe,zt.Z=ae},38854:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return ee}});var pe=he(91857),Ie=he(92310),Ve=he.n(Ie),st=he(59301),We=he(19362),it=he(3113),be=he(36355),yt=he(81327),vt=he(33234),Je=he(47211),tt=function(te,ue){var ae={};for(var de in te)Object.prototype.hasOwnProperty.call(te,de)&&ue.indexOf(de)<0&&(ae[de]=te[de]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,de=Object.getOwnPropertySymbols(te);ve<de.length;ve++)ue.indexOf(de[ve])<0&&Object.prototype.propertyIsEnumerable.call(te,de[ve])&&(ae[de[ve]]=te[de[ve]]);return ae};const $e=te=>{const{getPopupContainer:ue,getPrefixCls:ae,direction:de}=st.useContext(be.E_),{prefixCls:ve,type:Pe="default",danger:Ae,disabled:xe,loading:Le,onClick:Te,htmlType:He,children:ze,className:Ke,menu:Ze,arrow:Mt,autoFocus:Xe,overlay:Ft,trigger:Ct,align:Nt,open:It,onOpenChange:_t,placement:lt,getPopupContainer:je,href:Et,icon:ln=st.createElement(We.Z,null),title:Ht,buttonsRender:xt=we=>we,mouseEnterDelay:Bt,mouseLeaveDelay:rn,overlayClassName:Hn,overlayStyle:pn,destroyPopupOnHide:_n,dropdownRender:Lt}=te,Un=tt(te,["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"]),Gn=ae("dropdown",ve),ui=`${Gn}-button`,[Ln,Wt]=(0,Je.Z)(Gn),Vt={menu:Ze,arrow:Mt,autoFocus:Xe,align:Nt,disabled:xe,trigger:xe?[]:Ct,onOpenChange:_t,getPopupContainer:je||ue,mouseEnterDelay:Bt,mouseLeaveDelay:rn,overlayClassName:Hn,overlayStyle:pn,destroyPopupOnHide:_n,dropdownRender:Lt},{compactSize:mt,compactItemClassnames:Ye}=(0,vt.ri)(Gn,de),Zt=Ve()(ui,Ye,Ke,Wt);"overlay"in te&&(Vt.overlay=Ft),"open"in te&&(Vt.open=It),"placement"in te?Vt.placement=lt:Vt.placement=de==="rtl"?"bottomLeft":"bottomRight";const Gt=st.createElement(it.ZP,{type:Pe,danger:Ae,disabled:xe,loading:Le,onClick:Te,htmlType:He,href:Et,title:Ht},ze),ft=st.createElement(it.ZP,{type:Pe,danger:Ae,icon:ln}),[nt,Oe]=xt([Gt,ft]);return Ln(st.createElement(yt.Z.Compact,Object.assign({className:Zt,size:mt,block:!0},Un),nt,st.createElement(pe.Z,Object.assign({},Vt),Oe)))};$e.__ANT_BUTTON=!0;var Qe=$e;const Ee=pe.Z;Ee.Button=Qe;var ee=Ee},47211:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return tt}});var pe=he(17313),Ie=he(13826),Ve=he(92899),st=he(29878),We=he(19447),it=he(83116),be=he(37613),vt=$e=>{const{componentCls:Qe,menuCls:Ee,colorError:ee,colorTextLightSolid:te}=$e,ue=`${Ee}-item`;return{[`${Qe}, ${Qe}-menu-submenu`]:{[`${Ee} ${ue}`]:{[`&${ue}-danger:not(${ue}-disabled)`]:{color:ee,"&:hover":{color:te,backgroundColor:ee}}}}}};const Je=$e=>{const{componentCls:Qe,menuCls:Ee,zIndexPopup:ee,dropdownArrowDistance:te,sizePopupArrow:ue,antCls:ae,iconCls:de,motionDurationMid:ve,dropdownPaddingVertical:Pe,fontSize:Ae,dropdownEdgeChildPadding:xe,colorTextDisabled:Le,fontSizeIcon:Te,controlPaddingHorizontal:He,colorBgElevated:ze}=$e;return[{[Qe]:Object.assign(Object.assign({},(0,pe.Wf)($e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ee,display:"block","&::before":{position:"absolute",insetBlock:-te+ue/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${ae}-btn`]:{[`& > ${de}-down, & > ${ae}-btn-icon > ${de}-down`]:{fontSize:Te}},[`${Qe}-wrap`]:{position:"relative",[`${ae}-btn > ${de}-down`]:{fontSize:Te},[`${de}-down::before`]:{transition:`transform ${ve}`}},[`${Qe}-wrap-open`]:{[`${de}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ae}-slide-down-enter${ae}-slide-down-enter-active${Qe}-placement-bottomLeft,
|
|
|
&${ae}-slide-down-appear${ae}-slide-down-appear-active${Qe}-placement-bottomLeft,
|
|
|
&${ae}-slide-down-enter${ae}-slide-down-enter-active${Qe}-placement-bottom,
|
|
|
&${ae}-slide-down-appear${ae}-slide-down-appear-active${Qe}-placement-bottom,
|
|
|
&${ae}-slide-down-enter${ae}-slide-down-enter-active${Qe}-placement-bottomRight,
|
|
|
&${ae}-slide-down-appear${ae}-slide-down-appear-active${Qe}-placement-bottomRight`]:{animationName:Ie.fJ},[`&${ae}-slide-up-enter${ae}-slide-up-enter-active${Qe}-placement-topLeft,
|
|
|
&${ae}-slide-up-appear${ae}-slide-up-appear-active${Qe}-placement-topLeft,
|
|
|
&${ae}-slide-up-enter${ae}-slide-up-enter-active${Qe}-placement-top,
|
|
|
&${ae}-slide-up-appear${ae}-slide-up-appear-active${Qe}-placement-top,
|
|
|
&${ae}-slide-up-enter${ae}-slide-up-enter-active${Qe}-placement-topRight,
|
|
|
&${ae}-slide-up-appear${ae}-slide-up-appear-active${Qe}-placement-topRight`]:{animationName:Ie.Qt},[`&${ae}-slide-down-leave${ae}-slide-down-leave-active${Qe}-placement-bottomLeft,
|
|
|
&${ae}-slide-down-leave${ae}-slide-down-leave-active${Qe}-placement-bottom,
|
|
|
&${ae}-slide-down-leave${ae}-slide-down-leave-active${Qe}-placement-bottomRight`]:{animationName:Ie.Uw},[`&${ae}-slide-up-leave${ae}-slide-up-leave-active${Qe}-placement-topLeft,
|
|
|
&${ae}-slide-up-leave${ae}-slide-up-leave-active${Qe}-placement-top,
|
|
|
&${ae}-slide-up-leave${ae}-slide-up-leave-active${Qe}-placement-topRight`]:{animationName:Ie.ly}})},(0,We.ZP)($e,{colorBg:ze,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Qe} ${Ee}`]:{position:"relative",margin:0},[`${Ee}-submenu-popup`]:{position:"absolute",zIndex:ee,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Qe}, ${Qe}-menu-submenu`]:{[Ee]:Object.assign(Object.assign({padding:xe,listStyleType:"none",backgroundColor:ze,backgroundClip:"padding-box",borderRadius:$e.borderRadiusLG,outline:"none",boxShadow:$e.boxShadowSecondary},(0,pe.Qy)($e)),{[`${Ee}-item-group-title`]:{padding:`${Pe}px ${He}px`,color:$e.colorTextDescription,transition:`all ${ve}`},[`${Ee}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ee}-item-icon`]:{minWidth:Ae,marginInlineEnd:$e.marginXS,fontSize:$e.fontSizeSM},[`${Ee}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ve}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ee}-item, ${Ee}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Pe}px ${He}px`,color:$e.colorText,fontWeight:"normal",fontSize:Ae,lineHeight:$e.lineHeight,cursor:"pointer",transition:`all ${ve}`,borderRadius:$e.borderRadiusSM,"&:hover, &-active":{backgroundColor:$e.controlItemBgHover}},(0,pe.Qy)($e)),{"&-selected":{color:$e.colorPrimary,backgroundColor:$e.controlItemBgActive,"&:hover, &-active":{backgroundColor:$e.controlItemBgActiveHover}},"&-disabled":{color:Le,cursor:"not-allowed","&:hover":{color:Le,backgroundColor:ze,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${$e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:$e.colorSplit},[`${Qe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:$e.paddingXS,[`${Qe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:$e.colorTextDescription,fontSize:Te,fontStyle:"normal"}}}),[`${Ee}-item-group-list`]:{margin:`0 ${$e.marginXS}px`,padding:0,listStyle:"none"},[`${Ee}-submenu-title`]:{paddingInlineEnd:He+$e.fontSizeSM},[`${Ee}-submenu-vertical`]:{position:"relative"},[`${Ee}-submenu${Ee}-submenu-disabled ${Qe}-menu-submenu-title`]:{[`&, ${Qe}-menu-submenu-arrow-icon`]:{color:Le,backgroundColor:ze,cursor:"not-allowed"}},[`${Ee}-submenu-selected ${Qe}-menu-submenu-title`]:{color:$e.colorPrimary}})}},[(0,Ie.oN)($e,"slide-up"),(0,Ie.oN)($e,"slide-down"),(0,Ve.Fm)($e,"move-up"),(0,Ve.Fm)($e,"move-down"),(0,st._y)($e,"zoom-big")]]};var tt=(0,it.Z)("Dropdown",($e,Qe)=>{let{rootPrefixCls:Ee}=Qe;const{marginXXS:ee,sizePopupArrow:te,controlHeight:ue,fontSize:ae,lineHeight:de,paddingXXS:ve,componentCls:Pe,borderRadiusLG:Ae}=$e,xe=(ue-ae*de)/2,{dropdownArrowOffset:Le}=(0,We.fS)({contentRadius:Ae}),Te=(0,be.TS)($e,{menuCls:`${Pe}-menu`,rootPrefixCls:Ee,dropdownArrowDistance:te/2+ee,dropdownArrowOffset:Le,dropdownPaddingVertical:xe,dropdownEdgeChildPadding:ve});return[Je(Te),vt(Te)]},$e=>({zIndexPopup:$e.zIndexPopupBase+50}))},64165:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return ve}});var pe=he(92310),Ie=he.n(pe),Ve=he(59301),st=he(36355),We=he(9763),it=he(64993),be=he(88088),vt=()=>{const[,Pe]=(0,be.Z)(),xe=new it.C(Pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Ve.createElement("svg",{style:xe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ve.createElement("g",{fill:"none",fillRule:"evenodd"},Ve.createElement("g",{transform:"translate(24 31.67)"},Ve.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Ve.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"}),Ve.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)"}),Ve.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"}),Ve.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"})),Ve.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"}),Ve.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Ve.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Ve.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},tt=()=>{const[,Pe]=(0,be.Z)(),{colorFill:Ae,colorFillTertiary:xe,colorFillQuaternary:Le,colorBgContainer:Te}=Pe,{borderColor:He,shadowColor:ze,contentColor:Ke}=(0,Ve.useMemo)(()=>({borderColor:new it.C(Ae).onBackground(Te).toHexShortString(),shadowColor:new it.C(xe).onBackground(Te).toHexShortString(),contentColor:new it.C(Le).onBackground(Te).toHexShortString()}),[Ae,xe,Le,Te]);return Ve.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ve.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ve.createElement("ellipse",{fill:ze,cx:"32",cy:"33",rx:"32",ry:"7"}),Ve.createElement("g",{fillRule:"nonzero",stroke:He},Ve.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"}),Ve.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:Ke}))))},$e=he(83116),Qe=he(37613);const Ee=Pe=>{const{componentCls:Ae,margin:xe,marginXS:Le,marginXL:Te,fontSize:He,lineHeight:ze}=Pe;return{[Ae]:{marginInline:Le,fontSize:He,lineHeight:ze,textAlign:"center",[`${Ae}-image`]:{height:Pe.emptyImgHeight,marginBottom:Le,opacity:Pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ae}-description`]:{color:Pe.colorText},[`${Ae}-footer`]:{marginTop:xe},"&-normal":{marginBlock:Te,color:Pe.colorTextDisabled,[`${Ae}-description`]:{color:Pe.colorTextDisabled},[`${Ae}-image`]:{height:Pe.emptyImgHeightMD}},"&-small":{marginBlock:Le,color:Pe.colorTextDisabled,[`${Ae}-image`]:{height:Pe.emptyImgHeightSM}}}}};var ee=(0,$e.Z)("Empty",Pe=>{const{componentCls:Ae,controlHeightLG:xe}=Pe,Le=(0,Qe.TS)(Pe,{emptyImgCls:`${Ae}-img`,emptyImgHeight:xe*2.5,emptyImgHeightMD:xe,emptyImgHeightSM:xe*.875});return[Ee(Le)]}),te=function(Pe,Ae){var xe={};for(var Le in Pe)Object.prototype.hasOwnProperty.call(Pe,Le)&&Ae.indexOf(Le)<0&&(xe[Le]=Pe[Le]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Le=Object.getOwnPropertySymbols(Pe);Te<Le.length;Te++)Ae.indexOf(Le[Te])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Le[Te])&&(xe[Le[Te]]=Pe[Le[Te]]);return xe};const ue=Ve.createElement(vt,null),ae=Ve.createElement(tt,null),de=Pe=>{var{className:Ae,rootClassName:xe,prefixCls:Le,image:Te=ue,description:He,children:ze,imageStyle:Ke,style:Ze}=Pe,Mt=te(Pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Xe,direction:Ft,empty:Ct}=Ve.useContext(st.E_),Nt=Xe("empty",Le),[It,_t]=ee(Nt),[lt]=(0,We.Z)("Empty"),je=typeof He!="undefined"?He:lt==null?void 0:lt.description,Et=typeof je=="string"?je:"empty";let ln=null;return typeof Te=="string"?ln=Ve.createElement("img",{alt:Et,src:Te}):ln=Te,It(Ve.createElement("div",Object.assign({className:Ie()(_t,Nt,Ct==null?void 0:Ct.className,{[`${Nt}-normal`]:Te===ae,[`${Nt}-rtl`]:Ft==="rtl"},Ae,xe),style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Ze)},Mt),Ve.createElement("div",{className:`${Nt}-image`,style:Ke},ln),je&&Ve.createElement("div",{className:`${Nt}-description`},je),ze&&Ve.createElement("div",{className:`${Nt}-footer`},ze)))};de.PRESENTED_IMAGE_DEFAULT=ue,de.PRESENTED_IMAGE_SIMPLE=ae;var ve=de},78241:function(gn,zt,he){"use strict";he.d(zt,{default:function(){return Ut}});var pe=he(26390),Ie=he(92310),Ve=he.n(Ie),st=he(43469),We=he(59301),it=he(62892),be=he(32441);function yt(bt){const[xn,hn]=We.useState(bt);return We.useEffect(()=>{const Tt=setTimeout(()=>{hn(bt)},bt.length?0:10);return()=>{clearTimeout(Tt)}},[bt]),xn}var vt=he(17313),Je=he(29878),tt=he(8378),$e=he(37613),Qe=he(83116),ee=bt=>{const{componentCls:xn}=bt,hn=`${xn}-show-help`,Tt=`${xn}-show-help-item`;return{[hn]:{transition:`opacity ${bt.motionDurationSlow} ${bt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Tt]:{overflow:"hidden",transition:`height ${bt.motionDurationSlow} ${bt.motionEaseInOut},
|
|
|
opacity ${bt.motionDurationSlow} ${bt.motionEaseInOut},
|
|
|
transform ${bt.motionDurationSlow} ${bt.motionEaseInOut} !important`,[`&${Tt}-appear, &${Tt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Tt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const te=bt=>({legend:{display:"block",width:"100%",marginBottom:bt.marginLG,padding:0,color:bt.colorTextDescription,fontSize:bt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${bt.lineWidth}px ${bt.lineType} ${bt.colorBorder}`},label:{fontSize:bt.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 ${bt.controlOutlineWidth}px ${bt.controlOutline}`},output:{display:"block",paddingTop:15,color:bt.colorText,fontSize:bt.fontSize,lineHeight:bt.lineHeight}}),ue=(bt,xn)=>{const{formItemCls:hn}=bt;return{[hn]:{[`${hn}-label > label`]:{height:xn},[`${hn}-control-input`]:{minHeight:xn}}}},ae=bt=>{const{componentCls:xn}=bt;return{[bt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,vt.Wf)(bt)),te(bt)),{[`${xn}-text`]:{display:"inline-block",paddingInlineEnd:bt.paddingSM},"&-small":Object.assign({},ue(bt,bt.controlHeightSM)),"&-large":Object.assign({},ue(bt,bt.controlHeightLG))})}},de=bt=>{const{formItemCls:xn,iconCls:hn,componentCls:Tt,rootPrefixCls:ot,labelRequiredMarkColor:fn,labelColor:yn,labelFontSize:li,labelHeight:vn,labelColonMarginInlineStart:at,labelColonMarginInlineEnd:Bn,itemMarginBottom:pi}=bt;return{[xn]:Object.assign(Object.assign({},(0,vt.Wf)(bt)),{marginBottom:pi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${ot}-row`]:{display:"none"},"&-has-warning":{[`${xn}-split`]:{color:bt.colorError}},"&-has-error":{[`${xn}-split`]:{color:bt.colorWarning}},[`${xn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${bt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:vn,color:yn,fontSize:li,[`> ${hn}`]:{fontSize:bt.fontSize,verticalAlign:"top"},[`&${xn}-required:not(${xn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:bt.marginXXS,color:fn,fontSize:bt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Tt}-hide-required-mark &`]:{display:"none"}},[`${xn}-optional`]:{display:"inline-block",marginInlineStart:bt.marginXXS,color:bt.colorTextDescription,[`${Tt}-hide-required-mark &`]:{display:"none"}},[`${xn}-tooltip`]:{color:bt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:bt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:at,marginInlineEnd:Bn},[`&${xn}-no-colon::after`]:{content:'"\\a0"'}}},[`${xn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ot}-col-'"]):not([class*="' ${ot}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:bt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[xn]:{"&-explain, &-extra":{clear:"both",color:bt.colorTextDescription,fontSize:bt.fontSize,lineHeight:bt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:bt.controlHeightSM,transition:`color ${bt.motionDurationMid} ${bt.motionEaseOut}`},"&-explain":{"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning}}},[`&-with-help ${xn}-explain`]:{height:"auto",opacity:1},[`${xn}-feedback-icon`]:{fontSize:bt.fontSize,textAlign:"center",visibility:"visible",animationName:Je.kr,animationDuration:bt.motionDurationMid,animationTimingFunction:bt.motionEaseOutBack,pointerEvents:"none","&-success":{color:bt.colorSuccess},"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning},"&-validating":{color:bt.colorPrimary}}})}},ve=bt=>{const{componentCls:xn,formItemCls:hn}=bt;return{[`${xn}-horizontal`]:{[`${hn}-label`]:{flexGrow:0},[`${hn}-control`]:{flex:"1 1 0",minWidth:0},[`${hn}-label[class$='-24'], ${hn}-label[class*='-24 ']`]:{[`& + ${hn}-control`]:{minWidth:"unset"}}}}},Pe=bt=>{const{componentCls:xn,formItemCls:hn}=bt;return{[`${xn}-inline`]:{display:"flex",flexWrap:"wrap",[hn]:{flex:"none",marginInlineEnd:bt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${hn}-label,
|
|
|
> ${hn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${hn}-label`]:{flex:"none"},[`${xn}-text`]:{display:"inline-block"},[`${hn}-has-feedback`]:{display:"inline-block"}}}}},Ae=bt=>({padding:bt.verticalLabelPadding,margin:bt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),xe=bt=>{const{componentCls:xn,formItemCls:hn,rootPrefixCls:Tt}=bt;return{[`${hn} ${hn}-label`]:Ae(bt),[xn]:{[hn]:{flexWrap:"wrap",[`${hn}-label, ${hn}-control`]:{[`&:not([class*=" ${Tt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Le=bt=>{const{componentCls:xn,formItemCls:hn,rootPrefixCls:Tt}=bt;return{[`${xn}-vertical`]:{[hn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${xn}-item-control`]:{width:"100%"}}},[`${xn}-vertical ${hn}-label,
|
|
|
.${Tt}-col-24${hn}-label,
|
|
|
.${Tt}-col-xl-24${hn}-label`]:Ae(bt),[`@media (max-width: ${bt.screenXSMax}px)`]:[xe(bt),{[xn]:{[`.${Tt}-col-xs-24${hn}-label`]:Ae(bt)}}],[`@media (max-width: ${bt.screenSMMax}px)`]:{[xn]:{[`.${Tt}-col-sm-24${hn}-label`]:Ae(bt)}},[`@media (max-width: ${bt.screenMDMax}px)`]:{[xn]:{[`.${Tt}-col-md-24${hn}-label`]:Ae(bt)}},[`@media (max-width: ${bt.screenLGMax}px)`]:{[xn]:{[`.${Tt}-col-lg-24${hn}-label`]:Ae(bt)}}}},Te=(bt,xn)=>(0,$e.TS)(bt,{formItemCls:`${bt.componentCls}-item`,rootPrefixCls:xn});var He=(0,Qe.Z)("Form",(bt,xn)=>{let{rootPrefixCls:hn}=xn;const Tt=Te(bt,hn);return[ae(Tt),de(Tt),ee(Tt),ve(Tt),Pe(Tt),Le(Tt),(0,tt.Z)(Tt),Je.kr]},bt=>({labelRequiredMarkColor:bt.colorError,labelColor:bt.colorTextHeading,labelFontSize:bt.fontSize,labelHeight:bt.controlHeight,labelColonMarginInlineStart:bt.marginXXS/2,labelColonMarginInlineEnd:bt.marginXS,itemMarginBottom:bt.marginLG,verticalLabelPadding:`0 0 ${bt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const ze=[];function Ke(bt,xn,hn){let Tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof bt=="string"?bt:`${xn}-${Tt}`,error:bt,errorStatus:hn}}var Mt=bt=>{let{help:xn,helpStatus:hn,errors:Tt=ze,warnings:ot=ze,className:fn,fieldId:yn,onVisibleChanged:li}=bt;const{prefixCls:vn}=We.useContext(be.Rk),at=`${vn}-item-explain`,[,Bn]=He(vn),pi=(0,We.useMemo)(()=>(0,it.Z)(vn),[vn]),Li=yt(Tt),qt=yt(ot),Nn=We.useMemo(()=>xn!=null?[Ke(xn,"help",hn)]:[].concat((0,pe.Z)(Li.map((Sn,Fn)=>Ke(Sn,"error","error",Fn))),(0,pe.Z)(qt.map((Sn,Fn)=>Ke(Sn,"warning","warning",Fn)))),[xn,hn,Li,qt]),on={};return yn&&(on.id=`${yn}_help`),We.createElement(st.default,{motionDeadline:pi.motionDeadline,motionName:`${vn}-show-help`,visible:!!Nn.length,onVisibleChanged:li},Sn=>{const{className:Fn,style:En}=Sn;return We.createElement("div",Object.assign({},on,{className:Ve()(at,Fn,fn,Bn),style:En,role:"alert"}),We.createElement(st.CSSMotionList,Object.assign({keys:Nn},(0,it.Z)(vn),{motionName:`${vn}-show-help-item`,component:!1}),kn=>{const{key:Zn,error:Jn,errorStatus:si,className:Tn,style:mi}=kn;return We.createElement("div",{key:Zn,className:Ve()(Tn,{[`${at}-${si}`]:si}),style:mi},Jn)}))})},Xe=he(95013),Ft=he(36355),Ct=he(1684),Nt=he(52946),It=he(19716),_t=he(16722);const lt=["parentNode"],je="form_item";function Et(bt){return bt===void 0||bt===!1?[]:Array.isArray(bt)?bt:[bt]}function ln(bt,xn){if(!bt.length)return;const hn=bt.join("_");return xn?`${xn}_${hn}`:lt.includes(hn)?`${je}_${hn}`:hn}function Ht(bt,xn,hn,Tt,ot,fn){let yn=Tt;return fn!==void 0?yn=fn:hn.validating?yn="validating":bt.length?yn="error":xn.length?yn="warning":(hn.touched||ot&&hn.validated)&&(yn="success"),yn}function xt(bt){return Et(bt).join("_")}function Bt(bt){const[xn]=(0,Xe.useForm)(),hn=We.useRef({}),Tt=We.useMemo(()=>bt!=null?bt:Object.assign(Object.assign({},xn),{__INTERNAL__:{itemRef:ot=>fn=>{const yn=xt(ot);fn?hn.current[yn]=fn:delete hn.current[yn]}},scrollToField:function(ot){let fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const yn=Et(ot),li=ln(yn,Tt.__INTERNAL__.name),vn=li?document.getElementById(li):null;vn&&(0,_t.Z)(vn,Object.assign({scrollMode:"if-needed",block:"nearest"},fn))},getFieldInstance:ot=>{const fn=xt(ot);return hn.current[fn]}}),[bt,xn]);return[Tt]}var rn=he(28726),Hn=function(bt,xn){var hn={};for(var Tt in bt)Object.prototype.hasOwnProperty.call(bt,Tt)&&xn.indexOf(Tt)<0&&(hn[Tt]=bt[Tt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Tt=Object.getOwnPropertySymbols(bt);ot<Tt.length;ot++)xn.indexOf(Tt[ot])<0&&Object.prototype.propertyIsEnumerable.call(bt,Tt[ot])&&(hn[Tt[ot]]=bt[Tt[ot]]);return hn};const pn=(bt,xn)=>{const hn=We.useContext(Ct.Z),{getPrefixCls:Tt,direction:ot,form:fn}=We.useContext(Ft.E_),{prefixCls:yn,className:li,rootClassName:vn,size:at,disabled:Bn=hn,form:pi,colon:Li,labelAlign:qt,labelWrap:Nn,labelCol:on,wrapperCol:Sn,hideRequiredMark:Fn,layout:En="horizontal",scrollToFirstError:kn,requiredMark:Zn,onFinishFailed:Jn,name:si,style:Tn,feedbackIcons:mi}=bt,nr=Hn(bt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Br=(0,It.Z)(at),rr=We.useContext(rn.Z),Jt=(0,We.useMemo)(()=>Zn!==void 0?Zn:fn&&fn.requiredMark!==void 0?fn.requiredMark:!Fn,[Fn,Zn,fn]),Fi=Li!=null?Li:fn==null?void 0:fn.colon,Si=Tt("form",yn),[Wi,Nr]=He(Si),br=Ve()(Si,`${Si}-${En}`,{[`${Si}-hide-required-mark`]:Jt===!1,[`${Si}-rtl`]:ot==="rtl",[`${Si}-${Br}`]:Br},Nr,fn==null?void 0:fn.className,li,vn),[Ir]=Bt(pi),{__INTERNAL__:hr}=Ir;hr.name=si;const Ui=(0,We.useMemo)(()=>({name:si,labelAlign:qt,labelCol:on,labelWrap:Nn,wrapperCol:Sn,vertical:En==="vertical",colon:Fi,requiredMark:Jt,itemRef:hr.itemRef,form:Ir,feedbackIcons:mi}),[si,qt,on,Sn,En,Fi,Jt,Ir,mi]);We.useImperativeHandle(xn,()=>Ir);const Jr=(Co,Wn)=>{if(Co){let Hr={block:"nearest"};typeof Co=="object"&&(Hr=Co),Ir.scrollToField(Wn,Hr)}},An=Co=>{if(Jn==null||Jn(Co),Co.errorFields.length){const Wn=Co.errorFields[0].name;if(kn!==void 0){Jr(kn,Wn);return}fn&&fn.scrollToFirstError!==void 0&&Jr(fn.scrollToFirstError,Wn)}};return Wi(We.createElement(Ct.n,{disabled:Bn},We.createElement(Nt.q,{size:Br},We.createElement(be.RV,Object.assign({},{validateMessages:rr}),We.createElement(be.q3.Provider,{value:Ui},We.createElement(Xe.default,Object.assign({id:si},nr,{name:si,onFinishFailed:An,form:Ir,style:Object.assign(Object.assign({},fn==null?void 0:fn.style),Tn),className:br})))))))};var Lt=We.forwardRef(pn),Un=he(12383),Gn=he(20475),ui=he(92343),Ln=he(38298);function Wt(bt){if(typeof bt=="function")return bt;const xn=(0,Ln.Z)(bt);return xn.length<=1?xn[0]:xn}const Vt=()=>{const{status:bt,errors:xn=[],warnings:hn=[]}=(0,We.useContext)(be.aM);return{status:bt,errors:xn,warnings:hn}};Vt.Context=be.aM;var mt=Vt,Ye=he(23073);function Zt(bt){const[xn,hn]=We.useState(bt),Tt=(0,We.useRef)(null),ot=(0,We.useRef)([]),fn=(0,We.useRef)(!1);We.useEffect(()=>(fn.current=!1,()=>{fn.current=!0,Ye.Z.cancel(Tt.current),Tt.current=null}),[]);function yn(li){fn.current||(Tt.current===null&&(ot.current=[],Tt.current=(0,Ye.Z)(()=>{Tt.current=null,hn(vn=>{let at=vn;return ot.current.forEach(Bn=>{at=Bn(at)}),at})})),ot.current.push(li))}return[xn,yn]}function Gt(){const{itemRef:bt}=We.useContext(be.q3),xn=We.useRef({});function hn(Tt,ot){const fn=ot&&typeof ot=="object"&&ot.ref,yn=Tt.join("_");return(xn.current.name!==yn||xn.current.originRef!==fn)&&(xn.current.name=yn,xn.current.originRef=fn,xn.current.ref=(0,Gn.sQ)(bt(Tt),fn)),xn.current.ref}return hn}var ft=he(48886),nt=he(28800),Oe=he(64002),we=he(27382),ye=he(37028);const ke=bt=>{const{formItemCls:xn}=bt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${xn}-control`]:{display:"flex"}}}};var Ge=(0,Qe.b)(["Form","item-item"],(bt,xn)=>{let{rootPrefixCls:hn}=xn;const Tt=Te(bt,hn);return[ke(Tt)]}),pt=bt=>{const{prefixCls:xn,status:hn,wrapperCol:Tt,children:ot,errors:fn,warnings:yn,_internalItemRender:li,extra:vn,help:at,fieldId:Bn,marginBottom:pi,onErrorVisibleChanged:Li}=bt,qt=`${xn}-item`,Nn=We.useContext(be.q3),on=Tt||Nn.wrapperCol||{},Sn=Ve()(`${qt}-control`,on.className),Fn=We.useMemo(()=>Object.assign({},Nn),[Nn]);delete Fn.labelCol,delete Fn.wrapperCol;const En=We.createElement("div",{className:`${qt}-control-input`},We.createElement("div",{className:`${qt}-control-input-content`},ot)),kn=We.useMemo(()=>({prefixCls:xn,status:hn}),[xn,hn]),Zn=pi!==null||fn.length||yn.length?We.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},We.createElement(be.Rk.Provider,{value:kn},We.createElement(Mt,{fieldId:Bn,errors:fn,warnings:yn,help:at,helpStatus:hn,className:`${qt}-explain-connected`,onVisibleChanged:Li})),!!pi&&We.createElement("div",{style:{width:0,height:pi}})):null,Jn={};Bn&&(Jn.id=`${Bn}_extra`);const si=vn?We.createElement("div",Object.assign({},Jn,{className:`${qt}-extra`}),vn):null,Tn=li&&li.mark==="pro_table_render"&&li.render?li.render(bt,{input:En,errorList:Zn,extra:si}):We.createElement(We.Fragment,null,En,Zn,si);return We.createElement(be.q3.Provider,{value:Fn},We.createElement(ye.Z,Object.assign({},on,{className:Sn}),Tn),We.createElement(Ge,{prefixCls:xn}))},tn=he(86902),en=he(31724),wt=he(9763),Xt=he(6848),Pn=function(bt,xn){var hn={};for(var Tt in bt)Object.prototype.hasOwnProperty.call(bt,Tt)&&xn.indexOf(Tt)<0&&(hn[Tt]=bt[Tt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Tt=Object.getOwnPropertySymbols(bt);ot<Tt.length;ot++)xn.indexOf(Tt[ot])<0&&Object.prototype.propertyIsEnumerable.call(bt,Tt[ot])&&(hn[Tt[ot]]=bt[Tt[ot]]);return hn};function In(bt){return bt?typeof bt=="object"&&!We.isValidElement(bt)?bt:{title:bt}:null}var Pi=bt=>{let{prefixCls:xn,label:hn,htmlFor:Tt,labelCol:ot,labelAlign:fn,colon:yn,required:li,requiredMark:vn,tooltip:at}=bt;var Bn;const[pi]=(0,wt.Z)("Form"),{vertical:Li,labelAlign:qt,labelCol:Nn,labelWrap:on,colon:Sn}=We.useContext(be.q3);if(!hn)return null;const Fn=ot||Nn||{},En=fn||qt,kn=`${xn}-item-label`,Zn=Ve()(kn,En==="left"&&`${kn}-left`,Fn.className,{[`${kn}-wrap`]:!!on});let Jn=hn;const si=yn===!0||Sn!==!1&&yn!==!1;si&&!Li&&typeof hn=="string"&&hn.trim()!==""&&(Jn=hn.replace(/[:|:]\s*$/,""));const mi=In(at);if(mi){const{icon:Jt=We.createElement(tn.Z,null)}=mi,Fi=Pn(mi,["icon"]),Si=We.createElement(Xt.Z,Object.assign({},Fi),We.cloneElement(Jt,{className:`${xn}-item-tooltip`,title:""}));Jn=We.createElement(We.Fragment,null,Jn,Si)}const nr=vn==="optional",Br=typeof vn=="function";Br?Jn=vn(Jn,{required:!!li}):nr&&!li&&(Jn=We.createElement(We.Fragment,null,Jn,We.createElement("span",{className:`${xn}-item-optional`,title:""},(pi==null?void 0:pi.optional)||((Bn=en.Z.Form)===null||Bn===void 0?void 0:Bn.optional))));const rr=Ve()({[`${xn}-item-required`]:li,[`${xn}-item-required-mark-optional`]:nr||Br,[`${xn}-item-no-colon`]:!si});return We.createElement(ye.Z,Object.assign({},Fn,{className:Zn}),We.createElement("label",{htmlFor:Tt,className:rr,title:typeof hn=="string"?hn:""},Jn))},wn=he(79999),Ai=he(33130),Vi=he(85404),ur=he(50023);const sr={success:wn.Z,warning:Vi.Z,error:Ai.Z,validating:ur.Z};function Qn(bt){let{children:xn,errors:hn,warnings:Tt,hasFeedback:ot,validateStatus:fn,prefixCls:yn,meta:li,noStyle:vn}=bt;const at=`${yn}-item`,{feedbackIcons:Bn}=We.useContext(be.q3),pi=Ht(hn,Tt,li,null,!!ot,fn),{isFormItemInput:Li,status:qt}=We.useContext(be.aM),Nn=We.useMemo(()=>{var on;let Sn;if(ot){const kn=ot!==!0&&ot.icons||Bn,Zn=pi&&((on=kn==null?void 0:kn({status:pi,errors:hn,warnings:Tt}))===null||on===void 0?void 0:on[pi]),Jn=pi&&sr[pi];Sn=Zn!==!1&&Jn?We.createElement("span",{className:Ve()(`${at}-feedback-icon`,`${at}-feedback-icon-${pi}`)},Zn||We.createElement(Jn,null)):null}let Fn=!0,En=pi||"";return vn&&(Fn=Li,En=(pi!=null?pi:qt)||""),{status:En,errors:hn,warnings:Tt,hasFeedback:!!ot,feedbackIcon:Sn,isFormItemInput:Fn}},[pi,ot,vn,Li,qt]);return We.createElement(be.aM.Provider,{value:Nn},xn)}var Ci=function(bt,xn){var hn={};for(var Tt in bt)Object.prototype.hasOwnProperty.call(bt,Tt)&&xn.indexOf(Tt)<0&&(hn[Tt]=bt[Tt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Tt=Object.getOwnPropertySymbols(bt);ot<Tt.length;ot++)xn.indexOf(Tt[ot])<0&&Object.prototype.propertyIsEnumerable.call(bt,Tt[ot])&&(hn[Tt[ot]]=bt[Tt[ot]]);return hn};function er(bt){const{prefixCls:xn,className:hn,rootClassName:Tt,style:ot,help:fn,errors:yn,warnings:li,validateStatus:vn,meta:at,hasFeedback:Bn,hidden:pi,children:Li,fieldId:qt,required:Nn,isRequired:on,onSubItemMetaChange:Sn}=bt,Fn=Ci(bt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),En=`${xn}-item`,{requiredMark:kn}=We.useContext(be.q3),Zn=We.useRef(null),Jn=yt(yn),si=yt(li),Tn=fn!=null,mi=!!(Tn||yn.length||li.length),nr=!!Zn.current&&(0,ft.Z)(Zn.current),[Br,rr]=We.useState(null);(0,nt.Z)(()=>{if(mi&&Zn.current){const Nr=getComputedStyle(Zn.current);rr(parseInt(Nr.marginBottom,10))}},[mi,nr]);const Jt=Nr=>{Nr||rr(null)},Si=function(){let Nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const br=Nr?Jn:at.errors,Ir=Nr?si:at.warnings;return Ht(br,Ir,at,"",!!Bn,vn)}(),Wi=Ve()(En,hn,Tt,{[`${En}-with-help`]:Tn||Jn.length||si.length,[`${En}-has-feedback`]:Si&&Bn,[`${En}-has-success`]:Si==="success",[`${En}-has-warning`]:Si==="warning",[`${En}-has-error`]:Si==="error",[`${En}-is-validating`]:Si==="validating",[`${En}-hidden`]:pi});return We.createElement("div",{className:Wi,style:ot,ref:Zn},We.createElement(we.Z,Object.assign({className:`${En}-row`},(0,Oe.Z)(Fn,["_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"])),We.createElement(Pi,Object.assign({htmlFor:qt},bt,{requiredMark:kn,required:Nn!=null?Nn:on,prefixCls:xn})),We.createElement(pt,Object.assign({},bt,at,{errors:Jn,warnings:si,prefixCls:xn,status:Si,help:fn,marginBottom:Br,onErrorVisibleChanged:Jt}),We.createElement(be.qI.Provider,{value:Sn},We.createElement(Qn,{prefixCls:xn,meta:at,errors:at.errors,warnings:at.warnings,hasFeedback:Bn,validateStatus:Si},Li)))),!!Br&&We.createElement("div",{className:`${En}-margin-offset`,style:{marginBottom:-Br}}))}const ri="__SPLIT__",tr=null,Di=We.memo(bt=>{let{children:xn}=bt;return xn},(bt,xn)=>bt.value===xn.value&&bt.update===xn.update&&bt.childProps.length===xn.childProps.length&&bt.childProps.every((hn,Tt)=>hn===xn.childProps[Tt]));function De(bt){return bt!=null}function Yr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function yr(bt){const{name:xn,noStyle:hn,className:Tt,dependencies:ot,prefixCls:fn,shouldUpdate:yn,rules:li,children:vn,required:at,label:Bn,messageVariables:pi,trigger:Li="onChange",validateTrigger:qt,hidden:Nn,help:on}=bt,{getPrefixCls:Sn}=We.useContext(Ft.E_),{name:Fn}=We.useContext(be.q3),En=Wt(vn),kn=typeof En=="function",Zn=We.useContext(be.qI),{validateTrigger:Jn}=We.useContext(Xe.FieldContext),si=qt!==void 0?qt:Jn,Tn=De(xn),mi=Sn("form",fn),[nr,Br]=He(mi),rr=We.useContext(Xe.ListContext),Jt=We.useRef(),[Fi,Si]=Zt({}),[Wi,Nr]=(0,Un.Z)(()=>Yr()),br=Wn=>{const Hr=rr==null?void 0:rr.getKey(Wn.name);if(Nr(Wn.destroy?Yr():Wn,!0),hn&&on!==!1&&Zn){let ha=Wn.name;if(Wn.destroy)ha=Jt.current||ha;else if(Hr!==void 0){const[yo,Ot]=Hr;ha=[yo].concat((0,pe.Z)(Ot)),Jt.current=ha}Zn(Wn,ha)}},Ir=(Wn,Hr)=>{Si(ha=>{const yo=Object.assign({},ha),di=[].concat((0,pe.Z)(Wn.name.slice(0,-1)),(0,pe.Z)(Hr)).join(ri);return Wn.destroy?delete yo[di]:yo[di]=Wn,yo})},[hr,Ui]=We.useMemo(()=>{const Wn=(0,pe.Z)(Wi.errors),Hr=(0,pe.Z)(Wi.warnings);return Object.values(Fi).forEach(ha=>{Wn.push.apply(Wn,(0,pe.Z)(ha.errors||[])),Hr.push.apply(Hr,(0,pe.Z)(ha.warnings||[]))}),[Wn,Hr]},[Fi,Wi.errors,Wi.warnings]),Jr=Gt();function An(Wn,Hr,ha){return hn&&!Nn?We.createElement(Qn,{prefixCls:mi,hasFeedback:bt.hasFeedback,validateStatus:bt.validateStatus,meta:Wi,errors:hr,warnings:Ui,noStyle:!0},Wn):We.createElement(er,Object.assign({key:"row"},bt,{className:Ve()(Tt,Br),prefixCls:mi,fieldId:Hr,isRequired:ha,errors:hr,warnings:Ui,meta:Wi,onSubItemMetaChange:Ir}),Wn)}if(!Tn&&!kn&&!ot)return nr(An(En));let Co={};return typeof Bn=="string"?Co.label=Bn:xn&&(Co.label=String(xn)),pi&&(Co=Object.assign(Object.assign({},Co),pi)),nr(We.createElement(Xe.Field,Object.assign({},bt,{messageVariables:Co,trigger:Li,validateTrigger:si,onMetaChange:br}),(Wn,Hr,ha)=>{const yo=Et(xn).length&&Hr?Hr.name:[],Ot=ln(yo,Fn),di=at!==void 0?at:!!(li&&li.some(Ar=>{if(Ar&&typeof Ar=="object"&&Ar.required&&!Ar.warningOnly)return!0;if(typeof Ar=="function"){const Sr=Ar(ha);return Sr&&Sr.required&&!Sr.warningOnly}return!1})),Mn=Object.assign({},Wn);let qn=null;if(Array.isArray(En)&&Tn)qn=En;else if(!(kn&&(!(yn||ot)||Tn))){if(!(ot&&!kn&&!Tn))if((0,ui.l$)(En)){const Ar=Object.assign(Object.assign({},En.props),Mn);if(Ar.id||(Ar.id=Ot),on||hr.length>0||Ui.length>0||bt.extra){const qe=[];(on||hr.length>0)&&qe.push(`${Ot}_help`),bt.extra&&qe.push(`${Ot}_extra`),Ar["aria-describedby"]=qe.join(" ")}hr.length>0&&(Ar["aria-invalid"]="true"),di&&(Ar["aria-required"]="true"),(0,Gn.Yr)(En)&&(Ar.ref=Jr(yo,En)),new Set([].concat((0,pe.Z)(Et(Li)),(0,pe.Z)(Et(si)))).forEach(qe=>{Ar[qe]=function(){for(var _i,uo,wr,Uo,Er,fr=arguments.length,ho=new Array(fr),ro=0;ro<fr;ro++)ho[ro]=arguments[ro];(wr=Mn[qe])===null||wr===void 0||(_i=wr).call.apply(_i,[Mn].concat(ho)),(Er=(Uo=En.props)[qe])===null||Er===void 0||(uo=Er).call.apply(uo,[Uo].concat(ho))}});const Kn=[Ar["aria-required"],Ar["aria-invalid"],Ar["aria-describedby"]];qn=We.createElement(Di,{value:Mn[bt.valuePropName||"value"],update:En,childProps:Kn},(0,ui.Tm)(En,Ar))}else kn&&(yn||ot)&&!Tn?qn=En(ha):qn=En}return An(qn,Ot,di)}))}const Dr=yr;Dr.useStatus=mt;var lo=Dr,Wo=function(bt,xn){var hn={};for(var Tt in bt)Object.prototype.hasOwnProperty.call(bt,Tt)&&xn.indexOf(Tt)<0&&(hn[Tt]=bt[Tt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Tt=Object.getOwnPropertySymbols(bt);ot<Tt.length;ot++)xn.indexOf(Tt[ot])<0&&Object.prototype.propertyIsEnumerable.call(bt,Tt[ot])&&(hn[Tt[ot]]=bt[Tt[ot]]);return hn},ki=bt=>{var{prefixCls:xn,children:hn}=bt,Tt=Wo(bt,["prefixCls","children"]);const{getPrefixCls:ot}=We.useContext(Ft.E_),fn=ot("form",xn),yn=We.useMemo(()=>({prefixCls:fn,status:"error"}),[fn]);return We.createElement(Xe.List,Object.assign({},Tt),(li,vn,at)=>We.createElement(be.Rk.Provider,{value:yn},hn(li.map(Bn=>Object.assign(Object.assign({},Bn),{fieldKey:Bn.key})),vn,{errors:at.errors,warnings:at.warnings})))};function an(){const{form:bt}=(0,We.useContext)(be.q3);return bt}const nn=Lt;nn.Item=lo,nn.List=ki,nn.ErrorList=Mt,nn.useForm=Bt,nn.useFormInstance=an,nn.useWatch=Xe.useWatch,nn.Provider=be.RV,nn.create=()=>{};var Ut=nn},8628:function(gn,zt,he){"use strict";var pe=he(59301),Ie=he(28800),Ve=he(56762),st=he(69507);function We(){let it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const be=(0,pe.useRef)({}),yt=(0,Ve.Z)(),vt=(0,st.ZP)();return(0,Ie.Z)(()=>{const Je=vt.subscribe(tt=>{be.current=tt,it&&yt()});return()=>vt.unsubscribe(Je)},[]),be.current}zt.Z=We},9432:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return de},n:function(){return ue}});var pe=he(33130),Ie=he(92310),Ve=he.n(Ie),st=he(93681),We=he(20475),it=he(59301),be=he(19080),yt=he(36355),vt=he(1684),Je=he(19716),tt=he(32441),$e=he(33234),Qe=he(59412),Ee=he(9937);function ee(ve){return!!(ve.prefix||ve.suffix||ve.allowClear)}var te=function(ve,Pe){var Ae={};for(var xe in ve)Object.prototype.hasOwnProperty.call(ve,xe)&&Pe.indexOf(xe)<0&&(Ae[xe]=ve[xe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,xe=Object.getOwnPropertySymbols(ve);Le<xe.length;Le++)Pe.indexOf(xe[Le])<0&&Object.prototype.propertyIsEnumerable.call(ve,xe[Le])&&(Ae[xe[Le]]=ve[xe[Le]]);return Ae};function ue(ve,Pe){if(!ve)return;ve.focus(Pe);const{cursor:Ae}=Pe||{};if(Ae){const xe=ve.value.length;switch(Ae){case"start":ve.setSelectionRange(0,0);break;case"end":ve.setSelectionRange(xe,xe);break;default:ve.setSelectionRange(0,xe);break}}}var de=(0,it.forwardRef)((ve,Pe)=>{var Ae;const{prefixCls:xe,bordered:Le=!0,status:Te,size:He,disabled:ze,onBlur:Ke,onFocus:Ze,suffix:Mt,allowClear:Xe,addonAfter:Ft,addonBefore:Ct,className:Nt,style:It,styles:_t,rootClassName:lt,onChange:je,classNames:Et}=ve,ln=te(ve,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ht,direction:xt,input:Bt}=it.useContext(yt.E_),rn=Ht("input",xe),Hn=(0,it.useRef)(null),[pn,_n]=(0,Ee.ZP)(rn),{compactSize:Lt,compactItemClassnames:Un}=(0,$e.ri)(rn,xt),Gn=(0,Je.Z)(Ge=>{var Fe;return(Fe=He!=null?He:Lt)!==null&&Fe!==void 0?Fe:Ge}),ui=it.useContext(vt.Z),Ln=ze!=null?ze:ui,{status:Wt,hasFeedback:Vt,feedbackIcon:mt}=(0,it.useContext)(tt.aM),Ye=(0,be.F)(Wt,Te),Zt=ee(ve)||!!Vt,Gt=(0,it.useRef)(Zt);(0,it.useEffect)(()=>{var Ge;Zt&&Gt.current,Gt.current=Zt},[Zt]);const ft=(0,Qe.Z)(Hn,!0),nt=Ge=>{ft(),Ke==null||Ke(Ge)},Oe=Ge=>{ft(),Ze==null||Ze(Ge)},we=Ge=>{ft(),je==null||je(Ge)},ye=(Vt||Mt)&&it.createElement(it.Fragment,null,Mt,Vt&&mt);let ke;return typeof Xe=="object"&&(Xe!=null&&Xe.clearIcon)?ke=Xe:Xe&&(ke={clearIcon:it.createElement(pe.Z,null)}),pn(it.createElement(st.default,Object.assign({ref:(0,We.sQ)(Pe,Hn),prefixCls:rn,autoComplete:Bt==null?void 0:Bt.autoComplete},ln,{disabled:Ln,onBlur:nt,onFocus:Oe,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),It),styles:Object.assign(Object.assign({},Bt==null?void 0:Bt.styles),_t),suffix:ye,allowClear:ke,className:Ve()(Nt,lt,Un,Bt==null?void 0:Bt.className),onChange:we,addonAfter:Ft&&it.createElement($e.BR,null,it.createElement(tt.Ux,{override:!0,status:!0},Ft)),addonBefore:Ct&&it.createElement($e.BR,null,it.createElement(tt.Ux,{override:!0,status:!0},Ct)),classNames:Object.assign(Object.assign(Object.assign({},Et),Bt==null?void 0:Bt.classNames),{input:Ve()({[`${rn}-sm`]:Gn==="small",[`${rn}-lg`]:Gn==="large",[`${rn}-rtl`]:xt==="rtl",[`${rn}-borderless`]:!Le},!Zt&&(0,be.Z)(rn,Ye),Et==null?void 0:Et.input,(Ae=Bt==null?void 0:Bt.classNames)===null||Ae===void 0?void 0:Ae.input,_n)}),classes:{affixWrapper:Ve()({[`${rn}-affix-wrapper-sm`]:Gn==="small",[`${rn}-affix-wrapper-lg`]:Gn==="large",[`${rn}-affix-wrapper-rtl`]:xt==="rtl",[`${rn}-affix-wrapper-borderless`]:!Le},(0,be.Z)(`${rn}-affix-wrapper`,Ye,Vt),_n),wrapper:Ve()({[`${rn}-group-rtl`]:xt==="rtl"},_n),group:Ve()({[`${rn}-group-wrapper-sm`]:Gn==="small",[`${rn}-group-wrapper-lg`]:Gn==="large",[`${rn}-group-wrapper-rtl`]:xt==="rtl",[`${rn}-group-wrapper-disabled`]:Ln},(0,be.Z)(`${rn}-group-wrapper`,Ye,Vt),_n)}})))})},1643:function(gn,zt,he){"use strict";var pe=he(33130),Ie=he(92310),Ve=he.n(Ie),st=he(9296),We=he(59301),it=he(19080),be=he(36355),yt=he(1684),vt=he(19716),Je=he(32441),tt=he(9432),$e=he(9937),Qe=function(ee,te){var ue={};for(var ae in ee)Object.prototype.hasOwnProperty.call(ee,ae)&&te.indexOf(ae)<0&&(ue[ae]=ee[ae]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ae=Object.getOwnPropertySymbols(ee);de<ae.length;de++)te.indexOf(ae[de])<0&&Object.prototype.propertyIsEnumerable.call(ee,ae[de])&&(ue[ae[de]]=ee[ae[de]]);return ue};const Ee=(0,We.forwardRef)((ee,te)=>{const{prefixCls:ue,bordered:ae=!0,size:de,disabled:ve,status:Pe,allowClear:Ae,showCount:xe,classNames:Le,rootClassName:Te,className:He}=ee,ze=Qe(ee,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ke,direction:Ze}=We.useContext(be.E_),Mt=(0,vt.Z)(de),Xe=We.useContext(yt.Z),Ft=ve!=null?ve:Xe,{status:Ct,hasFeedback:Nt,feedbackIcon:It}=We.useContext(Je.aM),_t=(0,it.F)(Ct,Pe),lt=We.useRef(null);We.useImperativeHandle(te,()=>{var xt;return{resizableTextArea:(xt=lt.current)===null||xt===void 0?void 0:xt.resizableTextArea,focus:Bt=>{var rn,Hn;(0,tt.n)((Hn=(rn=lt.current)===null||rn===void 0?void 0:rn.resizableTextArea)===null||Hn===void 0?void 0:Hn.textArea,Bt)},blur:()=>{var Bt;return(Bt=lt.current)===null||Bt===void 0?void 0:Bt.blur()}}});const je=Ke("input",ue);let Et;typeof Ae=="object"&&(Ae!=null&&Ae.clearIcon)?Et=Ae:Ae&&(Et={clearIcon:We.createElement(pe.Z,null)});const[ln,Ht]=(0,$e.ZP)(je);return ln(We.createElement(st.default,Object.assign({},ze,{disabled:Ft,allowClear:Et,className:Ve()(He,Te),classes:{affixWrapper:Ve()(`${je}-textarea-affix-wrapper`,{[`${je}-affix-wrapper-rtl`]:Ze==="rtl",[`${je}-affix-wrapper-borderless`]:!ae,[`${je}-affix-wrapper-sm`]:Mt==="small",[`${je}-affix-wrapper-lg`]:Mt==="large",[`${je}-textarea-show-count`]:xe},(0,it.Z)(`${je}-affix-wrapper`,_t),Ht)},classNames:Object.assign(Object.assign({},Le),{textarea:Ve()({[`${je}-borderless`]:!ae,[`${je}-sm`]:Mt==="small",[`${je}-lg`]:Mt==="large"},(0,it.Z)(je,_t),Ht,Le==null?void 0:Le.textarea)}),prefixCls:je,suffix:Nt&&We.createElement("span",{className:`${je}-textarea-suffix`},It),showCount:xe,ref:lt})))});zt.Z=Ee},59412:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Ie}});var pe=he(59301);function Ie(Ve,st){const We=(0,pe.useRef)([]),it=()=>{We.current.push(setTimeout(()=>{var be,yt,vt,Je;!((be=Ve.current)===null||be===void 0)&&be.input&&((yt=Ve.current)===null||yt===void 0?void 0:yt.input.getAttribute("type"))==="password"&&(!((vt=Ve.current)===null||vt===void 0)&&vt.input.hasAttribute("value"))&&((Je=Ve.current)===null||Je===void 0||Je.input.removeAttribute("value"))}))};return(0,pe.useEffect)(()=>(st&&it(),()=>We.current.forEach(be=>{be&&clearTimeout(be)})),[]),it}},92832:function(gn,zt,he){"use strict";he.d(zt,{default:function(){return Mt}});var pe=he(92310),Ie=he.n(pe),Ve=he(59301),st=he(36355),We=he(32441),it=he(9937),yt=Xe=>{const{getPrefixCls:Ft,direction:Ct}=(0,Ve.useContext)(st.E_),{prefixCls:Nt,className:It}=Xe,_t=Ft("input-group",Nt),lt=Ft("input"),[je,Et]=(0,it.ZP)(lt),ln=Ie()(_t,{[`${_t}-lg`]:Xe.size==="large",[`${_t}-sm`]:Xe.size==="small",[`${_t}-compact`]:Xe.compact,[`${_t}-rtl`]:Ct==="rtl"},Et,It),Ht=(0,Ve.useContext)(We.aM),xt=(0,Ve.useMemo)(()=>Object.assign(Object.assign({},Ht),{isFormItemInput:!1}),[Ht]);return je(Ve.createElement("span",{className:ln,style:Xe.style,onMouseEnter:Xe.onMouseEnter,onMouseLeave:Xe.onMouseLeave,onFocus:Xe.onFocus,onBlur:Xe.onBlur},Ve.createElement(We.aM.Provider,{value:xt},Xe.children)))},vt=he(9432),Je=he(61441),tt=he(30631),$e=he(64002),Qe=he(20475),Ee=he(59412),ee=function(Xe,Ft){var Ct={};for(var Nt in Xe)Object.prototype.hasOwnProperty.call(Xe,Nt)&&Ft.indexOf(Nt)<0&&(Ct[Nt]=Xe[Nt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Nt=Object.getOwnPropertySymbols(Xe);It<Nt.length;It++)Ft.indexOf(Nt[It])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Nt[It])&&(Ct[Nt[It]]=Xe[Nt[It]]);return Ct};const te=Xe=>Xe?Ve.createElement(tt.Z,null):Ve.createElement(Je.Z,null),ue={click:"onClick",hover:"onMouseOver"};var de=Ve.forwardRef((Xe,Ft)=>{const{visibilityToggle:Ct=!0}=Xe,Nt=typeof Ct=="object"&&Ct.visible!==void 0,[It,_t]=(0,Ve.useState)(()=>Nt?Ct.visible:!1),lt=(0,Ve.useRef)(null);Ve.useEffect(()=>{Nt&&_t(Ct.visible)},[Nt,Ct]);const je=(0,Ee.Z)(lt),Et=()=>{const{disabled:Ln}=Xe;Ln||(It&&je(),_t(Wt=>{var Vt;const mt=!Wt;return typeof Ct=="object"&&((Vt=Ct.onVisibleChange)===null||Vt===void 0||Vt.call(Ct,mt)),mt}))},ln=Ln=>{const{action:Wt="click",iconRender:Vt=te}=Xe,mt=ue[Wt]||"",Ye=Vt(It),Zt={[mt]:Et,className:`${Ln}-icon`,key:"passwordIcon",onMouseDown:Gt=>{Gt.preventDefault()},onMouseUp:Gt=>{Gt.preventDefault()}};return Ve.cloneElement(Ve.isValidElement(Ye)?Ye:Ve.createElement("span",null,Ye),Zt)},{className:Ht,prefixCls:xt,inputPrefixCls:Bt,size:rn}=Xe,Hn=ee(Xe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:pn}=Ve.useContext(st.E_),_n=pn("input",Bt),Lt=pn("input-password",xt),Un=Ct&&ln(Lt),Gn=Ie()(Lt,Ht,{[`${Lt}-${rn}`]:!!rn}),ui=Object.assign(Object.assign({},(0,$e.Z)(Hn,["suffix","iconRender","visibilityToggle"])),{type:It?"text":"password",className:Gn,prefixCls:_n,suffix:Un});return rn&&(ui.size=rn),Ve.createElement(vt.Z,Object.assign({ref:(0,Qe.sQ)(Ft,lt)},ui))}),ve=he(21970),Pe=he(92343),Ae=he(3113),xe=he(19716),Le=he(33234),Te=function(Xe,Ft){var Ct={};for(var Nt in Xe)Object.prototype.hasOwnProperty.call(Xe,Nt)&&Ft.indexOf(Nt)<0&&(Ct[Nt]=Xe[Nt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Nt=Object.getOwnPropertySymbols(Xe);It<Nt.length;It++)Ft.indexOf(Nt[It])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Nt[It])&&(Ct[Nt[It]]=Xe[Nt[It]]);return Ct},ze=Ve.forwardRef((Xe,Ft)=>{const{prefixCls:Ct,inputPrefixCls:Nt,className:It,size:_t,suffix:lt,enterButton:je=!1,addonAfter:Et,loading:ln,disabled:Ht,onSearch:xt,onChange:Bt,onCompositionStart:rn,onCompositionEnd:Hn}=Xe,pn=Te(Xe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:_n,direction:Lt}=Ve.useContext(st.E_),Un=Ve.useRef(!1),Gn=_n("input-search",Ct),ui=_n("input",Nt),{compactSize:Ln}=(0,Le.ri)(Gn,Lt),Wt=(0,xe.Z)(pt=>{var tn;return(tn=_t!=null?_t:Ln)!==null&&tn!==void 0?tn:pt}),Vt=Ve.useRef(null),mt=pt=>{pt&&pt.target&&pt.type==="click"&&xt&&xt(pt.target.value,pt,{source:"clear"}),Bt&&Bt(pt)},Ye=pt=>{var tn;document.activeElement===((tn=Vt.current)===null||tn===void 0?void 0:tn.input)&&pt.preventDefault()},Zt=pt=>{var tn,en;xt&&xt((en=(tn=Vt.current)===null||tn===void 0?void 0:tn.input)===null||en===void 0?void 0:en.value,pt,{source:"input"})},Gt=pt=>{Un.current||ln||Zt(pt)},ft=typeof je=="boolean"?Ve.createElement(ve.Z,null):null,nt=`${Gn}-button`;let Oe;const we=je||{},ye=we.type&&we.type.__ANT_BUTTON===!0;ye||we.type==="button"?Oe=(0,Pe.Tm)(we,Object.assign({onMouseDown:Ye,onClick:pt=>{var tn,en;(en=(tn=we==null?void 0:we.props)===null||tn===void 0?void 0:tn.onClick)===null||en===void 0||en.call(tn,pt),Zt(pt)},key:"enterButton"},ye?{className:nt,size:Wt}:{})):Oe=Ve.createElement(Ae.ZP,{className:nt,type:je?"primary":void 0,size:Wt,disabled:Ht,key:"enterButton",onMouseDown:Ye,onClick:Zt,loading:ln,icon:ft},je),Et&&(Oe=[Oe,(0,Pe.Tm)(Et,{key:"addonAfter"})]);const ke=Ie()(Gn,{[`${Gn}-rtl`]:Lt==="rtl",[`${Gn}-${Wt}`]:!!Wt,[`${Gn}-with-button`]:!!je},It),Ge=pt=>{Un.current=!0,rn==null||rn(pt)},Fe=pt=>{Un.current=!1,Hn==null||Hn(pt)};return Ve.createElement(vt.Z,Object.assign({ref:(0,Qe.sQ)(Vt,Ft),onPressEnter:Gt},pn,{size:Wt,onCompositionStart:Ge,onCompositionEnd:Fe,prefixCls:ui,addonAfter:Oe,suffix:lt,onChange:mt,className:ke,disabled:Ht}))}),Ke=he(1643);const Ze=vt.Z;Ze.Group=yt,Ze.Search=ze,Ze.TextArea=Ke.Z,Ze.Password=de;var Mt=Ze},99580:function(gn,zt,he){"use strict";he.d(zt,{D:function(){return ve},Z:function(){return xe}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(Te,He){return Ie.createElement(We.Z,(0,pe.Z)({},Te,{ref:He,icon:st}))},be=Ie.forwardRef(it),yt=be,vt=he(16537),Je=he(53878),tt=he(92310),$e=he.n(tt),Qe=he(64002),ee=Le=>!isNaN(parseFloat(Le))&&isFinite(Le),te=he(36355),ue=he(84966),ae=function(Le,Te){var He={};for(var ze in Le)Object.prototype.hasOwnProperty.call(Le,ze)&&Te.indexOf(ze)<0&&(He[ze]=Le[ze]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ze=Object.getOwnPropertySymbols(Le);Ke<ze.length;Ke++)Te.indexOf(ze[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,ze[Ke])&&(He[ze[Ke]]=Le[ze[Ke]]);return He};const de={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ve=Ie.createContext({}),Pe=(()=>{let Le=0;return function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Le+=1,`${Te}${Le}`}})();var xe=Ie.forwardRef((Le,Te)=>{const{prefixCls:He,className:ze,trigger:Ke,children:Ze,defaultCollapsed:Mt=!1,theme:Xe="dark",style:Ft={},collapsible:Ct=!1,reverseArrow:Nt=!1,width:It=200,collapsedWidth:_t=80,zeroWidthTriggerStyle:lt,breakpoint:je,onCollapse:Et,onBreakpoint:ln}=Le,Ht=ae(Le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:xt}=(0,Ie.useContext)(ue.Gs),[Bt,rn]=(0,Ie.useState)("collapsed"in Le?Le.collapsed:Mt),[Hn,pn]=(0,Ie.useState)(!1);(0,Ie.useEffect)(()=>{"collapsed"in Le&&rn(Le.collapsed)},[Le.collapsed]);const _n=(Wt,Vt)=>{"collapsed"in Le||rn(Wt),Et==null||Et(Wt,Vt)},Lt=(0,Ie.useRef)();Lt.current=Wt=>{pn(Wt.matches),ln==null||ln(Wt.matches),Bt!==Wt.matches&&_n(Wt.matches,"responsive")},(0,Ie.useEffect)(()=>{function Wt(mt){return Lt.current(mt)}let Vt;if(typeof window!="undefined"){const{matchMedia:mt}=window;if(mt&&je&&je in de){Vt=mt(`(max-width: ${de[je]})`);try{Vt.addEventListener("change",Wt)}catch(Ye){Vt.addListener(Wt)}Wt(Vt)}}return()=>{try{Vt==null||Vt.removeEventListener("change",Wt)}catch(mt){Vt==null||Vt.removeListener(Wt)}}},[je]),(0,Ie.useEffect)(()=>{const Wt=Pe("ant-sider-");return xt.addSider(Wt),()=>xt.removeSider(Wt)},[]);const Un=()=>{_n(!Bt,"clickTrigger")},{getPrefixCls:Gn}=(0,Ie.useContext)(te.E_),ui=()=>{const Wt=Gn("layout-sider",He),Vt=(0,Qe.Z)(Ht,["collapsed"]),mt=Bt?_t:It,Ye=ee(mt)?`${mt}px`:String(mt),Zt=parseFloat(String(_t||0))===0?Ie.createElement("span",{onClick:Un,className:$e()(`${Wt}-zero-width-trigger`,`${Wt}-zero-width-trigger-${Nt?"right":"left"}`),style:lt},Ke||Ie.createElement(yt,null)):null,nt={expanded:Nt?Ie.createElement(Je.Z,null):Ie.createElement(vt.Z,null),collapsed:Nt?Ie.createElement(vt.Z,null):Ie.createElement(Je.Z,null)}[Bt?"collapsed":"expanded"],Oe=Ke!==null?Zt||Ie.createElement("div",{className:`${Wt}-trigger`,onClick:Un,style:{width:Ye}},Ke||nt):null,we=Object.assign(Object.assign({},Ft),{flex:`0 0 ${Ye}`,maxWidth:Ye,minWidth:Ye,width:Ye}),ye=$e()(Wt,`${Wt}-${Xe}`,{[`${Wt}-collapsed`]:!!Bt,[`${Wt}-has-trigger`]:Ct&&Ke!==null&&!Zt,[`${Wt}-below`]:!!Hn,[`${Wt}-zero-width`]:parseFloat(Ye)===0},ze);return Ie.createElement("aside",Object.assign({className:ye},Vt,{style:we,ref:Te}),Ie.createElement("div",{className:`${Wt}-children`},Ze),Ct||Hn&&Zt?Oe:null)},Ln=Ie.useMemo(()=>({siderCollapsed:Bt}),[Bt]);return Ie.createElement(ve.Provider,{value:Ln},ui())})},84966:function(gn,zt,he){"use strict";he.d(zt,{VY:function(){return ve},$_:function(){return de},h4:function(){return ae},Gs:function(){return Qe},ZP:function(){return Pe}});var pe=he(26390),Ie=he(92310),Ve=he.n(Ie),st=he(64002),We=he(59301),it=he(36355),be=he(83116),vt=Ae=>{const{componentCls:xe,bodyBg:Le,lightSiderBg:Te,lightTriggerBg:He,lightTriggerColor:ze}=Ae;return{[`${xe}-sider-light`]:{background:Te,[`${xe}-sider-trigger`]:{color:ze,background:He},[`${xe}-sider-zero-width-trigger`]:{color:ze,background:He,border:`1px solid ${Le}`,borderInlineStart:0}}}};const Je=Ae=>{const{antCls:xe,componentCls:Le,colorText:Te,triggerColor:He,footerBg:ze,triggerBg:Ke,headerHeight:Ze,headerPadding:Mt,headerColor:Xe,footerPadding:Ft,triggerHeight:Ct,zeroTriggerHeight:Nt,zeroTriggerWidth:It,motionDurationMid:_t,motionDurationSlow:lt,fontSize:je,borderRadius:Et,bodyBg:ln,headerBg:Ht,siderBg:xt}=Ae;return{[Le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ln,"&, *":{boxSizing:"border-box"},[`&${Le}-has-sider`]:{flexDirection:"row",[`> ${Le}, > ${Le}-content`]:{width:0}},[`${Le}-header, &${Le}-footer`]:{flex:"0 0 auto"},[`${Le}-sider`]:{position:"relative",minWidth:0,background:xt,transition:`all ${_t}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${xe}-menu${xe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ct},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ct,color:He,lineHeight:`${Ct}px`,textAlign:"center",background:Ke,cursor:"pointer",transition:`all ${_t}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ze,insetInlineEnd:-It,zIndex:1,width:It,height:Nt,color:He,fontSize:Ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:xt,borderStartStartRadius:0,borderStartEndRadius:Et,borderEndEndRadius:Et,borderEndStartRadius:0,cursor:"pointer",transition:`background ${lt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${lt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-It,borderStartStartRadius:Et,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Et}}}}},vt(Ae)),{"&-rtl":{direction:"rtl"}}),[`${Le}-header`]:{height:Ze,padding:Mt,color:Xe,lineHeight:`${Ze}px`,background:Ht,[`${xe}-menu`]:{lineHeight:"inherit"}},[`${Le}-footer`]:{padding:Ft,color:Te,fontSize:je,background:ze},[`${Le}-content`]:{flex:"auto",minHeight:0}}};var tt=(0,be.Z)("Layout",Ae=>[Je(Ae)],Ae=>{const{colorBgLayout:xe,controlHeight:Le,controlHeightLG:Te,colorText:He,controlHeightSM:ze,marginXXS:Ke,colorTextLightSolid:Ze,colorBgContainer:Mt}=Ae,Xe=Te*1.25;return{colorBgHeader:"#001529",colorBgBody:xe,colorBgTrigger:"#002140",bodyBg:xe,headerBg:"#001529",headerHeight:Le*2,headerPadding:`0 ${Xe}px`,headerColor:He,footerPadding:`${ze}px ${Xe}px`,footerBg:xe,siderBg:"#001529",triggerHeight:Te+Ke*2,triggerBg:"#002140",triggerColor:Ze,zeroTriggerWidth:Te,zeroTriggerHeight:Te,lightSiderBg:Mt,lightTriggerBg:Mt,lightTriggerColor:He}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),$e=function(Ae,xe){var Le={};for(var Te in Ae)Object.prototype.hasOwnProperty.call(Ae,Te)&&xe.indexOf(Te)<0&&(Le[Te]=Ae[Te]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Te=Object.getOwnPropertySymbols(Ae);He<Te.length;He++)xe.indexOf(Te[He])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Te[He])&&(Le[Te[He]]=Ae[Te[He]]);return Le};const Qe=We.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ee(Ae){let{suffixCls:xe,tagName:Le,displayName:Te}=Ae;return He=>We.forwardRef((Ke,Ze)=>We.createElement(He,Object.assign({ref:Ze,suffixCls:xe,tagName:Le},Ke)))}const ee=We.forwardRef((Ae,xe)=>{const{prefixCls:Le,suffixCls:Te,className:He,tagName:ze}=Ae,Ke=$e(Ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ze}=We.useContext(it.E_),Mt=Ze("layout",Le),[Xe,Ft]=tt(Mt),Ct=Te?`${Mt}-${Te}`:Mt;return Xe(We.createElement(ze,Object.assign({className:Ve()(Le||Ct,He,Ft),ref:xe},Ke)))}),te=We.forwardRef((Ae,xe)=>{const{direction:Le}=We.useContext(it.E_),[Te,He]=We.useState([]),{prefixCls:ze,className:Ke,rootClassName:Ze,children:Mt,hasSider:Xe,tagName:Ft,style:Ct}=Ae,Nt=$e(Ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),It=(0,st.Z)(Nt,["suffixCls"]),{getPrefixCls:_t,layout:lt}=We.useContext(it.E_),je=_t("layout",ze),[Et,ln]=tt(je),Ht=Ve()(je,{[`${je}-has-sider`]:typeof Xe=="boolean"?Xe:Te.length>0,[`${je}-rtl`]:Le==="rtl"},lt==null?void 0:lt.className,Ke,Ze,ln),xt=We.useMemo(()=>({siderHook:{addSider:Bt=>{He(rn=>[].concat((0,pe.Z)(rn),[Bt]))},removeSider:Bt=>{He(rn=>rn.filter(Hn=>Hn!==Bt))}}}),[]);return Et(We.createElement(Qe.Provider,{value:xt},We.createElement(Ft,Object.assign({ref:xe,className:Ht,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),Ct)},It),Mt)))}),ue=Ee({tagName:"div",displayName:"Layout"})(te),ae=Ee({suffixCls:"header",tagName:"header",displayName:"Header"})(ee),de=Ee({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ee),ve=Ee({suffixCls:"content",tagName:"main",displayName:"Content"})(ee);var Pe=ue},40875:function(gn,zt,he){"use strict";he.d(zt,{J:function(){return it}});var pe=he(59301),Ie=he(33234),Ve=he(80764),st=function(be,yt){var vt={};for(var Je in be)Object.prototype.hasOwnProperty.call(be,Je)&&yt.indexOf(Je)<0&&(vt[Je]=be[Je]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Je=Object.getOwnPropertySymbols(be);tt<Je.length;tt++)yt.indexOf(Je[tt])<0&&Object.prototype.propertyIsEnumerable.call(be,Je[tt])&&(vt[Je[tt]]=be[Je[tt]]);return vt};const We=pe.createContext(null),it=pe.forwardRef((be,yt)=>{const{children:vt}=be,Je=st(be,["children"]),tt=pe.useContext(We),$e=pe.useMemo(()=>Object.assign(Object.assign({},tt),Je),[tt,Je.prefixCls,Je.mode,Je.selectable]);return pe.createElement(We.Provider,{value:$e},pe.createElement(Ie.BR,null,(0,Ve.supportNodeRef)(vt)?pe.cloneElement(vt,{ref:yt}):vt))});zt.Z=We},20834:function(gn,zt,he){"use strict";he.d(zt,{default:function(){return Ln}});var pe=he(22798),Ie=he(59301),Ve=he(99580),st=he(92310),We=he.n(st),it=he(36355),be=function(Wt,Vt){var mt={};for(var Ye in Wt)Object.prototype.hasOwnProperty.call(Wt,Ye)&&Vt.indexOf(Ye)<0&&(mt[Ye]=Wt[Ye]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Ye=Object.getOwnPropertySymbols(Wt);Zt<Ye.length;Zt++)Vt.indexOf(Ye[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ye[Zt])&&(mt[Ye[Zt]]=Wt[Ye[Zt]]);return mt},vt=Wt=>{const{prefixCls:Vt,className:mt,dashed:Ye}=Wt,Zt=be(Wt,["prefixCls","className","dashed"]),{getPrefixCls:Gt}=Ie.useContext(it.E_),ft=Gt("menu",Vt),nt=We()({[`${ft}-item-divider-dashed`]:!!Ye},mt);return Ie.createElement(pe.iz,Object.assign({className:nt},Zt))},Je=he(38298),tt=he(64002),$e=he(6848),Qe=he(92343),ee=(0,Ie.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ue=Wt=>{var Vt;const{className:mt,children:Ye,icon:Zt,title:Gt,danger:ft}=Wt,{prefixCls:nt,firstLevel:Oe,direction:we,disableMenuItemTitleTooltip:ye,inlineCollapsed:ke}=Ie.useContext(ee),Ge=Xt=>{const Pn=Ie.createElement("span",{className:`${nt}-title-content`},Ye);return(!Zt||(0,Qe.l$)(Ye)&&Ye.type==="span")&&Ye&&Xt&&Oe&&typeof Ye=="string"?Ie.createElement("div",{className:`${nt}-inline-collapsed-noicon`},Ye.charAt(0)):Pn},{siderCollapsed:Fe}=Ie.useContext(Ve.D);let pt=Gt;typeof Gt=="undefined"?pt=Oe?Ye:"":Gt===!1&&(pt="");const tn={title:pt};!Fe&&!ke&&(tn.title=null,tn.open=!1);const en=(0,Je.Z)(Ye).length;let wt=Ie.createElement(pe.ck,Object.assign({},(0,tt.Z)(Wt,["title","icon","danger"]),{className:We()({[`${nt}-item-danger`]:ft,[`${nt}-item-only-child`]:(Zt?en+1:en)===1},mt),title:typeof Gt=="string"?Gt:void 0}),(0,Qe.Tm)(Zt,{className:We()((0,Qe.l$)(Zt)?(Vt=Zt.props)===null||Vt===void 0?void 0:Vt.className:"",`${nt}-item-icon`)}),Ge(ke));return ye||(wt=Ie.createElement($e.Z,Object.assign({},tn,{placement:we==="rtl"?"left":"right",overlayClassName:`${nt}-inline-collapsed-tooltip`}),wt)),wt},de=Wt=>{var Vt;const{popupClassName:mt,icon:Ye,title:Zt,theme:Gt}=Wt,ft=Ie.useContext(ee),{prefixCls:nt,inlineCollapsed:Oe,theme:we}=ft,ye=(0,pe.Xl)();let ke;if(!Ye)ke=Oe&&!ye.length&&Zt&&typeof Zt=="string"?Ie.createElement("div",{className:`${nt}-inline-collapsed-noicon`},Zt.charAt(0)):Ie.createElement("span",{className:`${nt}-title-content`},Zt);else{const Fe=(0,Qe.l$)(Zt)&&Zt.type==="span";ke=Ie.createElement(Ie.Fragment,null,(0,Qe.Tm)(Ye,{className:We()((0,Qe.l$)(Ye)?(Vt=Ye.props)===null||Vt===void 0?void 0:Vt.className:"",`${nt}-item-icon`)}),Fe?Zt:Ie.createElement("span",{className:`${nt}-title-content`},Zt))}const Ge=Ie.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]);return Ie.createElement(ee.Provider,{value:Ge},Ie.createElement(pe.Wd,Object.assign({},(0,tt.Z)(Wt,["icon"]),{title:ke,popupClassName:We()(nt,mt,`${nt}-${Gt||we}`)})))},ve=he(19362),Pe=he(80764),Ae=he(62892),xe=he(40875),Le=function(Wt,Vt){var mt={};for(var Ye in Wt)Object.prototype.hasOwnProperty.call(Wt,Ye)&&Vt.indexOf(Ye)<0&&(mt[Ye]=Wt[Ye]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Ye=Object.getOwnPropertySymbols(Wt);Zt<Ye.length;Zt++)Vt.indexOf(Ye[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ye[Zt])&&(mt[Ye[Zt]]=Wt[Ye[Zt]]);return mt};function Te(Wt){return(Wt||[]).map((Vt,mt)=>{if(Vt&&typeof Vt=="object"){const Ye=Vt,{label:Zt,children:Gt,key:ft,type:nt}=Ye,Oe=Le(Ye,["label","children","key","type"]),we=ft!=null?ft:`tmp-${mt}`;return Gt||nt==="group"?nt==="group"?Ie.createElement(pe.BW,Object.assign({key:we},Oe,{title:Zt}),Te(Gt)):Ie.createElement(de,Object.assign({key:we},Oe,{title:Zt}),Te(Gt)):nt==="divider"?Ie.createElement(vt,Object.assign({key:we},Oe)):Ie.createElement(ue,Object.assign({key:we},Oe),Zt)}return null}).filter(Vt=>Vt)}function He(Wt){return Ie.useMemo(()=>Wt&&Te(Wt),[Wt])}var ze=he(64993),Ke=he(17313),Ze=he(8378),Mt=he(13826),Xe=he(29878),Ft=he(83116),Ct=he(37613),It=Wt=>{const{componentCls:Vt,motionDurationSlow:mt,horizontalLineHeight:Ye,colorSplit:Zt,lineWidth:Gt,lineType:ft,itemPaddingInline:nt}=Wt;return{[`${Vt}-horizontal`]:{lineHeight:Ye,border:0,borderBottom:`${Gt}px ${ft} ${Zt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Vt}-item, ${Vt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:nt},[`> ${Vt}-item:hover,
|
|
|
> ${Vt}-item-active,
|
|
|
> ${Vt}-submenu ${Vt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Vt}-item, ${Vt}-submenu-title`]:{transition:[`border-color ${mt}`,`background ${mt}`].join(",")},[`${Vt}-submenu-arrow`]:{display:"none"}}}},lt=Wt=>{let{componentCls:Vt,menuArrowOffset:mt}=Wt;return{[`${Vt}-rtl`]:{direction:"rtl"},[`${Vt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Vt}-rtl${Vt}-vertical,
|
|
|
${Vt}-submenu-rtl ${Vt}-vertical`]:{[`${Vt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${mt})`},"&::after":{transform:`rotate(45deg) translateY(${mt})`}}}}};const je=Wt=>Object.assign({},(0,Ke.oN)(Wt));var ln=(Wt,Vt)=>{const{componentCls:mt,itemColor:Ye,itemSelectedColor:Zt,groupTitleColor:Gt,itemBg:ft,subMenuItemBg:nt,itemSelectedBg:Oe,activeBarHeight:we,activeBarWidth:ye,activeBarBorderWidth:ke,motionDurationSlow:Ge,motionEaseInOut:Fe,motionEaseOut:pt,itemPaddingInline:tn,motionDurationMid:en,itemHoverColor:wt,lineType:Xt,colorSplit:Pn,itemDisabledColor:In,dangerItemColor:$n,dangerItemHoverColor:Pi,dangerItemSelectedColor:wn,dangerItemActiveBg:Ai,dangerItemSelectedBg:Vi,itemHoverBg:ur,itemActiveBg:sr,menuSubMenuBg:Qn,horizontalItemSelectedColor:Ci,horizontalItemSelectedBg:er,horizontalItemBorderRadius:ri,horizontalItemHoverBg:tr,popupBg:Di}=Wt;return{[`${mt}-${Vt}, ${mt}-${Vt} > ${mt}`]:{color:Ye,background:ft,[`&${mt}-root:focus-visible`]:Object.assign({},je(Wt)),[`${mt}-item-group-title`]:{color:Gt},[`${mt}-submenu-selected`]:{[`> ${mt}-submenu-title`]:{color:Zt}},[`${mt}-item-disabled, ${mt}-submenu-disabled`]:{color:`${In} !important`},[`${mt}-item:not(${mt}-item-selected):not(${mt}-submenu-selected)`]:{[`&:hover, > ${mt}-submenu-title:hover`]:{color:wt}},[`&:not(${mt}-horizontal)`]:{[`${mt}-item:not(${mt}-item-selected)`]:{"&:hover":{backgroundColor:ur},"&:active":{backgroundColor:sr}},[`${mt}-submenu-title`]:{"&:hover":{backgroundColor:ur},"&:active":{backgroundColor:sr}}},[`${mt}-item-danger`]:{color:$n,[`&${mt}-item:hover`]:{[`&:not(${mt}-item-selected):not(${mt}-submenu-selected)`]:{color:Pi}},[`&${mt}-item:active`]:{background:Ai}},[`${mt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${mt}-item-selected`]:{color:Zt,[`&${mt}-item-danger`]:{color:wn},"a, a:hover":{color:"inherit"}},[`& ${mt}-item-selected`]:{backgroundColor:Oe,[`&${mt}-item-danger`]:{backgroundColor:Vi}},[`${mt}-item, ${mt}-submenu-title`]:{[`&:not(${mt}-item-disabled):focus-visible`]:Object.assign({},je(Wt))},[`&${mt}-submenu > ${mt}`]:{backgroundColor:Qn},[`&${mt}-popup > ${mt}`]:{backgroundColor:Di},[`&${mt}-horizontal`]:Object.assign(Object.assign({},Vt==="dark"?{borderBottom:0}:{}),{[`> ${mt}-item, > ${mt}-submenu`]:{top:ke,marginTop:-ke,marginBottom:0,borderRadius:ri,"&::after":{position:"absolute",insetInline:tn,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${Ge} ${Fe}`,content:'""'},"&:hover, &-active, &-open":{background:tr,"&::after":{borderBottomWidth:we,borderBottomColor:Ci}},"&-selected":{color:Ci,backgroundColor:er,"&:hover":{backgroundColor:er},"&::after":{borderBottomWidth:we,borderBottomColor:Ci}}}}),[`&${mt}-root`]:{[`&${mt}-inline, &${mt}-vertical`]:{borderInlineEnd:`${ke}px ${Xt} ${Pn}`}},[`&${mt}-inline`]:{[`${mt}-sub${mt}-inline`]:{background:nt},[`${mt}-item, ${mt}-submenu-title`]:ke&&ye?{width:`calc(100% + ${ke}px)`}:{},[`${mt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ye}px solid ${Zt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${en} ${pt}`,`opacity ${en} ${pt}`].join(","),content:'""'},[`&${mt}-item-danger`]:{"&::after":{borderInlineEndColor:wn}}},[`${mt}-selected, ${mt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${en} ${Fe}`,`opacity ${en} ${Fe}`].join(",")}}}}}};const Ht=Wt=>{const{componentCls:Vt,itemHeight:mt,itemMarginInline:Ye,padding:Zt,menuArrowSize:Gt,marginXS:ft,itemMarginBlock:nt}=Wt,Oe=Zt+Gt+ft;return{[`${Vt}-item`]:{position:"relative",overflow:"hidden"},[`${Vt}-item, ${Vt}-submenu-title`]:{height:mt,lineHeight:`${mt}px`,paddingInline:Zt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ye,marginBlock:nt,width:`calc(100% - ${Ye*2}px)`},[`> ${Vt}-item,
|
|
|
> ${Vt}-submenu > ${Vt}-submenu-title`]:{height:mt,lineHeight:`${mt}px`},[`${Vt}-item-group-list ${Vt}-submenu-title,
|
|
|
${Vt}-submenu-title`]:{paddingInlineEnd:Oe}}};var Bt=Wt=>{const{componentCls:Vt,iconCls:mt,itemHeight:Ye,colorTextLightSolid:Zt,dropdownWidth:Gt,controlHeightLG:ft,motionDurationMid:nt,motionEaseOut:Oe,paddingXL:we,itemMarginInline:ye,fontSizeLG:ke,motionDurationSlow:Ge,paddingXS:Fe,boxShadowSecondary:pt,collapsedWidth:tn,collapsedIconSize:en}=Wt,wt={height:Ye,lineHeight:`${Ye}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Vt]:{"&-inline, &-vertical":Object.assign({[`&${Vt}-root`]:{boxShadow:"none"}},Ht(Wt))},[`${Vt}-submenu-popup`]:{[`${Vt}-vertical`]:Object.assign(Object.assign({},Ht(Wt)),{boxShadow:pt})}},{[`${Vt}-submenu-popup ${Vt}-vertical${Vt}-sub`]:{minWidth:Gt,maxHeight:`calc(100vh - ${ft*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Vt}-inline`]:{width:"100%",[`&${Vt}-root`]:{[`${Vt}-item, ${Vt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ge}`,`background ${Ge}`,`padding ${nt} ${Oe}`].join(","),[`> ${Vt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Vt}-sub${Vt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Vt}-submenu > ${Vt}-submenu-title`]:wt,[`& ${Vt}-item-group-title`]:{paddingInlineStart:we}},[`${Vt}-item`]:wt}},{[`${Vt}-inline-collapsed`]:{width:tn,[`&${Vt}-root`]:{[`${Vt}-item, ${Vt}-submenu ${Vt}-submenu-title`]:{[`> ${Vt}-inline-collapsed-noicon`]:{fontSize:ke,textAlign:"center"}}},[`> ${Vt}-item,
|
|
|
> ${Vt}-item-group > ${Vt}-item-group-list > ${Vt}-item,
|
|
|
> ${Vt}-item-group > ${Vt}-item-group-list > ${Vt}-submenu > ${Vt}-submenu-title,
|
|
|
> ${Vt}-submenu > ${Vt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ke/2}px - ${ye}px)`,textOverflow:"clip",[`
|
|
|
${Vt}-submenu-arrow,
|
|
|
${Vt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Vt}-item-icon, ${mt}`]:{margin:0,fontSize:en,lineHeight:`${Ye}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Vt}-item-icon, ${mt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Vt}-item-icon, ${mt}`]:{display:"none"},"a, a:hover":{color:Zt}},[`${Vt}-item-group-title`]:Object.assign(Object.assign({},Ke.vS),{paddingInline:Fe})}}]};const rn=Wt=>{const{componentCls:Vt,motionDurationSlow:mt,motionDurationMid:Ye,motionEaseInOut:Zt,motionEaseOut:Gt,iconCls:ft,iconSize:nt,iconMarginInlineEnd:Oe}=Wt;return{[`${Vt}-item, ${Vt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${mt}`,`background ${mt}`,`padding ${mt} ${Zt}`].join(","),[`${Vt}-item-icon, ${ft}`]:{minWidth:nt,fontSize:nt,transition:[`font-size ${Ye} ${Gt}`,`margin ${mt} ${Zt}`,`color ${mt}`].join(","),"+ span":{marginInlineStart:Oe,opacity:1,transition:[`opacity ${mt} ${Zt}`,`margin ${mt}`,`color ${mt}`].join(",")}},[`${Vt}-item-icon`]:Object.assign({},(0,Ke.Ro)()),[`&${Vt}-item-only-child`]:{[`> ${ft}, > ${Vt}-item-icon`]:{marginInlineEnd:0}}},[`${Vt}-item-disabled, ${Vt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Vt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Hn=Wt=>{const{componentCls:Vt,motionDurationSlow:mt,motionEaseInOut:Ye,borderRadius:Zt,menuArrowSize:Gt,menuArrowOffset:ft}=Wt;return{[`${Vt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Wt.margin,width:Gt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${mt} ${Ye}, opacity ${mt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Gt*.6,height:Gt*.15,backgroundColor:"currentcolor",borderRadius:Zt,transition:[`background ${mt} ${Ye}`,`transform ${mt} ${Ye}`,`top ${mt} ${Ye}`,`color ${mt} ${Ye}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ft})`},"&::after":{transform:`rotate(-45deg) translateY(${ft})`}}}}},pn=Wt=>{const{antCls:Vt,componentCls:mt,fontSize:Ye,motionDurationSlow:Zt,motionDurationMid:Gt,motionEaseInOut:ft,paddingXS:nt,padding:Oe,colorSplit:we,lineWidth:ye,zIndexPopup:ke,borderRadiusLG:Ge,subMenuItemBorderRadius:Fe,menuArrowSize:pt,menuArrowOffset:tn,lineType:en,menuPanelMaskInset:wt,groupTitleLineHeight:Xt,groupTitleFontSize:Pn}=Wt;return[{"":{[`${mt}`]:Object.assign(Object.assign({},(0,Ke.dF)()),{"&-hidden":{display:"none"}})},[`${mt}-submenu-hidden`]:{display:"none"}},{[mt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(Wt)),(0,Ke.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ye,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Zt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${mt}-item`]:{flex:"none"}},[`${mt}-item, ${mt}-submenu, ${mt}-submenu-title`]:{borderRadius:Wt.itemBorderRadius},[`${mt}-item-group-title`]:{padding:`${nt}px ${Oe}px`,fontSize:Pn,lineHeight:Xt,transition:`all ${Zt}`},[`&-horizontal ${mt}-submenu`]:{transition:[`border-color ${Zt} ${ft}`,`background ${Zt} ${ft}`].join(",")},[`${mt}-submenu, ${mt}-submenu-inline`]:{transition:[`border-color ${Zt} ${ft}`,`background ${Zt} ${ft}`,`padding ${Gt} ${ft}`].join(",")},[`${mt}-submenu ${mt}-sub`]:{cursor:"initial",transition:[`background ${Zt} ${ft}`,`padding ${Zt} ${ft}`].join(",")},[`${mt}-title-content`]:{transition:`color ${Zt}`},[`${mt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${mt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:en,borderWidth:0,borderTopWidth:ye,marginBlock:ye,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rn(Wt)),{[`${mt}-item-group`]:{[`${mt}-item-group-list`]:{margin:0,padding:0,[`${mt}-item, ${mt}-submenu-title`]:{paddingInline:`${Ye*2}px ${Oe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ke,borderRadius:Ge,boxShadow:"none",transformOrigin:"0 0",[`&${mt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${wt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:wt},"\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:Wt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Wt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Wt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Wt.paddingXS},[`> ${mt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ge},rn(Wt)),Hn(Wt)),{[`${mt}-item, ${mt}-submenu > ${mt}-submenu-title`]:{borderRadius:Fe},[`${mt}-submenu-title::after`]:{transition:`transform ${Zt} ${ft}`}})}}),Hn(Wt)),{[`&-inline-collapsed ${mt}-submenu-arrow,
|
|
|
&-inline ${mt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${tn})`},"&::after":{transform:`rotate(45deg) translateX(-${tn})`}},[`${mt}-submenu-open${mt}-submenu-inline > ${mt}-submenu-title > ${mt}-submenu-arrow`]:{transform:`translateY(-${pt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${tn})`},"&::before":{transform:`rotate(45deg) translateX(${tn})`}}})},{[`${Vt}-layout-header`]:{[mt]:{lineHeight:"inherit"}}}]};var _n=(Wt,Vt)=>(0,Ft.Z)("Menu",Ye=>{if(Vt===!1)return[];const{colorBgElevated:Zt,colorPrimary:Gt,colorTextLightSolid:ft,controlHeightLG:nt,fontSize:Oe,darkItemColor:we,darkDangerItemColor:ye,darkItemBg:ke,darkSubMenuItemBg:Ge,darkItemSelectedColor:Fe,darkItemSelectedBg:pt,darkDangerItemSelectedBg:tn,darkItemHoverBg:en,darkGroupTitleColor:wt,darkItemHoverColor:Xt,darkItemDisabledColor:Pn,darkDangerItemHoverColor:In,darkDangerItemSelectedColor:$n,darkDangerItemActiveBg:Pi}=Ye,wn=Oe/7*5,Ai=(0,Ct.TS)(Ye,{menuArrowSize:wn,menuHorizontalHeight:nt*1.15,menuArrowOffset:`${wn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Zt}),Vi=(0,Ct.TS)(Ai,{itemColor:we,itemHoverColor:Xt,groupTitleColor:wt,itemSelectedColor:Fe,itemBg:ke,popupBg:ke,subMenuItemBg:Ge,itemActiveBg:"transparent",itemSelectedBg:pt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:en,itemDisabledColor:Pn,dangerItemColor:ye,dangerItemHoverColor:In,dangerItemSelectedColor:$n,dangerItemActiveBg:Pi,dangerItemSelectedBg:tn,menuSubMenuBg:Ge,horizontalItemSelectedColor:ft,horizontalItemSelectedBg:Gt});return[pn(Ai),It(Ai),Bt(Ai),ln(Ai,"light"),ln(Vi,"dark"),lt(Ai),(0,Ze.Z)(Ai),(0,Mt.oN)(Ai,"slide-up"),(0,Mt.oN)(Ai,"slide-down"),(0,Xe._y)(Ai,"zoom-big")]},Ye=>{const{colorPrimary:Zt,colorError:Gt,colorTextDisabled:ft,colorErrorBg:nt,colorText:Oe,colorTextDescription:we,colorBgContainer:ye,colorFillAlter:ke,colorFillContent:Ge,lineWidth:Fe,lineWidthBold:pt,controlItemBgActive:tn,colorBgTextHover:en,controlHeightLG:wt,lineHeight:Xt,colorBgElevated:Pn,marginXXS:In,padding:$n,fontSize:Pi,controlHeightSM:wn,fontSizeLG:Ai,colorTextLightSolid:Vi,colorErrorHover:ur}=Ye,sr=new ze.C(Vi).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ye.zIndexPopupBase+50,radiusItem:Ye.borderRadiusLG,itemBorderRadius:Ye.borderRadiusLG,radiusSubMenuItem:Ye.borderRadiusSM,subMenuItemBorderRadius:Ye.borderRadiusSM,colorItemText:Oe,itemColor:Oe,colorItemTextHover:Oe,itemHoverColor:Oe,colorItemTextHoverHorizontal:Zt,horizontalItemHoverColor:Zt,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Zt,itemSelectedColor:Zt,colorItemTextSelectedHorizontal:Zt,horizontalItemSelectedColor:Zt,colorItemBg:ye,itemBg:ye,colorItemBgHover:en,itemHoverBg:en,colorItemBgActive:Ge,itemActiveBg:tn,colorSubItemBg:ke,subMenuItemBg:ke,colorItemBgSelected:tn,itemSelectedBg:tn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:pt,activeBarHeight:pt,colorActiveBarBorderSize:Fe,activeBarBorderWidth:Fe,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:Gt,dangerItemColor:Gt,colorDangerItemTextHover:Gt,dangerItemHoverColor:Gt,colorDangerItemTextSelected:Gt,dangerItemSelectedColor:Gt,colorDangerItemBgActive:nt,dangerItemActiveBg:nt,colorDangerItemBgSelected:nt,dangerItemSelectedBg:nt,itemMarginInline:Ye.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:wt,groupTitleLineHeight:Xt,collapsedWidth:wt*2,popupBg:Pn,itemMarginBlock:In,itemPaddingInline:$n,horizontalLineHeight:`${wt*1.15}px`,iconSize:Pi,iconMarginInlineEnd:wn-Pi,collapsedIconSize:Ai,groupTitleFontSize:Pi,darkItemDisabledColor:new ze.C(Vi).setAlpha(.25).toRgbString(),darkItemColor:sr,darkDangerItemColor:Gt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Vi,darkItemSelectedBg:Zt,darkDangerItemSelectedBg:Gt,darkItemHoverBg:"transparent",darkGroupTitleColor:sr,darkItemHoverColor:Vi,darkDangerItemHoverColor:ur,darkDangerItemSelectedColor:Vi,darkDangerItemActiveBg:Gt}},{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"]]})(Wt),Lt=function(Wt,Vt){var mt={};for(var Ye in Wt)Object.prototype.hasOwnProperty.call(Wt,Ye)&&Vt.indexOf(Ye)<0&&(mt[Ye]=Wt[Ye]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Ye=Object.getOwnPropertySymbols(Wt);Zt<Ye.length;Zt++)Vt.indexOf(Ye[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ye[Zt])&&(mt[Ye[Zt]]=Wt[Ye[Zt]]);return mt},Gn=(0,Ie.forwardRef)((Wt,Vt)=>{var mt,Ye;const Zt=Ie.useContext(xe.Z),Gt=Zt||{},{getPrefixCls:ft,getPopupContainer:nt,direction:Oe,menu:we}=Ie.useContext(it.E_),ye=ft(),{prefixCls:ke,className:Ge,style:Fe,theme:pt="light",expandIcon:tn,_internalDisableMenuItemTitleTooltip:en,inlineCollapsed:wt,siderCollapsed:Xt,items:Pn,children:In,rootClassName:$n,mode:Pi,selectable:wn,onClick:Ai,overflowedIndicatorPopupClassName:Vi}=Wt,ur=Lt(Wt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),sr=(0,tt.Z)(ur,["collapsedWidth"]),Qn=He(Pn)||In;(mt=Gt.validator)===null||mt===void 0||mt.call(Gt,{mode:Pi});const Ci=(0,Pe.useEvent)(function(){var No;Ai==null||Ai.apply(void 0,arguments),(No=Gt.onClick)===null||No===void 0||No.call(Gt)}),er=Gt.mode||Pi,ri=wn!=null?wn:Gt.selectable,tr=Ie.useMemo(()=>Xt!==void 0?Xt:wt,[wt,Xt]),Di={horizontal:{motionName:`${ye}-slide-up`},inline:(0,Ae.Z)(ye),other:{motionName:`${ye}-zoom-big`}},De=ft("menu",ke||Gt.prefixCls),[Yr,yr]=_n(De,!Zt),Dr=We()(`${De}-${pt}`,we==null?void 0:we.className,Ge);let lo;if(typeof tn=="function")lo=tn;else if(tn===null||tn===!1)lo=null;else if(Gt.expandIcon===null||Gt.expandIcon===!1)lo=null;else{const No=tn!=null?tn:Gt.expandIcon;lo=(0,Qe.Tm)(No,{className:We()(`${De}-submenu-expand-icon`,(0,Qe.l$)(No)?(Ye=No.props)===null||Ye===void 0?void 0:Ye.className:"")})}const Wo=Ie.useMemo(()=>({prefixCls:De,inlineCollapsed:tr||!1,direction:Oe,firstLevel:!0,theme:pt,mode:er,disableMenuItemTitleTooltip:en}),[De,tr,Oe,en,pt]);return Yr(Ie.createElement(xe.Z.Provider,{value:null},Ie.createElement(ee.Provider,{value:Wo},Ie.createElement(pe.ZP,Object.assign({getPopupContainer:nt,overflowedIndicator:Ie.createElement(ve.Z,null),overflowedIndicatorPopupClassName:We()(De,`${De}-${pt}`,Vi),mode:er,selectable:ri,onClick:Ci},sr,{inlineCollapsed:tr,style:Object.assign(Object.assign({},we==null?void 0:we.style),Fe),className:Dr,prefixCls:De,direction:Oe,defaultMotions:Di,expandIcon:lo,ref:Vt,rootClassName:We()($n,yr)}),Qn))))});const ui=(0,Ie.forwardRef)((Wt,Vt)=>{const mt=(0,Ie.useRef)(null),Ye=Ie.useContext(Ve.D);return(0,Ie.useImperativeHandle)(Vt,()=>({menu:mt.current,focus:Zt=>{var Gt;(Gt=mt.current)===null||Gt===void 0||Gt.focus(Zt)}})),Ie.createElement(Gn,Object.assign({ref:mt},Wt,Ye))});ui.Item=ue,ui.SubMenu=de,ui.Divider=vt,ui.ItemGroup=pe.BW;var Ln=ui},25700:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Gt}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(nt,Oe){return Ie.createElement(We.Z,(0,pe.Z)({},nt,{ref:Oe,icon:st}))},be=Ie.forwardRef(it),yt=be,vt=he(93343),Je=he(16537),tt=he(53878),$e=he(92310),Qe=he.n($e),Ee=he(80962),ee=he(57259),te=he(79545),ue=he(68550),ae=he(17928),de=he(7711),ve=he(36994),Pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ae=Pe,xe=he(91735),Le=function(ft){(0,ae.Z)(Oe,ft);var nt=(0,de.Z)(Oe);function Oe(){var we;(0,te.Z)(this,Oe);for(var ye=arguments.length,ke=new Array(ye),Ge=0;Ge<ye;Ge++)ke[Ge]=arguments[Ge];return we=nt.call.apply(nt,[this].concat(ke)),we.state={goInputText:""},we.getValidValue=function(){var Fe=we.state.goInputText;return!Fe||Number.isNaN(Fe)?void 0:Number(Fe)},we.buildOptionText=function(Fe){return"".concat(Fe," ").concat(we.props.locale.items_per_page)},we.changeSize=function(Fe){we.props.changeSize(Number(Fe))},we.handleChange=function(Fe){we.setState({goInputText:Fe.target.value})},we.handleBlur=function(Fe){var pt=we.props,tn=pt.goButton,en=pt.quickGo,wt=pt.rootPrefixCls,Xt=we.state.goInputText;tn||Xt===""||(we.setState({goInputText:""}),!(Fe.relatedTarget&&(Fe.relatedTarget.className.indexOf("".concat(wt,"-item-link"))>=0||Fe.relatedTarget.className.indexOf("".concat(wt,"-item"))>=0))&&en(we.getValidValue()))},we.go=function(Fe){var pt=we.state.goInputText;pt!==""&&(Fe.keyCode===Ae.ENTER||Fe.type==="click")&&(we.setState({goInputText:""}),we.props.quickGo(we.getValidValue()))},we}return(0,ue.Z)(Oe,[{key:"getPageSizeOptions",value:function(){var ye=this.props,ke=ye.pageSize,Ge=ye.pageSizeOptions;return Ge.some(function(Fe){return Fe.toString()===ke.toString()})?Ge:Ge.concat([ke.toString()]).sort(function(Fe,pt){var tn=Number.isNaN(Number(Fe))?0:Number(Fe),en=Number.isNaN(Number(pt))?0:Number(pt);return tn-en})}},{key:"render",value:function(){var ye=this,ke=this.props,Ge=ke.pageSize,Fe=ke.locale,pt=ke.rootPrefixCls,tn=ke.changeSize,en=ke.quickGo,wt=ke.goButton,Xt=ke.selectComponentClass,Pn=ke.buildOptionText,In=ke.selectPrefixCls,$n=ke.disabled,Pi=this.state.goInputText,wn="".concat(pt,"-options"),Ai=Xt,Vi=null,ur=null,sr=null;if(!tn&&!en)return null;var Qn=this.getPageSizeOptions();if(tn&&Ai){var Ci=Qn.map(function(er,ri){return Ie.createElement(Ai.Option,{key:ri,value:er.toString()},(Pn||ye.buildOptionText)(er))});Vi=Ie.createElement(Ai,{disabled:$n,prefixCls:In,showSearch:!1,className:"".concat(wn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ge||Qn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ri){return ri.parentNode},"aria-label":Fe.page_size,defaultOpen:!1},Ci)}return en&&(wt&&(sr=typeof wt=="boolean"?Ie.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:$n,className:"".concat(wn,"-quick-jumper-button")},Fe.jump_to_confirm):Ie.createElement("span",{onClick:this.go,onKeyUp:this.go},wt)),ur=Ie.createElement("div",{className:"".concat(wn,"-quick-jumper")},Fe.jump_to,Ie.createElement("input",{disabled:$n,type:"text",value:Pi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Fe.page}),Fe.page,sr)),Ie.createElement("li",{className:"".concat(wn)},Vi,ur)}}]),Oe}(Ie.Component);Le.defaultProps={pageSizeOptions:["10","20","50","100"]};var Te=Le,He=function(nt){var Oe,we=nt.rootPrefixCls,ye=nt.page,ke=nt.active,Ge=nt.className,Fe=nt.showTitle,pt=nt.onClick,tn=nt.onKeyPress,en=nt.itemRender,wt="".concat(we,"-item"),Xt=Qe()(wt,"".concat(wt,"-").concat(ye),(Oe={},(0,Ee.Z)(Oe,"".concat(wt,"-active"),ke),(0,Ee.Z)(Oe,"".concat(wt,"-disabled"),!ye),(0,Ee.Z)(Oe,nt.className,Ge),Oe)),Pn=function(){pt(ye)},In=function(wn){tn(wn,pt,ye)},$n=en(ye,"page",Ie.createElement("a",{rel:"nofollow"},ye));return $n?Ie.createElement("li",{title:Fe?ye.toString():null,className:Xt,onClick:Pn,onKeyPress:In,tabIndex:0},$n):null},ze=He;function Ke(){}function Ze(ft){var nt=Number(ft);return typeof nt=="number"&&!Number.isNaN(nt)&&isFinite(nt)&&Math.floor(nt)===nt}var Mt=function(nt,Oe,we){return we};function Xe(ft,nt,Oe){var we=typeof ft=="undefined"?nt.pageSize:ft;return Math.floor((Oe.total-1)/we)+1}var Ft=function(ft){(0,ae.Z)(Oe,ft);var nt=(0,de.Z)(Oe);function Oe(we){var ye;(0,te.Z)(this,Oe),ye=nt.call(this,we),ye.paginationNode=Ie.createRef(),ye.getJumpPrevPage=function(){return Math.max(1,ye.state.current-(ye.props.showLessItems?3:5))},ye.getJumpNextPage=function(){return Math.min(Xe(void 0,ye.state,ye.props),ye.state.current+(ye.props.showLessItems?3:5))},ye.getItemIcon=function(tn,en){var wt=ye.props.prefixCls,Xt=tn||Ie.createElement("button",{type:"button","aria-label":en,className:"".concat(wt,"-item-link")});return typeof tn=="function"&&(Xt=Ie.createElement(tn,(0,ee.Z)({},ye.props))),Xt},ye.isValid=function(tn){var en=ye.props.total;return Ze(tn)&&tn!==ye.state.current&&Ze(en)&&en>0},ye.shouldDisplayQuickJumper=function(){var tn=ye.props,en=tn.showQuickJumper,wt=tn.total,Xt=ye.state.pageSize;return wt<=Xt?!1:en},ye.handleKeyDown=function(tn){(tn.keyCode===Ae.ARROW_UP||tn.keyCode===Ae.ARROW_DOWN)&&tn.preventDefault()},ye.handleKeyUp=function(tn){var en=ye.getValidValue(tn),wt=ye.state.currentInputValue;en!==wt&&ye.setState({currentInputValue:en}),tn.keyCode===Ae.ENTER?ye.handleChange(en):tn.keyCode===Ae.ARROW_UP?ye.handleChange(en-1):tn.keyCode===Ae.ARROW_DOWN&&ye.handleChange(en+1)},ye.handleBlur=function(tn){var en=ye.getValidValue(tn);ye.handleChange(en)},ye.changePageSize=function(tn){var en=ye.state.current,wt=Xe(tn,ye.state,ye.props);en=en>wt?wt:en,wt===0&&(en=ye.state.current),typeof tn=="number"&&("pageSize"in ye.props||ye.setState({pageSize:tn}),"current"in ye.props||ye.setState({current:en,currentInputValue:en})),ye.props.onShowSizeChange(en,tn),"onChange"in ye.props&&ye.props.onChange&&ye.props.onChange(en,tn)},ye.handleChange=function(tn){var en=ye.props,wt=en.disabled,Xt=en.onChange,Pn=ye.state,In=Pn.pageSize,$n=Pn.current,Pi=Pn.currentInputValue;if(ye.isValid(tn)&&!wt){var wn=Xe(void 0,ye.state,ye.props),Ai=tn;return tn>wn?Ai=wn:tn<1&&(Ai=1),"current"in ye.props||ye.setState({current:Ai}),Ai!==Pi&&ye.setState({currentInputValue:Ai}),Xt(Ai,In),Ai}return $n},ye.prev=function(){ye.hasPrev()&&ye.handleChange(ye.state.current-1)},ye.next=function(){ye.hasNext()&&ye.handleChange(ye.state.current+1)},ye.jumpPrev=function(){ye.handleChange(ye.getJumpPrevPage())},ye.jumpNext=function(){ye.handleChange(ye.getJumpNextPage())},ye.hasPrev=function(){return ye.state.current>1},ye.hasNext=function(){return ye.state.current<Xe(void 0,ye.state,ye.props)},ye.runIfEnter=function(tn,en){if(tn.key==="Enter"||tn.charCode===13){for(var wt=arguments.length,Xt=new Array(wt>2?wt-2:0),Pn=2;Pn<wt;Pn++)Xt[Pn-2]=arguments[Pn];en.apply(void 0,Xt)}},ye.runIfEnterPrev=function(tn){ye.runIfEnter(tn,ye.prev)},ye.runIfEnterNext=function(tn){ye.runIfEnter(tn,ye.next)},ye.runIfEnterJumpPrev=function(tn){ye.runIfEnter(tn,ye.jumpPrev)},ye.runIfEnterJumpNext=function(tn){ye.runIfEnter(tn,ye.jumpNext)},ye.handleGoTO=function(tn){(tn.keyCode===Ae.ENTER||tn.type==="click")&&ye.handleChange(ye.state.currentInputValue)},ye.renderPrev=function(tn){var en=ye.props,wt=en.prevIcon,Xt=en.itemRender,Pn=Xt(tn,"prev",ye.getItemIcon(wt,"prev page")),In=!ye.hasPrev();return(0,Ie.isValidElement)(Pn)?(0,Ie.cloneElement)(Pn,{disabled:In}):Pn},ye.renderNext=function(tn){var en=ye.props,wt=en.nextIcon,Xt=en.itemRender,Pn=Xt(tn,"next",ye.getItemIcon(wt,"next page")),In=!ye.hasNext();return(0,Ie.isValidElement)(Pn)?(0,Ie.cloneElement)(Pn,{disabled:In}):Pn};var ke=we.onChange!==Ke,Ge="current"in we;Ge&&!ke&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Fe=we.defaultCurrent;"current"in we&&(Fe=we.current);var pt=we.defaultPageSize;return"pageSize"in we&&(pt=we.pageSize),Fe=Math.min(Fe,Xe(pt,void 0,we)),ye.state={current:Fe,currentInputValue:Fe,pageSize:pt},ye}return(0,ue.Z)(Oe,[{key:"componentDidUpdate",value:function(ye,ke){var Ge=this.props.prefixCls;if(ke.current!==this.state.current&&this.paginationNode.current){var Fe=this.paginationNode.current.querySelector(".".concat(Ge,"-item-").concat(ke.current));if(Fe&&document.activeElement===Fe){var pt;Fe==null||(pt=Fe.blur)===null||pt===void 0||pt.call(Fe)}}}},{key:"getValidValue",value:function(ye){var ke=ye.target.value,Ge=Xe(void 0,this.state,this.props),Fe=this.state.currentInputValue,pt;return ke===""?pt=ke:Number.isNaN(Number(ke))?pt=Fe:ke>=Ge?pt=Ge:pt=Number(ke),pt}},{key:"getShowSizeChanger",value:function(){var ye=this.props,ke=ye.showSizeChanger,Ge=ye.total,Fe=ye.totalBoundaryShowSizeChanger;return typeof ke!="undefined"?ke:Ge>Fe}},{key:"render",value:function(){var ye=this.props,ke=ye.prefixCls,Ge=ye.className,Fe=ye.style,pt=ye.disabled,tn=ye.hideOnSinglePage,en=ye.total,wt=ye.locale,Xt=ye.showQuickJumper,Pn=ye.showLessItems,In=ye.showTitle,$n=ye.showTotal,Pi=ye.simple,wn=ye.itemRender,Ai=ye.showPrevNextJumpers,Vi=ye.jumpPrevIcon,ur=ye.jumpNextIcon,sr=ye.selectComponentClass,Qn=ye.selectPrefixCls,Ci=ye.pageSizeOptions,er=this.state,ri=er.current,tr=er.pageSize,Di=er.currentInputValue;if(tn===!0&&en<=tr)return null;var De=Xe(void 0,this.state,this.props),Yr=[],yr=null,Dr=null,lo=null,Wo=null,No=null,ki=Xt&&Xt.goButton,an=Pn?1:2,nn=ri-1>0?ri-1:0,Ut=ri+1<De?ri+1:De,bt=(0,ve.Z)(this.props,{aria:!0,data:!0}),xn=$n&&Ie.createElement("li",{className:"".concat(ke,"-total-text")},$n(en,[en===0?0:(ri-1)*tr+1,ri*tr>en?en:ri*tr]));if(Pi){ki&&(typeof ki=="boolean"?No=Ie.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},wt.jump_to_confirm):No=Ie.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ki),No=Ie.createElement("li",{title:In?"".concat(wt.jump_to).concat(ri,"/").concat(De):null,className:"".concat(ke,"-simple-pager")},No));var hn=this.renderPrev(nn);return Ie.createElement("ul",(0,pe.Z)({className:Qe()(ke,"".concat(ke,"-simple"),(0,Ee.Z)({},"".concat(ke,"-disabled"),pt),Ge),style:Fe,ref:this.paginationNode},bt),xn,hn?Ie.createElement("li",{title:In?wt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Qe()("".concat(ke,"-prev"),(0,Ee.Z)({},"".concat(ke,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},hn):null,Ie.createElement("li",{title:In?"".concat(ri,"/").concat(De):null,className:"".concat(ke,"-simple-pager")},Ie.createElement("input",{type:"text",value:Di,disabled:pt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ie.createElement("span",{className:"".concat(ke,"-slash")},"/"),De),Ie.createElement("li",{title:In?wt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Qe()("".concat(ke,"-next"),(0,Ee.Z)({},"".concat(ke,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ut)),No)}if(De<=3+an*2){var Tt={locale:wt,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:In,itemRender:wn};De||Yr.push(Ie.createElement(ze,(0,pe.Z)({},Tt,{key:"noPager",page:1,className:"".concat(ke,"-item-disabled")})));for(var ot=1;ot<=De;ot+=1){var fn=ri===ot;Yr.push(Ie.createElement(ze,(0,pe.Z)({},Tt,{key:ot,page:ot,active:fn})))}}else{var yn=Pn?wt.prev_3:wt.prev_5,li=Pn?wt.next_3:wt.next_5,vn=wn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Vi,"prev page")),at=wn(this.getJumpNextPage(),"jump-next",this.getItemIcon(ur,"next page"));Ai&&(yr=vn?Ie.createElement("li",{title:In?yn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Qe()("".concat(ke,"-jump-prev"),(0,Ee.Z)({},"".concat(ke,"-jump-prev-custom-icon"),!!Vi))},vn):null,Dr=at?Ie.createElement("li",{title:In?li:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Qe()("".concat(ke,"-jump-next"),(0,Ee.Z)({},"".concat(ke,"-jump-next-custom-icon"),!!ur))},at):null),Wo=Ie.createElement(ze,{locale:wt,last:!0,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:De,page:De,active:!1,showTitle:In,itemRender:wn}),lo=Ie.createElement(ze,{locale:wt,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:In,itemRender:wn});var Bn=Math.max(1,ri-an),pi=Math.min(ri+an,De);ri-1<=an&&(pi=1+an*2),De-ri<=an&&(Bn=De-an*2);for(var Li=Bn;Li<=pi;Li+=1){var qt=ri===Li;Yr.push(Ie.createElement(ze,{locale:wt,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Li,page:Li,active:qt,showTitle:In,itemRender:wn}))}ri-1>=an*2&&ri!==3&&(Yr[0]=(0,Ie.cloneElement)(Yr[0],{className:"".concat(ke,"-item-after-jump-prev")}),Yr.unshift(yr)),De-ri>=an*2&&ri!==De-2&&(Yr[Yr.length-1]=(0,Ie.cloneElement)(Yr[Yr.length-1],{className:"".concat(ke,"-item-before-jump-next")}),Yr.push(Dr)),Bn!==1&&Yr.unshift(lo),pi!==De&&Yr.push(Wo)}var Nn=!this.hasPrev()||!De,on=!this.hasNext()||!De,Sn=this.renderPrev(nn),Fn=this.renderNext(Ut);return Ie.createElement("ul",(0,pe.Z)({className:Qe()(ke,Ge,(0,Ee.Z)({},"".concat(ke,"-disabled"),pt)),style:Fe,ref:this.paginationNode},bt),xn,Sn?Ie.createElement("li",{title:In?wt.prev_page:null,onClick:this.prev,tabIndex:Nn?null:0,onKeyPress:this.runIfEnterPrev,className:Qe()("".concat(ke,"-prev"),(0,Ee.Z)({},"".concat(ke,"-disabled"),Nn)),"aria-disabled":Nn},Sn):null,Yr,Fn?Ie.createElement("li",{title:In?wt.next_page:null,onClick:this.next,tabIndex:on?null:0,onKeyPress:this.runIfEnterNext,className:Qe()("".concat(ke,"-next"),(0,Ee.Z)({},"".concat(ke,"-disabled"),on)),"aria-disabled":on},Fn):null,Ie.createElement(Te,{disabled:pt,locale:wt,rootPrefixCls:ke,selectComponentClass:sr,selectPrefixCls:Qn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ri,pageSize:tr,pageSizeOptions:Ci,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ki}))}}],[{key:"getDerivedStateFromProps",value:function(ye,ke){var Ge={};if("current"in ye&&(Ge.current=ye.current,ye.current!==ke.current&&(Ge.currentInputValue=Ge.current)),"pageSize"in ye&&ye.pageSize!==ke.pageSize){var Fe=ke.current,pt=Xe(ye.pageSize,ke,ye);Fe=Fe>pt?pt:Fe,"current"in ye||(Ge.current=Fe,Ge.currentInputValue=Fe),Ge.pageSize=ye.pageSize}return Ge}}]),Oe}(Ie.Component);Ft.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ke,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ke,locale:xe.Z,style:{},itemRender:Mt,totalBoundaryShowSizeChanger:50};var Ct=Ft,Nt=he(22075),It=he(36355),_t=he(19716),lt=he(8628),je=he(9763),Et=he(57809);const ln=ft=>Ie.createElement(Et.default,Object.assign({},ft,{showSearch:!0,size:"small"})),Ht=ft=>Ie.createElement(Et.default,Object.assign({},ft,{showSearch:!0,size:"middle"}));ln.Option=Et.default.Option,Ht.Option=Et.default.Option;var xt=he(9937),Bt=he(17313),rn=he(83116),Hn=he(37613);const pn=ft=>{const{componentCls:nt}=ft;return{[`${nt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${nt}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${nt}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed"}}},[`&${nt}-disabled`]:{cursor:"not-allowed",[`${nt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ft.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ft.colorBorder,backgroundColor:ft.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ft.itemActiveBgDisabled},a:{color:ft.itemActiveColorDisabled}}},[`${nt}-item-link`]:{color:ft.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${nt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${nt}-simple-pager`]:{color:ft.colorTextDisabled},[`${nt}-jump-prev, ${nt}-jump-next`]:{[`${nt}-item-link-icon`]:{opacity:0},[`${nt}-item-ellipsis`]:{opacity:1}}},[`&${nt}-simple`]:{[`${nt}-prev, ${nt}-next`]:{[`&${nt}-disabled ${nt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},_n=ft=>{const{componentCls:nt}=ft;return{[`&${nt}-mini ${nt}-total-text, &${nt}-mini ${nt}-simple-pager`]:{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`},[`&${nt}-mini ${nt}-item`]:{minWidth:ft.itemSizeSM,height:ft.itemSizeSM,margin:0,lineHeight:`${ft.itemSizeSM-2}px`},[`&${nt}-mini:not(${nt}-disabled) ${nt}-item:not(${nt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive}},[`&${nt}-mini ${nt}-prev, &${nt}-mini ${nt}-next`]:{minWidth:ft.itemSizeSM,height:ft.itemSizeSM,margin:0,lineHeight:`${ft.itemSizeSM}px`},[`&${nt}-mini:not(${nt}-disabled)`]:{[`${nt}-prev, ${nt}-next`]:{[`&:hover ${nt}-item-link`]:{backgroundColor:ft.colorBgTextHover},[`&:active ${nt}-item-link`]:{backgroundColor:ft.colorBgTextActive},[`&${nt}-disabled:hover ${nt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${nt}-mini ${nt}-prev ${nt}-item-link,
|
|
|
&${nt}-mini ${nt}-next ${nt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`}},[`&${nt}-mini ${nt}-jump-prev, &${nt}-mini ${nt}-jump-next`]:{height:ft.itemSizeSM,marginInlineEnd:0,lineHeight:`${ft.itemSizeSM}px`},[`&${nt}-mini ${nt}-options`]:{marginInlineStart:ft.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ft.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,xt.x0)(ft)),{width:ft.paginationMiniQuickJumperInputWidth,height:ft.controlHeightSM})}}}},Lt=ft=>{const{componentCls:nt}=ft;return{[`
|
|
|
&${nt}-simple ${nt}-prev,
|
|
|
&${nt}-simple ${nt}-next
|
|
|
`]:{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`,verticalAlign:"top",[`${nt}-item-link`]:{height:ft.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive},"&::after":{height:ft.itemSizeSM,lineHeight:`${ft.itemSizeSM}px`}}},[`&${nt}-simple ${nt}-simple-pager`]:{display:"inline-block",height:ft.itemSizeSM,marginInlineEnd:ft.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ft.marginXS,padding:`0 ${ft.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ft.itemInputBg,border:`${ft.lineWidth}px ${ft.lineType} ${ft.colorBorder}`,borderRadius:ft.borderRadius,outline:"none",transition:`border-color ${ft.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ft.colorPrimary},"&:focus":{borderColor:ft.colorPrimaryHover,boxShadow:`${ft.inputOutlineOffset}px 0 ${ft.controlOutlineWidth}px ${ft.controlOutline}`},"&[disabled]":{color:ft.colorTextDisabled,backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,cursor:"not-allowed"}}}}},Un=ft=>{const{componentCls:nt}=ft;return{[`${nt}-jump-prev, ${nt}-jump-next`]:{outline:0,[`${nt}-item-container`]:{position:"relative",[`${nt}-item-link-icon`]:{color:ft.colorPrimary,fontSize:ft.fontSizeSM,opacity:0,transition:`all ${ft.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${nt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ft.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ft.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ft.paginationEllipsisTextIndent,opacity:1,transition:`all ${ft.motionDurationMid}`}},"&:hover":{[`${nt}-item-link-icon`]:{opacity:1},[`${nt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${nt}-prev,
|
|
|
${nt}-jump-prev,
|
|
|
${nt}-jump-next
|
|
|
`]:{marginInlineEnd:ft.marginXS},[`
|
|
|
${nt}-prev,
|
|
|
${nt}-next,
|
|
|
${nt}-jump-prev,
|
|
|
${nt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:ft.itemSize,height:ft.itemSize,color:ft.colorText,fontFamily:ft.fontFamily,lineHeight:`${ft.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ft.borderRadius,cursor:"pointer",transition:`all ${ft.motionDurationMid}`},[`${nt}-prev, ${nt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ft.colorText,cursor:"pointer",userSelect:"none"},[`${nt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ft.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ft.lineWidth}px ${ft.lineType} transparent`,borderRadius:ft.borderRadius,outline:"none",transition:`all ${ft.motionDurationMid}`},[`&:hover ${nt}-item-link`]:{backgroundColor:ft.colorBgTextHover},[`&:active ${nt}-item-link`]:{backgroundColor:ft.colorBgTextActive},[`&${nt}-disabled:hover`]:{[`${nt}-item-link`]:{backgroundColor:"transparent"}}},[`${nt}-slash`]:{marginInlineEnd:ft.paginationSlashMarginInlineEnd,marginInlineStart:ft.paginationSlashMarginInlineStart},[`${nt}-options`]:{display:"inline-block",marginInlineStart:ft.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ft.controlHeight,marginInlineStart:ft.marginXS,lineHeight:`${ft.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,xt.ik)(ft)),{width:ft.controlHeightLG*1.25,height:ft.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ft.marginXS,marginInlineEnd:ft.marginXS})}}}},Gn=ft=>{const{componentCls:nt}=ft;return{[`${nt}-item`]:{display:"inline-block",minWidth:ft.itemSize,height:ft.itemSize,marginInlineEnd:ft.marginXS,fontFamily:ft.fontFamily,lineHeight:`${ft.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ft.lineWidth}px ${ft.lineType} transparent`,borderRadius:ft.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ft.paginationItemPaddingInline}px`,color:ft.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${nt}-item-active)`]:{"&:hover":{transition:`all ${ft.motionDurationMid}`,backgroundColor:ft.colorBgTextHover},"&:active":{backgroundColor:ft.colorBgTextActive}},"&-active":{fontWeight:ft.fontWeightStrong,backgroundColor:ft.itemActiveBg,borderColor:ft.colorPrimary,a:{color:ft.colorPrimary},"&:hover":{borderColor:ft.colorPrimaryHover},"&:hover a":{color:ft.colorPrimaryHover}}}}},ui=ft=>{const{componentCls:nt}=ft;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(ft)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${nt}-total-text`]:{display:"inline-block",height:ft.itemSize,marginInlineEnd:ft.marginXS,lineHeight:`${ft.itemSize-2}px`,verticalAlign:"middle"}}),Gn(ft)),Un(ft)),Lt(ft)),_n(ft)),pn(ft)),{[`@media only screen and (max-width: ${ft.screenLG}px)`]:{[`${nt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ft.screenSM}px)`]:{[`${nt}-options`]:{display:"none"}}}),[`&${ft.componentCls}-rtl`]:{direction:"rtl"}}},Ln=ft=>{const{componentCls:nt}=ft;return{[`${nt}${nt}-disabled:not(${nt}-mini)`]:{"&, &:hover":{[`${nt}-item-link`]:{borderColor:ft.colorBorder}},"&:focus-visible":{[`${nt}-item-link`]:{borderColor:ft.colorBorder}},[`${nt}-item, ${nt}-item-link`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,[`&:hover:not(${nt}-item-active)`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,a:{color:ft.colorTextDisabled}},[`&${nt}-item-active`]:{backgroundColor:ft.itemActiveBgDisabled}},[`${nt}-prev, ${nt}-next`]:{"&:hover button":{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder,color:ft.colorTextDisabled},[`${nt}-item-link`]:{backgroundColor:ft.colorBgContainerDisabled,borderColor:ft.colorBorder}}},[`${nt}:not(${nt}-mini)`]:{[`${nt}-prev, ${nt}-next`]:{"&:hover button":{borderColor:ft.colorPrimaryHover,backgroundColor:ft.itemBg},[`${nt}-item-link`]:{backgroundColor:ft.itemLinkBg,borderColor:ft.colorBorder},[`&:hover ${nt}-item-link`]:{borderColor:ft.colorPrimary,backgroundColor:ft.itemBg,color:ft.colorPrimary},[`&${nt}-disabled`]:{[`${nt}-item-link`]:{borderColor:ft.colorBorder,color:ft.colorTextDisabled}}},[`${nt}-item`]:{backgroundColor:ft.itemBg,border:`${ft.lineWidth}px ${ft.lineType} ${ft.colorBorder}`,[`&:hover:not(${nt}-item-active)`]:{borderColor:ft.colorPrimary,backgroundColor:ft.itemBg,a:{color:ft.colorPrimary}},"&-active":{borderColor:ft.colorPrimary}}}}},Wt=ft=>{const{componentCls:nt}=ft;return{[`${nt}:not(${nt}-disabled)`]:{[`${nt}-item`]:Object.assign({},(0,Bt.Qy)(ft)),[`${nt}-jump-prev, ${nt}-jump-next`]:{"&:focus-visible":Object.assign({[`${nt}-item-link-icon`]:{opacity:1},[`${nt}-item-ellipsis`]:{opacity:0}},(0,Bt.oN)(ft))},[`${nt}-prev, ${nt}-next`]:{[`&:focus-visible ${nt}-item-link`]:Object.assign({},(0,Bt.oN)(ft))}}}};var Vt=(0,rn.Z)("Pagination",ft=>{const nt=(0,Hn.TS)(ft,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ft.marginXXS/2,paginationMiniQuickJumperInputWidth:ft.controlHeightLG*1.1,paginationItemPaddingInline:ft.marginXXS*1.5,paginationEllipsisLetterSpacing:ft.marginXXS/2,paginationSlashMarginInlineStart:ft.marginXXS,paginationSlashMarginInlineEnd:ft.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,xt.e5)(ft),(0,xt.TM)(ft));return[ui(nt),Wt(nt),ft.wireframe&&Ln(nt)]},ft=>({itemBg:ft.colorBgContainer,itemSize:ft.controlHeight,itemSizeSM:ft.controlHeightSM,itemActiveBg:ft.colorBgContainer,itemLinkBg:ft.colorBgContainer,itemActiveColorDisabled:ft.colorTextDisabled,itemActiveBgDisabled:ft.controlItemBgActiveDisabled,itemInputBg:ft.colorBgContainer,miniOptionsSizeChangerTop:0})),mt=function(ft,nt){var Oe={};for(var we in ft)Object.prototype.hasOwnProperty.call(ft,we)&&nt.indexOf(we)<0&&(Oe[we]=ft[we]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,we=Object.getOwnPropertySymbols(ft);ye<we.length;ye++)nt.indexOf(we[ye])<0&&Object.prototype.propertyIsEnumerable.call(ft,we[ye])&&(Oe[we[ye]]=ft[we[ye]]);return Oe},Zt=ft=>{const{prefixCls:nt,selectPrefixCls:Oe,className:we,rootClassName:ye,style:ke,size:Ge,locale:Fe,selectComponentClass:pt,responsive:tn,showSizeChanger:en}=ft,wt=mt(ft,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Xt}=(0,lt.Z)(tn),{getPrefixCls:Pn,direction:In,pagination:$n={}}=Ie.useContext(It.E_),Pi=Pn("pagination",nt),[wn,Ai]=Vt(Pi),Vi=en!=null?en:$n.showSizeChanger,ur=Ie.useMemo(()=>{const De=Ie.createElement("span",{className:`${Pi}-item-ellipsis`},"\u2022\u2022\u2022"),Yr=Ie.createElement("button",{className:`${Pi}-item-link`,type:"button",tabIndex:-1},In==="rtl"?Ie.createElement(tt.Z,null):Ie.createElement(Je.Z,null)),yr=Ie.createElement("button",{className:`${Pi}-item-link`,type:"button",tabIndex:-1},In==="rtl"?Ie.createElement(Je.Z,null):Ie.createElement(tt.Z,null)),Dr=Ie.createElement("a",{className:`${Pi}-item-link`},Ie.createElement("div",{className:`${Pi}-item-container`},In==="rtl"?Ie.createElement(vt.Z,{className:`${Pi}-item-link-icon`}):Ie.createElement(yt,{className:`${Pi}-item-link-icon`}),De)),lo=Ie.createElement("a",{className:`${Pi}-item-link`},Ie.createElement("div",{className:`${Pi}-item-container`},In==="rtl"?Ie.createElement(yt,{className:`${Pi}-item-link-icon`}):Ie.createElement(vt.Z,{className:`${Pi}-item-link-icon`}),De));return{prevIcon:Yr,nextIcon:yr,jumpPrevIcon:Dr,jumpNextIcon:lo}},[In,Pi]),[sr]=(0,je.Z)("Pagination",Nt.Z),Qn=Object.assign(Object.assign({},sr),Fe),Ci=(0,_t.Z)(Ge),er=Ci==="small"||!!(Xt&&!Ci&&tn),ri=Pn("select",Oe),tr=Qe()({[`${Pi}-mini`]:er,[`${Pi}-rtl`]:In==="rtl"},$n==null?void 0:$n.className,we,ye,Ai),Di=Object.assign(Object.assign({},$n==null?void 0:$n.style),ke);return wn(Ie.createElement(Ct,Object.assign({},ur,wt,{style:Di,prefixCls:Pi,selectPrefixCls:ri,className:tr,selectComponentClass:pt||(er?ln:Ht),locale:Qn,showSizeChanger:Vi})))},Gt=Zt},39722:function(gn,zt,he){"use strict";he.d(zt,{t5:function(){return Je}});var pe=he(92310),Ie=he.n(pe),Ve=he(55477),st=he(59301),We=he(36355),it=he(77578),be=he(17356),yt=function($e,Qe){var Ee={};for(var ee in $e)Object.prototype.hasOwnProperty.call($e,ee)&&Qe.indexOf(ee)<0&&(Ee[ee]=$e[ee]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,ee=Object.getOwnPropertySymbols($e);te<ee.length;te++)Qe.indexOf(ee[te])<0&&Object.prototype.propertyIsEnumerable.call($e,ee[te])&&(Ee[ee[te]]=$e[ee[te]]);return Ee};const vt=($e,Qe,Ee)=>{if(!(!Qe&&!Ee))return st.createElement(st.Fragment,null,Qe&&st.createElement("div",{className:`${$e}-title`},(0,it.Z)(Qe)),st.createElement("div",{className:`${$e}-inner-content`},(0,it.Z)(Ee)))},Je=$e=>{const{hashId:Qe,prefixCls:Ee,className:ee,style:te,placement:ue="top",title:ae,content:de,children:ve}=$e;return st.createElement("div",{className:Ie()(Qe,Ee,`${Ee}-pure`,`${Ee}-placement-${ue}`,ee),style:te},st.createElement("div",{className:`${Ee}-arrow`}),st.createElement(Ve.G,Object.assign({},$e,{className:Qe,prefixCls:Ee}),ve||vt(Ee,ae,de)))},tt=$e=>{const{prefixCls:Qe}=$e,Ee=yt($e,["prefixCls"]),{getPrefixCls:ee}=st.useContext(We.E_),te=ee("popover",Qe),[ue,ae]=(0,be.Z)(te);return ue(st.createElement(Je,Object.assign({},Ee,{prefixCls:te,hashId:ae})))};zt.ZP=tt},60324:function(gn,zt,he){"use strict";var pe=he(92310),Ie=he.n(pe),Ve=he(59301),st=he(77578),We=he(62892),it=he(36355),be=he(6848),yt=he(39722),vt=he(17356),Je=function(Qe,Ee){var ee={};for(var te in Qe)Object.prototype.hasOwnProperty.call(Qe,te)&&Ee.indexOf(te)<0&&(ee[te]=Qe[te]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,te=Object.getOwnPropertySymbols(Qe);ue<te.length;ue++)Ee.indexOf(te[ue])<0&&Object.prototype.propertyIsEnumerable.call(Qe,te[ue])&&(ee[te[ue]]=Qe[te[ue]]);return ee};const tt=Qe=>{let{title:Ee,content:ee,prefixCls:te}=Qe;return Ve.createElement(Ve.Fragment,null,Ee&&Ve.createElement("div",{className:`${te}-title`},(0,st.Z)(Ee)),Ve.createElement("div",{className:`${te}-inner-content`},(0,st.Z)(ee)))},$e=Ve.forwardRef((Qe,Ee)=>{const{prefixCls:ee,title:te,content:ue,overlayClassName:ae,placement:de="top",trigger:ve="hover",mouseEnterDelay:Pe=.1,mouseLeaveDelay:Ae=.1,overlayStyle:xe={}}=Qe,Le=Je(Qe,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Te}=Ve.useContext(it.E_),He=Te("popover",ee),[ze,Ke]=(0,vt.Z)(He),Ze=Te(),Mt=Ie()(ae,Ke);return ze(Ve.createElement(be.Z,Object.assign({placement:de,trigger:ve,mouseEnterDelay:Pe,mouseLeaveDelay:Ae,overlayStyle:xe},Le,{prefixCls:He,overlayClassName:Mt,ref:Ee,overlay:te||ue?Ve.createElement(tt,{prefixCls:He,title:te,content:ue}):null,transitionName:(0,We.m)(Ze,"zoom-big",Le.transitionName),"data-popover-inject":!0})))});$e._InternalPanelDoNotUseOrYouWillBeFired=yt.ZP,zt.Z=$e},17356:function(gn,zt,he){"use strict";var pe=he(17313),Ie=he(29878),Ve=he(19447),st=he(33166),We=he(83116),it=he(37613);const be=Je=>{const{componentCls:tt,popoverColor:$e,minWidth:Qe,fontWeightStrong:Ee,popoverPadding:ee,boxShadowSecondary:te,colorTextHeading:ue,borderRadiusLG:ae,zIndexPopup:de,marginXS:ve,colorBgElevated:Pe,popoverBg:Ae}=Je;return[{[tt]:Object.assign(Object.assign({},(0,pe.Wf)(Je)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:de,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Pe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${tt}-content`]:{position:"relative"},[`${tt}-inner`]:{backgroundColor:Ae,backgroundClip:"padding-box",borderRadius:ae,boxShadow:te,padding:ee},[`${tt}-title`]:{minWidth:Qe,marginBottom:ve,color:ue,fontWeight:Ee},[`${tt}-inner-content`]:{color:$e}})},(0,Ve.ZP)(Je,{colorBg:"var(--antd-arrow-background-color)"}),{[`${tt}-pure`]:{position:"relative",maxWidth:"none",margin:Je.sizePopupArrow,display:"inline-block",[`${tt}-content`]:{display:"inline-block"}}}]},yt=Je=>{const{componentCls:tt}=Je;return{[tt]:st.i.map($e=>{const Qe=Je[`${$e}6`];return{[`&${tt}-${$e}`]:{"--antd-arrow-background-color":Qe,[`${tt}-inner`]:{backgroundColor:Qe},[`${tt}-arrow`]:{background:"transparent"}}}})}},vt=Je=>{const{componentCls:tt,lineWidth:$e,lineType:Qe,colorSplit:Ee,paddingSM:ee,controlHeight:te,fontSize:ue,lineHeight:ae,padding:de}=Je,ve=te-Math.round(ue*ae),Pe=ve/2,Ae=ve/2-$e,xe=de;return{[tt]:{[`${tt}-inner`]:{padding:0},[`${tt}-title`]:{margin:0,padding:`${Pe}px ${xe}px ${Ae}px`,borderBottom:`${$e}px ${Qe} ${Ee}`},[`${tt}-inner-content`]:{padding:`${ee}px ${xe}px`}}}};zt.Z=(0,We.Z)("Popover",Je=>{const{colorBgElevated:tt,colorText:$e,wireframe:Qe}=Je,Ee=(0,it.TS)(Je,{popoverPadding:12,popoverBg:tt,popoverColor:$e});return[be(Ee),yt(Ee),Qe&&vt(Ee),(0,Ie._y)(Ee,"zoom-big")]},Je=>({width:177,minWidth:177,zIndexPopup:Je.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return en}});var pe=he(59301),Ie=he(79999),Ve=he(10402),st=he(33130),We=he(72119),it=he(92310),be=he.n(it),yt=he(64002),vt=he(36355),Je=he(5891),tt=he(57259),$e=he(19149),Qe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ee=function(){var Xt=(0,pe.useRef)([]),Pn=(0,pe.useRef)(null);return(0,pe.useEffect)(function(){var In=Date.now(),$n=!1;Xt.current.forEach(function(Pi){if(Pi){$n=!0;var wn=Pi.style;wn.transitionDuration=".3s, .3s, .3s, .06s",Pn.current&&In-Pn.current<100&&(wn.transitionDuration="0s, 0s")}}),$n&&(Pn.current=Date.now())}),Xt.current},ee=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],te=function(Xt){var Pn=(0,tt.Z)((0,tt.Z)({},Qe),Xt),In=Pn.className,$n=Pn.percent,Pi=Pn.prefixCls,wn=Pn.strokeColor,Ai=Pn.strokeLinecap,Vi=Pn.strokeWidth,ur=Pn.style,sr=Pn.trailColor,Qn=Pn.trailWidth,Ci=Pn.transition,er=(0,$e.Z)(Pn,ee);delete er.gapPosition;var ri=Array.isArray($n)?$n:[$n],tr=Array.isArray(wn)?wn:[wn],Di=Ee(),De=Vi/2,Yr=100-Vi/2,yr="M ".concat(Ai==="round"?De:0,",").concat(De,`
|
|
|
L `).concat(Ai==="round"?Yr:100,",").concat(De),Dr="0 0 100 ".concat(Vi),lo=0;return pe.createElement("svg",(0,Je.Z)({className:be()("".concat(Pi,"-line"),In),viewBox:Dr,preserveAspectRatio:"none",style:ur},er),pe.createElement("path",{className:"".concat(Pi,"-line-trail"),d:yr,strokeLinecap:Ai,stroke:sr,strokeWidth:Qn||Vi,fillOpacity:"0"}),ri.map(function(Wo,No){var ki=1;switch(Ai){case"round":ki=1-Vi/100;break;case"square":ki=1-Vi/2/100;break;default:ki=1;break}var an={strokeDasharray:"".concat(Wo*ki,"px, 100px"),strokeDashoffset:"-".concat(lo,"px"),transition:Ci||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},nn=tr[No]||tr[tr.length-1];return lo+=Wo,pe.createElement("path",{key:No,className:"".concat(Pi,"-line-path"),d:yr,strokeLinecap:Ai,stroke:nn,strokeWidth:Vi,fillOpacity:"0",ref:function(bt){Di[No]=bt},style:an})}))},ue=te,ae=he(80665),de=he(29043),ve=he(87746),Pe=0,Ae=(0,ve.Z)();function xe(){var wt;return Ae?(wt=Pe,Pe+=1):wt="TEST_OR_SSR",wt}var Le=function(wt){var Xt=pe.useState(),Pn=(0,de.Z)(Xt,2),In=Pn[0],$n=Pn[1];return pe.useEffect(function(){$n("rc_progress_".concat(xe()))},[]),wt||In},Te=function(Xt){var Pn=Xt.bg,In=Xt.children;return pe.createElement("div",{style:{width:"100%",height:"100%",background:Pn}},In)};function He(wt,Xt){return Object.keys(wt).map(function(Pn){var In=parseFloat(Pn),$n="".concat(Math.floor(In*Xt),"%");return"".concat(wt[Pn]," ").concat($n)})}var ze=pe.forwardRef(function(wt,Xt){var Pn=wt.prefixCls,In=wt.color,$n=wt.gradientId,Pi=wt.radius,wn=wt.style,Ai=wt.ptg,Vi=wt.strokeLinecap,ur=wt.strokeWidth,sr=wt.size,Qn=wt.gapDegree,Ci=In&&(0,ae.Z)(In)==="object",er=Ci?"#FFF":void 0,ri=sr/2,tr=pe.createElement("circle",{className:"".concat(Pn,"-circle-path"),r:Pi,cx:ri,cy:ri,stroke:er,strokeLinecap:Vi,strokeWidth:ur,opacity:Ai===0?0:1,style:wn,ref:Xt});if(!Ci)return tr;var Di="".concat($n,"-conic"),De=Qn?"".concat(180+Qn/2,"deg"):"0deg",Yr=He(In,(360-Qn)/360),yr=He(In,1),Dr="conic-gradient(from ".concat(De,", ").concat(Yr.join(", "),")"),lo="linear-gradient(to ".concat(Qn?"bottom":"top",", ").concat(yr.join(", "),")");return pe.createElement(pe.Fragment,null,pe.createElement("mask",{id:Di},tr),pe.createElement("foreignObject",{x:0,y:0,width:sr,height:sr,mask:"url(#".concat(Di,")")},pe.createElement(Te,{bg:lo},pe.createElement(Te,{bg:Dr}))))}),Ke=ze,Ze=100,Mt=function(Xt,Pn,In,$n,Pi,wn,Ai,Vi,ur,sr){var Qn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ci=In/100*360*((360-wn)/360),er=wn===0?0:{bottom:0,top:180,left:90,right:-90}[Ai],ri=(100-$n)/100*Pn;ur==="round"&&$n!==100&&(ri+=sr/2,ri>=Pn&&(ri=Pn-.01));var tr=Ze/2;return{stroke:typeof Vi=="string"?Vi:void 0,strokeDasharray:"".concat(Pn,"px ").concat(Xt),strokeDashoffset:ri+Qn,transform:"rotate(".concat(Pi+Ci+er,"deg)"),transformOrigin:"".concat(tr,"px ").concat(tr,"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}},Xe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ft(wt){var Xt=wt!=null?wt:[];return Array.isArray(Xt)?Xt:[Xt]}var Ct=function(Xt){var Pn=(0,tt.Z)((0,tt.Z)({},Qe),Xt),In=Pn.id,$n=Pn.prefixCls,Pi=Pn.steps,wn=Pn.strokeWidth,Ai=Pn.trailWidth,Vi=Pn.gapDegree,ur=Vi===void 0?0:Vi,sr=Pn.gapPosition,Qn=Pn.trailColor,Ci=Pn.strokeLinecap,er=Pn.style,ri=Pn.className,tr=Pn.strokeColor,Di=Pn.percent,De=(0,$e.Z)(Pn,Xe),Yr=Ze/2,yr=Le(In),Dr="".concat(yr,"-gradient"),lo=Yr-wn/2,Wo=Math.PI*2*lo,No=ur>0?90+ur/2:-90,ki=Wo*((360-ur)/360),an=(0,ae.Z)(Pi)==="object"?Pi:{count:Pi,space:2},nn=an.count,Ut=an.space,bt=Ft(Di),xn=Ft(tr),hn=xn.find(function(at){return at&&(0,ae.Z)(at)==="object"}),Tt=hn&&(0,ae.Z)(hn)==="object",ot=Tt?"butt":Ci,fn=Mt(Wo,ki,0,100,No,ur,sr,Qn,ot,wn),yn=Ee(),li=function(){var Bn=0;return bt.map(function(pi,Li){var qt=xn[Li]||xn[xn.length-1],Nn=Mt(Wo,ki,Bn,pi,No,ur,sr,qt,ot,wn);return Bn+=pi,pe.createElement(Ke,{key:Li,color:qt,ptg:pi,radius:lo,prefixCls:$n,gradientId:Dr,style:Nn,strokeLinecap:ot,strokeWidth:wn,gapDegree:ur,ref:function(Sn){yn[Li]=Sn},size:Ze})}).reverse()},vn=function(){var Bn=Math.round(nn*(bt[0]/100)),pi=100/nn,Li=0;return new Array(nn).fill(null).map(function(qt,Nn){var on=Nn<=Bn-1?xn[0]:Qn,Sn=on&&(0,ae.Z)(on)==="object"?"url(#".concat(Dr,")"):void 0,Fn=Mt(Wo,ki,Li,pi,No,ur,sr,on,"butt",wn,Ut);return Li+=(ki-Fn.strokeDashoffset+Ut)*100/ki,pe.createElement("circle",{key:Nn,className:"".concat($n,"-circle-path"),r:lo,cx:Yr,cy:Yr,stroke:Sn,strokeWidth:wn,opacity:1,style:Fn,ref:function(kn){yn[Nn]=kn}})})};return pe.createElement("svg",(0,Je.Z)({className:be()("".concat($n,"-circle"),ri),viewBox:"0 0 ".concat(Ze," ").concat(Ze),style:er,id:In,role:"presentation"},De),!nn&&pe.createElement("circle",{className:"".concat($n,"-circle-trail"),r:lo,cx:Yr,cy:Yr,stroke:Qn,strokeLinecap:ot,strokeWidth:Ai||wn,style:fn}),nn?vn():li())},Nt=Ct,It={Line:ue,Circle:Nt},_t=he(6848),lt=he(93398);function je(wt){return!wt||wt<0?0:wt>100?100:wt}function Et(wt){let{success:Xt,successPercent:Pn}=wt,In=Pn;return Xt&&"progress"in Xt&&(In=Xt.progress),Xt&&"percent"in Xt&&(In=Xt.percent),In}const ln=wt=>{let{percent:Xt,success:Pn,successPercent:In}=wt;const $n=je(Et({success:Pn,successPercent:In}));return[$n,je(je(Xt)-$n)]},Ht=wt=>{let{success:Xt={},strokeColor:Pn}=wt;const{strokeColor:In}=Xt;return[In||lt.presetPrimaryColors.green,Pn||null]},xt=(wt,Xt,Pn)=>{var In,$n,Pi,wn;let Ai=-1,Vi=-1;if(Xt==="step"){const ur=Pn.steps,sr=Pn.strokeWidth;typeof wt=="string"||typeof wt=="undefined"?(Ai=wt==="small"?2:14,Vi=sr!=null?sr:8):typeof wt=="number"?[Ai,Vi]=[wt,wt]:[Ai=14,Vi=8]=wt,Ai*=ur}else if(Xt==="line"){const ur=Pn==null?void 0:Pn.strokeWidth;typeof wt=="string"||typeof wt=="undefined"?Vi=ur||(wt==="small"?6:8):typeof wt=="number"?[Ai,Vi]=[wt,wt]:[Ai=-1,Vi=8]=wt}else(Xt==="circle"||Xt==="dashboard")&&(typeof wt=="string"||typeof wt=="undefined"?[Ai,Vi]=wt==="small"?[60,60]:[120,120]:typeof wt=="number"?[Ai,Vi]=[wt,wt]:(Ai=($n=(In=wt[0])!==null&&In!==void 0?In:wt[1])!==null&&$n!==void 0?$n:120,Vi=(wn=(Pi=wt[0])!==null&&Pi!==void 0?Pi:wt[1])!==null&&wn!==void 0?wn:120));return[Ai,Vi]},Bt=3,rn=wt=>Bt/wt*100;var pn=wt=>{const{prefixCls:Xt,trailColor:Pn=null,strokeLinecap:In="round",gapPosition:$n,gapDegree:Pi,width:wn=120,type:Ai,children:Vi,success:ur,size:sr=wn}=wt,[Qn,Ci]=xt(sr,"circle");let{strokeWidth:er}=wt;er===void 0&&(er=Math.max(rn(Qn),6));const ri={width:Qn,height:Ci,fontSize:Qn*.15+6},tr=pe.useMemo(()=>{if(Pi||Pi===0)return Pi;if(Ai==="dashboard")return 75},[Pi,Ai]),Di=$n||Ai==="dashboard"&&"bottom"||void 0,De=Object.prototype.toString.call(wt.strokeColor)==="[object Object]",Yr=Ht({success:ur,strokeColor:wt.strokeColor}),yr=be()(`${Xt}-inner`,{[`${Xt}-circle-gradient`]:De}),Dr=pe.createElement(Nt,{percent:ln(wt),strokeWidth:er,trailWidth:er,strokeColor:Yr,strokeLinecap:In,trailColor:Pn,prefixCls:Xt,gapDegree:tr,gapPosition:Di});return pe.createElement("div",{className:yr,style:ri},Qn<=20?pe.createElement(_t.Z,{title:Vi},pe.createElement("span",null,Dr)):pe.createElement(pe.Fragment,null,Dr,Vi))},_n=function(wt,Xt){var Pn={};for(var In in wt)Object.prototype.hasOwnProperty.call(wt,In)&&Xt.indexOf(In)<0&&(Pn[In]=wt[In]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $n=0,In=Object.getOwnPropertySymbols(wt);$n<In.length;$n++)Xt.indexOf(In[$n])<0&&Object.prototype.propertyIsEnumerable.call(wt,In[$n])&&(Pn[In[$n]]=wt[In[$n]]);return Pn};const Lt=wt=>{let Xt=[];return Object.keys(wt).forEach(Pn=>{const In=parseFloat(Pn.replace(/%/g,""));isNaN(In)||Xt.push({key:In,value:wt[Pn]})}),Xt=Xt.sort((Pn,In)=>Pn.key-In.key),Xt.map(Pn=>{let{key:In,value:$n}=Pn;return`${$n} ${In}%`}).join(", ")},Un=(wt,Xt)=>{const{from:Pn=lt.presetPrimaryColors.blue,to:In=lt.presetPrimaryColors.blue,direction:$n=Xt==="rtl"?"to left":"to right"}=wt,Pi=_n(wt,["from","to","direction"]);if(Object.keys(Pi).length!==0){const wn=Lt(Pi);return{backgroundImage:`linear-gradient(${$n}, ${wn})`}}return{backgroundImage:`linear-gradient(${$n}, ${Pn}, ${In})`}};var ui=wt=>{const{prefixCls:Xt,direction:Pn,percent:In,size:$n,strokeWidth:Pi,strokeColor:wn,strokeLinecap:Ai="round",children:Vi,trailColor:ur=null,success:sr}=wt,Qn=wn&&typeof wn!="string"?Un(wn,Pn):{backgroundColor:wn},Ci=Ai==="square"||Ai==="butt"?0:void 0,er={backgroundColor:ur||void 0,borderRadius:Ci},ri=$n!=null?$n:[-1,Pi||($n==="small"?6:8)],[tr,Di]=xt(ri,"line",{strokeWidth:Pi}),De=Object.assign({width:`${je(In)}%`,height:Di,borderRadius:Ci},Qn),Yr=Et(wt),yr={width:`${je(Yr)}%`,height:Di,borderRadius:Ci,backgroundColor:sr==null?void 0:sr.strokeColor},Dr={width:tr<0?"100%":tr,height:Di};return pe.createElement(pe.Fragment,null,pe.createElement("div",{className:`${Xt}-outer`,style:Dr},pe.createElement("div",{className:`${Xt}-inner`,style:er},pe.createElement("div",{className:`${Xt}-bg`,style:De}),Yr!==void 0?pe.createElement("div",{className:`${Xt}-success-bg`,style:yr}):null)),Vi)},Wt=wt=>{const{size:Xt,steps:Pn,percent:In=0,strokeWidth:$n=8,strokeColor:Pi,trailColor:wn=null,prefixCls:Ai,children:Vi}=wt,ur=Math.round(Pn*(In/100)),sr=Xt==="small"?2:14,Qn=Xt!=null?Xt:[sr,$n],[Ci,er]=xt(Qn,"step",{steps:Pn,strokeWidth:$n}),ri=Ci/Pn,tr=new Array(Pn);for(let Di=0;Di<Pn;Di++){const De=Array.isArray(Pi)?Pi[Di]:Pi;tr[Di]=pe.createElement("div",{key:Di,className:be()(`${Ai}-steps-item`,{[`${Ai}-steps-item-active`]:Di<=ur-1}),style:{backgroundColor:Di<=ur-1?De:wn,width:ri,height:er}})}return pe.createElement("div",{className:`${Ai}-steps-outer`},tr,Vi)},Vt=he(9792),mt=he(17313),Ye=he(83116),Zt=he(37613);const Gt=wt=>{const Xt=wt?"100%":"-100%";return new Vt.Keyframes(`antProgress${wt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Xt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Xt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ft=wt=>{const{componentCls:Xt,iconCls:Pn}=wt;return{[Xt]:Object.assign(Object.assign({},(0,mt.Wf)(wt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:wt.fontSize,marginInlineEnd:wt.marginXS,marginBottom:wt.marginXS},[`${Xt}-outer`]:{display:"inline-block",width:"100%"},[`&${Xt}-show-info`]:{[`${Xt}-outer`]:{marginInlineEnd:`calc(-2em - ${wt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${wt.paddingXS}px)`}},[`${Xt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:wt.remainingColor,borderRadius:wt.lineBorderRadius},[`${Xt}-inner:not(${Xt}-circle-gradient)`]:{[`${Xt}-circle-path`]:{stroke:wt.defaultColor}},[`${Xt}-success-bg, ${Xt}-bg`]:{position:"relative",backgroundColor:wt.defaultColor,borderRadius:wt.lineBorderRadius,transition:`all ${wt.motionDurationSlow} ${wt.motionEaseInOutCirc}`},[`${Xt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:wt.colorSuccess},[`${Xt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:wt.marginXS,color:wt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Pn]:{fontSize:wt.fontSize}},[`&${Xt}-status-active`]:{[`${Xt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:wt.colorBgContainer,borderRadius:wt.lineBorderRadius,opacity:0,animationName:Gt(),animationDuration:wt.progressActiveMotionDuration,animationTimingFunction:wt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Xt}-rtl${Xt}-status-active`]:{[`${Xt}-bg::before`]:{animationName:Gt(!0)}},[`&${Xt}-status-exception`]:{[`${Xt}-bg`]:{backgroundColor:wt.colorError},[`${Xt}-text`]:{color:wt.colorError}},[`&${Xt}-status-exception ${Xt}-inner:not(${Xt}-circle-gradient)`]:{[`${Xt}-circle-path`]:{stroke:wt.colorError}},[`&${Xt}-status-success`]:{[`${Xt}-bg`]:{backgroundColor:wt.colorSuccess},[`${Xt}-text`]:{color:wt.colorSuccess}},[`&${Xt}-status-success ${Xt}-inner:not(${Xt}-circle-gradient)`]:{[`${Xt}-circle-path`]:{stroke:wt.colorSuccess}}})}},nt=wt=>{const{componentCls:Xt,iconCls:Pn}=wt;return{[Xt]:{[`${Xt}-circle-trail`]:{stroke:wt.remainingColor},[`&${Xt}-circle ${Xt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Xt}-circle ${Xt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:wt.circleTextColor,fontSize:wt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Pn]:{fontSize:`${wt.fontSize/wt.fontSizeSM}em`}},[`${Xt}-circle&-status-exception`]:{[`${Xt}-text`]:{color:wt.colorError}},[`${Xt}-circle&-status-success`]:{[`${Xt}-text`]:{color:wt.colorSuccess}}},[`${Xt}-inline-circle`]:{lineHeight:1,[`${Xt}-inner`]:{verticalAlign:"bottom"}}}},Oe=wt=>{const{componentCls:Xt}=wt;return{[Xt]:{[`${Xt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:wt.progressStepMinWidth,marginInlineEnd:wt.progressStepMarginInlineEnd,backgroundColor:wt.remainingColor,transition:`all ${wt.motionDurationSlow}`,"&-active":{backgroundColor:wt.defaultColor}}}}}},we=wt=>{const{componentCls:Xt,iconCls:Pn}=wt;return{[Xt]:{[`${Xt}-small&-line, ${Xt}-small&-line ${Xt}-text ${Pn}`]:{fontSize:wt.fontSizeSM}}}};var ye=(0,Ye.Z)("Progress",wt=>{const Xt=wt.marginXXS/2,Pn=(0,Zt.TS)(wt,{progressStepMarginInlineEnd:Xt,progressStepMinWidth:Xt,progressActiveMotionDuration:"2.4s"});return[ft(Pn),nt(Pn),Oe(Pn),we(Pn)]},wt=>({circleTextColor:wt.colorText,defaultColor:wt.colorInfo,remainingColor:wt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ke=function(wt,Xt){var Pn={};for(var In in wt)Object.prototype.hasOwnProperty.call(wt,In)&&Xt.indexOf(In)<0&&(Pn[In]=wt[In]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $n=0,In=Object.getOwnPropertySymbols(wt);$n<In.length;$n++)Xt.indexOf(In[$n])<0&&Object.prototype.propertyIsEnumerable.call(wt,In[$n])&&(Pn[In[$n]]=wt[In[$n]]);return Pn};const Ge=null,Fe=["normal","exception","active","success"];var tn=pe.forwardRef((wt,Xt)=>{const{prefixCls:Pn,className:In,rootClassName:$n,steps:Pi,strokeColor:wn,percent:Ai=0,size:Vi="default",showInfo:ur=!0,type:sr="line",status:Qn,format:Ci,style:er}=wt,ri=ke(wt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),tr=pe.useMemo(()=>{var bt,xn;const hn=Et(wt);return parseInt(hn!==void 0?(bt=hn!=null?hn:0)===null||bt===void 0?void 0:bt.toString():(xn=Ai!=null?Ai:0)===null||xn===void 0?void 0:xn.toString(),10)},[Ai,wt.success,wt.successPercent]),Di=pe.useMemo(()=>!Fe.includes(Qn)&&tr>=100?"success":Qn||"normal",[Qn,tr]),{getPrefixCls:De,direction:Yr,progress:yr}=pe.useContext(vt.E_),Dr=De("progress",Pn),[lo,Wo]=ye(Dr),No=pe.useMemo(()=>{if(!ur)return null;const bt=Et(wt);let xn;const hn=Ci||(ot=>`${ot}%`),Tt=sr==="line";return Ci||Di!=="exception"&&Di!=="success"?xn=hn(je(Ai),je(bt)):Di==="exception"?xn=Tt?pe.createElement(st.Z,null):pe.createElement(We.Z,null):Di==="success"&&(xn=Tt?pe.createElement(Ie.Z,null):pe.createElement(Ve.Z,null)),pe.createElement("span",{className:`${Dr}-text`,title:typeof xn=="string"?xn:void 0},xn)},[ur,Ai,tr,Di,sr,Dr,Ci]),ki=Array.isArray(wn)?wn[0]:wn,an=typeof wn=="string"||Array.isArray(wn)?wn:void 0;let nn;sr==="line"?nn=Pi?pe.createElement(Wt,Object.assign({},wt,{strokeColor:an,prefixCls:Dr,steps:Pi}),No):pe.createElement(ui,Object.assign({},wt,{strokeColor:ki,prefixCls:Dr,direction:Yr}),No):(sr==="circle"||sr==="dashboard")&&(nn=pe.createElement(pn,Object.assign({},wt,{strokeColor:ki,prefixCls:Dr,progressStatus:Di}),No));const Ut=be()(Dr,`${Dr}-status-${Di}`,`${Dr}-${sr==="dashboard"&&"circle"||Pi&&"steps"||sr}`,{[`${Dr}-inline-circle`]:sr==="circle"&&xt(Vi,"circle")[0]<=20,[`${Dr}-show-info`]:ur,[`${Dr}-${Vi}`]:typeof Vi=="string",[`${Dr}-rtl`]:Yr==="rtl"},yr==null?void 0:yr.className,In,$n,Wo);return lo(pe.createElement("div",Object.assign({ref:Xt,style:Object.assign(Object.assign({},yr==null?void 0:yr.style),er),className:Ut,role:"progressbar","aria-valuenow":tr},(0,yt.Z)(ri,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),nn))}),en=tn},39978:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return je}});var pe=he(5891),Ie=he(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},st=Ve,We=he(88853),it=function(ln,Ht){return Ie.createElement(We.Z,(0,pe.Z)({},ln,{ref:Ht,icon:st}))},be=Ie.forwardRef(it),yt=be,vt=he(92310),Je=he.n(vt),tt=he(80962),$e=he(29043),Qe=he(19149),Ee=he(35788),ee=he(85108),te=he(36994);function ue(Et,ln){var Ht=Et.disabled,xt=Et.prefixCls,Bt=Et.character,rn=Et.characterRender,Hn=Et.index,pn=Et.count,_n=Et.value,Lt=Et.allowHalf,Un=Et.focused,Gn=Et.onHover,ui=Et.onClick,Ln=function(nt){Gn(nt,Hn)},Wt=function(nt){ui(nt,Hn)},Vt=function(nt){nt.keyCode===ee.Z.ENTER&&ui(nt,Hn)},mt=Hn+1,Ye=new Set([xt]);_n===0&&Hn===0&&Un?Ye.add("".concat(xt,"-focused")):Lt&&_n+.5>=mt&&_n<mt?(Ye.add("".concat(xt,"-half")),Ye.add("".concat(xt,"-active")),Un&&Ye.add("".concat(xt,"-focused"))):(mt<=_n?Ye.add("".concat(xt,"-full")):Ye.add("".concat(xt,"-zero")),mt===_n&&Un&&Ye.add("".concat(xt,"-focused")));var Zt=typeof Bt=="function"?Bt(Et):Bt,Gt=Ie.createElement("li",{className:Je()(Array.from(Ye)),ref:ln},Ie.createElement("div",{onClick:Ht?null:Wt,onKeyDown:Ht?null:Vt,onMouseMove:Ht?null:Ln,role:"radio","aria-checked":_n>Hn?"true":"false","aria-posinset":Hn+1,"aria-setsize":pn,tabIndex:Ht?-1:0},Ie.createElement("div",{className:"".concat(xt,"-first")},Zt),Ie.createElement("div",{className:"".concat(xt,"-second")},Zt)));return rn&&(Gt=rn(Gt,Et)),Gt}var ae=Ie.forwardRef(ue);function de(){var Et=Ie.useRef({});function ln(xt){return Et.current[xt]}function Ht(xt){return function(Bt){Et.current[xt]=Bt}}return[ln,Ht]}function ve(Et){var ln=Et.pageXOffset,Ht="scrollLeft";if(typeof ln!="number"){var xt=Et.document;ln=xt.documentElement[Ht],typeof ln!="number"&&(ln=xt.body[Ht])}return ln}function Pe(Et){var ln,Ht,xt=Et.ownerDocument,Bt=xt.body,rn=xt&&xt.documentElement,Hn=Et.getBoundingClientRect();return ln=Hn.left,Ht=Hn.top,ln-=rn.clientLeft||Bt.clientLeft||0,Ht-=rn.clientTop||Bt.clientTop||0,{left:ln,top:Ht}}function Ae(Et){var ln=Pe(Et),Ht=Et.ownerDocument,xt=Ht.defaultView||Ht.parentWindow;return ln.left+=ve(xt),ln.left}var xe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Le(Et,ln){var Ht,xt=Et.prefixCls,Bt=xt===void 0?"rc-rate":xt,rn=Et.className,Hn=Et.defaultValue,pn=Et.value,_n=Et.count,Lt=_n===void 0?5:_n,Un=Et.allowHalf,Gn=Un===void 0?!1:Un,ui=Et.allowClear,Ln=ui===void 0?!0:ui,Wt=Et.character,Vt=Wt===void 0?"\u2605":Wt,mt=Et.characterRender,Ye=Et.disabled,Zt=Et.direction,Gt=Zt===void 0?"ltr":Zt,ft=Et.tabIndex,nt=ft===void 0?0:ft,Oe=Et.autoFocus,we=Et.onHoverChange,ye=Et.onChange,ke=Et.onFocus,Ge=Et.onBlur,Fe=Et.onKeyDown,pt=Et.onMouseLeave,tn=(0,Qe.Z)(Et,xe),en=de(),wt=(0,$e.Z)(en,2),Xt=wt[0],Pn=wt[1],In=Ie.useRef(null),$n=function(){if(!Ye){var ot;(ot=In.current)===null||ot===void 0||ot.focus()}};Ie.useImperativeHandle(ln,function(){return{focus:$n,blur:function(){if(!Ye){var ot;(ot=In.current)===null||ot===void 0||ot.blur()}}}});var Pi=(0,Ee.Z)(Hn||0,{value:pn}),wn=(0,$e.Z)(Pi,2),Ai=wn[0],Vi=wn[1],ur=(0,Ee.Z)(null),sr=(0,$e.Z)(ur,2),Qn=sr[0],Ci=sr[1],er=function(ot,fn){var yn=Gt==="rtl",li=ot+1;if(Gn){var vn=Xt(ot),at=Ae(vn),Bn=vn.clientWidth;(yn&&fn-at>Bn/2||!yn&&fn-at<Bn/2)&&(li-=.5)}return li},ri=function(ot){Vi(ot),ye==null||ye(ot)},tr=Ie.useState(!1),Di=(0,$e.Z)(tr,2),De=Di[0],Yr=Di[1],yr=function(){Yr(!0),ke==null||ke()},Dr=function(){Yr(!1),Ge==null||Ge()},lo=Ie.useState(null),Wo=(0,$e.Z)(lo,2),No=Wo[0],ki=Wo[1],an=function(ot,fn){var yn=er(fn,ot.pageX);yn!==Qn&&(ki(yn),Ci(null)),we==null||we(yn)},nn=function(ot){Ye||(ki(null),Ci(null),we==null||we(void 0)),ot&&(pt==null||pt(ot))},Ut=function(ot,fn){var yn=er(fn,ot.pageX),li=!1;Ln&&(li=yn===Ai),nn(),ri(li?0:yn),Ci(li?yn:null)},bt=function(ot){var fn=ot.keyCode,yn=Gt==="rtl",li=Ai;fn===ee.Z.RIGHT&&li<Lt&&!yn?(Gn?li+=.5:li+=1,ri(li),ot.preventDefault()):fn===ee.Z.LEFT&&li>0&&!yn||fn===ee.Z.RIGHT&&li>0&&yn?(Gn?li-=.5:li-=1,ri(li),ot.preventDefault()):fn===ee.Z.LEFT&&li<Lt&&yn&&(Gn?li+=.5:li+=1,ri(li),ot.preventDefault()),Fe==null||Fe(ot)};Ie.useEffect(function(){Oe&&!Ye&&$n()},[]);var xn=new Array(Lt).fill(0).map(function(Tt,ot){return Ie.createElement(ae,{ref:Pn(ot),index:ot,count:Lt,disabled:Ye,prefixCls:"".concat(Bt,"-star"),allowHalf:Gn,value:No===null?Ai:No,onClick:Ut,onHover:an,key:Tt||ot,character:Vt,characterRender:mt,focused:De})}),hn=Je()(Bt,rn,(Ht={},(0,tt.Z)(Ht,"".concat(Bt,"-disabled"),Ye),(0,tt.Z)(Ht,"".concat(Bt,"-rtl"),Gt==="rtl"),Ht));return Ie.createElement("ul",(0,pe.Z)({className:hn,onMouseLeave:nn,tabIndex:Ye?-1:nt,onFocus:Ye?null:yr,onBlur:Ye?null:Dr,onKeyDown:Ye?null:bt,ref:In,role:"radiogroup"},(0,te.Z)(tn,{aria:!0,data:!0,attr:!0})),xn)}var Te=Ie.forwardRef(Le),He=Te,ze=he(36355),Ke=he(6848),Ze=he(17313),Mt=he(83116),Xe=he(37613);const Ft=Et=>{const{componentCls:ln}=Et;return{[`${ln}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Et.marginXS},"> div":{transition:`all ${Et.motionDurationMid}, outline 0s`,"&:hover":{transform:Et.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Et.lineWidth}px dashed ${Et.starColor}`,transform:Et.starHoverScale}},"&-first, &-second":{color:Et.starBg,transition:`all ${Et.motionDurationMid}`,userSelect:"none",[Et.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ln}-star-first, &-half ${ln}-star-second`]:{opacity:1},[`&-half ${ln}-star-first, &-full ${ln}-star-second`]:{color:"inherit"}}}},Ct=Et=>({[`&-rtl${Et.componentCls}`]:{direction:"rtl"}}),Nt=Et=>{const{componentCls:ln}=Et;return{[ln]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ze.Wf)(Et)),{display:"inline-block",margin:0,padding:0,color:Et.starColor,fontSize:Et.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${ln} ${ln}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ft(Et)),{[`+ ${ln}-text`]:{display:"inline-block",marginInlineStart:Et.marginXS,fontSize:Et.fontSize}}),Ct(Et))}};var It=(0,Mt.Z)("Rate",Et=>{const ln=(0,Xe.TS)(Et,{});return[Nt(ln)]},Et=>({starColor:Et.yellow6,starSize:Et.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Et.colorFillContent})),_t=function(Et,ln){var Ht={};for(var xt in Et)Object.prototype.hasOwnProperty.call(Et,xt)&&ln.indexOf(xt)<0&&(Ht[xt]=Et[xt]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,xt=Object.getOwnPropertySymbols(Et);Bt<xt.length;Bt++)ln.indexOf(xt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Et,xt[Bt])&&(Ht[xt[Bt]]=Et[xt[Bt]]);return Ht},je=Ie.forwardRef((Et,ln)=>{const{prefixCls:Ht,className:xt,rootClassName:Bt,style:rn,tooltips:Hn,character:pn=Ie.createElement(yt,null)}=Et,_n=_t(Et,["prefixCls","className","rootClassName","style","tooltips","character"]),Lt=(Ye,Zt)=>{let{index:Gt}=Zt;return Hn?Ie.createElement(Ke.Z,{title:Hn[Gt]},Ye):Ye},{getPrefixCls:Un,direction:Gn,rate:ui}=Ie.useContext(ze.E_),Ln=Un("rate",Ht),[Wt,Vt]=It(Ln),mt=Object.assign(Object.assign({},ui==null?void 0:ui.style),rn);return Wt(Ie.createElement(He,Object.assign({ref:ln,character:pn,characterRender:Lt},_n,{className:Je()(xt,Bt,Vt,ui==null?void 0:ui.className),style:mt,prefixCls:Ln,direction:Gn})))})},57809:function(gn,zt,he){"use strict";var pe=he(92310),Ie=he.n(pe),Ve=he(77861),st=he(64002),We=he(59301),it=he(53487),be=he(62892),yt=he(19080),vt=he(36355),Je=he(1684),tt=he(93891),$e=he(19716),Qe=he(32441),Ee=he(33234),ee=he(14154),te=he(58582),ue=he(84443),ae=he(66339),de=function(Le,Te){var He={};for(var ze in Le)Object.prototype.hasOwnProperty.call(Le,ze)&&Te.indexOf(ze)<0&&(He[ze]=Le[ze]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,ze=Object.getOwnPropertySymbols(Le);Ke<ze.length;Ke++)Te.indexOf(ze[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,ze[Ke])&&(He[ze[Ke]]=Le[ze[Ke]]);return He};const ve="SECRET_COMBOBOX_MODE_DO_NOT_USE",Pe=(Le,Te)=>{var He,{prefixCls:ze,bordered:Ke=!0,className:Ze,rootClassName:Mt,getPopupContainer:Xe,popupClassName:Ft,dropdownClassName:Ct,listHeight:Nt=256,placement:It,listItemHeight:_t=24,size:lt,disabled:je,notFoundContent:Et,status:ln,builtinPlacements:Ht,dropdownMatchSelectWidth:xt,popupMatchSelectWidth:Bt,direction:rn,style:Hn,allowClear:pn}=Le,_n=de(Le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Lt,getPrefixCls:Un,renderEmpty:Gn,direction:ui,virtual:Ln,popupMatchSelectWidth:Wt,popupOverflow:Vt,select:mt}=We.useContext(vt.E_),Ye=Un("select",ze),Zt=Un(),Gt=rn!=null?rn:ui,{compactSize:ft,compactItemClassnames:nt}=(0,Ee.ri)(Ye,Gt),[Oe,we]=(0,ee.Z)(Ye),ye=We.useMemo(()=>{const{mode:Di}=_n;if(Di!=="combobox")return Di===ve?"combobox":Di},[_n.mode]),ke=ye==="multiple"||ye==="tags",Ge=(0,ue.Z)(_n.suffixIcon,_n.showArrow),Fe=(He=Bt!=null?Bt:xt)!==null&&He!==void 0?He:Wt,{status:pt,hasFeedback:tn,isFormItemInput:en,feedbackIcon:wt}=We.useContext(Qe.aM),Xt=(0,yt.F)(pt,ln);let Pn;Et!==void 0?Pn=Et:ye==="combobox"?Pn=null:Pn=(Gn==null?void 0:Gn("Select"))||We.createElement(tt.Z,{componentName:"Select"});const{suffixIcon:In,itemIcon:$n,removeIcon:Pi,clearIcon:wn}=(0,ae.Z)(Object.assign(Object.assign({},_n),{multiple:ke,hasFeedback:tn,feedbackIcon:wt,showSuffixIcon:Ge,prefixCls:Ye,showArrow:_n.showArrow,componentName:"Select"})),Ai=pn===!0?{clearIcon:wn}:pn,Vi=(0,st.Z)(_n,["suffixIcon","itemIcon"]),ur=Ie()(Ft||Ct,{[`${Ye}-dropdown-${Gt}`]:Gt==="rtl"},Mt,we),sr=(0,$e.Z)(Di=>{var De;return(De=lt!=null?lt:ft)!==null&&De!==void 0?De:Di}),Qn=We.useContext(Je.Z),Ci=je!=null?je:Qn,er=Ie()({[`${Ye}-lg`]:sr==="large",[`${Ye}-sm`]:sr==="small",[`${Ye}-rtl`]:Gt==="rtl",[`${Ye}-borderless`]:!Ke,[`${Ye}-in-form-item`]:en},(0,yt.Z)(Ye,Xt,tn),nt,mt==null?void 0:mt.className,Ze,Mt,we),ri=We.useMemo(()=>It!==void 0?It:Gt==="rtl"?"bottomRight":"bottomLeft",[It,Gt]),tr=(0,te.Z)(Ht,Vt);return Oe(We.createElement(Ve.ZP,Object.assign({ref:Te,virtual:Ln,showSearch:mt==null?void 0:mt.showSearch},Vi,{style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Hn),dropdownMatchSelectWidth:Fe,builtinPlacements:tr,transitionName:(0,be.m)(Zt,"slide-up",_n.transitionName),listHeight:Nt,listItemHeight:_t,mode:ye,prefixCls:Ye,placement:ri,direction:Gt,suffixIcon:In,menuItemSelectedIcon:$n,removeIcon:Pi,allowClear:Ai,notFoundContent:Pn,className:er,getPopupContainer:Xe||Lt,dropdownClassName:ur,disabled:Ci})))},Ae=We.forwardRef(Pe),xe=(0,it.Z)(Ae);Ae.SECRET_COMBOBOX_MODE_DO_NOT_USE=ve,Ae.Option=Ve.Wx,Ae.OptGroup=Ve.Xo,Ae._InternalPanelDoNotUseOrYouWillBeFired=xe,zt.default=Ae},14154:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Ae}});var pe=he(17313),Ie=he(74207),Ve=he(37613),st=he(83116),We=he(13826),it=he(92899);const be=xe=>{const{optionHeight:Le,optionFontSize:Te,optionLineHeight:He,optionPadding:ze}=xe;return{position:"relative",display:"block",minHeight:Le,padding:ze,color:xe.colorText,fontWeight:"normal",fontSize:Te,lineHeight:He,boxSizing:"border-box"}};var vt=xe=>{const{antCls:Le,componentCls:Te}=xe,He=`${Te}-item`,ze=`&${Le}-slide-up-enter${Le}-slide-up-enter-active`,Ke=`&${Le}-slide-up-appear${Le}-slide-up-appear-active`,Ze=`&${Le}-slide-up-leave${Le}-slide-up-leave-active`,Mt=`${Te}-dropdown-placement-`;return[{[`${Te}-dropdown`]:Object.assign(Object.assign({},(0,pe.Wf)(xe)),{position:"absolute",top:-9999,zIndex:xe.zIndexPopup,boxSizing:"border-box",padding:xe.paddingXXS,overflow:"hidden",fontSize:xe.fontSize,fontVariant:"initial",backgroundColor:xe.colorBgElevated,borderRadius:xe.borderRadiusLG,outline:"none",boxShadow:xe.boxShadowSecondary,[`
|
|
|
${ze}${Mt}bottomLeft,
|
|
|
${Ke}${Mt}bottomLeft
|
|
|
`]:{animationName:We.fJ},[`
|
|
|
${ze}${Mt}topLeft,
|
|
|
${Ke}${Mt}topLeft,
|
|
|
${ze}${Mt}topRight,
|
|
|
${Ke}${Mt}topRight
|
|
|
`]:{animationName:We.Qt},[`${Ze}${Mt}bottomLeft`]:{animationName:We.Uw},[`
|
|
|
${Ze}${Mt}topLeft,
|
|
|
${Ze}${Mt}topRight
|
|
|
`]:{animationName:We.ly},"&-hidden":{display:"none"},[`${He}`]:Object.assign(Object.assign({},be(xe)),{cursor:"pointer",transition:`background ${xe.motionDurationSlow} ease`,borderRadius:xe.borderRadiusSM,"&-group":{color:xe.colorTextDescription,fontSize:xe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},pe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${He}-option-disabled)`]:{backgroundColor:xe.optionActiveBg},[`&-selected:not(${He}-option-disabled)`]:{color:xe.optionSelectedColor,fontWeight:xe.optionSelectedFontWeight,backgroundColor:xe.optionSelectedBg,[`${He}-option-state`]:{color:xe.colorPrimary}},"&-disabled":{[`&${He}-option-selected`]:{backgroundColor:xe.colorBgContainerDisabled},color:xe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:xe.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,We.oN)(xe,"slide-up"),(0,We.oN)(xe,"slide-down"),(0,it.Fm)(xe,"move-up"),(0,it.Fm)(xe,"move-down")]};const Je=2,tt=xe=>{let{controlHeightSM:Le,controlHeight:Te,lineWidth:He}=xe;const ze=(Te-Le)/2-He,Ke=Math.ceil(ze/2);return[ze,Ke]};function $e(xe,Le){const{componentCls:Te,iconCls:He}=xe,ze=`${Te}-selection-overflow`,Ke=xe.multipleSelectItemHeight,[Ze]=tt(xe),Mt=Le?`${Te}-${Le}`:"";return{[`${Te}-multiple${Mt}`]:{fontSize:xe.fontSize,[ze]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Te}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ze-Je}px ${Je*2}px`,borderRadius:xe.borderRadius,[`${Te}-show-search&`]:{cursor:"text"},[`${Te}-disabled&`]:{background:xe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Je}px 0`,lineHeight:`${Ke}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Te}-show-arrow ${Te}-selector,
|
|
|
&${Te}-allow-clear ${Te}-selector
|
|
|
`]:{paddingInlineEnd:xe.fontSizeIcon+xe.controlPaddingHorizontal},[`${Te}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ke,marginTop:Je,marginBottom:Je,lineHeight:`${Ke-xe.lineWidth*2}px`,background:xe.multipleItemBg,border:`${xe.lineWidth}px ${xe.lineType} ${xe.multipleItemBorderColor}`,borderRadius:xe.borderRadiusSM,cursor:"default",transition:`font-size ${xe.motionDurationSlow}, line-height ${xe.motionDurationSlow}, height ${xe.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Je*2,paddingInlineStart:xe.paddingXS,paddingInlineEnd:xe.paddingXS/2,[`${Te}-disabled&`]:{color:xe.multipleItemColorDisabled,borderColor:xe.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:xe.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,pe.Ro)()),{display:"inline-flex",alignItems:"center",color:xe.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${He}`]:{verticalAlign:"-0.2em"},"&:hover":{color:xe.colorIconHover}})},[`${ze}-item + ${ze}-item`]:{[`${Te}-selection-search`]:{marginInlineStart:0}},[`${Te}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:xe.inputPaddingHorizontalBase-Ze,"\n &-input,\n &-mirror\n ":{height:Ke,fontFamily:xe.fontFamily,lineHeight:`${Ke}px`,transition:`all ${xe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Te}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:xe.inputPaddingHorizontalBase,insetInlineEnd:xe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${xe.motionDurationSlow}`}}}}var Ee=xe=>{const{componentCls:Le}=xe,Te=(0,Ve.TS)(xe,{controlHeight:xe.controlHeightSM,multipleSelectItemHeight:xe.controlHeightXS,borderRadius:xe.borderRadiusSM,borderRadiusSM:xe.borderRadiusXS}),He=(0,Ve.TS)(xe,{fontSize:xe.fontSizeLG,controlHeight:xe.controlHeightLG,multipleSelectItemHeight:xe.multipleItemHeightLG,borderRadius:xe.borderRadiusLG,borderRadiusSM:xe.borderRadius}),[,ze]=tt(xe);return[$e(xe),$e(Te,"sm"),{[`${Le}-multiple${Le}-sm`]:{[`${Le}-selection-placeholder`]:{insetInline:xe.controlPaddingHorizontalSM-xe.lineWidth},[`${Le}-selection-search`]:{marginInlineStart:ze}}},$e(He,"lg")]};function ee(xe,Le){const{componentCls:Te,inputPaddingHorizontalBase:He,borderRadius:ze}=xe,Ke=xe.controlHeight-xe.lineWidth*2,Ze=Math.ceil(xe.fontSize*1.25),Mt=Le?`${Te}-${Le}`:"";return{[`${Te}-single${Mt}`]:{fontSize:xe.fontSize,[`${Te}-selector`]:Object.assign(Object.assign({},(0,pe.Wf)(xe)),{display:"flex",borderRadius:ze,[`${Te}-selection-search`]:{position:"absolute",top:0,insetInlineStart:He,insetInlineEnd:He,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Te}-selection-item,
|
|
|
${Te}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Ke}px`,transition:`all ${xe.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ke}px`}},[`${Te}-selection-item`]:{position:"relative",userSelect:"none"},[`${Te}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Te}-selection-item:after`,`${Te}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Te}-show-arrow ${Te}-selection-item,
|
|
|
&${Te}-show-arrow ${Te}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ze},[`&${Te}-open ${Te}-selection-item`]:{color:xe.colorTextPlaceholder},[`&:not(${Te}-customize-input)`]:{[`${Te}-selector`]:{width:"100%",height:xe.controlHeight,padding:`0 ${He}px`,[`${Te}-selection-search-input`]:{height:Ke},"&:after":{lineHeight:`${Ke}px`}}},[`&${Te}-customize-input`]:{[`${Te}-selector`]:{"&:after":{display:"none"},[`${Te}-selection-search`]:{position:"static",width:"100%"},[`${Te}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${He}px`,"&:after":{display:"none"}}}}}}}function te(xe){const{componentCls:Le}=xe,Te=xe.controlPaddingHorizontalSM-xe.lineWidth;return[ee(xe),ee((0,Ve.TS)(xe,{controlHeight:xe.controlHeightSM,borderRadius:xe.borderRadiusSM}),"sm"),{[`${Le}-single${Le}-sm`]:{[`&:not(${Le}-customize-input)`]:{[`${Le}-selection-search`]:{insetInlineStart:Te,insetInlineEnd:Te},[`${Le}-selector`]:{padding:`0 ${Te}px`},[`&${Le}-show-arrow ${Le}-selection-search`]:{insetInlineEnd:Te+xe.fontSize*1.5},[`
|
|
|
&${Le}-show-arrow ${Le}-selection-item,
|
|
|
&${Le}-show-arrow ${Le}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:xe.fontSize*1.5}}}},ee((0,Ve.TS)(xe,{controlHeight:xe.singleItemHeightLG,fontSize:xe.fontSizeLG,borderRadius:xe.borderRadiusLG}),"lg")]}const ue=xe=>{const{componentCls:Le,selectorBg:Te}=xe;return{position:"relative",backgroundColor:Te,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,transition:`all ${xe.motionDurationMid} ${xe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Le}-disabled&`]:{color:xe.colorTextDisabled,background:xe.colorBgContainerDisabled,cursor:"not-allowed",[`${Le}-multiple&`]:{background:xe.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},ae=function(xe,Le){let Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:He,borderHoverColor:ze,outlineColor:Ke,antCls:Ze}=Le,Mt=Te?{[`${He}-selector`]:{borderColor:ze}}:{};return{[xe]:{[`&:not(${He}-disabled):not(${He}-customize-input):not(${Ze}-pagination-size-changer)`]:Object.assign(Object.assign({},Mt),{[`${He}-focused& ${He}-selector`]:{borderColor:ze,boxShadow:`0 0 0 ${Le.controlOutlineWidth}px ${Ke}`,outline:0},[`&:hover ${He}-selector`]:{borderColor:ze}})}}},de=xe=>{const{componentCls:Le}=xe;return{[`${Le}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ve=xe=>{const{componentCls:Le,inputPaddingHorizontalBase:Te,iconCls:He}=xe;return{[Le]:Object.assign(Object.assign({},(0,pe.Wf)(xe)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Le}-customize-input) ${Le}-selector`]:Object.assign(Object.assign({},ue(xe)),de(xe)),[`${Le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},pe.vS),[`${Le}-selection-placeholder`]:Object.assign(Object.assign({},pe.vS),{flex:1,color:xe.colorTextPlaceholder,pointerEvents:"none"}),[`${Le}-arrow`]:Object.assign(Object.assign({},(0,pe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,height:xe.fontSizeIcon,marginTop:-xe.fontSizeIcon/2,color:xe.colorTextQuaternary,fontSize:xe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[He]:{verticalAlign:"top",transition:`transform ${xe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Le}-suffix)`]:{pointerEvents:"auto"}},[`${Le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,zIndex:1,display:"inline-block",width:xe.fontSizeIcon,height:xe.fontSizeIcon,marginTop:-xe.fontSizeIcon/2,color:xe.colorTextQuaternary,fontSize:xe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:xe.clearBg,cursor:"pointer",opacity:0,transition:`color ${xe.motionDurationMid} ease, opacity ${xe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:xe.colorTextTertiary}},"&:hover":{[`${Le}-clear`]:{opacity:1}}}),[`${Le}-has-feedback`]:{[`${Le}-clear`]:{insetInlineEnd:Te+xe.fontSize+xe.paddingXS}}}},Pe=xe=>{const{componentCls:Le}=xe;return[{[Le]:{[`&-borderless ${Le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Le}-in-form-item`]:{width:"100%"}}},ve(xe),te(xe),Ee(xe),vt(xe),{[`${Le}-rtl`]:{direction:"rtl"}},ae(Le,(0,Ve.TS)(xe,{borderHoverColor:xe.colorPrimaryHover,outlineColor:xe.controlOutline})),ae(`${Le}-status-error`,(0,Ve.TS)(xe,{borderHoverColor:xe.colorErrorHover,outlineColor:xe.colorErrorOutline}),!0),ae(`${Le}-status-warning`,(0,Ve.TS)(xe,{borderHoverColor:xe.colorWarningHover,outlineColor:xe.colorWarningOutline}),!0),(0,Ie.c)(xe,{borderElCls:`${Le}-selector`,focusElCls:`${Le}-focused`})]};var Ae=(0,st.Z)("Select",(xe,Le)=>{let{rootPrefixCls:Te}=Le;const He=(0,Ve.TS)(xe,{rootPrefixCls:Te,inputPaddingHorizontalBase:xe.paddingSM-1,multipleSelectItemHeight:xe.multipleItemHeight});return[Pe(He)]},xe=>{const{fontSize:Le,lineHeight:Te,controlHeight:He,controlPaddingHorizontal:ze,zIndexPopupBase:Ke,colorText:Ze,fontWeightStrong:Mt,controlItemBgActive:Xe,controlItemBgHover:Ft,colorBgContainer:Ct,colorFillSecondary:Nt,controlHeightLG:It,controlHeightSM:_t,colorBgContainerDisabled:lt,colorTextDisabled:je}=xe;return{zIndexPopup:Ke+50,optionSelectedColor:Ze,optionSelectedFontWeight:Mt,optionSelectedBg:Xe,optionActiveBg:Ft,optionPadding:`${(He-Le*Te)/2}px ${ze}px`,optionFontSize:Le,optionLineHeight:Te,optionHeight:He,selectorBg:Ct,clearBg:Ct,singleItemHeightLG:It,multipleItemBg:Nt,multipleItemBorderColor:"transparent",multipleItemHeight:_t,multipleItemHeightLG:He,multipleSelectorBgDisabled:lt,multipleItemColorDisabled:je,multipleItemBorderColorDisabled:"transparent"}})},58582:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Ie}});const pe=Ve=>{const We={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ve==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},We),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},We),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},We),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},We),{points:["br","tr"],offset:[0,-4]})}};function Ie(Ve,st){return Ve||pe(st)}},84443:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return pe}});function pe(Ie,Ve){return Ve!==void 0?Ve:Ie!==null}},66339:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});var pe=he(10402),Ie=he(33130),Ve=he(72119),st=he(18290),We=he(50023),it=he(21970),be=he(59301);function yt(vt){let{suffixIcon:Je,clearIcon:tt,menuItemSelectedIcon:$e,removeIcon:Qe,loading:Ee,multiple:ee,hasFeedback:te,prefixCls:ue,showSuffixIcon:ae,feedbackIcon:de,showArrow:ve,componentName:Pe}=vt;const Ae=tt!=null?tt:be.createElement(Ie.Z,null),xe=ze=>Je===null&&!te&&!ve?null:be.createElement(be.Fragment,null,ae!==!1&&ze,te&&de);let Le=null;if(Je!==void 0)Le=xe(Je);else if(Ee)Le=xe(be.createElement(We.Z,{spin:!0}));else{const ze=`${ue}-suffix`;Le=Ke=>{let{open:Ze,showSearch:Mt}=Ke;return xe(Ze&&Mt?be.createElement(it.Z,{className:ze}):be.createElement(st.Z,{className:ze}))}}let Te=null;$e!==void 0?Te=$e:ee?Te=be.createElement(pe.Z,null):Te=null;let He=null;return Qe!==void 0?He=Qe:He=be.createElement(Ve.Z,null),{clearIcon:Ae,suffixIcon:Le,itemIcon:Te,removeIcon:He}}},78485:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Vt}});var pe=he(92310),Ie=he.n(pe),Ve=he(59301),st=he(36355),We=he(64002),be=mt=>{const{prefixCls:Ye,className:Zt,style:Gt,size:ft,shape:nt}=mt,Oe=Ie()({[`${Ye}-lg`]:ft==="large",[`${Ye}-sm`]:ft==="small"}),we=Ie()({[`${Ye}-circle`]:nt==="circle",[`${Ye}-square`]:nt==="square",[`${Ye}-round`]:nt==="round"}),ye=Ve.useMemo(()=>typeof ft=="number"?{width:ft,height:ft,lineHeight:`${ft}px`}:{},[ft]);return Ve.createElement("span",{className:Ie()(Ye,Oe,we,Zt),style:Object.assign(Object.assign({},ye),Gt)})},yt=he(9792),vt=he(83116),Je=he(37613);const tt=new yt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),$e=mt=>({height:mt,lineHeight:`${mt}px`}),Qe=mt=>Object.assign({width:mt},$e(mt)),Ee=mt=>({background:mt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:tt,animationDuration:mt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ee=mt=>Object.assign({width:mt*5,minWidth:mt*5},$e(mt)),te=mt=>{const{skeletonAvatarCls:Ye,gradientFromColor:Zt,controlHeight:Gt,controlHeightLG:ft,controlHeightSM:nt}=mt;return{[`${Ye}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Zt},Qe(Gt)),[`${Ye}${Ye}-circle`]:{borderRadius:"50%"},[`${Ye}${Ye}-lg`]:Object.assign({},Qe(ft)),[`${Ye}${Ye}-sm`]:Object.assign({},Qe(nt))}},ue=mt=>{const{controlHeight:Ye,borderRadiusSM:Zt,skeletonInputCls:Gt,controlHeightLG:ft,controlHeightSM:nt,gradientFromColor:Oe}=mt;return{[`${Gt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Oe,borderRadius:Zt},ee(Ye)),[`${Gt}-lg`]:Object.assign({},ee(ft)),[`${Gt}-sm`]:Object.assign({},ee(nt))}},ae=mt=>Object.assign({width:mt},$e(mt)),de=mt=>{const{skeletonImageCls:Ye,imageSizeBase:Zt,gradientFromColor:Gt,borderRadiusSM:ft}=mt;return{[`${Ye}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Gt,borderRadius:ft},ae(Zt*2)),{[`${Ye}-path`]:{fill:"#bfbfbf"},[`${Ye}-svg`]:Object.assign(Object.assign({},ae(Zt)),{maxWidth:Zt*4,maxHeight:Zt*4}),[`${Ye}-svg${Ye}-svg-circle`]:{borderRadius:"50%"}}),[`${Ye}${Ye}-circle`]:{borderRadius:"50%"}}},ve=(mt,Ye,Zt)=>{const{skeletonButtonCls:Gt}=mt;return{[`${Zt}${Gt}-circle`]:{width:Ye,minWidth:Ye,borderRadius:"50%"},[`${Zt}${Gt}-round`]:{borderRadius:Ye}}},Pe=mt=>Object.assign({width:mt*2,minWidth:mt*2},$e(mt)),Ae=mt=>{const{borderRadiusSM:Ye,skeletonButtonCls:Zt,controlHeight:Gt,controlHeightLG:ft,controlHeightSM:nt,gradientFromColor:Oe}=mt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Zt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Oe,borderRadius:Ye,width:Gt*2,minWidth:Gt*2},Pe(Gt))},ve(mt,Gt,Zt)),{[`${Zt}-lg`]:Object.assign({},Pe(ft))}),ve(mt,ft,`${Zt}-lg`)),{[`${Zt}-sm`]:Object.assign({},Pe(nt))}),ve(mt,nt,`${Zt}-sm`))},xe=mt=>{const{componentCls:Ye,skeletonAvatarCls:Zt,skeletonTitleCls:Gt,skeletonParagraphCls:ft,skeletonButtonCls:nt,skeletonInputCls:Oe,skeletonImageCls:we,controlHeight:ye,controlHeightLG:ke,controlHeightSM:Ge,gradientFromColor:Fe,padding:pt,marginSM:tn,borderRadius:en,titleHeight:wt,blockRadius:Xt,paragraphLiHeight:Pn,controlHeightXS:In,paragraphMarginTop:$n}=mt;return{[`${Ye}`]:{display:"table",width:"100%",[`${Ye}-header`]:{display:"table-cell",paddingInlineEnd:pt,verticalAlign:"top",[`${Zt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Fe},Qe(ye)),[`${Zt}-circle`]:{borderRadius:"50%"},[`${Zt}-lg`]:Object.assign({},Qe(ke)),[`${Zt}-sm`]:Object.assign({},Qe(Ge))},[`${Ye}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Gt}`]:{width:"100%",height:wt,background:Fe,borderRadius:Xt,[`+ ${ft}`]:{marginBlockStart:Ge}},[`${ft}`]:{padding:0,"> li":{width:"100%",height:Pn,listStyle:"none",background:Fe,borderRadius:Xt,"+ li":{marginBlockStart:In}}},[`${ft}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ye}-content`]:{[`${Gt}, ${ft} > li`]:{borderRadius:en}}},[`${Ye}-with-avatar ${Ye}-content`]:{[`${Gt}`]:{marginBlockStart:tn,[`+ ${ft}`]:{marginBlockStart:$n}}},[`${Ye}${Ye}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ae(mt)),te(mt)),ue(mt)),de(mt)),[`${Ye}${Ye}-block`]:{width:"100%",[`${nt}`]:{width:"100%"},[`${Oe}`]:{width:"100%"}},[`${Ye}${Ye}-active`]:{[`
|
|
|
${Gt},
|
|
|
${ft} > li,
|
|
|
${Zt},
|
|
|
${nt},
|
|
|
${Oe},
|
|
|
${we}
|
|
|
`]:Object.assign({},Ee(mt))}}};var Le=(0,vt.Z)("Skeleton",mt=>{const{componentCls:Ye}=mt,Zt=(0,Je.TS)(mt,{skeletonAvatarCls:`${Ye}-avatar`,skeletonTitleCls:`${Ye}-title`,skeletonParagraphCls:`${Ye}-paragraph`,skeletonButtonCls:`${Ye}-button`,skeletonInputCls:`${Ye}-input`,skeletonImageCls:`${Ye}-image`,imageSizeBase:mt.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${mt.gradientFromColor} 25%, ${mt.gradientToColor} 37%, ${mt.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[xe(Zt)]},mt=>{const{colorFillContent:Ye,colorFill:Zt}=mt,Gt=Ye,ft=Zt;return{color:Gt,colorGradientEnd:ft,gradientFromColor:Gt,gradientToColor:ft,titleHeight:mt.controlHeight/2,blockRadius:mt.borderRadiusSM,paragraphMarginTop:mt.marginLG+mt.marginXXS,paragraphLiHeight:mt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),He=mt=>{const{prefixCls:Ye,className:Zt,rootClassName:Gt,active:ft,shape:nt="circle",size:Oe="default"}=mt,{getPrefixCls:we}=Ve.useContext(st.E_),ye=we("skeleton",Ye),[ke,Ge]=Le(ye),Fe=(0,We.Z)(mt,["prefixCls","className"]),pt=Ie()(ye,`${ye}-element`,{[`${ye}-active`]:ft},Zt,Gt,Ge);return ke(Ve.createElement("div",{className:pt},Ve.createElement(be,Object.assign({prefixCls:`${ye}-avatar`,shape:nt,size:Oe},Fe))))},Ke=mt=>{const{prefixCls:Ye,className:Zt,rootClassName:Gt,active:ft,block:nt=!1,size:Oe="default"}=mt,{getPrefixCls:we}=Ve.useContext(st.E_),ye=we("skeleton",Ye),[ke,Ge]=Le(ye),Fe=(0,We.Z)(mt,["prefixCls"]),pt=Ie()(ye,`${ye}-element`,{[`${ye}-active`]:ft,[`${ye}-block`]:nt},Zt,Gt,Ge);return ke(Ve.createElement("div",{className:pt},Ve.createElement(be,Object.assign({prefixCls:`${ye}-button`,size:Oe},Fe))))};const Ze="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Xe=mt=>{const{prefixCls:Ye,className:Zt,rootClassName:Gt,style:ft,active:nt}=mt,{getPrefixCls:Oe}=Ve.useContext(st.E_),we=Oe("skeleton",Ye),[ye,ke]=Le(we),Ge=Ie()(we,`${we}-element`,{[`${we}-active`]:nt},Zt,Gt,ke);return ye(Ve.createElement("div",{className:Ge},Ve.createElement("div",{className:Ie()(`${we}-image`,Zt),style:ft},Ve.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${we}-image-svg`},Ve.createElement("path",{d:Ze,className:`${we}-image-path`})))))},Ct=mt=>{const{prefixCls:Ye,className:Zt,rootClassName:Gt,active:ft,block:nt,size:Oe="default"}=mt,{getPrefixCls:we}=Ve.useContext(st.E_),ye=we("skeleton",Ye),[ke,Ge]=Le(ye),Fe=(0,We.Z)(mt,["prefixCls"]),pt=Ie()(ye,`${ye}-element`,{[`${ye}-active`]:ft,[`${ye}-block`]:nt},Zt,Gt,Ge);return ke(Ve.createElement("div",{className:pt},Ve.createElement(be,Object.assign({prefixCls:`${ye}-input`,size:Oe},Fe))))},Nt=he(5891),It={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},_t=It,lt=he(88853),je=function(Ye,Zt){return Ve.createElement(lt.Z,(0,Nt.Z)({},Ye,{ref:Zt,icon:_t}))},Et=Ve.forwardRef(je),ln=Et,xt=mt=>{const{prefixCls:Ye,className:Zt,rootClassName:Gt,style:ft,active:nt,children:Oe}=mt,{getPrefixCls:we}=Ve.useContext(st.E_),ye=we("skeleton",Ye),[ke,Ge]=Le(ye),Fe=Ie()(ye,`${ye}-element`,{[`${ye}-active`]:nt},Ge,Zt,Gt),pt=Oe!=null?Oe:Ve.createElement(ln,null);return ke(Ve.createElement("div",{className:Fe},Ve.createElement("div",{className:Ie()(`${ye}-image`,Zt),style:ft},pt)))},Bt=he(26390),Hn=mt=>{const Ye=we=>{const{width:ye,rows:ke=2}=mt;if(Array.isArray(ye))return ye[we];if(ke-1===we)return ye},{prefixCls:Zt,className:Gt,style:ft,rows:nt}=mt,Oe=(0,Bt.Z)(Array(nt)).map((we,ye)=>Ve.createElement("li",{key:ye,style:{width:Ye(ye)}}));return Ve.createElement("ul",{className:Ie()(Zt,Gt),style:ft},Oe)},_n=mt=>{let{prefixCls:Ye,className:Zt,width:Gt,style:ft}=mt;return Ve.createElement("h3",{className:Ie()(Ye,Zt),style:Object.assign({width:Gt},ft)})};function Lt(mt){return mt&&typeof mt=="object"?mt:{}}function Un(mt,Ye){return mt&&!Ye?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Gn(mt,Ye){return!mt&&Ye?{width:"38%"}:mt&&Ye?{width:"50%"}:{}}function ui(mt,Ye){const Zt={};return(!mt||!Ye)&&(Zt.width="61%"),!mt&&Ye?Zt.rows=3:Zt.rows=2,Zt}const Ln=mt=>{const{prefixCls:Ye,loading:Zt,className:Gt,rootClassName:ft,style:nt,children:Oe,avatar:we=!1,title:ye=!0,paragraph:ke=!0,active:Ge,round:Fe}=mt,{getPrefixCls:pt,direction:tn,skeleton:en}=Ve.useContext(st.E_),wt=pt("skeleton",Ye),[Xt,Pn]=Le(wt);if(Zt||!("loading"in mt)){const In=!!we,$n=!!ye,Pi=!!ke;let wn;if(In){const ur=Object.assign(Object.assign({prefixCls:`${wt}-avatar`},Un($n,Pi)),Lt(we));wn=Ve.createElement("div",{className:`${wt}-header`},Ve.createElement(be,Object.assign({},ur)))}let Ai;if($n||Pi){let ur;if($n){const Qn=Object.assign(Object.assign({prefixCls:`${wt}-title`},Gn(In,Pi)),Lt(ye));ur=Ve.createElement(_n,Object.assign({},Qn))}let sr;if(Pi){const Qn=Object.assign(Object.assign({prefixCls:`${wt}-paragraph`},ui(In,$n)),Lt(ke));sr=Ve.createElement(Hn,Object.assign({},Qn))}Ai=Ve.createElement("div",{className:`${wt}-content`},ur,sr)}const Vi=Ie()(wt,{[`${wt}-with-avatar`]:In,[`${wt}-active`]:Ge,[`${wt}-rtl`]:tn==="rtl",[`${wt}-round`]:Fe},en==null?void 0:en.className,Gt,ft,Pn);return Xt(Ve.createElement("div",{className:Vi,style:Object.assign(Object.assign({},en==null?void 0:en.style),nt)},wn,Ai))}return typeof Oe!="undefined"?Oe:null};Ln.Button=Ke,Ln.Avatar=He,Ln.Input=Ct,Ln.Image=Xe,Ln.Node=xt;var Wt=Ln,Vt=Wt},81327:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return ue}});var pe=he(59301),Ie=he(92310),Ve=he.n(Ie),st=he(38298),We=he(36355),it=he(33234);const be=pe.createContext({latestIndex:0}),yt=be.Provider;var Je=ae=>{let{className:de,index:ve,children:Pe,split:Ae,style:xe}=ae;const{latestIndex:Le}=pe.useContext(be);return Pe==null?null:pe.createElement(pe.Fragment,null,pe.createElement("div",{className:de,style:xe},Pe),ve<Le&&Ae&&pe.createElement("span",{className:`${de}-split`},Ae))},tt=he(2856);function $e(ae){return["small","middle","large"].includes(ae)}function Qe(ae){return ae?typeof ae=="number"&&!Number.isNaN(ae):!1}var Ee=function(ae,de){var ve={};for(var Pe in ae)Object.prototype.hasOwnProperty.call(ae,Pe)&&de.indexOf(Pe)<0&&(ve[Pe]=ae[Pe]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Pe=Object.getOwnPropertySymbols(ae);Ae<Pe.length;Ae++)de.indexOf(Pe[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ae,Pe[Ae])&&(ve[Pe[Ae]]=ae[Pe[Ae]]);return ve};const te=pe.forwardRef((ae,de)=>{var ve,Pe;const{getPrefixCls:Ae,space:xe,direction:Le}=pe.useContext(We.E_),{size:Te=(xe==null?void 0:xe.size)||"small",align:He,className:ze,rootClassName:Ke,children:Ze,direction:Mt="horizontal",prefixCls:Xe,split:Ft,style:Ct,wrap:Nt=!1,classNames:It,styles:_t}=ae,lt=Ee(ae,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[je,Et]=Array.isArray(Te)?Te:[Te,Te],ln=$e(Et),Ht=$e(je),xt=Qe(Et),Bt=Qe(je),rn=(0,st.Z)(Ze,{keepEmpty:!0}),Hn=He===void 0&&Mt==="horizontal"?"center":He,pn=Ae("space",Xe),[_n,Lt]=(0,tt.Z)(pn),Un=Ve()(pn,xe==null?void 0:xe.className,Lt,`${pn}-${Mt}`,{[`${pn}-rtl`]:Le==="rtl",[`${pn}-align-${Hn}`]:Hn,[`${pn}-gap-row-${Et}`]:ln,[`${pn}-gap-col-${je}`]:Ht},ze,Ke),Gn=Ve()(`${pn}-item`,(ve=It==null?void 0:It.item)!==null&&ve!==void 0?ve:(Pe=xe==null?void 0:xe.classNames)===null||Pe===void 0?void 0:Pe.item);let ui=0;const Ln=rn.map((mt,Ye)=>{var Zt,Gt;mt!=null&&(ui=Ye);const ft=mt&&mt.key||`${Gn}-${Ye}`;return pe.createElement(Je,{className:Gn,key:ft,index:Ye,split:Ft,style:(Zt=_t==null?void 0:_t.item)!==null&&Zt!==void 0?Zt:(Gt=xe==null?void 0:xe.styles)===null||Gt===void 0?void 0:Gt.item},mt)}),Wt=pe.useMemo(()=>({latestIndex:ui}),[ui]);if(rn.length===0)return null;const Vt={};return Nt&&(Vt.flexWrap="wrap"),!Ht&&Bt&&(Vt.columnGap=je),!ln&&xt&&(Vt.rowGap=Et),_n(pe.createElement("div",Object.assign({ref:de,className:Un,style:Object.assign(Object.assign(Object.assign({},Vt),xe==null?void 0:xe.style),Ct)},lt),pe.createElement(yt,{value:Wt},Ln)))});te.Compact=it.ZP;var ue=te},31797:function(gn,zt,he){"use strict";he.d(zt,{default:function(){return Le}});var pe=he(59301),Ie=he(56762),Ve=he(92343),st=he(92310),We=he.n(st),it=he(36355),be=he(78485),vt=Te=>{const{value:He,formatter:ze,precision:Ke,decimalSeparator:Ze,groupSeparator:Mt="",prefixCls:Xe}=Te;let Ft;if(typeof ze=="function")Ft=ze(He);else{const Ct=String(He),Nt=Ct.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Nt||Ct==="-")Ft=Ct;else{const It=Nt[1];let _t=Nt[2]||"0",lt=Nt[4]||"";_t=_t.replace(/\B(?=(\d{3})+(?!\d))/g,Mt),typeof Ke=="number"&&(lt=lt.padEnd(Ke,"0").slice(0,Ke>0?Ke:0)),lt&&(lt=`${Ze}${lt}`),Ft=[pe.createElement("span",{key:"int",className:`${Xe}-content-value-int`},It,_t),lt&&pe.createElement("span",{key:"decimal",className:`${Xe}-content-value-decimal`},lt)]}}return pe.createElement("span",{className:`${Xe}-content-value`},Ft)},Je=he(17313),tt=he(83116),$e=he(37613);const Qe=Te=>{const{componentCls:He,marginXXS:ze,padding:Ke,colorTextDescription:Ze,titleFontSize:Mt,colorTextHeading:Xe,contentFontSize:Ft,fontFamily:Ct}=Te;return{[`${He}`]:Object.assign(Object.assign({},(0,Je.Wf)(Te)),{[`${He}-title`]:{marginBottom:ze,color:Ze,fontSize:Mt},[`${He}-skeleton`]:{paddingTop:Ke},[`${He}-content`]:{color:Xe,fontSize:Ft,fontFamily:Ct,[`${He}-content-value`]:{display:"inline-block",direction:"ltr"},[`${He}-content-prefix, ${He}-content-suffix`]:{display:"inline-block"},[`${He}-content-prefix`]:{marginInlineEnd:ze},[`${He}-content-suffix`]:{marginInlineStart:ze}}})}};var Ee=(0,tt.Z)("Statistic",Te=>{const He=(0,$e.TS)(Te,{});return[Qe(He)]},Te=>{const{fontSizeHeading3:He,fontSize:ze}=Te;return{titleFontSize:ze,contentFontSize:He}}),te=Te=>{const{prefixCls:He,className:ze,rootClassName:Ke,style:Ze,valueStyle:Mt,value:Xe=0,title:Ft,valueRender:Ct,prefix:Nt,suffix:It,loading:_t=!1,onMouseEnter:lt,onMouseLeave:je,decimalSeparator:Et=".",groupSeparator:ln=","}=Te,{getPrefixCls:Ht,direction:xt,statistic:Bt}=pe.useContext(it.E_),rn=Ht("statistic",He),[Hn,pn]=Ee(rn),_n=pe.createElement(vt,Object.assign({decimalSeparator:Et,groupSeparator:ln,prefixCls:rn},Te,{value:Xe})),Lt=We()(rn,{[`${rn}-rtl`]:xt==="rtl"},Bt==null?void 0:Bt.className,ze,Ke,pn);return Hn(pe.createElement("div",{className:Lt,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Ze),onMouseEnter:lt,onMouseLeave:je},Ft&&pe.createElement("div",{className:`${rn}-title`},Ft),pe.createElement(be.Z,{paragraph:!1,loading:_t,className:`${rn}-skeleton`},pe.createElement("div",{style:Mt,className:`${rn}-content`},Nt&&pe.createElement("span",{className:`${rn}-content-prefix`},Nt),Ct?Ct(_n):_n,It&&pe.createElement("span",{className:`${rn}-content-suffix`},It)))))};const ue=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ae(Te,He){let ze=Te;const Ke=/\[[^\]]*]/g,Ze=(He.match(Ke)||[]).map(Ct=>Ct.slice(1,-1)),Mt=He.replace(Ke,"[]"),Xe=ue.reduce((Ct,Nt)=>{let[It,_t]=Nt;if(Ct.includes(It)){const lt=Math.floor(ze/_t);return ze-=lt*_t,Ct.replace(new RegExp(`${It}+`,"g"),je=>{const Et=je.length;return lt.toString().padStart(Et,"0")})}return Ct},Mt);let Ft=0;return Xe.replace(Ke,()=>{const Ct=Ze[Ft];return Ft+=1,Ct})}function de(Te,He){const{format:ze=""}=He,Ke=new Date(Te).getTime(),Ze=Date.now(),Mt=Math.max(Ke-Ze,0);return ae(Mt,ze)}const ve=1e3/30;function Pe(Te){return new Date(Te).getTime()}const Ae=Te=>{const{value:He,format:ze="HH:mm:ss",onChange:Ke,onFinish:Ze}=Te,Mt=(0,Ie.Z)(),Xe=pe.useRef(null),Ft=()=>{Ze==null||Ze(),Xe.current&&(clearInterval(Xe.current),Xe.current=null)},Ct=()=>{const _t=Pe(He);_t>=Date.now()&&(Xe.current=setInterval(()=>{Mt(),Ke==null||Ke(_t-Date.now()),_t<Date.now()&&Ft()},ve))};pe.useEffect(()=>(Ct(),()=>{Xe.current&&(clearInterval(Xe.current),Xe.current=null)}),[He]);const Nt=(_t,lt)=>de(_t,Object.assign(Object.assign({},lt),{format:ze})),It=_t=>(0,Ve.Tm)(_t,{title:void 0});return pe.createElement(te,Object.assign({},Te,{valueRender:It,formatter:Nt}))};var xe=pe.memo(Ae);te.Countdown=xe;var Le=te},15969:function(gn,zt,he){"use strict";he.d(zt,{N:function(){return pe}});const pe=Ie=>({color:Ie.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ie.motionDurationSlow}`,"&:focus, &:hover":{color:Ie.colorLinkHover},"&:active":{color:Ie.colorLinkActive}})},78673:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Mt}});var pe=he(50023),Ie=he(92310),Ve=he.n(Ie),st=he(5891),We=he(80962),it=he(29043),be=he(19149),yt=he(59301),vt=he(35788),Je=he(85108),tt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],$e=yt.forwardRef(function(Xe,Ft){var Ct,Nt=Xe.prefixCls,It=Nt===void 0?"rc-switch":Nt,_t=Xe.className,lt=Xe.checked,je=Xe.defaultChecked,Et=Xe.disabled,ln=Xe.loadingIcon,Ht=Xe.checkedChildren,xt=Xe.unCheckedChildren,Bt=Xe.onClick,rn=Xe.onChange,Hn=Xe.onKeyDown,pn=(0,be.Z)(Xe,tt),_n=(0,vt.Z)(!1,{value:lt,defaultValue:je}),Lt=(0,it.Z)(_n,2),Un=Lt[0],Gn=Lt[1];function ui(mt,Ye){var Zt=Un;return Et||(Zt=mt,Gn(Zt),rn==null||rn(Zt,Ye)),Zt}function Ln(mt){mt.which===Je.Z.LEFT?ui(!1,mt):mt.which===Je.Z.RIGHT&&ui(!0,mt),Hn==null||Hn(mt)}function Wt(mt){var Ye=ui(!Un,mt);Bt==null||Bt(Ye,mt)}var Vt=Ve()(It,_t,(Ct={},(0,We.Z)(Ct,"".concat(It,"-checked"),Un),(0,We.Z)(Ct,"".concat(It,"-disabled"),Et),Ct));return yt.createElement("button",(0,st.Z)({},pn,{type:"button",role:"switch","aria-checked":Un,disabled:Et,className:Vt,ref:Ft,onKeyDown:Ln,onClick:Wt}),ln,yt.createElement("span",{className:"".concat(It,"-inner")},yt.createElement("span",{className:"".concat(It,"-inner-checked")},Ht),yt.createElement("span",{className:"".concat(It,"-inner-unchecked")},xt)))});$e.displayName="Switch";var Qe=$e,Ee=he(14088),ee=he(36355),te=he(1684),ue=he(19716),ae=he(64993),de=he(17313),ve=he(83116),Pe=he(37613);const Ae=Xe=>{const{componentCls:Ft,trackHeightSM:Ct,trackPadding:Nt,trackMinWidthSM:It,innerMinMarginSM:_t,innerMaxMarginSM:lt,handleSizeSM:je}=Xe,Et=`${Ft}-inner`;return{[Ft]:{[`&${Ft}-small`]:{minWidth:It,height:Ct,lineHeight:`${Ct}px`,[`${Ft}-inner`]:{paddingInlineStart:lt,paddingInlineEnd:_t,[`${Et}-checked`]:{marginInlineStart:`calc(-100% + ${je+Nt*2}px - ${lt*2}px)`,marginInlineEnd:`calc(100% - ${je+Nt*2}px + ${lt*2}px)`},[`${Et}-unchecked`]:{marginTop:-Ct,marginInlineStart:0,marginInlineEnd:0}},[`${Ft}-handle`]:{width:je,height:je},[`${Ft}-loading-icon`]:{top:(je-Xe.switchLoadingIconSize)/2,fontSize:Xe.switchLoadingIconSize},[`&${Ft}-checked`]:{[`${Ft}-inner`]:{paddingInlineStart:_t,paddingInlineEnd:lt,[`${Et}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Et}-unchecked`]:{marginInlineStart:`calc(100% - ${je+Nt*2}px + ${lt*2}px)`,marginInlineEnd:`calc(-100% + ${je+Nt*2}px - ${lt*2}px)`}},[`${Ft}-handle`]:{insetInlineStart:`calc(100% - ${je+Nt}px)`}},[`&:not(${Ft}-disabled):active`]:{[`&:not(${Ft}-checked) ${Et}`]:{[`${Et}-unchecked`]:{marginInlineStart:Xe.marginXXS/2,marginInlineEnd:-Xe.marginXXS/2}},[`&${Ft}-checked ${Et}`]:{[`${Et}-checked`]:{marginInlineStart:-Xe.marginXXS/2,marginInlineEnd:Xe.marginXXS/2}}}}}}},xe=Xe=>{const{componentCls:Ft,handleSize:Ct}=Xe;return{[Ft]:{[`${Ft}-loading-icon${Xe.iconCls}`]:{position:"relative",top:(Ct-Xe.fontSize)/2,color:Xe.switchLoadingIconColor,verticalAlign:"top"},[`&${Ft}-checked ${Ft}-loading-icon`]:{color:Xe.switchColor}}}},Le=Xe=>{const{componentCls:Ft,motion:Ct,trackPadding:Nt,handleBg:It,handleShadow:_t,handleSize:lt}=Xe,je=`${Ft}-handle`;return{[Ft]:{[je]:{position:"absolute",top:Nt,insetInlineStart:Nt,width:lt,height:lt,transition:`all ${Xe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:It,borderRadius:lt/2,boxShadow:_t,transition:`all ${Xe.switchDuration} ease-in-out`,content:'""'}},[`&${Ft}-checked ${je}`]:{insetInlineStart:`calc(100% - ${lt+Nt}px)`},[`&:not(${Ft}-disabled):active`]:Ct?{[`${je}::before`]:{insetInlineEnd:Xe.switchHandleActiveInset,insetInlineStart:0},[`&${Ft}-checked ${je}::before`]:{insetInlineEnd:0,insetInlineStart:Xe.switchHandleActiveInset}}:{}}}},Te=Xe=>{const{componentCls:Ft,trackHeight:Ct,trackPadding:Nt,innerMinMargin:It,innerMaxMargin:_t,handleSize:lt}=Xe,je=`${Ft}-inner`;return{[Ft]:{[je]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:_t,paddingInlineEnd:It,transition:`padding-inline-start ${Xe.switchDuration} ease-in-out, padding-inline-end ${Xe.switchDuration} ease-in-out`,[`${je}-checked, ${je}-unchecked`]:{display:"block",color:Xe.colorTextLightSolid,fontSize:Xe.fontSizeSM,transition:`margin-inline-start ${Xe.switchDuration} ease-in-out, margin-inline-end ${Xe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${je}-checked`]:{marginInlineStart:`calc(-100% + ${lt+Nt*2}px - ${_t*2}px)`,marginInlineEnd:`calc(100% - ${lt+Nt*2}px + ${_t*2}px)`},[`${je}-unchecked`]:{marginTop:-Ct,marginInlineStart:0,marginInlineEnd:0}},[`&${Ft}-checked ${je}`]:{paddingInlineStart:It,paddingInlineEnd:_t,[`${je}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${je}-unchecked`]:{marginInlineStart:`calc(100% - ${lt+Nt*2}px + ${_t*2}px)`,marginInlineEnd:`calc(-100% + ${lt+Nt*2}px - ${_t*2}px)`}},[`&:not(${Ft}-disabled):active`]:{[`&:not(${Ft}-checked) ${je}`]:{[`${je}-unchecked`]:{marginInlineStart:Nt*2,marginInlineEnd:-Nt*2}},[`&${Ft}-checked ${je}`]:{[`${je}-checked`]:{marginInlineStart:-Nt*2,marginInlineEnd:Nt*2}}}}}},He=Xe=>{const{componentCls:Ft,trackHeight:Ct,trackMinWidth:Nt}=Xe;return{[Ft]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Xe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Nt,height:Ct,lineHeight:`${Ct}px`,verticalAlign:"middle",background:Xe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Xe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ft}-disabled)`]:{background:Xe.colorTextTertiary}}),(0,de.Qy)(Xe)),{[`&${Ft}-checked`]:{background:Xe.switchColor,[`&:hover:not(${Ft}-disabled)`]:{background:Xe.colorPrimaryHover}},[`&${Ft}-loading, &${Ft}-disabled`]:{cursor:"not-allowed",opacity:Xe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ft}-rtl`]:{direction:"rtl"}})}};var ze=(0,ve.Z)("Switch",Xe=>{const Ft=(0,Pe.TS)(Xe,{switchDuration:Xe.motionDurationMid,switchColor:Xe.colorPrimary,switchDisabledOpacity:Xe.opacityLoading,switchLoadingIconSize:Xe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Xe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[He(Ft),Te(Ft),Le(Ft),xe(Ft),Ae(Ft)]},Xe=>{const{fontSize:Ft,lineHeight:Ct,controlHeight:Nt,colorWhite:It}=Xe,_t=Ft*Ct,lt=Nt/2,je=2,Et=_t-je*2,ln=lt-je*2;return{trackHeight:_t,trackHeightSM:lt,trackMinWidth:Et*2+je*4,trackMinWidthSM:ln*2+je*2,trackPadding:je,handleBg:It,handleSize:Et,handleSizeSM:ln,handleShadow:`0 2px 4px 0 ${new ae.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Et/2,innerMaxMargin:Et+je+je*2,innerMinMarginSM:ln/2,innerMaxMarginSM:ln+je+je*2}}),Ke=function(Xe,Ft){var Ct={};for(var Nt in Xe)Object.prototype.hasOwnProperty.call(Xe,Nt)&&Ft.indexOf(Nt)<0&&(Ct[Nt]=Xe[Nt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Nt=Object.getOwnPropertySymbols(Xe);It<Nt.length;It++)Ft.indexOf(Nt[It])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Nt[It])&&(Ct[Nt[It]]=Xe[Nt[It]]);return Ct};const Ze=yt.forwardRef((Xe,Ft)=>{const{prefixCls:Ct,size:Nt,disabled:It,loading:_t,className:lt,rootClassName:je,style:Et}=Xe,ln=Ke(Xe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Ht,direction:xt,switch:Bt}=yt.useContext(ee.E_),rn=yt.useContext(te.Z),Hn=(It!=null?It:rn)||_t,pn=Ht("switch",Ct),_n=yt.createElement("div",{className:`${pn}-handle`},_t&&yt.createElement(pe.Z,{className:`${pn}-loading-icon`})),[Lt,Un]=ze(pn),Gn=(0,ue.Z)(Nt),ui=Ve()(Bt==null?void 0:Bt.className,{[`${pn}-small`]:Gn==="small",[`${pn}-loading`]:_t,[`${pn}-rtl`]:xt==="rtl"},lt,je,Un),Ln=Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Et);return Lt(yt.createElement(Ee.Z,{component:"Switch"},yt.createElement(Qe,Object.assign({},ln,{prefixCls:pn,className:ui,style:Ln,disabled:Hn,ref:Ft,loadingIcon:_n}))))});Ze.__ANT_SWITCH=!0;var Mt=Ze},2595:function(gn,zt,he){"use strict";he.d(zt,{default:function(){return ul}});var pe={},Ie="rc-table-internal-hook",Ve=he(29043),st=he(8107),We=he(28800),it=he(51346),be=he(59301),yt=he(4676);function vt(ut){var St=be.createContext(void 0),Yt=function(mn){var un=mn.value,jn=mn.children,zn=be.useRef(un);zn.current=un;var Rn=be.useState(function(){return{getValue:function(){return zn.current},listeners:new Set}}),yi=(0,Ve.Z)(Rn,1),ti=yi[0];return(0,We.Z)(function(){(0,yt.unstable_batchedUpdates)(function(){ti.listeners.forEach(function(gi){gi(un)})})},[un]),be.createElement(St.Provider,{value:ti},jn)};return{Context:St,Provider:Yt,defaultValue:ut}}function Je(ut,St){var Yt=(0,st.Z)(typeof St=="function"?St:function(gi){if(St===void 0)return gi;if(!Array.isArray(St))return gi[St];var Ri={};return St.forEach(function(Oi){Ri[Oi]=gi[Oi]}),Ri}),Qt=be.useContext(ut==null?void 0:ut.Context),mn=Qt||{},un=mn.listeners,jn=mn.getValue,zn=be.useRef();zn.current=Yt(Qt?jn():ut==null?void 0:ut.defaultValue);var Rn=be.useState({}),yi=(0,Ve.Z)(Rn,2),ti=yi[1];return(0,We.Z)(function(){if(!Qt)return;function gi(Ri){var Oi=Yt(Ri);(0,it.Z)(zn.current,Oi,!0)||ti({})}return un.add(gi),function(){un.delete(gi)}},[Qt]),zn.current}var tt=he(5891),$e=he(20475);function Qe(){var ut=be.createContext(null);function St(){return be.useContext(ut)}function Yt(mn,un){var jn=(0,$e.Yr)(mn),zn=function(yi,ti){var gi=jn?{ref:ti}:{},Ri=be.useRef(0),Oi=be.useRef(yi),Bi=St();return Bi!==null?be.createElement(mn,(0,tt.Z)({},yi,gi)):((!un||un(Oi.current,yi))&&(Ri.current+=1),Oi.current=yi,be.createElement(ut.Provider,{value:Ri.current},be.createElement(mn,(0,tt.Z)({},yi,gi))))};return jn?be.forwardRef(zn):zn}function Qt(mn,un){var jn=(0,$e.Yr)(mn),zn=function(yi,ti){var gi=jn?{ref:ti}:{};return St(),be.createElement(mn,(0,tt.Z)({},yi,gi))};return jn?be.memo(be.forwardRef(zn),un):be.memo(zn,un)}return{makeImmutable:Yt,responseImmutable:Qt,useImmutableMark:St}}var Ee=Qe(),ee=Ee.makeImmutable,te=Ee.responseImmutable,ue=Ee.useImmutableMark,ae=Qe(),de=ae.makeImmutable,ve=ae.responseImmutable,Pe=ae.useImmutableMark,Ae=vt(),xe=Ae;function Le(ut,St){var Yt=be.useRef(0);Yt.current+=1;var Qt=be.useRef(ut),mn=[];Object.keys(ut||{}).map(function(jn){var zn;(ut==null?void 0:ut[jn])!==((zn=Qt.current)===null||zn===void 0?void 0:zn[jn])&&mn.push(jn)}),Qt.current=ut;var un=be.useRef([]);return mn.length&&(un.current=mn),be.useDebugValue(Yt.current),be.useDebugValue(un.current.join(", ")),St&&console.log("".concat(St,":"),Yt.current,un.current),Yt.current}var Te=null,He=be.memo(function(){var ut=Le();return be.createElement("h1",null,"Render Times: ",ut)});He.displayName="RenderBlock";var ze=he(80665),Ke=he(57259),Ze=he(80962),Mt=he(92310),Xe=he.n(Mt),Ft=he(79722),Ct=he(69004),Nt=he(51395),It=be.createContext({renderWithProps:!1}),_t=It,lt="RC_TABLE_KEY";function je(ut){return ut==null?[]:Array.isArray(ut)?ut:[ut]}function Et(ut){var St=[],Yt={};return ut.forEach(function(Qt){for(var mn=Qt||{},un=mn.key,jn=mn.dataIndex,zn=un||je(jn).join("-")||lt;Yt[zn];)zn="".concat(zn,"_next");Yt[zn]=!0,St.push(zn)}),St}function ln(ut){return ut!=null}function Ht(ut){return ut&&(0,ze.Z)(ut)==="object"&&!Array.isArray(ut)&&!be.isValidElement(ut)}function xt(ut,St,Yt,Qt,mn,un){var jn=be.useContext(_t),zn=Pe(),Rn=(0,Ft.Z)(function(){if(ln(Qt))return[Qt];var yi=St==null||St===""?[]:Array.isArray(St)?St:[St],ti=(0,Ct.Z)(ut,yi),gi=ti,Ri=void 0;if(mn){var Oi=mn(ti,ut,Yt);Ht(Oi)?(gi=Oi.children,Ri=Oi.props,jn.renderWithProps=!0):gi=Oi}return[gi,Ri]},[zn,ut,Qt,St,mn,Yt],function(yi,ti){if(un){var gi=(0,Ve.Z)(yi,2),Ri=gi[1],Oi=(0,Ve.Z)(ti,2),Bi=Oi[1];return un(Bi,Ri)}return jn.renderWithProps?!0:!(0,it.Z)(yi,ti,!0)});return Rn}function Bt(ut,St,Yt,Qt){var mn=ut+St-1;return ut<=Qt&&mn>=Yt}function rn(ut,St){return Je(xe,function(Yt){var Qt=Bt(ut,St||1,Yt.hoverStartRow,Yt.hoverEndRow);return[Qt,Yt.onHover]})}var Hn=function(St){var Yt=St.ellipsis,Qt=St.rowType,mn=St.children,un,jn=Yt===!0?{showTitle:!0}:Yt;return jn&&(jn.showTitle||Qt==="header")&&(typeof mn=="string"||typeof mn=="number"?un=mn.toString():be.isValidElement(mn)&&typeof mn.props.children=="string"&&(un=mn.props.children)),un};function pn(ut){var St,Yt,Qt,mn,un,jn,zn,Rn,yi=ut.component,ti=ut.children,gi=ut.ellipsis,Ri=ut.scope,Oi=ut.prefixCls,Bi=ut.className,ir=ut.align,Ti=ut.record,pr=ut.render,cr=ut.dataIndex,xr=ut.renderIndex,so=ut.shouldCellUpdate,Eo=ut.index,Mr=ut.rowType,Zr=ut.colSpan,jo=ut.rowSpan,Pr=ut.fixLeft,_r=ut.fixRight,Lr=ut.firstFixLeft,qi=ut.lastFixLeft,mr=ut.firstFixRight,Qr=ut.lastFixRight,bo=ut.appendNode,Mo=ut.additionalProps,vr=Mo===void 0?{}:Mo,Ho=ut.isSticky,Xo="".concat(Oi,"-cell"),ea=Je(xe,["supportSticky","allColumnsFixedLeft"]),$o=ea.supportSticky,Xa=ea.allColumnsFixedLeft,ga=xt(Ti,cr,xr,ti,pr,so),Ro=(0,Ve.Z)(ga,2),po=Ro[0],Bo=Ro[1],Ga={},Ta=typeof Pr=="number"&&$o,es=typeof _r=="number"&&$o;Ta&&(Ga.position="sticky",Ga.left=Pr),es&&(Ga.position="sticky",Ga.right=_r);var To=(St=(Yt=(Qt=Bo==null?void 0:Bo.colSpan)!==null&&Qt!==void 0?Qt:vr.colSpan)!==null&&Yt!==void 0?Yt:Zr)!==null&&St!==void 0?St:1,Po=(mn=(un=(jn=Bo==null?void 0:Bo.rowSpan)!==null&&jn!==void 0?jn:vr.rowSpan)!==null&&un!==void 0?un:jo)!==null&&mn!==void 0?mn:1,zo=rn(Eo,Po),co=(0,Ve.Z)(zo,2),Ur=co[0],Hi=co[1],Tr=function(Fo){var Gs;Ti&&Hi(Eo,Eo+Po-1),vr==null||(Gs=vr.onMouseEnter)===null||Gs===void 0||Gs.call(vr,Fo)},Ko=function(Fo){var Gs;Ti&&Hi(-1,-1),vr==null||(Gs=vr.onMouseLeave)===null||Gs===void 0||Gs.call(vr,Fo)};if(To===0||Po===0)return null;var ua=(zn=vr.title)!==null&&zn!==void 0?zn:Hn({rowType:Mr,ellipsis:gi,children:po}),il=Xe()(Xo,Bi,(Rn={},(0,Ze.Z)(Rn,"".concat(Xo,"-fix-left"),Ta&&$o),(0,Ze.Z)(Rn,"".concat(Xo,"-fix-left-first"),Lr&&$o),(0,Ze.Z)(Rn,"".concat(Xo,"-fix-left-last"),qi&&$o),(0,Ze.Z)(Rn,"".concat(Xo,"-fix-left-all"),qi&&Xa&&$o),(0,Ze.Z)(Rn,"".concat(Xo,"-fix-right"),es&&$o),(0,Ze.Z)(Rn,"".concat(Xo,"-fix-right-first"),mr&&$o),(0,Ze.Z)(Rn,"".concat(Xo,"-fix-right-last"),Qr&&$o),(0,Ze.Z)(Rn,"".concat(Xo,"-ellipsis"),gi),(0,Ze.Z)(Rn,"".concat(Xo,"-with-append"),bo),(0,Ze.Z)(Rn,"".concat(Xo,"-fix-sticky"),(Ta||es)&&Ho&&$o),(0,Ze.Z)(Rn,"".concat(Xo,"-row-hover"),!Bo&&Ur),Rn),vr.className,Bo==null?void 0:Bo.className),zs={};ir&&(zs.textAlign=ir);var yl=(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},Ga),vr.style),zs),Bo==null?void 0:Bo.style),Da=po;return(0,ze.Z)(Da)==="object"&&!Array.isArray(Da)&&!be.isValidElement(Da)&&(Da=null),gi&&(qi||mr)&&(Da=be.createElement("span",{className:"".concat(Xo,"-content")},Da)),be.createElement(yi,(0,tt.Z)({},Bo,vr,{className:il,style:yl,title:ua,scope:Ri,onMouseEnter:Tr,onMouseLeave:Ko,colSpan:To!==1?To:null,rowSpan:Po!==1?Po:null}),bo,Da)}var _n=be.memo(pn);function Lt(ut,St,Yt,Qt,mn,un){var jn=Yt[ut]||{},zn=Yt[St]||{},Rn,yi;jn.fixed==="left"?Rn=Qt.left[mn==="rtl"?St:ut]:zn.fixed==="right"&&(yi=Qt.right[mn==="rtl"?ut:St]);var ti=!1,gi=!1,Ri=!1,Oi=!1,Bi=Yt[St+1],ir=Yt[ut-1],Ti=!(un!=null&&un.children);if(mn==="rtl"){if(Rn!==void 0){var pr=ir&&ir.fixed==="left";Oi=!pr&&Ti}else if(yi!==void 0){var cr=Bi&&Bi.fixed==="right";Ri=!cr&&Ti}}else if(Rn!==void 0){var xr=Bi&&Bi.fixed==="left";ti=!xr&&Ti}else if(yi!==void 0){var so=ir&&ir.fixed==="right";gi=!so&&Ti}return{fixLeft:Rn,fixRight:yi,lastFixLeft:ti,firstFixRight:gi,lastFixRight:Ri,firstFixLeft:Oi,isSticky:Qt.isSticky}}var Un=be.createContext({}),Gn=Un;function ui(ut){var St=ut.className,Yt=ut.index,Qt=ut.children,mn=ut.colSpan,un=mn===void 0?1:mn,jn=ut.rowSpan,zn=ut.align,Rn=Je(xe,["prefixCls","direction"]),yi=Rn.prefixCls,ti=Rn.direction,gi=be.useContext(Gn),Ri=gi.scrollColumnIndex,Oi=gi.stickyOffsets,Bi=gi.flattenColumns,ir=gi.columns,Ti=Yt+un-1,pr=Ti+1===Ri?un+1:un,cr=Lt(Yt,Yt+pr-1,Bi,Oi,ti,ir==null?void 0:ir[Yt]);return be.createElement(_n,(0,tt.Z)({className:St,index:Yt,component:"td",prefixCls:yi,record:null,dataIndex:null,align:zn,colSpan:pr,rowSpan:jn,render:function(){return Qt}},cr))}var Ln=he(19149),Wt=["children"];function Vt(ut){var St=ut.children,Yt=(0,Ln.Z)(ut,Wt);return be.createElement("tr",Yt,St)}function mt(ut){var St=ut.children;return St}mt.Row=Vt,mt.Cell=ui;var Ye=mt;function Zt(ut){var St=ut.children,Yt=ut.stickyOffsets,Qt=ut.flattenColumns,mn=ut.columns,un=Je(xe,"prefixCls"),jn=Qt.length-1,zn=Qt[jn],Rn=be.useMemo(function(){return{stickyOffsets:Yt,flattenColumns:Qt,scrollColumnIndex:zn!=null&&zn.scrollbar?jn:null,columns:mn}},[zn,Qt,jn,Yt,mn]);return be.createElement(Gn.Provider,{value:Rn},be.createElement("tfoot",{className:"".concat(un,"-summary")},St))}var Gt=ve(Zt),ft=Ye,nt=he(80764),Oe=he(29301),we=he(48886),ye=he(24387),ke=he(59055),Ge=he(36994);function Fe(ut,St,Yt,Qt,mn,un,jn){ut.push({record:St,indent:Yt,index:jn});var zn=un(St),Rn=mn==null?void 0:mn.has(zn);if(St&&Array.isArray(St[Qt])&&Rn)for(var yi=0;yi<St[Qt].length;yi+=1)Fe(ut,St[Qt][yi],Yt+1,Qt,mn,un,yi)}function pt(ut,St,Yt,Qt){var mn=be.useMemo(function(){if(Yt!=null&&Yt.size){for(var un=[],jn=0;jn<(ut==null?void 0:ut.length);jn+=1){var zn=ut[jn];Fe(un,zn,0,St,Yt,Qt,jn)}return un}return ut==null?void 0:ut.map(function(Rn,yi){return{record:Rn,indent:0,index:yi}})},[ut,St,Yt,Qt]);return mn}function tn(ut){var St=ut.prefixCls,Yt=ut.children,Qt=ut.component,mn=ut.cellComponent,un=ut.className,jn=ut.expanded,zn=ut.colSpan,Rn=ut.isEmpty,yi=Je(xe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ti=yi.scrollbarSize,gi=yi.fixHeader,Ri=yi.fixColumn,Oi=yi.componentWidth,Bi=yi.horizonScroll,ir=Yt;return(Rn?Bi&&Oi:Ri)&&(ir=be.createElement("div",{style:{width:Oi-(gi?ti:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(St,"-expanded-row-fixed")},ir)),be.createElement(Qt,{className:un,style:{display:jn?null:"none"}},be.createElement(_n,{component:mn,prefixCls:St,colSpan:zn},ir))}var en=tn;function wt(ut,St,Yt,Qt){var mn=Je(xe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),un=mn.flattenColumns,jn=mn.expandableType,zn=mn.expandedKeys,Rn=mn.childrenColumnName,yi=mn.onTriggerExpand,ti=mn.rowExpandable,gi=mn.onRow,Ri=mn.expandRowByClick,Oi=mn.rowClassName,Bi=jn==="nest",ir=jn==="row"&&(!ti||ti(ut)),Ti=ir||Bi,pr=zn&&zn.has(St),cr=Rn&&ut&&ut[Rn],xr=(0,nt.useEvent)(yi),so=gi==null?void 0:gi(ut,Yt),Eo=so==null?void 0:so.onClick,Mr=function(_r){Ri&&Ti&&yi(ut,_r);for(var Lr=arguments.length,qi=new Array(Lr>1?Lr-1:0),mr=1;mr<Lr;mr++)qi[mr-1]=arguments[mr];Eo==null||Eo.apply(void 0,[_r].concat(qi))},Zr;typeof Oi=="string"?Zr=Oi:typeof Oi=="function"&&(Zr=Oi(ut,Yt,Qt));var jo=Et(un);return(0,Ke.Z)((0,Ke.Z)({},mn),{},{columnsKey:jo,nestExpandable:Bi,expanded:pr,hasNestChildren:cr,record:ut,onTriggerExpand:xr,rowSupportExpand:ir,expandable:Ti,rowProps:(0,Ke.Z)((0,Ke.Z)({},so),{},{className:Xe()(Zr,so==null?void 0:so.className),onClick:Mr})})}function Xt(ut,St,Yt,Qt,mn){var un=ut.record,jn=ut.prefixCls,zn=ut.columnsKey,Rn=ut.fixedInfoList,yi=ut.expandIconColumnIndex,ti=ut.nestExpandable,gi=ut.indentSize,Ri=ut.expandIcon,Oi=ut.expanded,Bi=ut.hasNestChildren,ir=ut.onTriggerExpand,Ti=zn[Yt],pr=Rn[Yt],cr;Yt===(yi||0)&&ti&&(cr=be.createElement(be.Fragment,null,be.createElement("span",{style:{paddingLeft:"".concat(gi*Qt,"px")},className:"".concat(jn,"-row-indent indent-level-").concat(Qt)}),Ri({prefixCls:jn,expanded:Oi,expandable:Bi,record:un,onExpand:ir})));var xr;return St.onCell&&(xr=St.onCell(un,mn)),{key:Ti,fixedInfo:pr,appendCellNode:cr,additionalCellProps:xr||{}}}function Pn(ut){var St=ut.className,Yt=ut.style,Qt=ut.record,mn=ut.index,un=ut.renderIndex,jn=ut.rowKey,zn=ut.indent,Rn=zn===void 0?0:zn,yi=ut.rowComponent,ti=ut.cellComponent,gi=ut.scopeCellComponent,Ri=wt(Qt,jn,mn,Rn),Oi=Ri.prefixCls,Bi=Ri.flattenColumns,ir=Ri.expandedRowClassName,Ti=Ri.expandedRowRender,pr=Ri.rowProps,cr=Ri.expanded,xr=Ri.rowSupportExpand,so=be.useState(!1),Eo=(0,Ve.Z)(so,2),Mr=Eo[0],Zr=Eo[1];be.useEffect(function(){cr&&Zr(!0)},[cr]);var jo=be.createElement(yi,(0,tt.Z)({},pr,{"data-row-key":jn,className:Xe()(St,"".concat(Oi,"-row"),"".concat(Oi,"-row-level-").concat(Rn),pr==null?void 0:pr.className),style:(0,Ke.Z)((0,Ke.Z)({},Yt),pr==null?void 0:pr.style)}),Bi.map(function(qi,mr){var Qr=qi.render,bo=qi.dataIndex,Mo=qi.className,vr=Xt(Ri,qi,mr,Rn,mn),Ho=vr.key,Xo=vr.fixedInfo,ea=vr.appendCellNode,$o=vr.additionalCellProps;return be.createElement(_n,(0,tt.Z)({className:Mo,ellipsis:qi.ellipsis,align:qi.align,scope:qi.rowScope,component:qi.rowScope?gi:ti,prefixCls:Oi,key:Ho,record:Qt,index:mn,renderIndex:un,dataIndex:bo,render:Qr,shouldCellUpdate:qi.shouldCellUpdate},Xo,{appendNode:ea,additionalProps:$o}))})),Pr;if(xr&&(Mr||cr)){var _r=Ti(Qt,mn,Rn+1,cr),Lr=ir&&ir(Qt,mn,Rn);Pr=be.createElement(en,{expanded:cr,className:Xe()("".concat(Oi,"-expanded-row"),"".concat(Oi,"-expanded-row-level-").concat(Rn+1),Lr),prefixCls:Oi,component:yi,cellComponent:ti,colSpan:Bi.length,isEmpty:!1},_r)}return be.createElement(be.Fragment,null,jo,Pr)}Pn.displayName="BodyRow";var In=ve(Pn);function $n(ut){var St=ut.columnKey,Yt=ut.onColumnResize,Qt=be.useRef();return be.useEffect(function(){Qt.current&&Yt(St,Qt.current.offsetWidth)},[]),be.createElement(Oe.Z,{data:St},be.createElement("td",{ref:Qt,style:{padding:0,border:0,height:0}},be.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Pi(ut){var St=ut.prefixCls,Yt=ut.columnsKey,Qt=ut.onColumnResize;return be.createElement("tr",{"aria-hidden":"true",className:"".concat(St,"-measure-row"),style:{height:0,fontSize:0}},be.createElement(Oe.Z.Collection,{onBatchResize:function(un){un.forEach(function(jn){var zn=jn.data,Rn=jn.size;Qt(zn,Rn.offsetWidth)})}},Yt.map(function(mn){return be.createElement($n,{key:mn,columnKey:mn,onColumnResize:Qt})})))}function wn(ut){var St=ut.data,Yt=ut.measureColumnWidth,Qt=Je(xe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),mn=Qt.prefixCls,un=Qt.getComponent,jn=Qt.onColumnResize,zn=Qt.flattenColumns,Rn=Qt.getRowKey,yi=Qt.expandedKeys,ti=Qt.childrenColumnName,gi=Qt.emptyNode,Ri=pt(St,ti,yi,Rn),Oi=be.useRef({renderWithProps:!1}),Bi=un(["body","wrapper"],"tbody"),ir=un(["body","row"],"tr"),Ti=un(["body","cell"],"td"),pr=un(["body","cell"],"th"),cr;St.length?cr=Ri.map(function(so,Eo){var Mr=so.record,Zr=so.indent,jo=so.index,Pr=Rn(Mr,Eo);return be.createElement(In,{key:Pr,rowKey:Pr,record:Mr,index:Eo,renderIndex:jo,rowComponent:ir,cellComponent:Ti,scopeCellComponent:pr,getRowKey:Rn,indent:Zr})}):cr=be.createElement(en,{expanded:!0,className:"".concat(mn,"-placeholder"),prefixCls:mn,component:ir,cellComponent:Ti,colSpan:zn.length,isEmpty:!0},gi);var xr=Et(zn);return be.createElement(_t.Provider,{value:Oi.current},be.createElement(Bi,{className:"".concat(mn,"-tbody")},Yt&&be.createElement(Pi,{prefixCls:mn,columnsKey:xr,onColumnResize:jn}),cr))}wn.displayName="Body";var Ai=ve(wn),Vi=["expandable"],ur="RC_TABLE_INTERNAL_COL_DEFINE";function sr(ut){var St=ut.expandable,Yt=(0,Ln.Z)(ut,Vi),Qt;return"expandable"in ut?Qt=(0,Ke.Z)((0,Ke.Z)({},Yt),St):Qt=Yt,Qt.showExpandColumn===!1&&(Qt.expandIconColumnIndex=-1),Qt}var Qn=["columnType"];function Ci(ut){for(var St=ut.colWidths,Yt=ut.columns,Qt=ut.columCount,mn=[],un=Qt||Yt.length,jn=!1,zn=un-1;zn>=0;zn-=1){var Rn=St[zn],yi=Yt&&Yt[zn],ti=yi&&yi[ur];if(Rn||ti||jn){var gi=ti||{},Ri=gi.columnType,Oi=(0,Ln.Z)(gi,Qn);mn.unshift(be.createElement("col",(0,tt.Z)({key:zn,style:{width:Rn}},Oi))),jn=!0}}return be.createElement("colgroup",null,mn)}var er=Ci,ri=he(26390),tr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Di(ut,St){return(0,be.useMemo)(function(){for(var Yt=[],Qt=0;Qt<St;Qt+=1){var mn=ut[Qt];if(mn!==void 0)Yt[Qt]=mn;else return null}return Yt},[ut.join("_"),St])}var De=be.forwardRef(function(ut,St){var Yt=ut.className,Qt=ut.noData,mn=ut.columns,un=ut.flattenColumns,jn=ut.colWidths,zn=ut.columCount,Rn=ut.stickyOffsets,yi=ut.direction,ti=ut.fixHeader,gi=ut.stickyTopOffset,Ri=ut.stickyBottomOffset,Oi=ut.stickyClassName,Bi=ut.onScroll,ir=ut.maxContentScroll,Ti=ut.children,pr=(0,Ln.Z)(ut,tr),cr=Je(xe,["prefixCls","scrollbarSize","isSticky"]),xr=cr.prefixCls,so=cr.scrollbarSize,Eo=cr.isSticky,Mr=Eo&&!ti?0:so,Zr=be.useRef(null),jo=be.useCallback(function(Mo){(0,$e.mH)(St,Mo),(0,$e.mH)(Zr,Mo)},[]);be.useEffect(function(){var Mo;function vr(Ho){var Xo=Ho,ea=Xo.currentTarget,$o=Xo.deltaX;$o&&(Bi({currentTarget:ea,scrollLeft:ea.scrollLeft+$o}),Ho.preventDefault())}return(Mo=Zr.current)===null||Mo===void 0||Mo.addEventListener("wheel",vr),function(){var Ho;(Ho=Zr.current)===null||Ho===void 0||Ho.removeEventListener("wheel",vr)}},[]);var Pr=be.useMemo(function(){return un.every(function(Mo){return Mo.width})},[un]),_r=un[un.length-1],Lr={fixed:_r?_r.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(xr,"-cell-scrollbar")}}},qi=(0,be.useMemo)(function(){return Mr?[].concat((0,ri.Z)(mn),[Lr]):mn},[Mr,mn]),mr=(0,be.useMemo)(function(){return Mr?[].concat((0,ri.Z)(un),[Lr]):un},[Mr,un]),Qr=(0,be.useMemo)(function(){var Mo=Rn.right,vr=Rn.left;return(0,Ke.Z)((0,Ke.Z)({},Rn),{},{left:yi==="rtl"?[].concat((0,ri.Z)(vr.map(function(Ho){return Ho+Mr})),[0]):vr,right:yi==="rtl"?Mo:[].concat((0,ri.Z)(Mo.map(function(Ho){return Ho+Mr})),[0]),isSticky:Eo})},[Mr,Rn,Eo]),bo=Di(jn,zn);return be.createElement("div",{style:(0,Ke.Z)({overflow:"hidden"},Eo?{top:gi,bottom:Ri}:{}),ref:jo,className:Xe()(Yt,(0,Ze.Z)({},Oi,!!Oi))},be.createElement("table",{style:{tableLayout:"fixed",visibility:Qt||bo?null:"hidden"}},(!Qt||!ir||Pr)&&be.createElement(er,{colWidths:bo?[].concat((0,ri.Z)(bo),[Mr]):[],columCount:zn+1,columns:mr}),Ti((0,Ke.Z)((0,Ke.Z)({},pr),{},{stickyOffsets:Qr,columns:qi,flattenColumns:mr}))))});De.displayName="FixedHolder";var Yr=be.memo(De);function yr(ut){var St=ut.cells,Yt=ut.stickyOffsets,Qt=ut.flattenColumns,mn=ut.rowComponent,un=ut.cellComponent,jn=ut.tdCellComponent,zn=ut.onHeaderRow,Rn=ut.index,yi=Je(xe,["prefixCls","direction"]),ti=yi.prefixCls,gi=yi.direction,Ri;zn&&(Ri=zn(St.map(function(Bi){return Bi.column}),Rn));var Oi=Et(St.map(function(Bi){return Bi.column}));return be.createElement(mn,Ri,St.map(function(Bi,ir){var Ti=Bi.column,pr=Lt(Bi.colStart,Bi.colEnd,Qt,Yt,gi,Ti),cr;return Ti&&Ti.onHeaderCell&&(cr=Bi.column.onHeaderCell(Ti)),be.createElement(_n,(0,tt.Z)({},Bi,{scope:Ti.title?Bi.colSpan>1?"colgroup":"col":null,ellipsis:Ti.ellipsis,align:Ti.align,component:Ti.title?un:jn,prefixCls:ti,key:Oi[ir]},pr,{additionalProps:cr,rowType:"header"}))}))}yr.displayName="HeaderRow";var Dr=yr;function lo(ut){var St=[];function Yt(jn,zn){var Rn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;St[Rn]=St[Rn]||[];var yi=zn,ti=jn.filter(Boolean).map(function(gi){var Ri={key:gi.key,className:gi.className||"",children:gi.title,column:gi,colStart:yi},Oi=1,Bi=gi.children;return Bi&&Bi.length>0&&(Oi=Yt(Bi,yi,Rn+1).reduce(function(ir,Ti){return ir+Ti},0),Ri.hasSubColumns=!0),"colSpan"in gi&&(Oi=gi.colSpan),"rowSpan"in gi&&(Ri.rowSpan=gi.rowSpan),Ri.colSpan=Oi,Ri.colEnd=Ri.colStart+Oi-1,St[Rn].push(Ri),yi+=Oi,Oi});return ti}Yt(ut,0);for(var Qt=St.length,mn=function(zn){St[zn].forEach(function(Rn){!("rowSpan"in Rn)&&!Rn.hasSubColumns&&(Rn.rowSpan=Qt-zn)})},un=0;un<Qt;un+=1)mn(un);return St}function Wo(ut){var St=ut.stickyOffsets,Yt=ut.columns,Qt=ut.flattenColumns,mn=ut.onHeaderRow,un=Je(xe,["prefixCls","getComponent"]),jn=un.prefixCls,zn=un.getComponent,Rn=be.useMemo(function(){return lo(Yt)},[Yt]),yi=zn(["header","wrapper"],"thead"),ti=zn(["header","row"],"tr"),gi=zn(["header","cell"],"th"),Ri=zn(["header","cell"],"td");return be.createElement(yi,{className:"".concat(jn,"-thead")},Rn.map(function(Oi,Bi){var ir=be.createElement(Dr,{key:Bi,flattenColumns:Qt,cells:Oi,stickyOffsets:St,rowComponent:ti,cellComponent:gi,tdCellComponent:Ri,onHeaderRow:mn,index:Bi});return ir}))}var No=ve(Wo),ki=he(38298);function an(ut){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof St=="number"?St:St.endsWith("%")?ut*parseFloat(St)/100:null}function nn(ut,St){return be.useMemo(function(){if(St&&St>0){var Yt=0,Qt=0;ut.forEach(function(yi){var ti=an(St,yi.width);ti?Yt+=ti:Qt+=1});var mn=St-Yt,un=Qt,jn=mn/Qt,zn=0,Rn=ut.map(function(yi){var ti=(0,Ke.Z)({},yi),gi=an(St,ti.width);if(gi)ti.width=gi;else{var Ri=Math.floor(jn);ti.width=un===1?mn:Ri,mn-=Ri,un-=1}return zn+=ti.width,ti});return[Rn,zn]}return[ut,St]},[ut,St])}var Ut=["children"],bt=["fixed"];function xn(ut){return(0,ki.Z)(ut).filter(function(St){return be.isValidElement(St)}).map(function(St){var Yt=St.key,Qt=St.props,mn=Qt.children,un=(0,Ln.Z)(Qt,Ut),jn=(0,Ke.Z)({key:Yt},un);return mn&&(jn.children=xn(mn)),jn})}function hn(ut){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ut.filter(function(Yt){return Yt&&(0,ze.Z)(Yt)==="object"}).reduce(function(Yt,Qt,mn){var un=Qt.fixed,jn=un===!0?"left":un,zn="".concat(St,"-").concat(mn),Rn=Qt.children;return Rn&&Rn.length>0?[].concat((0,ri.Z)(Yt),(0,ri.Z)(hn(Rn,zn).map(function(yi){return(0,Ke.Z)({fixed:jn},yi)}))):[].concat((0,ri.Z)(Yt),[(0,Ke.Z)((0,Ke.Z)({key:zn},Qt),{},{fixed:jn})])},[])}function Tt(ut){for(var St=!0,Yt=0;Yt<ut.length;Yt+=1){var Qt=ut[Yt];if(St&&Qt.fixed!=="left")St=!1;else if(!St&&Qt.fixed==="left"){warning(!1,"Index ".concat(Yt-1," of `columns` missing `fixed='left'` prop."));break}}for(var mn=!0,un=ut.length-1;un>=0;un-=1){var jn=ut[un];if(mn&&jn.fixed!=="right")mn=!1;else if(!mn&&jn.fixed==="right"){warning(!1,"Index ".concat(un+1," of `columns` missing `fixed='right'` prop."));break}}}function ot(ut){return ut.map(function(St){var Yt=St.fixed,Qt=(0,Ln.Z)(St,bt),mn=Yt;return Yt==="left"?mn="right":Yt==="right"&&(mn="left"),(0,Ke.Z)({fixed:mn},Qt)})}function fn(ut,St){var Yt=ut.prefixCls,Qt=ut.columns,mn=ut.children,un=ut.expandable,jn=ut.expandedKeys,zn=ut.columnTitle,Rn=ut.getRowKey,yi=ut.onTriggerExpand,ti=ut.expandIcon,gi=ut.rowExpandable,Ri=ut.expandIconColumnIndex,Oi=ut.direction,Bi=ut.expandRowByClick,ir=ut.columnWidth,Ti=ut.fixed,pr=ut.scrollWidth,cr=be.useMemo(function(){return Qt||xn(mn)},[Qt,mn]),xr=be.useMemo(function(){if(un){var _r,Lr=cr.slice();if(!Lr.includes(pe)){var qi=Ri||0;qi>=0&&Lr.splice(qi,0,pe)}var mr=Lr.indexOf(pe);Lr=Lr.filter(function(vr,Ho){return vr!==pe||Ho===mr});var Qr=cr[mr],bo;(Ti==="left"||Ti)&&!Ri?bo="left":(Ti==="right"||Ti)&&Ri===cr.length?bo="right":bo=Qr?Qr.fixed:null;var Mo=(_r={},(0,Ze.Z)(_r,ur,{className:"".concat(Yt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ze.Z)(_r,"title",zn),(0,Ze.Z)(_r,"fixed",bo),(0,Ze.Z)(_r,"className","".concat(Yt,"-row-expand-icon-cell")),(0,Ze.Z)(_r,"width",ir),(0,Ze.Z)(_r,"render",function(Ho,Xo,ea){var $o=Rn(Xo,ea),Xa=jn.has($o),ga=gi?gi(Xo):!0,Ro=ti({prefixCls:Yt,expanded:Xa,expandable:ga,record:Xo,onExpand:yi});return Bi?be.createElement("span",{onClick:function(Bo){return Bo.stopPropagation()}},Ro):Ro}),_r);return Lr.map(function(vr){return vr===pe?Mo:vr})}return cr.filter(function(vr){return vr!==pe})},[un,cr,Rn,jn,ti,Oi]),so=be.useMemo(function(){var _r=xr;return St&&(_r=St(_r)),_r.length||(_r=[{render:function(){return null}}]),_r},[St,xr,Oi]),Eo=be.useMemo(function(){return Oi==="rtl"?ot(hn(so)):hn(so)},[so,Oi,pr]),Mr=nn(Eo,pr),Zr=(0,Ve.Z)(Mr,2),jo=Zr[0],Pr=Zr[1];return[so,jo,Pr]}var yn=fn;function li(ut){var St,Yt=ut.prefixCls,Qt=ut.record,mn=ut.onExpand,un=ut.expanded,jn=ut.expandable,zn="".concat(Yt,"-row-expand-icon");if(!jn)return be.createElement("span",{className:Xe()(zn,"".concat(Yt,"-row-spaced"))});var Rn=function(ti){mn(Qt,ti),ti.stopPropagation()};return be.createElement("span",{className:Xe()(zn,(St={},(0,Ze.Z)(St,"".concat(Yt,"-row-expanded"),un),(0,Ze.Z)(St,"".concat(Yt,"-row-collapsed"),!un),St)),onClick:Rn})}function vn(ut,St,Yt){var Qt=[];function mn(un){(un||[]).forEach(function(jn,zn){Qt.push(St(jn,zn)),mn(jn[Yt])})}return mn(ut),Qt}function at(ut,St,Yt){var Qt=sr(ut),mn=Qt.expandIcon,un=Qt.expandedRowKeys,jn=Qt.defaultExpandedRowKeys,zn=Qt.defaultExpandAllRows,Rn=Qt.expandedRowRender,yi=Qt.onExpand,ti=Qt.onExpandedRowsChange,gi=Qt.childrenColumnName,Ri=mn||li,Oi=gi||"children",Bi=be.useMemo(function(){return Rn?"row":ut.expandable&&ut.internalHooks===Ie&&ut.expandable.__PARENT_RENDER_ICON__||St.some(function(Eo){return Eo&&(0,ze.Z)(Eo)==="object"&&Eo[Oi]})?"nest":!1},[!!Rn,St]),ir=be.useState(function(){return jn||(zn?vn(St,Yt,Oi):[])}),Ti=(0,Ve.Z)(ir,2),pr=Ti[0],cr=Ti[1],xr=be.useMemo(function(){return new Set(un||pr||[])},[un,pr]),so=be.useCallback(function(Eo){var Mr=Yt(Eo,St.indexOf(Eo)),Zr,jo=xr.has(Mr);jo?(xr.delete(Mr),Zr=(0,ri.Z)(xr)):Zr=[].concat((0,ri.Z)(xr),[Mr]),cr(Zr),yi&&yi(!jo,Eo),ti&&ti(Zr)},[Yt,xr,St,yi,ti]);return[Qt,Bi,xr,Ri,Oi,so]}function Bn(ut,St,Yt,Qt){var mn=ut.map(function(un,jn){return Lt(jn,jn,ut,St,Yt,Qt==null?void 0:Qt[jn])});return(0,Ft.Z)(function(){return mn},[mn],function(un,jn){return!(0,it.Z)(un,jn)})}function pi(ut){var St=(0,be.useRef)(ut),Yt=(0,be.useState)({}),Qt=(0,Ve.Z)(Yt,2),mn=Qt[1],un=(0,be.useRef)(null),jn=(0,be.useRef)([]);function zn(Rn){jn.current.push(Rn);var yi=Promise.resolve();un.current=yi,yi.then(function(){if(un.current===yi){var ti=jn.current,gi=St.current;jn.current=[],ti.forEach(function(Ri){St.current=Ri(St.current)}),un.current=null,gi!==St.current&&mn({})}})}return(0,be.useEffect)(function(){return function(){un.current=null}},[]),[St.current,zn]}function Li(ut){var St=(0,be.useRef)(ut||null),Yt=(0,be.useRef)();function Qt(){window.clearTimeout(Yt.current)}function mn(jn){St.current=jn,Qt(),Yt.current=window.setTimeout(function(){St.current=null,Yt.current=void 0},100)}function un(){return St.current}return(0,be.useEffect)(function(){return Qt},[]),[mn,un]}function qt(){var ut=be.useState(-1),St=(0,Ve.Z)(ut,2),Yt=St[0],Qt=St[1],mn=be.useState(-1),un=(0,Ve.Z)(mn,2),jn=un[0],zn=un[1],Rn=be.useCallback(function(yi,ti){Qt(yi),zn(ti)},[]);return[Yt,jn,Rn]}var Nn=he(87746),on=(0,Nn.Z)()?window:null;function Sn(ut,St){var Yt=(0,ze.Z)(ut)==="object"?ut:{},Qt=Yt.offsetHeader,mn=Qt===void 0?0:Qt,un=Yt.offsetSummary,jn=un===void 0?0:un,zn=Yt.offsetScroll,Rn=zn===void 0?0:zn,yi=Yt.getContainer,ti=yi===void 0?function(){return on}:yi,gi=ti()||on;return be.useMemo(function(){var Ri=!!ut;return{isSticky:Ri,stickyClassName:Ri?"".concat(St,"-sticky-holder"):"",offsetHeader:mn,offsetSummary:jn,offsetScroll:Rn,container:gi}},[Rn,mn,jn,St,gi])}function Fn(ut,St,Yt){var Qt=(0,be.useMemo)(function(){for(var mn=[],un=[],jn=0,zn=0,Rn=0;Rn<St;Rn+=1)if(Yt==="rtl"){un[Rn]=zn,zn+=ut[Rn]||0;var yi=St-Rn-1;mn[yi]=jn,jn+=ut[yi]||0}else{mn[Rn]=jn,jn+=ut[Rn]||0;var ti=St-Rn-1;un[ti]=zn,zn+=ut[ti]||0}return{left:mn,right:un}},[ut,St,Yt]);return Qt}var En=Fn;function kn(ut){var St=ut.className,Yt=ut.children;return be.createElement("div",{className:St},Yt)}var Zn=kn,Jn=he(8178),si=he(21783),Tn=function(St,Yt){var Qt,mn,un=St.scrollBodyRef,jn=St.onScroll,zn=St.offsetScroll,Rn=St.container,yi=Je(xe,"prefixCls"),ti=((Qt=un.current)===null||Qt===void 0?void 0:Qt.scrollWidth)||0,gi=((mn=un.current)===null||mn===void 0?void 0:mn.clientWidth)||0,Ri=ti&&gi*(gi/ti),Oi=be.useRef(),Bi=pi({scrollLeft:0,isHiddenScrollBar:!1}),ir=(0,Ve.Z)(Bi,2),Ti=ir[0],pr=ir[1],cr=be.useRef({delta:0,x:0}),xr=be.useState(!1),so=(0,Ve.Z)(xr,2),Eo=so[0],Mr=so[1],Zr=function(){Mr(!1)},jo=function(mr){mr.persist(),cr.current.delta=mr.pageX-Ti.scrollLeft,cr.current.x=0,Mr(!0),mr.preventDefault()},Pr=function(mr){var Qr,bo=mr||((Qr=window)===null||Qr===void 0?void 0:Qr.event),Mo=bo.buttons;if(!Eo||Mo===0){Eo&&Mr(!1);return}var vr=cr.current.x+mr.pageX-cr.current.x-cr.current.delta;vr<=0&&(vr=0),vr+Ri>=gi&&(vr=gi-Ri),jn({scrollLeft:vr/gi*(ti+2)}),cr.current.x=mr.pageX},_r=function(){if(un.current){var mr=(0,si.os)(un.current).top,Qr=mr+un.current.offsetHeight,bo=Rn===window?document.documentElement.scrollTop+window.innerHeight:(0,si.os)(Rn).top+Rn.clientHeight;Qr-(0,ke.Z)()<=bo||mr>=bo-zn?pr(function(Mo){return(0,Ke.Z)((0,Ke.Z)({},Mo),{},{isHiddenScrollBar:!0})}):pr(function(Mo){return(0,Ke.Z)((0,Ke.Z)({},Mo),{},{isHiddenScrollBar:!1})})}},Lr=function(mr){pr(function(Qr){return(0,Ke.Z)((0,Ke.Z)({},Qr),{},{scrollLeft:mr/ti*gi||0})})};return be.useImperativeHandle(Yt,function(){return{setScrollLeft:Lr}}),be.useEffect(function(){var qi=(0,Jn.Z)(document.body,"mouseup",Zr,!1),mr=(0,Jn.Z)(document.body,"mousemove",Pr,!1);return _r(),function(){qi.remove(),mr.remove()}},[Ri,Eo]),be.useEffect(function(){var qi=(0,Jn.Z)(Rn,"scroll",_r,!1),mr=(0,Jn.Z)(window,"resize",_r,!1);return function(){qi.remove(),mr.remove()}},[Rn]),be.useEffect(function(){Ti.isHiddenScrollBar||pr(function(qi){var mr=un.current;return mr?(0,Ke.Z)((0,Ke.Z)({},qi),{},{scrollLeft:mr.scrollLeft/mr.scrollWidth*mr.clientWidth}):qi})},[Ti.isHiddenScrollBar]),ti<=gi||!Ri||Ti.isHiddenScrollBar?null:be.createElement("div",{style:{height:(0,ke.Z)(),width:gi,bottom:zn},className:"".concat(yi,"-sticky-scroll")},be.createElement("div",{onMouseDown:jo,ref:Oi,className:Xe()("".concat(yi,"-sticky-scroll-bar"),(0,Ze.Z)({},"".concat(yi,"-sticky-scroll-bar-active"),Eo)),style:{width:"".concat(Ri,"px"),transform:"translate3d(".concat(Ti.scrollLeft,"px, 0, 0)")}}))},mi=be.forwardRef(Tn);function nr(ut){return null}var Br=nr;function rr(ut){return null}var Jt=rr,Fi="rc-table",Si=[],Wi={};function Nr(){return"No Data"}function br(ut){var St,Yt=(0,Ke.Z)({rowKey:"key",prefixCls:Fi,emptyText:Nr},ut),Qt=Yt.prefixCls,mn=Yt.className,un=Yt.rowClassName,jn=Yt.style,zn=Yt.data,Rn=Yt.rowKey,yi=Yt.scroll,ti=Yt.tableLayout,gi=Yt.direction,Ri=Yt.title,Oi=Yt.footer,Bi=Yt.summary,ir=Yt.caption,Ti=Yt.id,pr=Yt.showHeader,cr=Yt.components,xr=Yt.emptyText,so=Yt.onRow,Eo=Yt.onHeaderRow,Mr=Yt.internalHooks,Zr=Yt.transformColumns,jo=Yt.internalRefs,Pr=Yt.tailor,_r=Yt.sticky,Lr=zn||Si,qi=!!Lr.length,mr=Mr===Ie,Qr=be.useCallback(function(Za,Cs){return(0,Ct.Z)(cr,Za)||Cs},[cr]),bo=be.useMemo(function(){return typeof Rn=="function"?Rn:function(Za){var Cs=Za&&Za[Rn];return Cs}},[Rn]),Mo=Qr(["body"]),vr=qt(),Ho=(0,Ve.Z)(vr,3),Xo=Ho[0],ea=Ho[1],$o=Ho[2],Xa=at(Yt,Lr,bo),ga=(0,Ve.Z)(Xa,6),Ro=ga[0],po=ga[1],Bo=ga[2],Ga=ga[3],Ta=ga[4],es=ga[5],To=yi==null?void 0:yi.x,Po=be.useState(0),zo=(0,Ve.Z)(Po,2),co=zo[0],Ur=zo[1],Hi=yn((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},Yt),Ro),{},{expandable:!!Ro.expandedRowRender,columnTitle:Ro.columnTitle,expandedKeys:Bo,getRowKey:bo,onTriggerExpand:es,expandIcon:Ga,expandIconColumnIndex:Ro.expandIconColumnIndex,direction:gi,scrollWidth:mr&&Pr&&typeof To=="number"?To:null}),mr?Zr:null),Tr=(0,Ve.Z)(Hi,3),Ko=Tr[0],ua=Tr[1],il=Tr[2],zs=il!=null?il:To,yl=be.useMemo(function(){return{columns:Ko,flattenColumns:ua}},[Ko,ua]),Da=be.useRef(),Ka=be.useRef(),Fo=be.useRef(),Gs=be.useRef(),Sl=be.useRef(),ja=be.useState(!1),_a=(0,Ve.Z)(ja,2),ts=_a[0],ws=_a[1],Ks=be.useState(!1),ya=(0,Ve.Z)(Ks,2),os=ya[0],_s=ya[1],Va=pi(new Map),Oo=(0,Ve.Z)(Va,2),Ls=Oo[0],Vs=Oo[1],Mu=Et(ua),su=Mu.map(function(Za){return Ls.get(Za)}),Ja=be.useMemo(function(){return su},[su.join("_")]),xl=En(Ja,ua.length,gi),ys=yi&&ln(yi.y),gs=yi&&ln(zs)||!!Ro.fixed,mu=gs&&ua.some(function(Za){var Cs=Za.fixed;return Cs}),fc=be.useRef(),Yl=Sn(_r,Qt),Ju=Yl.isSticky,Qu=Yl.offsetHeader,lu=Yl.offsetSummary,Oa=Yl.offsetScroll,as=Yl.stickyClassName,Js=Yl.container,ps=be.useMemo(function(){return Bi==null?void 0:Bi(Lr)},[Bi,Lr]),Ia=(ys||Ju)&&be.isValidElement(ps)&&ps.type===Ye&&ps.props.fixed,Qs,Bl,Lu;ys&&(Bl={overflowY:"scroll",maxHeight:yi.y}),gs&&(Qs={overflowX:"auto"},ys||(Bl={overflowY:"hidden"}),Lu={width:zs===!0?"auto":zs,minWidth:"100%"});var ah=be.useCallback(function(Za,Cs){(0,we.Z)(Da.current)&&Vs(function(Al){if(Al.get(Za)!==Cs){var yu=new Map(Al);return yu.set(Za,Cs),yu}return Al})},[]),cn=Li(null),Mc=(0,Ve.Z)(cn,2),gc=Mc[0],Rh=Mc[1];function vd(Za,Cs){Cs&&(typeof Cs=="function"?Cs(Za):Cs.scrollLeft!==Za&&(Cs.scrollLeft=Za,Cs.scrollLeft!==Za&&setTimeout(function(){Cs.scrollLeft=Za},0)))}var Hc=(0,st.Z)(function(Za){var Cs=Za.currentTarget,Al=Za.scrollLeft,yu=gi==="rtl",Su=typeof Al=="number"?Al:Cs.scrollLeft,uh=Cs||Wi;if(!Rh()||Rh()===uh){var Gc;gc(uh),vd(Su,Ka.current),vd(Su,Fo.current),vd(Su,Sl.current),vd(Su,(Gc=fc.current)===null||Gc===void 0?void 0:Gc.setScrollLeft)}var Gd=Cs||Ka.current;if(Gd){var Iu=Gd.scrollWidth,qu=Gd.clientWidth;if(Iu===qu){ws(!1),_s(!1);return}yu?(ws(-Su<Iu-qu),_s(-Su>0)):(ws(Su>0),_s(Su<Iu-qu))}}),Lc=function(){gs&&Fo.current?Hc({currentTarget:Fo.current}):(ws(!1),_s(!1))},ff=function(Cs){var Al=Cs.width;Al!==co&&(Lc(),Ur(Da.current?Da.current.offsetWidth:Al))},bl=be.useRef(!1);be.useEffect(function(){bl.current&&Lc()},[gs,zn,Ko.length]),be.useEffect(function(){bl.current=!0},[]);var od=be.useState(0),Od=(0,Ve.Z)(od,2),Id=Od[0],Rd=Od[1],gf=be.useState(!0),zd=(0,Ve.Z)(gf,2),jd=zd[0],vu=zd[1];be.useEffect(function(){(!Pr||!mr)&&(Fo.current instanceof Element?Rd((0,ke.o)(Fo.current).width):Rd((0,ke.o)(Gs.current).width)),vu((0,ye.G)("position","sticky"))},[]),be.useEffect(function(){mr&&jo&&(jo.body.current=Fo.current)});var Wc=be.useCallback(function(Za){return be.createElement(be.Fragment,null,be.createElement(No,Za),Ia==="top"&&be.createElement(Gt,Za,ps))},[Ia,ps]),zh=be.useCallback(function(Za){return be.createElement(Gt,Za,ps)},[ps]),$u=Qr(["table"],"table"),Zc=be.useMemo(function(){return ti||(mu?zs==="max-content"?"auto":"fixed":ys||Ju||ua.some(function(Za){var Cs=Za.ellipsis;return Cs})?"fixed":"auto")},[ys,mu,ua,ti,Ju]),ad,sd={colWidths:Ja,columCount:ua.length,stickyOffsets:xl,onHeaderRow:Eo,fixHeader:ys,scroll:yi},Ul=be.useMemo(function(){return qi?null:typeof xr=="function"?xr():xr},[qi,xr]),sh=be.createElement(Ai,{data:Lr,measureColumnWidth:ys||gs||Ju}),Hd=be.createElement(er,{colWidths:ua.map(function(Za){var Cs=Za.width;return Cs}),columns:ua}),uu=ir!=null?be.createElement("caption",{className:"".concat(Qt,"-caption")},ir):void 0,yd=(0,Ge.Z)(Yt,{data:!0}),Wd=(0,Ge.Z)(Yt,{aria:!0});if(ys||Ju){var lh;typeof Mo=="function"?(lh=Mo(Lr,{scrollbarSize:Id,ref:Fo,onScroll:Hc}),sd.colWidths=ua.map(function(Za,Cs){var Al=Za.width,yu=Cs===ua.length-1?Al-Id:Al;return typeof yu=="number"&&!Number.isNaN(yu)?yu:0})):lh=be.createElement("div",{style:(0,Ke.Z)((0,Ke.Z)({},Qs),Bl),onScroll:Hc,ref:Fo,className:Xe()("".concat(Qt,"-body"))},be.createElement($u,(0,tt.Z)({style:(0,Ke.Z)((0,Ke.Z)({},Lu),{},{tableLayout:Zc})},Wd),uu,Hd,sh,!Ia&&ps&&be.createElement(Gt,{stickyOffsets:xl,flattenColumns:ua,columns:Ko},ps)));var Fc=(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({noData:!Lr.length,maxContentScroll:gs&&zs==="max-content"},sd),yl),{},{direction:gi,stickyClassName:as,onScroll:Hc});ad=be.createElement(be.Fragment,null,pr!==!1&&be.createElement(Yr,(0,tt.Z)({},Fc,{stickyTopOffset:Qu,className:"".concat(Qt,"-header"),ref:Ka}),Wc),lh,Ia&&Ia!=="top"&&be.createElement(Yr,(0,tt.Z)({},Fc,{stickyBottomOffset:lu,className:"".concat(Qt,"-summary"),ref:Sl}),zh),Ju&&be.createElement(mi,{ref:fc,offsetScroll:Oa,scrollBodyRef:Fo,onScroll:Hc,container:Js}))}else ad=be.createElement("div",{style:(0,Ke.Z)((0,Ke.Z)({},Qs),Bl),className:Xe()("".concat(Qt,"-content")),onScroll:Hc,ref:Fo},be.createElement($u,(0,tt.Z)({style:(0,Ke.Z)((0,Ke.Z)({},Lu),{},{tableLayout:Zc})},Wd),uu,Hd,pr!==!1&&be.createElement(No,(0,tt.Z)({},sd,yl)),sh,ps&&be.createElement(Gt,{stickyOffsets:xl,flattenColumns:ua,columns:Ko},ps)));var Nl=be.createElement("div",(0,tt.Z)({className:Xe()(Qt,mn,(St={},(0,Ze.Z)(St,"".concat(Qt,"-rtl"),gi==="rtl"),(0,Ze.Z)(St,"".concat(Qt,"-ping-left"),ts),(0,Ze.Z)(St,"".concat(Qt,"-ping-right"),os),(0,Ze.Z)(St,"".concat(Qt,"-layout-fixed"),ti==="fixed"),(0,Ze.Z)(St,"".concat(Qt,"-fixed-header"),ys),(0,Ze.Z)(St,"".concat(Qt,"-fixed-column"),mu),(0,Ze.Z)(St,"".concat(Qt,"-scroll-horizontal"),gs),(0,Ze.Z)(St,"".concat(Qt,"-has-fix-left"),ua[0]&&ua[0].fixed),(0,Ze.Z)(St,"".concat(Qt,"-has-fix-right"),ua[ua.length-1]&&ua[ua.length-1].fixed==="right"),St)),style:jn,id:Ti,ref:Da},yd),Ri&&be.createElement(Zn,{className:"".concat(Qt,"-title")},Ri(Lr)),be.createElement("div",{ref:Gs,className:"".concat(Qt,"-container")},ad),Oi&&be.createElement(Zn,{className:"".concat(Qt,"-footer")},Oi(Lr)));gs&&(Nl=be.createElement(Oe.Z,{onResize:ff},Nl));var Zd=Bn(ua,xl,gi,Ko),rl=be.useMemo(function(){return{scrollX:zs,prefixCls:Qt,getComponent:Qr,scrollbarSize:Id,direction:gi,fixedInfoList:Zd,isSticky:Ju,supportSticky:jd,componentWidth:co,fixHeader:ys,fixColumn:mu,horizonScroll:gs,tableLayout:Zc,rowClassName:un,expandedRowClassName:Ro.expandedRowClassName,expandIcon:Ga,expandableType:po,expandRowByClick:Ro.expandRowByClick,expandedRowRender:Ro.expandedRowRender,onTriggerExpand:es,expandIconColumnIndex:Ro.expandIconColumnIndex,indentSize:Ro.indentSize,allColumnsFixedLeft:ua.every(function(Za){return Za.fixed==="left"}),emptyNode:Ul,columns:Ko,flattenColumns:ua,onColumnResize:ah,hoverStartRow:Xo,hoverEndRow:ea,onHover:$o,rowExpandable:Ro.rowExpandable,onRow:so,getRowKey:bo,expandedKeys:Bo,childrenColumnName:Ta}},[zs,Qt,Qr,Id,gi,Zd,Ju,jd,co,ys,mu,gs,Zc,un,Ro.expandedRowClassName,Ga,po,Ro.expandRowByClick,Ro.expandedRowRender,es,Ro.expandIconColumnIndex,Ro.indentSize,Ul,Ko,ua,ah,Xo,ea,$o,Ro.rowExpandable,so,bo,Bo,Ta]);return be.createElement(xe.Provider,{value:rl},Nl)}function Ir(ut){return de(br,ut)}var hr=Ir();hr.EXPAND_COLUMN=pe,hr.INTERNAL_HOOKS=Ie,hr.Column=Br,hr.ColumnGroup=Jt,hr.Summary=ft;var Ui=hr,Jr=he(21881),An=vt(null),Co=vt(null);function Wn(ut,St,Yt){var Qt=St||1;return Yt[ut+Qt]-(Yt[ut]||0)}function Hr(ut){var St=ut.rowInfo,Yt=ut.column,Qt=ut.colIndex,mn=ut.indent,un=ut.index,jn=ut.renderIndex,zn=ut.record,Rn=ut.style,yi=ut.className,ti=ut.inverse,gi=ut.getHeight,Ri=Yt.render,Oi=Yt.dataIndex,Bi=Yt.className,ir=Yt.width,Ti=Je(Co,["columnsOffset"]),pr=Ti.columnsOffset,cr=Xt(St,Yt,Qt,mn,un),xr=cr.key,so=cr.fixedInfo,Eo=cr.appendCellNode,Mr=cr.additionalCellProps,Zr=Mr.style,jo=Mr.colSpan,Pr=jo===void 0?1:jo,_r=Mr.rowSpan,Lr=_r===void 0?1:_r,qi=Qt-1,mr=Wn(qi,Pr,pr),Qr=Pr>1?ir-mr:0,bo=(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},Zr),Rn),{},{flex:"0 0 ".concat(mr,"px"),width:"".concat(mr,"px"),marginRight:Qr,pointerEvents:"auto"}),Mo=be.useMemo(function(){return ti?Lr<=1:Pr===0||Lr===0||Lr>1},[Lr,Pr,ti]);Mo?bo.visibility="hidden":ti&&(bo.height=gi==null?void 0:gi(Lr));var vr=Mo?function(){return null}:Ri,Ho={};return(Lr===0||Pr===0)&&(Ho.rowSpan=1,Ho.colSpan=1),be.createElement(_n,(0,tt.Z)({className:Xe()(Bi,yi),ellipsis:Yt.ellipsis,align:Yt.align,scope:Yt.rowScope,component:"div",prefixCls:St.prefixCls,key:xr,record:zn,index:un,renderIndex:jn,dataIndex:Oi,render:vr,shouldCellUpdate:Yt.shouldCellUpdate},so,{appendNode:Eo,additionalProps:(0,Ke.Z)((0,Ke.Z)({},Mr),{},{style:bo},Ho)}))}var ha=Hr,yo=["data","index","className","rowKey","style","extra","getHeight"],Ot=be.forwardRef(function(ut,St){var Yt=ut.data,Qt=ut.index,mn=ut.className,un=ut.rowKey,jn=ut.style,zn=ut.extra,Rn=ut.getHeight,yi=(0,Ln.Z)(ut,yo),ti=Yt.record,gi=Yt.indent,Ri=Yt.index,Oi=Je(xe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Bi=Oi.scrollX,ir=Oi.flattenColumns,Ti=Oi.prefixCls,pr=Oi.fixColumn,cr=Oi.componentWidth,xr=wt(ti,un,Qt,gi),so=xr.rowSupportExpand,Eo=xr.expanded,Mr=xr.rowProps,Zr=xr.expandedRowRender,jo=xr.expandedRowClassName,Pr;if(so&&Eo){var _r=Zr(ti,Qt,gi+1,Eo),Lr=jo==null?void 0:jo(ti,Qt,gi),qi={};pr&&(qi={style:(0,Ze.Z)({},"--virtual-width","".concat(cr,"px"))});var mr="".concat(Ti,"-expanded-row-cell");Pr=be.createElement("div",{className:Xe()("".concat(Ti,"-expanded-row"),"".concat(Ti,"-expanded-row-level-").concat(gi+1),Lr)},be.createElement(_n,{component:"div",prefixCls:Ti,className:Xe()(mr,(0,Ze.Z)({},"".concat(mr,"-fixed"),pr)),additionalProps:qi},_r))}var Qr=(0,Ke.Z)((0,Ke.Z)({},jn),{},{width:Bi});zn&&(Qr.position="absolute",Qr.pointerEvents="none");var bo=be.createElement("div",(0,tt.Z)({},Mr,yi,{ref:so?null:St,className:Xe()(mn,"".concat(Ti,"-row"),Mr==null?void 0:Mr.className,(0,Ze.Z)({},"".concat(Ti,"-row-extra"),zn)),style:(0,Ke.Z)((0,Ke.Z)({},Qr),Mr==null?void 0:Mr.style)}),ir.map(function(Mo,vr){return be.createElement(ha,{key:vr,rowInfo:xr,column:Mo,colIndex:vr,indent:gi,index:Qt,renderIndex:Ri,record:ti,inverse:zn,getHeight:Rn})}));return so?be.createElement("div",{ref:St},bo,Pr):bo}),di=ve(Ot),Mn=di,qn=be.forwardRef(function(ut,St){var Yt=ut.data,Qt=ut.onScroll,mn=Je(xe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),un=mn.flattenColumns,jn=mn.onColumnResize,zn=mn.getRowKey,Rn=mn.expandedKeys,yi=mn.prefixCls,ti=mn.childrenColumnName,gi=mn.emptyNode,Ri=mn.scrollX,Oi=Je(An),Bi=Oi.scrollY,ir=Oi.listItemHeight,Ti=be.useRef(),pr=pt(Yt,ti,Rn,zn),cr=be.useMemo(function(){var Pr=0;return un.map(function(_r){var Lr=_r.width,qi=_r.key;return Pr+=Lr,[qi,Lr,Pr]})},[un]),xr=be.useMemo(function(){return cr.map(function(Pr){return Pr[2]})},[cr]);be.useEffect(function(){cr.forEach(function(Pr){var _r=(0,Ve.Z)(Pr,2),Lr=_r[0],qi=_r[1];jn(Lr,qi)})},[cr]),be.useImperativeHandle(St,function(){var Pr={};return Object.defineProperty(Pr,"scrollLeft",{get:function(){var Lr;return((Lr=Ti.current)===null||Lr===void 0?void 0:Lr.getScrollInfo().x)||0},set:function(Lr){var qi;(qi=Ti.current)===null||qi===void 0||qi.scrollTo({left:Lr})}}),Pr});var so=function(_r,Lr){var qi,mr=(qi=pr[Lr])===null||qi===void 0?void 0:qi.record,Qr=_r.onCell;if(Qr){var bo,Mo=Qr(mr,Lr);return(bo=Mo==null?void 0:Mo.rowSpan)!==null&&bo!==void 0?bo:1}return 1},Eo=function(_r){var Lr=_r.start,qi=_r.end,mr=_r.getSize,Qr=_r.offsetY;if(qi<0)return null;for(var bo=un.filter(function(To){return so(To,Lr)===0}),Mo=Lr,vr=function(Po){if(bo=bo.filter(function(zo){return so(zo,Po)===0}),!bo.length)return Mo=Po,"break"},Ho=Lr;Ho>=0;Ho-=1){var Xo=vr(Ho);if(Xo==="break")break}for(var ea=un.filter(function(To){return so(To,qi)!==1}),$o=qi,Xa=function(Po){if(ea=ea.filter(function(zo){return so(zo,Po)!==1}),!ea.length)return $o=Math.max(Po-1,qi),"break"},ga=qi;ga<pr.length;ga+=1){var Ro=Xa(ga);if(Ro==="break")break}for(var po=[],Bo=function(Po){var zo=pr[Po];if(!zo)return"continue";un.some(function(co){return so(co,Po)>1})&&po.push(Po)},Ga=Mo;Ga<=$o;Ga+=1)var Ta=Bo(Ga);var es=po.map(function(To){var Po=pr[To],zo=zn(Po.record,To),co=function(Tr){var Ko=To+Tr-1,ua=zn(pr[Ko].record,Ko),il=mr(zo,ua);return il.bottom-il.top},Ur=mr(zo);return be.createElement(Mn,{key:To,data:Po,rowKey:zo,index:To,style:{top:-Qr+Ur.top},extra:!0,getHeight:co})});return es},Mr=be.useMemo(function(){return{columnsOffset:xr}},[xr]),Zr="".concat(yi,"-tbody"),jo;return pr.length?jo=be.createElement(Jr.Z,{fullHeight:!1,ref:Ti,className:Xe()(Zr,"".concat(Zr,"-virtual")),height:Bi,itemHeight:ir||24,data:pr,itemKey:function(_r){return zn(_r.record)},scrollWidth:Ri,onVirtualScroll:function(_r){var Lr=_r.x;Qt({scrollLeft:Lr})},extraRender:Eo},function(Pr,_r,Lr){var qi=zn(Pr.record,_r);return be.createElement(Mn,(0,tt.Z)({data:Pr,rowKey:qi,index:_r},Lr))}):jo=be.createElement("div",{className:Xe()("".concat(yi,"-placeholder"))},be.createElement(_n,{component:"div",prefixCls:yi},gi)),be.createElement(Co.Provider,{value:Mr},jo)}),Ar=ve(qn),Sr=Ar,Kn=function(St,Yt){var Qt=Yt.ref,mn=Yt.onScroll;return be.createElement(Sr,{ref:Qt,data:St,onScroll:mn})},qe=100;function _i(ut){var St=ut.columns,Yt=ut.scroll,Qt=ut.prefixCls,mn=Qt===void 0?Fi:Qt,un=ut.className,jn=ut.listItemHeight,zn=Yt||{},Rn=zn.x,yi=zn.y;typeof Rn!="number"&&(Rn=((St||[]).length+1)*qe),typeof yi!="number"&&(yi=500);var ti=be.useMemo(function(){return{scrollY:yi,listItemHeight:jn}},[yi,jn]);return be.createElement(An.Provider,{value:ti},be.createElement(Ui,(0,tt.Z)({},ut,{className:Xe()(un,"".concat(mn,"-virtual")),scroll:(0,Ke.Z)((0,Ke.Z)({},Yt),{},{x:Rn}),components:{body:Kn},columns:St,internalHooks:Ie,tailor:!0})))}function uo(ut){return de(_i,ut)}var wr=uo(),Uo=null;function Er(ut){return null}var fr=Er;function ho(ut){return null}var ro=ho,Gr=he(64002),_o=he(68031),lr=he(36355),$i=he(93891),kr=he(19716),oi=he(8628),Ao=he(31724),Jo=he(25700),Fa=he(71418),na=he(88088);function ia(ut){return function(Yt){let{prefixCls:Qt,onExpand:mn,record:un,expanded:jn,expandable:zn}=Yt;const Rn=`${Qt}-row-expand-icon`;return be.createElement("button",{type:"button",onClick:yi=>{mn(un,yi),yi.stopPropagation()},className:Xe()(Rn,{[`${Rn}-spaced`]:!zn,[`${Rn}-expanded`]:zn&&jn,[`${Rn}-collapsed`]:zn&&!jn}),"aria-label":jn?ut.collapse:ut.expand,"aria-expanded":jn})}}var xa=ia;function fo(ut,St){return"key"in ut&&ut.key!==void 0&&ut.key!==null?ut.key:ut.dataIndex?Array.isArray(ut.dataIndex)?ut.dataIndex.join("."):ut.dataIndex:St}function qa(ut,St){return St?`${St}-${ut}`:`${ut}`}function bs(ut,St){return typeof ut=="function"?ut(St):ut}function So(ut,St){const Yt=bs(ut,St);return Object.prototype.toString.call(Yt)==="[object Object]"?"":Yt}var Cn={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"},cs=Cn,Ya=he(88853),Ss=function(St,Yt){return be.createElement(Ya.Z,(0,tt.Z)({},St,{ref:Yt,icon:cs}))},Lo=be.forwardRef(Ss),fa=Lo,Pa=he(56762);function sa(ut){const St=be.useRef(ut),Yt=(0,Pa.Z)();return[()=>St.current,Qt=>{St.current=Qt,Yt()}]}var vo=he(3113),aa=he(24905),is=he(38854),qr=he(64165),gr=he(20834),zr=he(40875),Yn=he(5112),Fr=he(86914),io=he(21970),qo=he(92832);function Xs(ut){let{value:St,onChange:Yt,filterSearch:Qt,tablePrefixCls:mn,locale:un}=ut;return Qt?be.createElement("div",{className:`${mn}-filter-dropdown-search`},be.createElement(qo.default,{prefix:be.createElement(io.Z,null),placeholder:un.filterSearchPlaceholder,onChange:Yt,value:St,htmlSize:1,className:`${mn}-filter-dropdown-search-input`})):null}var Kl=Xs,Zi=he(85108);const $a=ut=>{const{keyCode:St}=ut;St===Zi.Z.ENTER&&ut.stopPropagation()};var Rl=be.forwardRef((ut,St)=>be.createElement("div",{className:ut.className,onClick:Yt=>Yt.stopPropagation(),onKeyDown:$a,ref:St},ut.children));function zl(ut){let St=[];return(ut||[]).forEach(Yt=>{let{value:Qt,children:mn}=Yt;St.push(Qt),mn&&(St=[].concat((0,ri.Z)(St),(0,ri.Z)(zl(mn))))}),St}function Vl(ut){return ut.some(St=>{let{children:Yt}=St;return Yt})}function xo(ut,St){return typeof St=="string"||typeof St=="number"?St==null?void 0:St.toString().toLowerCase().includes(ut.trim().toLowerCase()):!1}function Vu(ut){let{filters:St,prefixCls:Yt,filteredKeys:Qt,filterMultiple:mn,searchValue:un,filterSearch:jn}=ut;return St.map((zn,Rn)=>{const yi=String(zn.value);if(zn.children)return{key:yi||Rn,label:zn.text,popupClassName:`${Yt}-dropdown-submenu`,children:Vu({filters:zn.children,prefixCls:Yt,filteredKeys:Qt,filterMultiple:mn,searchValue:un,filterSearch:jn})};const ti=mn?aa.default:Yn.ZP,gi={key:zn.value!==void 0?yi:Rn,label:be.createElement(be.Fragment,null,be.createElement(ti,{checked:Qt.includes(yi)}),be.createElement("span",null,zn.text))};return un.trim()?typeof jn=="function"?jn(un,zn)?gi:null:xo(un,zn.text)?gi:null:gi})}function Ll(ut){var St,Yt;const{tablePrefixCls:Qt,prefixCls:mn,column:un,dropdownPrefixCls:jn,columnKey:zn,filterMultiple:Rn,filterMode:yi="menu",filterSearch:ti=!1,filterState:gi,triggerFilter:Ri,locale:Oi,children:Bi,getPopupContainer:ir}=ut,{filterDropdownOpen:Ti,onFilterDropdownOpenChange:pr,filterResetToDefaultFilteredValue:cr,defaultFilteredValue:xr,filterDropdownVisible:so,onFilterDropdownVisibleChange:Eo}=un,[Mr,Zr]=be.useState(!1),jo=!!(gi&&(!((St=gi.filteredKeys)===null||St===void 0)&&St.length||gi.forceFiltered)),Pr=Hi=>{Zr(Hi),pr==null||pr(Hi),Eo==null||Eo(Hi)},_r=(Yt=Ti!=null?Ti:so)!==null&&Yt!==void 0?Yt:Mr,Lr=gi==null?void 0:gi.filteredKeys,[qi,mr]=sa(Lr||[]),Qr=Hi=>{let{selectedKeys:Tr}=Hi;mr(Tr)},bo=(Hi,Tr)=>{let{node:Ko,checked:ua}=Tr;Qr(Rn?{selectedKeys:Hi}:{selectedKeys:ua&&Ko.key?[Ko.key]:[]})};be.useEffect(()=>{Mr&&Qr({selectedKeys:Lr||[]})},[Lr]);const[Mo,vr]=be.useState([]),Ho=Hi=>{vr(Hi)},[Xo,ea]=be.useState(""),$o=Hi=>{const{value:Tr}=Hi.target;ea(Tr)};be.useEffect(()=>{Mr||ea("")},[Mr]);const Xa=Hi=>{const Tr=Hi&&Hi.length?Hi:null;if(Tr===null&&(!gi||!gi.filteredKeys)||(0,it.Z)(Tr,gi==null?void 0:gi.filteredKeys,!0))return null;Ri({column:un,key:zn,filteredKeys:Tr})},ga=()=>{Pr(!1),Xa(qi())},Ro=function(){let{confirm:Hi,closeDropdown:Tr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Hi&&Xa([]),Tr&&Pr(!1),ea(""),mr(cr?(xr||[]).map(Ko=>String(Ko)):[])},po=function(){let{closeDropdown:Hi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Hi&&Pr(!1),Xa(qi())},Bo=Hi=>{Hi&&Lr!==void 0&&mr(Lr||[]),Pr(Hi),!Hi&&!un.filterDropdown&&ga()},Ga=Xe()({[`${jn}-menu-without-submenu`]:!Vl(un.filters||[])}),Ta=Hi=>{if(Hi.target.checked){const Tr=zl(un==null?void 0:un.filters).map(Ko=>String(Ko));mr(Tr)}else mr([])},es=Hi=>{let{filters:Tr}=Hi;return(Tr||[]).map((Ko,ua)=>{const il=String(Ko.value),zs={title:Ko.text,key:Ko.value!==void 0?il:ua};return Ko.children&&(zs.children=es({filters:Ko.children})),zs})},To=Hi=>{var Tr;return Object.assign(Object.assign({},Hi),{text:Hi.title,value:Hi.key,children:((Tr=Hi.children)===null||Tr===void 0?void 0:Tr.map(Ko=>To(Ko)))||[]})};let Po;if(typeof un.filterDropdown=="function")Po=un.filterDropdown({prefixCls:`${jn}-custom`,setSelectedKeys:Hi=>Qr({selectedKeys:Hi}),selectedKeys:qi(),confirm:po,clearFilters:Ro,filters:un.filters,visible:_r,close:()=>{Pr(!1)}});else if(un.filterDropdown)Po=un.filterDropdown;else{const Hi=qi()||[],Tr=()=>(un.filters||[]).length===0?be.createElement(qr.Z,{image:qr.Z.PRESENTED_IMAGE_SIMPLE,description:Oi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):yi==="tree"?be.createElement(be.Fragment,null,be.createElement(Kl,{filterSearch:ti,value:Xo,onChange:$o,tablePrefixCls:Qt,locale:Oi}),be.createElement("div",{className:`${Qt}-filter-dropdown-tree`},Rn?be.createElement(aa.default,{checked:Hi.length===zl(un.filters).length,indeterminate:Hi.length>0&&Hi.length<zl(un.filters).length,className:`${Qt}-filter-dropdown-checkall`,onChange:Ta},Oi.filterCheckall):null,be.createElement(Fr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Rn,checkStrictly:!Rn,className:`${jn}-menu`,onCheck:bo,checkedKeys:Hi,selectedKeys:Hi,showIcon:!1,treeData:es({filters:un.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Xo.trim()?ua=>typeof ti=="function"?ti(Xo,To(ua)):xo(Xo,ua.title):void 0}))):be.createElement(be.Fragment,null,be.createElement(Kl,{filterSearch:ti,value:Xo,onChange:$o,tablePrefixCls:Qt,locale:Oi}),be.createElement(gr.default,{selectable:!0,multiple:Rn,prefixCls:`${jn}-menu`,className:Ga,onSelect:Qr,onDeselect:Qr,selectedKeys:Hi,getPopupContainer:ir,openKeys:Mo,onOpenChange:Ho,items:Vu({filters:un.filters||[],filterSearch:ti,prefixCls:mn,filteredKeys:qi(),filterMultiple:Rn,searchValue:Xo})})),Ko=()=>cr?(0,it.Z)((xr||[]).map(ua=>String(ua)),Hi,!0):Hi.length===0;Po=be.createElement(be.Fragment,null,Tr(),be.createElement("div",{className:`${mn}-dropdown-btns`},be.createElement(vo.ZP,{type:"link",size:"small",disabled:Ko(),onClick:()=>Ro()},Oi.filterReset),be.createElement(vo.ZP,{type:"primary",size:"small",onClick:ga},Oi.filterConfirm)))}un.filterDropdown&&(Po=be.createElement(zr.J,{selectable:void 0},Po));const zo=()=>be.createElement(Rl,{className:`${mn}-dropdown`},Po);let co;typeof un.filterIcon=="function"?co=un.filterIcon(jo):un.filterIcon?co=un.filterIcon:co=be.createElement(fa,null);const{direction:Ur}=be.useContext(lr.E_);return be.createElement("div",{className:`${mn}-column`},be.createElement("span",{className:`${Qt}-column-title`},Bi),be.createElement(is.Z,{dropdownRender:zo,trigger:["click"],open:_r,onOpenChange:Bo,getPopupContainer:ir,placement:Ur==="rtl"?"bottomLeft":"bottomRight"},be.createElement("span",{role:"button",tabIndex:-1,className:Xe()(`${mn}-trigger`,{active:jo}),onClick:Hi=>{Hi.stopPropagation()}},co)))}var Xr=Ll;function pa(ut,St,Yt){let Qt=[];return(ut||[]).forEach((mn,un)=>{var jn;const zn=qa(un,Yt);if(mn.filters||"filterDropdown"in mn||"onFilter"in mn)if("filteredValue"in mn){let Rn=mn.filteredValue;"filterDropdown"in mn||(Rn=(jn=Rn==null?void 0:Rn.map(String))!==null&&jn!==void 0?jn:Rn),Qt.push({column:mn,key:fo(mn,zn),filteredKeys:Rn,forceFiltered:mn.filtered})}else Qt.push({column:mn,key:fo(mn,zn),filteredKeys:St&&mn.defaultFilteredValue?mn.defaultFilteredValue:void 0,forceFiltered:mn.filtered});"children"in mn&&(Qt=[].concat((0,ri.Z)(Qt),(0,ri.Z)(pa(mn.children,St,zn))))}),Qt}function hl(ut,St,Yt,Qt,mn,un,jn,zn){return Yt.map((Rn,yi)=>{const ti=qa(yi,zn),{filterMultiple:gi=!0,filterMode:Ri,filterSearch:Oi}=Rn;let Bi=Rn;if(Bi.filters||Bi.filterDropdown){const ir=fo(Bi,ti),Ti=Qt.find(pr=>{let{key:cr}=pr;return ir===cr});Bi=Object.assign(Object.assign({},Bi),{title:pr=>be.createElement(Xr,{tablePrefixCls:ut,prefixCls:`${ut}-filter`,dropdownPrefixCls:St,column:Bi,columnKey:ir,filterState:Ti,filterMultiple:gi,filterMode:Ri,filterSearch:Oi,triggerFilter:un,locale:mn,getPopupContainer:jn},bs(Rn.title,pr))})}return"children"in Bi&&(Bi=Object.assign(Object.assign({},Bi),{children:hl(ut,St,Bi.children,Qt,mn,un,jn,ti)})),Bi})}function tl(ut){const St={};return ut.forEach(Yt=>{let{key:Qt,filteredKeys:mn,column:un}=Yt;const{filters:jn,filterDropdown:zn}=un;if(zn)St[Qt]=mn||null;else if(Array.isArray(mn)){const Rn=zl(jn);St[Qt]=Rn.filter(yi=>mn.includes(String(yi)))}else St[Qt]=null}),St}function fl(ut,St){return St.reduce((Yt,Qt)=>{const{column:{onFilter:mn,filters:un},filteredKeys:jn}=Qt;return mn&&jn&&jn.length?Yt.filter(zn=>jn.some(Rn=>{const yi=zl(un),ti=yi.findIndex(Ri=>String(Ri)===String(Rn)),gi=ti!==-1?yi[ti]:Rn;return mn(gi,zn)})):Yt},ut)}const wl=ut=>ut.flatMap(St=>"children"in St?[St].concat((0,ri.Z)(wl(St.children||[]))):[St]);function Yu(ut){let{prefixCls:St,dropdownPrefixCls:Yt,mergedColumns:Qt,onFilterChange:mn,getPopupContainer:un,locale:jn}=ut;const zn=be.useMemo(()=>wl(Qt||[]),[Qt]),[Rn,yi]=be.useState(()=>pa(zn,!0)),ti=be.useMemo(()=>{const Bi=pa(zn,!1);if(Bi.length===0)return Bi;let ir=!0,Ti=!0;if(Bi.forEach(pr=>{let{filteredKeys:cr}=pr;cr!==void 0?ir=!1:Ti=!1}),ir){const pr=(zn||[]).map((cr,xr)=>fo(cr,qa(xr)));return Rn.filter(cr=>{let{key:xr}=cr;return pr.includes(xr)}).map(cr=>{const xr=zn[pr.findIndex(so=>so===cr.key)];return Object.assign(Object.assign({},cr),{column:Object.assign(Object.assign({},cr.column),xr),forceFiltered:xr.filtered})})}return Bi},[zn,Rn]),gi=be.useMemo(()=>tl(ti),[ti]),Ri=Bi=>{const ir=ti.filter(Ti=>{let{key:pr}=Ti;return pr!==Bi.key});ir.push(Bi),yi(ir),mn(tl(ir),ir)};return[Bi=>hl(St,Yt,Bi,ti,jn,Ri,un),ti,gi]}var uc=Yu;function Uu(ut,St,Yt){const Qt=be.useRef({});function mn(un){if(!Qt.current||Qt.current.data!==ut||Qt.current.childrenColumnName!==St||Qt.current.getRowKey!==Yt){let zn=function(Rn){Rn.forEach((yi,ti)=>{const gi=Yt(yi,ti);jn.set(gi,yi),yi&&typeof yi=="object"&&St in yi&&zn(yi[St]||[])})};const jn=new Map;zn(ut),Qt.current={data:ut,childrenColumnName:St,kvMap:jn,getRowKey:Yt}}return Qt.current.kvMap.get(un)}return[mn]}var Xu=he(50371),_u=function(ut,St){var Yt={};for(var Qt in ut)Object.prototype.hasOwnProperty.call(ut,Qt)&&St.indexOf(Qt)<0&&(Yt[Qt]=ut[Qt]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,Qt=Object.getOwnPropertySymbols(ut);mn<Qt.length;mn++)St.indexOf(Qt[mn])<0&&Object.prototype.propertyIsEnumerable.call(ut,Qt[mn])&&(Yt[Qt[mn]]=ut[Qt[mn]]);return Yt};const xs=10;function ll(ut,St){const Yt={current:ut.current,pageSize:ut.pageSize};return Object.keys(St&&typeof St=="object"?St:{}).forEach(mn=>{const un=ut[mn];typeof un!="function"&&(Yt[mn]=un)}),Yt}function Cl(ut,St,Yt){const Qt=Yt&&typeof Yt=="object"?Yt:{},{total:mn=0}=Qt,un=_u(Qt,["total"]),[jn,zn]=(0,be.useState)(()=>({current:"defaultCurrent"in un?un.defaultCurrent:1,pageSize:"defaultPageSize"in un?un.defaultPageSize:xs})),Rn=(0,Xu.Z)(jn,un,{total:mn>0?mn:ut}),yi=Math.ceil((mn||ut)/Rn.pageSize);Rn.current>yi&&(Rn.current=yi||1);const ti=(Ri,Oi)=>{zn({current:Ri!=null?Ri:1,pageSize:Oi||Rn.pageSize})},gi=(Ri,Oi)=>{var Bi;Yt&&((Bi=Yt.onChange)===null||Bi===void 0||Bi.call(Yt,Ri,Oi)),ti(Ri,Oi),St(Ri,Oi||(Rn==null?void 0:Rn.pageSize))};return Yt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Rn),{onChange:gi}),ti]}var Fl=Cl,nd=he(18290),Au=he(35654),Yo=he(90782),Aa=he(71430),El=he(35788);const Ns={},ks="SELECT_ALL",ds="SELECT_INVERT",Ps="SELECT_NONE",Is=[],Ts=(ut,St)=>{let Yt=[];return(St||[]).forEach(Qt=>{Yt.push(Qt),Qt&&typeof Qt=="object"&&ut in Qt&&(Yt=[].concat((0,ri.Z)(Yt),(0,ri.Z)(Ts(ut,Qt[ut]))))}),Yt};var au=(ut,St)=>{const{preserveSelectedRowKeys:Yt,selectedRowKeys:Qt,defaultSelectedRowKeys:mn,getCheckboxProps:un,onChange:jn,onSelect:zn,onSelectAll:Rn,onSelectInvert:yi,onSelectNone:ti,onSelectMultiple:gi,columnWidth:Ri,type:Oi,selections:Bi,fixed:ir,renderCell:Ti,hideSelectAll:pr,checkStrictly:cr=!0}=St||{},{prefixCls:xr,data:so,pageData:Eo,getRecordByKey:Mr,getRowKey:Zr,expandType:jo,childrenColumnName:Pr,locale:_r,getPopupContainer:Lr}=ut,[qi,mr]=(0,El.Z)(Qt||mn||Is,{value:Qt}),Qr=be.useRef(new Map),bo=(0,be.useCallback)(To=>{if(Yt){const Po=new Map;To.forEach(zo=>{let co=Mr(zo);!co&&Qr.current.has(zo)&&(co=Qr.current.get(zo)),Po.set(zo,co)}),Qr.current=Po}},[Mr,Yt]);be.useEffect(()=>{bo(qi)},[qi]);const{keyEntities:Mo}=(0,be.useMemo)(()=>{if(cr)return{keyEntities:null};let To=so;if(Yt){const Po=new Set(so.map((co,Ur)=>Zr(co,Ur))),zo=Array.from(Qr.current).reduce((co,Ur)=>{let[Hi,Tr]=Ur;return Po.has(Hi)?co:co.concat(Tr)},[]);To=[].concat((0,ri.Z)(To),(0,ri.Z)(zo))}return(0,Aa.I8)(To,{externalGetKey:Zr,childrenPropName:Pr})},[so,Zr,cr,Pr,Yt]),vr=(0,be.useMemo)(()=>Ts(Pr,Eo),[Pr,Eo]),Ho=(0,be.useMemo)(()=>{const To=new Map;return vr.forEach((Po,zo)=>{const co=Zr(Po,zo),Ur=(un?un(Po):null)||{};To.set(co,Ur)}),To},[vr,Zr,un]),Xo=(0,be.useCallback)(To=>{var Po;return!!(!((Po=Ho.get(Zr(To)))===null||Po===void 0)&&Po.disabled)},[Ho,Zr]),[ea,$o]=(0,be.useMemo)(()=>{if(cr)return[qi||[],[]];const{checkedKeys:To,halfCheckedKeys:Po}=(0,Yo.S)(qi,!0,Mo,Xo);return[To||[],Po]},[qi,cr,Mo,Xo]),Xa=(0,be.useMemo)(()=>{const To=Oi==="radio"?ea.slice(0,1):ea;return new Set(To)},[ea,Oi]),ga=(0,be.useMemo)(()=>Oi==="radio"?new Set:new Set($o),[$o,Oi]),[Ro,po]=(0,be.useState)(null);be.useEffect(()=>{St||mr(Is)},[!!St]);const Bo=(0,be.useCallback)((To,Po)=>{let zo,co;bo(To),Yt?(zo=To,co=To.map(Ur=>Qr.current.get(Ur))):(zo=[],co=[],To.forEach(Ur=>{const Hi=Mr(Ur);Hi!==void 0&&(zo.push(Ur),co.push(Hi))})),mr(zo),jn==null||jn(zo,co,{type:Po})},[mr,Mr,jn,Yt]),Ga=(0,be.useCallback)((To,Po,zo,co)=>{if(zn){const Ur=zo.map(Hi=>Mr(Hi));zn(Mr(To),Po,Ur,co)}Bo(zo,"single")},[zn,Mr,Bo]),Ta=(0,be.useMemo)(()=>!Bi||pr?null:(Bi===!0?[ks,ds,Ps]:Bi).map(Po=>Po===ks?{key:"all",text:_r.selectionAll,onSelect(){Bo(so.map((zo,co)=>Zr(zo,co)).filter(zo=>{const co=Ho.get(zo);return!(co!=null&&co.disabled)||Xa.has(zo)}),"all")}}:Po===ds?{key:"invert",text:_r.selectInvert,onSelect(){const zo=new Set(Xa);Eo.forEach((Ur,Hi)=>{const Tr=Zr(Ur,Hi),Ko=Ho.get(Tr);Ko!=null&&Ko.disabled||(zo.has(Tr)?zo.delete(Tr):zo.add(Tr))});const co=Array.from(zo);yi&&yi(co),Bo(co,"invert")}}:Po===Ps?{key:"none",text:_r.selectNone,onSelect(){ti==null||ti(),Bo(Array.from(Xa).filter(zo=>{const co=Ho.get(zo);return co==null?void 0:co.disabled}),"none")}}:Po).map(Po=>Object.assign(Object.assign({},Po),{onSelect:function(){for(var zo,co,Ur=arguments.length,Hi=new Array(Ur),Tr=0;Tr<Ur;Tr++)Hi[Tr]=arguments[Tr];(co=Po.onSelect)===null||co===void 0||(zo=co).call.apply(zo,[Po].concat(Hi)),po(null)}})),[Bi,Xa,Eo,Zr,yi,Bo]);return[(0,be.useCallback)(To=>{var Po;if(!St)return To.filter(ja=>ja!==Ns);let zo=(0,ri.Z)(To);const co=new Set(Xa),Ur=vr.map(Zr).filter(ja=>!Ho.get(ja).disabled),Hi=Ur.every(ja=>co.has(ja)),Tr=Ur.some(ja=>co.has(ja)),Ko=()=>{const ja=[];Hi?Ur.forEach(ts=>{co.delete(ts),ja.push(ts)}):Ur.forEach(ts=>{co.has(ts)||(co.add(ts),ja.push(ts))});const _a=Array.from(co);Rn==null||Rn(!Hi,_a.map(ts=>Mr(ts)),ja.map(ts=>Mr(ts))),Bo(_a,"all"),po(null)};let ua;if(Oi!=="radio"){let ja;if(Ta){const ya={getPopupContainer:Lr,items:Ta.map((os,_s)=>{const{key:Va,text:Oo,onSelect:Ls}=os;return{key:Va!=null?Va:_s,onClick:()=>{Ls==null||Ls(Ur)},label:Oo}})};ja=be.createElement("div",{className:`${xr}-selection-extra`},be.createElement(is.Z,{menu:ya,getPopupContainer:Lr},be.createElement("span",null,be.createElement(nd.Z,null))))}const _a=vr.map((ya,os)=>{const _s=Zr(ya,os),Va=Ho.get(_s)||{};return Object.assign({checked:co.has(_s)},Va)}).filter(ya=>{let{disabled:os}=ya;return os}),ts=!!_a.length&&_a.length===vr.length,ws=ts&&_a.every(ya=>{let{checked:os}=ya;return os}),Ks=ts&&_a.some(ya=>{let{checked:os}=ya;return os});ua=!pr&&be.createElement("div",{className:`${xr}-selection`},be.createElement(aa.default,{checked:ts?ws:!!vr.length&&Hi,indeterminate:ts?!ws&&Ks:!Hi&&Tr,onChange:Ko,disabled:vr.length===0||ts,"aria-label":ja?"Custom selection":"Select all",skipGroup:!0}),ja)}let il;Oi==="radio"?il=(ja,_a,ts)=>{const ws=Zr(_a,ts),Ks=co.has(ws);return{node:be.createElement(Yn.ZP,Object.assign({},Ho.get(ws),{checked:Ks,onClick:ya=>ya.stopPropagation(),onChange:ya=>{co.has(ws)||Ga(ws,!0,[ws],ya.nativeEvent)}})),checked:Ks}}:il=(ja,_a,ts)=>{var ws;const Ks=Zr(_a,ts),ya=co.has(Ks),os=ga.has(Ks),_s=Ho.get(Ks);let Va;return jo==="nest"?Va=os:Va=(ws=_s==null?void 0:_s.indeterminate)!==null&&ws!==void 0?ws:os,{node:be.createElement(aa.default,Object.assign({},_s,{indeterminate:Va,checked:ya,skipGroup:!0,onClick:Oo=>Oo.stopPropagation(),onChange:Oo=>{let{nativeEvent:Ls}=Oo;const{shiftKey:Vs}=Ls;let Mu=-1,su=-1;if(Vs&&cr){const Ja=new Set([Ro,Ks]);Ur.some((xl,ys)=>{if(Ja.has(xl))if(Mu===-1)Mu=ys;else return su=ys,!0;return!1})}if(su!==-1&&Mu!==su&&cr){const Ja=Ur.slice(Mu,su+1),xl=[];ya?Ja.forEach(gs=>{co.has(gs)&&(xl.push(gs),co.delete(gs))}):Ja.forEach(gs=>{co.has(gs)||(xl.push(gs),co.add(gs))});const ys=Array.from(co);gi==null||gi(!ya,ys.map(gs=>Mr(gs)),xl.map(gs=>Mr(gs))),Bo(ys,"multiple")}else{const Ja=ea;if(cr){const xl=ya?(0,Au._5)(Ja,Ks):(0,Au.L0)(Ja,Ks);Ga(Ks,!ya,xl,Ls)}else{const xl=(0,Yo.S)([].concat((0,ri.Z)(Ja),[Ks]),!0,Mo,Xo),{checkedKeys:ys,halfCheckedKeys:gs}=xl;let mu=ys;if(ya){const fc=new Set(ys);fc.delete(Ks),mu=(0,Yo.S)(Array.from(fc),{checked:!1,halfCheckedKeys:gs},Mo,Xo).checkedKeys}Ga(Ks,!ya,mu,Ls)}}po(ya?null:Ks)}})),checked:ya}};const zs=(ja,_a,ts)=>{const{node:ws,checked:Ks}=il(ja,_a,ts);return Ti?Ti(Ks,_a,ts,ws):ws};if(!zo.includes(Ns))if(zo.findIndex(ja=>{var _a;return((_a=ja[ur])===null||_a===void 0?void 0:_a.columnType)==="EXPAND_COLUMN"})===0){const[ja,..._a]=zo;zo=[ja,Ns].concat((0,ri.Z)(_a))}else zo=[Ns].concat((0,ri.Z)(zo));const yl=zo.indexOf(Ns);zo=zo.filter((ja,_a)=>ja!==Ns||_a===yl);const Da=zo[yl-1],Ka=zo[yl+1];let Fo=ir;Fo===void 0&&((Ka==null?void 0:Ka.fixed)!==void 0?Fo=Ka.fixed:(Da==null?void 0:Da.fixed)!==void 0&&(Fo=Da.fixed)),Fo&&Da&&((Po=Da[ur])===null||Po===void 0?void 0:Po.columnType)==="EXPAND_COLUMN"&&Da.fixed===void 0&&(Da.fixed=Fo);const Gs=Xe()(`${xr}-selection-col`,{[`${xr}-selection-col-with-dropdown`]:Bi&&Oi==="checkbox"}),Sl={fixed:Fo,width:Ri,className:`${xr}-selection-column`,title:St.columnTitle||ua,render:zs,onCell:St.onCell,[ur]:{className:Gs}};return zo.map(ja=>ja===Ns?Sl:ja)},[Zr,vr,St,ea,Xa,ga,Ri,Ta,jo,Ro,Ho,gi,Ga,Xo]),Xa]},Ms=he(35323),ih=he(19155),md=he(6848);const id="ascend",Wr="descend";function rd(ut){return typeof ut.sorter=="object"&&typeof ut.sorter.multiple=="number"?ut.sorter.multiple:!1}function Kt(ut){return typeof ut=="function"?ut:ut&&typeof ut=="object"&&ut.compare?ut.compare:!1}function vi(ut,St){return St?ut[ut.indexOf(St)+1]:ut[0]}function Ih(ut,St,Yt){let Qt=[];function mn(un,jn){Qt.push({column:un,key:fo(un,jn),multiplePriority:rd(un),sortOrder:un.sortOrder})}return(ut||[]).forEach((un,jn)=>{const zn=qa(jn,Yt);un.children?("sortOrder"in un&&mn(un,zn),Qt=[].concat((0,ri.Z)(Qt),(0,ri.Z)(Ih(un.children,St,zn)))):un.sorter&&("sortOrder"in un?mn(un,zn):St&&un.defaultSortOrder&&Qt.push({column:un,key:fo(un,zn),multiplePriority:rd(un),sortOrder:un.defaultSortOrder}))}),Qt}function rh(ut,St,Yt,Qt,mn,un,jn,zn){return(St||[]).map((Rn,yi)=>{const ti=qa(yi,zn);let gi=Rn;if(gi.sorter){const Ri=gi.sortDirections||mn,Oi=gi.showSorterTooltip===void 0?jn:gi.showSorterTooltip,Bi=fo(gi,ti),ir=Yt.find(jo=>{let{key:Pr}=jo;return Pr===Bi}),Ti=ir?ir.sortOrder:null,pr=vi(Ri,Ti);let cr;if(Rn.sortIcon)cr=Rn.sortIcon({sortOrder:Ti});else{const jo=Ri.includes(id)&&be.createElement(ih.Z,{className:Xe()(`${ut}-column-sorter-up`,{active:Ti===id})}),Pr=Ri.includes(Wr)&&be.createElement(Ms.Z,{className:Xe()(`${ut}-column-sorter-down`,{active:Ti===Wr})});cr=be.createElement("span",{className:Xe()(`${ut}-column-sorter`,{[`${ut}-column-sorter-full`]:!!(jo&&Pr)})},be.createElement("span",{className:`${ut}-column-sorter-inner`,"aria-hidden":"true"},jo,Pr))}const{cancelSort:xr,triggerAsc:so,triggerDesc:Eo}=un||{};let Mr=xr;pr===Wr?Mr=Eo:pr===id&&(Mr=so);const Zr=typeof Oi=="object"?Oi:{title:Mr};gi=Object.assign(Object.assign({},gi),{className:Xe()(gi.className,{[`${ut}-column-sort`]:Ti}),title:jo=>{const Pr=be.createElement("div",{className:`${ut}-column-sorters`},be.createElement("span",{className:`${ut}-column-title`},bs(Rn.title,jo)),cr);return Oi?be.createElement(md.Z,Object.assign({},Zr),Pr):Pr},onHeaderCell:jo=>{const Pr=Rn.onHeaderCell&&Rn.onHeaderCell(jo)||{},_r=Pr.onClick,Lr=Pr.onKeyDown;Pr.onClick=Qr=>{Qt({column:Rn,key:Bi,sortOrder:pr,multiplePriority:rd(Rn)}),_r==null||_r(Qr)},Pr.onKeyDown=Qr=>{Qr.keyCode===Zi.Z.ENTER&&(Qt({column:Rn,key:Bi,sortOrder:pr,multiplePriority:rd(Rn)}),Lr==null||Lr(Qr))};const qi=So(Rn.title,{}),mr=qi==null?void 0:qi.toString();return Ti?Pr["aria-sort"]=Ti==="ascend"?"ascending":"descending":Pr["aria-label"]=mr||"",Pr.className=Xe()(Pr.className,`${ut}-column-has-sorters`),Pr.tabIndex=0,Rn.ellipsis&&(Pr.title=(qi!=null?qi:"").toString()),Pr}})}return"children"in gi&&(gi=Object.assign(Object.assign({},gi),{children:rh(ut,gi.children,Yt,Qt,mn,un,jn,ti)})),gi})}function dc(ut){const{column:St,sortOrder:Yt}=ut;return{column:St,order:Yt,field:St.dataIndex,columnKey:St.key}}function hc(ut){const St=ut.filter(Yt=>{let{sortOrder:Qt}=Yt;return Qt}).map(dc);return St.length===0&&ut.length?Object.assign(Object.assign({},dc(ut[ut.length-1])),{column:void 0}):St.length<=1?St[0]||{}:St}function Ac(ut,St,Yt){const Qt=St.slice().sort((jn,zn)=>zn.multiplePriority-jn.multiplePriority),mn=ut.slice(),un=Qt.filter(jn=>{let{column:{sorter:zn},sortOrder:Rn}=jn;return Kt(zn)&&Rn});return un.length?mn.sort((jn,zn)=>{for(let Rn=0;Rn<un.length;Rn+=1){const yi=un[Rn],{column:{sorter:ti},sortOrder:gi}=yi,Ri=Kt(ti);if(Ri&&gi){const Oi=Ri(jn,zn,gi);if(Oi!==0)return gi===id?Oi:-Oi}}return 0}).map(jn=>{const zn=jn[Yt];return zn?Object.assign(Object.assign({},jn),{[Yt]:Ac(zn,St,Yt)}):jn}):mn}function oh(ut){let{prefixCls:St,mergedColumns:Yt,onSorterChange:Qt,sortDirections:mn,tableLocale:un,showSorterTooltip:jn}=ut;const[zn,Rn]=be.useState(Ih(Yt,!0)),yi=be.useMemo(()=>{let Bi=!0;const ir=Ih(Yt,!1);if(!ir.length)return zn;const Ti=[];function pr(xr){Bi?Ti.push(xr):Ti.push(Object.assign(Object.assign({},xr),{sortOrder:null}))}let cr=null;return ir.forEach(xr=>{cr===null?(pr(xr),xr.sortOrder&&(xr.multiplePriority===!1?Bi=!1:cr=!0)):(cr&&xr.multiplePriority!==!1||(Bi=!1),pr(xr))}),Ti},[Yt,zn]),ti=be.useMemo(()=>{const Bi=yi.map(ir=>{let{column:Ti,sortOrder:pr}=ir;return{column:Ti,order:pr}});return{sortColumns:Bi,sortColumn:Bi[0]&&Bi[0].column,sortOrder:Bi[0]&&Bi[0].order}},[yi]);function gi(Bi){let ir;Bi.multiplePriority===!1||!yi.length||yi[0].multiplePriority===!1?ir=[Bi]:ir=[].concat((0,ri.Z)(yi.filter(Ti=>{let{key:pr}=Ti;return pr!==Bi.key})),[Bi]),Rn(ir),Qt(hc(ir),ir)}return[Bi=>rh(St,Bi,yi,gi,mn,un,jn),yi,ti,()=>hc(yi)]}function Td(ut,St){return ut.map(Yt=>{const Qt=Object.assign({},Yt);return Qt.title=bs(Yt.title,St),"children"in Qt&&(Qt.children=Td(Qt.children,St)),Qt})}function Os(ut){return[be.useCallback(Yt=>Td(Yt,ut),[ut])]}var ko=Ir((ut,St)=>{const{_renderTimes:Yt}=ut,{_renderTimes:Qt}=St;return Yt!==Qt}),gl=uo((ut,St)=>{const{_renderTimes:Yt}=ut,{_renderTimes:Qt}=St;return Yt!==Qt}),Dl=he(64993),vs=he(17313),ma=he(83116),nl=he(37613),rt=ut=>{const{componentCls:St}=ut,Yt=`${ut.lineWidth}px ${ut.lineType} ${ut.tableBorderColor}`,Qt=(mn,un,jn)=>({[`&${St}-${mn}`]:{[`> ${St}-container`]:{[`> ${St}-content, > ${St}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${St}-expanded-row-fixed`]:{margin:`-${un}px -${jn+ut.lineWidth}px`}}}}}});return{[`${St}-wrapper`]:{[`${St}${St}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${St}-title`]:{border:Yt,borderBottom:0},[`> ${St}-container`]:{borderInlineStart:Yt,borderTop:Yt,[`
|
|
|
> ${St}-content,
|
|
|
> ${St}-header,
|
|
|
> ${St}-body,
|
|
|
> ${St}-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:Yt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Yt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${St}-cell-fix-right-first::after`]:{borderInlineEnd:Yt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${St}-expanded-row-fixed`]:{margin:`-${ut.tablePaddingVertical}px -${ut.tablePaddingHorizontal+ut.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ut.lineWidth,bottom:0,borderInlineEnd:Yt,content:'""'}}}}}},[`&${St}-scroll-horizontal`]:{[`> ${St}-container > ${St}-body`]:{"> table > tbody":{[`
|
|
|
> tr${St}-expanded-row,
|
|
|
> tr${St}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Qt("middle",ut.tablePaddingVerticalMiddle,ut.tablePaddingHorizontalMiddle)),Qt("small",ut.tablePaddingVerticalSmall,ut.tablePaddingHorizontalSmall)),{[`> ${St}-footer`]:{border:Yt,borderTop:0}}),[`${St}-cell`]:{[`${St}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ut.lineWidth}px 0 ${ut.lineWidth}px ${ut.tableHeaderBg}`}},[`${St}-bordered ${St}-cell-scrollbar`]:{borderInlineEnd:Yt}}}},$t=ut=>{const{componentCls:St}=ut;return{[`${St}-wrapper`]:{[`${St}-cell-ellipsis`]:Object.assign(Object.assign({},vs.vS),{wordBreak:"keep-all",[`
|
|
|
&${St}-cell-fix-left-last,
|
|
|
&${St}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${St}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${St}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Dn=ut=>{const{componentCls:St}=ut;return{[`${St}-wrapper`]:{[`${St}-tbody > tr${St}-placeholder`]:{textAlign:"center",color:ut.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ut.colorBgContainer}}}}},On=he(15969),ci=ut=>{const{componentCls:St,antCls:Yt,controlInteractiveSize:Qt,motionDurationSlow:mn,lineWidth:un,paddingXS:jn,lineType:zn,tableBorderColor:Rn,tableExpandIconBg:yi,tableExpandColumnWidth:ti,borderRadius:gi,fontSize:Ri,fontSizeSM:Oi,lineHeight:Bi,tablePaddingVertical:ir,tablePaddingHorizontal:Ti,tableExpandedRowBg:pr,paddingXXS:cr}=ut,xr=Qt/2-un,so=xr*2+un*3,Eo=`${un}px ${zn} ${Rn}`,Mr=cr-un;return{[`${St}-wrapper`]:{[`${St}-expand-icon-col`]:{width:ti},[`${St}-row-expand-icon-cell`]:{textAlign:"center",[`${St}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${St}-row-indent`]:{height:1,float:"left"},[`${St}-row-expand-icon`]:Object.assign(Object.assign({},(0,On.N)(ut)),{position:"relative",float:"left",boxSizing:"border-box",width:so,height:so,padding:0,color:"inherit",lineHeight:`${so}px`,background:yi,border:Eo,borderRadius:gi,transform:`scale(${Qt/so})`,transition:`all ${mn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${mn} ease-out`,content:'""'},"&::before":{top:xr,insetInlineEnd:Mr,insetInlineStart:Mr,height:un},"&::after":{top:Mr,bottom:Mr,insetInlineStart:xr,width:un,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"}}),[`${St}-row-indent + ${St}-row-expand-icon`]:{marginTop:(Ri*Bi-un*3)/2-Math.ceil((Oi*1.4-un*3)/2),marginInlineEnd:jn},[`tr${St}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:pr}},[`${Yt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${St}-expanded-row-fixed`]:{position:"relative",margin:`-${ir}px -${Ti}px`,padding:`${ir}px ${Ti}px`}}}},Xi=ut=>{const{componentCls:St,antCls:Yt,iconCls:Qt,tableFilterDropdownWidth:mn,tableFilterDropdownSearchWidth:un,paddingXXS:jn,paddingXS:zn,colorText:Rn,lineWidth:yi,lineType:ti,tableBorderColor:gi,tableHeaderIconColor:Ri,fontSizeSM:Oi,tablePaddingHorizontal:Bi,borderRadius:ir,motionDurationSlow:Ti,colorTextDescription:pr,colorPrimary:cr,tableHeaderFilterActiveBg:xr,colorTextDisabled:so,tableFilterDropdownBg:Eo,tableFilterDropdownHeight:Mr,controlItemBgHover:Zr,controlItemBgActive:jo,boxShadowSecondary:Pr,filterDropdownMenuBg:_r}=ut,Lr=`${Yt}-dropdown`,qi=`${St}-filter-dropdown`,mr=`${Yt}-tree`,Qr=`${yi}px ${ti} ${gi}`;return[{[`${St}-wrapper`]:{[`${St}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${St}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-jn,marginInline:`${jn}px ${-Bi/2}px`,padding:`0 ${jn}px`,color:Ri,fontSize:Oi,borderRadius:ir,cursor:"pointer",transition:`all ${Ti}`,"&:hover":{color:pr,background:xr},"&.active":{color:cr}}}},{[`${Yt}-dropdown`]:{[qi]:Object.assign(Object.assign({},(0,vs.Wf)(ut)),{minWidth:mn,backgroundColor:Eo,borderRadius:ir,boxShadow:Pr,overflow:"hidden",[`${Lr}-menu`]:{maxHeight:Mr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_r,"&:empty::after":{display:"block",padding:`${zn}px 0`,color:so,fontSize:Oi,textAlign:"center",content:'"Not Found"'}},[`${qi}-tree`]:{paddingBlock:`${zn}px 0`,paddingInline:zn,[mr]:{padding:0},[`${mr}-treenode ${mr}-node-content-wrapper:hover`]:{backgroundColor:Zr},[`${mr}-treenode-checkbox-checked ${mr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:jo}}},[`${qi}-search`]:{padding:zn,borderBottom:Qr,"&-input":{input:{minWidth:un},[Qt]:{color:so}}},[`${qi}-checkall`]:{width:"100%",marginBottom:jn,marginInlineStart:jn},[`${qi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${zn-yi}px ${zn}px`,overflow:"hidden",borderTop:Qr}})}},{[`${Yt}-dropdown ${qi}, ${qi}-submenu`]:{[`${Yt}-checkbox-wrapper + span`]:{paddingInlineStart:zn,color:Rn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},zi=ut=>{const{componentCls:St,lineWidth:Yt,colorSplit:Qt,motionDurationSlow:mn,zIndexTableFixed:un,tableBg:jn,zIndexTableSticky:zn}=ut,Rn=Qt;return{[`${St}-wrapper`]:{[`
|
|
|
${St}-cell-fix-left,
|
|
|
${St}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:un,background:jn},[`
|
|
|
${St}-cell-fix-left-first::after,
|
|
|
${St}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Yt,width:30,transform:"translateX(100%)",transition:`box-shadow ${mn}`,content:'""',pointerEvents:"none"},[`${St}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${St}-cell-fix-right-first::after,
|
|
|
${St}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Yt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${mn}`,content:'""',pointerEvents:"none"},[`${St}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:zn+1,width:30,transition:`box-shadow ${mn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${St}-ping-left`]:{[`&:not(${St}-has-fix-left) ${St}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Rn}`}},[`
|
|
|
${St}-cell-fix-left-first::after,
|
|
|
${St}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Rn}`},[`${St}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${St}-ping-right`]:{[`&:not(${St}-has-fix-right) ${St}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Rn}`}},[`
|
|
|
${St}-cell-fix-right-first::after,
|
|
|
${St}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Rn}`}}}}},or=ut=>{const{componentCls:St,antCls:Yt}=ut;return{[`${St}-wrapper`]:{[`${St}-pagination${Yt}-pagination`]:{margin:`${ut.margin}px 0`},[`${St}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ut.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ji=ut=>{const{componentCls:St,tableRadius:Yt}=ut;return{[`${St}-wrapper`]:{[St]:{[`${St}-title, ${St}-header`]:{borderRadius:`${Yt}px ${Yt}px 0 0`},[`${St}-title + ${St}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${St}-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:Yt,borderStartEndRadius:Yt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Yt},"> *:last-child":{borderStartEndRadius:Yt}}},"&-footer":{borderRadius:`0 0 ${Yt}px ${Yt}px`}}}}},eo=ut=>{const{componentCls:St}=ut;return{[`${St}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${St}-pagination-left`]:{justifyContent:"flex-end"},[`${St}-pagination-right`]:{justifyContent:"flex-start"},[`${St}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${St}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${St}-row-indent`]:{float:"right"}}}}},oo=ut=>{const{componentCls:St,antCls:Yt,iconCls:Qt,fontSizeIcon:mn,padding:un,paddingXS:jn,tableHeaderIconColor:zn,tableHeaderIconColorHover:Rn,tableSelectionColumnWidth:yi}=ut;return{[`${St}-wrapper`]:{[`${St}-selection-col`]:{width:yi,[`&${St}-selection-col-with-dropdown`]:{width:yi+mn+un/4}},[`${St}-bordered ${St}-selection-col`]:{width:yi+jn*2,[`&${St}-selection-col-with-dropdown`]:{width:yi+mn+un/4+jn*2}},[`
|
|
|
table tr th${St}-selection-column,
|
|
|
table tr td${St}-selection-column
|
|
|
`]:{paddingInlineEnd:ut.paddingXS,paddingInlineStart:ut.paddingXS,textAlign:"center",[`${Yt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${St}-selection-column${St}-cell-fix-left`]:{zIndex:ut.zIndexTableFixed+1},[`table tr th${St}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${St}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${St}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ut.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ut.tablePaddingHorizontal/4}px`,[Qt]:{color:zn,fontSize:mn,verticalAlign:"baseline","&:hover":{color:Rn}}}}}},to=ut=>{const{componentCls:St}=ut,Yt=(Qt,mn,un,jn)=>({[`${St}${St}-${Qt}`]:{fontSize:jn,[`
|
|
|
${St}-title,
|
|
|
${St}-footer,
|
|
|
${St}-cell,
|
|
|
${St}-thead > tr > th,
|
|
|
${St}-tbody > tr > th,
|
|
|
${St}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${mn}px ${un}px`},[`${St}-filter-trigger`]:{marginInlineEnd:`-${un/2}px`},[`${St}-expanded-row-fixed`]:{margin:`-${mn}px -${un}px`},[`${St}-tbody`]:{[`${St}-wrapper:only-child ${St}`]:{marginBlock:`-${mn}px`,marginInline:`${ut.tableExpandColumnWidth-un}px -${un}px`}},[`${St}-selection-column`]:{paddingInlineStart:`${un/4}px`}}});return{[`${St}-wrapper`]:Object.assign(Object.assign({},Yt("middle",ut.tablePaddingVerticalMiddle,ut.tablePaddingHorizontalMiddle,ut.tableFontSizeMiddle)),Yt("small",ut.tablePaddingVerticalSmall,ut.tablePaddingHorizontalSmall,ut.tableFontSizeSmall))}},la=ut=>{const{componentCls:St,marginXXS:Yt,fontSizeIcon:Qt,tableHeaderIconColor:mn,tableHeaderIconColorHover:un}=ut;return{[`${St}-wrapper`]:{[`${St}-thead th${St}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ut.motionDurationSlow}`,"&:hover":{background:ut.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ut.colorPrimary},[`
|
|
|
&${St}-cell-fix-left:hover,
|
|
|
&${St}-cell-fix-right:hover
|
|
|
`]:{background:ut.tableFixedHeaderSortActiveBg}},[`${St}-thead th${St}-column-sort`]:{background:ut.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${St}-column-sort`]:{background:ut.tableBodySortBg},[`${St}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${St}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${St}-column-sorter`]:{marginInlineStart:Yt,color:mn,fontSize:0,transition:`color ${ut.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Qt,"&.active":{color:ut.colorPrimary}},[`${St}-column-sorter-up + ${St}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${St}-column-sorters:hover ${St}-column-sorter`]:{color:un}}}},va=ut=>{const{componentCls:St,opacityLoading:Yt,tableScrollThumbBg:Qt,tableScrollThumbBgHover:mn,tableScrollThumbSize:un,tableScrollBg:jn,zIndexTableSticky:zn,stickyScrollBarBorderRadius:Rn}=ut,yi=`${ut.lineWidth}px ${ut.lineType} ${ut.tableBorderColor}`;return{[`${St}-wrapper`]:{[`${St}-sticky`]:{"&-holder":{position:"sticky",zIndex:zn,background:ut.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${un}px !important`,zIndex:zn,display:"flex",alignItems:"center",background:jn,borderTop:yi,opacity:Yt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:un,backgroundColor:Qt,borderRadius:Rn,transition:`all ${ut.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:mn}}}}}}},za=ut=>{const{componentCls:St,lineWidth:Yt,tableBorderColor:Qt}=ut,mn=`${Yt}px ${ut.lineType} ${Qt}`;return{[`${St}-wrapper`]:{[`${St}-summary`]:{position:"relative",zIndex:ut.zIndexTableFixed,background:ut.tableBg,"> tr":{"> th, > td":{borderBottom:mn}}},[`div${St}-summary`]:{boxShadow:`0 -${Yt}px 0 ${Qt}`}}}},hs=ut=>{const{componentCls:St}=ut,Yt=`${ut.lineWidth}px ${ut.lineType} ${ut.tableBorderColor}`,Qt=`${St}-expanded-row-cell`;return{[`${St}-wrapper`]:{[`${St}-tbody-virtual`]:{[`${St}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${St}-cell`]:{borderBottom:Yt},[`${St}-expanded-row`]:{[`${Qt}${Qt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ut.lineWidth}px)`,borderInlineEnd:"none"}}},[`${St}-bordered`]:{[`${St}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Yt,position:"absolute"},[`${St}-cell`]:{borderInlineEnd:Yt,[`&${St}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ut.lineWidth,borderInlineStart:Yt}}}}}}};const Ma=ut=>{const{componentCls:St,fontWeightStrong:Yt,tablePaddingVertical:Qt,tablePaddingHorizontal:mn,lineWidth:un,lineType:jn,tableBorderColor:zn,tableFontSize:Rn,tableBg:yi,tableRadius:ti,tableHeaderTextColor:gi,motionDurationMid:Ri,tableHeaderBg:Oi,tableHeaderCellSplitColor:Bi,tableRowHoverBg:ir,tableSelectedRowBg:Ti,tableSelectedRowHoverBg:pr,tableFooterTextColor:cr,tableFooterBg:xr,paddingContentVerticalLG:so}=ut,Eo=`${un}px ${jn} ${zn}`;return{[`${St}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,vs.dF)()),{[St]:Object.assign(Object.assign({},(0,vs.Wf)(ut)),{fontSize:Rn,background:yi,borderRadius:`${ti}px ${ti}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${ti}px ${ti}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${St}-cell,
|
|
|
${St}-thead > tr > th,
|
|
|
${St}-tbody > tr > th,
|
|
|
${St}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${so}px ${mn}px`,overflowWrap:"break-word"},[`${St}-title`]:{padding:`${Qt}px ${mn}px`},[`${St}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:gi,fontWeight:Yt,textAlign:"start",background:Oi,borderBottom:Eo,transition:`background ${Ri} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${St}-selection-column):not(${St}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Bi,transform:"translateY(-50%)",transition:`background-color ${Ri}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${St}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ri}, border-color ${Ri}`,borderBottom:Eo,[`
|
|
|
> ${St}-wrapper:only-child,
|
|
|
> ${St}-expanded-row-fixed > ${St}-wrapper:only-child
|
|
|
`]:{[St]:{marginBlock:`-${Qt}px`,marginInline:`${ut.tableExpandColumnWidth-mn}px -${mn}px`,[`${St}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:gi,fontWeight:Yt,textAlign:"start",background:Oi,borderBottom:Eo,transition:`background ${Ri} ease`},[`
|
|
|
&${St}-row:hover > th,
|
|
|
&${St}-row:hover > td,
|
|
|
> th${St}-cell-row-hover,
|
|
|
> td${St}-cell-row-hover
|
|
|
`]:{background:ir},[`&${St}-row-selected`]:{"> th, > td":{background:Ti},"&:hover > th, &:hover > td":{background:pr}}}},[`${St}-footer`]:{padding:`${Qt}px ${mn}px`,color:cr,background:xr}})}};var wa=(0,ma.Z)("Table",ut=>{const{colorTextHeading:St,colorSplit:Yt,colorIcon:Qt,colorIconHover:mn,opacityLoading:un,colorBgContainer:jn,controlInteractiveSize:zn,headerBg:Rn,headerColor:yi,headerSortActiveBg:ti,headerSortHoverBg:gi,bodySortBg:Ri,rowHoverBg:Oi,rowSelectedBg:Bi,rowSelectedHoverBg:ir,rowExpandedBg:Ti,cellPaddingBlock:pr,cellPaddingInline:cr,cellPaddingBlockMD:xr,cellPaddingInlineMD:so,cellPaddingBlockSM:Eo,cellPaddingInlineSM:Mr,borderColor:Zr,footerBg:jo,footerColor:Pr,headerBorderRadius:_r,cellFontSize:Lr,cellFontSizeMD:qi,cellFontSizeSM:mr,headerSplitColor:Qr,fixedHeaderSortActiveBg:bo,headerFilterHoverBg:Mo,filterDropdownBg:vr,expandIconBg:Ho,selectionColumnWidth:Xo,stickyScrollBarBg:ea}=ut,$o=new Dl.C(Qt),Xa=new Dl.C(mn),ga=2,Ro=(0,nl.TS)(ut,{tableFontSize:Lr,tableBg:jn,tableRadius:_r,tablePaddingVertical:pr,tablePaddingHorizontal:cr,tablePaddingVerticalMiddle:xr,tablePaddingHorizontalMiddle:so,tablePaddingVerticalSmall:Eo,tablePaddingHorizontalSmall:Mr,tableBorderColor:Zr,tableHeaderTextColor:yi,tableHeaderBg:Rn,tableFooterTextColor:Pr,tableFooterBg:jo,tableHeaderCellSplitColor:Qr,tableHeaderSortBg:ti,tableHeaderSortHoverBg:gi,tableHeaderIconColor:$o.clone().setAlpha($o.getAlpha()*un).toRgbString(),tableHeaderIconColorHover:Xa.clone().setAlpha(Xa.getAlpha()*un).toRgbString(),tableBodySortBg:Ri,tableFixedHeaderSortActiveBg:bo,tableHeaderFilterActiveBg:Mo,tableFilterDropdownBg:vr,tableRowHoverBg:Oi,tableSelectedRowBg:Bi,tableSelectedRowHoverBg:ir,zIndexTableFixed:ga,zIndexTableSticky:ga+1,tableFontSizeMiddle:qi,tableFontSizeSmall:mr,tableSelectionColumnWidth:Xo,tableExpandIconBg:Ho,tableExpandColumnWidth:zn+2*ut.padding,tableExpandedRowBg:Ti,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ea,tableScrollThumbBgHover:St,tableScrollBg:Yt});return[Ma(Ro),or(Ro),za(Ro),la(Ro),Xi(Ro),rt(Ro),ji(Ro),ci(Ro),za(Ro),Dn(Ro),oo(Ro),zi(Ro),va(Ro),$t(Ro),to(Ro),eo(Ro),hs(Ro)]},ut=>{const{colorFillAlter:St,colorBgContainer:Yt,colorTextHeading:Qt,colorFillSecondary:mn,colorFillContent:un,controlItemBgActive:jn,controlItemBgActiveHover:zn,padding:Rn,paddingSM:yi,paddingXS:ti,colorBorderSecondary:gi,borderRadiusLG:Ri,fontSize:Oi,controlHeight:Bi,colorTextPlaceholder:ir}=ut,Ti=new Dl.C(mn).onBackground(Yt).toHexShortString(),pr=new Dl.C(un).onBackground(Yt).toHexShortString(),cr=new Dl.C(St).onBackground(Yt).toHexShortString();return{headerBg:cr,headerColor:Qt,headerSortActiveBg:Ti,headerSortHoverBg:pr,bodySortBg:cr,rowHoverBg:cr,rowSelectedBg:jn,rowSelectedHoverBg:zn,rowExpandedBg:St,cellPaddingBlock:Rn,cellPaddingInline:Rn,cellPaddingBlockMD:yi,cellPaddingInlineMD:ti,cellPaddingBlockSM:ti,cellPaddingInlineSM:ti,borderColor:gi,headerBorderRadius:Ri,footerBg:cr,footerColor:Qt,cellFontSize:Oi,cellFontSizeMD:Oi,cellFontSizeSM:Oi,headerSplitColor:gi,fixedHeaderSortActiveBg:Ti,headerFilterHoverBg:un,filterDropdownMenuBg:Yt,filterDropdownBg:Yt,expandIconBg:Yt,selectionColumnWidth:Bi,stickyScrollBarBg:ir,stickyScrollBarBorderRadius:100}});const Na=[],rs=(ut,St)=>{const{prefixCls:Yt,className:Qt,rootClassName:mn,style:un,size:jn,bordered:zn,dropdownPrefixCls:Rn,dataSource:yi,pagination:ti,rowSelection:gi,rowKey:Ri="key",rowClassName:Oi,columns:Bi,children:ir,childrenColumnName:Ti,onChange:pr,getPopupContainer:cr,loading:xr,expandIcon:so,expandable:Eo,expandedRowRender:Mr,expandIconColumnIndex:Zr,indentSize:jo,scroll:Pr,sortDirections:_r,locale:Lr,showSorterTooltip:qi=!0,virtual:mr}=ut,Qr=be.useMemo(()=>Bi||xn(ir),[Bi,ir]),bo=be.useMemo(()=>Qr.some(Oa=>Oa.responsive),[Qr]),Mo=(0,oi.Z)(bo),vr=be.useMemo(()=>{const Oa=new Set(Object.keys(Mo).filter(as=>Mo[as]));return Qr.filter(as=>!as.responsive||as.responsive.some(Js=>Oa.has(Js)))},[Qr,Mo]),Ho=(0,Gr.Z)(ut,["className","style","columns"]),{locale:Xo=Ao.Z,direction:ea,table:$o,renderEmpty:Xa,getPrefixCls:ga,getPopupContainer:Ro}=be.useContext(lr.E_),po=(0,kr.Z)(jn),Bo=Object.assign(Object.assign({},Xo.Table),Lr),Ga=yi||Na,Ta=ga("table",Yt),es=ga("dropdown",Rn),To=Object.assign({childrenColumnName:Ti,expandIconColumnIndex:Zr},Eo),{childrenColumnName:Po="children"}=To,zo=be.useMemo(()=>Ga.some(Oa=>Oa==null?void 0:Oa[Po])?"nest":Mr||Eo&&Eo.expandedRowRender?"row":null,[Ga]),co={body:be.useRef()},Ur=be.useMemo(()=>typeof Ri=="function"?Ri:Oa=>Oa==null?void 0:Oa[Ri],[Ri]),[Hi]=Uu(Ga,Po,Ur),Tr={},Ko=function(Oa,as){let Js=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ps,Ia,Qs;const Bl=Object.assign(Object.assign({},Tr),Oa);Js&&((ps=Tr.resetPagination)===null||ps===void 0||ps.call(Tr),!((Ia=Bl.pagination)===null||Ia===void 0)&&Ia.current&&(Bl.pagination.current=1),ti&&ti.onChange&&ti.onChange(1,(Qs=Bl.pagination)===null||Qs===void 0?void 0:Qs.pageSize)),Pr&&Pr.scrollToFirstRowOnChange!==!1&&co.body.current&&(0,_o.Z)(0,{getContainer:()=>co.body.current}),pr==null||pr(Bl.pagination,Bl.filters,Bl.sorter,{currentDataSource:fl(Ac(Ga,Bl.sorterStates,Po),Bl.filterStates),action:as})},ua=(Oa,as)=>{Ko({sorter:Oa,sorterStates:as},"sort",!1)},[il,zs,yl,Da]=oh({prefixCls:Ta,mergedColumns:vr,onSorterChange:ua,sortDirections:_r||["ascend","descend"],tableLocale:Bo,showSorterTooltip:qi}),Ka=be.useMemo(()=>Ac(Ga,zs,Po),[Ga,zs]);Tr.sorter=Da(),Tr.sorterStates=zs;const Fo=(Oa,as)=>{Ko({filters:Oa,filterStates:as},"filter",!0)},[Gs,Sl,ja]=uc({prefixCls:Ta,locale:Bo,dropdownPrefixCls:es,mergedColumns:vr,onFilterChange:Fo,getPopupContainer:cr||Ro}),_a=fl(Ka,Sl);Tr.filters=ja,Tr.filterStates=Sl;const ts=be.useMemo(()=>{const Oa={};return Object.keys(ja).forEach(as=>{ja[as]!==null&&(Oa[as]=ja[as])}),Object.assign(Object.assign({},yl),{filters:Oa})},[yl,ja]),[ws]=Os(ts),Ks=(Oa,as)=>{Ko({pagination:Object.assign(Object.assign({},Tr.pagination),{current:Oa,pageSize:as})},"paginate")},[ya,os]=Fl(_a.length,Ks,ti);Tr.pagination=ti===!1?{}:ll(ya,ti),Tr.resetPagination=os;const _s=be.useMemo(()=>{if(ti===!1||!ya.pageSize)return _a;const{current:Oa=1,total:as,pageSize:Js=xs}=ya;return _a.length<as?_a.length>Js?_a.slice((Oa-1)*Js,Oa*Js):_a:_a.slice((Oa-1)*Js,Oa*Js)},[!!ti,_a,ya&&ya.current,ya&&ya.pageSize,ya&&ya.total]),[Va,Oo]=au({prefixCls:Ta,data:_a,pageData:_s,getRowKey:Ur,getRecordByKey:Hi,expandType:zo,childrenColumnName:Po,locale:Bo,getPopupContainer:cr||Ro},gi),Ls=(Oa,as,Js)=>{let ps;return typeof Oi=="function"?ps=Xe()(Oi(Oa,as,Js)):ps=Xe()(Oi),Xe()({[`${Ta}-row-selected`]:Oo.has(Ur(Oa,as))},ps)};To.__PARENT_RENDER_ICON__=To.expandIcon,To.expandIcon=To.expandIcon||so||xa(Bo),zo==="nest"&&To.expandIconColumnIndex===void 0?To.expandIconColumnIndex=gi?1:0:To.expandIconColumnIndex>0&&gi&&(To.expandIconColumnIndex-=1),typeof To.indentSize!="number"&&(To.indentSize=typeof jo=="number"?jo:15);const Vs=be.useCallback(Oa=>ws(Va(Gs(il(Oa)))),[il,Gs,Va]);let Mu,su;if(ti!==!1&&(ya!=null&&ya.total)){let Oa;ya.size?Oa=ya.size:Oa=po==="small"||po==="middle"?"small":void 0;const as=Ia=>be.createElement(Jo.Z,Object.assign({},ya,{className:Xe()(`${Ta}-pagination ${Ta}-pagination-${Ia}`,ya.className),size:Oa})),Js=ea==="rtl"?"left":"right",{position:ps}=ya;if(ps!==null&&Array.isArray(ps)){const Ia=ps.find(Lu=>Lu.includes("top")),Qs=ps.find(Lu=>Lu.includes("bottom")),Bl=ps.every(Lu=>`${Lu}`=="none");!Ia&&!Qs&&!Bl&&(su=as(Js)),Ia&&(Mu=as(Ia.toLowerCase().replace("top",""))),Qs&&(su=as(Qs.toLowerCase().replace("bottom","")))}else su=as(Js)}let Ja;typeof xr=="boolean"?Ja={spinning:xr}:typeof xr=="object"&&(Ja=Object.assign({spinning:!0},xr));const[xl,ys]=wa(Ta),[,gs]=(0,na.Z)(),mu=Xe()(`${Ta}-wrapper`,$o==null?void 0:$o.className,{[`${Ta}-wrapper-rtl`]:ea==="rtl"},Qt,mn,ys),fc=Object.assign(Object.assign({},$o==null?void 0:$o.style),un),Yl=Lr&&Lr.emptyText||(Xa==null?void 0:Xa("Table"))||be.createElement($i.Z,{componentName:"Table"}),Ju=mr?gl:ko,Qu={},lu=be.useMemo(()=>{const{fontSize:Oa,lineHeight:as,padding:Js,paddingXS:ps,paddingSM:Ia}=gs,Qs=Math.floor(Oa*as);switch(po){case"large":return Js*2+Qs;case"small":return ps*2+Qs;default:return Ia*2+Qs}},[gs,po]);return mr&&(Qu.listItemHeight=lu),xl(be.createElement("div",{ref:St,className:mu,style:fc},be.createElement(Fa.Z,Object.assign({spinning:!1},Ja),Mu,be.createElement(Ju,Object.assign({},Qu,Ho,{columns:vr,direction:ea,expandable:To,prefixCls:Ta,className:Xe()({[`${Ta}-middle`]:po==="middle",[`${Ta}-small`]:po==="small",[`${Ta}-bordered`]:zn,[`${Ta}-empty`]:Ga.length===0}),data:_s,rowKey:Ur,rowClassName:Ls,emptyText:Yl,internalHooks:Ie,internalRefs:co,transformColumns:Vs})),su)))};var fs=be.forwardRef(rs);const Ua=(ut,St)=>{const Yt=be.useRef(0);return Yt.current+=1,be.createElement(fs,Object.assign({},ut,{ref:St,_renderTimes:Yt.current}))},ka=be.forwardRef(Ua);ka.SELECTION_COLUMN=Ns,ka.EXPAND_COLUMN=pe,ka.SELECTION_ALL=ks,ka.SELECTION_INVERT=ds,ka.SELECTION_NONE=Ps,ka.Column=fr,ka.ColumnGroup=ro,ka.Summary=ft;var Rs=ka,ul=Rs},86914:function(gn,zt,he){"use strict";he.d(zt,{default:function(){return lt}});var pe=he(99581),Ie=he(26390),Ve=he(43971),st=he(58358),We=he(5891),it=he(59301),be={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"},yt=be,vt=he(88853),Je=function(Et,ln){return it.createElement(vt.Z,(0,We.Z)({},Et,{ref:ln,icon:yt}))},tt=it.forwardRef(Je),$e=tt,Qe=he(92310),Ee=he.n(Qe),ee=he(35654),te=he(71430),ue=he(36355),ae=he(44757),de=he(62892),ve=he(20648);const Pe=4;function Ae(je){const{dropPosition:Et,dropLevelOffset:ln,prefixCls:Ht,indent:xt,direction:Bt="ltr"}=je,rn=Bt==="ltr"?"left":"right",Hn=Bt==="ltr"?"right":"left",pn={[rn]:-ln*xt+Pe,[Hn]:0};switch(Et){case-1:pn.top=-3;break;case 1:pn.bottom=-3;break;default:pn.bottom=-3,pn[rn]=xt+Pe;break}return it.createElement("div",{style:pn,className:`${Ht}-drop-indicator`})}var xe=he(48610),Te=it.forwardRef((je,Et)=>{const{getPrefixCls:ln,direction:Ht,virtual:xt,tree:Bt}=it.useContext(ue.E_),{prefixCls:rn,className:Hn,showIcon:pn=!1,showLine:_n,switcherIcon:Lt,blockNode:Un=!1,children:Gn,checkable:ui=!1,selectable:Ln=!0,draggable:Wt,motion:Vt,style:mt}=je,Ye=ln("tree",rn),Zt=ln(),Gt=Vt!=null?Vt:Object.assign(Object.assign({},(0,de.Z)(Zt)),{motionAppear:!1}),ft=Object.assign(Object.assign({},je),{checkable:ui,selectable:Ln,showIcon:pn,motion:Gt,blockNode:Un,showLine:!!_n,dropIndicatorRender:Ae}),[nt,Oe]=(0,ve.ZP)(Ye),we=it.useMemo(()=>{if(!Wt)return!1;let ke={};switch(typeof Wt){case"function":ke.nodeDraggable=Wt;break;case"object":ke=Object.assign({},Wt);break;default:break}return ke.icon!==!1&&(ke.icon=ke.icon||it.createElement(ae.Z,null)),ke},[Wt]),ye=ke=>it.createElement(xe.Z,{prefixCls:Ye,switcherIcon:Lt,treeNodeProps:ke,showLine:_n});return nt(it.createElement(pe.Z,Object.assign({itemHeight:20,ref:Et,virtual:xt},ft,{style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),mt),prefixCls:Ye,className:Ee()({[`${Ye}-icon-hide`]:!pn,[`${Ye}-block-node`]:Un,[`${Ye}-unselectable`]:!Ln,[`${Ye}-rtl`]:Ht==="rtl"},Bt==null?void 0:Bt.className,Hn,Oe),direction:Ht,checkable:ui&&it.createElement("span",{className:`${Ye}-checkbox-inner`}),selectable:Ln,switcherIcon:ye,draggable:we}),Gn))}),He;(function(je){je[je.None=0]="None",je[je.Start=1]="Start",je[je.End=2]="End"})(He||(He={}));function ze(je,Et){function ln(Ht){const{key:xt,children:Bt}=Ht;Et(xt,Ht)!==!1&&ze(Bt||[],Et)}je.forEach(ln)}function Ke(je){let{treeData:Et,expandedKeys:ln,startKey:Ht,endKey:xt}=je;const Bt=[];let rn=He.None;if(Ht&&Ht===xt)return[Ht];if(!Ht||!xt)return[];function Hn(pn){return pn===Ht||pn===xt}return ze(Et,pn=>{if(rn===He.End)return!1;if(Hn(pn)){if(Bt.push(pn),rn===He.None)rn=He.Start;else if(rn===He.Start)return rn=He.End,!1}else rn===He.Start&&Bt.push(pn);return ln.includes(pn)}),Bt}function Ze(je,Et){const ln=(0,Ie.Z)(Et),Ht=[];return ze(je,(xt,Bt)=>{const rn=ln.indexOf(xt);return rn!==-1&&(Ht.push(Bt),ln.splice(rn,1)),!!ln.length}),Ht}var Mt=function(je,Et){var ln={};for(var Ht in je)Object.prototype.hasOwnProperty.call(je,Ht)&&Et.indexOf(Ht)<0&&(ln[Ht]=je[Ht]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Ht=Object.getOwnPropertySymbols(je);xt<Ht.length;xt++)Et.indexOf(Ht[xt])<0&&Object.prototype.propertyIsEnumerable.call(je,Ht[xt])&&(ln[Ht[xt]]=je[Ht[xt]]);return ln};function Xe(je){const{isLeaf:Et,expanded:ln}=je;return Et?it.createElement(Ve.Z,null):ln?it.createElement(st.Z,null):it.createElement($e,null)}function Ft(je){let{treeData:Et,children:ln}=je;return Et||(0,te.zn)(ln)}const Ct=(je,Et)=>{var{defaultExpandAll:ln,defaultExpandParent:Ht,defaultExpandedKeys:xt}=je,Bt=Mt(je,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const rn=it.useRef(),Hn=it.useRef(),pn=()=>{const{keyEntities:we}=(0,te.I8)(Ft(Bt));let ye;return ln?ye=Object.keys(we):Ht?ye=(0,ee.r7)(Bt.expandedKeys||xt||[],we):ye=Bt.expandedKeys||xt,ye},[_n,Lt]=it.useState(Bt.selectedKeys||Bt.defaultSelectedKeys||[]),[Un,Gn]=it.useState(()=>pn());it.useEffect(()=>{"selectedKeys"in Bt&&Lt(Bt.selectedKeys)},[Bt.selectedKeys]),it.useEffect(()=>{"expandedKeys"in Bt&&Gn(Bt.expandedKeys)},[Bt.expandedKeys]);const ui=(we,ye)=>{var ke;return"expandedKeys"in Bt||Gn(we),(ke=Bt.onExpand)===null||ke===void 0?void 0:ke.call(Bt,we,ye)},Ln=(we,ye)=>{var ke;const{multiple:Ge}=Bt,{node:Fe,nativeEvent:pt}=ye,{key:tn=""}=Fe,en=Ft(Bt),wt=Object.assign(Object.assign({},ye),{selected:!0}),Xt=(pt==null?void 0:pt.ctrlKey)||(pt==null?void 0:pt.metaKey),Pn=pt==null?void 0:pt.shiftKey;let In;Ge&&Xt?(In=we,rn.current=tn,Hn.current=In,wt.selectedNodes=Ze(en,In)):Ge&&Pn?(In=Array.from(new Set([].concat((0,Ie.Z)(Hn.current||[]),(0,Ie.Z)(Ke({treeData:en,expandedKeys:Un,startKey:tn,endKey:rn.current}))))),wt.selectedNodes=Ze(en,In)):(In=[tn],rn.current=tn,Hn.current=In,wt.selectedNodes=Ze(en,In)),(ke=Bt.onSelect)===null||ke===void 0||ke.call(Bt,In,wt),"selectedKeys"in Bt||Lt(In)},{getPrefixCls:Wt,direction:Vt}=it.useContext(ue.E_),{prefixCls:mt,className:Ye,showIcon:Zt=!0,expandAction:Gt="click"}=Bt,ft=Mt(Bt,["prefixCls","className","showIcon","expandAction"]),nt=Wt("tree",mt),Oe=Ee()(`${nt}-directory`,{[`${nt}-directory-rtl`]:Vt==="rtl"},Ye);return it.createElement(Te,Object.assign({icon:Xe,ref:Et,blockNode:!0},ft,{showIcon:Zt,expandAction:Gt,prefixCls:nt,className:Oe,expandedKeys:Un,selectedKeys:_n,onSelect:Ln,onExpand:ui}))};var It=it.forwardRef(Ct);const _t=Te;_t.DirectoryTree=It,_t.TreeNode=pe.O;var lt=_t},20648:function(gn,zt,he){"use strict";he.d(zt,{TM:function(){return Qe},Yk:function(){return $e}});var pe=he(9792),Ie=he(98447),Ve=he(17313),st=he(8378),We=he(37613),it=he(83116);const be=new pe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),yt=(Ee,ee)=>({[`.${Ee}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ee.motionDurationSlow}`}}}),vt=(Ee,ee)=>({[`.${Ee}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ee.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ee.lineWidthBold}px solid ${ee.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Je=(Ee,ee)=>{const{treeCls:te,treeNodeCls:ue,treeNodePadding:ae,titleHeight:de,nodeSelectedBg:ve,nodeHoverBg:Pe}=ee,Ae=ee.paddingXS;return{[te]:Object.assign(Object.assign({},(0,Ve.Wf)(ee)),{background:ee.colorBgContainer,borderRadius:ee.borderRadius,transition:`background-color ${ee.motionDurationSlow}`,[`&${te}-rtl`]:{[`${te}-switcher`]:{"&_close":{[`${te}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${te}-active-focused)`]:Object.assign({},(0,Ve.oN)(ee)),[`${te}-list-holder-inner`]:{alignItems:"flex-start"},[`&${te}-block-node`]:{[`${te}-list-holder-inner`]:{alignItems:"stretch",[`${te}-node-content-wrapper`]:{flex:"auto"},[`${ue}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:ae,insetInlineStart:0,border:`1px solid ${ee.colorPrimary}`,opacity:0,animationName:be,animationDuration:ee.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ue}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${ae}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${te}-node-content-wrapper`]:{color:ee.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${te}-node-content-wrapper`]:Object.assign({},(0,Ve.oN)(ee)),[`&:not(${ue}-disabled).filter-node ${te}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${te}-draggable-icon`]:{flexShrink:0,width:de,lineHeight:`${de}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ee.motionDurationSlow}`,[`${ue}:hover &`]:{opacity:.45}},[`&${ue}-disabled`]:{[`${te}-draggable-icon`]:{visibility:"hidden"}}}},[`${te}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:de}},[`${te}-draggable-icon`]:{visibility:"hidden"},[`${te}-switcher`]:Object.assign(Object.assign({},yt(Ee,ee)),{position:"relative",flex:"none",alignSelf:"stretch",width:de,margin:0,lineHeight:`${de}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${te}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ee.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:de/2,bottom:-ae,marginInlineStart:-1,borderInlineEnd:`1px solid ${ee.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:de/2*.8,height:de/2,borderBottom:`1px solid ${ee.colorBorder}`,content:'""'}}}),[`${te}-checkbox`]:{top:"initial",marginInlineEnd:Ae},[`${te}-node-content-wrapper, ${te}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:de,margin:0,padding:`0 ${ee.paddingXS/2}px`,color:"inherit",lineHeight:`${de}px`,background:"transparent",borderRadius:ee.borderRadius,cursor:"pointer",transition:`all ${ee.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:Pe},[`&${te}-node-selected`]:{backgroundColor:ve},[`${te}-iconEle`]:{display:"inline-block",width:de,height:de,lineHeight:`${de}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${te}-unselectable ${te}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${te}-node-content-wrapper`]:Object.assign({lineHeight:`${de}px`,userSelect:"none"},vt(Ee,ee)),[`${ue}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ee.colorPrimary}`}},"&-show-line":{[`${te}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:de/2,bottom:-ae,borderInlineEnd:`1px solid ${ee.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${te}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ue}-leaf-last`]:{[`${te}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${de/2}px !important`}}}}})}},tt=Ee=>{const{treeCls:ee,treeNodeCls:te,treeNodePadding:ue,directoryNodeSelectedBg:ae,directoryNodeSelectedColor:de}=Ee;return{[`${ee}${ee}-directory`]:{[te]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ue,insetInlineStart:0,transition:`background-color ${Ee.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ee.controlItemBgHover}},"> *":{zIndex:1},[`${ee}-switcher`]:{transition:`color ${Ee.motionDurationMid}`},[`${ee}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ee}-node-selected`]:{color:de,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:ae},[`${ee}-switcher`]:{color:de},[`${ee}-node-content-wrapper`]:{color:de,background:"transparent"}}}}}},$e=(Ee,ee)=>{const te=`.${Ee}`,ue=`${te}-treenode`,ae=ee.paddingXS/2,de=(0,We.TS)(ee,{treeCls:te,treeNodeCls:ue,treeNodePadding:ae});return[Je(Ee,de),tt(de)]},Qe=Ee=>{const{controlHeightSM:ee}=Ee;return{titleHeight:ee,nodeHoverBg:Ee.controlItemBgHover,nodeSelectedBg:Ee.controlItemBgActive}};zt.ZP=(0,it.Z)("Tree",(Ee,ee)=>{let{prefixCls:te}=ee;return[{[Ee.componentCls]:(0,Ie.C2)(`${te}-checkbox`,Ee)},$e(te,Ee),(0,st.Z)(Ee)]},Ee=>{const{colorTextLightSolid:ee,colorPrimary:te}=Ee;return Object.assign(Object.assign({},Qe(Ee)),{directoryNodeSelectedColor:ee,directoryNodeSelectedBg:te})})},48610:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return ue}});var pe=he(5891),Ie=he(59301),Ve={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"},st=Ve,We=he(88853),it=function(de,ve){return Ie.createElement(We.Z,(0,pe.Z)({},de,{ref:ve,icon:st}))},be=Ie.forwardRef(it),yt=be,vt=he(43971),Je=he(50023),tt=he(77042),$e=he(5527),Qe=he(92310),Ee=he.n(Qe),ee=he(92343),ue=ae=>{const{prefixCls:de,switcherIcon:ve,treeNodeProps:Pe,showLine:Ae}=ae,{isLeaf:xe,expanded:Le,loading:Te}=Pe;if(Te)return Ie.createElement(Je.Z,{className:`${de}-switcher-loading-icon`});let He;if(Ae&&typeof Ae=="object"&&(He=Ae.showLeafIcon),xe){if(!Ae)return null;if(typeof He!="boolean"&&He){const Ze=typeof He=="function"?He(Pe):He,Mt=`${de}-switcher-line-custom-icon`;return(0,ee.l$)(Ze)?(0,ee.Tm)(Ze,{className:Ee()(Ze.props.className||"",Mt)}):Ze}return He?Ie.createElement(vt.Z,{className:`${de}-switcher-line-icon`}):Ie.createElement("span",{className:`${de}-switcher-leaf-line`})}const ze=`${de}-switcher-icon`,Ke=typeof ve=="function"?ve(Pe):ve;return(0,ee.l$)(Ke)?(0,ee.Tm)(Ke,{className:Ee()(Ke.props.className||"",ze)}):Ke!==void 0?Ke:Ae?Le?Ie.createElement(tt.Z,{className:`${de}-switcher-line-icon`}):Ie.createElement($e.Z,{className:`${de}-switcher-line-icon`}):Ie.createElement(yt,{className:ze})}},24645:function(gn,zt,he){"use strict";he.d(zt,{default:function(){return Nn}});var pe=he(59301),Ie=he(26390),Ve=he(92310),st=he.n(Ve),We=he(5891),it=he(79545),be=he(68550),yt=he(17928),vt=he(7711),Je=he(80962),tt=he(19149),$e=he(50204),Qe=he(80665),Ee=he(20959),ee=he(36994);function te(on,Sn){var Fn="cannot ".concat(on.method," ").concat(on.action," ").concat(Sn.status,"'"),En=new Error(Fn);return En.status=Sn.status,En.method=on.method,En.url=on.action,En}function ue(on){var Sn=on.responseText||on.response;if(!Sn)return Sn;try{return JSON.parse(Sn)}catch(Fn){return Sn}}function ae(on){var Sn=new XMLHttpRequest;on.onProgress&&Sn.upload&&(Sn.upload.onprogress=function(Zn){Zn.total>0&&(Zn.percent=Zn.loaded/Zn.total*100),on.onProgress(Zn)});var Fn=new FormData;on.data&&Object.keys(on.data).forEach(function(kn){var Zn=on.data[kn];if(Array.isArray(Zn)){Zn.forEach(function(Jn){Fn.append("".concat(kn,"[]"),Jn)});return}Fn.append(kn,Zn)}),on.file instanceof Blob?Fn.append(on.filename,on.file,on.file.name):Fn.append(on.filename,on.file),Sn.onerror=function(Zn){on.onError(Zn)},Sn.onload=function(){return Sn.status<200||Sn.status>=300?on.onError(te(on,Sn),ue(Sn)):on.onSuccess(ue(Sn),Sn)},Sn.open(on.method,on.action,!0),on.withCredentials&&"withCredentials"in Sn&&(Sn.withCredentials=!0);var En=on.headers||{};return En["X-Requested-With"]!==null&&Sn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(En).forEach(function(kn){En[kn]!==null&&Sn.setRequestHeader(kn,En[kn])}),Sn.send(Fn),{abort:function(){Sn.abort()}}}var de=+new Date,ve=0;function Pe(){return"rc-upload-".concat(de,"-").concat(++ve)}var Ae=he(51395),xe=function(on,Sn){if(on&&Sn){var Fn=Array.isArray(Sn)?Sn:Sn.split(","),En=on.name||"",kn=on.type||"",Zn=kn.replace(/\/.*$/,"");return Fn.some(function(Jn){var si=Jn.trim();if(/^\*(\/\*)?$/.test(Jn))return!0;if(si.charAt(0)==="."){var Tn=En.toLowerCase(),mi=si.toLowerCase(),nr=[mi];return(mi===".jpg"||mi===".jpeg")&&(nr=[".jpg",".jpeg"]),nr.some(function(Br){return Tn.endsWith(Br)})}return/\/\*$/.test(si)?Zn===si.replace(/\/.*$/,""):kn===si?!0:/^\w+$/.test(si)?((0,Ae.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(si,"'.Skip for check.")),!0):!1})}return!0};function Le(on,Sn){var Fn=on.createReader(),En=[];function kn(){Fn.readEntries(function(Zn){var Jn=Array.prototype.slice.apply(Zn);En=En.concat(Jn);var si=!Jn.length;si?Sn(En):kn()})}kn()}var Te=function(Sn,Fn,En){var kn=function Zn(Jn,si){Jn&&(Jn.path=si||"",Jn.isFile?Jn.file(function(Tn){En(Tn)&&(Jn.fullPath&&!Tn.webkitRelativePath&&(Object.defineProperties(Tn,{webkitRelativePath:{writable:!0}}),Tn.webkitRelativePath=Jn.fullPath.replace(/^\//,""),Object.defineProperties(Tn,{webkitRelativePath:{writable:!1}})),Fn([Tn]))}):Jn.isDirectory&&Le(Jn,function(Tn){Tn.forEach(function(mi){Zn(mi,"".concat(si).concat(Jn.name,"/"))})}))};Sn.forEach(function(Zn){kn(Zn.webkitGetAsEntry())})},He=Te,ze=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ke=function(on){(0,yt.Z)(Fn,on);var Sn=(0,vt.Z)(Fn);function Fn(){var En;(0,it.Z)(this,Fn);for(var kn=arguments.length,Zn=new Array(kn),Jn=0;Jn<kn;Jn++)Zn[Jn]=arguments[Jn];return En=Sn.call.apply(Sn,[this].concat(Zn)),En.state={uid:Pe()},En.reqs={},En.fileInput=void 0,En._isMounted=void 0,En.onChange=function(si){var Tn=En.props,mi=Tn.accept,nr=Tn.directory,Br=si.target.files,rr=(0,Ie.Z)(Br).filter(function(Jt){return!nr||xe(Jt,mi)});En.uploadFiles(rr),En.reset()},En.onClick=function(si){var Tn=En.fileInput;if(Tn){var mi=si.target,nr=En.props.onClick;if(mi&&mi.tagName==="BUTTON"){var Br=Tn.parentNode;Br.focus(),mi.blur()}Tn.click(),nr&&nr(si)}},En.onKeyDown=function(si){si.key==="Enter"&&En.onClick(si)},En.onFileDrop=function(si){var Tn=En.props.multiple;if(si.preventDefault(),si.type!=="dragover")if(En.props.directory)He(Array.prototype.slice.call(si.dataTransfer.items),En.uploadFiles,function(nr){return xe(nr,En.props.accept)});else{var mi=(0,Ie.Z)(si.dataTransfer.files).filter(function(nr){return xe(nr,En.props.accept)});Tn===!1&&(mi=mi.slice(0,1)),En.uploadFiles(mi)}},En.uploadFiles=function(si){var Tn=(0,Ie.Z)(si),mi=Tn.map(function(nr){return nr.uid=Pe(),En.processFile(nr,Tn)});Promise.all(mi).then(function(nr){var Br=En.props.onBatchStart;Br==null||Br(nr.map(function(rr){var Jt=rr.origin,Fi=rr.parsedFile;return{file:Jt,parsedFile:Fi}})),nr.filter(function(rr){return rr.parsedFile!==null}).forEach(function(rr){En.post(rr)})})},En.processFile=function(){var si=(0,Ee.Z)((0,$e.Z)().mark(function Tn(mi,nr){var Br,rr,Jt,Fi,Si,Wi,Nr,br,Ir;return(0,$e.Z)().wrap(function(Ui){for(;;)switch(Ui.prev=Ui.next){case 0:if(Br=En.props.beforeUpload,rr=mi,!Br){Ui.next=14;break}return Ui.prev=3,Ui.next=6,Br(mi,nr);case 6:rr=Ui.sent,Ui.next=12;break;case 9:Ui.prev=9,Ui.t0=Ui.catch(3),rr=!1;case 12:if(rr!==!1){Ui.next=14;break}return Ui.abrupt("return",{origin:mi,parsedFile:null,action:null,data:null});case 14:if(Jt=En.props.action,typeof Jt!="function"){Ui.next=21;break}return Ui.next=18,Jt(mi);case 18:Fi=Ui.sent,Ui.next=22;break;case 21:Fi=Jt;case 22:if(Si=En.props.data,typeof Si!="function"){Ui.next=29;break}return Ui.next=26,Si(mi);case 26:Wi=Ui.sent,Ui.next=30;break;case 29:Wi=Si;case 30:return Nr=((0,Qe.Z)(rr)==="object"||typeof rr=="string")&&rr?rr:mi,Nr instanceof File?br=Nr:br=new File([Nr],mi.name,{type:mi.type}),Ir=br,Ir.uid=mi.uid,Ui.abrupt("return",{origin:mi,data:Wi,parsedFile:Ir,action:Fi});case 35:case"end":return Ui.stop()}},Tn,null,[[3,9]])}));return function(Tn,mi){return si.apply(this,arguments)}}(),En.saveFileInput=function(si){En.fileInput=si},En}return(0,be.Z)(Fn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(kn){var Zn=this,Jn=kn.data,si=kn.origin,Tn=kn.action,mi=kn.parsedFile;if(this._isMounted){var nr=this.props,Br=nr.onStart,rr=nr.customRequest,Jt=nr.name,Fi=nr.headers,Si=nr.withCredentials,Wi=nr.method,Nr=si.uid,br=rr||ae,Ir={action:Tn,filename:Jt,data:Jn,file:mi,headers:Fi,withCredentials:Si,method:Wi||"post",onProgress:function(Ui){var Jr=Zn.props.onProgress;Jr==null||Jr(Ui,mi)},onSuccess:function(Ui,Jr){var An=Zn.props.onSuccess;An==null||An(Ui,mi,Jr),delete Zn.reqs[Nr]},onError:function(Ui,Jr){var An=Zn.props.onError;An==null||An(Ui,Jr,mi),delete Zn.reqs[Nr]}};Br(si),this.reqs[Nr]=br(Ir)}}},{key:"reset",value:function(){this.setState({uid:Pe()})}},{key:"abort",value:function(kn){var Zn=this.reqs;if(kn){var Jn=kn.uid?kn.uid:kn;Zn[Jn]&&Zn[Jn].abort&&Zn[Jn].abort(),delete Zn[Jn]}else Object.keys(Zn).forEach(function(si){Zn[si]&&Zn[si].abort&&Zn[si].abort(),delete Zn[si]})}},{key:"render",value:function(){var kn=this.props,Zn=kn.component,Jn=kn.prefixCls,si=kn.className,Tn=kn.disabled,mi=kn.id,nr=kn.style,Br=kn.multiple,rr=kn.accept,Jt=kn.capture,Fi=kn.children,Si=kn.directory,Wi=kn.openFileDialogOnClick,Nr=kn.onMouseEnter,br=kn.onMouseLeave,Ir=(0,tt.Z)(kn,ze),hr=st()((0,Je.Z)((0,Je.Z)((0,Je.Z)({},Jn,!0),"".concat(Jn,"-disabled"),Tn),si,si)),Ui=Si?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Jr=Tn?{}:{onClick:Wi?this.onClick:function(){},onKeyDown:Wi?this.onKeyDown:function(){},onMouseEnter:Nr,onMouseLeave:br,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return pe.createElement(Zn,(0,We.Z)({},Jr,{className:hr,role:"button",style:nr}),pe.createElement("input",(0,We.Z)({},(0,ee.Z)(Ir,{aria:!0,data:!0}),{id:mi,disabled:Tn,type:"file",ref:this.saveFileInput,onClick:function(Co){return Co.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:rr},Ui,{multiple:Br,onChange:this.onChange},Jt!=null?{capture:Jt}:{})),Fi)}}]),Fn}(pe.Component),Ze=Ke;function Mt(){}var Xe=function(on){(0,yt.Z)(Fn,on);var Sn=(0,vt.Z)(Fn);function Fn(){var En;(0,it.Z)(this,Fn);for(var kn=arguments.length,Zn=new Array(kn),Jn=0;Jn<kn;Jn++)Zn[Jn]=arguments[Jn];return En=Sn.call.apply(Sn,[this].concat(Zn)),En.uploader=void 0,En.saveUploader=function(si){En.uploader=si},En}return(0,be.Z)(Fn,[{key:"abort",value:function(kn){this.uploader.abort(kn)}},{key:"render",value:function(){return pe.createElement(Ze,(0,We.Z)({},this.props,{ref:this.saveUploader}))}}]),Fn}(pe.Component);Xe.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Mt,onError:Mt,onSuccess:Mt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ft=Xe,Ct=Ft,Nt=he(35788),It=he(4676),_t=he(36355),lt=he(1684),je=he(9763),Et=he(31724),ln={icon:function(Sn,Fn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Fn}},{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:Sn}}]}},name:"file",theme:"twotone"},Ht=ln,xt=he(88853),Bt=function(Sn,Fn){return pe.createElement(xt.Z,(0,We.Z)({},Sn,{ref:Fn,icon:Ht}))},rn=pe.forwardRef(Bt),Hn=rn,pn=he(50023),_n={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"},Lt=_n,Un=function(Sn,Fn){return pe.createElement(xt.Z,(0,We.Z)({},Sn,{ref:Fn,icon:Lt}))},Gn=pe.forwardRef(Un),ui=Gn,Ln={icon:function(Sn,Fn){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:Sn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Fn}},{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:Fn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Fn}},{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:Sn}}]}},name:"picture",theme:"twotone"},Wt=Ln,Vt=function(Sn,Fn){return pe.createElement(xt.Z,(0,We.Z)({},Sn,{ref:Fn,icon:Wt}))},mt=pe.forwardRef(Vt),Ye=mt,Zt=he(43469),Gt=he(56762),ft=he(62892),nt=he(92343),Oe=he(3113);function we(on){return Object.assign(Object.assign({},on),{lastModified:on.lastModified,lastModifiedDate:on.lastModifiedDate,name:on.name,size:on.size,type:on.type,uid:on.uid,percent:0,originFileObj:on})}function ye(on,Sn){const Fn=(0,Ie.Z)(Sn),En=Fn.findIndex(kn=>{let{uid:Zn}=kn;return Zn===on.uid});return En===-1?Fn.push(on):Fn[En]=on,Fn}function ke(on,Sn){const Fn=on.uid!==void 0?"uid":"name";return Sn.filter(En=>En[Fn]===on[Fn])[0]}function Ge(on,Sn){const Fn=on.uid!==void 0?"uid":"name",En=Sn.filter(kn=>kn[Fn]!==on[Fn]);return En.length===Sn.length?null:En}const Fe=function(){const Sn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),En=Sn[Sn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(En)||[""])[0]},pt=on=>on.indexOf("image/")===0,tn=on=>{if(on.type&&!on.thumbUrl)return pt(on.type);const Sn=on.thumbUrl||on.url||"",Fn=Fe(Sn);return/^data:image\//.test(Sn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Fn)?!0:!(/^data:/.test(Sn)||Fn)},en=200;function wt(on){return new Promise(Sn=>{if(!on.type||!pt(on.type)){Sn("");return}const Fn=document.createElement("canvas");Fn.width=en,Fn.height=en,Fn.style.cssText=`position: fixed; left: 0; top: 0; width: ${en}px; height: ${en}px; z-index: 9999; display: none;`,document.body.appendChild(Fn);const En=Fn.getContext("2d"),kn=new Image;if(kn.onload=()=>{const{width:Zn,height:Jn}=kn;let si=en,Tn=en,mi=0,nr=0;Zn>Jn?(Tn=Jn*(en/Zn),nr=-(Tn-si)/2):(si=Zn*(en/Jn),mi=-(si-Tn)/2),En.drawImage(kn,mi,nr,si,Tn);const Br=Fn.toDataURL();document.body.removeChild(Fn),window.URL.revokeObjectURL(kn.src),Sn(Br)},kn.crossOrigin="anonymous",on.type.startsWith("image/svg+xml")){const Zn=new FileReader;Zn.onload=()=>{Zn.result&&(kn.src=Zn.result)},Zn.readAsDataURL(on)}else if(on.type.startsWith("image/gif")){const Zn=new FileReader;Zn.onload=()=>{Zn.result&&Sn(Zn.result)},Zn.readAsDataURL(on)}else kn.src=window.URL.createObjectURL(on)})}var Xt=he(72295),Pn=he(24566),In=he(30631),$n=he(93948),Pi=he(6848),Ai=pe.forwardRef((on,Sn)=>{let{prefixCls:Fn,className:En,style:kn,locale:Zn,listType:Jn,file:si,items:Tn,progress:mi,iconRender:nr,actionIconRender:Br,itemRender:rr,isImgUrl:Jt,showPreviewIcon:Fi,showRemoveIcon:Si,showDownloadIcon:Wi,previewIcon:Nr,removeIcon:br,downloadIcon:Ir,onPreview:hr,onDownload:Ui,onClose:Jr}=on;var An,Co;const{status:Wn}=si,[Hr,ha]=pe.useState(Wn);pe.useEffect(()=>{Wn!=="removed"&&ha(Wn)},[Wn]);const[yo,Ot]=pe.useState(!1);pe.useEffect(()=>{const lr=setTimeout(()=>{Ot(!0)},300);return()=>{clearTimeout(lr)}},[]);const di=nr(si);let Mn=pe.createElement("div",{className:`${Fn}-icon`},di);if(Jn==="picture"||Jn==="picture-card"||Jn==="picture-circle")if(Hr==="uploading"||!si.thumbUrl&&!si.url){const lr=st()(`${Fn}-list-item-thumbnail`,{[`${Fn}-list-item-file`]:Hr!=="uploading"});Mn=pe.createElement("div",{className:lr},di)}else{const lr=Jt!=null&&Jt(si)?pe.createElement("img",{src:si.thumbUrl||si.url,alt:si.name,className:`${Fn}-list-item-image`,crossOrigin:si.crossOrigin}):di,$i=st()(`${Fn}-list-item-thumbnail`,{[`${Fn}-list-item-file`]:Jt&&!Jt(si)});Mn=pe.createElement("a",{className:$i,onClick:kr=>hr(si,kr),href:si.url||si.thumbUrl,target:"_blank",rel:"noopener noreferrer"},lr)}const qn=st()(`${Fn}-list-item`,`${Fn}-list-item-${Hr}`),Ar=typeof si.linkProps=="string"?JSON.parse(si.linkProps):si.linkProps,Sr=Si?Br((typeof br=="function"?br(si):br)||pe.createElement(Xt.Z,null),()=>Jr(si),Fn,Zn.removeFile):null,Kn=Wi&&Hr==="done"?Br((typeof Ir=="function"?Ir(si):Ir)||pe.createElement(Pn.Z,null),()=>Ui(si),Fn,Zn.downloadFile):null,qe=Jn!=="picture-card"&&Jn!=="picture-circle"&&pe.createElement("span",{key:"download-delete",className:st()(`${Fn}-list-item-actions`,{picture:Jn==="picture"})},Kn,Sr),_i=st()(`${Fn}-list-item-name`),uo=si.url?[pe.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:_i,title:si.name},Ar,{href:si.url,onClick:lr=>hr(si,lr)}),si.name),qe]:[pe.createElement("span",{key:"view",className:_i,onClick:lr=>hr(si,lr),title:si.name},si.name),qe],wr={pointerEvents:"none",opacity:.5},Uo=Fi?pe.createElement("a",{href:si.url||si.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:si.url||si.thumbUrl?void 0:wr,onClick:lr=>hr(si,lr),title:Zn.previewFile},typeof Nr=="function"?Nr(si):Nr||pe.createElement(In.Z,null)):null,Er=(Jn==="picture-card"||Jn==="picture-circle")&&Hr!=="uploading"&&pe.createElement("span",{className:`${Fn}-list-item-actions`},Uo,Hr==="done"&&Kn,Sr),{getPrefixCls:fr}=pe.useContext(_t.E_),ho=fr(),ro=pe.createElement("div",{className:qn},Mn,uo,Er,yo&&pe.createElement(Zt.default,{motionName:`${ho}-fade`,visible:Hr==="uploading",motionDeadline:2e3},lr=>{let{className:$i}=lr;const kr="percent"in si?pe.createElement($n.Z,Object.assign({},mi,{type:"line",percent:si.percent,"aria-label":si["aria-label"],"aria-labelledby":si["aria-labelledby"]})):null;return pe.createElement("div",{className:st()(`${Fn}-list-item-progress`,$i)},kr)})),Gr=si.response&&typeof si.response=="string"?si.response:((An=si.error)===null||An===void 0?void 0:An.statusText)||((Co=si.error)===null||Co===void 0?void 0:Co.message)||Zn.uploadError,_o=Hr==="error"?pe.createElement(Pi.Z,{title:Gr,getPopupContainer:lr=>lr.parentNode},ro):ro;return pe.createElement("div",{className:st()(`${Fn}-list-item-container`,En),style:kn,ref:Sn},rr?rr(_o,si,Tn,{download:Ui.bind(null,si),preview:hr.bind(null,si),remove:Jr.bind(null,si)}):_o)});const Vi=(on,Sn)=>{const{listType:Fn="text",previewFile:En=wt,onPreview:kn,onDownload:Zn,onRemove:Jn,locale:si,iconRender:Tn,isImageUrl:mi=tn,prefixCls:nr,items:Br=[],showPreviewIcon:rr=!0,showRemoveIcon:Jt=!0,showDownloadIcon:Fi=!1,removeIcon:Si,previewIcon:Wi,downloadIcon:Nr,progress:br={size:[-1,2],showInfo:!1},appendAction:Ir,appendActionVisible:hr=!0,itemRender:Ui,disabled:Jr}=on,An=(0,Gt.Z)(),[Co,Wn]=pe.useState(!1);pe.useEffect(()=>{Fn!=="picture"&&Fn!=="picture-card"&&Fn!=="picture-circle"||(Br||[]).forEach(wr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(wr.originFileObj instanceof File||wr.originFileObj instanceof Blob)||wr.thumbUrl!==void 0||(wr.thumbUrl="",En&&En(wr.originFileObj).then(Uo=>{wr.thumbUrl=Uo||"",An()}))})},[Fn,Br,En]),pe.useEffect(()=>{Wn(!0)},[]);const Hr=(wr,Uo)=>{if(kn)return Uo==null||Uo.preventDefault(),kn(wr)},ha=wr=>{typeof Zn=="function"?Zn(wr):wr.url&&window.open(wr.url)},yo=wr=>{Jn==null||Jn(wr)},Ot=wr=>{if(Tn)return Tn(wr,Fn);const Uo=wr.status==="uploading",Er=mi&&mi(wr)?pe.createElement(Ye,null):pe.createElement(Hn,null);let fr=Uo?pe.createElement(pn.Z,null):pe.createElement(ui,null);return Fn==="picture"?fr=Uo?pe.createElement(pn.Z,null):Er:(Fn==="picture-card"||Fn==="picture-circle")&&(fr=Uo?si.uploading:Er),fr},di=(wr,Uo,Er,fr)=>{const ho={type:"text",size:"small",title:fr,onClick:ro=>{Uo(),(0,nt.l$)(wr)&&wr.props.onClick&&wr.props.onClick(ro)},className:`${Er}-list-item-action`,disabled:Jr};if((0,nt.l$)(wr)){const ro=(0,nt.Tm)(wr,Object.assign(Object.assign({},wr.props),{onClick:()=>{}}));return pe.createElement(Oe.ZP,Object.assign({},ho,{icon:ro}))}return pe.createElement(Oe.ZP,Object.assign({},ho),pe.createElement("span",null,wr))};pe.useImperativeHandle(Sn,()=>({handlePreview:Hr,handleDownload:ha}));const{getPrefixCls:Mn}=pe.useContext(_t.E_),qn=Mn("upload",nr),Ar=Mn(),Sr=st()(`${qn}-list`,`${qn}-list-${Fn}`),Kn=(0,Ie.Z)(Br.map(wr=>({key:wr.uid,file:wr})));let _i={motionDeadline:2e3,motionName:`${qn}-${Fn==="picture-card"||Fn==="picture-circle"?"animate-inline":"animate"}`,keys:Kn,motionAppear:Co};const uo=pe.useMemo(()=>{const wr=Object.assign({},(0,ft.Z)(Ar));return delete wr.onAppearEnd,delete wr.onEnterEnd,delete wr.onLeaveEnd,wr},[Ar]);return Fn!=="picture-card"&&Fn!=="picture-circle"&&(_i=Object.assign(Object.assign({},uo),_i)),pe.createElement("div",{className:Sr},pe.createElement(Zt.CSSMotionList,Object.assign({},_i,{component:!1}),wr=>{let{key:Uo,file:Er,className:fr,style:ho}=wr;return pe.createElement(Ai,{key:Uo,locale:si,prefixCls:qn,className:fr,style:ho,file:Er,items:Br,progress:br,listType:Fn,isImgUrl:mi,showPreviewIcon:rr,showRemoveIcon:Jt,showDownloadIcon:Fi,removeIcon:Si,previewIcon:Wi,downloadIcon:Nr,iconRender:Ot,actionIconRender:di,itemRender:Ui,onPreview:Hr,onDownload:ha,onClose:yo})}),Ir&&pe.createElement(Zt.default,Object.assign({},_i,{visible:hr,forceRender:!0}),wr=>{let{className:Uo,style:Er}=wr;return(0,nt.Tm)(Ir,fr=>({className:st()(fr.className,Uo),style:Object.assign(Object.assign(Object.assign({},Er),{pointerEvents:Uo?"none":void 0}),fr.style)}))}))};var sr=pe.forwardRef(Vi),Qn=he(17313),Ci=he(8378),er=he(83116),ri=he(37613),Di=on=>{const{componentCls:Sn,iconCls:Fn}=on;return{[`${Sn}-wrapper`]:{[`${Sn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:on.colorFillAlter,border:`${on.lineWidth}px dashed ${on.colorBorder}`,borderRadius:on.borderRadiusLG,cursor:"pointer",transition:`border-color ${on.motionDurationSlow}`,[Sn]:{padding:`${on.padding}px 0`},[`${Sn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Sn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Sn}-disabled):hover`]:{borderColor:on.colorPrimaryHover},[`p${Sn}-drag-icon`]:{marginBottom:on.margin,[Fn]:{color:on.colorPrimary,fontSize:on.uploadThumbnailSize}},[`p${Sn}-text`]:{margin:`0 0 ${on.marginXXS}px`,color:on.colorTextHeading,fontSize:on.fontSizeLG},[`p${Sn}-hint`]:{color:on.colorTextDescription,fontSize:on.fontSize},[`&${Sn}-disabled`]:{cursor:"not-allowed",[`p${Sn}-drag-icon ${Fn},
|
|
|
p${Sn}-text,
|
|
|
p${Sn}-hint
|
|
|
`]:{color:on.colorTextDisabled}}}}}},Yr=on=>{const{componentCls:Sn,antCls:Fn,iconCls:En,fontSize:kn,lineHeight:Zn}=on,Jn=`${Sn}-list-item`,si=`${Jn}-actions`,Tn=`${Jn}-action`,mi=Math.round(kn*Zn);return{[`${Sn}-wrapper`]:{[`${Sn}-list`]:Object.assign(Object.assign({},(0,Qn.dF)()),{lineHeight:on.lineHeight,[Jn]:{position:"relative",height:on.lineHeight*kn,marginTop:on.marginXS,fontSize:kn,display:"flex",alignItems:"center",transition:`background-color ${on.motionDurationSlow}`,"&:hover":{backgroundColor:on.controlItemBgHover},[`${Jn}-name`]:Object.assign(Object.assign({},Qn.vS),{padding:`0 ${on.paddingXS}px`,lineHeight:Zn,flex:"auto",transition:`all ${on.motionDurationSlow}`}),[si]:{[Tn]:{opacity:0},[`${Tn}${Fn}-btn-sm`]:{height:mi,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Tn}:focus-visible,
|
|
|
&.picture ${Tn}
|
|
|
`]:{opacity:1},[En]:{color:on.actionsColor,transition:`all ${on.motionDurationSlow}`},[`&:hover ${En}`]:{color:on.colorText}},[`${Sn}-icon ${En}`]:{color:on.colorTextDescription,fontSize:kn},[`${Jn}-progress`]:{position:"absolute",bottom:-on.uploadProgressOffset,width:"100%",paddingInlineStart:kn+on.paddingXS,fontSize:kn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Jn}:hover ${Tn}`]:{opacity:1,color:on.colorText},[`${Jn}-error`]:{color:on.colorError,[`${Jn}-name, ${Sn}-icon ${En}`]:{color:on.colorError},[si]:{[`${En}, ${En}:hover`]:{color:on.colorError},[Tn]:{opacity:1}}},[`${Sn}-list-item-container`]:{transition:`opacity ${on.motionDurationSlow}, height ${on.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},yr=he(9792),Dr=he(1950);const lo=new yr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Wo=new yr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var ki=on=>{const{componentCls:Sn}=on,Fn=`${Sn}-animate-inline`;return[{[`${Sn}-wrapper`]:{[`${Fn}-appear, ${Fn}-enter, ${Fn}-leave`]:{animationDuration:on.motionDurationSlow,animationTimingFunction:on.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Fn}-appear, ${Fn}-enter`]:{animationName:lo},[`${Fn}-leave`]:{animationName:Wo}}},{[`${Sn}-wrapper`]:(0,Dr.J$)(on)},lo,Wo]},an=he(93398),nn=he(64993);const Ut=on=>{const{componentCls:Sn,iconCls:Fn,uploadThumbnailSize:En,uploadProgressOffset:kn}=on,Zn=`${Sn}-list`,Jn=`${Zn}-item`;return{[`${Sn}-wrapper`]:{[`
|
|
|
${Zn}${Zn}-picture,
|
|
|
${Zn}${Zn}-picture-card,
|
|
|
${Zn}${Zn}-picture-circle
|
|
|
`]:{[Jn]:{position:"relative",height:En+on.lineWidth*2+on.paddingXS*2,padding:on.paddingXS,border:`${on.lineWidth}px ${on.lineType} ${on.colorBorder}`,borderRadius:on.borderRadiusLG,"&:hover":{background:"transparent"},[`${Jn}-thumbnail`]:Object.assign(Object.assign({},Qn.vS),{width:En,height:En,lineHeight:`${En+on.paddingSM}px`,textAlign:"center",flex:"none",[Fn]:{fontSize:on.fontSizeHeading2,color:on.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Jn}-progress`]:{bottom:kn,width:`calc(100% - ${on.paddingSM*2}px)`,marginTop:0,paddingInlineStart:En+on.paddingXS}},[`${Jn}-error`]:{borderColor:on.colorError,[`${Jn}-thumbnail ${Fn}`]:{[`svg path[fill='${an.blue[0]}']`]:{fill:on.colorErrorBg},[`svg path[fill='${an.blue.primary}']`]:{fill:on.colorError}}},[`${Jn}-uploading`]:{borderStyle:"dashed",[`${Jn}-name`]:{marginBottom:kn}}},[`${Zn}${Zn}-picture-circle ${Jn}`]:{[`&, &::before, ${Jn}-thumbnail`]:{borderRadius:"50%"}}}}},bt=on=>{const{componentCls:Sn,iconCls:Fn,fontSizeLG:En,colorTextLightSolid:kn}=on,Zn=`${Sn}-list`,Jn=`${Zn}-item`,si=on.uploadPicCardSize;return{[`
|
|
|
${Sn}-wrapper${Sn}-picture-card-wrapper,
|
|
|
${Sn}-wrapper${Sn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Qn.dF)()),{display:"inline-block",width:"100%",[`${Sn}${Sn}-select`]:{width:si,height:si,marginInlineEnd:on.marginXS,marginBottom:on.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:on.colorFillAlter,border:`${on.lineWidth}px dashed ${on.colorBorder}`,borderRadius:on.borderRadiusLG,cursor:"pointer",transition:`border-color ${on.motionDurationSlow}`,[`> ${Sn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Sn}-disabled):hover`]:{borderColor:on.colorPrimary}},[`${Zn}${Zn}-picture-card, ${Zn}${Zn}-picture-circle`]:{[`${Zn}-item-container`]:{display:"inline-block",width:si,height:si,marginBlock:`0 ${on.marginXS}px`,marginInline:`0 ${on.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Jn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${on.paddingXS*2}px)`,height:`calc(100% - ${on.paddingXS*2}px)`,backgroundColor:on.colorBgMask,opacity:0,transition:`all ${on.motionDurationSlow}`,content:'" "'}},[`${Jn}:hover`]:{[`&::before, ${Jn}-actions`]:{opacity:1}},[`${Jn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${on.motionDurationSlow}`,[`${Fn}-eye, ${Fn}-download, ${Fn}-delete`]:{zIndex:10,width:En,margin:`0 ${on.marginXXS}px`,fontSize:En,cursor:"pointer",transition:`all ${on.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Jn}-actions, ${Jn}-actions:hover`]:{[`${Fn}-eye, ${Fn}-download, ${Fn}-delete`]:{color:new nn.C(kn).setAlpha(.65).toRgbString(),"&:hover":{color:kn}}},[`${Jn}-thumbnail, ${Jn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Jn}-name`]:{display:"none",textAlign:"center"},[`${Jn}-file + ${Jn}-name`]:{position:"absolute",bottom:on.margin,display:"block",width:`calc(100% - ${on.paddingXS*2}px)`},[`${Jn}-uploading`]:{[`&${Jn}`]:{backgroundColor:on.colorFillAlter},[`&::before, ${Fn}-eye, ${Fn}-download, ${Fn}-delete`]:{display:"none"}},[`${Jn}-progress`]:{bottom:on.marginXL,width:`calc(100% - ${on.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Sn}-wrapper${Sn}-picture-circle-wrapper`]:{[`${Sn}${Sn}-select`]:{borderRadius:"50%"}}}};var hn=on=>{const{componentCls:Sn}=on;return{[`${Sn}-rtl`]:{direction:"rtl"}}};const Tt=on=>{const{componentCls:Sn,colorTextDisabled:Fn}=on;return{[`${Sn}-wrapper`]:Object.assign(Object.assign({},(0,Qn.Wf)(on)),{[Sn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Sn}-select`]:{display:"inline-block"},[`${Sn}-disabled`]:{color:Fn,cursor:"not-allowed"}})}};var ot=(0,er.Z)("Upload",on=>{const{fontSizeHeading3:Sn,fontSize:Fn,lineHeight:En,lineWidth:kn,controlHeightLG:Zn}=on,Jn=Math.round(Fn*En),si=(0,ri.TS)(on,{uploadThumbnailSize:Sn*2,uploadProgressOffset:Jn/2+kn,uploadPicCardSize:Zn*2.55});return[Tt(si),Di(si),Ut(si),bt(si),Yr(si),ki(si),hn(si),(0,Ci.Z)(si)]},on=>({actionsColor:on.colorTextDescription})),fn=function(on,Sn,Fn,En){function kn(Zn){return Zn instanceof Fn?Zn:new Fn(function(Jn){Jn(Zn)})}return new(Fn||(Fn=Promise))(function(Zn,Jn){function si(nr){try{mi(En.next(nr))}catch(Br){Jn(Br)}}function Tn(nr){try{mi(En.throw(nr))}catch(Br){Jn(Br)}}function mi(nr){nr.done?Zn(nr.value):kn(nr.value).then(si,Tn)}mi((En=En.apply(on,Sn||[])).next())})};const yn=`__LIST_IGNORE_${Date.now()}__`,li=(on,Sn)=>{const{fileList:Fn,defaultFileList:En,onRemove:kn,showUploadList:Zn=!0,listType:Jn="text",onPreview:si,onDownload:Tn,onChange:mi,onDrop:nr,previewFile:Br,disabled:rr,locale:Jt,iconRender:Fi,isImageUrl:Si,progress:Wi,prefixCls:Nr,className:br,type:Ir="select",children:hr,style:Ui,itemRender:Jr,maxCount:An,data:Co={},multiple:Wn=!1,action:Hr="",accept:ha="",supportServerRender:yo=!0,rootClassName:Ot}=on,di=pe.useContext(lt.Z),Mn=rr!=null?rr:di,[qn,Ar]=(0,Nt.Z)(En||[],{value:Fn,postState:Lo=>Lo!=null?Lo:[]}),[Sr,Kn]=pe.useState("drop"),qe=pe.useRef(null);pe.useMemo(()=>{const Lo=Date.now();(Fn||[]).forEach((fa,Pa)=>{!fa.uid&&!Object.isFrozen(fa)&&(fa.uid=`__AUTO__${Lo}_${Pa}__`)})},[Fn]);const _i=(Lo,fa,Pa)=>{let sa=(0,Ie.Z)(fa),vo=!1;An===1?sa=sa.slice(-1):An&&(vo=sa.length>An,sa=sa.slice(0,An)),(0,It.flushSync)(()=>{Ar(sa)});const aa={file:Lo,fileList:sa};Pa&&(aa.event=Pa),(!vo||sa.some(is=>is.uid===Lo.uid))&&(0,It.flushSync)(()=>{mi==null||mi(aa)})},uo=(Lo,fa)=>fn(void 0,void 0,void 0,function*(){const{beforeUpload:Pa,transformFile:sa}=on;let vo=Lo;if(Pa){const aa=yield Pa(Lo,fa);if(aa===!1)return!1;if(delete Lo[yn],aa===yn)return Object.defineProperty(Lo,yn,{value:!0,configurable:!0}),!1;typeof aa=="object"&&aa&&(vo=aa)}return sa&&(vo=yield sa(vo)),vo}),wr=Lo=>{const fa=Lo.filter(vo=>!vo.file[yn]);if(!fa.length)return;const Pa=fa.map(vo=>we(vo.file));let sa=(0,Ie.Z)(qn);Pa.forEach(vo=>{sa=ye(vo,sa)}),Pa.forEach((vo,aa)=>{let is=vo;if(fa[aa].parsedFile)vo.status="uploading";else{const{originFileObj:qr}=vo;let gr;try{gr=new File([qr],qr.name,{type:qr.type})}catch(zr){gr=new Blob([qr],{type:qr.type}),gr.name=qr.name,gr.lastModifiedDate=new Date,gr.lastModified=new Date().getTime()}gr.uid=vo.uid,is=gr}_i(is,sa)})},Uo=(Lo,fa,Pa)=>{try{typeof Lo=="string"&&(Lo=JSON.parse(Lo))}catch(aa){}if(!ke(fa,qn))return;const sa=we(fa);sa.status="done",sa.percent=100,sa.response=Lo,sa.xhr=Pa;const vo=ye(sa,qn);_i(sa,vo)},Er=(Lo,fa)=>{if(!ke(fa,qn))return;const Pa=we(fa);Pa.status="uploading",Pa.percent=Lo.percent;const sa=ye(Pa,qn);_i(Pa,sa,Lo)},fr=(Lo,fa,Pa)=>{if(!ke(Pa,qn))return;const sa=we(Pa);sa.error=Lo,sa.response=fa,sa.status="error";const vo=ye(sa,qn);_i(sa,vo)},ho=Lo=>{let fa;Promise.resolve(typeof kn=="function"?kn(Lo):kn).then(Pa=>{var sa;if(Pa===!1)return;const vo=Ge(Lo,qn);vo&&(fa=Object.assign(Object.assign({},Lo),{status:"removed"}),qn==null||qn.forEach(aa=>{const is=fa.uid!==void 0?"uid":"name";aa[is]===fa[is]&&!Object.isFrozen(aa)&&(aa.status="removed")}),(sa=qe.current)===null||sa===void 0||sa.abort(fa),_i(fa,vo))})},ro=Lo=>{Kn(Lo.type),Lo.type==="drop"&&(nr==null||nr(Lo))};pe.useImperativeHandle(Sn,()=>({onBatchStart:wr,onSuccess:Uo,onProgress:Er,onError:fr,fileList:qn,upload:qe.current}));const{getPrefixCls:Gr,direction:_o,upload:lr}=pe.useContext(_t.E_),$i=Gr("upload",Nr),kr=Object.assign(Object.assign({onBatchStart:wr,onError:fr,onProgress:Er,onSuccess:Uo},on),{data:Co,multiple:Wn,action:Hr,accept:ha,supportServerRender:yo,prefixCls:$i,disabled:Mn,beforeUpload:uo,onChange:void 0});delete kr.className,delete kr.style,(!hr||Mn)&&delete kr.id;const[oi,Ao]=ot($i),[Jo]=(0,je.Z)("Upload",Et.Z.Upload),{showRemoveIcon:Fa,showPreviewIcon:na,showDownloadIcon:ia,removeIcon:xa,previewIcon:fo,downloadIcon:qa}=typeof Zn=="boolean"?{}:Zn,bs=(Lo,fa)=>Zn?pe.createElement(sr,{prefixCls:$i,listType:Jn,items:qn,previewFile:Br,onPreview:si,onDownload:Tn,onRemove:ho,showRemoveIcon:!Mn&&Fa,showPreviewIcon:na,showDownloadIcon:ia,removeIcon:xa,previewIcon:fo,downloadIcon:qa,iconRender:Fi,locale:Object.assign(Object.assign({},Jo),Jt),isImageUrl:Si,progress:Wi,appendAction:Lo,appendActionVisible:fa,itemRender:Jr,disabled:Mn}):Lo,So=st()(`${$i}-wrapper`,br,Ot,Ao,lr==null?void 0:lr.className,{[`${$i}-rtl`]:_o==="rtl",[`${$i}-picture-card-wrapper`]:Jn==="picture-card",[`${$i}-picture-circle-wrapper`]:Jn==="picture-circle"}),Cn=Object.assign(Object.assign({},lr==null?void 0:lr.style),Ui);if(Ir==="drag"){const Lo=st()(Ao,$i,`${$i}-drag`,{[`${$i}-drag-uploading`]:qn.some(fa=>fa.status==="uploading"),[`${$i}-drag-hover`]:Sr==="dragover",[`${$i}-disabled`]:Mn,[`${$i}-rtl`]:_o==="rtl"});return oi(pe.createElement("span",{className:So},pe.createElement("div",{className:Lo,style:Cn,onDrop:ro,onDragOver:ro,onDragLeave:ro},pe.createElement(Ct,Object.assign({},kr,{ref:qe,className:`${$i}-btn`}),pe.createElement("div",{className:`${$i}-drag-container`},hr))),bs()))}const cs=st()($i,`${$i}-select`,{[`${$i}-disabled`]:Mn}),Ss=(Lo=>pe.createElement("div",{className:cs,style:Lo},pe.createElement(Ct,Object.assign({},kr,{ref:qe}))))(hr?void 0:{display:"none"});return oi(Jn==="picture-card"||Jn==="picture-circle"?pe.createElement("span",{className:So},bs(Ss,!!hr)):pe.createElement("span",{className:So},Ss,bs()))};var at=pe.forwardRef(li),Bn=function(on,Sn){var Fn={};for(var En in on)Object.prototype.hasOwnProperty.call(on,En)&&Sn.indexOf(En)<0&&(Fn[En]=on[En]);if(on!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,En=Object.getOwnPropertySymbols(on);kn<En.length;kn++)Sn.indexOf(En[kn])<0&&Object.prototype.propertyIsEnumerable.call(on,En[kn])&&(Fn[En[kn]]=on[En[kn]]);return Fn},Li=pe.forwardRef((on,Sn)=>{var{style:Fn,height:En}=on,kn=Bn(on,["style","height"]);return pe.createElement(at,Object.assign({ref:Sn},kn,{type:"drag",style:Object.assign(Object.assign({},Fn),{height:En})}))});const qt=at;qt.Dragger=Li,qt.LIST_IGNORE=yn;var Nn=qt},57780:function(gn,zt,he){"use strict";he.r(zt),he.d(zt,{clsx:function(){return Ie}});function pe(Ve){var st,We,it="";if(typeof Ve=="string"||typeof Ve=="number")it+=Ve;else if(typeof Ve=="object")if(Array.isArray(Ve))for(st=0;st<Ve.length;st++)Ve[st]&&(We=pe(Ve[st]))&&(it&&(it+=" "),it+=We);else for(st in Ve)Ve[st]&&(it&&(it+=" "),it+=st);return it}function Ie(){for(var Ve,st,We=0,it="";We<arguments.length;)(Ve=arguments[We++])&&(st=pe(Ve))&&(it&&(it+=" "),it+=st);return it}zt.default=Ie},99498:function(gn,zt,he){(function(pe){pe(he(89780))})(function(pe){pe.defineOption("placeholder","",function(yt,vt,Je){var tt=Je&&Je!=pe.Init;if(vt&&!tt)yt.on("blur",We),yt.on("change",it),yt.on("swapDoc",it),pe.on(yt.getInputField(),"compositionupdate",yt.state.placeholderCompose=function(){st(yt)}),it(yt);else if(!vt&&tt){yt.off("blur",We),yt.off("change",it),yt.off("swapDoc",it),pe.off(yt.getInputField(),"compositionupdate",yt.state.placeholderCompose),Ie(yt);var $e=yt.getWrapperElement();$e.className=$e.className.replace(" CodeMirror-empty","")}vt&&!yt.hasFocus()&&We(yt)});function Ie(yt){yt.state.placeholder&&(yt.state.placeholder.parentNode.removeChild(yt.state.placeholder),yt.state.placeholder=null)}function Ve(yt){Ie(yt);var vt=yt.state.placeholder=document.createElement("pre");vt.style.cssText="height: 0; overflow: visible",vt.style.direction=yt.getOption("direction"),vt.className="CodeMirror-placeholder CodeMirror-line-like";var Je=yt.getOption("placeholder");typeof Je=="string"&&(Je=document.createTextNode(Je)),vt.appendChild(Je),yt.display.lineSpace.insertBefore(vt,yt.display.lineSpace.firstChild)}function st(yt){setTimeout(function(){var vt=!1,Je=yt.getInputField();Je.nodeName=="TEXTAREA"?vt=!Je.value:yt.lineCount()==1&&(vt=!/[^\u200b]/.test(Je.querySelector(".CodeMirror-line").textContent)),vt?Ve(yt):Ie(yt)},20)}function We(yt){be(yt)&&Ve(yt)}function it(yt){var vt=yt.getWrapperElement(),Je=be(yt);vt.className=vt.className.replace(" CodeMirror-empty","")+(Je?" CodeMirror-empty":""),Je?Ve(yt):Ie(yt)}function be(yt){return yt.lineCount()===1&&yt.getLine(0)===""}})},25717:function(gn,zt,he){(function(pe){pe(he(89780))})(function(pe){var Ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ve=pe.Pos;pe.defineOption("autoCloseBrackets",!1,function(ee,te,ue){ue&&ue!=pe.Init&&(ee.removeKeyMap(We),ee.state.closeBrackets=null),te&&(it(st(te,"pairs")),ee.state.closeBrackets=te,ee.addKeyMap(We))});function st(ee,te){return te=="pairs"&&typeof ee=="string"?ee:typeof ee=="object"&&ee[te]!=null?ee[te]:Ie[te]}var We={Backspace:vt,Enter:Je};function it(ee){for(var te=0;te<ee.length;te++){var ue=ee.charAt(te),ae="'"+ue+"'";We[ae]||(We[ae]=be(ue))}}it(Ie.pairs+"`");function be(ee){return function(te){return $e(te,ee)}}function yt(ee){var te=ee.state.closeBrackets;if(!te||te.override)return te;var ue=ee.getModeAt(ee.getCursor());return ue.closeBrackets||te}function vt(ee){var te=yt(ee);if(!te||ee.getOption("disableInput"))return pe.Pass;for(var ue=st(te,"pairs"),ae=ee.listSelections(),de=0;de<ae.length;de++){if(!ae[de].empty())return pe.Pass;var ve=Qe(ee,ae[de].head);if(!ve||ue.indexOf(ve)%2!=0)return pe.Pass}for(var de=ae.length-1;de>=0;de--){var Pe=ae[de].head;ee.replaceRange("",Ve(Pe.line,Pe.ch-1),Ve(Pe.line,Pe.ch+1),"+delete")}}function Je(ee){var te=yt(ee),ue=te&&st(te,"explode");if(!ue||ee.getOption("disableInput"))return pe.Pass;for(var ae=ee.listSelections(),de=0;de<ae.length;de++){if(!ae[de].empty())return pe.Pass;var ve=Qe(ee,ae[de].head);if(!ve||ue.indexOf(ve)%2!=0)return pe.Pass}ee.operation(function(){var Pe=ee.lineSeparator()||`
|
|
|
`;ee.replaceSelection(Pe+Pe,null),ee.execCommand("goCharLeft"),ae=ee.listSelections();for(var Ae=0;Ae<ae.length;Ae++){var xe=ae[Ae].head.line;ee.indentLine(xe,null,!0),ee.indentLine(xe+1,null,!0)}})}function tt(ee){var te=pe.cmpPos(ee.anchor,ee.head)>0;return{anchor:new Ve(ee.anchor.line,ee.anchor.ch+(te?-1:1)),head:new Ve(ee.head.line,ee.head.ch+(te?1:-1))}}function $e(ee,te){var ue=yt(ee);if(!ue||ee.getOption("disableInput"))return pe.Pass;var ae=st(ue,"pairs"),de=ae.indexOf(te);if(de==-1)return pe.Pass;for(var ve=st(ue,"closeBefore"),Pe=st(ue,"triples"),Ae=ae.charAt(de+1)==te,xe=ee.listSelections(),Le=de%2==0,Te,He=0;He<xe.length;He++){var ze=xe[He],Ke=ze.head,Ze,Mt=ee.getRange(Ke,Ve(Ke.line,Ke.ch+1));if(Le&&!ze.empty())Ze="surround";else if((Ae||!Le)&&Mt==te)Ae&&Ee(ee,Ke)?Ze="both":Pe.indexOf(te)>=0&&ee.getRange(Ke,Ve(Ke.line,Ke.ch+3))==te+te+te?Ze="skipThree":Ze="skip";else if(Ae&&Ke.ch>1&&Pe.indexOf(te)>=0&&ee.getRange(Ve(Ke.line,Ke.ch-2),Ke)==te+te){if(Ke.ch>2&&/\bstring/.test(ee.getTokenTypeAt(Ve(Ke.line,Ke.ch-2))))return pe.Pass;Ze="addFour"}else if(Ae){var Xe=Ke.ch==0?" ":ee.getRange(Ve(Ke.line,Ke.ch-1),Ke);if(!pe.isWordChar(Mt)&&Xe!=te&&!pe.isWordChar(Xe))Ze="both";else return pe.Pass}else if(Le&&(Mt.length===0||/\s/.test(Mt)||ve.indexOf(Mt)>-1))Ze="both";else return pe.Pass;if(!Te)Te=Ze;else if(Te!=Ze)return pe.Pass}var Ft=de%2?ae.charAt(de-1):te,Ct=de%2?te:ae.charAt(de+1);ee.operation(function(){if(Te=="skip")ee.execCommand("goCharRight");else if(Te=="skipThree")for(var Nt=0;Nt<3;Nt++)ee.execCommand("goCharRight");else if(Te=="surround"){for(var It=ee.getSelections(),Nt=0;Nt<It.length;Nt++)It[Nt]=Ft+It[Nt]+Ct;ee.replaceSelections(It,"around"),It=ee.listSelections().slice();for(var Nt=0;Nt<It.length;Nt++)It[Nt]=tt(It[Nt]);ee.setSelections(It)}else Te=="both"?(ee.replaceSelection(Ft+Ct,null),ee.triggerElectric(Ft+Ct),ee.execCommand("goCharLeft")):Te=="addFour"&&(ee.replaceSelection(Ft+Ft+Ft+Ft,"before"),ee.execCommand("goCharRight"))})}function Qe(ee,te){var ue=ee.getRange(Ve(te.line,te.ch-1),Ve(te.line,te.ch+1));return ue.length==2?ue:null}function Ee(ee,te){var ue=ee.getTokenAt(Ve(te.line,te.ch+1));return/\bstring/.test(ue.type)&&ue.start==te.ch&&(te.ch==0||!/\bstring/.test(ee.getTokenTypeAt(te)))}})},6313:function(gn,zt,he){(function(pe){pe(he(89780),he(32855))})(function(pe){pe.defineOption("autoCloseTags",!1,function(vt,Je,tt){if(tt!=pe.Init&&tt&&vt.removeKeyMap("autoCloseTags"),!!Je){var $e={name:"autoCloseTags"};(typeof Je!="object"||Je.whenClosing!==!1)&&($e["'/'"]=function(Qe){return it(Qe)}),(typeof Je!="object"||Je.whenOpening!==!1)&&($e["'>'"]=function(Qe){return st(Qe)}),vt.addKeyMap($e)}});var Ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ve=["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 st(vt){if(vt.getOption("disableInput"))return pe.Pass;for(var Je=vt.listSelections(),tt=[],$e=vt.getOption("autoCloseTags"),Qe=0;Qe<Je.length;Qe++){if(!Je[Qe].empty())return pe.Pass;var Ee=Je[Qe].head,ee=vt.getTokenAt(Ee),te=pe.innerMode(vt.getMode(),ee.state),ue=te.state,ae=te.mode.xmlCurrentTag&&te.mode.xmlCurrentTag(ue),de=ae&&ae.name;if(!de)return pe.Pass;var ve=te.mode.configuration=="html",Pe=typeof $e=="object"&&$e.dontCloseTags||ve&&Ie,Ae=typeof $e=="object"&&$e.indentTags||ve&&Ve;ee.end>Ee.ch&&(de=de.slice(0,de.length-ee.end+Ee.ch));var xe=de.toLowerCase();if(!de||ee.type=="string"&&(ee.end!=Ee.ch||!/[\"\']/.test(ee.string.charAt(ee.string.length-1))||ee.string.length==1)||ee.type=="tag"&&ae.close||ee.string.indexOf("/")==Ee.ch-ee.start-1||Pe&&be(Pe,xe)>-1||yt(vt,te.mode.xmlCurrentContext&&te.mode.xmlCurrentContext(ue)||[],de,Ee,!0))return pe.Pass;var Le=typeof $e=="object"&&$e.emptyTags;if(Le&&be(Le,de)>-1){tt[Qe]={text:"/>",newPos:pe.Pos(Ee.line,Ee.ch+2)};continue}var Te=Ae&&be(Ae,xe)>-1;tt[Qe]={indent:Te,text:">"+(Te?`
|
|
|
|
|
|
`:"")+"</"+de+">",newPos:Te?pe.Pos(Ee.line+1,0):pe.Pos(Ee.line,Ee.ch+1)}}for(var He=typeof $e=="object"&&$e.dontIndentOnAutoClose,Qe=Je.length-1;Qe>=0;Qe--){var ze=tt[Qe];vt.replaceRange(ze.text,Je[Qe].head,Je[Qe].anchor,"+insert");var Ke=vt.listSelections().slice(0);Ke[Qe]={head:ze.newPos,anchor:ze.newPos},vt.setSelections(Ke),!He&&ze.indent&&(vt.indentLine(ze.newPos.line,null,!0),vt.indentLine(ze.newPos.line+1,null,!0))}}function We(vt,Je){for(var tt=vt.listSelections(),$e=[],Qe=Je?"/":"</",Ee=vt.getOption("autoCloseTags"),ee=typeof Ee=="object"&&Ee.dontIndentOnSlash,te=0;te<tt.length;te++){if(!tt[te].empty())return pe.Pass;var ue=tt[te].head,ae=vt.getTokenAt(ue),de=pe.innerMode(vt.getMode(),ae.state),ve=de.state;if(Je&&(ae.type=="string"||ae.string.charAt(0)!="<"||ae.start!=ue.ch-1))return pe.Pass;var Pe,Ae=de.mode.name!="xml"&&vt.getMode().name=="htmlmixed";if(Ae&&de.mode.name=="javascript")Pe=Qe+"script";else if(Ae&&de.mode.name=="css")Pe=Qe+"style";else{var xe=de.mode.xmlCurrentContext&&de.mode.xmlCurrentContext(ve);if(!xe||xe.length&&yt(vt,xe,xe[xe.length-1],ue))return pe.Pass;Pe=Qe+xe[xe.length-1]}vt.getLine(ue.line).charAt(ae.end)!=">"&&(Pe+=">"),$e[te]=Pe}if(vt.replaceSelections($e),tt=vt.listSelections(),!ee)for(var te=0;te<tt.length;te++)(te==tt.length-1||tt[te].head.line<tt[te+1].head.line)&&vt.indentLine(tt[te].head.line)}function it(vt){return vt.getOption("disableInput")?pe.Pass:We(vt,!0)}pe.commands.closeTag=function(vt){return We(vt)};function be(vt,Je){if(vt.indexOf)return vt.indexOf(Je);for(var tt=0,$e=vt.length;tt<$e;++tt)if(vt[tt]==Je)return tt;return-1}function yt(vt,Je,tt,$e,Qe){if(!pe.scanForClosingTag)return!1;var Ee=Math.min(vt.lastLine()+1,$e.line+500),ee=pe.scanForClosingTag(vt,$e,null,Ee);if(!ee||ee.tag!=tt)return!1;for(var te=Qe?1:0,ue=Je.length-1;ue>=0&&Je[ue]==tt;ue--)++te;$e=ee.to;for(var ue=1;ue<te;ue++){var ae=pe.scanForClosingTag(vt,$e,null,Ee);if(!ae||ae.tag!=tt)return!1;$e=ae.to}return!0}})},32855:function(gn,zt,he){(function(pe){pe(he(89780))})(function(pe){"use strict";var Ie=pe.Pos;function Ve(ue,ae){return ue.line-ae.line||ue.ch-ae.ch}var st="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",We=st+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",it=new RegExp("<(/?)(["+st+"]["+We+"]*)","g");function be(ue,ae,de,ve){this.line=ae,this.ch=de,this.cm=ue,this.text=ue.getLine(ae),this.min=ve?Math.max(ve.from,ue.firstLine()):ue.firstLine(),this.max=ve?Math.min(ve.to-1,ue.lastLine()):ue.lastLine()}function yt(ue,ae){var de=ue.cm.getTokenTypeAt(Ie(ue.line,ae));return de&&/\btag\b/.test(de)}function vt(ue){if(!(ue.line>=ue.max))return ue.ch=0,ue.text=ue.cm.getLine(++ue.line),!0}function Je(ue){if(!(ue.line<=ue.min))return ue.text=ue.cm.getLine(--ue.line),ue.ch=ue.text.length,!0}function tt(ue){for(;;){var ae=ue.text.indexOf(">",ue.ch);if(ae==-1){if(vt(ue))continue;return}if(!yt(ue,ae+1)){ue.ch=ae+1;continue}var de=ue.text.lastIndexOf("/",ae),ve=de>-1&&!/\S/.test(ue.text.slice(de+1,ae));return ue.ch=ae+1,ve?"selfClose":"regular"}}function $e(ue){for(;;){var ae=ue.ch?ue.text.lastIndexOf("<",ue.ch-1):-1;if(ae==-1){if(Je(ue))continue;return}if(!yt(ue,ae+1)){ue.ch=ae;continue}it.lastIndex=ae,ue.ch=ae;var de=it.exec(ue.text);if(de&&de.index==ae)return de}}function Qe(ue){for(;;){it.lastIndex=ue.ch;var ae=it.exec(ue.text);if(!ae){if(vt(ue))continue;return}if(!yt(ue,ae.index+1)){ue.ch=ae.index+1;continue}return ue.ch=ae.index+ae[0].length,ae}}function Ee(ue){for(;;){var ae=ue.ch?ue.text.lastIndexOf(">",ue.ch-1):-1;if(ae==-1){if(Je(ue))continue;return}if(!yt(ue,ae+1)){ue.ch=ae;continue}var de=ue.text.lastIndexOf("/",ae),ve=de>-1&&!/\S/.test(ue.text.slice(de+1,ae));return ue.ch=ae+1,ve?"selfClose":"regular"}}function ee(ue,ae){for(var de=[];;){var ve=Qe(ue),Pe,Ae=ue.line,xe=ue.ch-(ve?ve[0].length:0);if(!ve||!(Pe=tt(ue)))return;if(Pe!="selfClose")if(ve[1]){for(var Le=de.length-1;Le>=0;--Le)if(de[Le]==ve[2]){de.length=Le;break}if(Le<0&&(!ae||ae==ve[2]))return{tag:ve[2],from:Ie(Ae,xe),to:Ie(ue.line,ue.ch)}}else de.push(ve[2])}}function te(ue,ae){for(var de=[];;){var ve=Ee(ue);if(!ve)return;if(ve=="selfClose"){$e(ue);continue}var Pe=ue.line,Ae=ue.ch,xe=$e(ue);if(!xe)return;if(xe[1])de.push(xe[2]);else{for(var Le=de.length-1;Le>=0;--Le)if(de[Le]==xe[2]){de.length=Le;break}if(Le<0&&(!ae||ae==xe[2]))return{tag:xe[2],from:Ie(ue.line,ue.ch),to:Ie(Pe,Ae)}}}}pe.registerHelper("fold","xml",function(ue,ae){for(var de=new be(ue,ae.line,0);;){var ve=Qe(de);if(!ve||de.line!=ae.line)return;var Pe=tt(de);if(!Pe)return;if(!ve[1]&&Pe!="selfClose"){var Ae=Ie(de.line,de.ch),xe=ee(de,ve[2]);return xe&&Ve(xe.from,Ae)>0?{from:Ae,to:xe.from}:null}}}),pe.findMatchingTag=function(ue,ae,de){var ve=new be(ue,ae.line,ae.ch,de);if(!(ve.text.indexOf(">")==-1&&ve.text.indexOf("<")==-1)){var Pe=tt(ve),Ae=Pe&&Ie(ve.line,ve.ch),xe=Pe&&$e(ve);if(!(!Pe||!xe||Ve(ve,ae)>0)){var Le={from:Ie(ve.line,ve.ch),to:Ae,tag:xe[2]};return Pe=="selfClose"?{open:Le,close:null,at:"open"}:xe[1]?{open:te(ve,xe[2]),close:Le,at:"close"}:(ve=new be(ue,Ae.line,Ae.ch,de),{open:Le,close:ee(ve,xe[2]),at:"open"})}}},pe.findEnclosingTag=function(ue,ae,de,ve){for(var Pe=new be(ue,ae.line,ae.ch,de);;){var Ae=te(Pe,ve);if(!Ae)break;var xe=new be(ue,ae.line,ae.ch,de),Le=ee(xe,Ae.tag);if(Le)return{open:Ae,close:Le}}},pe.scanForClosingTag=function(ue,ae,de,ve){var Pe=new be(ue,ae.line,ae.ch,ve?{from:0,to:ve}:null);return ee(Pe,de)}})},89780:function(gn){(function(zt,he){gn.exports=he()})(this,function(){"use strict";var zt=navigator.userAgent,he=navigator.platform,pe=/gecko\/\d/i.test(zt),Ie=/MSIE \d/.test(zt),Ve=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zt),st=/Edge\/(\d+)/.exec(zt),We=Ie||Ve||st,it=We&&(Ie?document.documentMode||6:+(st||Ve)[1]),be=!st&&/WebKit\//.test(zt),yt=be&&/Qt\/\d+\.\d+/.test(zt),vt=!st&&/Chrome\//.test(zt),Je=/Opera\//.test(zt),tt=/Apple Computer/.test(navigator.vendor),$e=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(zt),Qe=/PhantomJS/.test(zt),Ee=!st&&/AppleWebKit/.test(zt)&&/Mobile\/\w+/.test(zt),ee=/Android/.test(zt),te=Ee||ee||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(zt),ue=Ee||/Mac/.test(he),ae=/\bCrOS\b/.test(zt),de=/win/i.test(he),ve=Je&&zt.match(/Version\/(\d*\.\d*)/);ve&&(ve=Number(ve[1])),ve&&ve>=15&&(Je=!1,be=!0);var Pe=ue&&(yt||Je&&(ve==null||ve<12.11)),Ae=pe||We&&it>=9;function xe(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Le=function(ie,se){var ge=ie.className,fe=xe(se).exec(ge);if(fe){var Se=ge.slice(fe.index+fe[0].length);ie.className=ge.slice(0,fe.index)+(Se?fe[1]+Se:"")}};function Te(ie){for(var se=ie.childNodes.length;se>0;--se)ie.removeChild(ie.firstChild);return ie}function He(ie,se){return Te(ie).appendChild(se)}function ze(ie,se,ge,fe){var Se=document.createElement(ie);if(ge&&(Se.className=ge),fe&&(Se.style.cssText=fe),typeof se=="string")Se.appendChild(document.createTextNode(se));else if(se)for(var Ne=0;Ne<se.length;++Ne)Se.appendChild(se[Ne]);return Se}function Ke(ie,se,ge,fe){var Se=ze(ie,se,ge,fe);return Se.setAttribute("role","presentation"),Se}var Ze;document.createRange?Ze=function(ie,se,ge,fe){var Se=document.createRange();return Se.setEnd(fe||ie,ge),Se.setStart(ie,se),Se}:Ze=function(ie,se,ge){var fe=document.body.createTextRange();try{fe.moveToElementText(ie.parentNode)}catch(Se){return fe}return fe.collapse(!0),fe.moveEnd("character",ge),fe.moveStart("character",se),fe};function Mt(ie,se){if(se.nodeType==3&&(se=se.parentNode),ie.contains)return ie.contains(se);do if(se.nodeType==11&&(se=se.host),se==ie)return!0;while(se=se.parentNode)}function Xe(){var ie;try{ie=document.activeElement}catch(se){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function Ft(ie,se){var ge=ie.className;xe(se).test(ge)||(ie.className+=(ge?" ":"")+se)}function Ct(ie,se){for(var ge=ie.split(" "),fe=0;fe<ge.length;fe++)ge[fe]&&!xe(ge[fe]).test(se)&&(se+=" "+ge[fe]);return se}var Nt=function(ie){ie.select()};Ee?Nt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:We&&(Nt=function(ie){try{ie.select()}catch(se){}});function It(ie){var se=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,se)}}function _t(ie,se,ge){se||(se={});for(var fe in ie)ie.hasOwnProperty(fe)&&(ge!==!1||!se.hasOwnProperty(fe))&&(se[fe]=ie[fe]);return se}function lt(ie,se,ge,fe,Se){se==null&&(se=ie.search(/[^\s\u00a0]/),se==-1&&(se=ie.length));for(var Ne=fe||0,_e=Se||0;;){var ht=ie.indexOf(" ",Ne);if(ht<0||ht>=se)return _e+(se-Ne);_e+=ht-Ne,_e+=ge-_e%ge,Ne=ht+1}}var je=function(){this.id=null,this.f=null,this.time=0,this.handler=It(this.onTimeout,this)};je.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},je.prototype.set=function(ie,se){this.f=se;var ge=+new Date+ie;(!this.id||ge<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ge)};function Et(ie,se){for(var ge=0;ge<ie.length;++ge)if(ie[ge]==se)return ge;return-1}var ln=50,Ht={toString:function(){return"CodeMirror.Pass"}},xt={scroll:!1},Bt={origin:"*mouse"},rn={origin:"+move"};function Hn(ie,se,ge){for(var fe=0,Se=0;;){var Ne=ie.indexOf(" ",fe);Ne==-1&&(Ne=ie.length);var _e=Ne-fe;if(Ne==ie.length||Se+_e>=se)return fe+Math.min(_e,se-Se);if(Se+=Ne-fe,Se+=ge-Se%ge,fe=Ne+1,Se>=se)return fe}}var pn=[""];function _n(ie){for(;pn.length<=ie;)pn.push(Lt(pn)+" ");return pn[ie]}function Lt(ie){return ie[ie.length-1]}function Un(ie,se){for(var ge=[],fe=0;fe<ie.length;fe++)ge[fe]=se(ie[fe],fe);return ge}function Gn(ie,se,ge){for(var fe=0,Se=ge(se);fe<ie.length&&ge(ie[fe])<=Se;)fe++;ie.splice(fe,0,se)}function ui(){}function Ln(ie,se){var ge;return Object.create?ge=Object.create(ie):(ui.prototype=ie,ge=new ui),se&&_t(se,ge),ge}var Wt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Vt(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Wt.test(ie))}function mt(ie,se){return se?se.source.indexOf("\\w")>-1&&Vt(ie)?!0:se.test(ie):Vt(ie)}function Ye(ie){for(var se in ie)if(ie.hasOwnProperty(se)&&ie[se])return!1;return!0}var Zt=/[\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 Gt(ie){return ie.charCodeAt(0)>=768&&Zt.test(ie)}function ft(ie,se,ge){for(;(ge<0?se>0:se<ie.length)&&Gt(ie.charAt(se));)se+=ge;return se}function nt(ie,se,ge){for(var fe=se>ge?-1:1;;){if(se==ge)return se;var Se=(se+ge)/2,Ne=fe<0?Math.ceil(Se):Math.floor(Se);if(Ne==se)return ie(Ne)?se:ge;ie(Ne)?ge=Ne:se=Ne+fe}}function Oe(ie,se,ge,fe){if(!ie)return fe(se,ge,"ltr",0);for(var Se=!1,Ne=0;Ne<ie.length;++Ne){var _e=ie[Ne];(_e.from<ge&&_e.to>se||se==ge&&_e.to==se)&&(fe(Math.max(_e.from,se),Math.min(_e.to,ge),_e.level==1?"rtl":"ltr",Ne),Se=!0)}Se||fe(se,ge,"ltr")}var we=null;function ye(ie,se,ge){var fe;we=null;for(var Se=0;Se<ie.length;++Se){var Ne=ie[Se];if(Ne.from<se&&Ne.to>se)return Se;Ne.to==se&&(Ne.from!=Ne.to&&ge=="before"?fe=Se:we=Se),Ne.from==se&&(Ne.from!=Ne.to&&ge!="before"?fe=Se:we=Se)}return fe!=null?fe:we}var ke=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",se="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ge(kt){return kt<=247?ie.charAt(kt):1424<=kt&&kt<=1524?"R":1536<=kt&&kt<=1785?se.charAt(kt-1536):1774<=kt&&kt<=2220?"r":8192<=kt&&kt<=8203?"w":kt==8204?"b":"L"}var fe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Se=/[stwN]/,Ne=/[LRr]/,_e=/[Lb1n]/,ht=/[1n]/;function ct(kt,bn,jt){this.level=kt,this.from=bn,this.to=jt}return function(kt,bn){var jt=bn=="ltr"?"L":"R";if(kt.length==0||bn=="ltr"&&!fe.test(kt))return!1;for(var ni=kt.length,Xn=[],Gi=0;Gi<ni;++Gi)Xn.push(ge(kt.charCodeAt(Gi)));for(var Yi=0,dr=jt;Yi<ni;++Yi){var jr=Xn[Yi];jr=="m"?Xn[Yi]=dr:dr=jr}for(var wo=0,no=jt;wo<ni;++wo){var Io=Xn[wo];Io=="1"&&no=="r"?Xn[wo]="n":Ne.test(Io)&&(no=Io,Io=="r"&&(Xn[wo]="R"))}for(var da=1,$r=Xn[0];da<ni-1;++da){var La=Xn[da];La=="+"&&$r=="1"&&Xn[da+1]=="1"?Xn[da]="1":La==","&&$r==Xn[da+1]&&($r=="1"||$r=="n")&&(Xn[da]=$r),$r=La}for(var $s=0;$s<ni;++$s){var Hl=Xn[$s];if(Hl==",")Xn[$s]="N";else if(Hl=="%"){var cl=void 0;for(cl=$s+1;cl<ni&&Xn[cl]=="%";++cl);for(var ju=$s&&Xn[$s-1]=="!"||cl<ni&&Xn[cl]=="1"?"1":"N",xu=$s;xu<cl;++xu)Xn[xu]=ju;$s=cl-1}}for(var Tl=0,ec=jt;Tl<ni;++Tl){var cu=Xn[Tl];ec=="L"&&cu=="1"?Xn[Tl]="L":Ne.test(cu)&&(ec=cu)}for(var Ol=0;Ol<ni;++Ol)if(Se.test(Xn[Ol])){var us=void 0;for(us=Ol+1;us<ni&&Se.test(Xn[us]);++us);for(var pl=(Ol?Xn[Ol-1]:jt)=="L",_l=(us<ni?Xn[us]:jt)=="L",du=pl==_l?pl?"L":"R":jt,Yc=Ol;Yc<us;++Yc)Xn[Yc]=du;Ol=us-1}for(var dl=[],Bc,Pl=0;Pl<ni;)if(_e.test(Xn[Pl])){var Qf=Pl;for(++Pl;Pl<ni&&_e.test(Xn[Pl]);++Pl);dl.push(new ct(0,Qf,Pl))}else{var yc=Pl,tc=dl.length,Hu=bn=="rtl"?1:0;for(++Pl;Pl<ni&&Xn[Pl]!="L";++Pl);for(var Hs=yc;Hs<Pl;)if(ht.test(Xn[Hs])){yc<Hs&&(dl.splice(tc,0,new ct(1,yc,Hs)),tc+=Hu);var Jl=Hs;for(++Hs;Hs<Pl&&ht.test(Xn[Hs]);++Hs);dl.splice(tc,0,new ct(2,Jl,Hs)),tc+=Hu,yc=Hs}else++Hs;yc<Pl&&dl.splice(tc,0,new ct(1,yc,Pl))}return bn=="ltr"&&(dl[0].level==1&&(Bc=kt.match(/^\s+/))&&(dl[0].from=Bc[0].length,dl.unshift(new ct(0,0,Bc[0].length))),Lt(dl).level==1&&(Bc=kt.match(/\s+$/))&&(Lt(dl).to-=Bc[0].length,dl.push(new ct(0,ni-Bc[0].length,ni)))),bn=="rtl"?dl.reverse():dl}}();function Ge(ie,se){var ge=ie.order;return ge==null&&(ge=ie.order=ke(ie.text,se)),ge}var Fe=[],pt=function(ie,se,ge){if(ie.addEventListener)ie.addEventListener(se,ge,!1);else if(ie.attachEvent)ie.attachEvent("on"+se,ge);else{var fe=ie._handlers||(ie._handlers={});fe[se]=(fe[se]||Fe).concat(ge)}};function tn(ie,se){return ie._handlers&&ie._handlers[se]||Fe}function en(ie,se,ge){if(ie.removeEventListener)ie.removeEventListener(se,ge,!1);else if(ie.detachEvent)ie.detachEvent("on"+se,ge);else{var fe=ie._handlers,Se=fe&&fe[se];if(Se){var Ne=Et(Se,ge);Ne>-1&&(fe[se]=Se.slice(0,Ne).concat(Se.slice(Ne+1)))}}}function wt(ie,se){var ge=tn(ie,se);if(ge.length)for(var fe=Array.prototype.slice.call(arguments,2),Se=0;Se<ge.length;++Se)ge[Se].apply(null,fe)}function Xt(ie,se,ge){return typeof se=="string"&&(se={type:se,preventDefault:function(){this.defaultPrevented=!0}}),wt(ie,ge||se.type,ie,se),Ai(se)||se.codemirrorIgnore}function Pn(ie){var se=ie._handlers&&ie._handlers.cursorActivity;if(se)for(var ge=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),fe=0;fe<se.length;++fe)Et(ge,se[fe])==-1&&ge.push(se[fe])}function In(ie,se){return tn(ie,se).length>0}function $n(ie){ie.prototype.on=function(se,ge){pt(this,se,ge)},ie.prototype.off=function(se,ge){en(this,se,ge)}}function Pi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function wn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function Ai(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Vi(ie){Pi(ie),wn(ie)}function ur(ie){return ie.target||ie.srcElement}function sr(ie){var se=ie.which;return se==null&&(ie.button&1?se=1:ie.button&2?se=3:ie.button&4&&(se=2)),ue&&ie.ctrlKey&&se==1&&(se=3),se}var Qn=function(){if(We&&it<9)return!1;var ie=ze("div");return"draggable"in ie||"dragDrop"in ie}(),Ci;function er(ie){if(Ci==null){var se=ze("span","\u200B");He(ie,ze("span",[se,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Ci=se.offsetWidth<=1&&se.offsetHeight>2&&!(We&&it<8))}var ge=Ci?ze("span","\u200B"):ze("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ge.setAttribute("cm-text",""),ge}var ri;function tr(ie){if(ri!=null)return ri;var se=He(ie,document.createTextNode("A\u062EA")),ge=Ze(se,0,1).getBoundingClientRect(),fe=Ze(se,1,2).getBoundingClientRect();return Te(ie),!ge||ge.left==ge.right?!1:ri=fe.right-ge.right<3}var Di=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var se=0,ge=[],fe=ie.length;se<=fe;){var Se=ie.indexOf(`
|
|
|
`,se);Se==-1&&(Se=ie.length);var Ne=ie.slice(se,ie.charAt(Se-1)=="\r"?Se-1:Se),_e=Ne.indexOf("\r");_e!=-1?(ge.push(Ne.slice(0,_e)),se+=_e+1):(ge.push(Ne),se=Se+1)}return ge}:function(ie){return ie.split(/\r\n?|\n/)},De=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(se){return!1}}:function(ie){var se;try{se=ie.ownerDocument.selection.createRange()}catch(ge){}return!se||se.parentElement()!=ie?!1:se.compareEndPoints("StartToEnd",se)!=0},Yr=function(){var ie=ze("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),yr=null;function Dr(ie){if(yr!=null)return yr;var se=He(ie,ze("span","x")),ge=se.getBoundingClientRect(),fe=Ze(se,0,1).getBoundingClientRect();return yr=Math.abs(ge.left-fe.left)>1}var lo={},Wo={};function No(ie,se){arguments.length>2&&(se.dependencies=Array.prototype.slice.call(arguments,2)),lo[ie]=se}function ki(ie,se){Wo[ie]=se}function an(ie){if(typeof ie=="string"&&Wo.hasOwnProperty(ie))ie=Wo[ie];else if(ie&&typeof ie.name=="string"&&Wo.hasOwnProperty(ie.name)){var se=Wo[ie.name];typeof se=="string"&&(se={name:se}),ie=Ln(se,ie),ie.name=se.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return an("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return an("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function nn(ie,se){se=an(se);var ge=lo[se.name];if(!ge)return nn(ie,"text/plain");var fe=ge(ie,se);if(Ut.hasOwnProperty(se.name)){var Se=Ut[se.name];for(var Ne in Se)Se.hasOwnProperty(Ne)&&(fe.hasOwnProperty(Ne)&&(fe["_"+Ne]=fe[Ne]),fe[Ne]=Se[Ne])}if(fe.name=se.name,se.helperType&&(fe.helperType=se.helperType),se.modeProps)for(var _e in se.modeProps)fe[_e]=se.modeProps[_e];return fe}var Ut={};function bt(ie,se){var ge=Ut.hasOwnProperty(ie)?Ut[ie]:Ut[ie]={};_t(se,ge)}function xn(ie,se){if(se===!0)return se;if(ie.copyState)return ie.copyState(se);var ge={};for(var fe in se){var Se=se[fe];Se instanceof Array&&(Se=Se.concat([])),ge[fe]=Se}return ge}function hn(ie,se){for(var ge;ie.innerMode&&(ge=ie.innerMode(se),!(!ge||ge.mode==ie));)se=ge.state,ie=ge.mode;return ge||{mode:ie,state:se}}function Tt(ie,se,ge){return ie.startState?ie.startState(se,ge):!0}var ot=function(ie,se,ge){this.pos=this.start=0,this.string=ie,this.tabSize=se||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ge};ot.prototype.eol=function(){return this.pos>=this.string.length},ot.prototype.sol=function(){return this.pos==this.lineStart},ot.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ot.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ot.prototype.eat=function(ie){var se=this.string.charAt(this.pos),ge;if(typeof ie=="string"?ge=se==ie:ge=se&&(ie.test?ie.test(se):ie(se)),ge)return++this.pos,se},ot.prototype.eatWhile=function(ie){for(var se=this.pos;this.eat(ie););return this.pos>se},ot.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},ot.prototype.skipToEnd=function(){this.pos=this.string.length},ot.prototype.skipTo=function(ie){var se=this.string.indexOf(ie,this.pos);if(se>-1)return this.pos=se,!0},ot.prototype.backUp=function(ie){this.pos-=ie},ot.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=lt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?lt(this.string,this.lineStart,this.tabSize):0)},ot.prototype.indentation=function(){return lt(this.string,null,this.tabSize)-(this.lineStart?lt(this.string,this.lineStart,this.tabSize):0)},ot.prototype.match=function(ie,se,ge){if(typeof ie=="string"){var fe=function(_e){return ge?_e.toLowerCase():_e},Se=this.string.substr(this.pos,ie.length);if(fe(Se)==fe(ie))return se!==!1&&(this.pos+=ie.length),!0}else{var Ne=this.string.slice(this.pos).match(ie);return Ne&&Ne.index>0?null:(Ne&&se!==!1&&(this.pos+=Ne[0].length),Ne)}},ot.prototype.current=function(){return this.string.slice(this.start,this.pos)},ot.prototype.hideFirstChars=function(ie,se){this.lineStart+=ie;try{return se()}finally{this.lineStart-=ie}},ot.prototype.lookAhead=function(ie){var se=this.lineOracle;return se&&se.lookAhead(ie)},ot.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function fn(ie,se){if(se-=ie.first,se<0||se>=ie.size)throw new Error("There is no line "+(se+ie.first)+" in the document.");for(var ge=ie;!ge.lines;)for(var fe=0;;++fe){var Se=ge.children[fe],Ne=Se.chunkSize();if(se<Ne){ge=Se;break}se-=Ne}return ge.lines[se]}function yn(ie,se,ge){var fe=[],Se=se.line;return ie.iter(se.line,ge.line+1,function(Ne){var _e=Ne.text;Se==ge.line&&(_e=_e.slice(0,ge.ch)),Se==se.line&&(_e=_e.slice(se.ch)),fe.push(_e),++Se}),fe}function li(ie,se,ge){var fe=[];return ie.iter(se,ge,function(Se){fe.push(Se.text)}),fe}function vn(ie,se){var ge=se-ie.height;if(ge)for(var fe=ie;fe;fe=fe.parent)fe.height+=ge}function at(ie){if(ie.parent==null)return null;for(var se=ie.parent,ge=Et(se.lines,ie),fe=se.parent;fe;se=fe,fe=fe.parent)for(var Se=0;fe.children[Se]!=se;++Se)ge+=fe.children[Se].chunkSize();return ge+se.first}function Bn(ie,se){var ge=ie.first;e:do{for(var fe=0;fe<ie.children.length;++fe){var Se=ie.children[fe],Ne=Se.height;if(se<Ne){ie=Se;continue e}se-=Ne,ge+=Se.chunkSize()}return ge}while(!ie.lines);for(var _e=0;_e<ie.lines.length;++_e){var ht=ie.lines[_e],ct=ht.height;if(se<ct)break;se-=ct}return ge+_e}function pi(ie,se){return se>=ie.first&&se<ie.first+ie.size}function Li(ie,se){return String(ie.lineNumberFormatter(se+ie.firstLineNumber))}function qt(ie,se,ge){if(ge===void 0&&(ge=null),!(this instanceof qt))return new qt(ie,se,ge);this.line=ie,this.ch=se,this.sticky=ge}function Nn(ie,se){return ie.line-se.line||ie.ch-se.ch}function on(ie,se){return ie.sticky==se.sticky&&Nn(ie,se)==0}function Sn(ie){return qt(ie.line,ie.ch)}function Fn(ie,se){return Nn(ie,se)<0?se:ie}function En(ie,se){return Nn(ie,se)<0?ie:se}function kn(ie,se){return Math.max(ie.first,Math.min(se,ie.first+ie.size-1))}function Zn(ie,se){if(se.line<ie.first)return qt(ie.first,0);var ge=ie.first+ie.size-1;return se.line>ge?qt(ge,fn(ie,ge).text.length):Jn(se,fn(ie,se.line).text.length)}function Jn(ie,se){var ge=ie.ch;return ge==null||ge>se?qt(ie.line,se):ge<0?qt(ie.line,0):ie}function si(ie,se){for(var ge=[],fe=0;fe<se.length;fe++)ge[fe]=Zn(ie,se[fe]);return ge}var Tn=function(ie,se){this.state=ie,this.lookAhead=se},mi=function(ie,se,ge,fe){this.state=se,this.doc=ie,this.line=ge,this.maxLookAhead=fe||0,this.baseTokens=null,this.baseTokenPos=1};mi.prototype.lookAhead=function(ie){var se=this.doc.getLine(this.line+ie);return se!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),se},mi.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var se=this.baseTokens[this.baseTokenPos+1];return{type:se&&se.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},mi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mi.fromSaved=function(ie,se,ge){return se instanceof Tn?new mi(ie,xn(ie.mode,se.state),ge,se.lookAhead):new mi(ie,xn(ie.mode,se),ge)},mi.prototype.save=function(ie){var se=ie!==!1?xn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tn(se,this.maxLookAhead):se};function nr(ie,se,ge,fe){var Se=[ie.state.modeGen],Ne={};Ir(ie,se.text,ie.doc.mode,ge,function(kt,bn){return Se.push(kt,bn)},Ne,fe);for(var _e=ge.state,ht=function(kt){ge.baseTokens=Se;var bn=ie.state.overlays[kt],jt=1,ni=0;ge.state=!0,Ir(ie,se.text,bn.mode,ge,function(Xn,Gi){for(var Yi=jt;ni<Xn;){var dr=Se[jt];dr>Xn&&Se.splice(jt,1,Xn,Se[jt+1],dr),jt+=2,ni=Math.min(Xn,dr)}if(Gi)if(bn.opaque)Se.splice(Yi,jt-Yi,Xn,"overlay "+Gi),jt=Yi+2;else for(;Yi<jt;Yi+=2){var jr=Se[Yi+1];Se[Yi+1]=(jr?jr+" ":"")+"overlay "+Gi}},Ne),ge.state=_e,ge.baseTokens=null,ge.baseTokenPos=1},ct=0;ct<ie.state.overlays.length;++ct)ht(ct);return{styles:Se,classes:Ne.bgClass||Ne.textClass?Ne:null}}function Br(ie,se,ge){if(!se.styles||se.styles[0]!=ie.state.modeGen){var fe=rr(ie,at(se)),Se=se.text.length>ie.options.maxHighlightLength&&xn(ie.doc.mode,fe.state),Ne=nr(ie,se,fe);Se&&(fe.state=Se),se.stateAfter=fe.save(!Se),se.styles=Ne.styles,Ne.classes?se.styleClasses=Ne.classes:se.styleClasses&&(se.styleClasses=null),ge===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return se.styles}function rr(ie,se,ge){var fe=ie.doc,Se=ie.display;if(!fe.mode.startState)return new mi(fe,!0,se);var Ne=hr(ie,se,ge),_e=Ne>fe.first&&fn(fe,Ne-1).stateAfter,ht=_e?mi.fromSaved(fe,_e,Ne):new mi(fe,Tt(fe.mode),Ne);return fe.iter(Ne,se,function(ct){Jt(ie,ct.text,ht);var kt=ht.line;ct.stateAfter=kt==se-1||kt%5==0||kt>=Se.viewFrom&&kt<Se.viewTo?ht.save():null,ht.nextLine()}),ge&&(fe.modeFrontier=ht.line),ht}function Jt(ie,se,ge,fe){var Se=ie.doc.mode,Ne=new ot(se,ie.options.tabSize,ge);for(Ne.start=Ne.pos=fe||0,se==""&&Fi(Se,ge.state);!Ne.eol();)Si(Se,Ne,ge.state),Ne.start=Ne.pos}function Fi(ie,se){if(ie.blankLine)return ie.blankLine(se);if(ie.innerMode){var ge=hn(ie,se);if(ge.mode.blankLine)return ge.mode.blankLine(ge.state)}}function Si(ie,se,ge,fe){for(var Se=0;Se<10;Se++){fe&&(fe[0]=hn(ie,ge).mode);var Ne=ie.token(se,ge);if(se.pos>se.start)return Ne}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Wi=function(ie,se,ge){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=se||null,this.state=ge};function Nr(ie,se,ge,fe){var Se=ie.doc,Ne=Se.mode,_e;se=Zn(Se,se);var ht=fn(Se,se.line),ct=rr(ie,se.line,ge),kt=new ot(ht.text,ie.options.tabSize,ct),bn;for(fe&&(bn=[]);(fe||kt.pos<se.ch)&&!kt.eol();)kt.start=kt.pos,_e=Si(Ne,kt,ct.state),fe&&bn.push(new Wi(kt,_e,xn(Se.mode,ct.state)));return fe?bn:new Wi(kt,_e,ct.state)}function br(ie,se){if(ie)for(;;){var ge=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ge)break;ie=ie.slice(0,ge.index)+ie.slice(ge.index+ge[0].length);var fe=ge[1]?"bgClass":"textClass";se[fe]==null?se[fe]=ge[2]:new RegExp("(?:^|\\s)"+ge[2]+"(?:$|\\s)").test(se[fe])||(se[fe]+=" "+ge[2])}return ie}function Ir(ie,se,ge,fe,Se,Ne,_e){var ht=ge.flattenSpans;ht==null&&(ht=ie.options.flattenSpans);var ct=0,kt=null,bn=new ot(se,ie.options.tabSize,fe),jt,ni=ie.options.addModeClass&&[null];for(se==""&&br(Fi(ge,fe.state),Ne);!bn.eol();){if(bn.pos>ie.options.maxHighlightLength?(ht=!1,_e&&Jt(ie,se,fe,bn.pos),bn.pos=se.length,jt=null):jt=br(Si(ge,bn,fe.state,ni),Ne),ni){var Xn=ni[0].name;Xn&&(jt="m-"+(jt?Xn+" "+jt:Xn))}if(!ht||kt!=jt){for(;ct<bn.start;)ct=Math.min(bn.start,ct+5e3),Se(ct,kt);kt=jt}bn.start=bn.pos}for(;ct<bn.pos;){var Gi=Math.min(bn.pos,ct+5e3);Se(Gi,kt),ct=Gi}}function hr(ie,se,ge){for(var fe,Se,Ne=ie.doc,_e=ge?-1:se-(ie.doc.mode.innerMode?1e3:100),ht=se;ht>_e;--ht){if(ht<=Ne.first)return Ne.first;var ct=fn(Ne,ht-1),kt=ct.stateAfter;if(kt&&(!ge||ht+(kt instanceof Tn?kt.lookAhead:0)<=Ne.modeFrontier))return ht;var bn=lt(ct.text,null,ie.options.tabSize);(Se==null||fe>bn)&&(Se=ht-1,fe=bn)}return Se}function Ui(ie,se){if(ie.modeFrontier=Math.min(ie.modeFrontier,se),!(ie.highlightFrontier<se-10)){for(var ge=ie.first,fe=se-1;fe>ge;fe--){var Se=fn(ie,fe).stateAfter;if(Se&&(!(Se instanceof Tn)||fe+Se.lookAhead<se)){ge=fe+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ge)}}var Jr=!1,An=!1;function Co(){Jr=!0}function Wn(){An=!0}function Hr(ie,se,ge){this.marker=ie,this.from=se,this.to=ge}function ha(ie,se){if(ie)for(var ge=0;ge<ie.length;++ge){var fe=ie[ge];if(fe.marker==se)return fe}}function yo(ie,se){for(var ge,fe=0;fe<ie.length;++fe)ie[fe]!=se&&(ge||(ge=[])).push(ie[fe]);return ge}function Ot(ie,se){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([se]):[se],se.marker.attachLine(ie)}function di(ie,se,ge){var fe;if(ie)for(var Se=0;Se<ie.length;++Se){var Ne=ie[Se],_e=Ne.marker,ht=Ne.from==null||(_e.inclusiveLeft?Ne.from<=se:Ne.from<se);if(ht||Ne.from==se&&_e.type=="bookmark"&&(!ge||!Ne.marker.insertLeft)){var ct=Ne.to==null||(_e.inclusiveRight?Ne.to>=se:Ne.to>se);(fe||(fe=[])).push(new Hr(_e,Ne.from,ct?null:Ne.to))}}return fe}function Mn(ie,se,ge){var fe;if(ie)for(var Se=0;Se<ie.length;++Se){var Ne=ie[Se],_e=Ne.marker,ht=Ne.to==null||(_e.inclusiveRight?Ne.to>=se:Ne.to>se);if(ht||Ne.from==se&&_e.type=="bookmark"&&(!ge||Ne.marker.insertLeft)){var ct=Ne.from==null||(_e.inclusiveLeft?Ne.from<=se:Ne.from<se);(fe||(fe=[])).push(new Hr(_e,ct?null:Ne.from-se,Ne.to==null?null:Ne.to-se))}}return fe}function qn(ie,se){if(se.full)return null;var ge=pi(ie,se.from.line)&&fn(ie,se.from.line).markedSpans,fe=pi(ie,se.to.line)&&fn(ie,se.to.line).markedSpans;if(!ge&&!fe)return null;var Se=se.from.ch,Ne=se.to.ch,_e=Nn(se.from,se.to)==0,ht=di(ge,Se,_e),ct=Mn(fe,Ne,_e),kt=se.text.length==1,bn=Lt(se.text).length+(kt?Se:0);if(ht)for(var jt=0;jt<ht.length;++jt){var ni=ht[jt];if(ni.to==null){var Xn=ha(ct,ni.marker);Xn?kt&&(ni.to=Xn.to==null?null:Xn.to+bn):ni.to=Se}}if(ct)for(var Gi=0;Gi<ct.length;++Gi){var Yi=ct[Gi];if(Yi.to!=null&&(Yi.to+=bn),Yi.from==null){var dr=ha(ht,Yi.marker);dr||(Yi.from=bn,kt&&(ht||(ht=[])).push(Yi))}else Yi.from+=bn,kt&&(ht||(ht=[])).push(Yi)}ht&&(ht=Ar(ht)),ct&&ct!=ht&&(ct=Ar(ct));var jr=[ht];if(!kt){var wo=se.text.length-2,no;if(wo>0&&ht)for(var Io=0;Io<ht.length;++Io)ht[Io].to==null&&(no||(no=[])).push(new Hr(ht[Io].marker,null,null));for(var da=0;da<wo;++da)jr.push(no);jr.push(ct)}return jr}function Ar(ie){for(var se=0;se<ie.length;++se){var ge=ie[se];ge.from!=null&&ge.from==ge.to&&ge.marker.clearWhenEmpty!==!1&&ie.splice(se--,1)}return ie.length?ie:null}function Sr(ie,se,ge){var fe=null;if(ie.iter(se.line,ge.line+1,function(Xn){if(Xn.markedSpans)for(var Gi=0;Gi<Xn.markedSpans.length;++Gi){var Yi=Xn.markedSpans[Gi].marker;Yi.readOnly&&(!fe||Et(fe,Yi)==-1)&&(fe||(fe=[])).push(Yi)}}),!fe)return null;for(var Se=[{from:se,to:ge}],Ne=0;Ne<fe.length;++Ne)for(var _e=fe[Ne],ht=_e.find(0),ct=0;ct<Se.length;++ct){var kt=Se[ct];if(!(Nn(kt.to,ht.from)<0||Nn(kt.from,ht.to)>0)){var bn=[ct,1],jt=Nn(kt.from,ht.from),ni=Nn(kt.to,ht.to);(jt<0||!_e.inclusiveLeft&&!jt)&&bn.push({from:kt.from,to:ht.from}),(ni>0||!_e.inclusiveRight&&!ni)&&bn.push({from:ht.to,to:kt.to}),Se.splice.apply(Se,bn),ct+=bn.length-3}}return Se}function Kn(ie){var se=ie.markedSpans;if(se){for(var ge=0;ge<se.length;++ge)se[ge].marker.detachLine(ie);ie.markedSpans=null}}function qe(ie,se){if(se){for(var ge=0;ge<se.length;++ge)se[ge].marker.attachLine(ie);ie.markedSpans=se}}function _i(ie){return ie.inclusiveLeft?-1:0}function uo(ie){return ie.inclusiveRight?1:0}function wr(ie,se){var ge=ie.lines.length-se.lines.length;if(ge!=0)return ge;var fe=ie.find(),Se=se.find(),Ne=Nn(fe.from,Se.from)||_i(ie)-_i(se);if(Ne)return-Ne;var _e=Nn(fe.to,Se.to)||uo(ie)-uo(se);return _e||se.id-ie.id}function Uo(ie,se){var ge=An&&ie.markedSpans,fe;if(ge)for(var Se=void 0,Ne=0;Ne<ge.length;++Ne)Se=ge[Ne],Se.marker.collapsed&&(se?Se.from:Se.to)==null&&(!fe||wr(fe,Se.marker)<0)&&(fe=Se.marker);return fe}function Er(ie){return Uo(ie,!0)}function fr(ie){return Uo(ie,!1)}function ho(ie,se){var ge=An&&ie.markedSpans,fe;if(ge)for(var Se=0;Se<ge.length;++Se){var Ne=ge[Se];Ne.marker.collapsed&&(Ne.from==null||Ne.from<se)&&(Ne.to==null||Ne.to>se)&&(!fe||wr(fe,Ne.marker)<0)&&(fe=Ne.marker)}return fe}function ro(ie,se,ge,fe,Se){var Ne=fn(ie,se),_e=An&&Ne.markedSpans;if(_e)for(var ht=0;ht<_e.length;++ht){var ct=_e[ht];if(ct.marker.collapsed){var kt=ct.marker.find(0),bn=Nn(kt.from,ge)||_i(ct.marker)-_i(Se),jt=Nn(kt.to,fe)||uo(ct.marker)-uo(Se);if(!(bn>=0&&jt<=0||bn<=0&&jt>=0)&&(bn<=0&&(ct.marker.inclusiveRight&&Se.inclusiveLeft?Nn(kt.to,ge)>=0:Nn(kt.to,ge)>0)||bn>=0&&(ct.marker.inclusiveRight&&Se.inclusiveLeft?Nn(kt.from,fe)<=0:Nn(kt.from,fe)<0)))return!0}}}function Gr(ie){for(var se;se=Er(ie);)ie=se.find(-1,!0).line;return ie}function _o(ie){for(var se;se=fr(ie);)ie=se.find(1,!0).line;return ie}function lr(ie){for(var se,ge;se=fr(ie);)ie=se.find(1,!0).line,(ge||(ge=[])).push(ie);return ge}function $i(ie,se){var ge=fn(ie,se),fe=Gr(ge);return ge==fe?se:at(fe)}function kr(ie,se){if(se>ie.lastLine())return se;var ge=fn(ie,se),fe;if(!oi(ie,ge))return se;for(;fe=fr(ge);)ge=fe.find(1,!0).line;return at(ge)+1}function oi(ie,se){var ge=An&&se.markedSpans;if(ge){for(var fe=void 0,Se=0;Se<ge.length;++Se)if(fe=ge[Se],!!fe.marker.collapsed){if(fe.from==null)return!0;if(!fe.marker.widgetNode&&fe.from==0&&fe.marker.inclusiveLeft&&Ao(ie,se,fe))return!0}}}function Ao(ie,se,ge){if(ge.to==null){var fe=ge.marker.find(1,!0);return Ao(ie,fe.line,ha(fe.line.markedSpans,ge.marker))}if(ge.marker.inclusiveRight&&ge.to==se.text.length)return!0;for(var Se=void 0,Ne=0;Ne<se.markedSpans.length;++Ne)if(Se=se.markedSpans[Ne],Se.marker.collapsed&&!Se.marker.widgetNode&&Se.from==ge.to&&(Se.to==null||Se.to!=ge.from)&&(Se.marker.inclusiveLeft||ge.marker.inclusiveRight)&&Ao(ie,se,Se))return!0}function Jo(ie){ie=Gr(ie);for(var se=0,ge=ie.parent,fe=0;fe<ge.lines.length;++fe){var Se=ge.lines[fe];if(Se==ie)break;se+=Se.height}for(var Ne=ge.parent;Ne;ge=Ne,Ne=ge.parent)for(var _e=0;_e<Ne.children.length;++_e){var ht=Ne.children[_e];if(ht==ge)break;se+=ht.height}return se}function Fa(ie){if(ie.height==0)return 0;for(var se=ie.text.length,ge,fe=ie;ge=Er(fe);){var Se=ge.find(0,!0);fe=Se.from.line,se+=Se.from.ch-Se.to.ch}for(fe=ie;ge=fr(fe);){var Ne=ge.find(0,!0);se-=fe.text.length-Ne.from.ch,fe=Ne.to.line,se+=fe.text.length-Ne.to.ch}return se}function na(ie){var se=ie.display,ge=ie.doc;se.maxLine=fn(ge,ge.first),se.maxLineLength=Fa(se.maxLine),se.maxLineChanged=!0,ge.iter(function(fe){var Se=Fa(fe);Se>se.maxLineLength&&(se.maxLineLength=Se,se.maxLine=fe)})}var ia=function(ie,se,ge){this.text=ie,qe(this,se),this.height=ge?ge(this):1};ia.prototype.lineNo=function(){return at(this)},$n(ia);function xa(ie,se,ge,fe){ie.text=se,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Kn(ie),qe(ie,ge);var Se=fe?fe(ie):1;Se!=ie.height&&vn(ie,Se)}function fo(ie){ie.parent=null,Kn(ie)}var qa={},bs={};function So(ie,se){if(!ie||/^\s*$/.test(ie))return null;var ge=se.addModeClass?bs:qa;return ge[ie]||(ge[ie]=ie.replace(/\S+/g,"cm-$&"))}function Cn(ie,se){var ge=Ke("span",null,null,be?"padding-right: .1px":null),fe={pre:Ke("pre",[ge],"CodeMirror-line"),content:ge,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};se.measure={};for(var Se=0;Se<=(se.rest?se.rest.length:0);Se++){var Ne=Se?se.rest[Se-1]:se.line,_e=void 0;fe.pos=0,fe.addToken=Ya,tr(ie.display.measure)&&(_e=Ge(Ne,ie.doc.direction))&&(fe.addToken=Lo(fe.addToken,_e)),fe.map=[];var ht=se!=ie.display.externalMeasured&&at(Ne);Pa(Ne,fe,Br(ie,Ne,ht)),Ne.styleClasses&&(Ne.styleClasses.bgClass&&(fe.bgClass=Ct(Ne.styleClasses.bgClass,fe.bgClass||"")),Ne.styleClasses.textClass&&(fe.textClass=Ct(Ne.styleClasses.textClass,fe.textClass||""))),fe.map.length==0&&fe.map.push(0,0,fe.content.appendChild(er(ie.display.measure))),Se==0?(se.measure.map=fe.map,se.measure.cache={}):((se.measure.maps||(se.measure.maps=[])).push(fe.map),(se.measure.caches||(se.measure.caches=[])).push({}))}if(be){var ct=fe.content.lastChild;(/\bcm-tab\b/.test(ct.className)||ct.querySelector&&ct.querySelector(".cm-tab"))&&(fe.content.className="cm-tab-wrap-hack")}return wt(ie,"renderLine",ie,se.line,fe.pre),fe.pre.className&&(fe.textClass=Ct(fe.pre.className,fe.textClass||"")),fe}function cs(ie){var se=ze("span","\u2022","cm-invalidchar");return se.title="\\u"+ie.charCodeAt(0).toString(16),se.setAttribute("aria-label",se.title),se}function Ya(ie,se,ge,fe,Se,Ne,_e){if(se){var ht=ie.splitSpaces?Ss(se,ie.trailingSpace):se,ct=ie.cm.state.specialChars,kt=!1,bn;if(!ct.test(se))ie.col+=se.length,bn=document.createTextNode(ht),ie.map.push(ie.pos,ie.pos+se.length,bn),We&&it<9&&(kt=!0),ie.pos+=se.length;else{bn=document.createDocumentFragment();for(var jt=0;;){ct.lastIndex=jt;var ni=ct.exec(se),Xn=ni?ni.index-jt:se.length-jt;if(Xn){var Gi=document.createTextNode(ht.slice(jt,jt+Xn));We&&it<9?bn.appendChild(ze("span",[Gi])):bn.appendChild(Gi),ie.map.push(ie.pos,ie.pos+Xn,Gi),ie.col+=Xn,ie.pos+=Xn}if(!ni)break;jt+=Xn+1;var Yi=void 0;if(ni[0]==" "){var dr=ie.cm.options.tabSize,jr=dr-ie.col%dr;Yi=bn.appendChild(ze("span",_n(jr),"cm-tab")),Yi.setAttribute("role","presentation"),Yi.setAttribute("cm-text"," "),ie.col+=jr}else ni[0]=="\r"||ni[0]==`
|
|
|
`?(Yi=bn.appendChild(ze("span",ni[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Yi.setAttribute("cm-text",ni[0]),ie.col+=1):(Yi=ie.cm.options.specialCharPlaceholder(ni[0]),Yi.setAttribute("cm-text",ni[0]),We&&it<9?bn.appendChild(ze("span",[Yi])):bn.appendChild(Yi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Yi),ie.pos++}}if(ie.trailingSpace=ht.charCodeAt(se.length-1)==32,ge||fe||Se||kt||Ne||_e){var wo=ge||"";fe&&(wo+=fe),Se&&(wo+=Se);var no=ze("span",[bn],wo,Ne);if(_e)for(var Io in _e)_e.hasOwnProperty(Io)&&Io!="style"&&Io!="class"&&no.setAttribute(Io,_e[Io]);return ie.content.appendChild(no)}ie.content.appendChild(bn)}}function Ss(ie,se){if(ie.length>1&&!/ /.test(ie))return ie;for(var ge=se,fe="",Se=0;Se<ie.length;Se++){var Ne=ie.charAt(Se);Ne==" "&&ge&&(Se==ie.length-1||ie.charCodeAt(Se+1)==32)&&(Ne="\xA0"),fe+=Ne,ge=Ne==" "}return fe}function Lo(ie,se){return function(ge,fe,Se,Ne,_e,ht,ct){Se=Se?Se+" cm-force-border":"cm-force-border";for(var kt=ge.pos,bn=kt+fe.length;;){for(var jt=void 0,ni=0;ni<se.length&&(jt=se[ni],!(jt.to>kt&&jt.from<=kt));ni++);if(jt.to>=bn)return ie(ge,fe,Se,Ne,_e,ht,ct);ie(ge,fe.slice(0,jt.to-kt),Se,Ne,null,ht,ct),Ne=null,fe=fe.slice(jt.to-kt),kt=jt.to}}}function fa(ie,se,ge,fe){var Se=!fe&&ge.widgetNode;Se&&ie.map.push(ie.pos,ie.pos+se,Se),!fe&&ie.cm.display.input.needsContentAttribute&&(Se||(Se=ie.content.appendChild(document.createElement("span"))),Se.setAttribute("cm-marker",ge.id)),Se&&(ie.cm.display.input.setUneditable(Se),ie.content.appendChild(Se)),ie.pos+=se,ie.trailingSpace=!1}function Pa(ie,se,ge){var fe=ie.markedSpans,Se=ie.text,Ne=0;if(!fe){for(var _e=1;_e<ge.length;_e+=2)se.addToken(se,Se.slice(Ne,Ne=ge[_e]),So(ge[_e+1],se.cm.options));return}for(var ht=Se.length,ct=0,kt=1,bn="",jt,ni,Xn=0,Gi,Yi,dr,jr,wo;;){if(Xn==ct){Gi=Yi=dr=ni="",wo=null,jr=null,Xn=1/0;for(var no=[],Io=void 0,da=0;da<fe.length;++da){var $r=fe[da],La=$r.marker;if(La.type=="bookmark"&&$r.from==ct&&La.widgetNode)no.push(La);else if($r.from<=ct&&($r.to==null||$r.to>ct||La.collapsed&&$r.to==ct&&$r.from==ct)){if($r.to!=null&&$r.to!=ct&&Xn>$r.to&&(Xn=$r.to,Yi=""),La.className&&(Gi+=" "+La.className),La.css&&(ni=(ni?ni+";":"")+La.css),La.startStyle&&$r.from==ct&&(dr+=" "+La.startStyle),La.endStyle&&$r.to==Xn&&(Io||(Io=[])).push(La.endStyle,$r.to),La.title&&((wo||(wo={})).title=La.title),La.attributes)for(var $s in La.attributes)(wo||(wo={}))[$s]=La.attributes[$s];La.collapsed&&(!jr||wr(jr.marker,La)<0)&&(jr=$r)}else $r.from>ct&&Xn>$r.from&&(Xn=$r.from)}if(Io)for(var Hl=0;Hl<Io.length;Hl+=2)Io[Hl+1]==Xn&&(Yi+=" "+Io[Hl]);if(!jr||jr.from==ct)for(var cl=0;cl<no.length;++cl)fa(se,0,no[cl]);if(jr&&(jr.from||0)==ct){if(fa(se,(jr.to==null?ht+1:jr.to)-ct,jr.marker,jr.from==null),jr.to==null)return;jr.to==ct&&(jr=!1)}}if(ct>=ht)break;for(var ju=Math.min(ht,Xn);;){if(bn){var xu=ct+bn.length;if(!jr){var Tl=xu>ju?bn.slice(0,ju-ct):bn;se.addToken(se,Tl,jt?jt+Gi:Gi,dr,ct+Tl.length==Xn?Yi:"",ni,wo)}if(xu>=ju){bn=bn.slice(ju-ct),ct=ju;break}ct=xu,dr=""}bn=Se.slice(Ne,Ne=ge[kt++]),jt=So(ge[kt++],se.cm.options)}}}function sa(ie,se,ge){this.line=se,this.rest=lr(se),this.size=this.rest?at(Lt(this.rest))-ge+1:1,this.node=this.text=null,this.hidden=oi(ie,se)}function vo(ie,se,ge){for(var fe=[],Se,Ne=se;Ne<ge;Ne=Se){var _e=new sa(ie.doc,fn(ie.doc,Ne),Ne);Se=Ne+_e.size,fe.push(_e)}return fe}var aa=null;function is(ie){aa?aa.ops.push(ie):ie.ownsGroup=aa={ops:[ie],delayedCallbacks:[]}}function qr(ie){var se=ie.delayedCallbacks,ge=0;do{for(;ge<se.length;ge++)se[ge].call(null);for(var fe=0;fe<ie.ops.length;fe++){var Se=ie.ops[fe];if(Se.cursorActivityHandlers)for(;Se.cursorActivityCalled<Se.cursorActivityHandlers.length;)Se.cursorActivityHandlers[Se.cursorActivityCalled++].call(null,Se.cm)}}while(ge<se.length)}function gr(ie,se){var ge=ie.ownsGroup;if(ge)try{qr(ge)}finally{aa=null,se(ge)}}var zr=null;function Yn(ie,se){var ge=tn(ie,se);if(ge.length){var fe=Array.prototype.slice.call(arguments,2),Se;aa?Se=aa.delayedCallbacks:zr?Se=zr:(Se=zr=[],setTimeout(Fr,0));for(var Ne=function(ht){Se.push(function(){return ge[ht].apply(null,fe)})},_e=0;_e<ge.length;++_e)Ne(_e)}}function Fr(){var ie=zr;zr=null;for(var se=0;se<ie.length;++se)ie[se]()}function io(ie,se,ge,fe){for(var Se=0;Se<se.changes.length;Se++){var Ne=se.changes[Se];Ne=="text"?Zi(ie,se):Ne=="gutter"?As(ie,se,ge,fe):Ne=="class"?$a(ie,se):Ne=="widget"&&Rl(ie,se,fe)}se.changes=null}function qo(ie){return ie.node==ie.text&&(ie.node=ze("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),We&&it<8&&(ie.node.style.zIndex=2)),ie.node}function Xs(ie,se){var ge=se.bgClass?se.bgClass+" "+(se.line.bgClass||""):se.line.bgClass;if(ge&&(ge+=" CodeMirror-linebackground"),se.background)ge?se.background.className=ge:(se.background.parentNode.removeChild(se.background),se.background=null);else if(ge){var fe=qo(se);se.background=fe.insertBefore(ze("div",null,ge),fe.firstChild),ie.display.input.setUneditable(se.background)}}function Kl(ie,se){var ge=ie.display.externalMeasured;return ge&&ge.line==se.line?(ie.display.externalMeasured=null,se.measure=ge.measure,ge.built):Cn(ie,se)}function Zi(ie,se){var ge=se.text.className,fe=Kl(ie,se);se.text==se.node&&(se.node=fe.pre),se.text.parentNode.replaceChild(fe.pre,se.text),se.text=fe.pre,fe.bgClass!=se.bgClass||fe.textClass!=se.textClass?(se.bgClass=fe.bgClass,se.textClass=fe.textClass,$a(ie,se)):ge&&(se.text.className=ge)}function $a(ie,se){Xs(ie,se),se.line.wrapClass?qo(se).className=se.line.wrapClass:se.node!=se.text&&(se.node.className="");var ge=se.textClass?se.textClass+" "+(se.line.textClass||""):se.line.textClass;se.text.className=ge||""}function As(ie,se,ge,fe){if(se.gutter&&(se.node.removeChild(se.gutter),se.gutter=null),se.gutterBackground&&(se.node.removeChild(se.gutterBackground),se.gutterBackground=null),se.line.gutterClass){var Se=qo(se);se.gutterBackground=ze("div",null,"CodeMirror-gutter-background "+se.line.gutterClass,"left: "+(ie.options.fixedGutter?fe.fixedPos:-fe.gutterTotalWidth)+"px; width: "+fe.gutterTotalWidth+"px"),ie.display.input.setUneditable(se.gutterBackground),Se.insertBefore(se.gutterBackground,se.text)}var Ne=se.line.gutterMarkers;if(ie.options.lineNumbers||Ne){var _e=qo(se),ht=se.gutter=ze("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?fe.fixedPos:-fe.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(ht),_e.insertBefore(ht,se.text),se.line.gutterClass&&(ht.className+=" "+se.line.gutterClass),ie.options.lineNumbers&&(!Ne||!Ne["CodeMirror-linenumbers"])&&(se.lineNumber=ht.appendChild(ze("div",Li(ie.options,ge),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+fe.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Ne)for(var ct=0;ct<ie.display.gutterSpecs.length;++ct){var kt=ie.display.gutterSpecs[ct].className,bn=Ne.hasOwnProperty(kt)&&Ne[kt];bn&&ht.appendChild(ze("div",[bn],"CodeMirror-gutter-elt","left: "+fe.gutterLeft[kt]+"px; width: "+fe.gutterWidth[kt]+"px"))}}}function Rl(ie,se,ge){se.alignable&&(se.alignable=null);for(var fe=xe("CodeMirror-linewidget"),Se=se.node.firstChild,Ne=void 0;Se;Se=Ne)Ne=Se.nextSibling,fe.test(Se.className)&&se.node.removeChild(Se);Vl(ie,se,ge)}function zl(ie,se,ge,fe){var Se=Kl(ie,se);return se.text=se.node=Se.pre,Se.bgClass&&(se.bgClass=Se.bgClass),Se.textClass&&(se.textClass=Se.textClass),$a(ie,se),As(ie,se,ge,fe),Vl(ie,se,fe),se.node}function Vl(ie,se,ge){if(xo(ie,se.line,se,ge,!0),se.rest)for(var fe=0;fe<se.rest.length;fe++)xo(ie,se.rest[fe],se,ge,!1)}function xo(ie,se,ge,fe,Se){if(se.widgets)for(var Ne=qo(ge),_e=0,ht=se.widgets;_e<ht.length;++_e){var ct=ht[_e],kt=ze("div",[ct.node],"CodeMirror-linewidget"+(ct.className?" "+ct.className:""));ct.handleMouseEvents||kt.setAttribute("cm-ignore-events","true"),Vu(ct,kt,ge,fe),ie.display.input.setUneditable(kt),Se&&ct.above?Ne.insertBefore(kt,ge.gutter||ge.text):Ne.appendChild(kt),Yn(ct,"redraw")}}function Vu(ie,se,ge,fe){if(ie.noHScroll){(ge.alignable||(ge.alignable=[])).push(se);var Se=fe.wrapperWidth;se.style.left=fe.fixedPos+"px",ie.coverGutter||(Se-=fe.gutterTotalWidth,se.style.paddingLeft=fe.gutterTotalWidth+"px"),se.style.width=Se+"px"}ie.coverGutter&&(se.style.zIndex=5,se.style.position="relative",ie.noHScroll||(se.style.marginLeft=-fe.gutterTotalWidth+"px"))}function Ll(ie){if(ie.height!=null)return ie.height;var se=ie.doc.cm;if(!se)return 0;if(!Mt(document.body,ie.node)){var ge="position: relative;";ie.coverGutter&&(ge+="margin-left: -"+se.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ge+="width: "+se.display.wrapper.clientWidth+"px;"),He(se.display.measure,ze("div",[ie.node],null,ge))}return ie.height=ie.node.parentNode.offsetHeight}function Xr(ie,se){for(var ge=ur(se);ge!=ie.wrapper;ge=ge.parentNode)if(!ge||ge.nodeType==1&&ge.getAttribute("cm-ignore-events")=="true"||ge.parentNode==ie.sizer&&ge!=ie.mover)return!0}function pa(ie){return ie.lineSpace.offsetTop}function hl(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function tl(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var se=He(ie.measure,ze("pre","x","CodeMirror-line-like")),ge=window.getComputedStyle?window.getComputedStyle(se):se.currentStyle,fe={left:parseInt(ge.paddingLeft),right:parseInt(ge.paddingRight)};return!isNaN(fe.left)&&!isNaN(fe.right)&&(ie.cachedPaddingH=fe),fe}function fl(ie){return ln-ie.display.nativeBarWidth}function wl(ie){return ie.display.scroller.clientWidth-fl(ie)-ie.display.barWidth}function Yu(ie){return ie.display.scroller.clientHeight-fl(ie)-ie.display.barHeight}function uc(ie,se,ge){var fe=ie.options.lineWrapping,Se=fe&&wl(ie);if(!se.measure.heights||fe&&se.measure.width!=Se){var Ne=se.measure.heights=[];if(fe){se.measure.width=Se;for(var _e=se.text.firstChild.getClientRects(),ht=0;ht<_e.length-1;ht++){var ct=_e[ht],kt=_e[ht+1];Math.abs(ct.bottom-kt.bottom)>2&&Ne.push((ct.bottom+kt.top)/2-ge.top)}}Ne.push(ge.bottom-ge.top)}}function Uu(ie,se,ge){if(ie.line==se)return{map:ie.measure.map,cache:ie.measure.cache};for(var fe=0;fe<ie.rest.length;fe++)if(ie.rest[fe]==se)return{map:ie.measure.maps[fe],cache:ie.measure.caches[fe]};for(var Se=0;Se<ie.rest.length;Se++)if(at(ie.rest[Se])>ge)return{map:ie.measure.maps[Se],cache:ie.measure.caches[Se],before:!0}}function Xu(ie,se){se=Gr(se);var ge=at(se),fe=ie.display.externalMeasured=new sa(ie.doc,se,ge);fe.lineN=ge;var Se=fe.built=Cn(ie,fe);return fe.text=Se.pre,He(ie.display.lineMeasure,Se.pre),fe}function _u(ie,se,ge,fe){return Cl(ie,ll(ie,se),ge,fe)}function xs(ie,se){if(se>=ie.display.viewFrom&&se<ie.display.viewTo)return ie.display.view[Dl(ie,se)];var ge=ie.display.externalMeasured;if(ge&&se>=ge.lineN&&se<ge.lineN+ge.size)return ge}function ll(ie,se){var ge=at(se),fe=xs(ie,ge);fe&&!fe.text?fe=null:fe&&fe.changes&&(io(ie,fe,ge,oh(ie)),ie.curOp.forceUpdate=!0),fe||(fe=Xu(ie,se));var Se=Uu(fe,se,ge);return{line:se,view:fe,rect:null,map:Se.map,cache:Se.cache,before:Se.before,hasHeights:!1}}function Cl(ie,se,ge,fe,Se){se.before&&(ge=-1);var Ne=ge+(fe||""),_e;return se.cache.hasOwnProperty(Ne)?_e=se.cache[Ne]:(se.rect||(se.rect=se.view.text.getBoundingClientRect()),se.hasHeights||(uc(ie,se.view,se.rect),se.hasHeights=!0),_e=Yo(ie,se,ge,fe),_e.bogus||(se.cache[Ne]=_e)),{left:_e.left,right:_e.right,top:Se?_e.rtop:_e.top,bottom:Se?_e.rbottom:_e.bottom}}var Fl={left:0,right:0,top:0,bottom:0};function nd(ie,se,ge){for(var fe,Se,Ne,_e,ht,ct,kt=0;kt<ie.length;kt+=3)if(ht=ie[kt],ct=ie[kt+1],se<ht?(Se=0,Ne=1,_e="left"):se<ct?(Se=se-ht,Ne=Se+1):(kt==ie.length-3||se==ct&&ie[kt+3]>se)&&(Ne=ct-ht,Se=Ne-1,se>=ct&&(_e="right")),Se!=null){if(fe=ie[kt+2],ht==ct&&ge==(fe.insertLeft?"left":"right")&&(_e=ge),ge=="left"&&Se==0)for(;kt&&ie[kt-2]==ie[kt-3]&&ie[kt-1].insertLeft;)fe=ie[(kt-=3)+2],_e="left";if(ge=="right"&&Se==ct-ht)for(;kt<ie.length-3&&ie[kt+3]==ie[kt+4]&&!ie[kt+5].insertLeft;)fe=ie[(kt+=3)+2],_e="right";break}return{node:fe,start:Se,end:Ne,collapse:_e,coverStart:ht,coverEnd:ct}}function Au(ie,se){var ge=Fl;if(se=="left")for(var fe=0;fe<ie.length&&(ge=ie[fe]).left==ge.right;fe++);else for(var Se=ie.length-1;Se>=0&&(ge=ie[Se]).left==ge.right;Se--);return ge}function Yo(ie,se,ge,fe){var Se=nd(se.map,ge,fe),Ne=Se.node,_e=Se.start,ht=Se.end,ct=Se.collapse,kt;if(Ne.nodeType==3){for(var bn=0;bn<4;bn++){for(;_e&&Gt(se.line.text.charAt(Se.coverStart+_e));)--_e;for(;Se.coverStart+ht<Se.coverEnd&&Gt(se.line.text.charAt(Se.coverStart+ht));)++ht;if(We&&it<9&&_e==0&&ht==Se.coverEnd-Se.coverStart?kt=Ne.parentNode.getBoundingClientRect():kt=Au(Ze(Ne,_e,ht).getClientRects(),fe),kt.left||kt.right||_e==0)break;ht=_e,_e=_e-1,ct="right"}We&&it<11&&(kt=Aa(ie.display.measure,kt))}else{_e>0&&(ct=fe="right");var jt;ie.options.lineWrapping&&(jt=Ne.getClientRects()).length>1?kt=jt[fe=="right"?jt.length-1:0]:kt=Ne.getBoundingClientRect()}if(We&&it<9&&!_e&&(!kt||!kt.left&&!kt.right)){var ni=Ne.parentNode.getClientRects()[0];ni?kt={left:ni.left,right:ni.left+Ac(ie.display),top:ni.top,bottom:ni.bottom}:kt=Fl}for(var Xn=kt.top-se.rect.top,Gi=kt.bottom-se.rect.top,Yi=(Xn+Gi)/2,dr=se.view.measure.heights,jr=0;jr<dr.length-1&&!(Yi<dr[jr]);jr++);var wo=jr?dr[jr-1]:0,no=dr[jr],Io={left:(ct=="right"?kt.right:kt.left)-se.rect.left,right:(ct=="left"?kt.left:kt.right)-se.rect.left,top:wo,bottom:no};return!kt.left&&!kt.right&&(Io.bogus=!0),ie.options.singleCursorHeightPerLine||(Io.rtop=Xn,Io.rbottom=Gi),Io}function Aa(ie,se){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Dr(ie))return se;var ge=screen.logicalXDPI/screen.deviceXDPI,fe=screen.logicalYDPI/screen.deviceYDPI;return{left:se.left*ge,right:se.right*ge,top:se.top*fe,bottom:se.bottom*fe}}function El(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var se=0;se<ie.rest.length;se++)ie.measure.caches[se]={}}function Ns(ie){ie.display.externalMeasure=null,Te(ie.display.lineMeasure);for(var se=0;se<ie.display.view.length;se++)El(ie.display.view[se])}function ks(ie){Ns(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function ds(){return vt&&ee?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ps(){return vt&&ee?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Is(ie){var se=0;if(ie.widgets)for(var ge=0;ge<ie.widgets.length;++ge)ie.widgets[ge].above&&(se+=Ll(ie.widgets[ge]));return se}function Ts(ie,se,ge,fe,Se){if(!Se){var Ne=Is(se);ge.top+=Ne,ge.bottom+=Ne}if(fe=="line")return ge;fe||(fe="local");var _e=Jo(se);if(fe=="local"?_e+=pa(ie.display):_e-=ie.display.viewOffset,fe=="page"||fe=="window"){var ht=ie.display.lineSpace.getBoundingClientRect();_e+=ht.top+(fe=="window"?0:Ps());var ct=ht.left+(fe=="window"?0:ds());ge.left+=ct,ge.right+=ct}return ge.top+=_e,ge.bottom+=_e,ge}function cc(ie,se,ge){if(ge=="div")return se;var fe=se.left,Se=se.top;if(ge=="page")fe-=ds(),Se-=Ps();else if(ge=="local"||!ge){var Ne=ie.display.sizer.getBoundingClientRect();fe+=Ne.left,Se+=Ne.top}var _e=ie.display.lineSpace.getBoundingClientRect();return{left:fe-_e.left,top:Se-_e.top}}function au(ie,se,ge,fe,Se){return fe||(fe=fn(ie.doc,se.line)),Ts(ie,fe,_u(ie,fe,se.ch,Se),ge)}function Ms(ie,se,ge,fe,Se,Ne){fe=fe||fn(ie.doc,se.line),Se||(Se=ll(ie,fe));function _e(Gi,Yi){var dr=Cl(ie,Se,Gi,Yi?"right":"left",Ne);return Yi?dr.left=dr.right:dr.right=dr.left,Ts(ie,fe,dr,ge)}var ht=Ge(fe,ie.doc.direction),ct=se.ch,kt=se.sticky;if(ct>=fe.text.length?(ct=fe.text.length,kt="before"):ct<=0&&(ct=0,kt="after"),!ht)return _e(kt=="before"?ct-1:ct,kt=="before");function bn(Gi,Yi,dr){var jr=ht[Yi],wo=jr.level==1;return _e(dr?Gi-1:Gi,wo!=dr)}var jt=ye(ht,ct,kt),ni=we,Xn=bn(ct,jt,kt=="before");return ni!=null&&(Xn.other=bn(ct,ni,kt!="before")),Xn}function ih(ie,se){var ge=0;se=Zn(ie.doc,se),ie.options.lineWrapping||(ge=Ac(ie.display)*se.ch);var fe=fn(ie.doc,se.line),Se=Jo(fe)+pa(ie.display);return{left:ge,right:ge,top:Se,bottom:Se+fe.height}}function md(ie,se,ge,fe,Se){var Ne=qt(ie,se,ge);return Ne.xRel=Se,fe&&(Ne.outside=fe),Ne}function id(ie,se,ge){var fe=ie.doc;if(ge+=ie.display.viewOffset,ge<0)return md(fe.first,0,null,-1,-1);var Se=Bn(fe,ge),Ne=fe.first+fe.size-1;if(Se>Ne)return md(fe.first+fe.size-1,fn(fe,Ne).text.length,null,1,1);se<0&&(se=0);for(var _e=fn(fe,Se);;){var ht=vi(ie,_e,Se,se,ge),ct=ho(_e,ht.ch+(ht.xRel>0||ht.outside>0?1:0));if(!ct)return ht;var kt=ct.find(1);if(kt.line==Se)return kt;_e=fn(fe,Se=kt.line)}}function Wr(ie,se,ge,fe){fe-=Is(se);var Se=se.text.length,Ne=nt(function(_e){return Cl(ie,ge,_e-1).bottom<=fe},Se,0);return Se=nt(function(_e){return Cl(ie,ge,_e).top>fe},Ne,Se),{begin:Ne,end:Se}}function rd(ie,se,ge,fe){ge||(ge=ll(ie,se));var Se=Ts(ie,se,Cl(ie,ge,fe),"line").top;return Wr(ie,se,ge,Se)}function Kt(ie,se,ge,fe){return ie.bottom<=ge?!1:ie.top>ge?!0:(fe?ie.left:ie.right)>se}function vi(ie,se,ge,fe,Se){Se-=Jo(se);var Ne=ll(ie,se),_e=Is(se),ht=0,ct=se.text.length,kt=!0,bn=Ge(se,ie.doc.direction);if(bn){var jt=(ie.options.lineWrapping?rh:Ih)(ie,se,ge,Ne,bn,fe,Se);kt=jt.level!=1,ht=kt?jt.from:jt.to-1,ct=kt?jt.to:jt.from-1}var ni=null,Xn=null,Gi=nt(function(da){var $r=Cl(ie,Ne,da);return $r.top+=_e,$r.bottom+=_e,Kt($r,fe,Se,!1)?($r.top<=Se&&$r.left<=fe&&(ni=da,Xn=$r),!0):!1},ht,ct),Yi,dr,jr=!1;if(Xn){var wo=fe-Xn.left<Xn.right-fe,no=wo==kt;Gi=ni+(no?0:1),dr=no?"after":"before",Yi=wo?Xn.left:Xn.right}else{!kt&&(Gi==ct||Gi==ht)&&Gi++,dr=Gi==0?"after":Gi==se.text.length?"before":Cl(ie,Ne,Gi-(kt?1:0)).bottom+_e<=Se==kt?"after":"before";var Io=Ms(ie,qt(ge,Gi,dr),"line",se,Ne);Yi=Io.left,jr=Se<Io.top?-1:Se>=Io.bottom?1:0}return Gi=ft(se.text,Gi,1),md(ge,Gi,dr,jr,fe-Yi)}function Ih(ie,se,ge,fe,Se,Ne,_e){var ht=nt(function(jt){var ni=Se[jt],Xn=ni.level!=1;return Kt(Ms(ie,qt(ge,Xn?ni.to:ni.from,Xn?"before":"after"),"line",se,fe),Ne,_e,!0)},0,Se.length-1),ct=Se[ht];if(ht>0){var kt=ct.level!=1,bn=Ms(ie,qt(ge,kt?ct.from:ct.to,kt?"after":"before"),"line",se,fe);Kt(bn,Ne,_e,!0)&&bn.top>_e&&(ct=Se[ht-1])}return ct}function rh(ie,se,ge,fe,Se,Ne,_e){var ht=Wr(ie,se,fe,_e),ct=ht.begin,kt=ht.end;/\s/.test(se.text.charAt(kt-1))&&kt--;for(var bn=null,jt=null,ni=0;ni<Se.length;ni++){var Xn=Se[ni];if(!(Xn.from>=kt||Xn.to<=ct)){var Gi=Xn.level!=1,Yi=Cl(ie,fe,Gi?Math.min(kt,Xn.to)-1:Math.max(ct,Xn.from)).right,dr=Yi<Ne?Ne-Yi+1e9:Yi-Ne;(!bn||jt>dr)&&(bn=Xn,jt=dr)}}return bn||(bn=Se[Se.length-1]),bn.from<ct&&(bn={from:ct,to:bn.to,level:bn.level}),bn.to>kt&&(bn={from:bn.from,to:kt,level:bn.level}),bn}var dc;function hc(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(dc==null){dc=ze("pre",null,"CodeMirror-line-like");for(var se=0;se<49;++se)dc.appendChild(document.createTextNode("x")),dc.appendChild(ze("br"));dc.appendChild(document.createTextNode("x"))}He(ie.measure,dc);var ge=dc.offsetHeight/50;return ge>3&&(ie.cachedTextHeight=ge),Te(ie.measure),ge||1}function Ac(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var se=ze("span","xxxxxxxxxx"),ge=ze("pre",[se],"CodeMirror-line-like");He(ie.measure,ge);var fe=se.getBoundingClientRect(),Se=(fe.right-fe.left)/10;return Se>2&&(ie.cachedCharWidth=Se),Se||10}function oh(ie){for(var se=ie.display,ge={},fe={},Se=se.gutters.clientLeft,Ne=se.gutters.firstChild,_e=0;Ne;Ne=Ne.nextSibling,++_e){var ht=ie.display.gutterSpecs[_e].className;ge[ht]=Ne.offsetLeft+Ne.clientLeft+Se,fe[ht]=Ne.clientWidth}return{fixedPos:Td(se),gutterTotalWidth:se.gutters.offsetWidth,gutterLeft:ge,gutterWidth:fe,wrapperWidth:se.wrapper.clientWidth}}function Td(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Os(ie){var se=hc(ie.display),ge=ie.options.lineWrapping,fe=ge&&Math.max(5,ie.display.scroller.clientWidth/Ac(ie.display)-3);return function(Se){if(oi(ie.doc,Se))return 0;var Ne=0;if(Se.widgets)for(var _e=0;_e<Se.widgets.length;_e++)Se.widgets[_e].height&&(Ne+=Se.widgets[_e].height);return ge?Ne+(Math.ceil(Se.text.length/fe)||1)*se:Ne+se}}function ko(ie){var se=ie.doc,ge=Os(ie);se.iter(function(fe){var Se=ge(fe);Se!=fe.height&&vn(fe,Se)})}function gl(ie,se,ge,fe){var Se=ie.display;if(!ge&&ur(se).getAttribute("cm-not-content")=="true")return null;var Ne,_e,ht=Se.lineSpace.getBoundingClientRect();try{Ne=se.clientX-ht.left,_e=se.clientY-ht.top}catch(jt){return null}var ct=id(ie,Ne,_e),kt;if(fe&&ct.xRel>0&&(kt=fn(ie.doc,ct.line).text).length==ct.ch){var bn=lt(kt,kt.length,ie.options.tabSize)-kt.length;ct=qt(ct.line,Math.max(0,Math.round((Ne-tl(ie.display).left)/Ac(ie.display))-bn))}return ct}function Dl(ie,se){if(se>=ie.display.viewTo||(se-=ie.display.viewFrom,se<0))return null;for(var ge=ie.display.view,fe=0;fe<ge.length;fe++)if(se-=ge[fe].size,se<0)return fe}function vs(ie,se,ge,fe){se==null&&(se=ie.doc.first),ge==null&&(ge=ie.doc.first+ie.doc.size),fe||(fe=0);var Se=ie.display;if(fe&&ge<Se.viewTo&&(Se.updateLineNumbers==null||Se.updateLineNumbers>se)&&(Se.updateLineNumbers=se),ie.curOp.viewChanged=!0,se>=Se.viewTo)An&&$i(ie.doc,se)<Se.viewTo&&nl(ie);else if(ge<=Se.viewFrom)An&&kr(ie.doc,ge+fe)>Se.viewFrom?nl(ie):(Se.viewFrom+=fe,Se.viewTo+=fe);else if(se<=Se.viewFrom&&ge>=Se.viewTo)nl(ie);else if(se<=Se.viewFrom){var Ne=Ue(ie,ge,ge+fe,1);Ne?(Se.view=Se.view.slice(Ne.index),Se.viewFrom=Ne.lineN,Se.viewTo+=fe):nl(ie)}else if(ge>=Se.viewTo){var _e=Ue(ie,se,se,-1);_e?(Se.view=Se.view.slice(0,_e.index),Se.viewTo=_e.lineN):nl(ie)}else{var ht=Ue(ie,se,se,-1),ct=Ue(ie,ge,ge+fe,1);ht&&ct?(Se.view=Se.view.slice(0,ht.index).concat(vo(ie,ht.lineN,ct.lineN)).concat(Se.view.slice(ct.index)),Se.viewTo+=fe):nl(ie)}var kt=Se.externalMeasured;kt&&(ge<kt.lineN?kt.lineN+=fe:se<kt.lineN+kt.size&&(Se.externalMeasured=null))}function ma(ie,se,ge){ie.curOp.viewChanged=!0;var fe=ie.display,Se=ie.display.externalMeasured;if(Se&&se>=Se.lineN&&se<Se.lineN+Se.size&&(fe.externalMeasured=null),!(se<fe.viewFrom||se>=fe.viewTo)){var Ne=fe.view[Dl(ie,se)];if(Ne.node!=null){var _e=Ne.changes||(Ne.changes=[]);Et(_e,ge)==-1&&_e.push(ge)}}}function nl(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Ue(ie,se,ge,fe){var Se=Dl(ie,se),Ne,_e=ie.display.view;if(!An||ge==ie.doc.first+ie.doc.size)return{index:Se,lineN:ge};for(var ht=ie.display.viewFrom,ct=0;ct<Se;ct++)ht+=_e[ct].size;if(ht!=se){if(fe>0){if(Se==_e.length-1)return null;Ne=ht+_e[Se].size-se,Se++}else Ne=ht-se;se+=Ne,ge+=Ne}for(;$i(ie.doc,ge)!=ge;){if(Se==(fe<0?0:_e.length-1))return null;ge+=fe*_e[Se-(fe<0?1:0)].size,Se+=fe}return{index:Se,lineN:ge}}function rt(ie,se,ge){var fe=ie.display,Se=fe.view;Se.length==0||se>=fe.viewTo||ge<=fe.viewFrom?(fe.view=vo(ie,se,ge),fe.viewFrom=se):(fe.viewFrom>se?fe.view=vo(ie,se,fe.viewFrom).concat(fe.view):fe.viewFrom<se&&(fe.view=fe.view.slice(Dl(ie,se))),fe.viewFrom=se,fe.viewTo<ge?fe.view=fe.view.concat(vo(ie,fe.viewTo,ge)):fe.viewTo>ge&&(fe.view=fe.view.slice(0,Dl(ie,ge)))),fe.viewTo=ge}function gt(ie){for(var se=ie.display.view,ge=0,fe=0;fe<se.length;fe++){var Se=se[fe];!Se.hidden&&(!Se.node||Se.changes)&&++ge}return ge}function $t(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function sn(ie,se){se===void 0&&(se=!0);for(var ge=ie.doc,fe={},Se=fe.cursors=document.createDocumentFragment(),Ne=fe.selection=document.createDocumentFragment(),_e=0;_e<ge.sel.ranges.length;_e++)if(!(!se&&_e==ge.sel.primIndex)){var ht=ge.sel.ranges[_e];if(!(ht.from().line>=ie.display.viewTo||ht.to().line<ie.display.viewFrom)){var ct=ht.empty();(ct||ie.options.showCursorWhenSelecting)&&Dn(ie,ht.head,Se),ct||ii(ie,ht,Ne)}}return fe}function Dn(ie,se,ge){var fe=Ms(ie,se,"div",null,null,!ie.options.singleCursorHeightPerLine),Se=ge.appendChild(ze("div","\xA0","CodeMirror-cursor"));if(Se.style.left=fe.left+"px",Se.style.top=fe.top+"px",Se.style.height=Math.max(0,fe.bottom-fe.top)*ie.options.cursorHeight+"px",fe.other){var Ne=ge.appendChild(ze("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ne.style.display="",Ne.style.left=fe.other.left+"px",Ne.style.top=fe.other.top+"px",Ne.style.height=(fe.other.bottom-fe.other.top)*.85+"px"}}function On(ie,se){return ie.top-se.top||ie.left-se.left}function ii(ie,se,ge){var fe=ie.display,Se=ie.doc,Ne=document.createDocumentFragment(),_e=tl(ie.display),ht=_e.left,ct=Math.max(fe.sizerWidth,wl(ie)-fe.sizer.offsetLeft)-_e.right,kt=Se.direction=="ltr";function bn(no,Io,da,$r){Io<0&&(Io=0),Io=Math.round(Io),$r=Math.round($r),Ne.appendChild(ze("div",null,"CodeMirror-selected","position: absolute; left: "+no+`px;
|
|
|
top: `+Io+"px; width: "+(da==null?ct-no:da)+`px;
|
|
|
height: `+($r-Io)+"px"))}function jt(no,Io,da){var $r=fn(Se,no),La=$r.text.length,$s,Hl;function cl(Tl,ec){return au(ie,qt(no,Tl),"div",$r,ec)}function ju(Tl,ec,cu){var Ol=rd(ie,$r,null,Tl),us=ec=="ltr"==(cu=="after")?"left":"right",pl=cu=="after"?Ol.begin:Ol.end-(/\s/.test($r.text.charAt(Ol.end-1))?2:1);return cl(pl,us)[us]}var xu=Ge($r,Se.direction);return Oe(xu,Io||0,da==null?La:da,function(Tl,ec,cu,Ol){var us=cu=="ltr",pl=cl(Tl,us?"left":"right"),_l=cl(ec-1,us?"right":"left"),du=Io==null&&Tl==0,Yc=da==null&&ec==La,dl=Ol==0,Bc=!xu||Ol==xu.length-1;if(_l.top-pl.top<=3){var Pl=(kt?du:Yc)&&dl,Qf=(kt?Yc:du)&&Bc,yc=Pl?ht:(us?pl:_l).left,tc=Qf?ct:(us?_l:pl).right;bn(yc,pl.top,tc-yc,pl.bottom)}else{var Hu,Hs,Jl,xd;us?(Hu=kt&&du&&dl?ht:pl.left,Hs=kt?ct:ju(Tl,cu,"before"),Jl=kt?ht:ju(ec,cu,"after"),xd=kt&&Yc&&Bc?ct:_l.right):(Hu=kt?ju(Tl,cu,"before"):ht,Hs=!kt&&du&&dl?ct:pl.right,Jl=!kt&&Yc&&Bc?ht:_l.left,xd=kt?ju(ec,cu,"after"):ct),bn(Hu,pl.top,Hs-Hu,pl.bottom),pl.bottom<_l.top&&bn(ht,pl.bottom,null,_l.top),bn(Jl,_l.top,xd-Jl,_l.bottom)}(!$s||On(pl,$s)<0)&&($s=pl),On(_l,$s)<0&&($s=_l),(!Hl||On(pl,Hl)<0)&&(Hl=pl),On(_l,Hl)<0&&(Hl=_l)}),{start:$s,end:Hl}}var ni=se.from(),Xn=se.to();if(ni.line==Xn.line)jt(ni.line,ni.ch,Xn.ch);else{var Gi=fn(Se,ni.line),Yi=fn(Se,Xn.line),dr=Gr(Gi)==Gr(Yi),jr=jt(ni.line,ni.ch,dr?Gi.text.length+1:null).end,wo=jt(Xn.line,dr?0:null,Xn.ch).start;dr&&(jr.top<wo.top-2?(bn(jr.right,jr.top,null,jr.bottom),bn(ht,wo.top,wo.left,wo.bottom)):bn(jr.right,jr.top,wo.left-jr.right,jr.bottom)),jr.bottom<wo.top&&bn(ht,jr.bottom,null,wo.top)}ge.appendChild(Ne)}function ci(ie){if(ie.state.focused){var se=ie.display;clearInterval(se.blinker);var ge=!0;se.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?se.blinker=setInterval(function(){ie.hasFocus()||zi(ie),se.cursorDiv.style.visibility=(ge=!ge)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(se.cursorDiv.style.visibility="hidden")}}function Ei(ie){ie.state.focused||(ie.display.input.focus(),wi(ie))}function Xi(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,zi(ie))},100)}function wi(ie,se){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(wt(ie,"focus",ie,se),ie.state.focused=!0,Ft(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),be&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),ci(ie))}function zi(ie,se){ie.state.delayingBlurEvent||(ie.state.focused&&(wt(ie,"blur",ie,se),ie.state.focused=!1,Le(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function xi(ie){for(var se=ie.display,ge=se.lineDiv.offsetTop,fe=0;fe<se.view.length;fe++){var Se=se.view[fe],Ne=ie.options.lineWrapping,_e=void 0,ht=0;if(!Se.hidden){if(We&&it<8){var ct=Se.node.offsetTop+Se.node.offsetHeight;_e=ct-ge,ge=ct}else{var kt=Se.node.getBoundingClientRect();_e=kt.bottom-kt.top,!Ne&&Se.text.firstChild&&(ht=Se.text.firstChild.getBoundingClientRect().right-kt.left-1)}var bn=Se.line.height-_e;if((bn>.005||bn<-.005)&&(vn(Se.line,_e),or(Se.line),Se.rest))for(var jt=0;jt<Se.rest.length;jt++)or(Se.rest[jt]);if(ht>ie.display.sizerWidth){var ni=Math.ceil(ht/Ac(ie.display));ni>ie.display.maxLineLength&&(ie.display.maxLineLength=ni,ie.display.maxLine=Se.line,ie.display.maxLineChanged=!0)}}}}function or(ie){if(ie.widgets)for(var se=0;se<ie.widgets.length;++se){var ge=ie.widgets[se],fe=ge.node.parentNode;fe&&(ge.height=fe.offsetHeight)}}function ei(ie,se,ge){var fe=ge&&ge.top!=null?Math.max(0,ge.top):ie.scroller.scrollTop;fe=Math.floor(fe-pa(ie));var Se=ge&&ge.bottom!=null?ge.bottom:fe+ie.wrapper.clientHeight,Ne=Bn(se,fe),_e=Bn(se,Se);if(ge&&ge.ensure){var ht=ge.ensure.from.line,ct=ge.ensure.to.line;ht<Ne?(Ne=ht,_e=Bn(se,Jo(fn(se,ht))+ie.wrapper.clientHeight)):Math.min(ct,se.lastLine())>=_e&&(Ne=Bn(se,Jo(fn(se,ct))-ie.wrapper.clientHeight),_e=ct)}return{from:Ne,to:Math.max(_e,Ne+1)}}function ji(ie,se){if(!Xt(ie,"scrollCursorIntoView")){var ge=ie.display,fe=ge.sizer.getBoundingClientRect(),Se=null;if(se.top+fe.top<0?Se=!0:se.bottom+fe.top>(window.innerHeight||document.documentElement.clientHeight)&&(Se=!1),Se!=null&&!Qe){var Ne=ze("div","\u200B",null,`position: absolute;
|
|
|
top: `+(se.top-ge.viewOffset-pa(ie.display))+`px;
|
|
|
height: `+(se.bottom-se.top+fl(ie)+ge.barHeight)+`px;
|
|
|
left: `+se.left+"px; width: "+Math.max(2,se.right-se.left)+"px;");ie.display.lineSpace.appendChild(Ne),Ne.scrollIntoView(Se),ie.display.lineSpace.removeChild(Ne)}}}function ar(ie,se,ge,fe){fe==null&&(fe=0);var Se;!ie.options.lineWrapping&&se==ge&&(se=se.ch?qt(se.line,se.sticky=="before"?se.ch-1:se.ch,"after"):se,ge=se.sticky=="before"?qt(se.line,se.ch+1,"before"):se);for(var Ne=0;Ne<5;Ne++){var _e=!1,ht=Ms(ie,se),ct=!ge||ge==se?ht:Ms(ie,ge);Se={left:Math.min(ht.left,ct.left),top:Math.min(ht.top,ct.top)-fe,right:Math.max(ht.left,ct.left),bottom:Math.max(ht.bottom,ct.bottom)+fe};var kt=Kr(ie,Se),bn=ie.doc.scrollTop,jt=ie.doc.scrollLeft;if(kt.scrollTop!=null&&(va(ie,kt.scrollTop),Math.abs(ie.doc.scrollTop-bn)>1&&(_e=!0)),kt.scrollLeft!=null&&(za(ie,kt.scrollLeft),Math.abs(ie.doc.scrollLeft-jt)>1&&(_e=!0)),!_e)break}return Se}function eo(ie,se){var ge=Kr(ie,se);ge.scrollTop!=null&&va(ie,ge.scrollTop),ge.scrollLeft!=null&&za(ie,ge.scrollLeft)}function Kr(ie,se){var ge=ie.display,fe=hc(ie.display);se.top<0&&(se.top=0);var Se=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ge.scroller.scrollTop,Ne=Yu(ie),_e={};se.bottom-se.top>Ne&&(se.bottom=se.top+Ne);var ht=ie.doc.height+hl(ge),ct=se.top<fe,kt=se.bottom>ht-fe;if(se.top<Se)_e.scrollTop=ct?0:se.top;else if(se.bottom>Se+Ne){var bn=Math.min(se.top,(kt?ht:se.bottom)-Ne);bn!=Se&&(_e.scrollTop=bn)}var jt=ie.options.fixedGutter?0:ge.gutters.offsetWidth,ni=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ge.scroller.scrollLeft-jt,Xn=wl(ie)-ge.gutters.offsetWidth,Gi=se.right-se.left>Xn;return Gi&&(se.right=se.left+Xn),se.left<10?_e.scrollLeft=0:se.left<ni?_e.scrollLeft=Math.max(0,se.left+jt-(Gi?0:10)):se.right>Xn+ni-3&&(_e.scrollLeft=se.right+(Gi?0:10)-Xn),_e}function oo(ie,se){se!=null&&(la(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+se)}function ao(ie){la(ie);var se=ie.getCursor();ie.curOp.scrollToPos={from:se,to:se,margin:ie.options.cursorScrollMargin}}function to(ie,se,ge){(se!=null||ge!=null)&&la(ie),se!=null&&(ie.curOp.scrollLeft=se),ge!=null&&(ie.curOp.scrollTop=ge)}function Ji(ie,se){la(ie),ie.curOp.scrollToPos=se}function la(ie){var se=ie.curOp.scrollToPos;if(se){ie.curOp.scrollToPos=null;var ge=ih(ie,se.from),fe=ih(ie,se.to);Qo(ie,ge,fe,se.margin)}}function Qo(ie,se,ge,fe){var Se=Kr(ie,{left:Math.min(se.left,ge.left),top:Math.min(se.top,ge.top)-fe,right:Math.max(se.right,ge.right),bottom:Math.max(se.bottom,ge.bottom)+fe});to(ie,Se.scrollLeft,Se.scrollTop)}function va(ie,se){Math.abs(ie.doc.scrollTop-se)<2||(pe||pr(ie,{top:se}),Wa(ie,se,!0),pe&&pr(ie),yi(ie,100))}function Wa(ie,se,ge){se=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,se)),!(ie.display.scroller.scrollTop==se&&!ge)&&(ie.doc.scrollTop=se,ie.display.scrollbars.setScrollTop(se),ie.display.scroller.scrollTop!=se&&(ie.display.scroller.scrollTop=se))}function za(ie,se,ge,fe){se=Math.max(0,Math.min(se,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ge?se==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-se)<2)&&!fe)&&(ie.doc.scrollLeft=se,Eo(ie),ie.display.scroller.scrollLeft!=se&&(ie.display.scroller.scrollLeft=se),ie.display.scrollbars.setScrollLeft(se))}function Ba(ie){var se=ie.display,ge=se.gutters.offsetWidth,fe=Math.round(ie.doc.height+hl(ie.display));return{clientHeight:se.scroller.clientHeight,viewHeight:se.wrapper.clientHeight,scrollWidth:se.scroller.scrollWidth,clientWidth:se.scroller.clientWidth,viewWidth:se.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ge:0,docHeight:fe,scrollHeight:fe+fl(ie)+se.barHeight,nativeBarWidth:se.nativeBarWidth,gutterWidth:ge}}var hs=function(ie,se,ge){this.cm=ge;var fe=this.vert=ze("div",[ze("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Se=this.horiz=ze("div",[ze("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");fe.tabIndex=Se.tabIndex=-1,ie(fe),ie(Se),pt(fe,"scroll",function(){fe.clientHeight&&se(fe.scrollTop,"vertical")}),pt(Se,"scroll",function(){Se.clientWidth&&se(Se.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,We&&it<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};hs.prototype.update=function(ie){var se=ie.scrollWidth>ie.clientWidth+1,ge=ie.scrollHeight>ie.clientHeight+1,fe=ie.nativeBarWidth;if(ge){this.vert.style.display="block",this.vert.style.bottom=se?fe+"px":"0";var Se=ie.viewHeight-(se?fe:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+Se)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(se){this.horiz.style.display="block",this.horiz.style.right=ge?fe+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Ne=ie.viewWidth-ie.barLeft-(ge?fe:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(fe==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ge?fe:0,bottom:se?fe:0}},hs.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},hs.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},hs.prototype.zeroWidthHack=function(){var ie=ue&&!$e?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new je,this.disableVert=new je},hs.prototype.enableZeroWidthBar=function(ie,se,ge){ie.style.pointerEvents="auto";function fe(){var Se=ie.getBoundingClientRect(),Ne=ge=="vert"?document.elementFromPoint(Se.right-1,(Se.top+Se.bottom)/2):document.elementFromPoint((Se.right+Se.left)/2,Se.bottom-1);Ne!=ie?ie.style.pointerEvents="none":se.set(1e3,fe)}se.set(1e3,fe)},hs.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Ma=function(){};Ma.prototype.update=function(){return{bottom:0,right:0}},Ma.prototype.setScrollLeft=function(){},Ma.prototype.setScrollTop=function(){},Ma.prototype.clear=function(){};function wa(ie,se){se||(se=Ba(ie));var ge=ie.display.barWidth,fe=ie.display.barHeight;Na(ie,se);for(var Se=0;Se<4&&ge!=ie.display.barWidth||fe!=ie.display.barHeight;Se++)ge!=ie.display.barWidth&&ie.options.lineWrapping&&xi(ie),Na(ie,Ba(ie)),ge=ie.display.barWidth,fe=ie.display.barHeight}function Na(ie,se){var ge=ie.display,fe=ge.scrollbars.update(se);ge.sizer.style.paddingRight=(ge.barWidth=fe.right)+"px",ge.sizer.style.paddingBottom=(ge.barHeight=fe.bottom)+"px",ge.heightForcer.style.borderBottom=fe.bottom+"px solid transparent",fe.right&&fe.bottom?(ge.scrollbarFiller.style.display="block",ge.scrollbarFiller.style.height=fe.bottom+"px",ge.scrollbarFiller.style.width=fe.right+"px"):ge.scrollbarFiller.style.display="",fe.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ge.gutterFiller.style.display="block",ge.gutterFiller.style.height=fe.bottom+"px",ge.gutterFiller.style.width=se.gutterWidth+"px"):ge.gutterFiller.style.display=""}var rs={native:hs,null:Ma};function fs(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Le(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new rs[ie.options.scrollbarStyle](function(se){ie.display.wrapper.insertBefore(se,ie.display.scrollbarFiller),pt(se,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),se.setAttribute("cm-not-content","true")},function(se,ge){ge=="horizontal"?za(ie,se):va(ie,se)},ie),ie.display.scrollbars.addClass&&Ft(ie.display.wrapper,ie.display.scrollbars.addClass)}var Ua=0;function ka(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ua},is(ie.curOp)}function Rs(ie){var se=ie.curOp;se&&gr(se,function(ge){for(var fe=0;fe<ge.ops.length;fe++)ge.ops[fe].cm.curOp=null;ul(ge)})}function ul(ie){for(var se=ie.ops,ge=0;ge<se.length;ge++)ut(se[ge]);for(var fe=0;fe<se.length;fe++)St(se[fe]);for(var Se=0;Se<se.length;Se++)Yt(se[Se]);for(var Ne=0;Ne<se.length;Ne++)Qt(se[Ne]);for(var _e=0;_e<se.length;_e++)mn(se[_e])}function ut(ie){var se=ie.cm,ge=se.display;Ri(se),ie.updateMaxLine&&na(se),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ge.viewFrom||ie.scrollToPos.to.line>=ge.viewTo)||ge.maxLineChanged&&se.options.lineWrapping,ie.update=ie.mustUpdate&&new gi(se,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function St(ie){ie.updatedDisplay=ie.mustUpdate&&ir(ie.cm,ie.update)}function Yt(ie){var se=ie.cm,ge=se.display;ie.updatedDisplay&&xi(se),ie.barMeasure=Ba(se),ge.maxLineChanged&&!se.options.lineWrapping&&(ie.adjustWidthTo=_u(se,ge.maxLine,ge.maxLine.text.length).left+3,se.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ge.scroller.clientWidth,ge.sizer.offsetLeft+ie.adjustWidthTo+fl(se)+se.display.barWidth),ie.maxScrollLeft=Math.max(0,ge.sizer.offsetLeft+ie.adjustWidthTo-wl(se))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ge.input.prepareSelection())}function Qt(ie){var se=ie.cm;ie.adjustWidthTo!=null&&(se.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<se.doc.scrollLeft&&za(se,Math.min(se.display.scroller.scrollLeft,ie.maxScrollLeft),!0),se.display.maxLineChanged=!1);var ge=ie.focus&&ie.focus==Xe();ie.preparedSelection&&se.display.input.showSelection(ie.preparedSelection,ge),(ie.updatedDisplay||ie.startHeight!=se.doc.height)&&wa(se,ie.barMeasure),ie.updatedDisplay&&so(se,ie.barMeasure),ie.selectionChanged&&ci(se),se.state.focused&&ie.updateInput&&se.display.input.reset(ie.typing),ge&&Ei(ie.cm)}function mn(ie){var se=ie.cm,ge=se.display,fe=se.doc;if(ie.updatedDisplay&&Ti(se,ie.update),ge.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ge.wheelStartX=ge.wheelStartY=null),ie.scrollTop!=null&&Wa(se,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&za(se,ie.scrollLeft,!0,!0),ie.scrollToPos){var Se=ar(se,Zn(fe,ie.scrollToPos.from),Zn(fe,ie.scrollToPos.to),ie.scrollToPos.margin);ji(se,Se)}var Ne=ie.maybeHiddenMarkers,_e=ie.maybeUnhiddenMarkers;if(Ne)for(var ht=0;ht<Ne.length;++ht)Ne[ht].lines.length||wt(Ne[ht],"hide");if(_e)for(var ct=0;ct<_e.length;++ct)_e[ct].lines.length&&wt(_e[ct],"unhide");ge.wrapper.offsetHeight&&(fe.scrollTop=se.display.scroller.scrollTop),ie.changeObjs&&wt(se,"changes",se,ie.changeObjs),ie.update&&ie.update.finish()}function un(ie,se){if(ie.curOp)return se();ka(ie);try{return se()}finally{Rs(ie)}}function jn(ie,se){return function(){if(ie.curOp)return se.apply(ie,arguments);ka(ie);try{return se.apply(ie,arguments)}finally{Rs(ie)}}}function zn(ie){return function(){if(this.curOp)return ie.apply(this,arguments);ka(this);try{return ie.apply(this,arguments)}finally{Rs(this)}}}function Rn(ie){return function(){var se=this.cm;if(!se||se.curOp)return ie.apply(this,arguments);ka(se);try{return ie.apply(this,arguments)}finally{Rs(se)}}}function yi(ie,se){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(se,It(ti,ie))}function ti(ie){var se=ie.doc;if(!(se.highlightFrontier>=ie.display.viewTo)){var ge=+new Date+ie.options.workTime,fe=rr(ie,se.highlightFrontier),Se=[];se.iter(fe.line,Math.min(se.first+se.size,ie.display.viewTo+500),function(Ne){if(fe.line>=ie.display.viewFrom){var _e=Ne.styles,ht=Ne.text.length>ie.options.maxHighlightLength?xn(se.mode,fe.state):null,ct=nr(ie,Ne,fe,!0);ht&&(fe.state=ht),Ne.styles=ct.styles;var kt=Ne.styleClasses,bn=ct.classes;bn?Ne.styleClasses=bn:kt&&(Ne.styleClasses=null);for(var jt=!_e||_e.length!=Ne.styles.length||kt!=bn&&(!kt||!bn||kt.bgClass!=bn.bgClass||kt.textClass!=bn.textClass),ni=0;!jt&&ni<_e.length;++ni)jt=_e[ni]!=Ne.styles[ni];jt&&Se.push(fe.line),Ne.stateAfter=fe.save(),fe.nextLine()}else Ne.text.length<=ie.options.maxHighlightLength&&Jt(ie,Ne.text,fe),Ne.stateAfter=fe.line%5==0?fe.save():null,fe.nextLine();if(+new Date>ge)return yi(ie,ie.options.workDelay),!0}),se.highlightFrontier=fe.line,se.modeFrontier=Math.max(se.modeFrontier,fe.line),Se.length&&un(ie,function(){for(var Ne=0;Ne<Se.length;Ne++)ma(ie,Se[Ne],"text")})}}var gi=function(ie,se,ge){var fe=ie.display;this.viewport=se,this.visible=ei(fe,ie.doc,se),this.editorIsHidden=!fe.wrapper.offsetWidth,this.wrapperHeight=fe.wrapper.clientHeight,this.wrapperWidth=fe.wrapper.clientWidth,this.oldDisplayWidth=wl(ie),this.force=ge,this.dims=oh(ie),this.events=[]};gi.prototype.signal=function(ie,se){In(ie,se)&&this.events.push(arguments)},gi.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)wt.apply(null,this.events[ie])};function Ri(ie){var se=ie.display;!se.scrollbarsClipped&&se.scroller.offsetWidth&&(se.nativeBarWidth=se.scroller.offsetWidth-se.scroller.clientWidth,se.heightForcer.style.height=fl(ie)+"px",se.sizer.style.marginBottom=-se.nativeBarWidth+"px",se.sizer.style.borderRightWidth=fl(ie)+"px",se.scrollbarsClipped=!0)}function Oi(ie){if(ie.hasFocus())return null;var se=Xe();if(!se||!Mt(ie.display.lineDiv,se))return null;var ge={activeElt:se};if(window.getSelection){var fe=window.getSelection();fe.anchorNode&&fe.extend&&Mt(ie.display.lineDiv,fe.anchorNode)&&(ge.anchorNode=fe.anchorNode,ge.anchorOffset=fe.anchorOffset,ge.focusNode=fe.focusNode,ge.focusOffset=fe.focusOffset)}return ge}function Bi(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Xe())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Mt(document.body,ie.anchorNode)&&Mt(document.body,ie.focusNode))){var se=window.getSelection(),ge=document.createRange();ge.setEnd(ie.anchorNode,ie.anchorOffset),ge.collapse(!1),se.removeAllRanges(),se.addRange(ge),se.extend(ie.focusNode,ie.focusOffset)}}function ir(ie,se){var ge=ie.display,fe=ie.doc;if(se.editorIsHidden)return nl(ie),!1;if(!se.force&&se.visible.from>=ge.viewFrom&&se.visible.to<=ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>=ge.viewTo)&&ge.renderedView==ge.view&>(ie)==0)return!1;Mr(ie)&&(nl(ie),se.dims=oh(ie));var Se=fe.first+fe.size,Ne=Math.max(se.visible.from-ie.options.viewportMargin,fe.first),_e=Math.min(Se,se.visible.to+ie.options.viewportMargin);ge.viewFrom<Ne&&Ne-ge.viewFrom<20&&(Ne=Math.max(fe.first,ge.viewFrom)),ge.viewTo>_e&&ge.viewTo-_e<20&&(_e=Math.min(Se,ge.viewTo)),An&&(Ne=$i(ie.doc,Ne),_e=kr(ie.doc,_e));var ht=Ne!=ge.viewFrom||_e!=ge.viewTo||ge.lastWrapHeight!=se.wrapperHeight||ge.lastWrapWidth!=se.wrapperWidth;rt(ie,Ne,_e),ge.viewOffset=Jo(fn(ie.doc,ge.viewFrom)),ie.display.mover.style.top=ge.viewOffset+"px";var ct=gt(ie);if(!ht&&ct==0&&!se.force&&ge.renderedView==ge.view&&(ge.updateLineNumbers==null||ge.updateLineNumbers>=ge.viewTo))return!1;var kt=Oi(ie);return ct>4&&(ge.lineDiv.style.display="none"),cr(ie,ge.updateLineNumbers,se.dims),ct>4&&(ge.lineDiv.style.display=""),ge.renderedView=ge.view,Bi(kt),Te(ge.cursorDiv),Te(ge.selectionDiv),ge.gutters.style.height=ge.sizer.style.minHeight=0,ht&&(ge.lastWrapHeight=se.wrapperHeight,ge.lastWrapWidth=se.wrapperWidth,yi(ie,400)),ge.updateLineNumbers=null,!0}function Ti(ie,se){for(var ge=se.viewport,fe=!0;;fe=!1){if(!fe||!ie.options.lineWrapping||se.oldDisplayWidth==wl(ie)){if(ge&&ge.top!=null&&(ge={top:Math.min(ie.doc.height+hl(ie.display)-Yu(ie),ge.top)}),se.visible=ei(ie.display,ie.doc,ge),se.visible.from>=ie.display.viewFrom&&se.visible.to<=ie.display.viewTo)break}else fe&&(se.visible=ei(ie.display,ie.doc,ge));if(!ir(ie,se))break;xi(ie);var Se=Ba(ie);$t(ie),wa(ie,Se),so(ie,Se),se.force=!1}se.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(se.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function pr(ie,se){var ge=new gi(ie,se);if(ir(ie,ge)){xi(ie),Ti(ie,ge);var fe=Ba(ie);$t(ie),wa(ie,fe),so(ie,fe),ge.finish()}}function cr(ie,se,ge){var fe=ie.display,Se=ie.options.lineNumbers,Ne=fe.lineDiv,_e=Ne.firstChild;function ht(Gi){var Yi=Gi.nextSibling;return be&&ue&&ie.display.currentWheelTarget==Gi?Gi.style.display="none":Gi.parentNode.removeChild(Gi),Yi}for(var ct=fe.view,kt=fe.viewFrom,bn=0;bn<ct.length;bn++){var jt=ct[bn];if(!jt.hidden)if(!jt.node||jt.node.parentNode!=Ne){var ni=zl(ie,jt,kt,ge);Ne.insertBefore(ni,_e)}else{for(;_e!=jt.node;)_e=ht(_e);var Xn=Se&&se!=null&&se<=kt&&jt.lineNumber;jt.changes&&(Et(jt.changes,"gutter")>-1&&(Xn=!1),io(ie,jt,kt,ge)),Xn&&(Te(jt.lineNumber),jt.lineNumber.appendChild(document.createTextNode(Li(ie.options,kt)))),_e=jt.node.nextSibling}kt+=jt.size}for(;_e;)_e=ht(_e)}function xr(ie){var se=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=se+"px"}function so(ie,se){ie.display.sizer.style.minHeight=se.docHeight+"px",ie.display.heightForcer.style.top=se.docHeight+"px",ie.display.gutters.style.height=se.docHeight+ie.display.barHeight+fl(ie)+"px"}function Eo(ie){var se=ie.display,ge=se.view;if(!(!se.alignWidgets&&(!se.gutters.firstChild||!ie.options.fixedGutter))){for(var fe=Td(se)-se.scroller.scrollLeft+ie.doc.scrollLeft,Se=se.gutters.offsetWidth,Ne=fe+"px",_e=0;_e<ge.length;_e++)if(!ge[_e].hidden){ie.options.fixedGutter&&(ge[_e].gutter&&(ge[_e].gutter.style.left=Ne),ge[_e].gutterBackground&&(ge[_e].gutterBackground.style.left=Ne));var ht=ge[_e].alignable;if(ht)for(var ct=0;ct<ht.length;ct++)ht[ct].style.left=Ne}ie.options.fixedGutter&&(se.gutters.style.left=fe+Se+"px")}}function Mr(ie){if(!ie.options.lineNumbers)return!1;var se=ie.doc,ge=Li(ie.options,se.first+se.size-1),fe=ie.display;if(ge.length!=fe.lineNumChars){var Se=fe.measure.appendChild(ze("div",[ze("div",ge)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ne=Se.firstChild.offsetWidth,_e=Se.offsetWidth-Ne;return fe.lineGutter.style.width="",fe.lineNumInnerWidth=Math.max(Ne,fe.lineGutter.offsetWidth-_e)+1,fe.lineNumWidth=fe.lineNumInnerWidth+_e,fe.lineNumChars=fe.lineNumInnerWidth?ge.length:-1,fe.lineGutter.style.width=fe.lineNumWidth+"px",xr(ie.display),!0}return!1}function Zr(ie,se){for(var ge=[],fe=!1,Se=0;Se<ie.length;Se++){var Ne=ie[Se],_e=null;if(typeof Ne!="string"&&(_e=Ne.style,Ne=Ne.className),Ne=="CodeMirror-linenumbers")if(se)fe=!0;else continue;ge.push({className:Ne,style:_e})}return se&&!fe&&ge.push({className:"CodeMirror-linenumbers",style:null}),ge}function jo(ie){var se=ie.gutters,ge=ie.gutterSpecs;Te(se),ie.lineGutter=null;for(var fe=0;fe<ge.length;++fe){var Se=ge[fe],Ne=Se.className,_e=Se.style,ht=se.appendChild(ze("div",null,"CodeMirror-gutter "+Ne));_e&&(ht.style.cssText=_e),Ne=="CodeMirror-linenumbers"&&(ie.lineGutter=ht,ht.style.width=(ie.lineNumWidth||1)+"px")}se.style.display=ge.length?"":"none",xr(ie)}function Pr(ie){jo(ie.display),vs(ie),Eo(ie)}function _r(ie,se,ge,fe){var Se=this;this.input=ge,Se.scrollbarFiller=ze("div",null,"CodeMirror-scrollbar-filler"),Se.scrollbarFiller.setAttribute("cm-not-content","true"),Se.gutterFiller=ze("div",null,"CodeMirror-gutter-filler"),Se.gutterFiller.setAttribute("cm-not-content","true"),Se.lineDiv=Ke("div",null,"CodeMirror-code"),Se.selectionDiv=ze("div",null,null,"position: relative; z-index: 1"),Se.cursorDiv=ze("div",null,"CodeMirror-cursors"),Se.measure=ze("div",null,"CodeMirror-measure"),Se.lineMeasure=ze("div",null,"CodeMirror-measure"),Se.lineSpace=Ke("div",[Se.measure,Se.lineMeasure,Se.selectionDiv,Se.cursorDiv,Se.lineDiv],null,"position: relative; outline: none");var Ne=Ke("div",[Se.lineSpace],"CodeMirror-lines");Se.mover=ze("div",[Ne],null,"position: relative"),Se.sizer=ze("div",[Se.mover],"CodeMirror-sizer"),Se.sizerWidth=null,Se.heightForcer=ze("div",null,null,"position: absolute; height: "+ln+"px; width: 1px;"),Se.gutters=ze("div",null,"CodeMirror-gutters"),Se.lineGutter=null,Se.scroller=ze("div",[Se.sizer,Se.heightForcer,Se.gutters],"CodeMirror-scroll"),Se.scroller.setAttribute("tabIndex","-1"),Se.wrapper=ze("div",[Se.scrollbarFiller,Se.gutterFiller,Se.scroller],"CodeMirror"),We&&it<8&&(Se.gutters.style.zIndex=-1,Se.scroller.style.paddingRight=0),!be&&!(pe&&te)&&(Se.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(Se.wrapper):ie(Se.wrapper)),Se.viewFrom=Se.viewTo=se.first,Se.reportedViewFrom=Se.reportedViewTo=se.first,Se.view=[],Se.renderedView=null,Se.externalMeasured=null,Se.viewOffset=0,Se.lastWrapHeight=Se.lastWrapWidth=0,Se.updateLineNumbers=null,Se.nativeBarWidth=Se.barHeight=Se.barWidth=0,Se.scrollbarsClipped=!1,Se.lineNumWidth=Se.lineNumInnerWidth=Se.lineNumChars=null,Se.alignWidgets=!1,Se.cachedCharWidth=Se.cachedTextHeight=Se.cachedPaddingH=null,Se.maxLine=null,Se.maxLineLength=0,Se.maxLineChanged=!1,Se.wheelDX=Se.wheelDY=Se.wheelStartX=Se.wheelStartY=null,Se.shift=!1,Se.selForContextMenu=null,Se.activeTouch=null,Se.gutterSpecs=Zr(fe.gutters,fe.lineNumbers),jo(Se),ge.init(Se)}var Lr=0,qi=null;We?qi=-.53:pe?qi=15:vt?qi=-.7:tt&&(qi=-1/3);function mr(ie){var se=ie.wheelDeltaX,ge=ie.wheelDeltaY;return se==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(se=ie.detail),ge==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ge=ie.detail:ge==null&&(ge=ie.wheelDelta),{x:se,y:ge}}function Qr(ie){var se=mr(ie);return se.x*=qi,se.y*=qi,se}function bo(ie,se){var ge=mr(se),fe=ge.x,Se=ge.y,Ne=ie.display,_e=Ne.scroller,ht=_e.scrollWidth>_e.clientWidth,ct=_e.scrollHeight>_e.clientHeight;if(fe&&ht||Se&&ct){if(Se&&ue&&be){e:for(var kt=se.target,bn=Ne.view;kt!=_e;kt=kt.parentNode)for(var jt=0;jt<bn.length;jt++)if(bn[jt].node==kt){ie.display.currentWheelTarget=kt;break e}}if(fe&&!pe&&!Je&&qi!=null){Se&&ct&&va(ie,Math.max(0,_e.scrollTop+Se*qi)),za(ie,Math.max(0,_e.scrollLeft+fe*qi)),(!Se||Se&&ct)&&Pi(se),Ne.wheelStartX=null;return}if(Se&&qi!=null){var ni=Se*qi,Xn=ie.doc.scrollTop,Gi=Xn+Ne.wrapper.clientHeight;ni<0?Xn=Math.max(0,Xn+ni-50):Gi=Math.min(ie.doc.height,Gi+ni+50),pr(ie,{top:Xn,bottom:Gi})}Lr<20&&(Ne.wheelStartX==null?(Ne.wheelStartX=_e.scrollLeft,Ne.wheelStartY=_e.scrollTop,Ne.wheelDX=fe,Ne.wheelDY=Se,setTimeout(function(){if(Ne.wheelStartX!=null){var Yi=_e.scrollLeft-Ne.wheelStartX,dr=_e.scrollTop-Ne.wheelStartY,jr=dr&&Ne.wheelDY&&dr/Ne.wheelDY||Yi&&Ne.wheelDX&&Yi/Ne.wheelDX;Ne.wheelStartX=Ne.wheelStartY=null,jr&&(qi=(qi*Lr+jr)/(Lr+1),++Lr)}},200)):(Ne.wheelDX+=fe,Ne.wheelDY+=Se))}}var Mo=function(ie,se){this.ranges=ie,this.primIndex=se};Mo.prototype.primary=function(){return this.ranges[this.primIndex]},Mo.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var se=0;se<this.ranges.length;se++){var ge=this.ranges[se],fe=ie.ranges[se];if(!on(ge.anchor,fe.anchor)||!on(ge.head,fe.head))return!1}return!0},Mo.prototype.deepCopy=function(){for(var ie=[],se=0;se<this.ranges.length;se++)ie[se]=new vr(Sn(this.ranges[se].anchor),Sn(this.ranges[se].head));return new Mo(ie,this.primIndex)},Mo.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Mo.prototype.contains=function(ie,se){se||(se=ie);for(var ge=0;ge<this.ranges.length;ge++){var fe=this.ranges[ge];if(Nn(se,fe.from())>=0&&Nn(ie,fe.to())<=0)return ge}return-1};var vr=function(ie,se){this.anchor=ie,this.head=se};vr.prototype.from=function(){return En(this.anchor,this.head)},vr.prototype.to=function(){return Fn(this.anchor,this.head)},vr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ho(ie,se,ge){var fe=ie&&ie.options.selectionsMayTouch,Se=se[ge];se.sort(function(ni,Xn){return Nn(ni.from(),Xn.from())}),ge=Et(se,Se);for(var Ne=1;Ne<se.length;Ne++){var _e=se[Ne],ht=se[Ne-1],ct=Nn(ht.to(),_e.from());if(fe&&!_e.empty()?ct>0:ct>=0){var kt=En(ht.from(),_e.from()),bn=Fn(ht.to(),_e.to()),jt=ht.empty()?_e.from()==_e.head:ht.from()==ht.head;Ne<=ge&&--ge,se.splice(--Ne,2,new vr(jt?bn:kt,jt?kt:bn))}}return new Mo(se,ge)}function Xo(ie,se){return new Mo([new vr(ie,se||ie)],0)}function ea(ie){return ie.text?qt(ie.from.line+ie.text.length-1,Lt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function $o(ie,se){if(Nn(ie,se.from)<0)return ie;if(Nn(ie,se.to)<=0)return ea(se);var ge=ie.line+se.text.length-(se.to.line-se.from.line)-1,fe=ie.ch;return ie.line==se.to.line&&(fe+=ea(se).ch-se.to.ch),qt(ge,fe)}function Xa(ie,se){for(var ge=[],fe=0;fe<ie.sel.ranges.length;fe++){var Se=ie.sel.ranges[fe];ge.push(new vr($o(Se.anchor,se),$o(Se.head,se)))}return Ho(ie.cm,ge,ie.sel.primIndex)}function ga(ie,se,ge){return ie.line==se.line?qt(ge.line,ie.ch-se.ch+ge.ch):qt(ge.line+(ie.line-se.line),ie.ch)}function Ro(ie,se,ge){for(var fe=[],Se=qt(ie.first,0),Ne=Se,_e=0;_e<se.length;_e++){var ht=se[_e],ct=ga(ht.from,Se,Ne),kt=ga(ea(ht),Se,Ne);if(Se=ht.to,Ne=kt,ge=="around"){var bn=ie.sel.ranges[_e],jt=Nn(bn.head,bn.anchor)<0;fe[_e]=new vr(jt?kt:ct,jt?ct:kt)}else fe[_e]=new vr(ct,ct)}return new Mo(fe,ie.sel.primIndex)}function po(ie){ie.doc.mode=nn(ie.options,ie.doc.modeOption),Bo(ie)}function Bo(ie){ie.doc.iter(function(se){se.stateAfter&&(se.stateAfter=null),se.styles&&(se.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,yi(ie,100),ie.state.modeGen++,ie.curOp&&vs(ie)}function Ga(ie,se){return se.from.ch==0&&se.to.ch==0&&Lt(se.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Ta(ie,se,ge,fe){function Se(wo){return ge?ge[wo]:null}function Ne(wo,no,Io){xa(wo,no,Io,fe),Yn(wo,"change",wo,se)}function _e(wo,no){for(var Io=[],da=wo;da<no;++da)Io.push(new ia(kt[da],Se(da),fe));return Io}var ht=se.from,ct=se.to,kt=se.text,bn=fn(ie,ht.line),jt=fn(ie,ct.line),ni=Lt(kt),Xn=Se(kt.length-1),Gi=ct.line-ht.line;if(se.full)ie.insert(0,_e(0,kt.length)),ie.remove(kt.length,ie.size-kt.length);else if(Ga(ie,se)){var Yi=_e(0,kt.length-1);Ne(jt,jt.text,Xn),Gi&&ie.remove(ht.line,Gi),Yi.length&&ie.insert(ht.line,Yi)}else if(bn==jt)if(kt.length==1)Ne(bn,bn.text.slice(0,ht.ch)+ni+bn.text.slice(ct.ch),Xn);else{var dr=_e(1,kt.length-1);dr.push(new ia(ni+bn.text.slice(ct.ch),Xn,fe)),Ne(bn,bn.text.slice(0,ht.ch)+kt[0],Se(0)),ie.insert(ht.line+1,dr)}else if(kt.length==1)Ne(bn,bn.text.slice(0,ht.ch)+kt[0]+jt.text.slice(ct.ch),Se(0)),ie.remove(ht.line+1,Gi);else{Ne(bn,bn.text.slice(0,ht.ch)+kt[0],Se(0)),Ne(jt,ni+jt.text.slice(ct.ch),Xn);var jr=_e(1,kt.length-1);Gi>1&&ie.remove(ht.line+1,Gi-1),ie.insert(ht.line+1,jr)}Yn(ie,"change",ie,se)}function es(ie,se,ge){function fe(Se,Ne,_e){if(Se.linked)for(var ht=0;ht<Se.linked.length;++ht){var ct=Se.linked[ht];if(ct.doc!=Ne){var kt=_e&&ct.sharedHist;ge&&!kt||(se(ct.doc,kt),fe(ct.doc,Se,kt))}}}fe(ie,null,!0)}function To(ie,se){if(se.cm)throw new Error("This document is already in use.");ie.doc=se,se.cm=ie,ko(ie),po(ie),Po(ie),ie.options.lineWrapping||na(ie),ie.options.mode=se.modeOption,vs(ie)}function Po(ie){(ie.doc.direction=="rtl"?Ft:Le)(ie.display.lineDiv,"CodeMirror-rtl")}function zo(ie){un(ie,function(){Po(ie),vs(ie)})}function co(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function Ur(ie,se){var ge={from:Sn(se.from),to:ea(se),text:yn(ie,se.from,se.to)};return yl(ie,ge,se.from.line,se.to.line+1),es(ie,function(fe){return yl(fe,ge,se.from.line,se.to.line+1)},!0),ge}function Hi(ie){for(;ie.length;){var se=Lt(ie);if(se.ranges)ie.pop();else break}}function Tr(ie,se){if(se)return Hi(ie.done),Lt(ie.done);if(ie.done.length&&!Lt(ie.done).ranges)return Lt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Lt(ie.done)}function Ko(ie,se,ge,fe){var Se=ie.history;Se.undone.length=0;var Ne=+new Date,_e,ht;if((Se.lastOp==fe||Se.lastOrigin==se.origin&&se.origin&&(se.origin.charAt(0)=="+"&&Se.lastModTime>Ne-(ie.cm?ie.cm.options.historyEventDelay:500)||se.origin.charAt(0)=="*"))&&(_e=Tr(Se,Se.lastOp==fe)))ht=Lt(_e.changes),Nn(se.from,se.to)==0&&Nn(se.from,ht.to)==0?ht.to=ea(se):_e.changes.push(Ur(ie,se));else{var ct=Lt(Se.done);for((!ct||!ct.ranges)&&zs(ie.sel,Se.done),_e={changes:[Ur(ie,se)],generation:Se.generation},Se.done.push(_e);Se.done.length>Se.undoDepth;)Se.done.shift(),Se.done[0].ranges||Se.done.shift()}Se.done.push(ge),Se.generation=++Se.maxGeneration,Se.lastModTime=Se.lastSelTime=Ne,Se.lastOp=Se.lastSelOp=fe,Se.lastOrigin=Se.lastSelOrigin=se.origin,ht||wt(ie,"historyAdded")}function ua(ie,se,ge,fe){var Se=se.charAt(0);return Se=="*"||Se=="+"&&ge.ranges.length==fe.ranges.length&&ge.somethingSelected()==fe.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function il(ie,se,ge,fe){var Se=ie.history,Ne=fe&&fe.origin;ge==Se.lastSelOp||Ne&&Se.lastSelOrigin==Ne&&(Se.lastModTime==Se.lastSelTime&&Se.lastOrigin==Ne||ua(ie,Ne,Lt(Se.done),se))?Se.done[Se.done.length-1]=se:zs(se,Se.done),Se.lastSelTime=+new Date,Se.lastSelOrigin=Ne,Se.lastSelOp=ge,fe&&fe.clearRedo!==!1&&Hi(Se.undone)}function zs(ie,se){var ge=Lt(se);ge&&ge.ranges&&ge.equals(ie)||se.push(ie)}function yl(ie,se,ge,fe){var Se=se["spans_"+ie.id],Ne=0;ie.iter(Math.max(ie.first,ge),Math.min(ie.first+ie.size,fe),function(_e){_e.markedSpans&&((Se||(Se=se["spans_"+ie.id]={}))[Ne]=_e.markedSpans),++Ne})}function Da(ie){if(!ie)return null;for(var se,ge=0;ge<ie.length;++ge)ie[ge].marker.explicitlyCleared?se||(se=ie.slice(0,ge)):se&&se.push(ie[ge]);return se?se.length?se:null:ie}function Ka(ie,se){var ge=se["spans_"+ie.id];if(!ge)return null;for(var fe=[],Se=0;Se<se.text.length;++Se)fe.push(Da(ge[Se]));return fe}function Fo(ie,se){var ge=Ka(ie,se),fe=qn(ie,se);if(!ge)return fe;if(!fe)return ge;for(var Se=0;Se<ge.length;++Se){var Ne=ge[Se],_e=fe[Se];if(Ne&&_e)e:for(var ht=0;ht<_e.length;++ht){for(var ct=_e[ht],kt=0;kt<Ne.length;++kt)if(Ne[kt].marker==ct.marker)continue e;Ne.push(ct)}else _e&&(ge[Se]=_e)}return ge}function Gs(ie,se,ge){for(var fe=[],Se=0;Se<ie.length;++Se){var Ne=ie[Se];if(Ne.ranges){fe.push(ge?Mo.prototype.deepCopy.call(Ne):Ne);continue}var _e=Ne.changes,ht=[];fe.push({changes:ht});for(var ct=0;ct<_e.length;++ct){var kt=_e[ct],bn=void 0;if(ht.push({from:kt.from,to:kt.to,text:kt.text}),se)for(var jt in kt)(bn=jt.match(/^spans_(\d+)$/))&&Et(se,Number(bn[1]))>-1&&(Lt(ht)[jt]=kt[jt],delete kt[jt])}}return fe}function Sl(ie,se,ge,fe){if(fe){var Se=ie.anchor;if(ge){var Ne=Nn(se,Se)<0;Ne!=Nn(ge,Se)<0?(Se=se,se=ge):Ne!=Nn(se,ge)<0&&(se=ge)}return new vr(Se,se)}else return new vr(ge||se,se)}function ja(ie,se,ge,fe,Se){Se==null&&(Se=ie.cm&&(ie.cm.display.shift||ie.extend)),os(ie,new Mo([Sl(ie.sel.primary(),se,ge,Se)],0),fe)}function _a(ie,se,ge){for(var fe=[],Se=ie.cm&&(ie.cm.display.shift||ie.extend),Ne=0;Ne<ie.sel.ranges.length;Ne++)fe[Ne]=Sl(ie.sel.ranges[Ne],se[Ne],null,Se);var _e=Ho(ie.cm,fe,ie.sel.primIndex);os(ie,_e,ge)}function ts(ie,se,ge,fe){var Se=ie.sel.ranges.slice(0);Se[se]=ge,os(ie,Ho(ie.cm,Se,ie.sel.primIndex),fe)}function ws(ie,se,ge,fe){os(ie,Xo(se,ge),fe)}function Ks(ie,se,ge){var fe={ranges:se.ranges,update:function(Se){this.ranges=[];for(var Ne=0;Ne<Se.length;Ne++)this.ranges[Ne]=new vr(Zn(ie,Se[Ne].anchor),Zn(ie,Se[Ne].head))},origin:ge&&ge.origin};return wt(ie,"beforeSelectionChange",ie,fe),ie.cm&&wt(ie.cm,"beforeSelectionChange",ie.cm,fe),fe.ranges!=se.ranges?Ho(ie.cm,fe.ranges,fe.ranges.length-1):se}function ya(ie,se,ge){var fe=ie.history.done,Se=Lt(fe);Se&&Se.ranges?(fe[fe.length-1]=se,_s(ie,se,ge)):os(ie,se,ge)}function os(ie,se,ge){_s(ie,se,ge),il(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ge)}function _s(ie,se,ge){(In(ie,"beforeSelectionChange")||ie.cm&&In(ie.cm,"beforeSelectionChange"))&&(se=Ks(ie,se,ge));var fe=ge&&ge.bias||(Nn(se.primary().head,ie.sel.primary().head)<0?-1:1);Va(ie,Ls(ie,se,fe,!0)),!(ge&&ge.scroll===!1)&&ie.cm&&ao(ie.cm)}function Va(ie,se){se.equals(ie.sel)||(ie.sel=se,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,Pn(ie.cm)),Yn(ie,"cursorActivity",ie))}function Oo(ie){Va(ie,Ls(ie,ie.sel,null,!1))}function Ls(ie,se,ge,fe){for(var Se,Ne=0;Ne<se.ranges.length;Ne++){var _e=se.ranges[Ne],ht=se.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Ne],ct=Mu(ie,_e.anchor,ht&&ht.anchor,ge,fe),kt=Mu(ie,_e.head,ht&&ht.head,ge,fe);(Se||ct!=_e.anchor||kt!=_e.head)&&(Se||(Se=se.ranges.slice(0,Ne)),Se[Ne]=new vr(ct,kt))}return Se?Ho(ie.cm,Se,se.primIndex):se}function Vs(ie,se,ge,fe,Se){var Ne=fn(ie,se.line);if(Ne.markedSpans)for(var _e=0;_e<Ne.markedSpans.length;++_e){var ht=Ne.markedSpans[_e],ct=ht.marker,kt="selectLeft"in ct?!ct.selectLeft:ct.inclusiveLeft,bn="selectRight"in ct?!ct.selectRight:ct.inclusiveRight;if((ht.from==null||(kt?ht.from<=se.ch:ht.from<se.ch))&&(ht.to==null||(bn?ht.to>=se.ch:ht.to>se.ch))){if(Se&&(wt(ct,"beforeCursorEnter"),ct.explicitlyCleared))if(Ne.markedSpans){--_e;continue}else break;if(!ct.atomic)continue;if(ge){var jt=ct.find(fe<0?1:-1),ni=void 0;if((fe<0?bn:kt)&&(jt=su(ie,jt,-fe,jt&&jt.line==se.line?Ne:null)),jt&&jt.line==se.line&&(ni=Nn(jt,ge))&&(fe<0?ni<0:ni>0))return Vs(ie,jt,se,fe,Se)}var Xn=ct.find(fe<0?-1:1);return(fe<0?kt:bn)&&(Xn=su(ie,Xn,fe,Xn.line==se.line?Ne:null)),Xn?Vs(ie,Xn,se,fe,Se):null}}return se}function Mu(ie,se,ge,fe,Se){var Ne=fe||1,_e=Vs(ie,se,ge,Ne,Se)||!Se&&Vs(ie,se,ge,Ne,!0)||Vs(ie,se,ge,-Ne,Se)||!Se&&Vs(ie,se,ge,-Ne,!0);return _e||(ie.cantEdit=!0,qt(ie.first,0))}function su(ie,se,ge,fe){return ge<0&&se.ch==0?se.line>ie.first?Zn(ie,qt(se.line-1)):null:ge>0&&se.ch==(fe||fn(ie,se.line)).text.length?se.line<ie.first+ie.size-1?qt(se.line+1,0):null:new qt(se.line,se.ch+ge)}function Ja(ie){ie.setSelection(qt(ie.firstLine(),0),qt(ie.lastLine()),xt)}function xl(ie,se,ge){var fe={canceled:!1,from:se.from,to:se.to,text:se.text,origin:se.origin,cancel:function(){return fe.canceled=!0}};return ge&&(fe.update=function(Se,Ne,_e,ht){Se&&(fe.from=Zn(ie,Se)),Ne&&(fe.to=Zn(ie,Ne)),_e&&(fe.text=_e),ht!==void 0&&(fe.origin=ht)}),wt(ie,"beforeChange",ie,fe),ie.cm&&wt(ie.cm,"beforeChange",ie.cm,fe),fe.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:fe.from,to:fe.to,text:fe.text,origin:fe.origin}}function ys(ie,se,ge){if(ie.cm){if(!ie.cm.curOp)return jn(ie.cm,ys)(ie,se,ge);if(ie.cm.state.suppressEdits)return}if(!((In(ie,"beforeChange")||ie.cm&&In(ie.cm,"beforeChange"))&&(se=xl(ie,se,!0),!se))){var fe=Jr&&!ge&&Sr(ie,se.from,se.to);if(fe)for(var Se=fe.length-1;Se>=0;--Se)gs(ie,{from:fe[Se].from,to:fe[Se].to,text:Se?[""]:se.text,origin:se.origin});else gs(ie,se)}}function gs(ie,se){if(!(se.text.length==1&&se.text[0]==""&&Nn(se.from,se.to)==0)){var ge=Xa(ie,se);Ko(ie,se,ge,ie.cm?ie.cm.curOp.id:NaN),Yl(ie,se,ge,qn(ie,se));var fe=[];es(ie,function(Se,Ne){!Ne&&Et(fe,Se.history)==-1&&(as(Se.history,se),fe.push(Se.history)),Yl(Se,se,null,qn(Se,se))})}}function mu(ie,se,ge){var fe=ie.cm&&ie.cm.state.suppressEdits;if(!(fe&&!ge)){for(var Se=ie.history,Ne,_e=ie.sel,ht=se=="undo"?Se.done:Se.undone,ct=se=="undo"?Se.undone:Se.done,kt=0;kt<ht.length&&(Ne=ht[kt],!(ge?Ne.ranges&&!Ne.equals(ie.sel):!Ne.ranges));kt++);if(kt!=ht.length){for(Se.lastOrigin=Se.lastSelOrigin=null;;)if(Ne=ht.pop(),Ne.ranges){if(zs(Ne,ct),ge&&!Ne.equals(ie.sel)){os(ie,Ne,{clearRedo:!1});return}_e=Ne}else if(fe){ht.push(Ne);return}else break;var bn=[];zs(_e,ct),ct.push({changes:bn,generation:Se.generation}),Se.generation=Ne.generation||++Se.maxGeneration;for(var jt=In(ie,"beforeChange")||ie.cm&&In(ie.cm,"beforeChange"),ni=function(Yi){var dr=Ne.changes[Yi];if(dr.origin=se,jt&&!xl(ie,dr,!1))return ht.length=0,{};bn.push(Ur(ie,dr));var jr=Yi?Xa(ie,dr):Lt(ht);Yl(ie,dr,jr,Fo(ie,dr)),!Yi&&ie.cm&&ie.cm.scrollIntoView({from:dr.from,to:ea(dr)});var wo=[];es(ie,function(no,Io){!Io&&Et(wo,no.history)==-1&&(as(no.history,dr),wo.push(no.history)),Yl(no,dr,null,Fo(no,dr))})},Xn=Ne.changes.length-1;Xn>=0;--Xn){var Gi=ni(Xn);if(Gi)return Gi.v}}}}function fc(ie,se){if(se!=0&&(ie.first+=se,ie.sel=new Mo(Un(ie.sel.ranges,function(Se){return new vr(qt(Se.anchor.line+se,Se.anchor.ch),qt(Se.head.line+se,Se.head.ch))}),ie.sel.primIndex),ie.cm)){vs(ie.cm,ie.first,ie.first-se,se);for(var ge=ie.cm.display,fe=ge.viewFrom;fe<ge.viewTo;fe++)ma(ie.cm,fe,"gutter")}}function Yl(ie,se,ge,fe){if(ie.cm&&!ie.cm.curOp)return jn(ie.cm,Yl)(ie,se,ge,fe);if(se.to.line<ie.first){fc(ie,se.text.length-1-(se.to.line-se.from.line));return}if(!(se.from.line>ie.lastLine())){if(se.from.line<ie.first){var Se=se.text.length-1-(ie.first-se.from.line);fc(ie,Se),se={from:qt(ie.first,0),to:qt(se.to.line+Se,se.to.ch),text:[Lt(se.text)],origin:se.origin}}var Ne=ie.lastLine();se.to.line>Ne&&(se={from:se.from,to:qt(Ne,fn(ie,Ne).text.length),text:[se.text[0]],origin:se.origin}),se.removed=yn(ie,se.from,se.to),ge||(ge=Xa(ie,se)),ie.cm?Ju(ie.cm,se,fe):Ta(ie,se,fe),_s(ie,ge,xt),ie.cantEdit&&Mu(ie,qt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Ju(ie,se,ge){var fe=ie.doc,Se=ie.display,Ne=se.from,_e=se.to,ht=!1,ct=Ne.line;ie.options.lineWrapping||(ct=at(Gr(fn(fe,Ne.line))),fe.iter(ct,_e.line+1,function(Xn){if(Xn==Se.maxLine)return ht=!0,!0})),fe.sel.contains(se.from,se.to)>-1&&Pn(ie),Ta(fe,se,ge,Os(ie)),ie.options.lineWrapping||(fe.iter(ct,Ne.line+se.text.length,function(Xn){var Gi=Fa(Xn);Gi>Se.maxLineLength&&(Se.maxLine=Xn,Se.maxLineLength=Gi,Se.maxLineChanged=!0,ht=!1)}),ht&&(ie.curOp.updateMaxLine=!0)),Ui(fe,Ne.line),yi(ie,400);var kt=se.text.length-(_e.line-Ne.line)-1;se.full?vs(ie):Ne.line==_e.line&&se.text.length==1&&!Ga(ie.doc,se)?ma(ie,Ne.line,"text"):vs(ie,Ne.line,_e.line+1,kt);var bn=In(ie,"changes"),jt=In(ie,"change");if(jt||bn){var ni={from:Ne,to:_e,text:se.text,removed:se.removed,origin:se.origin};jt&&Yn(ie,"change",ie,ni),bn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(ni)}ie.display.selForContextMenu=null}function Qu(ie,se,ge,fe,Se){var Ne;fe||(fe=ge),Nn(fe,ge)<0&&(Ne=[fe,ge],ge=Ne[0],fe=Ne[1]),typeof se=="string"&&(se=ie.splitLines(se)),ys(ie,{from:ge,to:fe,text:se,origin:Se})}function lu(ie,se,ge,fe){ge<ie.line?ie.line+=fe:se<ie.line&&(ie.line=se,ie.ch=0)}function Oa(ie,se,ge,fe){for(var Se=0;Se<ie.length;++Se){var Ne=ie[Se],_e=!0;if(Ne.ranges){Ne.copied||(Ne=ie[Se]=Ne.deepCopy(),Ne.copied=!0);for(var ht=0;ht<Ne.ranges.length;ht++)lu(Ne.ranges[ht].anchor,se,ge,fe),lu(Ne.ranges[ht].head,se,ge,fe);continue}for(var ct=0;ct<Ne.changes.length;++ct){var kt=Ne.changes[ct];if(ge<kt.from.line)kt.from=qt(kt.from.line+fe,kt.from.ch),kt.to=qt(kt.to.line+fe,kt.to.ch);else if(se<=kt.to.line){_e=!1;break}}_e||(ie.splice(0,Se+1),Se=0)}}function as(ie,se){var ge=se.from.line,fe=se.to.line,Se=se.text.length-(fe-ge)-1;Oa(ie.done,ge,fe,Se),Oa(ie.undone,ge,fe,Se)}function Js(ie,se,ge,fe){var Se=se,Ne=se;return typeof se=="number"?Ne=fn(ie,kn(ie,se)):Se=at(se),Se==null?null:(fe(Ne,Se)&&ie.cm&&ma(ie.cm,Se,ge),Ne)}function ps(ie){this.lines=ie,this.parent=null;for(var se=0,ge=0;ge<ie.length;++ge)ie[ge].parent=this,se+=ie[ge].height;this.height=se}ps.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,se){for(var ge=ie,fe=ie+se;ge<fe;++ge){var Se=this.lines[ge];this.height-=Se.height,fo(Se),Yn(Se,"delete")}this.lines.splice(ie,se)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,se,ge){this.height+=ge,this.lines=this.lines.slice(0,ie).concat(se).concat(this.lines.slice(ie));for(var fe=0;fe<se.length;++fe)se[fe].parent=this},iterN:function(ie,se,ge){for(var fe=ie+se;ie<fe;++ie)if(ge(this.lines[ie]))return!0}};function Ia(ie){this.children=ie;for(var se=0,ge=0,fe=0;fe<ie.length;++fe){var Se=ie[fe];se+=Se.chunkSize(),ge+=Se.height,Se.parent=this}this.size=se,this.height=ge,this.parent=null}Ia.prototype={chunkSize:function(){return this.size},removeInner:function(ie,se){this.size-=se;for(var ge=0;ge<this.children.length;++ge){var fe=this.children[ge],Se=fe.chunkSize();if(ie<Se){var Ne=Math.min(se,Se-ie),_e=fe.height;if(fe.removeInner(ie,Ne),this.height-=_e-fe.height,Se==Ne&&(this.children.splice(ge--,1),fe.parent=null),(se-=Ne)==0)break;ie=0}else ie-=Se}if(this.size-se<25&&(this.children.length>1||!(this.children[0]instanceof ps))){var ht=[];this.collapse(ht),this.children=[new ps(ht)],this.children[0].parent=this}},collapse:function(ie){for(var se=0;se<this.children.length;++se)this.children[se].collapse(ie)},insertInner:function(ie,se,ge){this.size+=se.length,this.height+=ge;for(var fe=0;fe<this.children.length;++fe){var Se=this.children[fe],Ne=Se.chunkSize();if(ie<=Ne){if(Se.insertInner(ie,se,ge),Se.lines&&Se.lines.length>50){for(var _e=Se.lines.length%25+25,ht=_e;ht<Se.lines.length;){var ct=new ps(Se.lines.slice(ht,ht+=25));Se.height-=ct.height,this.children.splice(++fe,0,ct),ct.parent=this}Se.lines=Se.lines.slice(0,_e),this.maybeSpill()}break}ie-=Ne}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var se=ie.children.splice(ie.children.length-5,5),ge=new Ia(se);if(ie.parent){ie.size-=ge.size,ie.height-=ge.height;var Se=Et(ie.parent.children,ie);ie.parent.children.splice(Se+1,0,ge)}else{var fe=new Ia(ie.children);fe.parent=ie,ie.children=[fe,ge],ie=fe}ge.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,se,ge){for(var fe=0;fe<this.children.length;++fe){var Se=this.children[fe],Ne=Se.chunkSize();if(ie<Ne){var _e=Math.min(se,Ne-ie);if(Se.iterN(ie,_e,ge))return!0;if((se-=_e)==0)break;ie=0}else ie-=Ne}}};var Qs=function(ie,se,ge){if(ge)for(var fe in ge)ge.hasOwnProperty(fe)&&(this[fe]=ge[fe]);this.doc=ie,this.node=se};Qs.prototype.clear=function(){var ie=this.doc.cm,se=this.line.widgets,ge=this.line,fe=at(ge);if(!(fe==null||!se)){for(var Se=0;Se<se.length;++Se)se[Se]==this&&se.splice(Se--,1);se.length||(ge.widgets=null);var Ne=Ll(this);vn(ge,Math.max(0,ge.height-Ne)),ie&&(un(ie,function(){Bl(ie,ge,-Ne),ma(ie,fe,"widget")}),Yn(ie,"lineWidgetCleared",ie,this,fe))}},Qs.prototype.changed=function(){var ie=this,se=this.height,ge=this.doc.cm,fe=this.line;this.height=null;var Se=Ll(this)-se;Se&&(oi(this.doc,fe)||vn(fe,fe.height+Se),ge&&un(ge,function(){ge.curOp.forceUpdate=!0,Bl(ge,fe,Se),Yn(ge,"lineWidgetChanged",ge,ie,at(fe))}))},$n(Qs);function Bl(ie,se,ge){Jo(se)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&oo(ie,ge)}function Lu(ie,se,ge,fe){var Se=new Qs(ie,ge,fe),Ne=ie.cm;return Ne&&Se.noHScroll&&(Ne.display.alignWidgets=!0),Js(ie,se,"widget",function(_e){var ht=_e.widgets||(_e.widgets=[]);if(Se.insertAt==null?ht.push(Se):ht.splice(Math.min(ht.length-1,Math.max(0,Se.insertAt)),0,Se),Se.line=_e,Ne&&!oi(ie,_e)){var ct=Jo(_e)<ie.scrollTop;vn(_e,_e.height+Ll(Se)),ct&&oo(Ne,Se.height),Ne.curOp.forceUpdate=!0}return!0}),Ne&&Yn(Ne,"lineWidgetAdded",Ne,Se,typeof se=="number"?se:at(se)),Se}var ah=0,cn=function(ie,se){this.lines=[],this.type=se,this.doc=ie,this.id=++ah};cn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,se=ie&&!ie.curOp;if(se&&ka(ie),In(this,"clear")){var ge=this.find();ge&&Yn(this,"clear",ge.from,ge.to)}for(var fe=null,Se=null,Ne=0;Ne<this.lines.length;++Ne){var _e=this.lines[Ne],ht=ha(_e.markedSpans,this);ie&&!this.collapsed?ma(ie,at(_e),"text"):ie&&(ht.to!=null&&(Se=at(_e)),ht.from!=null&&(fe=at(_e))),_e.markedSpans=yo(_e.markedSpans,ht),ht.from==null&&this.collapsed&&!oi(this.doc,_e)&&ie&&vn(_e,hc(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var ct=0;ct<this.lines.length;++ct){var kt=Gr(this.lines[ct]),bn=Fa(kt);bn>ie.display.maxLineLength&&(ie.display.maxLine=kt,ie.display.maxLineLength=bn,ie.display.maxLineChanged=!0)}fe!=null&&ie&&this.collapsed&&vs(ie,fe,Se+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Oo(ie.doc)),ie&&Yn(ie,"markerCleared",ie,this,fe,Se),se&&Rs(ie),this.parent&&this.parent.clear()}},cn.prototype.find=function(ie,se){ie==null&&this.type=="bookmark"&&(ie=1);for(var ge,fe,Se=0;Se<this.lines.length;++Se){var Ne=this.lines[Se],_e=ha(Ne.markedSpans,this);if(_e.from!=null&&(ge=qt(se?Ne:at(Ne),_e.from),ie==-1))return ge;if(_e.to!=null&&(fe=qt(se?Ne:at(Ne),_e.to),ie==1))return fe}return ge&&{from:ge,to:fe}},cn.prototype.changed=function(){var ie=this,se=this.find(-1,!0),ge=this,fe=this.doc.cm;!se||!fe||un(fe,function(){var Se=se.line,Ne=at(se.line),_e=xs(fe,Ne);if(_e&&(El(_e),fe.curOp.selectionChanged=fe.curOp.forceUpdate=!0),fe.curOp.updateMaxLine=!0,!oi(ge.doc,Se)&&ge.height!=null){var ht=ge.height;ge.height=null;var ct=Ll(ge)-ht;ct&&vn(Se,Se.height+ct)}Yn(fe,"markerChanged",fe,ie)})},cn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var se=this.doc.cm.curOp;(!se.maybeHiddenMarkers||Et(se.maybeHiddenMarkers,this)==-1)&&(se.maybeUnhiddenMarkers||(se.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},cn.prototype.detachLine=function(ie){if(this.lines.splice(Et(this.lines,ie),1),!this.lines.length&&this.doc.cm){var se=this.doc.cm.curOp;(se.maybeHiddenMarkers||(se.maybeHiddenMarkers=[])).push(this)}},$n(cn);function Mc(ie,se,ge,fe,Se){if(fe&&fe.shared)return Rh(ie,se,ge,fe,Se);if(ie.cm&&!ie.cm.curOp)return jn(ie.cm,Mc)(ie,se,ge,fe,Se);var Ne=new cn(ie,Se),_e=Nn(se,ge);if(fe&&_t(fe,Ne,!1),_e>0||_e==0&&Ne.clearWhenEmpty!==!1)return Ne;if(Ne.replacedWith&&(Ne.collapsed=!0,Ne.widgetNode=Ke("span",[Ne.replacedWith],"CodeMirror-widget"),fe.handleMouseEvents||Ne.widgetNode.setAttribute("cm-ignore-events","true"),fe.insertLeft&&(Ne.widgetNode.insertLeft=!0)),Ne.collapsed){if(ro(ie,se.line,se,ge,Ne)||se.line!=ge.line&&ro(ie,ge.line,se,ge,Ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");Wn()}Ne.addToHistory&&Ko(ie,{from:se,to:ge,origin:"markText"},ie.sel,NaN);var ht=se.line,ct=ie.cm,kt;if(ie.iter(ht,ge.line+1,function(jt){ct&&Ne.collapsed&&!ct.options.lineWrapping&&Gr(jt)==ct.display.maxLine&&(kt=!0),Ne.collapsed&&ht!=se.line&&vn(jt,0),Ot(jt,new Hr(Ne,ht==se.line?se.ch:null,ht==ge.line?ge.ch:null)),++ht}),Ne.collapsed&&ie.iter(se.line,ge.line+1,function(jt){oi(ie,jt)&&vn(jt,0)}),Ne.clearOnEnter&&pt(Ne,"beforeCursorEnter",function(){return Ne.clear()}),Ne.readOnly&&(Co(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Ne.collapsed&&(Ne.id=++ah,Ne.atomic=!0),ct){if(kt&&(ct.curOp.updateMaxLine=!0),Ne.collapsed)vs(ct,se.line,ge.line+1);else if(Ne.className||Ne.startStyle||Ne.endStyle||Ne.css||Ne.attributes||Ne.title)for(var bn=se.line;bn<=ge.line;bn++)ma(ct,bn,"text");Ne.atomic&&Oo(ct.doc),Yn(ct,"markerAdded",ct,Ne)}return Ne}var gc=function(ie,se){this.markers=ie,this.primary=se;for(var ge=0;ge<ie.length;++ge)ie[ge].parent=this};gc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();Yn(this,"clear")}},gc.prototype.find=function(ie,se){return this.primary.find(ie,se)},$n(gc);function Rh(ie,se,ge,fe,Se){fe=_t(fe),fe.shared=!1;var Ne=[Mc(ie,se,ge,fe,Se)],_e=Ne[0],ht=fe.widgetNode;return es(ie,function(ct){ht&&(fe.widgetNode=ht.cloneNode(!0)),Ne.push(Mc(ct,Zn(ct,se),Zn(ct,ge),fe,Se));for(var kt=0;kt<ct.linked.length;++kt)if(ct.linked[kt].isParent)return;_e=Lt(Ne)}),new gc(Ne,_e)}function vd(ie){return ie.findMarks(qt(ie.first,0),ie.clipPos(qt(ie.lastLine())),function(se){return se.parent})}function Hc(ie,se){for(var ge=0;ge<se.length;ge++){var fe=se[ge],Se=fe.find(),Ne=ie.clipPos(Se.from),_e=ie.clipPos(Se.to);if(Nn(Ne,_e)){var ht=Mc(ie,Ne,_e,fe.primary,fe.primary.type);fe.markers.push(ht),ht.parent=fe}}}function Lc(ie){for(var se=function(fe){var Se=ie[fe],Ne=[Se.primary.doc];es(Se.primary.doc,function(ct){return Ne.push(ct)});for(var _e=0;_e<Se.markers.length;_e++){var ht=Se.markers[_e];Et(Ne,ht.doc)==-1&&(ht.parent=null,Se.markers.splice(_e--,1))}},ge=0;ge<ie.length;ge++)se(ge)}var ff=0,bl=function(ie,se,ge,fe,Se){if(!(this instanceof bl))return new bl(ie,se,ge,fe,Se);ge==null&&(ge=0),Ia.call(this,[new ps([new ia("",null)])]),this.first=ge,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ge;var Ne=qt(ge,0);this.sel=Xo(Ne),this.history=new co(null),this.id=++ff,this.modeOption=se,this.lineSep=fe,this.direction=Se=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Ta(this,{from:Ne,to:Ne,text:ie}),os(this,Xo(Ne),xt)};bl.prototype=Ln(Ia.prototype,{constructor:bl,iter:function(ie,se,ge){ge?this.iterN(ie-this.first,se-ie,ge):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,se){for(var ge=0,fe=0;fe<se.length;++fe)ge+=se[fe].height;this.insertInner(ie-this.first,se,ge)},remove:function(ie,se){this.removeInner(ie-this.first,se)},getValue:function(ie){var se=li(this,this.first,this.first+this.size);return ie===!1?se:se.join(ie||this.lineSeparator())},setValue:Rn(function(ie){var se=qt(this.first,0),ge=this.first+this.size-1;ys(this,{from:se,to:qt(ge,fn(this,ge).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&to(this.cm,0,0),os(this,Xo(se),xt)}),replaceRange:function(ie,se,ge,fe){se=Zn(this,se),ge=ge?Zn(this,ge):se,Qu(this,ie,se,ge,fe)},getRange:function(ie,se,ge){var fe=yn(this,Zn(this,ie),Zn(this,se));return ge===!1?fe:fe.join(ge||this.lineSeparator())},getLine:function(ie){var se=this.getLineHandle(ie);return se&&se.text},getLineHandle:function(ie){if(pi(this,ie))return fn(this,ie)},getLineNumber:function(ie){return at(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=fn(this,ie)),Gr(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Zn(this,ie)},getCursor:function(ie){var se=this.sel.primary(),ge;return ie==null||ie=="head"?ge=se.head:ie=="anchor"?ge=se.anchor:ie=="end"||ie=="to"||ie===!1?ge=se.to():ge=se.from(),ge},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Rn(function(ie,se,ge){ws(this,Zn(this,typeof ie=="number"?qt(ie,se||0):ie),null,ge)}),setSelection:Rn(function(ie,se,ge){ws(this,Zn(this,ie),Zn(this,se||ie),ge)}),extendSelection:Rn(function(ie,se,ge){ja(this,Zn(this,ie),se&&Zn(this,se),ge)}),extendSelections:Rn(function(ie,se){_a(this,si(this,ie),se)}),extendSelectionsBy:Rn(function(ie,se){var ge=Un(this.sel.ranges,ie);_a(this,si(this,ge),se)}),setSelections:Rn(function(ie,se,ge){if(ie.length){for(var fe=[],Se=0;Se<ie.length;Se++)fe[Se]=new vr(Zn(this,ie[Se].anchor),Zn(this,ie[Se].head));se==null&&(se=Math.min(ie.length-1,this.sel.primIndex)),os(this,Ho(this.cm,fe,se),ge)}}),addSelection:Rn(function(ie,se,ge){var fe=this.sel.ranges.slice(0);fe.push(new vr(Zn(this,ie),Zn(this,se||ie))),os(this,Ho(this.cm,fe,fe.length-1),ge)}),getSelection:function(ie){for(var se=this.sel.ranges,ge,fe=0;fe<se.length;fe++){var Se=yn(this,se[fe].from(),se[fe].to());ge=ge?ge.concat(Se):Se}return ie===!1?ge:ge.join(ie||this.lineSeparator())},getSelections:function(ie){for(var se=[],ge=this.sel.ranges,fe=0;fe<ge.length;fe++){var Se=yn(this,ge[fe].from(),ge[fe].to());ie!==!1&&(Se=Se.join(ie||this.lineSeparator())),se[fe]=Se}return se},replaceSelection:function(ie,se,ge){for(var fe=[],Se=0;Se<this.sel.ranges.length;Se++)fe[Se]=ie;this.replaceSelections(fe,se,ge||"+input")},replaceSelections:Rn(function(ie,se,ge){for(var fe=[],Se=this.sel,Ne=0;Ne<Se.ranges.length;Ne++){var _e=Se.ranges[Ne];fe[Ne]={from:_e.from(),to:_e.to(),text:this.splitLines(ie[Ne]),origin:ge}}for(var ht=se&&se!="end"&&Ro(this,fe,se),ct=fe.length-1;ct>=0;ct--)ys(this,fe[ct]);ht?ya(this,ht):this.cm&&ao(this.cm)}),undo:Rn(function(){mu(this,"undo")}),redo:Rn(function(){mu(this,"redo")}),undoSelection:Rn(function(){mu(this,"undo",!0)}),redoSelection:Rn(function(){mu(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,se=0,ge=0,fe=0;fe<ie.done.length;fe++)ie.done[fe].ranges||++se;for(var Se=0;Se<ie.undone.length;Se++)ie.undone[Se].ranges||++ge;return{undo:se,redo:ge}},clearHistory:function(){var ie=this;this.history=new co(this.history.maxGeneration),es(this,function(se){return se.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:Gs(this.history.done),undone:Gs(this.history.undone)}},setHistory:function(ie){var se=this.history=new co(this.history.maxGeneration);se.done=Gs(ie.done.slice(0),null,!0),se.undone=Gs(ie.undone.slice(0),null,!0)},setGutterMarker:Rn(function(ie,se,ge){return Js(this,ie,"gutter",function(fe){var Se=fe.gutterMarkers||(fe.gutterMarkers={});return Se[se]=ge,!ge&&Ye(Se)&&(fe.gutterMarkers=null),!0})}),clearGutter:Rn(function(ie){var se=this;this.iter(function(ge){ge.gutterMarkers&&ge.gutterMarkers[ie]&&Js(se,ge,"gutter",function(){return ge.gutterMarkers[ie]=null,Ye(ge.gutterMarkers)&&(ge.gutterMarkers=null),!0})})}),lineInfo:function(ie){var se;if(typeof ie=="number"){if(!pi(this,ie)||(se=ie,ie=fn(this,ie),!ie))return null}else if(se=at(ie),se==null)return null;return{line:se,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:Rn(function(ie,se,ge){return Js(this,ie,se=="gutter"?"gutter":"class",function(fe){var Se=se=="text"?"textClass":se=="background"?"bgClass":se=="gutter"?"gutterClass":"wrapClass";if(!fe[Se])fe[Se]=ge;else{if(xe(ge).test(fe[Se]))return!1;fe[Se]+=" "+ge}return!0})}),removeLineClass:Rn(function(ie,se,ge){return Js(this,ie,se=="gutter"?"gutter":"class",function(fe){var Se=se=="text"?"textClass":se=="background"?"bgClass":se=="gutter"?"gutterClass":"wrapClass",Ne=fe[Se];if(Ne)if(ge==null)fe[Se]=null;else{var _e=Ne.match(xe(ge));if(!_e)return!1;var ht=_e.index+_e[0].length;fe[Se]=Ne.slice(0,_e.index)+(!_e.index||ht==Ne.length?"":" ")+Ne.slice(ht)||null}else return!1;return!0})}),addLineWidget:Rn(function(ie,se,ge){return Lu(this,ie,se,ge)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,se,ge){return Mc(this,Zn(this,ie),Zn(this,se),ge,ge&&ge.type||"range")},setBookmark:function(ie,se){var ge={replacedWith:se&&(se.nodeType==null?se.widget:se),insertLeft:se&&se.insertLeft,clearWhenEmpty:!1,shared:se&&se.shared,handleMouseEvents:se&&se.handleMouseEvents};return ie=Zn(this,ie),Mc(this,ie,ie,ge,"bookmark")},findMarksAt:function(ie){ie=Zn(this,ie);var se=[],ge=fn(this,ie.line).markedSpans;if(ge)for(var fe=0;fe<ge.length;++fe){var Se=ge[fe];(Se.from==null||Se.from<=ie.ch)&&(Se.to==null||Se.to>=ie.ch)&&se.push(Se.marker.parent||Se.marker)}return se},findMarks:function(ie,se,ge){ie=Zn(this,ie),se=Zn(this,se);var fe=[],Se=ie.line;return this.iter(ie.line,se.line+1,function(Ne){var _e=Ne.markedSpans;if(_e)for(var ht=0;ht<_e.length;ht++){var ct=_e[ht];!(ct.to!=null&&Se==ie.line&&ie.ch>=ct.to||ct.from==null&&Se!=ie.line||ct.from!=null&&Se==se.line&&ct.from>=se.ch)&&(!ge||ge(ct.marker))&&fe.push(ct.marker.parent||ct.marker)}++Se}),fe},getAllMarks:function(){var ie=[];return this.iter(function(se){var ge=se.markedSpans;if(ge)for(var fe=0;fe<ge.length;++fe)ge[fe].from!=null&&ie.push(ge[fe].marker)}),ie},posFromIndex:function(ie){var se,ge=this.first,fe=this.lineSeparator().length;return this.iter(function(Se){var Ne=Se.text.length+fe;if(Ne>ie)return se=ie,!0;ie-=Ne,++ge}),Zn(this,qt(ge,se))},indexFromPos:function(ie){ie=Zn(this,ie);var se=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ge=this.lineSeparator().length;return this.iter(this.first,ie.line,function(fe){se+=fe.text.length+ge}),se},copy:function(ie){var se=new bl(li(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return se.scrollTop=this.scrollTop,se.scrollLeft=this.scrollLeft,se.sel=this.sel,se.extend=!1,ie&&(se.history.undoDepth=this.history.undoDepth,se.setHistory(this.getHistory())),se},linkedDoc:function(ie){ie||(ie={});var se=this.first,ge=this.first+this.size;ie.from!=null&&ie.from>se&&(se=ie.from),ie.to!=null&&ie.to<ge&&(ge=ie.to);var fe=new bl(li(this,se,ge),ie.mode||this.modeOption,se,this.lineSep,this.direction);return ie.sharedHist&&(fe.history=this.history),(this.linked||(this.linked=[])).push({doc:fe,sharedHist:ie.sharedHist}),fe.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],Hc(fe,vd(this)),fe},unlinkDoc:function(ie){if(ie instanceof ls&&(ie=ie.doc),this.linked)for(var se=0;se<this.linked.length;++se){var ge=this.linked[se];if(ge.doc==ie){this.linked.splice(se,1),ie.unlinkDoc(this),Lc(vd(this));break}}if(ie.history==this.history){var fe=[ie.id];es(ie,function(Se){return fe.push(Se.id)},!0),ie.history=new co(null),ie.history.done=Gs(this.history.done,fe),ie.history.undone=Gs(this.history.undone,fe)}},iterLinkedDocs:function(ie){es(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Di(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Rn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(se){return se.order=null}),this.cm&&zo(this.cm))})}),bl.prototype.eachLine=bl.prototype.iter;var od=0;function Od(ie){var se=this;if(gf(se),!(Xt(se,ie)||Xr(se.display,ie))){Pi(ie),We&&(od=+new Date);var ge=gl(se,ie,!0),fe=ie.dataTransfer.files;if(!(!ge||se.isReadOnly()))if(fe&&fe.length&&window.FileReader&&window.File)for(var Se=fe.length,Ne=Array(Se),_e=0,ht=function(){++_e==Se&&jn(se,function(){ge=Zn(se.doc,ge);var Xn={from:ge,to:ge,text:se.doc.splitLines(Ne.filter(function(Gi){return Gi!=null}).join(se.doc.lineSeparator())),origin:"paste"};ys(se.doc,Xn),ya(se.doc,Xo(Zn(se.doc,ge),Zn(se.doc,ea(Xn))))})()},ct=function(Xn,Gi){if(se.options.allowDropFileTypes&&Et(se.options.allowDropFileTypes,Xn.type)==-1){ht();return}var Yi=new FileReader;Yi.onerror=function(){return ht()},Yi.onload=function(){var dr=Yi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(dr)){ht();return}Ne[Gi]=dr,ht()},Yi.readAsText(Xn)},kt=0;kt<fe.length;kt++)ct(fe[kt],kt);else{if(se.state.draggingText&&se.doc.sel.contains(ge)>-1){se.state.draggingText(ie),setTimeout(function(){return se.display.input.focus()},20);return}try{var bn=ie.dataTransfer.getData("Text");if(bn){var jt;if(se.state.draggingText&&!se.state.draggingText.copy&&(jt=se.listSelections()),_s(se.doc,Xo(ge,ge)),jt)for(var ni=0;ni<jt.length;++ni)Qu(se.doc,"",jt[ni].anchor,jt[ni].head,"drag");se.replaceSelection(bn,"around","paste"),se.display.input.focus()}}catch(Xn){}}}}function Id(ie,se){if(We&&(!ie.state.draggingText||+new Date-od<100)){Vi(se);return}if(!(Xt(ie,se)||Xr(ie.display,se))&&(se.dataTransfer.setData("Text",ie.getSelection()),se.dataTransfer.effectAllowed="copyMove",se.dataTransfer.setDragImage&&!tt)){var ge=ze("img",null,null,"position: fixed; left: 0; top: 0;");ge.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Je&&(ge.width=ge.height=1,ie.display.wrapper.appendChild(ge),ge._top=ge.offsetTop),se.dataTransfer.setDragImage(ge,0,0),Je&&ge.parentNode.removeChild(ge)}}function Rd(ie,se){var ge=gl(ie,se);if(ge){var fe=document.createDocumentFragment();Dn(ie,ge,fe),ie.display.dragCursor||(ie.display.dragCursor=ze("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),He(ie.display.dragCursor,fe)}}function gf(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function zd(ie){if(document.getElementsByClassName){for(var se=document.getElementsByClassName("CodeMirror"),ge=[],fe=0;fe<se.length;fe++){var Se=se[fe].CodeMirror;Se&&ge.push(Se)}ge.length&&ge[0].operation(function(){for(var Ne=0;Ne<ge.length;Ne++)ie(ge[Ne])})}}var jd=!1;function vu(){jd||(Wc(),jd=!0)}function Wc(){var ie;pt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,zd(zh)},100))}),pt(window,"blur",function(){return zd(zi)})}function zh(ie){var se=ie.display;se.cachedCharWidth=se.cachedTextHeight=se.cachedPaddingH=null,se.scrollbarsClipped=!1,ie.setSize()}for(var $u={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"},Zc=0;Zc<10;Zc++)$u[Zc+48]=$u[Zc+96]=String(Zc);for(var ad=65;ad<=90;ad++)$u[ad]=String.fromCharCode(ad);for(var sd=1;sd<=12;sd++)$u[sd+111]=$u[sd+63235]="F"+sd;var Ul={};Ul.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"},Ul.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"},Ul.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"},Ul.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"]},Ul.default=ue?Ul.macDefault:Ul.pcDefault;function sh(ie){var se=ie.split(/-(?!$)/);ie=se[se.length-1];for(var ge,fe,Se,Ne,_e=0;_e<se.length-1;_e++){var ht=se[_e];if(/^(cmd|meta|m)$/i.test(ht))Ne=!0;else if(/^a(lt)?$/i.test(ht))ge=!0;else if(/^(c|ctrl|control)$/i.test(ht))fe=!0;else if(/^s(hift)?$/i.test(ht))Se=!0;else throw new Error("Unrecognized modifier name: "+ht)}return ge&&(ie="Alt-"+ie),fe&&(ie="Ctrl-"+ie),Ne&&(ie="Cmd-"+ie),Se&&(ie="Shift-"+ie),ie}function Hd(ie){var se={};for(var ge in ie)if(ie.hasOwnProperty(ge)){var fe=ie[ge];if(/^(name|fallthrough|(de|at)tach)$/.test(ge))continue;if(fe=="..."){delete ie[ge];continue}for(var Se=Un(ge.split(" "),sh),Ne=0;Ne<Se.length;Ne++){var _e=void 0,ht=void 0;Ne==Se.length-1?(ht=Se.join(" "),_e=fe):(ht=Se.slice(0,Ne+1).join(" "),_e="...");var ct=se[ht];if(!ct)se[ht]=_e;else if(ct!=_e)throw new Error("Inconsistent bindings for "+ht)}delete ie[ge]}for(var kt in se)ie[kt]=se[kt];return ie}function uu(ie,se,ge,fe){se=Fc(se);var Se=se.call?se.call(ie,fe):se[ie];if(Se===!1)return"nothing";if(Se==="...")return"multi";if(Se!=null&&ge(Se))return"handled";if(se.fallthrough){if(Object.prototype.toString.call(se.fallthrough)!="[object Array]")return uu(ie,se.fallthrough,ge,fe);for(var Ne=0;Ne<se.fallthrough.length;Ne++){var _e=uu(ie,se.fallthrough[Ne],ge,fe);if(_e)return _e}}}function yd(ie){var se=typeof ie=="string"?ie:$u[ie.keyCode];return se=="Ctrl"||se=="Alt"||se=="Shift"||se=="Mod"}function Wd(ie,se,ge){var fe=ie;return se.altKey&&fe!="Alt"&&(ie="Alt-"+ie),(Pe?se.metaKey:se.ctrlKey)&&fe!="Ctrl"&&(ie="Ctrl-"+ie),(Pe?se.ctrlKey:se.metaKey)&&fe!="Mod"&&(ie="Cmd-"+ie),!ge&&se.shiftKey&&fe!="Shift"&&(ie="Shift-"+ie),ie}function lh(ie,se){if(Je&&ie.keyCode==34&&ie.char)return!1;var ge=$u[ie.keyCode];return ge==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ge=ie.code),Wd(ge,ie,se))}function Fc(ie){return typeof ie=="string"?Ul[ie]:ie}function Nl(ie,se){for(var ge=ie.doc.sel.ranges,fe=[],Se=0;Se<ge.length;Se++){for(var Ne=se(ge[Se]);fe.length&&Nn(Ne.from,Lt(fe).to)<=0;){var _e=fe.pop();if(Nn(_e.from,Ne.from)<0){Ne.from=_e.from;break}}fe.push(Ne)}un(ie,function(){for(var ht=fe.length-1;ht>=0;ht--)Qu(ie.doc,"",fe[ht].from,fe[ht].to,"+delete");ao(ie)})}function Zd(ie,se,ge){var fe=ft(ie.text,se+ge,ge);return fe<0||fe>ie.text.length?null:fe}function rl(ie,se,ge){var fe=Zd(ie,se.ch,ge);return fe==null?null:new qt(se.line,fe,ge<0?"after":"before")}function Za(ie,se,ge,fe,Se){if(ie){se.doc.direction=="rtl"&&(Se=-Se);var Ne=Ge(ge,se.doc.direction);if(Ne){var _e=Se<0?Lt(Ne):Ne[0],ht=Se<0==(_e.level==1),ct=ht?"after":"before",kt;if(_e.level>0||se.doc.direction=="rtl"){var bn=ll(se,ge);kt=Se<0?ge.text.length-1:0;var jt=Cl(se,bn,kt).top;kt=nt(function(ni){return Cl(se,bn,ni).top==jt},Se<0==(_e.level==1)?_e.from:_e.to-1,kt),ct=="before"&&(kt=Zd(ge,kt,1))}else kt=Se<0?_e.to:_e.from;return new qt(fe,kt,ct)}}return new qt(fe,Se<0?ge.text.length:0,Se<0?"before":"after")}function Cs(ie,se,ge,fe){var Se=Ge(se,ie.doc.direction);if(!Se)return rl(se,ge,fe);ge.ch>=se.text.length?(ge.ch=se.text.length,ge.sticky="before"):ge.ch<=0&&(ge.ch=0,ge.sticky="after");var Ne=ye(Se,ge.ch,ge.sticky),_e=Se[Ne];if(ie.doc.direction=="ltr"&&_e.level%2==0&&(fe>0?_e.to>ge.ch:_e.from<ge.ch))return rl(se,ge,fe);var ht=function(jr,wo){return Zd(se,jr instanceof qt?jr.ch:jr,wo)},ct,kt=function(jr){return ie.options.lineWrapping?(ct=ct||ll(ie,se),rd(ie,se,ct,jr)):{begin:0,end:se.text.length}},bn=kt(ge.sticky=="before"?ht(ge,-1):ge.ch);if(ie.doc.direction=="rtl"||_e.level==1){var jt=_e.level==1==fe<0,ni=ht(ge,jt?1:-1);if(ni!=null&&(jt?ni<=_e.to&&ni<=bn.end:ni>=_e.from&&ni>=bn.begin)){var Xn=jt?"before":"after";return new qt(ge.line,ni,Xn)}}var Gi=function(jr,wo,no){for(var Io=function($s,Hl){return Hl?new qt(ge.line,ht($s,1),"before"):new qt(ge.line,$s,"after")};jr>=0&&jr<Se.length;jr+=wo){var da=Se[jr],$r=wo>0==(da.level!=1),La=$r?no.begin:ht(no.end,-1);if(da.from<=La&&La<da.to||(La=$r?da.from:ht(da.to,-1),no.begin<=La&&La<no.end))return Io(La,$r)}},Yi=Gi(Ne+fe,fe,bn);if(Yi)return Yi;var dr=fe>0?bn.end:ht(bn.begin,-1);return dr!=null&&!(fe>0&&dr==se.text.length)&&(Yi=Gi(fe>0?0:Se.length-1,fe,kt(dr)),Yi)?Yi:null}var Al={selectAll:Ja,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),xt)},killLine:function(ie){return Nl(ie,function(se){if(se.empty()){var ge=fn(ie.doc,se.head.line).text.length;return se.head.ch==ge&&se.head.line<ie.lastLine()?{from:se.head,to:qt(se.head.line+1,0)}:{from:se.head,to:qt(se.head.line,ge)}}else return{from:se.from(),to:se.to()}})},deleteLine:function(ie){return Nl(ie,function(se){return{from:qt(se.from().line,0),to:Zn(ie.doc,qt(se.to().line+1,0))}})},delLineLeft:function(ie){return Nl(ie,function(se){return{from:qt(se.from().line,0),to:se.from()}})},delWrappedLineLeft:function(ie){return Nl(ie,function(se){var ge=ie.charCoords(se.head,"div").top+5,fe=ie.coordsChar({left:0,top:ge},"div");return{from:fe,to:se.from()}})},delWrappedLineRight:function(ie){return Nl(ie,function(se){var ge=ie.charCoords(se.head,"div").top+5,fe=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ge},"div");return{from:se.from(),to:fe}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(qt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(qt(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(se){return yu(ie,se.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(se){return uh(ie,se.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(se){return Su(ie,se.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(se){var ge=ie.cursorCoords(se.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ge},"div")},rn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(se){var ge=ie.cursorCoords(se.head,"div").top+5;return ie.coordsChar({left:0,top:ge},"div")},rn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(se){var ge=ie.cursorCoords(se.head,"div").top+5,fe=ie.coordsChar({left:0,top:ge},"div");return fe.ch<ie.getLine(fe.line).search(/\S/)?uh(ie,se.head):fe},rn)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var se=[],ge=ie.listSelections(),fe=ie.options.tabSize,Se=0;Se<ge.length;Se++){var Ne=ge[Se].from(),_e=lt(ie.getLine(Ne.line),Ne.ch,fe);se.push(_n(fe-_e%fe))}ie.replaceSelections(se)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return un(ie,function(){for(var se=ie.listSelections(),ge=[],fe=0;fe<se.length;fe++)if(se[fe].empty()){var Se=se[fe].head,Ne=fn(ie.doc,Se.line).text;if(Ne){if(Se.ch==Ne.length&&(Se=new qt(Se.line,Se.ch-1)),Se.ch>0)Se=new qt(Se.line,Se.ch+1),ie.replaceRange(Ne.charAt(Se.ch-1)+Ne.charAt(Se.ch-2),qt(Se.line,Se.ch-2),Se,"+transpose");else if(Se.line>ie.doc.first){var _e=fn(ie.doc,Se.line-1).text;_e&&(Se=new qt(Se.line,1),ie.replaceRange(Ne.charAt(0)+ie.doc.lineSeparator()+_e.charAt(_e.length-1),qt(Se.line-1,_e.length-1),Se,"+transpose"))}}ge.push(new vr(Se,Se))}ie.setSelections(ge)})},newlineAndIndent:function(ie){return un(ie,function(){for(var se=ie.listSelections(),ge=se.length-1;ge>=0;ge--)ie.replaceRange(ie.doc.lineSeparator(),se[ge].anchor,se[ge].head,"+input");se=ie.listSelections();for(var fe=0;fe<se.length;fe++)ie.indentLine(se[fe].from().line,null,!0);ao(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function yu(ie,se){var ge=fn(ie.doc,se),fe=Gr(ge);return fe!=ge&&(se=at(fe)),Za(!0,ie,fe,se,1)}function Su(ie,se){var ge=fn(ie.doc,se),fe=_o(ge);return fe!=ge&&(se=at(fe)),Za(!0,ie,ge,se,-1)}function uh(ie,se){var ge=yu(ie,se.line),fe=fn(ie.doc,ge.line),Se=Ge(fe,ie.doc.direction);if(!Se||Se[0].level==0){var Ne=Math.max(ge.ch,fe.text.search(/\S/)),_e=se.line==ge.line&&se.ch<=Ne&&se.ch;return qt(ge.line,_e?0:Ne,ge.sticky)}return ge}function Gc(ie,se,ge){if(typeof se=="string"&&(se=Al[se],!se))return!1;ie.display.input.ensurePolled();var fe=ie.display.shift,Se=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ge&&(ie.display.shift=!1),Se=se(ie)!=Ht}finally{ie.display.shift=fe,ie.state.suppressEdits=!1}return Se}function Gd(ie,se,ge){for(var fe=0;fe<ie.state.keyMaps.length;fe++){var Se=uu(se,ie.state.keyMaps[fe],ge,ie);if(Se)return Se}return ie.options.extraKeys&&uu(se,ie.options.extraKeys,ge,ie)||uu(se,ie.options.keyMap,ge,ie)}var Iu=new je;function qu(ie,se,ge,fe){var Se=ie.state.keySeq;if(Se){if(yd(se))return"handled";if(/\'$/.test(se)?ie.state.keySeq=null:Iu.set(50,function(){ie.state.keySeq==Se&&(ie.state.keySeq=null,ie.display.input.reset())}),pf(ie,Se+" "+se,ge,fe))return!0}return pf(ie,se,ge,fe)}function pf(ie,se,ge,fe){var Se=Gd(ie,se,fe);return Se=="multi"&&(ie.state.keySeq=se),Se=="handled"&&Yn(ie,"keyHandled",ie,se,ge),(Se=="handled"||Se=="multi")&&(Pi(ge),ci(ie)),!!Se}function mf(ie,se){var ge=lh(se,!0);return ge?se.shiftKey&&!ie.state.keySeq?qu(ie,"Shift-"+ge,se,function(fe){return Gc(ie,fe,!0)})||qu(ie,ge,se,function(fe){if(typeof fe=="string"?/^go[A-Z]/.test(fe):fe.motion)return Gc(ie,fe)}):qu(ie,ge,se,function(fe){return Gc(ie,fe)}):!1}function ch(ie,se,ge){return qu(ie,"'"+ge+"'",se,function(fe){return Gc(ie,fe,!0)})}var Ru=null;function vf(ie){var se=this;if(!(ie.target&&ie.target!=se.display.input.getField())&&(se.curOp.focus=Xe(),!Xt(se,ie))){We&&it<11&&ie.keyCode==27&&(ie.returnValue=!1);var ge=ie.keyCode;se.display.shift=ge==16||ie.shiftKey;var fe=mf(se,ie);Je&&(Ru=fe?ge:null,!fe&&ge==88&&!Yr&&(ue?ie.metaKey:ie.ctrlKey)&&se.replaceSelection("",null,"cut")),pe&&!ue&&!fe&&ge==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ge==18&&!/\bCodeMirror-crosshair\b/.test(se.display.lineDiv.className)&&Zf(se)}}function Zf(ie){var se=ie.display.lineDiv;Ft(se,"CodeMirror-crosshair");function ge(fe){(fe.keyCode==18||!fe.altKey)&&(Le(se,"CodeMirror-crosshair"),en(document,"keyup",ge),en(document,"mouseover",ge))}pt(document,"keyup",ge),pt(document,"mouseover",ge)}function yf(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Xt(this,ie)}function pc(ie){var se=this;if(!(ie.target&&ie.target!=se.display.input.getField())&&!(Xr(se.display,ie)||Xt(se,ie)||ie.ctrlKey&&!ie.altKey||ue&&ie.metaKey)){var ge=ie.keyCode,fe=ie.charCode;if(Je&&ge==Ru){Ru=null,Pi(ie);return}if(!(Je&&(!ie.which||ie.which<10)&&mf(se,ie))){var Se=String.fromCharCode(fe==null?ge:fe);Se!="\b"&&(ch(se,ie,Se)||se.display.input.onKeyPress(ie))}}}var xg=400,Gf=function(ie,se,ge){this.time=ie,this.pos=se,this.button=ge};Gf.prototype.compare=function(ie,se,ge){return this.time+xg>ie&&Nn(se,this.pos)==0&&ge==this.button};var dh,Sd;function Kf(ie,se){var ge=+new Date;return Sd&&Sd.compare(ge,ie,se)?(dh=Sd=null,"triple"):dh&&dh.compare(ge,ie,se)?(Sd=new Gf(ge,ie,se),dh=null,"double"):(dh=new Gf(ge,ie,se),Sd=null,"single")}function Dc(ie){var se=this,ge=se.display;if(!(Xt(se,ie)||ge.activeTouch&&ge.input.supportsTouch())){if(ge.input.ensurePolled(),ge.shift=ie.shiftKey,Xr(ge,ie)){be||(ge.scroller.draggable=!1,setTimeout(function(){return ge.scroller.draggable=!0},100));return}if(!ca(se,ie)){var fe=gl(se,ie),Se=sr(ie),Ne=fe?Kf(fe,Se):"single";window.focus(),Se==1&&se.state.selectingText&&se.state.selectingText(ie),!(fe&&Vf(se,Se,fe,Ne,ie))&&(Se==1?fe?Sf(se,fe,Ne,ie):ur(ie)==ge.scroller&&Pi(ie):Se==2?(fe&&ja(se.doc,fe),setTimeout(function(){return ge.input.focus()},20)):Se==3&&(Ae?se.display.input.onContextMenu(ie):Xi(se)))}}}function Vf(ie,se,ge,fe,Se){var Ne="Click";return fe=="double"?Ne="Double"+Ne:fe=="triple"&&(Ne="Triple"+Ne),Ne=(se==1?"Left":se==2?"Middle":"Right")+Ne,qu(ie,Wd(Ne,Se),Se,function(_e){if(typeof _e=="string"&&(_e=Al[_e]),!_e)return!1;var ht=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ht=_e(ie,ge)!=Ht}finally{ie.state.suppressEdits=!1}return ht})}function jh(ie,se,ge){var fe=ie.getOption("configureMouse"),Se=fe?fe(ie,se,ge):{};if(Se.unit==null){var Ne=ae?ge.shiftKey&&ge.metaKey:ge.altKey;Se.unit=Ne?"rectangle":se=="single"?"char":se=="double"?"word":"line"}return(Se.extend==null||ie.doc.extend)&&(Se.extend=ie.doc.extend||ge.shiftKey),Se.addNew==null&&(Se.addNew=ue?ge.metaKey:ge.ctrlKey),Se.moveOnDrag==null&&(Se.moveOnDrag=!(ue?ge.altKey:ge.ctrlKey)),Se}function Sf(ie,se,ge,fe){We?setTimeout(It(Ei,ie),0):ie.curOp.focus=Xe();var Se=jh(ie,ge,fe),Ne=ie.doc.sel,_e;ie.options.dragDrop&&Qn&&!ie.isReadOnly()&&ge=="single"&&(_e=Ne.contains(se))>-1&&(Nn((_e=Ne.ranges[_e]).from(),se)<0||se.xRel>0)&&(Nn(_e.to(),se)>0||se.xRel<0)?Hh(ie,fe,se,Se):lp(ie,fe,se,Se)}function Hh(ie,se,ge,fe){var Se=ie.display,Ne=!1,_e=jn(ie,function(kt){be&&(Se.scroller.draggable=!1),ie.state.draggingText=!1,en(Se.wrapper.ownerDocument,"mouseup",_e),en(Se.wrapper.ownerDocument,"mousemove",ht),en(Se.scroller,"dragstart",ct),en(Se.scroller,"drop",_e),Ne||(Pi(kt),fe.addNew||ja(ie.doc,ge,null,null,fe.extend),be&&!tt||We&&it==9?setTimeout(function(){Se.wrapper.ownerDocument.body.focus({preventScroll:!0}),Se.input.focus()},20):Se.input.focus())}),ht=function(kt){Ne=Ne||Math.abs(se.clientX-kt.clientX)+Math.abs(se.clientY-kt.clientY)>=10},ct=function(){return Ne=!0};be&&(Se.scroller.draggable=!0),ie.state.draggingText=_e,_e.copy=!fe.moveOnDrag,Se.scroller.dragDrop&&Se.scroller.dragDrop(),pt(Se.wrapper.ownerDocument,"mouseup",_e),pt(Se.wrapper.ownerDocument,"mousemove",ht),pt(Se.scroller,"dragstart",ct),pt(Se.scroller,"drop",_e),Xi(ie),setTimeout(function(){return Se.input.focus()},20)}function Yf(ie,se,ge){if(ge=="char")return new vr(se,se);if(ge=="word")return ie.findWordAt(se);if(ge=="line")return new vr(qt(se.line,0),Zn(ie.doc,qt(se.line+1,0)));var fe=ge(ie,se);return new vr(fe.from,fe.to)}function lp(ie,se,ge,fe){var Se=ie.display,Ne=ie.doc;Pi(se);var _e,ht,ct=Ne.sel,kt=ct.ranges;if(fe.addNew&&!fe.extend?(ht=Ne.sel.contains(ge),ht>-1?_e=kt[ht]:_e=new vr(ge,ge)):(_e=Ne.sel.primary(),ht=Ne.sel.primIndex),fe.unit=="rectangle")fe.addNew||(_e=new vr(ge,ge)),ge=gl(ie,se,!0,!0),ht=-1;else{var bn=Yf(ie,ge,fe.unit);fe.extend?_e=Sl(_e,bn.anchor,bn.head,fe.extend):_e=bn}fe.addNew?ht==-1?(ht=kt.length,os(Ne,Ho(ie,kt.concat([_e]),ht),{scroll:!1,origin:"*mouse"})):kt.length>1&&kt[ht].empty()&&fe.unit=="char"&&!fe.extend?(os(Ne,Ho(ie,kt.slice(0,ht).concat(kt.slice(ht+1)),0),{scroll:!1,origin:"*mouse"}),ct=Ne.sel):ts(Ne,ht,_e,Bt):(ht=0,os(Ne,new Mo([_e],0),Bt),ct=Ne.sel);var jt=ge;function ni(no){if(Nn(jt,no)!=0)if(jt=no,fe.unit=="rectangle"){for(var Io=[],da=ie.options.tabSize,$r=lt(fn(Ne,ge.line).text,ge.ch,da),La=lt(fn(Ne,no.line).text,no.ch,da),$s=Math.min($r,La),Hl=Math.max($r,La),cl=Math.min(ge.line,no.line),ju=Math.min(ie.lastLine(),Math.max(ge.line,no.line));cl<=ju;cl++){var xu=fn(Ne,cl).text,Tl=Hn(xu,$s,da);$s==Hl?Io.push(new vr(qt(cl,Tl),qt(cl,Tl))):xu.length>Tl&&Io.push(new vr(qt(cl,Tl),qt(cl,Hn(xu,Hl,da))))}Io.length||Io.push(new vr(ge,ge)),os(Ne,Ho(ie,ct.ranges.slice(0,ht).concat(Io),ht),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(no)}else{var ec=_e,cu=Yf(ie,no,fe.unit),Ol=ec.anchor,us;Nn(cu.anchor,Ol)>0?(us=cu.head,Ol=En(ec.from(),cu.anchor)):(us=cu.anchor,Ol=Fn(ec.to(),cu.head));var pl=ct.ranges.slice(0);pl[ht]=ss(ie,new vr(Zn(Ne,Ol),us)),os(Ne,Ho(ie,pl,ht),Bt)}}var Xn=Se.wrapper.getBoundingClientRect(),Gi=0;function Yi(no){var Io=++Gi,da=gl(ie,no,!0,fe.unit=="rectangle");if(da)if(Nn(da,jt)!=0){ie.curOp.focus=Xe(),ni(da);var $r=ei(Se,Ne);(da.line>=$r.to||da.line<$r.from)&&setTimeout(jn(ie,function(){Gi==Io&&Yi(no)}),150)}else{var La=no.clientY<Xn.top?-20:no.clientY>Xn.bottom?20:0;La&&setTimeout(jn(ie,function(){Gi==Io&&(Se.scroller.scrollTop+=La,Yi(no))}),50)}}function dr(no){ie.state.selectingText=!1,Gi=1/0,no&&(Pi(no),Se.input.focus()),en(Se.wrapper.ownerDocument,"mousemove",jr),en(Se.wrapper.ownerDocument,"mouseup",wo),Ne.history.lastSelOrigin=null}var jr=jn(ie,function(no){no.buttons===0||!sr(no)?dr(no):Yi(no)}),wo=jn(ie,dr);ie.state.selectingText=wo,pt(Se.wrapper.ownerDocument,"mousemove",jr),pt(Se.wrapper.ownerDocument,"mouseup",wo)}function ss(ie,se){var ge=se.anchor,fe=se.head,Se=fn(ie.doc,ge.line);if(Nn(ge,fe)==0&&ge.sticky==fe.sticky)return se;var Ne=Ge(Se);if(!Ne)return se;var _e=ye(Ne,ge.ch,ge.sticky),ht=Ne[_e];if(ht.from!=ge.ch&&ht.to!=ge.ch)return se;var ct=_e+(ht.from==ge.ch==(ht.level!=1)?0:1);if(ct==0||ct==Ne.length)return se;var kt;if(fe.line!=ge.line)kt=(fe.line-ge.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var bn=ye(Ne,fe.ch,fe.sticky),jt=bn-_e||(fe.ch-ge.ch)*(ht.level==1?-1:1);bn==ct-1||bn==ct?kt=jt<0:kt=jt>0}var ni=Ne[ct+(kt?-1:0)],Xn=kt==(ni.level==1),Gi=Xn?ni.from:ni.to,Yi=Xn?"after":"before";return ge.ch==Gi&&ge.sticky==Yi?se:new vr(new qt(ge.line,Gi,Yi),fe)}function Zo(ie,se,ge,fe){var Se,Ne;if(se.touches)Se=se.touches[0].clientX,Ne=se.touches[0].clientY;else try{Se=se.clientX,Ne=se.clientY}catch(ni){return!1}if(Se>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;fe&&Pi(se);var _e=ie.display,ht=_e.lineDiv.getBoundingClientRect();if(Ne>ht.bottom||!In(ie,ge))return Ai(se);Ne-=ht.top-_e.viewOffset;for(var ct=0;ct<ie.display.gutterSpecs.length;++ct){var kt=_e.gutters.childNodes[ct];if(kt&&kt.getBoundingClientRect().right>=Se){var bn=Bn(ie.doc,Ne),jt=ie.display.gutterSpecs[ct];return wt(ie,ge,ie,bn,jt.className,se),Ai(se)}}}function ca(ie,se){return Zo(ie,se,"gutterClick",!0)}function ns(ie,se){Xr(ie.display,se)||ol(ie,se)||Xt(ie,se,"contextmenu")||Ae||ie.display.input.onContextMenu(se)}function ol(ie,se){return In(ie,"gutterContextMenu")?Zo(ie,se,"gutterContextMenu",!1):!1}function ld(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ks(ie)}var Xl={toString:function(){return"CodeMirror.Init"}},Kc={},mc={};function hh(ie){var se=ie.optionHandlers;function ge(fe,Se,Ne,_e){ie.defaults[fe]=Se,Ne&&(se[fe]=_e?function(ht,ct,kt){kt!=Xl&&Ne(ht,ct,kt)}:Ne)}ie.defineOption=ge,ie.Init=Xl,ge("value","",function(fe,Se){return fe.setValue(Se)},!0),ge("mode",null,function(fe,Se){fe.doc.modeOption=Se,po(fe)},!0),ge("indentUnit",2,po,!0),ge("indentWithTabs",!1),ge("smartIndent",!0),ge("tabSize",4,function(fe){Bo(fe),ks(fe),vs(fe)},!0),ge("lineSeparator",null,function(fe,Se){if(fe.doc.lineSep=Se,!!Se){var Ne=[],_e=fe.doc.first;fe.doc.iter(function(ct){for(var kt=0;;){var bn=ct.text.indexOf(Se,kt);if(bn==-1)break;kt=bn+Se.length,Ne.push(qt(_e,bn))}_e++});for(var ht=Ne.length-1;ht>=0;ht--)Qu(fe.doc,Se,Ne[ht],qt(Ne[ht].line,Ne[ht].ch+Se.length))}}),ge("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(fe,Se,Ne){fe.state.specialChars=new RegExp(Se.source+(Se.test(" ")?"":"| "),"g"),Ne!=Xl&&fe.refresh()}),ge("specialCharPlaceholder",cs,function(fe){return fe.refresh()},!0),ge("electricChars",!0),ge("inputStyle",te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ge("spellcheck",!1,function(fe,Se){return fe.getInputField().spellcheck=Se},!0),ge("autocorrect",!1,function(fe,Se){return fe.getInputField().autocorrect=Se},!0),ge("autocapitalize",!1,function(fe,Se){return fe.getInputField().autocapitalize=Se},!0),ge("rtlMoveVisually",!de),ge("wholeLineUpdateBefore",!0),ge("theme","default",function(fe){ld(fe),Pr(fe)},!0),ge("keyMap","default",function(fe,Se,Ne){var _e=Fc(Se),ht=Ne!=Xl&&Fc(Ne);ht&&ht.detach&&ht.detach(fe,_e),_e.attach&&_e.attach(fe,ht||null)}),ge("extraKeys",null),ge("configureMouse",null),ge("lineWrapping",!1,vc,!0),ge("gutters",[],function(fe,Se){fe.display.gutterSpecs=Zr(Se,fe.options.lineNumbers),Pr(fe)},!0),ge("fixedGutter",!0,function(fe,Se){fe.display.gutters.style.left=Se?Td(fe.display)+"px":"0",fe.refresh()},!0),ge("coverGutterNextToScrollbar",!1,function(fe){return wa(fe)},!0),ge("scrollbarStyle","native",function(fe){fs(fe),wa(fe),fe.display.scrollbars.setScrollTop(fe.doc.scrollTop),fe.display.scrollbars.setScrollLeft(fe.doc.scrollLeft)},!0),ge("lineNumbers",!1,function(fe,Se){fe.display.gutterSpecs=Zr(fe.options.gutters,Se),Pr(fe)},!0),ge("firstLineNumber",1,Pr,!0),ge("lineNumberFormatter",function(fe){return fe},Pr,!0),ge("showCursorWhenSelecting",!1,$t,!0),ge("resetSelectionOnContextMenu",!0),ge("lineWiseCopyCut",!0),ge("pasteLinesPerSelection",!0),ge("selectionsMayTouch",!1),ge("readOnly",!1,function(fe,Se){Se=="nocursor"&&(zi(fe),fe.display.input.blur()),fe.display.input.readOnlyChanged(Se)}),ge("screenReaderLabel",null,function(fe,Se){Se=Se===""?null:Se,fe.display.input.screenReaderLabelChanged(Se)}),ge("disableInput",!1,function(fe,Se){Se||fe.display.input.reset()},!0),ge("dragDrop",!0,Vc),ge("allowDropFileTypes",null),ge("cursorBlinkRate",530),ge("cursorScrollMargin",0),ge("cursorHeight",1,$t,!0),ge("singleCursorHeightPerLine",!0,$t,!0),ge("workTime",100),ge("workDelay",100),ge("flattenSpans",!0,Bo,!0),ge("addModeClass",!1,Bo,!0),ge("pollInterval",100),ge("undoDepth",200,function(fe,Se){return fe.doc.history.undoDepth=Se}),ge("historyEventDelay",1250),ge("viewportMargin",10,function(fe){return fe.refresh()},!0),ge("maxHighlightLength",1e4,Bo,!0),ge("moveInputWithCursor",!0,function(fe,Se){Se||fe.display.input.resetPosition()}),ge("tabindex",null,function(fe,Se){return fe.display.input.getField().tabIndex=Se||""}),ge("autofocus",null),ge("direction","ltr",function(fe,Se){return fe.doc.setDirection(Se)},!0),ge("phrases",null)}function Vc(ie,se,ge){var fe=ge&&ge!=Xl;if(!se!=!fe){var Se=ie.display.dragFunctions,Ne=se?pt:en;Ne(ie.display.scroller,"dragstart",Se.start),Ne(ie.display.scroller,"dragenter",Se.enter),Ne(ie.display.scroller,"dragover",Se.over),Ne(ie.display.scroller,"dragleave",Se.leave),Ne(ie.display.scroller,"drop",Se.drop)}}function vc(ie){ie.options.lineWrapping?(Ft(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Le(ie.display.wrapper,"CodeMirror-wrap"),na(ie)),ko(ie),vs(ie),ks(ie),setTimeout(function(){return wa(ie)},100)}function ls(ie,se){var ge=this;if(!(this instanceof ls))return new ls(ie,se);this.options=se=se?_t(se):{},_t(Kc,se,!1);var fe=se.value;typeof fe=="string"?fe=new bl(fe,se.mode,null,se.lineSeparator,se.direction):se.mode&&(fe.modeOption=se.mode),this.doc=fe;var Se=new ls.inputStyles[se.inputStyle](this),Ne=this.display=new _r(ie,fe,Se,se);Ne.wrapper.CodeMirror=this,ld(this),se.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),fs(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 je,keySeq:null,specialChars:null},se.autofocus&&!te&&Ne.input.focus(),We&&it<11&&setTimeout(function(){return ge.display.input.reset(!0)},20),xf(this),vu(),ka(this),this.curOp.forceUpdate=!0,To(this,fe),se.autofocus&&!te||this.hasFocus()?setTimeout(function(){ge.hasFocus()&&!ge.state.focused&&wi(ge)},20):zi(this);for(var _e in mc)mc.hasOwnProperty(_e)&&mc[_e](this,se[_e],Xl);Mr(this),se.finishInit&&se.finishInit(this);for(var ht=0;ht<Wh.length;++ht)Wh[ht](this);Rs(this),be&&se.lineWrapping&&getComputedStyle(Ne.lineDiv).textRendering=="optimizelegibility"&&(Ne.lineDiv.style.textRendering="auto")}ls.defaults=Kc,ls.optionHandlers=mc;function xf(ie){var se=ie.display;pt(se.scroller,"mousedown",jn(ie,Dc)),We&&it<11?pt(se.scroller,"dblclick",jn(ie,function(ct){if(!Xt(ie,ct)){var kt=gl(ie,ct);if(!(!kt||ca(ie,ct)||Xr(ie.display,ct))){Pi(ct);var bn=ie.findWordAt(kt);ja(ie.doc,bn.anchor,bn.head)}}})):pt(se.scroller,"dblclick",function(ct){return Xt(ie,ct)||Pi(ct)}),pt(se.scroller,"contextmenu",function(ct){return ns(ie,ct)}),pt(se.input.getField(),"contextmenu",function(ct){se.scroller.contains(ct.target)||ns(ie,ct)});var ge,fe={end:0};function Se(){se.activeTouch&&(ge=setTimeout(function(){return se.activeTouch=null},1e3),fe=se.activeTouch,fe.end=+new Date)}function Ne(ct){if(ct.touches.length!=1)return!1;var kt=ct.touches[0];return kt.radiusX<=1&&kt.radiusY<=1}function _e(ct,kt){if(kt.left==null)return!0;var bn=kt.left-ct.left,jt=kt.top-ct.top;return bn*bn+jt*jt>20*20}pt(se.scroller,"touchstart",function(ct){if(!Xt(ie,ct)&&!Ne(ct)&&!ca(ie,ct)){se.input.ensurePolled(),clearTimeout(ge);var kt=+new Date;se.activeTouch={start:kt,moved:!1,prev:kt-fe.end<=300?fe:null},ct.touches.length==1&&(se.activeTouch.left=ct.touches[0].pageX,se.activeTouch.top=ct.touches[0].pageY)}}),pt(se.scroller,"touchmove",function(){se.activeTouch&&(se.activeTouch.moved=!0)}),pt(se.scroller,"touchend",function(ct){var kt=se.activeTouch;if(kt&&!Xr(se,ct)&&kt.left!=null&&!kt.moved&&new Date-kt.start<300){var bn=ie.coordsChar(se.activeTouch,"page"),jt;!kt.prev||_e(kt,kt.prev)?jt=new vr(bn,bn):!kt.prev.prev||_e(kt,kt.prev.prev)?jt=ie.findWordAt(bn):jt=new vr(qt(bn.line,0),Zn(ie.doc,qt(bn.line+1,0))),ie.setSelection(jt.anchor,jt.head),ie.focus(),Pi(ct)}Se()}),pt(se.scroller,"touchcancel",Se),pt(se.scroller,"scroll",function(){se.scroller.clientHeight&&(va(ie,se.scroller.scrollTop),za(ie,se.scroller.scrollLeft,!0),wt(ie,"scroll",ie))}),pt(se.scroller,"mousewheel",function(ct){return bo(ie,ct)}),pt(se.scroller,"DOMMouseScroll",function(ct){return bo(ie,ct)}),pt(se.wrapper,"scroll",function(){return se.wrapper.scrollTop=se.wrapper.scrollLeft=0}),se.dragFunctions={enter:function(ct){Xt(ie,ct)||Vi(ct)},over:function(ct){Xt(ie,ct)||(Rd(ie,ct),Vi(ct))},start:function(ct){return Id(ie,ct)},drop:jn(ie,Od),leave:function(ct){Xt(ie,ct)||gf(ie)}};var ht=se.input.getField();pt(ht,"keyup",function(ct){return yf.call(ie,ct)}),pt(ht,"keydown",jn(ie,vf)),pt(ht,"keypress",jn(ie,pc)),pt(ht,"focus",function(ct){return wi(ie,ct)}),pt(ht,"blur",function(ct){return zi(ie,ct)})}var Wh=[];ls.defineInitHook=function(ie){return Wh.push(ie)};function jl(ie,se,ge,fe){var Se=ie.doc,Ne;ge==null&&(ge="add"),ge=="smart"&&(Se.mode.indent?Ne=rr(ie,se).state:ge="prev");var _e=ie.options.tabSize,ht=fn(Se,se),ct=lt(ht.text,null,_e);ht.stateAfter&&(ht.stateAfter=null);var kt=ht.text.match(/^\s*/)[0],bn;if(!fe&&!/\S/.test(ht.text))bn=0,ge="not";else if(ge=="smart"&&(bn=Se.mode.indent(Ne,ht.text.slice(kt.length),ht.text),bn==Ht||bn>150)){if(!fe)return;ge="prev"}ge=="prev"?se>Se.first?bn=lt(fn(Se,se-1).text,null,_e):bn=0:ge=="add"?bn=ct+ie.options.indentUnit:ge=="subtract"?bn=ct-ie.options.indentUnit:typeof ge=="number"&&(bn=ct+ge),bn=Math.max(0,bn);var jt="",ni=0;if(ie.options.indentWithTabs)for(var Xn=Math.floor(bn/_e);Xn;--Xn)ni+=_e,jt+=" ";if(ni<bn&&(jt+=_n(bn-ni)),jt!=kt)return Qu(Se,jt,qt(se,0),qt(se,kt.length),"+input"),ht.stateAfter=null,!0;for(var Gi=0;Gi<Se.sel.ranges.length;Gi++){var Yi=Se.sel.ranges[Gi];if(Yi.head.line==se&&Yi.head.ch<kt.length){var dr=qt(se,kt.length);ts(Se,Gi,new vr(dr,dr));break}}}var zu=null;function Zh(ie){zu=ie}function Uf(ie,se,ge,fe,Se){var Ne=ie.doc;ie.display.shift=!1,fe||(fe=Ne.sel);var _e=+new Date-200,ht=Se=="paste"||ie.state.pasteIncoming>_e,ct=Di(se),kt=null;if(ht&&fe.ranges.length>1)if(zu&&zu.text.join(`
|
|
|
`)==se){if(fe.ranges.length%zu.text.length==0){kt=[];for(var bn=0;bn<zu.text.length;bn++)kt.push(Ne.splitLines(zu.text[bn]))}}else ct.length==fe.ranges.length&&ie.options.pasteLinesPerSelection&&(kt=Un(ct,function(jr){return[jr]}));for(var jt=ie.curOp.updateInput,ni=fe.ranges.length-1;ni>=0;ni--){var Xn=fe.ranges[ni],Gi=Xn.from(),Yi=Xn.to();Xn.empty()&&(ge&&ge>0?Gi=qt(Gi.line,Gi.ch-ge):ie.state.overwrite&&!ht?Yi=qt(Yi.line,Math.min(fn(Ne,Yi.line).text.length,Yi.ch+Lt(ct).length)):ht&&zu&&zu.lineWise&&zu.text.join(`
|
|
|
`)==ct.join(`
|
|
|
`)&&(Gi=Yi=qt(Gi.line,0)));var dr={from:Gi,to:Yi,text:kt?kt[ni%kt.length]:ct,origin:Se||(ht?"paste":ie.state.cutIncoming>_e?"cut":"+input")};ys(ie.doc,dr),Yn(ie,"inputRead",ie,dr)}se&&!ht&&cp(ie,se),ao(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=jt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function up(ie,se){var ge=ie.clipboardData&&ie.clipboardData.getData("Text");if(ge)return ie.preventDefault(),!se.isReadOnly()&&!se.options.disableInput&&un(se,function(){return Uf(se,ge,0,null,"paste")}),!0}function cp(ie,se){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ge=ie.doc.sel,fe=ge.ranges.length-1;fe>=0;fe--){var Se=ge.ranges[fe];if(!(Se.head.ch>100||fe&&ge.ranges[fe-1].head.line==Se.head.line)){var Ne=ie.getModeAt(Se.head),_e=!1;if(Ne.electricChars){for(var ht=0;ht<Ne.electricChars.length;ht++)if(se.indexOf(Ne.electricChars.charAt(ht))>-1){_e=jl(ie,Se.head.line,"smart");break}}else Ne.electricInput&&Ne.electricInput.test(fn(ie.doc,Se.head.line).text.slice(0,Se.head.ch))&&(_e=jl(ie,Se.head.line,"smart"));_e&&Yn(ie,"electricInput",ie,Se.head.line)}}}function dp(ie){for(var se=[],ge=[],fe=0;fe<ie.doc.sel.ranges.length;fe++){var Se=ie.doc.sel.ranges[fe].head.line,Ne={anchor:qt(Se,0),head:qt(Se+1,0)};ge.push(Ne),se.push(ie.getRange(Ne.anchor,Ne.head))}return{text:se,ranges:ge}}function hp(ie,se,ge,fe){ie.setAttribute("autocorrect",ge?"":"off"),ie.setAttribute("autocapitalize",fe?"":"off"),ie.setAttribute("spellcheck",!!se)}function fp(){var ie=ze("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),se=ze("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return be?ie.style.width="1000px":ie.setAttribute("wrap","off"),Ee&&(ie.style.border="1px solid black"),hp(ie),se}function fh(ie){var se=ie.optionHandlers,ge=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(fe,Se){var Ne=this.options,_e=Ne[fe];Ne[fe]==Se&&fe!="mode"||(Ne[fe]=Se,se.hasOwnProperty(fe)&&jn(this,se[fe])(this,Se,_e),wt(this,"optionChange",this,fe))},getOption:function(fe){return this.options[fe]},getDoc:function(){return this.doc},addKeyMap:function(fe,Se){this.state.keyMaps[Se?"push":"unshift"](Fc(fe))},removeKeyMap:function(fe){for(var Se=this.state.keyMaps,Ne=0;Ne<Se.length;++Ne)if(Se[Ne]==fe||Se[Ne].name==fe)return Se.splice(Ne,1),!0},addOverlay:zn(function(fe,Se){var Ne=fe.token?fe:ie.getMode(this.options,fe);if(Ne.startState)throw new Error("Overlays may not be stateful.");Gn(this.state.overlays,{mode:Ne,modeSpec:fe,opaque:Se&&Se.opaque,priority:Se&&Se.priority||0},function(_e){return _e.priority}),this.state.modeGen++,vs(this)}),removeOverlay:zn(function(fe){for(var Se=this.state.overlays,Ne=0;Ne<Se.length;++Ne){var _e=Se[Ne].modeSpec;if(_e==fe||typeof fe=="string"&&_e.name==fe){Se.splice(Ne,1),this.state.modeGen++,vs(this);return}}}),indentLine:zn(function(fe,Se,Ne){typeof Se!="string"&&typeof Se!="number"&&(Se==null?Se=this.options.smartIndent?"smart":"prev":Se=Se?"add":"subtract"),pi(this.doc,fe)&&jl(this,fe,Se,Ne)}),indentSelection:zn(function(fe){for(var Se=this.doc.sel.ranges,Ne=-1,_e=0;_e<Se.length;_e++){var ht=Se[_e];if(ht.empty())ht.head.line>Ne&&(jl(this,ht.head.line,fe,!0),Ne=ht.head.line,_e==this.doc.sel.primIndex&&ao(this));else{var ct=ht.from(),kt=ht.to(),bn=Math.max(Ne,ct.line);Ne=Math.min(this.lastLine(),kt.line-(kt.ch?0:1))+1;for(var jt=bn;jt<Ne;++jt)jl(this,jt,fe);var ni=this.doc.sel.ranges;ct.ch==0&&Se.length==ni.length&&ni[_e].from().ch>0&&ts(this.doc,_e,new vr(ct,ni[_e].to()),xt)}}}),getTokenAt:function(fe,Se){return Nr(this,fe,Se)},getLineTokens:function(fe,Se){return Nr(this,qt(fe),Se,!0)},getTokenTypeAt:function(fe){fe=Zn(this.doc,fe);var Se=Br(this,fn(this.doc,fe.line)),Ne=0,_e=(Se.length-1)/2,ht=fe.ch,ct;if(ht==0)ct=Se[2];else for(;;){var kt=Ne+_e>>1;if((kt?Se[kt*2-1]:0)>=ht)_e=kt;else if(Se[kt*2+1]<ht)Ne=kt+1;else{ct=Se[kt*2+2];break}}var bn=ct?ct.indexOf("overlay "):-1;return bn<0?ct:bn==0?null:ct.slice(0,bn-1)},getModeAt:function(fe){var Se=this.doc.mode;return Se.innerMode?ie.innerMode(Se,this.getTokenAt(fe).state).mode:Se},getHelper:function(fe,Se){return this.getHelpers(fe,Se)[0]},getHelpers:function(fe,Se){var Ne=[];if(!ge.hasOwnProperty(Se))return Ne;var _e=ge[Se],ht=this.getModeAt(fe);if(typeof ht[Se]=="string")_e[ht[Se]]&&Ne.push(_e[ht[Se]]);else if(ht[Se])for(var ct=0;ct<ht[Se].length;ct++){var kt=_e[ht[Se][ct]];kt&&Ne.push(kt)}else ht.helperType&&_e[ht.helperType]?Ne.push(_e[ht.helperType]):_e[ht.name]&&Ne.push(_e[ht.name]);for(var bn=0;bn<_e._global.length;bn++){var jt=_e._global[bn];jt.pred(ht,this)&&Et(Ne,jt.val)==-1&&Ne.push(jt.val)}return Ne},getStateAfter:function(fe,Se){var Ne=this.doc;return fe=kn(Ne,fe==null?Ne.first+Ne.size-1:fe),rr(this,fe+1,Se).state},cursorCoords:function(fe,Se){var Ne,_e=this.doc.sel.primary();return fe==null?Ne=_e.head:typeof fe=="object"?Ne=Zn(this.doc,fe):Ne=fe?_e.from():_e.to(),Ms(this,Ne,Se||"page")},charCoords:function(fe,Se){return au(this,Zn(this.doc,fe),Se||"page")},coordsChar:function(fe,Se){return fe=cc(this,fe,Se||"page"),id(this,fe.left,fe.top)},lineAtHeight:function(fe,Se){return fe=cc(this,{top:fe,left:0},Se||"page").top,Bn(this.doc,fe+this.display.viewOffset)},heightAtLine:function(fe,Se,Ne){var _e=!1,ht;if(typeof fe=="number"){var ct=this.doc.first+this.doc.size-1;fe<this.doc.first?fe=this.doc.first:fe>ct&&(fe=ct,_e=!0),ht=fn(this.doc,fe)}else ht=fe;return Ts(this,ht,{top:0,left:0},Se||"page",Ne||_e).top+(_e?this.doc.height-Jo(ht):0)},defaultTextHeight:function(){return hc(this.display)},defaultCharWidth:function(){return Ac(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(fe,Se,Ne,_e,ht){var ct=this.display;fe=Ms(this,Zn(this.doc,fe));var kt=fe.bottom,bn=fe.left;if(Se.style.position="absolute",Se.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Se),ct.sizer.appendChild(Se),_e=="over")kt=fe.top;else if(_e=="above"||_e=="near"){var jt=Math.max(ct.wrapper.clientHeight,this.doc.height),ni=Math.max(ct.sizer.clientWidth,ct.lineSpace.clientWidth);(_e=="above"||fe.bottom+Se.offsetHeight>jt)&&fe.top>Se.offsetHeight?kt=fe.top-Se.offsetHeight:fe.bottom+Se.offsetHeight<=jt&&(kt=fe.bottom),bn+Se.offsetWidth>ni&&(bn=ni-Se.offsetWidth)}Se.style.top=kt+"px",Se.style.left=Se.style.right="",ht=="right"?(bn=ct.sizer.clientWidth-Se.offsetWidth,Se.style.right="0px"):(ht=="left"?bn=0:ht=="middle"&&(bn=(ct.sizer.clientWidth-Se.offsetWidth)/2),Se.style.left=bn+"px"),Ne&&eo(this,{left:bn,top:kt,right:bn+Se.offsetWidth,bottom:kt+Se.offsetHeight})},triggerOnKeyDown:zn(vf),triggerOnKeyPress:zn(pc),triggerOnKeyUp:yf,triggerOnMouseDown:zn(Dc),execCommand:function(fe){if(Al.hasOwnProperty(fe))return Al[fe].call(null,this)},triggerElectric:zn(function(fe){cp(this,fe)}),findPosH:function(fe,Se,Ne,_e){var ht=1;Se<0&&(ht=-1,Se=-Se);for(var ct=Zn(this.doc,fe),kt=0;kt<Se&&(ct=Xf(this.doc,ct,ht,Ne,_e),!ct.hitSide);++kt);return ct},moveH:zn(function(fe,Se){var Ne=this;this.extendSelectionsBy(function(_e){return Ne.display.shift||Ne.doc.extend||_e.empty()?Xf(Ne.doc,_e.head,fe,Se,Ne.options.rtlMoveVisually):fe<0?_e.from():_e.to()},rn)}),deleteH:zn(function(fe,Se){var Ne=this.doc.sel,_e=this.doc;Ne.somethingSelected()?_e.replaceSelection("",null,"+delete"):Nl(this,function(ht){var ct=Xf(_e,ht.head,fe,Se,!1);return fe<0?{from:ct,to:ht.head}:{from:ht.head,to:ct}})}),findPosV:function(fe,Se,Ne,_e){var ht=1,ct=_e;Se<0&&(ht=-1,Se=-Se);for(var kt=Zn(this.doc,fe),bn=0;bn<Se;++bn){var jt=Ms(this,kt,"div");if(ct==null?ct=jt.left:jt.left=ct,kt=gh(this,jt,ht,Ne),kt.hitSide)break}return kt},moveV:zn(function(fe,Se){var Ne=this,_e=this.doc,ht=[],ct=!this.display.shift&&!_e.extend&&_e.sel.somethingSelected();if(_e.extendSelectionsBy(function(bn){if(ct)return fe<0?bn.from():bn.to();var jt=Ms(Ne,bn.head,"div");bn.goalColumn!=null&&(jt.left=bn.goalColumn),ht.push(jt.left);var ni=gh(Ne,jt,fe,Se);return Se=="page"&&bn==_e.sel.primary()&&oo(Ne,au(Ne,ni,"div").top-jt.top),ni},rn),ht.length)for(var kt=0;kt<_e.sel.ranges.length;kt++)_e.sel.ranges[kt].goalColumn=ht[kt]}),findWordAt:function(fe){var Se=this.doc,Ne=fn(Se,fe.line).text,_e=fe.ch,ht=fe.ch;if(Ne){var ct=this.getHelper(fe,"wordChars");(fe.sticky=="before"||ht==Ne.length)&&_e?--_e:++ht;for(var kt=Ne.charAt(_e),bn=mt(kt,ct)?function(jt){return mt(jt,ct)}:/\s/.test(kt)?function(jt){return/\s/.test(jt)}:function(jt){return!/\s/.test(jt)&&!mt(jt)};_e>0&&bn(Ne.charAt(_e-1));)--_e;for(;ht<Ne.length&&bn(Ne.charAt(ht));)++ht}return new vr(qt(fe.line,_e),qt(fe.line,ht))},toggleOverwrite:function(fe){fe!=null&&fe==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ft(this.display.cursorDiv,"CodeMirror-overwrite"):Le(this.display.cursorDiv,"CodeMirror-overwrite"),wt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Xe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:zn(function(fe,Se){to(this,fe,Se)}),getScrollInfo:function(){var fe=this.display.scroller;return{left:fe.scrollLeft,top:fe.scrollTop,height:fe.scrollHeight-fl(this)-this.display.barHeight,width:fe.scrollWidth-fl(this)-this.display.barWidth,clientHeight:Yu(this),clientWidth:wl(this)}},scrollIntoView:zn(function(fe,Se){fe==null?(fe={from:this.doc.sel.primary().head,to:null},Se==null&&(Se=this.options.cursorScrollMargin)):typeof fe=="number"?fe={from:qt(fe,0),to:null}:fe.from==null&&(fe={from:fe,to:null}),fe.to||(fe.to=fe.from),fe.margin=Se||0,fe.from.line!=null?Ji(this,fe):Qo(this,fe.from,fe.to,fe.margin)}),setSize:zn(function(fe,Se){var Ne=this,_e=function(ct){return typeof ct=="number"||/^\d+$/.test(String(ct))?ct+"px":ct};fe!=null&&(this.display.wrapper.style.width=_e(fe)),Se!=null&&(this.display.wrapper.style.height=_e(Se)),this.options.lineWrapping&&Ns(this);var ht=this.display.viewFrom;this.doc.iter(ht,this.display.viewTo,function(ct){if(ct.widgets){for(var kt=0;kt<ct.widgets.length;kt++)if(ct.widgets[kt].noHScroll){ma(Ne,ht,"widget");break}}++ht}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(fe){return un(this,fe)},startOperation:function(){return ka(this)},endOperation:function(){return Rs(this)},refresh:zn(function(){var fe=this.display.cachedTextHeight;vs(this),this.curOp.forceUpdate=!0,ks(this),to(this,this.doc.scrollLeft,this.doc.scrollTop),xr(this.display),(fe==null||Math.abs(fe-hc(this.display))>.5||this.options.lineWrapping)&&ko(this),wt(this,"refresh",this)}),swapDoc:zn(function(fe){var Se=this.doc;return Se.cm=null,this.state.selectingText&&this.state.selectingText(),To(this,fe),ks(this),this.display.input.reset(),to(this,fe.scrollLeft,fe.scrollTop),this.curOp.forceScroll=!0,Yn(this,"swapDoc",this,Se),Se}),phrase:function(fe){var Se=this.options.phrases;return Se&&Object.prototype.hasOwnProperty.call(Se,fe)?Se[fe]:fe},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}},$n(ie),ie.registerHelper=function(fe,Se,Ne){ge.hasOwnProperty(fe)||(ge[fe]=ie[fe]={_global:[]}),ge[fe][Se]=Ne},ie.registerGlobalHelper=function(fe,Se,Ne,_e){ie.registerHelper(fe,Se,_e),ge[fe]._global.push({pred:Ne,val:_e})}}function Xf(ie,se,ge,fe,Se){var Ne=se,_e=ge,ht=fn(ie,se.line),ct=Se&&ie.direction=="rtl"?-ge:ge;function kt(){var wo=se.line+ct;return wo<ie.first||wo>=ie.first+ie.size?!1:(se=new qt(wo,se.ch,se.sticky),ht=fn(ie,wo))}function bn(wo){var no;if(fe=="codepoint"){var Io=ht.text.charCodeAt(se.ch+(fe>0?0:-1));isNaN(Io)?no=null:no=new qt(se.line,Math.max(0,Math.min(ht.text.length,se.ch+ge*(Io>=55296&&Io<56320?2:1))),-ge)}else Se?no=Cs(ie.cm,ht,se,ge):no=rl(ht,se,ge);if(no==null)if(!wo&&kt())se=Za(Se,ie.cm,ht,se.line,ct);else return!1;else se=no;return!0}if(fe=="char"||fe=="codepoint")bn();else if(fe=="column")bn(!0);else if(fe=="word"||fe=="group")for(var jt=null,ni=fe=="group",Xn=ie.cm&&ie.cm.getHelper(se,"wordChars"),Gi=!0;!(ge<0&&!bn(!Gi));Gi=!1){var Yi=ht.text.charAt(se.ch)||`
|
|
|
`,dr=mt(Yi,Xn)?"w":ni&&Yi==`
|
|
|
`?"n":!ni||/\s/.test(Yi)?null:"p";if(ni&&!Gi&&!dr&&(dr="s"),jt&&jt!=dr){ge<0&&(ge=1,bn(),se.sticky="after");break}if(dr&&(jt=dr),ge>0&&!bn(!Gi))break}var jr=Mu(ie,se,Ne,_e,!0);return on(Ne,jr)&&(jr.hitSide=!0),jr}function gh(ie,se,ge,fe){var Se=ie.doc,Ne=se.left,_e;if(fe=="page"){var ht=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ct=Math.max(ht-.5*hc(ie.display),3);_e=(ge>0?se.bottom:se.top)+ge*ct}else fe=="line"&&(_e=ge>0?se.bottom+3:se.top-3);for(var kt;kt=id(ie,Ne,_e),!!kt.outside;){if(ge<0?_e<=0:_e>=Se.height){kt.hitSide=!0;break}_e+=ge*5}return kt}var js=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new je,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};js.prototype.init=function(ie){var se=this,ge=this,fe=ge.cm,Se=ge.div=ie.lineDiv;hp(Se,fe.options.spellcheck,fe.options.autocorrect,fe.options.autocapitalize);function Ne(ht){for(var ct=ht.target;ct;ct=ct.parentNode){if(ct==Se)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ct.className))break}return!1}pt(Se,"paste",function(ht){!Ne(ht)||Xt(fe,ht)||up(ht,fe)||it<=11&&setTimeout(jn(fe,function(){return se.updateFromDOM()}),20)}),pt(Se,"compositionstart",function(ht){se.composing={data:ht.data,done:!1}}),pt(Se,"compositionupdate",function(ht){se.composing||(se.composing={data:ht.data,done:!1})}),pt(Se,"compositionend",function(ht){se.composing&&(ht.data!=se.composing.data&&se.readFromDOMSoon(),se.composing.done=!0)}),pt(Se,"touchstart",function(){return ge.forceCompositionEnd()}),pt(Se,"input",function(){se.composing||se.readFromDOMSoon()});function _e(ht){if(!(!Ne(ht)||Xt(fe,ht))){if(fe.somethingSelected())Zh({lineWise:!1,text:fe.getSelections()}),ht.type=="cut"&&fe.replaceSelection("",null,"cut");else if(fe.options.lineWiseCopyCut){var ct=dp(fe);Zh({lineWise:!0,text:ct.text}),ht.type=="cut"&&fe.operation(function(){fe.setSelections(ct.ranges,0,xt),fe.replaceSelection("",null,"cut")})}else return;if(ht.clipboardData){ht.clipboardData.clearData();var kt=zu.text.join(`
|
|
|
`);if(ht.clipboardData.setData("Text",kt),ht.clipboardData.getData("Text")==kt){ht.preventDefault();return}}var bn=fp(),jt=bn.firstChild;fe.display.lineSpace.insertBefore(bn,fe.display.lineSpace.firstChild),jt.value=zu.text.join(`
|
|
|
`);var ni=document.activeElement;Nt(jt),setTimeout(function(){fe.display.lineSpace.removeChild(bn),ni.focus(),ni==Se&&ge.showPrimarySelection()},50)}}pt(Se,"copy",_e),pt(Se,"cut",_e)},js.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},js.prototype.prepareSelection=function(){var ie=sn(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},js.prototype.showSelection=function(ie,se){!ie||!this.cm.display.view.length||((ie.focus||se)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},js.prototype.showPrimarySelection=function(){var ie=this.getSelection(),se=this.cm,ge=se.doc.sel.primary(),fe=ge.from(),Se=ge.to();if(se.display.viewTo==se.display.viewFrom||fe.line>=se.display.viewTo||Se.line<se.display.viewFrom){ie.removeAllRanges();return}var Ne=_f(se,ie.anchorNode,ie.anchorOffset),_e=_f(se,ie.focusNode,ie.focusOffset);if(!(Ne&&!Ne.bad&&_e&&!_e.bad&&Nn(En(Ne,_e),fe)==0&&Nn(Fn(Ne,_e),Se)==0)){var ht=se.display.view,ct=fe.line>=se.display.viewFrom&&Pg(se,fe)||{node:ht[0].measure.map[2],offset:0},kt=Se.line<se.display.viewTo&&Pg(se,Se);if(!kt){var bn=ht[ht.length-1].measure,jt=bn.maps?bn.maps[bn.maps.length-1]:bn.map;kt={node:jt[jt.length-1],offset:jt[jt.length-2]-jt[jt.length-3]}}if(!ct||!kt){ie.removeAllRanges();return}var ni=ie.rangeCount&&ie.getRangeAt(0),Xn;try{Xn=Ze(ct.node,ct.offset,kt.offset,kt.node)}catch(Gi){}Xn&&(!pe&&se.state.focused?(ie.collapse(ct.node,ct.offset),Xn.collapsed||(ie.removeAllRanges(),ie.addRange(Xn))):(ie.removeAllRanges(),ie.addRange(Xn)),ni&&ie.anchorNode==null?ie.addRange(ni):pe&&this.startGracePeriod()),this.rememberSelection()}},js.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},js.prototype.showMultipleSelections=function(ie){He(this.cm.display.cursorDiv,ie.cursors),He(this.cm.display.selectionDiv,ie.selection)},js.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},js.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var se=ie.getRangeAt(0).commonAncestorContainer;return Mt(this.div,se)},js.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},js.prototype.blur=function(){this.div.blur()},js.prototype.getField=function(){return this.div},js.prototype.supportsTouch=function(){return!0},js.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():un(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function se(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,se))}this.polling.set(this.cm.options.pollInterval,se)},js.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},js.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),se=this.cm;if(ee&&vt&&this.cm.display.gutterSpecs.length&&gp(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ge=_f(se,ie.anchorNode,ie.anchorOffset),fe=_f(se,ie.focusNode,ie.focusOffset);ge&&fe&&un(se,function(){os(se.doc,Xo(ge,fe),xt),(ge.bad||fe.bad)&&(se.curOp.selectionChanged=!0)})}}},js.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,se=ie.display,ge=ie.doc.sel.primary(),fe=ge.from(),Se=ge.to();if(fe.ch==0&&fe.line>ie.firstLine()&&(fe=qt(fe.line-1,fn(ie.doc,fe.line-1).length)),Se.ch==fn(ie.doc,Se.line).text.length&&Se.line<ie.lastLine()&&(Se=qt(Se.line+1,0)),fe.line<se.viewFrom||Se.line>se.viewTo-1)return!1;var Ne,_e,ht;fe.line==se.viewFrom||(Ne=Dl(ie,fe.line))==0?(_e=at(se.view[0].line),ht=se.view[0].node):(_e=at(se.view[Ne].line),ht=se.view[Ne-1].node.nextSibling);var ct=Dl(ie,Se.line),kt,bn;if(ct==se.view.length-1?(kt=se.viewTo-1,bn=se.lineDiv.lastChild):(kt=at(se.view[ct+1].line)-1,bn=se.view[ct+1].node.previousSibling),!ht)return!1;for(var jt=ie.doc.splitLines(wf(ie,ht,bn,_e,kt)),ni=yn(ie.doc,qt(_e,0),qt(kt,fn(ie.doc,kt).text.length));jt.length>1&&ni.length>1;)if(Lt(jt)==Lt(ni))jt.pop(),ni.pop(),kt--;else if(jt[0]==ni[0])jt.shift(),ni.shift(),_e++;else break;for(var Xn=0,Gi=0,Yi=jt[0],dr=ni[0],jr=Math.min(Yi.length,dr.length);Xn<jr&&Yi.charCodeAt(Xn)==dr.charCodeAt(Xn);)++Xn;for(var wo=Lt(jt),no=Lt(ni),Io=Math.min(wo.length-(jt.length==1?Xn:0),no.length-(ni.length==1?Xn:0));Gi<Io&&wo.charCodeAt(wo.length-Gi-1)==no.charCodeAt(no.length-Gi-1);)++Gi;if(jt.length==1&&ni.length==1&&_e==fe.line)for(;Xn&&Xn>fe.ch&&wo.charCodeAt(wo.length-Gi-1)==no.charCodeAt(no.length-Gi-1);)Xn--,Gi++;jt[jt.length-1]=wo.slice(0,wo.length-Gi).replace(/^\u200b+/,""),jt[0]=jt[0].slice(Xn).replace(/\u200b+$/,"");var da=qt(_e,Xn),$r=qt(kt,ni.length?Lt(ni).length-Gi:0);if(jt.length>1||jt[0]||Nn(da,$r))return Qu(ie.doc,jt,da,$r,"+input"),!0},js.prototype.ensurePolled=function(){this.forceCompositionEnd()},js.prototype.reset=function(){this.forceCompositionEnd()},js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},js.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},js.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&un(this.cm,function(){return vs(ie.cm)})},js.prototype.setUneditable=function(ie){ie.contentEditable="false"},js.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||jn(this.cm,Uf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},js.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},js.prototype.onContextMenu=function(){},js.prototype.resetPosition=function(){},js.prototype.needsContentAttribute=!0;function Pg(ie,se){var ge=xs(ie,se.line);if(!ge||ge.hidden)return null;var fe=fn(ie.doc,se.line),Se=Uu(ge,fe,se.line),Ne=Ge(fe,ie.doc.direction),_e="left";if(Ne){var ht=ye(Ne,se.ch);_e=ht%2?"right":"left"}var ct=nd(Se.map,se.ch,_e);return ct.offset=ct.collapse=="right"?ct.end:ct.start,ct}function gp(ie){for(var se=ie;se;se=se.parentNode)if(/CodeMirror-gutter-wrapper/.test(se.className))return!0;return!1}function Pf(ie,se){return se&&(ie.bad=!0),ie}function wf(ie,se,ge,fe,Se){var Ne="",_e=!1,ht=ie.doc.lineSeparator(),ct=!1;function kt(Xn){return function(Gi){return Gi.id==Xn}}function bn(){_e&&(Ne+=ht,ct&&(Ne+=ht),_e=ct=!1)}function jt(Xn){Xn&&(bn(),Ne+=Xn)}function ni(Xn){if(Xn.nodeType==1){var Gi=Xn.getAttribute("cm-text");if(Gi){jt(Gi);return}var Yi=Xn.getAttribute("cm-marker"),dr;if(Yi){var jr=ie.findMarks(qt(fe,0),qt(Se+1,0),kt(+Yi));jr.length&&(dr=jr[0].find(0))&&jt(yn(ie.doc,dr.from,dr.to).join(ht));return}if(Xn.getAttribute("contenteditable")=="false")return;var wo=/^(pre|div|p|li|table|br)$/i.test(Xn.nodeName);if(!/^br$/i.test(Xn.nodeName)&&Xn.textContent.length==0)return;wo&&bn();for(var no=0;no<Xn.childNodes.length;no++)ni(Xn.childNodes[no]);/^(pre|p)$/i.test(Xn.nodeName)&&(ct=!0),wo&&(_e=!0)}else Xn.nodeType==3&&jt(Xn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ni(se),se!=ge;)se=se.nextSibling,ct=!1;return Ne}function _f(ie,se,ge){var fe;if(se==ie.display.lineDiv){if(fe=ie.display.lineDiv.childNodes[ge],!fe)return Pf(ie.clipPos(qt(ie.display.viewTo-1)),!0);se=null,ge=0}else for(fe=se;;fe=fe.parentNode){if(!fe||fe==ie.display.lineDiv)return null;if(fe.parentNode&&fe.parentNode==ie.display.lineDiv)break}for(var Se=0;Se<ie.display.view.length;Se++){var Ne=ie.display.view[Se];if(Ne.node==fe)return hm(Ne,se,ge)}}function hm(ie,se,ge){var fe=ie.text.firstChild,Se=!1;if(!se||!Mt(fe,se))return Pf(qt(at(ie.line),0),!0);if(se==fe&&(Se=!0,se=fe.childNodes[ge],ge=0,!se)){var Ne=ie.rest?Lt(ie.rest):ie.line;return Pf(qt(at(Ne),Ne.text.length),Se)}var _e=se.nodeType==3?se:null,ht=se;for(!_e&&se.childNodes.length==1&&se.firstChild.nodeType==3&&(_e=se.firstChild,ge&&(ge=_e.nodeValue.length));ht.parentNode!=fe;)ht=ht.parentNode;var ct=ie.measure,kt=ct.maps;function bn(dr,jr,wo){for(var no=-1;no<(kt?kt.length:0);no++)for(var Io=no<0?ct.map:kt[no],da=0;da<Io.length;da+=3){var $r=Io[da+2];if($r==dr||$r==jr){var La=at(no<0?ie.line:ie.rest[no]),$s=Io[da]+wo;return(wo<0||$r!=dr)&&($s=Io[da+(wo?1:0)]),qt(La,$s)}}}var jt=bn(_e,ht,ge);if(jt)return Pf(jt,Se);for(var ni=ht.nextSibling,Xn=_e?_e.nodeValue.length-ge:0;ni;ni=ni.nextSibling){if(jt=bn(ni,ni.firstChild,0),jt)return Pf(qt(jt.line,jt.ch-Xn),Se);Xn+=ni.textContent.length}for(var Gi=ht.previousSibling,Yi=ge;Gi;Gi=Gi.previousSibling){if(jt=bn(Gi,Gi.firstChild,-1),jt)return Pf(qt(jt.line,jt.ch+Yi),Se);Yi+=Gi.textContent.length}}var kl=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new je,this.hasSelection=!1,this.composing=null};kl.prototype.init=function(ie){var se=this,ge=this,fe=this.cm;this.createField(ie);var Se=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Ee&&(Se.style.width="0px"),pt(Se,"input",function(){We&&it>=9&&se.hasSelection&&(se.hasSelection=null),ge.poll()}),pt(Se,"paste",function(_e){Xt(fe,_e)||up(_e,fe)||(fe.state.pasteIncoming=+new Date,ge.fastPoll())});function Ne(_e){if(!Xt(fe,_e)){if(fe.somethingSelected())Zh({lineWise:!1,text:fe.getSelections()});else if(fe.options.lineWiseCopyCut){var ht=dp(fe);Zh({lineWise:!0,text:ht.text}),_e.type=="cut"?fe.setSelections(ht.ranges,null,xt):(ge.prevInput="",Se.value=ht.text.join(`
|
|
|
`),Nt(Se))}else return;_e.type=="cut"&&(fe.state.cutIncoming=+new Date)}}pt(Se,"cut",Ne),pt(Se,"copy",Ne),pt(ie.scroller,"paste",function(_e){if(!(Xr(ie,_e)||Xt(fe,_e))){if(!Se.dispatchEvent){fe.state.pasteIncoming=+new Date,ge.focus();return}var ht=new Event("paste");ht.clipboardData=_e.clipboardData,Se.dispatchEvent(ht)}}),pt(ie.lineSpace,"selectstart",function(_e){Xr(ie,_e)||Pi(_e)}),pt(Se,"compositionstart",function(){var _e=fe.getCursor("from");ge.composing&&ge.composing.range.clear(),ge.composing={start:_e,range:fe.markText(_e,fe.getCursor("to"),{className:"CodeMirror-composing"})}}),pt(Se,"compositionend",function(){ge.composing&&(ge.poll(),ge.composing.range.clear(),ge.composing=null)})},kl.prototype.createField=function(ie){this.wrapper=fp(),this.textarea=this.wrapper.firstChild},kl.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},kl.prototype.prepareSelection=function(){var ie=this.cm,se=ie.display,ge=ie.doc,fe=sn(ie);if(ie.options.moveInputWithCursor){var Se=Ms(ie,ge.sel.primary().head,"div"),Ne=se.wrapper.getBoundingClientRect(),_e=se.lineDiv.getBoundingClientRect();fe.teTop=Math.max(0,Math.min(se.wrapper.clientHeight-10,Se.top+_e.top-Ne.top)),fe.teLeft=Math.max(0,Math.min(se.wrapper.clientWidth-10,Se.left+_e.left-Ne.left))}return fe},kl.prototype.showSelection=function(ie){var se=this.cm,ge=se.display;He(ge.cursorDiv,ie.cursors),He(ge.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},kl.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var se=this.cm;if(se.somethingSelected()){this.prevInput="";var ge=se.getSelection();this.textarea.value=ge,se.state.focused&&Nt(this.textarea),We&&it>=9&&(this.hasSelection=ge)}else ie||(this.prevInput=this.textarea.value="",We&&it>=9&&(this.hasSelection=null))}},kl.prototype.getField=function(){return this.textarea},kl.prototype.supportsTouch=function(){return!1},kl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||Xe()!=this.textarea))try{this.textarea.focus()}catch(ie){}},kl.prototype.blur=function(){this.textarea.blur()},kl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},kl.prototype.receivedFocus=function(){this.slowPoll()},kl.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},kl.prototype.fastPoll=function(){var ie=!1,se=this;se.pollingFast=!0;function ge(){var fe=se.poll();!fe&&!ie?(ie=!0,se.polling.set(60,ge)):(se.pollingFast=!1,se.slowPoll())}se.polling.set(20,ge)},kl.prototype.poll=function(){var ie=this,se=this.cm,ge=this.textarea,fe=this.prevInput;if(this.contextMenuPending||!se.state.focused||De(ge)&&!fe&&!this.composing||se.isReadOnly()||se.options.disableInput||se.state.keySeq)return!1;var Se=ge.value;if(Se==fe&&!se.somethingSelected())return!1;if(We&&it>=9&&this.hasSelection===Se||ue&&/[\uf700-\uf7ff]/.test(Se))return se.display.input.reset(),!1;if(se.doc.sel==se.display.selForContextMenu){var Ne=Se.charCodeAt(0);if(Ne==8203&&!fe&&(fe="\u200B"),Ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var _e=0,ht=Math.min(fe.length,Se.length);_e<ht&&fe.charCodeAt(_e)==Se.charCodeAt(_e);)++_e;return un(se,function(){Uf(se,Se.slice(_e),fe.length-_e,null,ie.composing?"*compose":null),Se.length>1e3||Se.indexOf(`
|
|
|
`)>-1?ge.value=ie.prevInput="":ie.prevInput=Se,ie.composing&&(ie.composing.range.clear(),ie.composing.range=se.markText(ie.composing.start,se.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},kl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},kl.prototype.onKeyPress=function(){We&&it>=9&&(this.hasSelection=null),this.fastPoll()},kl.prototype.onContextMenu=function(ie){var se=this,ge=se.cm,fe=ge.display,Se=se.textarea;se.contextMenuPending&&se.contextMenuPending();var Ne=gl(ge,ie),_e=fe.scroller.scrollTop;if(!Ne||Je)return;var ht=ge.options.resetSelectionOnContextMenu;ht&&ge.doc.sel.contains(Ne)==-1&&jn(ge,os)(ge.doc,Xo(Ne),xt);var ct=Se.style.cssText,kt=se.wrapper.style.cssText,bn=se.wrapper.offsetParent.getBoundingClientRect();se.wrapper.style.cssText="position: static",Se.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-bn.top-5)+"px; left: "+(ie.clientX-bn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(We?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var jt;be&&(jt=window.scrollY),fe.input.focus(),be&&window.scrollTo(null,jt),fe.input.reset(),ge.somethingSelected()||(Se.value=se.prevInput=" "),se.contextMenuPending=Xn,fe.selForContextMenu=ge.doc.sel,clearTimeout(fe.detectingSelectAll);function ni(){if(Se.selectionStart!=null){var Yi=ge.somethingSelected(),dr="\u200B"+(Yi?Se.value:"");Se.value="\u21DA",Se.value=dr,se.prevInput=Yi?"":"\u200B",Se.selectionStart=1,Se.selectionEnd=dr.length,fe.selForContextMenu=ge.doc.sel}}function Xn(){if(se.contextMenuPending==Xn&&(se.contextMenuPending=!1,se.wrapper.style.cssText=kt,Se.style.cssText=ct,We&&it<9&&fe.scrollbars.setScrollTop(fe.scroller.scrollTop=_e),Se.selectionStart!=null)){(!We||We&&it<9)&&ni();var Yi=0,dr=function(){fe.selForContextMenu==ge.doc.sel&&Se.selectionStart==0&&Se.selectionEnd>0&&se.prevInput=="\u200B"?jn(ge,Ja)(ge):Yi++<10?fe.detectingSelectAll=setTimeout(dr,500):(fe.selForContextMenu=null,fe.input.reset())};fe.detectingSelectAll=setTimeout(dr,200)}}if(We&&it>=9&&ni(),Ae){Vi(ie);var Gi=function(){en(window,"mouseup",Gi),setTimeout(Xn,20)};pt(window,"mouseup",Gi)}else setTimeout(Xn,50)},kl.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},kl.prototype.setUneditable=function(){},kl.prototype.needsContentAttribute=!1;function fm(ie,se){if(se=se?_t(se):{},se.value=ie.value,!se.tabindex&&ie.tabIndex&&(se.tabindex=ie.tabIndex),!se.placeholder&&ie.placeholder&&(se.placeholder=ie.placeholder),se.autofocus==null){var ge=Xe();se.autofocus=ge==ie||ie.getAttribute("autofocus")!=null&&ge==document.body}function fe(){ie.value=ht.getValue()}var Se;if(ie.form&&(pt(ie.form,"submit",fe),!se.leaveSubmitMethodAlone)){var Ne=ie.form;Se=Ne.submit;try{var _e=Ne.submit=function(){fe(),Ne.submit=Se,Ne.submit(),Ne.submit=_e}}catch(ct){}}se.finishInit=function(ct){ct.save=fe,ct.getTextArea=function(){return ie},ct.toTextArea=function(){ct.toTextArea=isNaN,fe(),ie.parentNode.removeChild(ct.getWrapperElement()),ie.style.display="",ie.form&&(en(ie.form,"submit",fe),!se.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Se))}},ie.style.display="none";var ht=ls(function(ct){return ie.parentNode.insertBefore(ct,ie.nextSibling)},se);return ht}function Cf(ie){ie.off=en,ie.on=pt,ie.wheelEventPixels=Qr,ie.Doc=bl,ie.splitLines=Di,ie.countColumn=lt,ie.findColumn=Hn,ie.isWordChar=Vt,ie.Pass=Ht,ie.signal=wt,ie.Line=ia,ie.changeEnd=ea,ie.scrollbarModel=rs,ie.Pos=qt,ie.cmpPos=Nn,ie.modes=lo,ie.mimeModes=Wo,ie.resolveMode=an,ie.getMode=nn,ie.modeExtensions=Ut,ie.extendMode=bt,ie.copyState=xn,ie.startState=Tt,ie.innerMode=hn,ie.commands=Al,ie.keyMap=Ul,ie.keyName=lh,ie.isModifierKey=yd,ie.lookupKey=uu,ie.normalizeKeyMap=Hd,ie.StringStream=ot,ie.SharedTextMarker=gc,ie.TextMarker=cn,ie.LineWidget=Qs,ie.e_preventDefault=Pi,ie.e_stopPropagation=wn,ie.e_stop=Vi,ie.addClass=Ft,ie.contains=Mt,ie.rmClass=Le,ie.keyNames=$u}hh(ls),fh(ls);var Kd="iter insert remove copy getEditor constructor".split(" ");for(var Jf in bl.prototype)bl.prototype.hasOwnProperty(Jf)&&Et(Kd,Jf)<0&&(ls.prototype[Jf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(bl.prototype[Jf]));return $n(bl),ls.inputStyles={textarea:kl,contenteditable:js},ls.defineMode=function(ie){!ls.defaults.mode&&ie!="null"&&(ls.defaults.mode=ie),No.apply(this,arguments)},ls.defineMIME=ki,ls.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),ls.defineMIME("text/plain","null"),ls.defineExtension=function(ie,se){ls.prototype[ie]=se},ls.defineDocExtension=function(ie,se){bl.prototype[ie]=se},ls.fromTextArea=fm,Cf(ls),ls.version="5.58.2",ls})},25419:function(gn,zt,he){(function(pe){pe(he(89780),he(15525),he(98101))})(function(pe){"use strict";pe.defineMode("markdown",function(Ie,Ve){var st=pe.getMode(Ie,"text/html"),We=st.name=="null";function it(lt){if(pe.findModeByName){var je=pe.findModeByName(lt);je&&(lt=je.mime||je.mimes[0])}var Et=pe.getMode(Ie,lt);return Et.name=="null"?null:Et}Ve.highlightFormatting===void 0&&(Ve.highlightFormatting=!1),Ve.maxBlockquoteDepth===void 0&&(Ve.maxBlockquoteDepth=0),Ve.taskLists===void 0&&(Ve.taskLists=!1),Ve.strikethrough===void 0&&(Ve.strikethrough=!1),Ve.emoji===void 0&&(Ve.emoji=!1),Ve.fencedCodeBlockHighlighting===void 0&&(Ve.fencedCodeBlockHighlighting=!0),Ve.fencedCodeBlockDefaultMode===void 0&&(Ve.fencedCodeBlockDefaultMode="text/plain"),Ve.xml===void 0&&(Ve.xml=!0),Ve.tokenTypeOverrides===void 0&&(Ve.tokenTypeOverrides={});var be={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 yt in be)be.hasOwnProperty(yt)&&Ve.tokenTypeOverrides[yt]&&(be[yt]=Ve.tokenTypeOverrides[yt]);var vt=/^([*\-_])(?:\s*\1){2,}\s*$/,Je=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,tt=/^\[(x| )\](?=\s)/i,$e=Ve.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Qe=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ee=/^[^#!\[\]*_\\<>` "'(~:]+/,ee=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,te=/^\s*\[[^\]]+?\]:.*$/,ue=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ae=" ";function de(lt,je,Et){return je.f=je.inline=Et,Et(lt,je)}function ve(lt,je,Et){return je.f=je.block=Et,Et(lt,je)}function Pe(lt){return!lt||!/\S/.test(lt.string)}function Ae(lt){if(lt.linkTitle=!1,lt.linkHref=!1,lt.linkText=!1,lt.em=!1,lt.strong=!1,lt.strikethrough=!1,lt.quote=0,lt.indentedCode=!1,lt.f==Le){var je=We;if(!je){var Et=pe.innerMode(st,lt.htmlState);je=Et.mode.name=="xml"&&Et.state.tagStart===null&&!Et.state.context&&Et.state.tokenize.isInText}je&&(lt.f=Ke,lt.block=xe,lt.htmlState=null)}return lt.trailingSpace=0,lt.trailingSpaceNewLine=!1,lt.prevLine=lt.thisLine,lt.thisLine={stream:null},null}function xe(lt,je){var Et=lt.column()===je.indentation,ln=Pe(je.prevLine.stream),Ht=je.indentedCode,xt=je.prevLine.hr,Bt=je.list!==!1,rn=(je.listStack[je.listStack.length-1]||0)+3;je.indentedCode=!1;var Hn=je.indentation;if(je.indentationDiff===null&&(je.indentationDiff=je.indentation,Bt)){for(je.list=null;Hn<je.listStack[je.listStack.length-1];)je.listStack.pop(),je.listStack.length?je.indentation=je.listStack[je.listStack.length-1]:je.list=!1;je.list!==!1&&(je.indentationDiff=Hn-je.listStack[je.listStack.length-1])}var pn=!ln&&!xt&&!je.prevLine.header&&(!Bt||!Ht)&&!je.prevLine.fencedCodeEnd,_n=(je.list===!1||xt||ln)&&je.indentation<=rn&<.match(vt),Lt=null;if(je.indentationDiff>=4&&(Ht||je.prevLine.fencedCodeEnd||je.prevLine.header||ln))return lt.skipToEnd(),je.indentedCode=!0,be.code;if(lt.eatSpace())return null;if(Et&&je.indentation<=rn&&(Lt=lt.match($e))&&Lt[1].length<=6)return je.quote=0,je.header=Lt[1].length,je.thisLine.header=!0,Ve.highlightFormatting&&(je.formatting="header"),je.f=je.inline,He(je);if(je.indentation<=rn&<.eat(">"))return je.quote=Et?1:je.quote+1,Ve.highlightFormatting&&(je.formatting="quote"),lt.eatSpace(),He(je);if(!_n&&!je.setext&&Et&&je.indentation<=rn&&(Lt=lt.match(Je))){var Un=Lt[1]?"ol":"ul";return je.indentation=Hn+lt.current().length,je.list=!0,je.quote=0,je.listStack.push(je.indentation),je.em=!1,je.strong=!1,je.code=!1,je.strikethrough=!1,Ve.taskLists&<.match(tt,!1)&&(je.taskList=!0),je.f=je.inline,Ve.highlightFormatting&&(je.formatting=["list","list-"+Un]),He(je)}else{if(Et&&je.indentation<=rn&&(Lt=lt.match(ee,!0)))return je.quote=0,je.fencedEndRE=new RegExp(Lt[1]+"+ *$"),je.localMode=Ve.fencedCodeBlockHighlighting&&it(Lt[2]||Ve.fencedCodeBlockDefaultMode),je.localMode&&(je.localState=pe.startState(je.localMode)),je.f=je.block=Te,Ve.highlightFormatting&&(je.formatting="code-block"),je.code=-1,He(je);if(je.setext||(!pn||!Bt)&&!je.quote&&je.list===!1&&!je.code&&!_n&&!te.test(lt.string)&&(Lt=lt.lookAhead(1))&&(Lt=Lt.match(Qe)))return je.setext?(je.header=je.setext,je.setext=0,lt.skipToEnd(),Ve.highlightFormatting&&(je.formatting="header")):(je.header=Lt[0].charAt(0)=="="?1:2,je.setext=je.header),je.thisLine.header=!0,je.f=je.inline,He(je);if(_n)return lt.skipToEnd(),je.hr=!0,je.thisLine.hr=!0,be.hr;if(lt.peek()==="[")return de(lt,je,Ct)}return de(lt,je,je.inline)}function Le(lt,je){var Et=st.token(lt,je.htmlState);if(!We){var ln=pe.innerMode(st,je.htmlState);(ln.mode.name=="xml"&&ln.state.tagStart===null&&!ln.state.context&&ln.state.tokenize.isInText||je.md_inside&<.current().indexOf(">")>-1)&&(je.f=Ke,je.block=xe,je.htmlState=null)}return Et}function Te(lt,je){var Et=je.listStack[je.listStack.length-1]||0,ln=je.indentation<Et,Ht=Et+3;if(je.fencedEndRE&&je.indentation<=Ht&&(ln||lt.match(je.fencedEndRE))){Ve.highlightFormatting&&(je.formatting="code-block");var xt;return ln||(xt=He(je)),je.localMode=je.localState=null,je.block=xe,je.f=Ke,je.fencedEndRE=null,je.code=0,je.thisLine.fencedCodeEnd=!0,ln?ve(lt,je,je.block):xt}else return je.localMode?je.localMode.token(lt,je.localState):(lt.skipToEnd(),be.code)}function He(lt){var je=[];if(lt.formatting){je.push(be.formatting),typeof lt.formatting=="string"&&(lt.formatting=[lt.formatting]);for(var Et=0;Et<lt.formatting.length;Et++)je.push(be.formatting+"-"+lt.formatting[Et]),lt.formatting[Et]==="header"&&je.push(be.formatting+"-"+lt.formatting[Et]+"-"+lt.header),lt.formatting[Et]==="quote"&&(!Ve.maxBlockquoteDepth||Ve.maxBlockquoteDepth>=lt.quote?je.push(be.formatting+"-"+lt.formatting[Et]+"-"+lt.quote):je.push("error"))}if(lt.taskOpen)return je.push("meta"),je.length?je.join(" "):null;if(lt.taskClosed)return je.push("property"),je.length?je.join(" "):null;if(lt.linkHref?je.push(be.linkHref,"url"):(lt.strong&&je.push(be.strong),lt.em&&je.push(be.em),lt.strikethrough&&je.push(be.strikethrough),lt.emoji&&je.push(be.emoji),lt.linkText&&je.push(be.linkText),lt.code&&je.push(be.code),lt.image&&je.push(be.image),lt.imageAltText&&je.push(be.imageAltText,"link"),lt.imageMarker&&je.push(be.imageMarker)),lt.header&&je.push(be.header,be.header+"-"+lt.header),lt.quote&&(je.push(be.quote),!Ve.maxBlockquoteDepth||Ve.maxBlockquoteDepth>=lt.quote?je.push(be.quote+"-"+lt.quote):je.push(be.quote+"-"+Ve.maxBlockquoteDepth)),lt.list!==!1){var ln=(lt.listStack.length-1)%3;ln?ln===1?je.push(be.list2):je.push(be.list3):je.push(be.list1)}return lt.trailingSpaceNewLine?je.push("trailing-space-new-line"):lt.trailingSpace&&je.push("trailing-space-"+(lt.trailingSpace%2?"a":"b")),je.length?je.join(" "):null}function ze(lt,je){if(lt.match(Ee,!0))return He(je)}function Ke(lt,je){var Et=je.text(lt,je);if(typeof Et!="undefined")return Et;if(je.list)return je.list=null,He(je);if(je.taskList){var ln=lt.match(tt,!0)[1]===" ";return ln?je.taskOpen=!0:je.taskClosed=!0,Ve.highlightFormatting&&(je.formatting="task"),je.taskList=!1,He(je)}if(je.taskOpen=!1,je.taskClosed=!1,je.header&<.match(/^#+$/,!0))return Ve.highlightFormatting&&(je.formatting="header"),He(je);var Ht=lt.next();if(je.linkTitle){je.linkTitle=!1;var xt=Ht;Ht==="("&&(xt=")"),xt=(xt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Bt="^\\s*(?:[^"+xt+"\\\\]+|\\\\\\\\|\\\\.)"+xt;if(lt.match(new RegExp(Bt),!0))return be.linkHref}if(Ht==="`"){var rn=je.formatting;Ve.highlightFormatting&&(je.formatting="code"),lt.eatWhile("`");var Hn=lt.current().length;if(je.code==0&&(!je.quote||Hn==1))return je.code=Hn,He(je);if(Hn==je.code){var pn=He(je);return je.code=0,pn}else return je.formatting=rn,He(je)}else if(je.code)return He(je);if(Ht==="\\"&&(lt.next(),Ve.highlightFormatting)){var _n=He(je),Lt=be.formatting+"-escape";return _n?_n+" "+Lt:Lt}if(Ht==="!"&<.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return je.imageMarker=!0,je.image=!0,Ve.highlightFormatting&&(je.formatting="image"),He(je);if(Ht==="["&&je.imageMarker&<.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return je.imageMarker=!1,je.imageAltText=!0,Ve.highlightFormatting&&(je.formatting="image"),He(je);if(Ht==="]"&&je.imageAltText){Ve.highlightFormatting&&(je.formatting="image");var _n=He(je);return je.imageAltText=!1,je.image=!1,je.inline=je.f=Mt,_n}if(Ht==="["&&!je.image)return je.linkText&<.match(/^.*?\]/)||(je.linkText=!0,Ve.highlightFormatting&&(je.formatting="link")),He(je);if(Ht==="]"&&je.linkText){Ve.highlightFormatting&&(je.formatting="link");var _n=He(je);return je.linkText=!1,je.inline=je.f=lt.match(/\(.*?\)| ?\[.*?\]/,!1)?Mt:Ke,_n}if(Ht==="<"&<.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){je.f=je.inline=Ze,Ve.highlightFormatting&&(je.formatting="link");var _n=He(je);return _n?_n+=" ":_n="",_n+be.linkInline}if(Ht==="<"&<.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){je.f=je.inline=Ze,Ve.highlightFormatting&&(je.formatting="link");var _n=He(je);return _n?_n+=" ":_n="",_n+be.linkEmail}if(Ve.xml&&Ht==="<"&<.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Un=lt.string.indexOf(">",lt.pos);if(Un!=-1){var Gn=lt.string.substring(lt.start,Un);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Gn)&&(je.md_inside=!0)}return lt.backUp(1),je.htmlState=pe.startState(st),ve(lt,je,Le)}if(Ve.xml&&Ht==="<"&<.match(/^\/\w*?>/))return je.md_inside=!1,"tag";if(Ht==="*"||Ht==="_"){for(var ui=1,Ln=lt.pos==1?" ":lt.string.charAt(lt.pos-2);ui<3&<.eat(Ht);)ui++;var Wt=lt.peek()||" ",Vt=!/\s/.test(Wt)&&(!ue.test(Wt)||/\s/.test(Ln)||ue.test(Ln)),mt=!/\s/.test(Ln)&&(!ue.test(Ln)||/\s/.test(Wt)||ue.test(Wt)),Ye=null,Zt=null;if(ui%2&&(!je.em&&Vt&&(Ht==="*"||!mt||ue.test(Ln))?Ye=!0:je.em==Ht&&mt&&(Ht==="*"||!Vt||ue.test(Wt))&&(Ye=!1)),ui>1&&(!je.strong&&Vt&&(Ht==="*"||!mt||ue.test(Ln))?Zt=!0:je.strong==Ht&&mt&&(Ht==="*"||!Vt||ue.test(Wt))&&(Zt=!1)),Zt!=null||Ye!=null){Ve.highlightFormatting&&(je.formatting=Ye==null?"strong":Zt==null?"em":"strong em"),Ye===!0&&(je.em=Ht),Zt===!0&&(je.strong=Ht);var pn=He(je);return Ye===!1&&(je.em=!1),Zt===!1&&(je.strong=!1),pn}}else if(Ht===" "&&(lt.eat("*")||lt.eat("_"))){if(lt.peek()===" ")return He(je);lt.backUp(1)}if(Ve.strikethrough){if(Ht==="~"&<.eatWhile(Ht)){if(je.strikethrough){Ve.highlightFormatting&&(je.formatting="strikethrough");var pn=He(je);return je.strikethrough=!1,pn}else if(lt.match(/^[^\s]/,!1))return je.strikethrough=!0,Ve.highlightFormatting&&(je.formatting="strikethrough"),He(je)}else if(Ht===" "&<.match(/^~~/,!0)){if(lt.peek()===" ")return He(je);lt.backUp(2)}}if(Ve.emoji&&Ht===":"&<.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){je.emoji=!0,Ve.highlightFormatting&&(je.formatting="emoji");var Gt=He(je);return je.emoji=!1,Gt}return Ht===" "&&(lt.match(/^ +$/,!1)?je.trailingSpace++:je.trailingSpace&&(je.trailingSpaceNewLine=!0)),He(je)}function Ze(lt,je){var Et=lt.next();if(Et===">"){je.f=je.inline=Ke,Ve.highlightFormatting&&(je.formatting="link");var ln=He(je);return ln?ln+=" ":ln="",ln+be.linkInline}return lt.match(/^[^>]+/,!0),be.linkInline}function Mt(lt,je){if(lt.eatSpace())return null;var Et=lt.next();return Et==="("||Et==="["?(je.f=je.inline=Ft(Et==="("?")":"]"),Ve.highlightFormatting&&(je.formatting="link-string"),je.linkHref=!0,He(je)):"error"}var Xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ft(lt){return function(je,Et){var ln=je.next();if(ln===lt){Et.f=Et.inline=Ke,Ve.highlightFormatting&&(Et.formatting="link-string");var Ht=He(Et);return Et.linkHref=!1,Ht}return je.match(Xe[lt]),Et.linkHref=!0,He(Et)}}function Ct(lt,je){return lt.match(/^([^\]\\]|\\.)*\]:/,!1)?(je.f=Nt,lt.next(),Ve.highlightFormatting&&(je.formatting="link"),je.linkText=!0,He(je)):de(lt,je,Ke)}function Nt(lt,je){if(lt.match(/^\]:/,!0)){je.f=je.inline=It,Ve.highlightFormatting&&(je.formatting="link");var Et=He(je);return je.linkText=!1,Et}return lt.match(/^([^\]\\]|\\.)+/,!0),be.linkText}function It(lt,je){return lt.eatSpace()?null:(lt.match(/^[^\s]+/,!0),lt.peek()===void 0?je.linkTitle=!0:lt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),je.f=je.inline=Ke,be.linkHref+" url")}var _t={startState:function(){return{f:xe,prevLine:{stream:null},thisLine:{stream:null},block:xe,htmlState:null,indentation:0,inline:Ke,text:ze,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(lt){return{f:lt.f,prevLine:lt.prevLine,thisLine:lt.thisLine,block:lt.block,htmlState:lt.htmlState&&pe.copyState(st,lt.htmlState),indentation:lt.indentation,localMode:lt.localMode,localState:lt.localMode?pe.copyState(lt.localMode,lt.localState):null,inline:lt.inline,text:lt.text,formatting:!1,linkText:lt.linkText,linkTitle:lt.linkTitle,linkHref:lt.linkHref,code:lt.code,em:lt.em,strong:lt.strong,strikethrough:lt.strikethrough,emoji:lt.emoji,header:lt.header,setext:lt.setext,hr:lt.hr,taskList:lt.taskList,list:lt.list,listStack:lt.listStack.slice(0),quote:lt.quote,indentedCode:lt.indentedCode,trailingSpace:lt.trailingSpace,trailingSpaceNewLine:lt.trailingSpaceNewLine,md_inside:lt.md_inside,fencedEndRE:lt.fencedEndRE}},token:function(lt,je){if(je.formatting=!1,lt!=je.thisLine.stream){if(je.header=0,je.hr=!1,lt.match(/^\s*$/,!0))return Ae(je),null;if(je.prevLine=je.thisLine,je.thisLine={stream:lt},je.taskList=!1,je.trailingSpace=0,je.trailingSpaceNewLine=!1,!je.localState&&(je.f=je.block,je.f!=Le)){var Et=lt.match(/^\s*/,!0)[0].replace(/\t/g,ae).length;if(je.indentation=Et,je.indentationDiff=null,Et>0)return null}}return je.f(lt,je)},innerMode:function(lt){return lt.block==Le?{state:lt.htmlState,mode:st}:lt.localState?{state:lt.localState,mode:lt.localMode}:{state:lt,mode:_t}},indent:function(lt,je,Et){return lt.block==Le&&st.indent?st.indent(lt.htmlState,je,Et):lt.localState&<.localMode.indent?lt.localMode.indent(lt.localState,je,Et):pe.Pass},blankLine:Ae,getType:He,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return _t},"xml"),pe.defineMIME("text/markdown","markdown"),pe.defineMIME("text/x-markdown","markdown")})},98101:function(gn,zt,he){(function(pe){pe(he(89780))})(function(pe){"use strict";pe.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 Ie=0;Ie<pe.modeInfo.length;Ie++){var Ve=pe.modeInfo[Ie];Ve.mimes&&(Ve.mime=Ve.mimes[0])}pe.findModeByMIME=function(st){st=st.toLowerCase();for(var We=0;We<pe.modeInfo.length;We++){var it=pe.modeInfo[We];if(it.mime==st)return it;if(it.mimes){for(var be=0;be<it.mimes.length;be++)if(it.mimes[be]==st)return it}}if(/\+xml$/.test(st))return pe.findModeByMIME("application/xml");if(/\+json$/.test(st))return pe.findModeByMIME("application/json")},pe.findModeByExtension=function(st){st=st.toLowerCase();for(var We=0;We<pe.modeInfo.length;We++){var it=pe.modeInfo[We];if(it.ext){for(var be=0;be<it.ext.length;be++)if(it.ext[be]==st)return it}}},pe.findModeByFileName=function(st){for(var We=0;We<pe.modeInfo.length;We++){var it=pe.modeInfo[We];if(it.file&&it.file.test(st))return it}var be=st.lastIndexOf("."),yt=be>-1&&st.substring(be+1,st.length);if(yt)return pe.findModeByExtension(yt)},pe.findModeByName=function(st){st=st.toLowerCase();for(var We=0;We<pe.modeInfo.length;We++){var it=pe.modeInfo[We];if(it.name.toLowerCase()==st)return it;if(it.alias){for(var be=0;be<it.alias.length;be++)if(it.alias[be].toLowerCase()==st)return it}}}})},67549:function(gn,zt,he){(function(pe){pe(he(89780))})(function(pe){"use strict";pe.defineMode("stex",function(Ie,Ve){"use strict";function st(Ee,ee){Ee.cmdState.push(ee)}function We(Ee){return Ee.cmdState.length>0?Ee.cmdState[Ee.cmdState.length-1]:null}function it(Ee){var ee=Ee.cmdState.pop();ee&&ee.closeBracket()}function be(Ee){for(var ee=Ee.cmdState,te=ee.length-1;te>=0;te--){var ue=ee[te];if(ue.name!="DEFAULT")return ue}return{styleIdentifier:function(){return null}}}function yt(Ee,ee,te){return function(){this.name=Ee,this.bracketNo=0,this.style=ee,this.styles=te,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var vt={};vt.importmodule=yt("importmodule","tag",["string","builtin"]),vt.documentclass=yt("documentclass","tag",["","atom"]),vt.usepackage=yt("usepackage","tag",["atom"]),vt.begin=yt("begin","tag",["atom"]),vt.end=yt("end","tag",["atom"]),vt.label=yt("label","tag",["atom"]),vt.ref=yt("ref","tag",["atom"]),vt.eqref=yt("eqref","tag",["atom"]),vt.cite=yt("cite","tag",["atom"]),vt.bibitem=yt("bibitem","tag",["atom"]),vt.Bibitem=yt("Bibitem","tag",["atom"]),vt.RBibitem=yt("RBibitem","tag",["atom"]),vt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Je(Ee,ee){Ee.f=ee}function tt(Ee,ee){var te;if(Ee.match(/^\\[a-zA-Z@]+/)){var ue=Ee.current().slice(1);return te=vt.hasOwnProperty(ue)?vt[ue]:vt.DEFAULT,te=new te,st(ee,te),Je(ee,Qe),te.style}if(Ee.match(/^\\[$&%#{}_]/)||Ee.match(/^\\[,;!\/\\]/))return"tag";if(Ee.match("\\["))return Je(ee,function(de,ve){return $e(de,ve,"\\]")}),"keyword";if(Ee.match("\\("))return Je(ee,function(de,ve){return $e(de,ve,"\\)")}),"keyword";if(Ee.match("$$"))return Je(ee,function(de,ve){return $e(de,ve,"$$")}),"keyword";if(Ee.match("$"))return Je(ee,function(de,ve){return $e(de,ve,"$")}),"keyword";var ae=Ee.next();if(ae=="%")return Ee.skipToEnd(),"comment";if(ae=="}"||ae=="]"){if(te=We(ee),te)te.closeBracket(ae),Je(ee,Qe);else return"error";return"bracket"}else return ae=="{"||ae=="["?(te=vt.DEFAULT,te=new te,st(ee,te),"bracket"):/\d/.test(ae)?(Ee.eatWhile(/[\w.%]/),"atom"):(Ee.eatWhile(/[\w\-_]/),te=be(ee),te.name=="begin"&&(te.argument=Ee.current()),te.styleIdentifier())}function $e(Ee,ee,te){if(Ee.eatSpace())return null;if(te&&Ee.match(te))return Je(ee,tt),"keyword";if(Ee.match(/^\\[a-zA-Z@]+/))return"tag";if(Ee.match(/^[a-zA-Z]+/))return"variable-2";if(Ee.match(/^\\[$&%#{}_]/)||Ee.match(/^\\[,;!\/]/)||Ee.match(/^[\^_&]/))return"tag";if(Ee.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ee.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ue=Ee.next();return ue=="{"||ue=="}"||ue=="["||ue=="]"||ue=="("||ue==")"?"bracket":ue=="%"?(Ee.skipToEnd(),"comment"):"error"}function Qe(Ee,ee){var te=Ee.peek(),ue;return te=="{"||te=="["?(ue=We(ee),ue.openBracket(te),Ee.eat(te),Je(ee,tt),"bracket"):/[ \t\r]/.test(te)?(Ee.eat(te),null):(Je(ee,tt),it(ee),tt(Ee,ee))}return{startState:function(){var Ee=Ve.inMathMode?function(ee,te){return $e(ee,te)}:tt;return{cmdState:[],f:Ee}},copyState:function(Ee){return{cmdState:Ee.cmdState.slice(),f:Ee.f}},token:function(Ee,ee){return ee.f(Ee,ee)},blankLine:function(Ee){Ee.f=tt,Ee.cmdState.length=0},lineComment:"%"}}),pe.defineMIME("text/x-stex","stex"),pe.defineMIME("text/x-latex","stex")})},15525:function(gn,zt,he){(function(pe){pe(he(89780))})(function(pe){"use strict";var Ie={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},Ve={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};pe.defineMode("xml",function(st,We){var it=st.indentUnit,be={},yt=We.htmlMode?Ie:Ve;for(var vt in yt)be[vt]=yt[vt];for(var vt in We)be[vt]=We[vt];var Je,tt;function $e(Ze,Mt){function Xe(Nt){return Mt.tokenize=Nt,Nt(Ze,Mt)}var Ft=Ze.next();if(Ft=="<")return Ze.eat("!")?Ze.eat("[")?Ze.match("CDATA[")?Xe(ee("atom","]]>")):null:Ze.match("--")?Xe(ee("comment","-->")):Ze.match("DOCTYPE",!0,!0)?(Ze.eatWhile(/[\w\._\-]/),Xe(te(1))):null:Ze.eat("?")?(Ze.eatWhile(/[\w\._\-]/),Mt.tokenize=ee("meta","?>"),"meta"):(Je=Ze.eat("/")?"closeTag":"openTag",Mt.tokenize=Qe,"tag bracket");if(Ft=="&"){var Ct;return Ze.eat("#")?Ze.eat("x")?Ct=Ze.eatWhile(/[a-fA-F\d]/)&&Ze.eat(";"):Ct=Ze.eatWhile(/[\d]/)&&Ze.eat(";"):Ct=Ze.eatWhile(/[\w\.\-:]/)&&Ze.eat(";"),Ct?"atom":"error"}else return Ze.eatWhile(/[^&<]/),null}$e.isInText=!0;function Qe(Ze,Mt){var Xe=Ze.next();if(Xe==">"||Xe=="/"&&Ze.eat(">"))return Mt.tokenize=$e,Je=Xe==">"?"endTag":"selfcloseTag","tag bracket";if(Xe=="=")return Je="equals",null;if(Xe=="<"){Mt.tokenize=$e,Mt.state=ve,Mt.tagName=Mt.tagStart=null;var Ft=Mt.tokenize(Ze,Mt);return Ft?Ft+" tag error":"tag error"}else return/[\'\"]/.test(Xe)?(Mt.tokenize=Ee(Xe),Mt.stringStartCol=Ze.column(),Mt.tokenize(Ze,Mt)):(Ze.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ee(Ze){var Mt=function(Xe,Ft){for(;!Xe.eol();)if(Xe.next()==Ze){Ft.tokenize=Qe;break}return"string"};return Mt.isInAttribute=!0,Mt}function ee(Ze,Mt){return function(Xe,Ft){for(;!Xe.eol();){if(Xe.match(Mt)){Ft.tokenize=$e;break}Xe.next()}return Ze}}function te(Ze){return function(Mt,Xe){for(var Ft;(Ft=Mt.next())!=null;){if(Ft=="<")return Xe.tokenize=te(Ze+1),Xe.tokenize(Mt,Xe);if(Ft==">")if(Ze==1){Xe.tokenize=$e;break}else return Xe.tokenize=te(Ze-1),Xe.tokenize(Mt,Xe)}return"meta"}}function ue(Ze,Mt,Xe){this.prev=Ze.context,this.tagName=Mt,this.indent=Ze.indented,this.startOfLine=Xe,(be.doNotIndent.hasOwnProperty(Mt)||Ze.context&&Ze.context.noIndent)&&(this.noIndent=!0)}function ae(Ze){Ze.context&&(Ze.context=Ze.context.prev)}function de(Ze,Mt){for(var Xe;;){if(!Ze.context||(Xe=Ze.context.tagName,!be.contextGrabbers.hasOwnProperty(Xe)||!be.contextGrabbers[Xe].hasOwnProperty(Mt)))return;ae(Ze)}}function ve(Ze,Mt,Xe){return Ze=="openTag"?(Xe.tagStart=Mt.column(),Pe):Ze=="closeTag"?Ae:ve}function Pe(Ze,Mt,Xe){return Ze=="word"?(Xe.tagName=Mt.current(),tt="tag",Te):be.allowMissingTagName&&Ze=="endTag"?(tt="tag bracket",Te(Ze,Mt,Xe)):(tt="error",Pe)}function Ae(Ze,Mt,Xe){if(Ze=="word"){var Ft=Mt.current();return Xe.context&&Xe.context.tagName!=Ft&&be.implicitlyClosed.hasOwnProperty(Xe.context.tagName)&&ae(Xe),Xe.context&&Xe.context.tagName==Ft||be.matchClosing===!1?(tt="tag",xe):(tt="tag error",Le)}else return be.allowMissingTagName&&Ze=="endTag"?(tt="tag bracket",xe(Ze,Mt,Xe)):(tt="error",Le)}function xe(Ze,Mt,Xe){return Ze!="endTag"?(tt="error",xe):(ae(Xe),ve)}function Le(Ze,Mt,Xe){return tt="error",xe(Ze,Mt,Xe)}function Te(Ze,Mt,Xe){if(Ze=="word")return tt="attribute",He;if(Ze=="endTag"||Ze=="selfcloseTag"){var Ft=Xe.tagName,Ct=Xe.tagStart;return Xe.tagName=Xe.tagStart=null,Ze=="selfcloseTag"||be.autoSelfClosers.hasOwnProperty(Ft)?de(Xe,Ft):(de(Xe,Ft),Xe.context=new ue(Xe,Ft,Ct==Xe.indented)),ve}return tt="error",Te}function He(Ze,Mt,Xe){return Ze=="equals"?ze:(be.allowMissing||(tt="error"),Te(Ze,Mt,Xe))}function ze(Ze,Mt,Xe){return Ze=="string"?Ke:Ze=="word"&&be.allowUnquoted?(tt="string",Te):(tt="error",Te(Ze,Mt,Xe))}function Ke(Ze,Mt,Xe){return Ze=="string"?Ke:Te(Ze,Mt,Xe)}return{startState:function(Ze){var Mt={tokenize:$e,state:ve,indented:Ze||0,tagName:null,tagStart:null,context:null};return Ze!=null&&(Mt.baseIndent=Ze),Mt},token:function(Ze,Mt){if(!Mt.tagName&&Ze.sol()&&(Mt.indented=Ze.indentation()),Ze.eatSpace())return null;Je=null;var Xe=Mt.tokenize(Ze,Mt);return(Xe||Je)&&Xe!="comment"&&(tt=null,Mt.state=Mt.state(Je||Xe,Ze,Mt),tt&&(Xe=tt=="error"?Xe+" error":tt)),Xe},indent:function(Ze,Mt,Xe){var Ft=Ze.context;if(Ze.tokenize.isInAttribute)return Ze.tagStart==Ze.indented?Ze.stringStartCol+1:Ze.indented+it;if(Ft&&Ft.noIndent)return pe.Pass;if(Ze.tokenize!=Qe&&Ze.tokenize!=$e)return Xe?Xe.match(/^(\s*)/)[0].length:0;if(Ze.tagName)return be.multilineTagIndentPastTag!==!1?Ze.tagStart+Ze.tagName.length+2:Ze.tagStart+it*(be.multilineTagIndentFactor||1);if(be.alignCDATA&&/<!\[CDATA\[/.test(Mt))return 0;var Ct=Mt&&/^<(\/)?([\w_:\.-]*)/.exec(Mt);if(Ct&&Ct[1])for(;Ft;)if(Ft.tagName==Ct[2]){Ft=Ft.prev;break}else if(be.implicitlyClosed.hasOwnProperty(Ft.tagName))Ft=Ft.prev;else break;else if(Ct)for(;Ft;){var Nt=be.contextGrabbers[Ft.tagName];if(Nt&&Nt.hasOwnProperty(Ct[2]))Ft=Ft.prev;else break}for(;Ft&&Ft.prev&&!Ft.startOfLine;)Ft=Ft.prev;return Ft?Ft.indent+it:Ze.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:be.htmlMode?"html":"xml",helperType:be.htmlMode?"html":"xml",skipAttribute:function(Ze){Ze.state==ze&&(Ze.state=Te)},xmlCurrentTag:function(Ze){return Ze.tagName?{name:Ze.tagName,close:Ze.type=="closeTag"}:null},xmlCurrentContext:function(Ze){for(var Mt=[],Xe=Ze.context;Xe;Xe=Xe.prev)Xe.tagName&&Mt.push(Xe.tagName);return Mt.reverse()}}}),pe.defineMIME("text/xml","xml"),pe.defineMIME("application/xml","xml"),pe.mimeModes.hasOwnProperty("text/html")||pe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(gn,zt,he){"use strict";he.d(zt,{$u:function(){return vt},BD:function(){return ui},E9:function(){return yt},FF:function(){return Ci},FJ:function(){return ve},Hn:function(){return de},KX:function(){return Ae},NB:function(){return Oe},S0:function(){return Lt},UL:function(){return Je},Vk:function(){return ae},Vm:function(){return ye},YI:function(){return Un},ZA:function(){return Ve},Zt:function(){return tt},al:function(){return Ye},bn:function(){return mt},bx:function(){return Ln},g2:function(){return Gn},h1:function(){return ze},hD:function(){return $n},l4:function(){return it},rU:function(){return we},s_:function(){return Wt},uz:function(){return nt},z6:function(){return $e}}),gn=he.hmd(gn),function(){var De;function Yr(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function yr(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Yr(a)}}function Dr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var lo=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Wo;if(typeof Object.setPrototypeOf=="function")Wo=Object.setPrototypeOf;else{var No;e:{var ki={a:!0},an={};try{an.__proto__=ki,No=an.a;break e}catch(a){}No=!1}Wo=No?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var nn=Wo;function Ut(a,y){if(a.prototype=lo(y.prototype),a.prototype.constructor=a,nn)nn(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var bt=typeof he.g!="undefined"&&he.g!=null?he.g:self,xn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},hn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Tt(a,y){if(y){var x=bt;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&hn(x,a,{writable:!0,value:y})}}Tt("Object.assign",function(a){return a||xn}),Tt("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var ot=typeof globalThis=="object"&&globalThis||typeof he.g=="object"&&he.g.global===he.g&&he.g||typeof self=="object"&&self.self===self&&self||{};ot.requestAnimationFrame===void 0&&(ot.setImmediate===void 0?ot.requestAnimationFrame=function(a){ot.setTimeout(a,0)}:ot.requestAnimationFrame=ot.setImmediate);function fn(){}function yn(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&ot.clearTimeout(x),x=li(function(){x=-1,a.apply(E,b)},y)}}function li(a,y){return ot.setTimeout(a,y)}function vn(a){return ot.document.createElement(a)}function at(a){throw Error(a)}function Bn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),at(a)}function pi(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),at(x+" is not in the range "+y+": "+a)}function Li(a){ot.console&&ot.console.log(a)}function qt(a){return typeof a=="object"&&a!==null}function Nn(a){return Array.isArray(a)||ot.NodeList&&a instanceof ot.NodeList||ot.HTMLCollection&&a instanceof ot.HTMLCollection}function on(a){return Array.prototype.slice.call(a)}function Sn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):at("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Fn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):at("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function En(){var a=rr.pop();return a===void 0?[]:a}function kn(a){a.length=0,rr.push(a)}function Zn(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(qt(a)&&a.constructor)return Zn(a.constructor);return typeof a}function Jn(a){var y=a;return qt(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 si(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Tn(a,y,x){Object.defineProperty(ei.prototype,a,{get:y,set:x})}function mi(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 E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",ne=0;ne<a.length;ne++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(ne)^y[(y[x]+y[E])%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 nr=ot.navigator!==void 0&&0<ot.navigator.userAgent.indexOf("Trident/7"),Br=ot.navigator!==void 0&&ot.navigator.platform!==void 0&&ot.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,rr=[];Object.freeze([]),fn.className="Util",fn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",fn.adym="gojs.net",fn.vfo="28e645fdb266",fn.className="Util";function Jt(a,y,x){Hr(this),this.j=a,this.xa=y,this.o=x}Jt.prototype.toString=function(){return"EnumValue."+this.xa};function Fi(a,y){return y==null||y===""?null:a[y]}bt.Object.defineProperties(Jt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Jt.className="EnumValue";function Si(){this.ew=[]}Si.prototype.toString=function(){return this.ew.join("")},Si.prototype.add=function(a){a!==""&&this.ew.push(a)},Si.className="StringBuilder";function Wi(){}Wi.className="PropertyCollection";var Nr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){ot.console&&ot.console.log(a)},HA:function(a,y,x,E){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(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(ne,re){return function(){throw Error("Property "+ne.Zl[re.Tj]+" of "+ne.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function br(){}br.prototype.reset=function(){},br.prototype.next=function(){return!1},br.prototype.Ad=function(){return!1},br.prototype.first=function(){return null},br.prototype.any=function(){return!1},br.prototype.all=function(){return!0},br.prototype.each=function(){return this},br.prototype.map=function(){return this},br.prototype.filter=function(){return this},br.prototype.de=function(){},br.prototype.toString=function(){return"EmptyIterator"},bt.Object.defineProperties(br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),br.prototype.first=br.prototype.first,br.prototype.hasNext=br.prototype.Ad,br.prototype.next=br.prototype.next,br.prototype.reset=br.prototype.reset;var Ir=null;br.className="EmptyIterator",Ir=new br;function hr(a){this.key=-1,this.value=a}hr.prototype.reset=function(){this.key=-1},hr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},hr.prototype.Ad=function(){return this.next()},hr.prototype.first=function(){return this.key=0,this.value},hr.prototype.any=function(a){return this.key=-1,a(this.value)},hr.prototype.all=function(a){return this.key=-1,a(this.value)},hr.prototype.each=function(a){return this.key=-1,a(this.value),this},hr.prototype.map=function(a){return new hr(a(this.value))},hr.prototype.filter=function(a){return a(this.value)?new hr(this.value):Ir},hr.prototype.de=function(){this.value=null},hr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},bt.Object.defineProperties(hr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),hr.prototype.first=hr.prototype.first,hr.prototype.hasNext=hr.prototype.Ad,hr.prototype.next=hr.prototype.next,hr.prototype.reset=hr.prototype.reset,hr.className="SingletonIterator";function Ui(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Ui.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Ui.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,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Ui.prototype.Ad=function(){return this.next()},Ui.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 E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Ui.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},Ui.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},Ui.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},Ui.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ne=y[z];(b===null||b(ne))&&x.push(a(ne))}return a=new An,a.s=x,a.xb(),a.iterator},Ui.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ne=y[z];(b===null||b(ne))&&a(ne)&&x.push(ne)}return a=new An,a.s=x,a.xb(),a.iterator},Ui.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Ui.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},bt.Object.defineProperties(Ui.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,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),Ui.prototype.first=Ui.prototype.first,Ui.prototype.hasNext=Ui.prototype.Ad,Ui.prototype.next=Ui.prototype.next,Ui.prototype.reset=Ui.prototype.reset,Ui.className="ListIterator";function Jr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Jr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Jr.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)},Jr.prototype.Ad=function(){return this.next()},Jr.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},Jr.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},Jr.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},Jr.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},Jr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new An,a.s=x,a.xb(),a.iterator},Jr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new An,a.s=x,a.xb(),a.iterator},Jr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Jr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},bt.Object.defineProperties(Jr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Jr.prototype.first=Jr.prototype.first,Jr.prototype.hasNext=Jr.prototype.Ad,Jr.prototype.next=Jr.prototype.next,Jr.prototype.reset=Jr.prototype.reset,Jr.className="ListIteratorBackwards";function An(a){Hr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&at("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}De=An.prototype,De.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.toString=function(){return"List()#"+yo(this)},De.add=function(a){return a===null?this:(this._isFrozen&&Bn(this,a),this.s.push(a),this.xb(),this)},De.push=function(a){this.add(a)},De.addAll=function(a){if(a===null)return this;this._isFrozen&&Bn(this);var y=this.s;if(Nn(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},De.clear=function(){this._isFrozen&&Bn(this),this.s.length=0,this.xb()},De.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},De.has=function(a){return this.contains(a)},De.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},De.M=function(a){var y=this.s;return(0>a||a>=y.length)&&pi(a,"0 <= i < length",An,"elt:i"),y[a]},De.get=function(a){return this.M(a)},De.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&pi(a,"0 <= i < length",An,"setElt:i"),this._isFrozen&&Bn(this,a),x[a]=y},De.set=function(a,y){this.cd(a,y)},De.first=function(){var a=this.s;return a.length===0?null:a[0]},De.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},De.pop=function(){this._isFrozen&&Bn(this);var a=this.s;return 0<a.length?a.pop():null},An.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},An.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},An.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},An.prototype.map=function(a){for(var y=new An,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},An.prototype.filter=function(a){for(var y=new An,x=[],E=this.s,b=E.length,z=0;z<b;z++){var ne=E[z];a(ne)&&x.push(ne)}return y.s=x,y.xb(),y},De=An.prototype,De.Gb=function(a,y){0>a&&pi(a,">= 0",An,"insertAt:i"),this._isFrozen&&Bn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},De.remove=function(a){if(a===null)return!1;this._isFrozen&&Bn(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)},De.delete=function(a){return this.remove(a)},De.mb=function(a){var y=this.s;(0>a||a>=y.length)&&pi(a,"0 <= i < length",An,"removeAt:i"),this._isFrozen&&Bn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},De.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&Bn(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},An.prototype.copy=function(){var a=new An,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},De=An.prototype,De.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},De.Iv=function(){for(var a=new Wn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},De.sort=function(a){return this._isFrozen&&Bn(this),this.s.sort(a),this.xb(),this},De.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&Bn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&pi(y,"0 <= from < length",An,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},De.reverse=function(){return this._isFrozen&&Bn(this),this.s.reverse(),this.xb(),this},bt.Object.defineProperties(An.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 Ir;var a=this.Sa;return a!==null?(a.reset(),a):new Ui(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Ir;var a=this.Hg;return a!==null?(a.reset(),a):new Jr(this)}}}),An.prototype.reverse=An.prototype.reverse,An.prototype.sortRange=An.prototype.zi,An.prototype.sort=An.prototype.sort,An.prototype.toSet=An.prototype.Iv,An.prototype.toArray=An.prototype.Fa,An.prototype.removeRange=An.prototype.removeRange,An.prototype.removeAt=An.prototype.mb,An.prototype.delete=An.prototype.delete,An.prototype.remove=An.prototype.remove,An.prototype.insertAt=An.prototype.Gb,An.prototype.pop=An.prototype.pop,An.prototype.last=An.prototype.jc,An.prototype.first=An.prototype.first,An.prototype.set=An.prototype.set,An.prototype.setElt=An.prototype.cd,An.prototype.get=An.prototype.get,An.prototype.elt=An.prototype.M,An.prototype.indexOf=An.prototype.indexOf,An.prototype.has=An.prototype.has,An.prototype.contains=An.prototype.contains,An.prototype.clear=An.prototype.clear,An.prototype.addAll=An.prototype.addAll,An.prototype.push=An.prototype.push,An.prototype.add=An.prototype.add,An.prototype.thaw=An.prototype.ka,An.prototype.freeze=An.prototype.freeze,An.className="List";function Co(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Co.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Co.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)},Co.prototype.Ad=function(){return this.next()},Co.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},Co.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},Co.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},Co.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},Co.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Co.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new An;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Co.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Co.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},bt.Object.defineProperties(Co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Co.prototype.first=Co.prototype.first,Co.prototype.hasNext=Co.prototype.Ad,Co.prototype.next=Co.prototype.next,Co.prototype.reset=Co.prototype.reset,Co.className="SetIterator";function Wn(a){Hr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&at("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}De=Wn.prototype,De.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.toString=function(){return"Set()#"+yo(this)},De.add=function(a){if(a===null)return this;this._isFrozen&&Bn(this,a);var y=a;return qt(a)&&(y=ha(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Ar(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},De.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Bn(this),Nn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},De.contains=function(a){if(a===null)return!1;var y=a;return qt(a)&&(y=yo(a),y===void 0)?!1:this.Tb[y]!==void 0},De.has=function(a){return this.contains(a)},De.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},De.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},De.first=function(){var a=this.ea;return a===null?null:a.value},Wn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Wn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Wn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Wn.prototype.map=function(a){for(var y=new Wn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Wn.prototype.filter=function(a){for(var y=new Wn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},De=Wn.prototype,De.remove=function(a){if(a===null)return!1;this._isFrozen&&Bn(this,a);var y=a;if(qt(a)&&(y=yo(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},De.delete=function(a){return this.remove(a)},De.hp=function(a){if(a===null)return this;if(this._isFrozen&&Bn(this),Nn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},De.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Bn(this);var y=new Wn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},De.clear=function(){this._isFrozen&&Bn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Wn.prototype.copy=function(){var a=new Wn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Wn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},Wn.prototype.Hv=function(){var a=new An,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Hr(a){a.__gohashid=Ot++}function ha(a){var y=a.__gohashid;return y===void 0&&(y=Ot++,a.__gohashid=y),y}function yo(a){return a.__gohashid}bt.Object.defineProperties(Wn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Ir;var a=this.Sa;return a!==null?(a.reset(),a):new Co(this)}}}),Wn.prototype.toList=Wn.prototype.Hv,Wn.prototype.toArray=Wn.prototype.Fa,Wn.prototype.clear=Wn.prototype.clear,Wn.prototype.retainAll=Wn.prototype.pA,Wn.prototype.removeAll=Wn.prototype.hp,Wn.prototype.delete=Wn.prototype.delete,Wn.prototype.remove=Wn.prototype.remove,Wn.prototype.first=Wn.prototype.first,Wn.prototype.containsAny=Wn.prototype.Ty,Wn.prototype.containsAll=Wn.prototype.Sy,Wn.prototype.has=Wn.prototype.has,Wn.prototype.contains=Wn.prototype.contains,Wn.prototype.addAll=Wn.prototype.addAll,Wn.prototype.add=Wn.prototype.add,Wn.prototype.thaw=Wn.prototype.ka,Wn.prototype.freeze=Wn.prototype.freeze;var Ot=1;Wn.className="Set",Wn.uniqueHash=Hr,Wn.hashIdUnique=ha,Wn.hashId=yo;function di(a){this.ma=a,this.qa=a.Ja,this.sa=null}di.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},di.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)},di.prototype.Ad=function(){return this.next()},di.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},di.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},di.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},di.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},di.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},di.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new An;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},di.prototype.de=function(){this.value=this.key=null,this.qa=-1},di.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},bt.Object.defineProperties(di.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),di.prototype.first=di.prototype.first,di.prototype.hasNext=di.prototype.Ad,di.prototype.next=di.prototype.next,di.prototype.reset=di.prototype.reset,di.className="MapKeySetIterator";function Mn(a){Wn.call(this),Hr(this),this._isFrozen=!0,this.ma=a}Ut(Mn,Wn),De=Mn.prototype,De.freeze=function(){return this},De.ka=function(){return this},De.toString=function(){return"MapKeySet("+this.ma.toString()+")"},De.add=function(){at("This Set is read-only: "+this.toString())},De.contains=function(a){return this.ma.contains(a)},De.has=function(a){return this.contains(a)},De.remove=function(){at("This Set is read-only: "+this.toString())},De.delete=function(a){return this.remove(a)},De.clear=function(){at("This Set is read-only: "+this.toString())},De.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Mn.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Mn.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Mn.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Mn.prototype.map=function(a){for(var y=new Wn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Mn.prototype.filter=function(a){for(var y=new Wn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Mn.prototype.copy=function(){return new Mn(this.ma)},Mn.prototype.Iv=function(){var a=new Wn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Mn.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Mn.prototype.Hv=function(){var a=new An,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},bt.Object.defineProperties(Mn.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Ir:new di(this.ma)}}}),Mn.prototype.toList=Mn.prototype.Hv,Mn.prototype.toArray=Mn.prototype.Fa,Mn.prototype.toSet=Mn.prototype.Iv,Mn.prototype.first=Mn.prototype.first,Mn.prototype.clear=Mn.prototype.clear,Mn.prototype.delete=Mn.prototype.delete,Mn.prototype.remove=Mn.prototype.remove,Mn.prototype.has=Mn.prototype.has,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.add=Mn.prototype.add,Mn.prototype.thaw=Mn.prototype.ka,Mn.prototype.freeze=Mn.prototype.freeze,Mn.className="MapKeySet";function qn(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}qn.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},qn.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)},qn.prototype.Ad=function(){return this.next()},qn.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},qn.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},qn.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},qn.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},qn.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},qn.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new An;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},qn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},qn.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},bt.Object.defineProperties(qn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),qn.prototype.first=qn.prototype.first,qn.prototype.hasNext=qn.prototype.Ad,qn.prototype.next=qn.prototype.next,qn.prototype.reset=qn.prototype.reset,qn.className="MapValueSetIterator";function Ar(a,y){this.key=a,this.value=y,this.ll=this.va=null}Ar.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Ar.className="KeyValuePair";function Sr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Sr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Sr.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)},Sr.prototype.Ad=function(){return this.next()},Sr.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},Sr.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},Sr.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},Sr.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},Sr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new An;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Sr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new An;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Sr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Sr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},bt.Object.defineProperties(Sr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Sr.prototype.first=Sr.prototype.first,Sr.prototype.hasNext=Sr.prototype.Ad,Sr.prototype.next=Sr.prototype.next,Sr.prototype.reset=Sr.prototype.reset,Sr.className="MapIterator";function Kn(a){Hr(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"&&at("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}De=Kn.prototype,De.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.toString=function(){return"Map()#"+yo(this)},De.add=function(a,y){this._isFrozen&&Bn(this,a);var x=a;qt(a)&&(x=ha(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new Ar(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()):E.value=y,this},De.set=function(a,y){return this.add(a,y)},De.addAll=function(a){if(a===null)return this;if(Nn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof Kn)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},De.first=function(){return this.ea},Kn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Kn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Kn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Kn.prototype.map=function(a){for(var y=new Kn,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Kn.prototype.filter=function(a){for(var y=new Kn,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},De=Kn.prototype,De.contains=function(a){var y=a;return qt(a)&&(y=yo(a),y===void 0)?!1:this.Tb[y]!==void 0},De.has=function(a){return this.contains(a)},De.I=function(a){var y=a;return qt(a)&&(y=yo(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},De.get=function(a){return this.I(a)},De.remove=function(a){if(a===null)return!1;this._isFrozen&&Bn(this,a);var y=a;if(qt(a)&&(y=yo(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},De.delete=function(a){return this.remove(a)},De.clear=function(){this._isFrozen&&Bn(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()},Kn.prototype.copy=function(){var a=new Kn,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},Kn.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new Ar(b.key,b.value),x++}return y},Kn.prototype.Lf=function(){return new Mn(this)},bt.Object.defineProperties(Kn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Ir;var a=this.Sa;return a!==null?(a.reset(),a):new Sr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Ir:new di(this)}},iteratorValues:{get:function(){if(0>=this.count)return Ir;var a=this.jf;return a!==null?(a.reset(),a):new qn(this)}}}),Kn.prototype.toKeySet=Kn.prototype.Lf,Kn.prototype.toArray=Kn.prototype.Fa,Kn.prototype.clear=Kn.prototype.clear,Kn.prototype.delete=Kn.prototype.delete,Kn.prototype.remove=Kn.prototype.remove,Kn.prototype.get=Kn.prototype.get,Kn.prototype.getValue=Kn.prototype.I,Kn.prototype.has=Kn.prototype.has,Kn.prototype.contains=Kn.prototype.contains,Kn.prototype.first=Kn.prototype.first,Kn.prototype.addAll=Kn.prototype.addAll,Kn.prototype.set=Kn.prototype.set,Kn.prototype.add=Kn.prototype.add,Kn.prototype.thaw=Kn.prototype.ka,Kn.prototype.freeze=Kn.prototype.freeze,Kn.className="Map";function qe(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):at("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var _i,uo,wr,Uo,Er;qe.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},qe.prototype.h=function(a,y){return this.x=a,this.y=y,this},qe.prototype.sg=function(a,y){return this.x=a,this.y=y,this},qe.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},qe.prototype.copy=function(){var a=new qe;return a.x=this.x,a.y=this.y,a},De=qe.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function fr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new qe(x,b)}return new qe}function ho(a){return a.x.toString()+" "+a.y.toString()}De.toString=function(){return"Point("+this.x+","+this.y+")"},De.D=function(a){return a instanceof qe?this.x===a.x&&this.y===a.y:!1},De.hi=function(a,y){return this.x===a&&this.y===y},De.Xa=function(a){return Kt.B(this.x,a.x)&&Kt.B(this.y,a.y)},De.add=function(a){return this.x+=a.x,this.y+=a.y,this},De.re=function(a){return this.x-=a.x,this.y-=a.y,this},De.offset=function(a,y){return this.x+=a,this.y+=y,this},qe.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 E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},De=qe.prototype,De.scale=function(a,y){return this.x*=a,this.y*=y,this},De.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},De.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},De.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},De.ab=function(a){return ro(a.x-this.x,a.y-this.y)},De.direction=function(a,y){return ro(a-this.x,y-this.y)};function ro(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}De.Ry=function(a,y){return Kt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},De.fA=function(a,y,x,E){return Kt.qh(a,y,x,E,this.x,this.y,this),this},De.gA=function(a,y){return Kt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},De.uA=function(a,y,x,E){return Kt.No(this.x,this.y,a,y,x,E,this),this},De.vA=function(a,y){return Kt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},De.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},De.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},De.transform=function(a){return a.Ga(this),this};function Gr(a,y){return y.Cd(a),a}function _o(a,y,x,E,b,z){var ne=b-x,re=z-E,oe=ne*ne+re*re;x-=a,E-=y;var le=-x*ne-E*re;return 0>=le||le>=oe?(ne=b-a,re=z-y,Math.min(x*x+E*E,ne*ne+re*re)):(a=ne*E-re*x,a*a/oe)}function lr(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function $i(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}De.w=function(){return isFinite(this.x)&&isFinite(this.y)},qe.alloc=function(){var a=kr.pop();return a===void 0?new qe:a},qe.allocAt=function(a,y){var x=kr.pop();return x===void 0?new qe(a,y):(x.x=a,x.y=y,x)},qe.free=function(a){kr.push(a)},qe.prototype.isReal=qe.prototype.w,qe.prototype.setSpot=qe.prototype.yi,qe.prototype.setRectSpot=qe.prototype.xi,qe.prototype.snapToGridPoint=qe.prototype.vA,qe.prototype.snapToGrid=qe.prototype.uA,qe.prototype.projectOntoLineSegmentPoint=qe.prototype.gA,qe.prototype.projectOntoLineSegment=qe.prototype.fA,qe.intersectingLineSegments=function(a,y,x,E,b,z,ne,re){return Kt.Rl(a,y,x,E,b,z,ne,re)},qe.prototype.compareWithLineSegmentPoint=qe.prototype.Ry,qe.compareWithLineSegment=function(a,y,x,E,b,z){return Kt.Fl(a,y,x,E,b,z)},qe.prototype.direction=qe.prototype.direction,qe.prototype.directionPoint=qe.prototype.ab,qe.prototype.normalize=qe.prototype.normalize,qe.prototype.distanceSquared=qe.prototype.zd,qe.prototype.distanceSquaredPoint=qe.prototype.Bf,qe.prototype.scale=qe.prototype.scale,qe.prototype.rotate=qe.prototype.rotate,qe.prototype.offset=qe.prototype.offset,qe.prototype.subtract=qe.prototype.re,qe.prototype.add=qe.prototype.add,qe.prototype.equalsApprox=qe.prototype.Xa,qe.prototype.equalTo=qe.prototype.hi,qe.prototype.equals=qe.prototype.D,qe.prototype.set=qe.prototype.set,qe.prototype.setTo=qe.prototype.sg;var kr=[];qe.className="Point",qe.parse=fr,qe.stringify=ho,qe.distanceLineSegmentSquared=_o,qe.distanceSquared=lr,qe.direction=$i,qe.Origin=_i=new qe(0,0).ja(),qe.InfiniteTopLeft=uo=new qe(-1/0,-1/0).ja(),qe.InfiniteBottomRight=wr=new qe(1/0,1/0).ja(),qe.SixPoint=Uo=new qe(6,6).ja(),qe.NoPoint=Er=new qe(NaN,NaN).ja(),qe.parse=fr,qe.stringify=ho,qe.distanceLineSegmentSquared=_o,qe.distanceSquared=lr,qe.direction=$i;function oi(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):at("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Ao,Jo,Fa,na,ia,xa,fo;oi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},oi.prototype.h=function(a,y){return this.width=a,this.height=y,this},oi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},oi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},oi.prototype.copy=function(){var a=new oi;return a.width=this.width,a.height=this.height,a},De=oi.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function qa(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new oi(x,b)}return new oi}function bs(a){return a.width.toString()+" "+a.height.toString()}De.toString=function(){return"Size("+this.width+","+this.height+")"},De.D=function(a){return a instanceof oi?this.width===a.width&&this.height===a.height:!1},De.hi=function(a,y){return this.width===a&&this.height===y},De.Xa=function(a){return Kt.B(this.width,a.width)&&Kt.B(this.height,a.height)},De.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},De.w=function(){return isFinite(this.width)&&isFinite(this.height)},oi.alloc=function(){var a=So.pop();return a===void 0?new oi:a},oi.free=function(a){So.push(a)},oi.prototype.isReal=oi.prototype.w,oi.prototype.inflate=oi.prototype.Bc,oi.prototype.equalsApprox=oi.prototype.Xa,oi.prototype.equalTo=oi.prototype.hi,oi.prototype.equals=oi.prototype.D,oi.prototype.set=oi.prototype.set,oi.prototype.setTo=oi.prototype.sg;var So=[];oi.className="Size",oi.parse=qa,oi.stringify=bs,oi.ZeroSize=Ao=new oi(0,0).ja(),oi.OneSize=Jo=new oi(1,1).ja(),oi.SixSize=Fa=new oi(6,6).ja(),oi.EightSize=na=new oi(8,8).ja(),oi.TenSize=ia=new oi(10,10).ja(),oi.InfiniteSize=xa=new oi(1/0,1/0).ja(),oi.NoSize=fo=new oi(NaN,NaN).ja(),oi.parse=qa,oi.stringify=bs;function Cn(a,y,x,E){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 E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof qe?(x=a.x,a=a.y,y instanceof qe?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof oi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):at("Incorrect second argument supplied to Rect constructor "+y)):at("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}De=Cn.prototype,De.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},De.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function cs(a,y,x){a.width=y,a.height=x}De.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},De.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},De.dd=function(a){return this.x=a.x,this.y=a.y,this},De.tA=function(a){return this.width=a.width,this.height=a.height,this},Cn.prototype.copy=function(){var a=new Cn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},De=Cn.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ya(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var ne=0;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),new Cn(x,b,z,ne)}return new Cn}function Ss(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}De.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},De.D=function(a){return a instanceof Cn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},De.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},De.Xa=function(a){return Kt.B(this.x,a.x)&&Kt.B(this.y,a.y)&&Kt.B(this.width,a.width)&&Kt.B(this.height,a.height)};function Lo(a,y){return Kt.$(a.x,y.x)&&Kt.$(a.y,y.y)&&Kt.$(a.width,y.width)&&Kt.$(a.height,y.height)}De.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},De.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},De.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},De.offset=function(a,y){return this.x+=a,this.y+=y,this},De.Bc=function(a,y){return fa(this,y,a,y,a)},De.Co=function(a){return fa(this,a.top,a.right,a.bottom,a.left)},De.Fv=function(a){return fa(this,-a.top,-a.right,-a.bottom,-a.left)},De.Hz=function(a,y,x,E){return fa(this,a,y,x,E)};function fa(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}De.Ex=function(a){return Pa(this,a.x,a.y,a.width,a.height)},De.Uu=function(a,y,x,E){return Pa(this,a,y,x,E)};function Pa(a,y,x,E,b){var z=Math.max(a.x,y),ne=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=ne,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ne),a}De.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},De.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function sa(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}De.Ye=function(a){return vo(this,a.x,a.y,0,0)},De.ed=function(a){return vo(this,a.x,a.y,a.width,a.height)},De.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),vo(this,a,y,x,E)};function vo(a,y,x,E,b){var z=Math.min(a.x,y),ne=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=ne,a.width=y-z,a.height=x-ne,a}De.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 aa(a,y,x,E,b,z,ne,re){return ne===void 0&&(ne=0),re===void 0&&(re=0),a<=b&&b+ne<=a+x&&y<=z&&z+re<=y+E}function is(a,y,x,E,b,z,ne,re){return a>ne+b||b>x+a?!1:!(y>re+z||z>E+y)}De.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},De.Mz=function(){return this.width===0&&this.height===0},Cn.alloc=function(){var a=zr.pop();return a===void 0?new Cn:a},Cn.allocAt=function(a,y,x,E){var b=zr.pop();return b===void 0?new Cn(a,y,x,E):b.h(a,y,x,E)},Cn.free=function(a){zr.push(a)},bt.Object.defineProperties(Cn.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 qe(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new oi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new qe(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}}}),Cn.prototype.isEmpty=Cn.prototype.Mz,Cn.prototype.isReal=Cn.prototype.w,Cn.intersectsLineSegment=function(a,y,x,E,b,z,ne,re){return Kt.Fx(a,y,x,E,b,z,ne,re)},Cn.prototype.setSpot=Cn.prototype.yi,Cn.prototype.union=Cn.prototype.Kv,Cn.prototype.unionRect=Cn.prototype.ed,Cn.prototype.unionPoint=Cn.prototype.Ye,Cn.prototype.intersects=Cn.prototype.Vu,Cn.prototype.intersectsRect=Cn.prototype.Yc,Cn.prototype.intersect=Cn.prototype.Uu,Cn.prototype.intersectRect=Cn.prototype.Ex,Cn.prototype.grow=Cn.prototype.Hz,Cn.prototype.subtractMargin=Cn.prototype.Fv,Cn.prototype.addMargin=Cn.prototype.Co,Cn.prototype.inflate=Cn.prototype.Bc,Cn.prototype.offset=Cn.prototype.offset,Cn.prototype.contains=Cn.prototype.contains,Cn.prototype.containsRect=Cn.prototype.Re,Cn.prototype.containsPoint=Cn.prototype.ca,Cn.prototype.equalsApprox=Cn.prototype.Xa,Cn.prototype.equalTo=Cn.prototype.hi,Cn.prototype.equals=Cn.prototype.D,Cn.prototype.setSize=Cn.prototype.tA,Cn.prototype.setPoint=Cn.prototype.dd,Cn.prototype.set=Cn.prototype.set,Cn.prototype.setTo=Cn.prototype.sg;var qr=null,gr=null,zr=[];Cn.className="Rect",Cn.parse=Ya,Cn.stringify=Ss,Cn.contains=aa,Cn.intersects=is,Cn.ZeroRect=qr=new Cn(0,0,0,0).ja(),Cn.NoRect=gr=new Cn(NaN,NaN,NaN,NaN).ja(),Cn.parse=Ya,Cn.stringify=Ss,Cn.contains=aa,Cn.intersects=is;function Yn(a,y,x,E){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):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):at("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Yn.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Yn.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yn.prototype.copy=function(){var a=new Yn;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},De=Yn.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Yn;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Yn(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Yn(x,b);for(var ne=NaN;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),isNaN(ne)?new Yn(x,b):new Yn(x,b,z,ne)}return new Yn}function io(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}De.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},De.D=function(a){return a instanceof Yn?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},De.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},De.Xa=function(a){return Kt.B(this.top,a.top)&&Kt.B(this.right,a.right)&&Kt.B(this.bottom,a.bottom)&&Kt.B(this.left,a.left)},De.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Yn.alloc=function(){var a=Kl.pop();return a===void 0?new Yn:a},Yn.free=function(a){Kl.push(a)},Yn.prototype.isReal=Yn.prototype.w,Yn.prototype.equalsApprox=Yn.prototype.Xa,Yn.prototype.equalTo=Yn.prototype.hi,Yn.prototype.equals=Yn.prototype.D,Yn.prototype.set=Yn.prototype.set,Yn.prototype.setTo=Yn.prototype.sg;var qo=null,Xs=null,Kl=[];Yn.className="Margin",Yn.parse=Fr,Yn.stringify=io,Yn.ZeroMargin=qo=new Yn(0,0,0,0).ja(),Yn.TwoMargin=Xs=new Yn(2,2,2,2).ja(),Yn.parse=Fr,Yn.stringify=io;function Zi(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var $a,As,Rl,zl,Vl,xo,Vu,Ll,Xr,pa,hl,tl,fl,wl,Yu,uc,Uu,Xu,_u,xs,ll,Cl,Fl,nd,Au,Yo,Aa,El,Ns,ks,ds,Ps,Is,Ts,cc,au;Zi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Zi.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},Zi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Zi.prototype.copy=function(){var a=new Zi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},De=Zi.prototype,De.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},De.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ms(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ih(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return $a;if(a==="TopLeft")return As;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Rl;if(a==="TopRight")return zl;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Vl;if(a==="Center")return xo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Vu;if(a==="BottomLeft")return Ll;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Xr;if(a==="BottomRight")return pa;if(a==="TopSide")return hl;if(a==="LeftSide")return tl;if(a==="RightSide")return fl;if(a==="BottomSide")return wl;if(a==="TopBottomSides")return Yu;if(a==="LeftRightSides")return uc;if(a==="TopLeftSides")return Uu;if(a==="TopRightSides")return Xu;if(a==="BottomLeftSides")return _u;if(a==="BottomRightSides")return xs;if(a==="NotTopSide")return ll;if(a==="NotLeftSide")return Cl;if(a==="NotRightSide")return Fl;if(a==="NotBottomSide")return nd;if(a==="AllSides")return Au;if(a==="Default")return Yo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var ne=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(ne=parseFloat(E)),new Zi(x,b,z,ne)}return new Zi}function md(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}De.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($a)?"None":this.D(As)?"TopLeft":this.D(Rl)?"Top":this.D(zl)?"TopRight":this.D(Vl)?"Left":this.D(xo)?"Center":this.D(Vu)?"Right":this.D(Ll)?"BottomLeft":this.D(Xr)?"Bottom":this.D(pa)?"BottomRight":this.D(hl)?"TopSide":this.D(tl)?"LeftSide":this.D(fl)?"RightSide":this.D(wl)?"BottomSide":this.D(Yu)?"TopBottomSides":this.D(uc)?"LeftRightSides":this.D(Uu)?"TopLeftSides":this.D(Xu)?"TopRightSides":this.D(_u)?"BottomLeftSides":this.D(xs)?"BottomRightSides":this.D(ll)?"NotTopSide":this.D(Cl)?"NotLeftSide":this.D(Fl)?"NotRightSide":this.D(nd)?"NotBottomSide":this.D(Au)?"AllSides":this.D(Yo)?"Default":"None"},De.D=function(a){return a instanceof Zi?(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},De.gv=function(){return new Zi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},De.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Aa))a=tl;else if(a.D(El))a=fl;else if(a.D(Ns))a=hl;else if(a.D(ks))a=wl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},De.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},De.Mc=function(){return isNaN(this.x)||isNaN(this.y)},De.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},De.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},De.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Zi.alloc=function(){var a=id.pop();return a===void 0?new Zi:a},Zi.free=function(a){id.push(a)},Zi.prototype.isDefault=Zi.prototype.Xb,Zi.prototype.isNone=Zi.prototype.ys,Zi.prototype.isSide=Zi.prototype.$c,Zi.prototype.isNoSpot=Zi.prototype.Mc,Zi.prototype.isSpot=Zi.prototype.sb,Zi.prototype.includesSide=Zi.prototype.Hf,Zi.prototype.opposite=Zi.prototype.gv,Zi.prototype.equals=Zi.prototype.D,Zi.prototype.set=Zi.prototype.set,Zi.prototype.setTo=Zi.prototype.sg;var id=[];Zi.className="Spot",Zi.parse=ih,Zi.stringify=md,Zi.None=$a=Ms(new Zi(0,0,0,0),0).ja(),Zi.Default=Yo=Ms(new Zi(0,0,-1,0),-1).ja(),Zi.TopLeft=As=new Zi(0,0,0,0).ja(),Zi.TopCenter=Rl=new Zi(.5,0,0,0).ja(),Zi.TopRight=zl=new Zi(1,0,0,0).ja(),Zi.LeftCenter=Vl=new Zi(0,.5,0,0).ja(),Zi.Center=xo=new Zi(.5,.5,0,0).ja(),Zi.RightCenter=Vu=new Zi(1,.5,0,0).ja(),Zi.BottomLeft=Ll=new Zi(0,1,0,0).ja(),Zi.BottomCenter=Xr=new Zi(.5,1,0,0).ja(),Zi.BottomRight=pa=new Zi(1,1,0,0).ja(),Zi.MiddleTop=ds=Rl,Zi.MiddleLeft=Ps=Vl,Zi.MiddleRight=Is=Vu,Zi.MiddleBottom=Ts=Xr,Zi.Top=Ns=Rl,Zi.Left=Aa=Vl,Zi.Right=El=Vu,Zi.Bottom=ks=Xr,Zi.TopSide=hl=Ms(new Zi(0,0,1,1),1).ja(),Zi.LeftSide=tl=Ms(new Zi(0,0,1,2),1).ja(),Zi.RightSide=fl=Ms(new Zi(0,0,1,4),1).ja(),Zi.BottomSide=wl=Ms(new Zi(0,0,1,8),1).ja(),Zi.TopBottomSides=Yu=Ms(new Zi(0,0,1,9),1).ja(),Zi.LeftRightSides=uc=Ms(new Zi(0,0,1,6),1).ja(),Zi.TopLeftSides=Uu=Ms(new Zi(0,0,1,3),1).ja(),Zi.TopRightSides=Xu=Ms(new Zi(0,0,1,5),1).ja(),Zi.BottomLeftSides=_u=Ms(new Zi(0,0,1,10),1).ja(),Zi.BottomRightSides=xs=Ms(new Zi(0,0,1,12),1).ja(),Zi.NotTopSide=ll=Ms(new Zi(0,0,1,14),1).ja(),Zi.NotLeftSide=Cl=Ms(new Zi(0,0,1,13),1).ja(),Zi.NotRightSide=Fl=Ms(new Zi(0,0,1,11),1).ja(),Zi.NotBottomSide=nd=Ms(new Zi(0,0,1,7),1).ja(),Zi.AllSides=Au=Ms(new Zi(0,0,1,15),1).ja(),cc=new Zi(.156,.156).ja(),au=new Zi(.844,.844).ja(),Zi.parse=ih,Zi.stringify=md;function Wr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Wr.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},Wr.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},Wr.prototype.copy=function(){var a=new Wr;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},Wr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Wr.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},Wr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Wr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Wr.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=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=E,this.m22=b,this},Wr.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,ne=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*ne+this.m21*a+this.dx,this.dy=this.m12*ne+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},Wr.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=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=E,this.dx=b,this.dy=z,this},Wr.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 E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,ne=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=ne,this.translate(-y,-x),this},De=Wr.prototype,De.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},De.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},De.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)},De.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},De.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},De.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,ne=this.m12,re=this.m21,oe=this.m22,le=this.dx,ce=this.dy,me=y*z+x*re+le,Ce=y*ne+x*oe+ce,Me=E*z+x*re+le,Be=E*ne+x*oe+ce;return x=y*z+b*re+le,y=y*ne+b*oe+ce,z=E*z+b*re+le,E=E*ne+b*oe+ce,b=Math.min(me,Me),me=Math.max(me,Me),Me=Math.min(Ce,Be),Ce=Math.max(Ce,Be),b=Math.min(b,x),me=Math.max(me,x),Me=Math.min(Me,y),Ce=Math.max(Ce,y),b=Math.min(b,z),me=Math.max(me,z),Me=Math.min(Me,E),Ce=Math.max(Ce,E),a.h(b,Me,me-b,Ce-Me),a},Wr.alloc=function(){var a=rd.pop();return a===void 0?new Wr:a},Wr.free=function(a){rd.push(a)},Wr.prototype.transformRect=Wr.prototype.pp,Wr.prototype.transformPoint=Wr.prototype.Ga,Wr.prototype.scale=Wr.prototype.scale,Wr.prototype.translate=Wr.prototype.translate,Wr.prototype.rotate=Wr.prototype.rotate,Wr.prototype.invert=Wr.prototype.Vj,Wr.prototype.multiplyInverted=Wr.prototype.bv,Wr.prototype.multiply=Wr.prototype.multiply,Wr.prototype.reset=Wr.prototype.reset,Wr.prototype.isIdentity=Wr.prototype.ws,Wr.prototype.equals=Wr.prototype.D,Wr.prototype.setTransform=Wr.prototype.setTransform,Wr.prototype.set=Wr.prototype.set;var rd=[];Wr.className="Transform",Wr.xF="54a702f3e53909c447824c6706603faf4c";var Kt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Kt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Kt.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,E,b,z,ne){if(0>=b&&(b=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<E)var le=y,ce=E;else le=E,ce=y;if(a===x)return le<=ne&&ne<=ce&&a-b<=z&&z<=a+b;if(y===E)return re<=z&&z<=oe&&y-b<=ne&&ne<=y+b;if(oe+=b,re-=b,re<=z&&z<=oe&&(ce+=b,le-=b,le<=ne&&ne<=ce))if(oe-re>ce-le)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=ne&&ne<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(ne=(x-a)/(E-y)*(ne-y)+a,ne-b<=z&&z<=ne+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,ne,re,oe,le,ce,me){if(Kt.Yb(a,y,ne,re,me,x,E)&&Kt.Yb(a,y,ne,re,me,b,z))return Kt.Yb(a,y,ne,re,me,le,ce);var Ce=(a+x)/2,Me=(y+E)/2,Be=(x+b)/2,Re=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(Ce+Be)/2,x=(Me+Re)/2,Be=(Be+b)/2,Re=(Re+z)/2;var dt=(E+Be)/2,et=(x+Re)/2;return Kt.cs(a,y,Ce,Me,E,x,dt,et,oe,le,ce,me)||Kt.cs(dt,et,Be,Re,b,z,ne,re,oe,le,ce,me)},ax:function(a,y,x,E,b,z,ne,re,oe){var le=(x+b)/2,ce=(E+z)/2;return oe.h((((a+x)/2+le)/2+(le+(b+ne)/2)/2)/2,(((y+E)/2+ce)/2+(ce+(z+re)/2)/2)/2),oe},My:function(a,y,x,E,b,z,ne,re){var oe=(x+b)/2,le=(E+z)/2;return $i(((a+x)/2+oe)/2,((y+E)/2+le)/2,(oe+(b+ne)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ne,re,oe,le){if(Kt.Yb(a,y,ne,re,oe,x,E)&&Kt.Yb(a,y,ne,re,oe,b,z))vo(le,a,y,0,0),vo(le,ne,re,0,0);else{var ce=(a+x)/2,me=(y+E)/2,Ce=(x+b)/2,Me=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(ce+Ce)/2,x=(me+Me)/2,Ce=(Ce+b)/2,Me=(Me+z)/2;var Be=(E+Ce)/2,Re=(x+Me)/2;Kt.Dl(a,y,ce,me,E,x,Be,Re,oe,le),Kt.Dl(Be,Re,Ce,Me,b,z,ne,re,oe,le)}return le},Qe:function(a,y,x,E,b,z,ne,re,oe,le){if(Kt.Yb(a,y,ne,re,oe,x,E)&&Kt.Yb(a,y,ne,re,oe,b,z))le.length===0&&(le.push(a),le.push(y)),le.push(ne),le.push(re);else{var ce=(a+x)/2,me=(y+E)/2,Ce=(x+b)/2,Me=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(ce+Ce)/2,x=(me+Me)/2,Ce=(Ce+b)/2,Me=(Me+z)/2;var Be=(E+Ce)/2,Re=(x+Me)/2;Kt.Qe(a,y,ce,me,E,x,Be,Re,oe,le),Kt.Qe(Be,Re,Ce,Me,b,z,ne,re,oe,le)}return le},jv:function(a,y,x,E,b,z,ne,re,oe,le){if(Kt.Yb(a,y,b,z,le,x,E))return Kt.Yb(a,y,b,z,le,re,oe);var ce=(a+x)/2,me=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var Ce=(ce+x)/2,Me=(me+E)/2;return Kt.jv(a,y,ce,me,Ce,Me,ne,re,oe,le)||Kt.jv(Ce,Me,x,E,b,z,ne,re,oe,le)},OA:function(a,y,x,E,b,z,ne){return ne.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),ne},iv:function(a,y,x,E,b,z,ne,re){if(Kt.Yb(a,y,b,z,ne,x,E))vo(re,a,y,0,0),vo(re,b,z,0,0);else{var oe=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ce=(oe+x)/2,me=(le+E)/2;Kt.iv(a,y,oe,le,ce,me,ne,re),Kt.iv(ce,me,x,E,b,z,ne,re)}return re},ep:function(a,y,x,E,b,z,ne,re){if(Kt.Yb(a,y,b,z,ne,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ce=(oe+x)/2,me=(le+E)/2;Kt.ep(a,y,oe,le,ce,me,ne,re),Kt.ep(ce,me,x,E,b,z,ne,re)}return re},Eo:function(a,y,x,E,b,z,ne,re,oe,le,ce,me,Ce,Me){if(Kt.Yb(a,y,ne,re,Ce,x,E)&&Kt.Yb(a,y,ne,re,Ce,b,z))return!Kt.Rl(a,y,ne,re,oe,le,ce,me)||(Ce=(a-ne)*(le-me)-(y-re)*(oe-ce),Ce===0)?!1:(Me.h(((a*re-y*ne)*(oe-ce)-(a-ne)*(oe*me-le*ce))/Ce,((a*re-y*ne)*(le-me)-(y-re)*(oe*me-le*ce))/Ce),!0);var Be=(a+x)/2,Re=(y+E)/2,dt=(x+b)/2,et=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(Be+dt)/2,x=(Re+et)/2,dt=(dt+b)/2,et=(et+z)/2;var Pt=(E+dt)/2,At=(x+et)/2,Dt=1/0,Rt=!1,dn=0,bi=0;return Kt.Eo(a,y,Be,Re,E,x,Pt,At,oe,le,ce,me,Ce,Me)&&(a=(Me.x-oe)*(Me.x-oe)+(Me.y-le)*(Me.y-le),a<Dt&&(Dt=a,Rt=!0,dn=Me.x,bi=Me.y)),Kt.Eo(Pt,At,dt,et,b,z,ne,re,oe,le,ce,me,Ce,Me)&&(Me.x-oe)*(Me.x-oe)+(Me.y-le)*(Me.y-le)<Dt&&(Rt=!0,dn=Me.x,bi=Me.y),Rt&&(Me.x=dn,Me.y=bi),Rt},Fo:function(a,y,x,E,b,z,ne,re,oe,le,ce,me,Ce){var Me=0;if(Kt.Yb(a,y,ne,re,Ce,x,E)&&Kt.Yb(a,y,ne,re,Ce,b,z)){if(Ce=(a-ne)*(le-me)-(y-re)*(oe-ce),Ce===0)return Me;var Be=((a*re-y*ne)*(oe-ce)-(a-ne)*(oe*me-le*ce))/Ce,Re=((a*re-y*ne)*(le-me)-(y-re)*(oe*me-le*ce))/Ce;if(Be>=ce)return Me;if((oe>ce?oe-ce:ce-oe)<(le>me?le-me:me-le)){if(y<re?(oe=y,a=re):(oe=re,a=y),Re<oe||Re>a)return Me}else if(a<ne?(oe=a,a=ne):oe=ne,Be<oe||Be>a)return Me;0<Ce?Me++:0>Ce&&Me--}else{Be=(a+x)/2,Re=(y+E)/2;var dt=(x+b)/2,et=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(Be+dt)/2,x=(Re+et)/2,dt=(dt+b)/2,et=(et+z)/2;var Pt=(E+dt)/2,At=(x+et)/2;Me+=Kt.Fo(a,y,Be,Re,E,x,Pt,At,oe,le,ce,me,Ce),Me+=Kt.Fo(Pt,At,dt,et,b,z,ne,re,oe,le,ce,me,Ce)}return Me},qh:function(a,y,x,E,b,z,ne){return Kt.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(ne.h(a,x),!1):z>y?(ne.h(a,y),!1):(ne.h(a,z),!0)):Kt.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(ne.h(E,y),!1):b>a?(ne.h(a,y),!1):(ne.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(ne.h(a,y),!1):1.000005<b?(ne.h(x,E),!1):(ne.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,ne,re,oe){return Kt.B(a,x)&&Kt.B(y,E)?(oe.h(a,y),!1):Kt.$(b,ne)?Kt.$(a,x)?(Kt.qh(a,y,x,E,b,z,oe),!1):Kt.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,oe):(re=(re-z)/(ne-b),Kt.$(a,x)?(x=re*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(oe.h(a,b),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ne=(E-y)/(x-a),Kt.$(re,ne)?(Kt.qh(a,y,x,E,b,z,oe),!1):(b=(ne*a-re*b+z-y)/(ne-re),Kt.$(ne,0)?(a<x?(E=a,a=x):E=x,b<E?(oe.h(E,y),!1):b>a?(oe.h(a,y),!1):(oe.h(b,y),!0)):Kt.qh(a,y,x,E,b,ne*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return Kt.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,ne,re,oe,le){function ce(dt,et){var Pt=(dt-a)*(dt-a)+(et-y)*(et-y);Pt<me&&(me=Pt,oe.h(dt,et))}var me=1/0;ce(oe.x,oe.y);var Ce=0,Me=0,Be=0,Re=0;if(b<ne?(Ce=b,Me=ne):(Ce=ne,Me=b),z<re?(Be=b,Re=ne):(Be=ne,Re=b),Ce=(Me-Ce)/2+le,le=(Re-Be)/2+le,b=(b+ne)/2,z=(z+re)/2,Ce===0||le===0)return oe;if(.5>(x>a?x-a:a-x)){if(Ce=1-(x-b)*(x-b)/(Ce*Ce),0>Ce)return oe;Ce=Math.sqrt(Ce),E=-le*Ce+z,ce(x,le*Ce+z),ce(x,E)}else{if(x=(E-y)/(x-a),E=1/(Ce*Ce)+x*x/(le*le),re=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*b/(Ce*Ce),Ce=re*re-4*E*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+b*b/(Ce*Ce)-1+(y-x*a)*(y-x*a)/(le*le)),0>Ce)return oe;Ce=Math.sqrt(Ce),le=(-re+Ce)/(2*E),ce(le,x*le-x*a+y),Ce=(-re-Ce)/(2*E),ce(Ce,x*Ce-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,ne,re,oe){var le=1e21,ce=a,me=y;if(Kt.Ve(a,y,a,E,b,z,ne,re,oe)){var Ce=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);Ce<le&&(le=Ce,ce=oe.x,me=oe.y)}return Kt.Ve(x,y,x,E,b,z,ne,re,oe)&&(Ce=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),Ce<le&&(le=Ce,ce=oe.x,me=oe.y)),Kt.Ve(a,y,x,y,b,z,ne,re,oe)&&(y=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),y<le&&(le=y,ce=oe.x,me=oe.y)),Kt.Ve(a,E,x,E,b,z,ne,re,oe)&&(a=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),a<le&&(le=a,ce=oe.x,me=oe.y)),oe.h(ce,me),1e21>le},us:function(a,y,x){return Kt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,ne,re){var oe=a+x,le=y+E;return b===ne?(z<re?(ne=z,z=re):ne=re,a<=b&&b<=oe&&ne<=le&&z>=y):z===re?(b<ne?(re=b,b=ne):re=ne,y<=z&&z<=le&&re<=oe&&b>=a):!!(aa(a,y,x,E,b,z)||aa(a,y,x,E,ne,re)||Kt.Rl(a,y,oe,y,b,z,ne,re)||Kt.Rl(oe,y,oe,le,b,z,ne,re)||Kt.Rl(oe,le,a,le,b,z,ne,re)||Kt.Rl(a,le,a,y,b,z,ne,re))},Rl:function(a,y,x,E,b,z,ne,re){return a===x&&y===E&&b===ne&&z===re?a===b&&y===z:0>=Kt.Fl(a,y,x,E,b,z)*Kt.Fl(a,y,x,E,ne,re)&&0>=Kt.Fl(b,z,ne,re,a,y)*Kt.Fl(b,z,ne,re,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var ne=Math.PI;z||(E*=ne/180,b*=ne/180);var re=E>b?-1:1;z=[];var oe=ne/2,le=E;if(E=Math.min(2*ne,Math.abs(b-E)),1e-5>E)return oe=le+re*Math.min(E,oe),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(le+y)/2,z.push([re,le,x,oe,x,oe,a,y]),z;for(;1e-5<E;)b=le+re*Math.min(E,oe),z.push(Kt.Vy(x,le,b,a,y)),E-=Math.abs(b-le),le=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,ne=a*Math.cos(z),re=a*Math.sin(z),oe=-re,le=ne*ne+oe*oe,ce=le+ne*ne+oe*re;return le=4/3*(Math.sqrt(2*le*ce)-ce)/(ne*re-oe*ne),re=ne-le*oe,ne=oe+le*ne,oe=-ne,le=z+y,z=Math.cos(le),le=Math.sin(le),[E+a*Math.cos(y),b+a*Math.sin(y),E+re*z-ne*le,b+re*le+ne*z,E+re*z-oe*le,b+re*le+oe*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,ne){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var re=x;return x+b-a<b/2&&(re=x+b),a=E,E+z-y<z/2&&(a=E+z),ne.h(re,a),ne},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var ne=1,re=0;else ne=0,re=1;var oe=ne===0?a:y,le=ne===0?x:E;return(ne===0?b:z)&&(le=-le),ne=re,x=ne===0?x:E,(ne===0?b:z)&&(x=-x),Kt.az(oe,ne===0?a:y,le,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var ne=y*E,re=-z+ne,oe=-z+Math.sqrt(a*a+ne*ne);y=re;for(var le=0;9999999999>le&&(y=.5*(re+oe),!(y===re||y===oe));++le){var ce=a/(y+b),me=ne/(y+z);if(ce=ce*ce+me*me-1,0<ce)re=y;else if(0>ce)oe=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Wi,um:new Wi,Mf:new Wi,Nf:0,vm:100};Kt.za=Kt.AA;function vi(a){Hr(this),this.l=2,a===void 0&&(a=vi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===vi.o?this.ee=new An:(vi.V===null&&(vi.V=new An().freeze()),this.ee=vi.V),this.aq=this.ee.Ja,this.Ip=new Cn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=As,this.gg=pa,this.Rk=this.Sk=NaN,this.Uf=ni}vi.prototype.copy=function(){var a=new vi;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===vi.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].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},vi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},vi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==vi.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},vi.prototype.ka=function(){if(Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==vi.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},vi.prototype.Xa=function(a){if(!(a instanceof vi))return!1;if(this.type!==a.type)return this.type===vi.j&&a.type===vi.o?Ih(this,a):a.type===vi.j&&this.type===vi.o?Ih(a,this):!1;if(this.type===vi.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return Kt.B(this.startX,a.startX)&&Kt.B(this.startY,a.startY)&&Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY)};function Ih(a,y){return a.type!==vi.j||y.type!==vi.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Kt.B(a.startX,y.startX)&&Kt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===ma&&Kt.B(a.endX,y.endX)&&Kt.B(a.endY,y.endY))))}vi.ia=function(a){return a.toString()},vi.prototype.qb=function(a){a.classType===vi&&(this.type=a)},vi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case vi.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 vi.u:var y=new Cn(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 vi.F:if(y=new Cn(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 vi.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},vi.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},vi.parse=function(a,y){function x(){return Re>=Dt-1?!0:le[Re+1].match(Rt)!==null}function E(){return Re++,le[Re]}function b(Or){var Cr=parseFloat(E()),Vo=parseFloat(E());dt===dt.toLowerCase()&&(Cr=At.x+Cr,Vo=At.y+Vo),Or.h(Cr,Vo)}function z(){return b(At),At}function ne(){return b(Pt),Pt}function re(){var Or=et.toLowerCase();return Or!=="c"&&Or!=="s"&&Or!=="q"&&Or!=="t"?At:new qe(2*At.x-Pt.x,2*At.y-Pt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var le=a.split(" ");for(a=0;a<le.length;a++){var ce=le[a];if(ce.match(/(\.[0-9]*)(\.)/gm)!==null){oe=En();for(var me="",Ce=!1,Me=0;Me<ce.length;Me++){var Be=ce[Me];Be!=="."||Ce?Be==="."?(oe.push(me),me="."):me+=Be:(Ce=!0,me+=Be)}for(oe.push(me),le.splice(a,1),ce=0;ce<oe.length;ce++)le.splice(a+ce,0,oe[ce]);a+=oe.length-1,kn(oe)}}var Re=-1,dt="",et="";oe=new qe(0,0);var Pt=new qe(0,0),At=new qe(0,0),Dt=le.length;a=k1(null),Ce=me=ce=!1,Me=!0,Be=null;for(var Rt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Re>=Dt-1);)if(et=dt,dt=E(),dt!=="")switch(dt.toUpperCase()){case"X":Me=!0,me=ce=!1;break;case"M":for(Be=z(),a.mc===null||Me===!0?(Og(a,Be.x,Be.y,ce,!me,Ce),Me=!1):a.moveTo(Be.x,Be.y),oe.assign(At);!x();)Be=z(),a.lineTo(Be.x,Be.y);break;case"L":for(;!x();)Be=z(),a.lineTo(Be.x,Be.y);break;case"H":for(;!x();)At=new qe((dt===dt.toLowerCase()?At.x:0)+parseFloat(E()),At.y),a.lineTo(At.x,At.y);break;case"V":for(;!x();)At=new qe(At.x,(dt===dt.toLowerCase()?At.y:0)+parseFloat(E())),a.lineTo(At.x,At.y);break;case"C":for(;!x();){Be=new qe,b(Be);var dn=ne(),bi=z();yh(a,Be.x,Be.y,dn.x,dn.y,bi.x,bi.y)}break;case"S":for(;!x();)Be=re(),dn=ne(),bi=z(),yh(a,Be.x,Be.y,dn.x,dn.y,bi.x,bi.y);break;case"Q":for(;!x();)Be=ne(),dn=z(),Gm(a,Be.x,Be.y,dn.x,dn.y);break;case"T":for(;!x();)Pt=Be=re(),dn=z(),Gm(a,Be.x,Be.y,dn.x,dn.y);break;case"B":for(;!x();){Be=parseFloat(E()),dn=parseFloat(E()),bi=parseFloat(E());var Ii=parseFloat(E()),Ni=parseFloat(E()),hi=Ni,Vn=!1;x()||(hi=parseFloat(E()),x()||(Vn=parseFloat(E())!==0)),dt===dt.toLowerCase()&&(bi+=At.x,Ii+=At.y),a.arcTo(Be,dn,bi,Ii,Ni,hi,Vn)}break;case"A":for(;!x();)Be=Math.abs(parseFloat(E())),dn=Math.abs(parseFloat(E())),bi=parseFloat(E()),Ni=Ii=!1,Vn=hi=0,hi=E(),hi.length===1?(Ii=!!parseFloat(hi),Ni=!!parseFloat(E()),hi=parseFloat(E())):hi.length===2?(Ii=!!parseFloat(hi[0]),Ni=!!parseFloat(hi[1]),hi=parseFloat(E())):(Ii=!!parseFloat(hi[0]),Ni=!!parseFloat(hi[1]),hi=parseFloat(hi.slice(2))),Vn=parseFloat(E()),dt===dt.toLowerCase()&&(hi=At.x+hi,Vn=At.y+Vn),At.h(hi,Vn),Fx(a,Be,dn,bi,Ii,Ni,hi,Vn);break;case"Z":Lx(a),At.assign(oe);break;case"F":for(Be="",dn=1;le[Re+dn];)if(le[Re+dn]==="0")Ce=!0,dn++;else if(le[Re+dn].match(/[Uu]/)!==null)dn++;else if(le[Re+dn].match(Rt)===null)dn++;else{Be=le[Re+dn];break}Be.match(/[Mm]/)?ce=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Be="",dn=1;le[Re+dn];)if(le[Re+dn].match(/[Ff]/)!==null)dn++;else if(le[Re+dn].match(Rt)===null)dn++;else{Be=le[Re+dn];break}Be.match(/[Mm]/)?me=!0:a.mc.isShadowed=!1}if(oe=a.os,Km=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},vi.Ha=function(a,y){for(var x=a.length,E=qe.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}qe.free(E)},vi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===vi.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},vi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===vi.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var ne=E[z];ne._isInvalidBounds=!1,ne.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),rh(this,a,!1),vo(a,0,0,0,0),a.freeze()},vi.prototype.ix=function(){var a=new Cn;return rh(this,a,!0),a};function rh(a,y,x){switch(a.type){case vi.j:case vi.u:case vi.F:x?y.h(a.od,a.pd,0,0):vo(y,a.od,a.pd,0,0),vo(y,a.Dc,a.Ec,0,0);break;case vi.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):vo(y,z.startX,z.startY,0,0);for(var ne=z.segments.s,re=ne.length,oe=z.startX,le=z.startY,ce=0;ce<re;ce++){var me=ne[ce];switch(me.type){case ma:case vs:oe=me.endX,le=me.endY,vo(y,oe,le,0,0);break;case nl:Kt.Dl(oe,le,me.point1X,me.point1Y,me.point2X,me.point2Y,me.endX,me.endY,.5,y),oe=me.endX,le=me.endY;break;case Ue:Kt.iv(oe,le,me.point1X,me.point1Y,me.endX,me.endY,.5,y),oe=me.endX,le=me.endY;break;case rt:case gt:var Ce=me.type===rt?gl(me,z):Dl(me,z,oe,le),Me=Ce.length;if(Me===0){oe=me.type===rt?me.centerX:me.endX,le=me.type===rt?me.centerY:me.endY,vo(y,oe,le,0,0);break}me=null;for(var Be=0;Be<Me;Be++)me=Ce[Be],Kt.Dl(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],.5,y);me!==null&&(oe=me[6],le=me[7]);break;default:at("Unknown Segment type: "+me.type)}}}break;default:at("Unknown Geometry type: "+a.type)}}vi.prototype.normalize=function(){this._isFrozen&&Bn(this);var a=this.ix();return this.offset(-a.x,-a.y),new qe(-a.x,-a.y)},vi.prototype.offset=function(a,y){return this._isFrozen&&Bn(this),this.transform(1,0,0,1,a,y),this},vi.prototype.scale=function(a,y){return this._isFrozen&&Bn(this),this.transform(a,0,0,y,0,0),this},vi.prototype.rotate=function(a,y,x){this._isFrozen&&Bn(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=Wr.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Wr.free(E),this},De=vi.prototype,De.transform=function(a,y,x,E,b,z){switch(this.type){case vi.j:case vi.u:case vi.F:var ne=this.od,re=this.pd;this.od=ne*a+re*x+b,this.pd=ne*y+re*E+z,ne=this.Dc,re=this.Ec,this.Dc=ne*a+re*x+b,this.Ec=ne*y+re*E+z;break;case vi.o:for(var oe=this.figures.s,le=oe.length,ce=0;ce<le;ce++){var me=oe[ce];ne=me.startX,re=me.startY,me.startX=ne*a+re*x+b,me.startY=ne*y+re*E+z,me=me.segments.s;for(var Ce=me.length,Me=0;Me<Ce;Me++){var Be=me[Me];switch(Be.type){case ma:case vs:ne=Be.endX,re=Be.endY,Be.endX=ne*a+re*x+b,Be.endY=ne*y+re*E+z;break;case nl:ne=Be.point1X,re=Be.point1Y,Be.point1X=ne*a+re*x+b,Be.point1Y=ne*y+re*E+z,ne=Be.point2X,re=Be.point2Y,Be.point2X=ne*a+re*x+b,Be.point2Y=ne*y+re*E+z,ne=Be.endX,re=Be.endY,Be.endX=ne*a+re*x+b,Be.endY=ne*y+re*E+z;break;case Ue:ne=Be.point1X,re=Be.point1Y,Be.point1X=ne*a+re*x+b,Be.point1Y=ne*y+re*E+z,ne=Be.endX,re=Be.endY,Be.endX=ne*a+re*x+b,Be.endY=ne*y+re*E+z;break;case rt:ne=Be.centerX,re=Be.centerY,Be.centerX=ne*a+re*x+b,Be.centerY=ne*y+re*E+z,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),Be.startAngle+=ne),0>a&&(Be.startAngle=180-Be.startAngle,Be.sweepAngle=-Be.sweepAngle),0>E&&(Be.startAngle=-Be.startAngle,Be.sweepAngle=-Be.sweepAngle),Be.radiusX*=Math.sqrt(a*a+x*x),Be.radiusY!==void 0&&(Be.radiusY*=Math.sqrt(y*y+E*E));break;case gt:if(ne=Be.endX,re=Be.endY,Be.endX=ne*a+re*x+b,Be.endY=ne*y+re*E+z,Be.radiusX===0||Be.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),Be.xAxisRotation+=ne),0>a&&(Be.xAxisRotation=180-Be.xAxisRotation,Be.isClockwiseArc=!Be.isClockwiseArc),0>E&&(Be.xAxisRotation=-Be.xAxisRotation,Be.isClockwiseArc=!Be.isClockwiseArc),Be.radiusX*=Math.sqrt(a*a+x*x),Be.radiusY*=Math.sqrt(y*y+E*E);break;default:at("Unknown Segment type: "+Be.type)}}}}return this._isInvalidBounds=!0,this},De.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case vi.j:return Kt.Yb(x,E,b,z,y,a.x,a.y);case vi.u:var ne=Cn.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=ne.ca(a),Cn.free(ne),a;case vi.F:ne=Math.min(x,b)-y;var re=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(ne=a.x-(ne+x),re=a.y-(re+y),1>=ne*ne/(x*x)+re*re/(y*y));case vi.o:return dc(this,a,y,!0,!1);default:return!1}};function dc(a,y,x,E,b){var z=y.x;y=y.y;for(var ne=a.bounds.x-20,re=0,oe,le,ce,me,Ce=a.figures.s,Me=Ce.length,Be=0;Be<Me;Be++){var Re=Ce[Be],dt=!Re.isEvenOdd;if(Re.isFilled){if(E&&Re.ca(z,y,x))return!0;var et=Re.segments;oe=Re.startX,le=Re.startY;for(var Pt=oe,At=le,Dt=et.s,Rt=0;Rt<=et.length;Rt++){var dn=void 0;if(Rt!==et.length){dn=Dt[Rt];var bi=dn.type;a=dn.endX,me=dn.endY}else bi=ma,a=Pt,me=At;switch(bi){case vs:if(Pt=hc(z,y,ne,y,oe,le,Pt,At),isNaN(Pt))return!0;re+=Pt,Pt=a,At=me;break;case ma:if(oe=hc(z,y,ne,y,oe,le,a,me),isNaN(oe))return!0;re+=oe;break;case nl:ce=Kt.Fo(oe,le,dn.point1X,dn.point1Y,dn.point2X,dn.point2Y,a,me,ne,y,z,y,.5),re+=ce;break;case Ue:ce=Kt.Fo(oe,le,(oe+2*dn.point1X)/3,(le+2*dn.point1Y)/3,(2*dn.point1X+a)/3,(2*dn.point1Y+me)/3,a,me,ne,y,z,y,.5),re+=ce;break;case rt:case gt:bi=dn.type===rt?gl(dn,Re):Dl(dn,Re,oe,le);var Ii=bi.length;if(Ii===0){if(oe=hc(z,y,ne,y,oe,le,dn.type===rt?dn.centerX:dn.endX,dn.type===rt?dn.centerY:dn.endY),isNaN(oe))return!0;re+=oe;break}dn=null;for(var Ni=0;Ni<Ii;Ni++){if(dn=bi[Ni],Ni===0){if(ce=hc(z,y,ne,y,oe,le,dn[0],dn[1]),isNaN(ce))return!0;re+=ce}ce=Kt.Fo(dn[0],dn[1],dn[2],dn[3],dn[4],dn[5],dn[6],dn[7],ne,y,z,y,.5),re+=ce}dn!==null&&(a=dn[6],me=dn[7]);break;default:at("Unknown Segment type: "+dn.type)}oe=a,le=me}if(dt){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Re.ca(z,y,b?x:x+2))return!0}return!1}function hc(a,y,x,E,b,z,ne,re){if(Kt.Yb(b,z,ne,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var le=((a*E-y*x)*(b-ne)-(a-x)*(b*re-z*ne))/oe;if(y=(a*E-y*x)*(z-re)/oe,le>=a)return 0;if((b>ne?b-ne:ne-b)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(b<ne){if(le<b||le>ne)return 0}else if(le<ne||le>b)return 0;return 0<oe?1:-1}function Ac(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}De.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new qe),this.type===vi.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ne=0,re=0;re<b;re++){var oe=E[re],le=oe.length;for(a=0;a<le;a++){var ce=oe[a];if(ne+ce>=z)return E=z-ne,E=ce===0?0:E/ce,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ne+=ce}}return y},De.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===vi.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,ne=0;ne<E;ne++){var re=x[ne],oe=re.length;for(a=0;a<oe;a++){var le=re[a];if(z+le>=b)return b=y[ne],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=le}}return NaN},De.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===vi.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,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ne=0,re=0;re<b;re++){var oe=E[re],le=oe.length;for(a=0;a<le;a++){var ce=oe[a];if(ne+ce>=z)return E=z-ne,E=ce===0?0:E/ce,ce=x[re],x=ce[2*a],re=ce[2*a+1],b=ce[2*a+2],a=ce[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ne+=ce}}return y},De.xx=function(a){if(this.type===vi.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var ne=x;E=b}else ne=b,E=x;return a<=ne?ne===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-ne)}if(x===b)return y<E?ne=y:(ne=E,E=y),z<=ne?ne===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-ne);ne=(E-y)*(E-y)+(b-x)*(b-x);var re=qe.alloc();return Kt.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,qe.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ne)}}else if(this.type===vi.u){ne=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ne!==oe||re!==b){y=oe-ne,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ne),oe),a=Math.min(Math.max(a,re),b),ne=Math.abs(E-ne),oe=Math.abs(E-oe),re=Math.abs(a-re),b=Math.abs(a-b);var le=Math.min(ne,oe,re,b);if(le===re)return E/z;if(le===oe)return(y+a)/z;if(le===b)return(2*y+x-E)/z;if(le===ne)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=qe.alloc(),b=1/0,re=ne=0,oe=y.length;for(var ce=le=0,me=0;me<oe;me++)for(var Ce=y[me],Me=x[me],Be=Ce.length,Re=0;Re<Be;Re+=2){var dt=Ce[Re],et=Ce[Re+1];if(Re!==0){Kt.qh(le,ce,dt,et,a.x,a.y,E);var Pt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);Pt<b&&(b=Pt,ne=re,ne+=Math.sqrt((E.x-le)*(E.x-le)+(E.y-ce)*(E.y-ce))),re+=Me[(Re-2)/2]}le=dt,ce=et}return qe.free(E),a=ne/z,0>a?0:1<a?1:a}return 0};function oh(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===vi.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===vi.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===vi.F){var z=new Os;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ne=new ko(rt);if(ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(a.startX+a.endX)/2,ne.centerY=(a.startY+a.endY)/2,ne.radiusX=Math.abs(a.startX-a.endX)/2,ne.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ne),a=gl(ne,z),b=a.length,b===0)E.push(ne.centerX),E.push(ne.centerY);else{ne=z.startX,z=z.startY;for(var re=0;re<b;re++){var oe=a[re];Kt.Qe(ne,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,E),ne=oe[6],z=oe[7]}}y.push(E),x.push(Td(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),ne=b.startX,z=b.startY,re=ne,oe=z;for(var le=b.segments.s,ce=le.length,me=0;me<ce;me++){var Ce=le[me];switch(Ce.type){case vs:4<=E.length&&(y.push(E),x.push(Td(E))),E=[],E.push(Ce.endX),E.push(Ce.endY),ne=Ce.endX,z=Ce.endY,re=ne,oe=z;break;case ma:E.push(Ce.endX),E.push(Ce.endY),ne=Ce.endX,z=Ce.endY;break;case nl:Kt.Qe(ne,z,Ce.point1X,Ce.point1Y,Ce.point2X,Ce.point2Y,Ce.endX,Ce.endY,.5,E),ne=Ce.endX,z=Ce.endY;break;case Ue:Kt.ep(ne,z,Ce.point1X,Ce.point1Y,Ce.endX,Ce.endY,.5,E),ne=Ce.endX,z=Ce.endY;break;case rt:var Me=gl(Ce,b),Be=Me.length;if(Be===0){E.push(Ce.centerX),E.push(Ce.centerY),ne=Ce.centerX,z=Ce.centerY;break}for(var Re=0;Re<Be;Re++){var dt=Me[Re];Kt.Qe(ne,z,dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],.5,E),ne=dt[6],z=dt[7]}break;case gt:if(Me=Dl(Ce,b,ne,z),Be=Me.length,Re=Ce.endX,dt=Ce.endY,Be===0){E.push(Re),E.push(dt),ne=Re,z=dt;break}for(Re=0;Re<Be;Re++)dt=Me[Re],Kt.Qe(ne,z,dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],.5,E),ne=dt[6],z=dt[7];break;default:at("Segment not of valid type: "+Ce.type)}Ce.isClosed&&(E.push(re),E.push(oe))}4<=E.length&&(y.push(E),x.push(Td(E)))}}}function Td(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var ne=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(lr(x,E,ne,re))),x=ne,E=re}return y}De.add=function(a){return this.ee.add(a),this},De.pm=function(a,y,x,E,b,z,ne,re){return this._isFrozen&&Bn(this),this.fg=new Zi(a,y,b,z).freeze(),this.gg=new Zi(x,E,ne,re).freeze(),this},bt.Object.defineProperties(vi.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 oh(this),this.tk}},flattenedLengths:{get:function(){return oh(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===vi.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===vi.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,E=a=0;E<x;E++)for(var b=y[E],z=b.length,ne=0;ne<z;ne++)a+=b[ne]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Bn(this,a),this.na=a,a===vi.o?this.ee=new An:(vi.V===null&&(vi.V=new An().freeze()),this.ee=vi.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Bn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Bn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Bn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Bn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Bn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Bn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Bn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Bn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),vi.prototype.setSpots=vi.prototype.pm,vi.prototype.add=vi.prototype.add,vi.prototype.getFractionForPoint=vi.prototype.xx,vi.prototype.getPointAndAngleAlongPath=vi.prototype.Qu,vi.prototype.getAngleAlongPath=vi.prototype.wx,vi.prototype.getPointAlongPath=vi.prototype.Pu,vi.prototype.containsPoint=vi.prototype.ca,vi.prototype.transform=vi.prototype.transform,vi.prototype.rotate=vi.prototype.rotate,vi.prototype.scale=vi.prototype.scale,vi.prototype.offset=vi.prototype.offset,vi.prototype.normalize=vi.prototype.normalize,vi.prototype.computeBoundsWithoutOrigin=vi.prototype.ix,vi.prototype.equalsApprox=vi.prototype.Xa,vi.className="Geometry",vi.j=new Jt(vi,"Line",0),vi.u=new Jt(vi,"Rectangle",1),vi.F=new Jt(vi,"Ellipse",2),vi.o=new Jt(vi,"Path",3),vi.V=null,vi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",vi.className="Geometry",vi.stringify=vi.ia,vi.fillPath=vi.nb,vi.parse=vi.parse,vi.Line=vi.j,vi.Rectangle=vi.u,vi.Ellipse=vi.F,vi.Path=vi.o;function Os(a,y,x,E,b){Hr(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new An,this.sr=this.pl.Ja,this.fw=null}Os.prototype.copy=function(){var a=new Os;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},De=Os.prototype,De.Xa=function(a){if(!(a instanceof Os&&Kt.B(this.startX,a.startX)&&Kt.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 E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},De.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,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},De.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},De.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},De.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},De.add=function(a){return this.pl.add(a),this},De.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,ne=b,re=this.segments.s,oe=re.length,le=0;le<oe;le++){var ce=re[le];switch(ce.type){case vs:z=ce.endX,ne=ce.endY,E=ce.endX,b=ce.endY;break;case ma:if(Kt.Yb(E,b,ce.endX,ce.endY,x,a,y))return!0;E=ce.endX,b=ce.endY;break;case nl:if(Kt.cs(E,b,ce.point1X,ce.point1Y,ce.point2X,ce.point2Y,ce.endX,ce.endY,.5,a,y,x))return!0;E=ce.endX,b=ce.endY;break;case Ue:if(Kt.jv(E,b,ce.point1X,ce.point1Y,ce.endX,ce.endY,.5,a,y,x))return!0;E=ce.endX,b=ce.endY;break;case rt:case gt:var me=ce.type===rt?gl(ce,this):Dl(ce,this,E,b),Ce=me.length,Me=ce.type===rt?ce.centerX:ce.endX,Be=ce.type===rt?ce.centerY:ce.endY;if(Ce===0){if(Kt.Yb(E,b,Me,Be,x,a,y))return!0;E=Me,b=Be;break}for(Me=null,Be=0;Be<Ce;Be++)if(Me=me[Be],Be===0&&Kt.Yb(E,b,Me[0],Me[1],x,a,y)||Kt.cs(Me[0],Me[1],Me[2],Me[3],Me[4],Me[5],Me[6],Me[7],.5,a,y,x))return!0;Me!==null&&(E=Me[6],b=Me[7]);break;default:at("Unknown Segment type: "+ce.type)}if(ce.isClosed&&(E!==z||b!==ne)&&Kt.Yb(E,b,z,ne,x,a,y))return!0}return!1},bt.Object.defineProperties(Os.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&&Bn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Bn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Bn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Bn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Bn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Bn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Os.prototype.add=Os.prototype.add,Os.prototype.equalsApprox=Os.prototype.Xa,Os.className="PathFigure";function ko(a,y,x,E,b,z,ne,re){Hr(this),a===void 0&&(a=ma),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),ne===void 0&&(ne=0),a===gt?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof ne=="boolean"?ne&&(this.isLargeArc=!0):typeof ne=="number"&&ne&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===rt&&(z=Math.max(z,0)),this.Wh=z,typeof ne=="number"?(a===rt&&(ne=Math.max(ne,0)),this.Pg=ne):this.Pg=0),this.ae=null}ko.prototype.copy=function(){var a=new ko;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},De=ko.prototype,De.Xa=function(a){if(!(a instanceof ko)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case vs:case ma:return Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY);case nl:return Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY)&&Kt.B(this.point1X,a.point1X)&&Kt.B(this.point1Y,a.point1Y)&&Kt.B(this.point2X,a.point2X)&&Kt.B(this.point2Y,a.point2Y);case Ue:return Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY)&&Kt.B(this.point1X,a.point1X)&&Kt.B(this.point1Y,a.point1Y);case rt:return Kt.B(this.startAngle,a.startAngle)&&Kt.B(this.sweepAngle,a.sweepAngle)&&Kt.B(this.centerX,a.centerX)&&Kt.B(this.centerY,a.centerY)&&Kt.B(this.radiusX,a.radiusX)&&Kt.B(this.radiusY,a.radiusY);case gt:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Kt.B(this.xAxisRotation,a.xAxisRotation)&&Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY)&&Kt.B(this.radiusX,a.radiusX)&&Kt.B(this.radiusY,a.radiusY);default:return!1}},De.qb=function(a){a.classType===ko&&(this.type=a)},De.toString=function(a){switch(a===void 0&&(a=-1),this.type){case vs:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ma:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case nl: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 Ue: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 rt: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 gt: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":"")},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.close=function(){return this.isClosed=!0,this};function gl(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=Kt.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var ne=Wr.alloc();ne.reset(),x<E?ne.scale(1,E/x):ne.scale(x/E,1),vi.Ha(z,ne),Wr.free(ne)}for(x=z.length,E=0;E<x;E++)ne=z[E],ne[0]+=y,ne[1]+=b,ne[2]+=y,ne[3]+=b,ne[4]+=y,ne[5]+=b,ne[6]+=y,ne[7]+=b;return a.ae=z,a.ae}function Dl(a,y,x,E){function b(Re,dt,et,Pt){return(Re*Pt<dt*et?-1:1)*Math.acos((Re*et+dt*Pt)/(Math.sqrt(Re*Re+dt*dt)*Math.sqrt(et*et+Pt*Pt)))}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 ne=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,le=a.Dc,ce=a.Ec,me=Math.cos(ne),Ce=Math.sin(ne),Me=me*(x-le)/2+Ce*(E-ce)/2;ne=-Ce*(x-le)/2+me*(E-ce)/2;var Be=Me*Me/(y*y)+ne*ne/(z*z);return 1<Be&&(y*=Math.sqrt(Be),z*=Math.sqrt(Be)),Be=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ne*ne-z*z*Me*Me)/(y*y*ne*ne+z*z*Me*Me)),isNaN(Be)&&(Be=0),re=Be*y*ne/z,Be=Be*-z*Me/y,isNaN(re)&&(re=0),isNaN(Be)&&(Be=0),x=(x+le)/2+me*re-Ce*Be,E=(E+ce)/2+Ce*re+me*Be,ce=b(1,0,(Me-re)/y,(ne-Be)/z),me=(Me-re)/y,le=(ne-Be)/z,Me=(-Me-re)/y,re=(-ne-Be)/z,ne=b(me,le,Me,re),Me=(me*Me+le*re)/(Math.sqrt(me*me+le*le)*Math.sqrt(Me*Me+re*re)),-1>=Me?ne=Math.PI:1<=Me&&(ne=0),!oe&&0<ne&&(ne-=2*Math.PI),oe&&0>ne&&(ne+=2*Math.PI),oe=y>z?1:y/z,Me=y>z?z/y:1,y=Kt.jx(0,0,y>z?y:z,ce,ce+ne,!0),z=Wr.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,Me),vi.Ha(y,z),Wr.free(z),a.ae=y,a.ae}bt.Object.defineProperties(ko.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&&Bn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Bn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Bn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Bn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Bn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Bn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Bn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Bn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Bn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&pi(a,">= zero",ko,"radiusX"),this._isFrozen&&Bn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&pi(a,">= zero",ko,"radiusY"),this._isFrozen&&Bn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Bn(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&&Bn(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&&Bn(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&&Bn(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&&Bn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ko.prototype.equalsApprox=ko.prototype.Xa;var vs=new Jt(ko,"Move",0),ma=new Jt(ko,"Line",1),nl=new Jt(ko,"Bezier",2),Ue=new Jt(ko,"QuadraticBezier",3),rt=new Jt(ko,"Arc",4),gt=new Jt(ko,"SvgArc",4);ko.className="PathSegment",ko.Move=vs,ko.Line=ma,ko.Bezier=nl,ko.QuadraticBezier=Ue,ko.Arc=rt,ko.SvgArc=gt;function $t(){this.H=null,this.xu=new qe(0,0).freeze(),this.mt=new qe(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}$t.prototype.copy=function(){var a=new $t;return this.clone(a)},$t.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},$t.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},$t.prototype.So=function(a,y){var x=this.diagram;return x===null||Wd(x,a,y),y},$t.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Wd(x,a,y),y.assign(x.Ps(y))),y},bt.Object.defineProperties($t.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}}}),$t.prototype.getMultiTouchDocumentPoint=$t.prototype.Bz,$t.prototype.getMultiTouchViewPoint=$t.prototype.So,$t.className="InputEvent";function sn(){this.H=null,this.xa="",this.ar=this.Lr=null}sn.prototype.copy=function(){var a=new sn;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},sn.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},bt.Object.defineProperties(sn.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}}}),sn.className="DiagramEvent";function Dn(){this.Fm=ii,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Dn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Dn.prototype.copy=function(){var a=new Dn;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=qt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=qt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=qt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=qt(y)&&typeof y.J=="function"?y.J():y,a},Dn.prototype.qb=function(a){a.classType===Dn&&(this.change=a)},Dn.prototype.toString=function(){var a="";return a=this.change===On?a+"* ":this.change===ii?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===On?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Jn(this.object)),this.oldValue!==null&&(a+=" old: "+Jn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Jn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Dn.prototype.I=function(a){return a?this.oldValue:this.newValue},Dn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Dn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Dn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Dn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Dn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},bt.Object.defineProperties(Dn.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===On&&(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}}}),Dn.prototype.redo=Dn.prototype.redo,Dn.prototype.canRedo=Dn.prototype.canRedo,Dn.prototype.undo=Dn.prototype.undo,Dn.prototype.canUndo=Dn.prototype.canUndo,Dn.prototype.getParam=Dn.prototype.Dz,Dn.prototype.getValue=Dn.prototype.I,Dn.prototype.clear=Dn.prototype.clear;var On=new Jt(Dn,"Transaction",-1),ii=new Jt(Dn,"Property",0),ci=new Jt(Dn,"Insert",1),Ei=new Jt(Dn,"Remove",2);Dn.className="ChangedEvent",Dn.Transaction=On,Dn.Property=ii,Dn.Insert=ci,Dn.Remove=Ei;function Xi(){this.o=new An().freeze(),this.xa="",this.j=!1}Xi.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 E=this.changes.M(x);E!==null&&(y+=`
|
|
|
`+E.toString())}}return y},Xi.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()},Xi.prototype.canUndo=function(){return this.isComplete},Xi.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()}},Xi.prototype.canRedo=function(){return this.isComplete},Xi.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()}},Xi.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Kn,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===ii&&E.object){var b=y.get(E.object);b||(b=new Kn,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},bt.Object.defineProperties(Xi.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}}}),Xi.prototype.optimize=Xi.prototype.ak,Xi.prototype.redo=Xi.prototype.redo,Xi.prototype.canRedo=Xi.prototype.canRedo,Xi.prototype.undo=Xi.prototype.undo,Xi.prototype.canUndo=Xi.prototype.canUndo,Xi.prototype.clear=Xi.prototype.clear,Xi.className="Transaction";function wi(){this.Pt=new Wn,this.Jd=!1,this.u=new An().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new An().freeze(),this.hl=new An,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}wi.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
|
|
|
`+this.history.M(E).toString(a-1);return y},wi.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},wi.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},De=wi.prototype,De.Xw=function(a){this.Pt.add(a)},De.Rx=function(a){this.Pt.remove(a)},De.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},De.eb=function(a){return a===void 0&&(a=""),zi(this,!0,a)},De.Kf=function(){return zi(this,!1,"")};function zi(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Li("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ne=a.Ie.count;0<ne&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ne-1),a.Ie.freeze()),ne=a.hl.count,0<ne&&(z=a.hl.M(ne-1),a.hl.mb(ne-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}De.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()}},wi.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},wi.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){Li("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},wi.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},wi.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){Li("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},wi.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Dn;for(E.change=On,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},wi.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Xi);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||Li("Change not within a transaction: "+x.toString()))}},wi.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},bt.Object.defineProperties(wi.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}}}),wi.prototype.handleChanged=wi.prototype.Tu,wi.prototype.redo=wi.prototype.redo,wi.prototype.undo=wi.prototype.undo,wi.prototype.canUndo=wi.prototype.canUndo,wi.prototype.discardHistoryAfterIndex=wi.prototype.lx,wi.prototype.rollbackTransaction=wi.prototype.Kf,wi.prototype.commitTransaction=wi.prototype.eb,wi.prototype.startTransaction=wi.prototype.Ea,wi.prototype.removeModel=wi.prototype.Rx,wi.prototype.addModel=wi.prototype.Xw,wi.prototype.clear=wi.prototype.clear,wi.className="UndoManager";function xi(){Hr(this),this.H=gc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new $t,this.Zr=-1}xi.prototype.toString=function(){return this.name!==""?this.name+" Tool":Zn(this.constructor)},xi.prototype.updateAdornments=function(){},xi.prototype.canStart=function(){return this.isEnabled},xi.prototype.doStart=function(){},xi.prototype.doActivate=function(){this.isActive=!0},xi.prototype.doDeactivate=function(){this.isActive=!1},xi.prototype.doStop=function(){},xi.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},xi.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},xi.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},xi.prototype.doMouseMove=function(){},xi.prototype.doMouseUp=function(){this.stopTool()},xi.prototype.doMouseWheel=function(){},xi.prototype.canStartMultiTouch=function(){return!0},xi.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,qe.allocAt(NaN,NaN)),E=y.So(1,qe.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}qe.free(x),qe.free(E)},xi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,qe.allocAt(NaN,NaN)),E=y.So(1,qe.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new qe((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var ne=a.commandHandler;if(z!==a.scale&&ne.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=b,ne.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}qe.free(x),qe.free(E)},xi.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},xi.prototype.doKeyUp=function(){},xi.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},xi.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},xi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Br?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||(Br?y.meta:y.control)||y.shift||a.clearSelection()}},xi.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,or(a,E,x),E.handled};function or(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){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,E){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)}}}xi.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,ne=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(E===z||E!==null&&E.rg(z)||(re(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=ne,y.handled=!1;E!==null&&(ne=E.mouseEnter,!(ne!==null&&(z===E||z!==null&&z.rg(E)||(ne(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,ne="";z!==null&&(ne=z.cursor,ne==="");)z=z.panel;for(a.currentCursor=ne,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},xi.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},xi.prototype.doCurrentObjectChanged=function(){},xi.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===eo&&!y.shift||b===ar&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===eo&&y.shift||b===ar&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var ne=z.deltaX;z=z.deltaY;var re="pixel";if(ne===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ne!==0&&a.allowHorizontalScroll&&(ne*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ne?"right":"left",Math.abs(ne))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},xi.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},xi.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=li(function(){x.doWaitAfter(E)},a)},xi.prototype.cancelWaitAfter=function(){this.Zr!==-1&&ot.clearTimeout(this.Zr),this.Zr=-1},xi.prototype.doWaitAfter=function(){},xi.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Go);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},xi.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},bt.Object.defineProperties(xi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof cn&&(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}}}),xi.prototype.startTransaction=xi.prototype.Ea,xi.className="Tool";function ei(){xi.call(this),this.name="ToolManager",this.hb=new An,this.ob=new An,this.Hb=new An,this.F=this.V=850,this.o=new oi(2,2).ja(),this.Ha=5e3,this.ia=ar,this.u=oo,this.Mp=this.j=null,this.zj=-1}Ut(ei,xi),ei.prototype.initializeStandardTools=function(){},ei.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Go&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},ei.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===ao&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===to){y.bubbles=!0;return}if(this.gestureBehavior===ao)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===ar?this.mouseWheelBehavior=eo:this.mouseWheelBehavior===eo&&(this.mouseWheelBehavior=ar)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ei.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===to){y.bubbles=!0;return}if(this.gestureBehavior===ao)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}ji(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function ji(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}ei.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Go&&(y===a||y.rg(a))||this.hideToolTip()},ei.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()))},ei.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)},ei.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 Go)||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()},ei.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Go){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof mr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(ot.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=li(function(){b.hideToolTip()},a)}},ei.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},ei.prototype.hideToolTip=function(){this.zj!==-1&&(ot.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Go?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof mr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ei.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},ei.prototype.doMouseWheel=function(){this.standardMouseWheel()},ei.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ei.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ei.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},ei.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},ei.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)},bt.Object.defineProperties(ei.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 Go?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}}}),ei.prototype.replaceStandardTool=ei.prototype.gb;var ar=new Jt(ei,"WheelScroll",0),eo=new Jt(ei,"WheelZoom",1),Kr=new Jt(ei,"WheelNone",2),oo=new Jt(ei,"GestureZoom",3),ao=new Jt(ei,"GestureCancel",4),to=new Jt(ei,"GestureNone",5);ei.className="ToolManager",ei.WheelScroll=ar,ei.WheelZoom=eo,ei.WheelNone=Kr,ei.GestureZoom=oo,ei.GestureCancel=ao,ei.GestureNone=to;function Ji(){xi.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 qe(NaN,NaN),this.Fr=new qe,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Wn().freeze(),this.ia=new se,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var la;Ut(Ji,xi),Ji.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},Ji.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},Ji.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,(Br?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Ji.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),Qt=null,this.isActive=!0,this.tl.set(a.position),Qo(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&&bl(a),ch(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Qt=this,mn=this.diagram,this.doSimulatedDragOut()))};function Qo(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof fi?(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 Bi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Ji.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Ji.prototype.Pd=function(a){return a===void 0?new Kd(_i):this.isGridSnapEnabled?new Kd(new qe(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Kd(a.copy())},Ji.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),va(this),Ru(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<la.count){for(var y=la,x=y.length,E=0;E<x;E++){var b=y.M(E);hs(b),Ba(b),va(b),b.diagram.ug()}y.clear()}hs(this),this.tl.h(NaN,NaN),mn!==null&&(mn.currentCursor=""),Qt=mn=null,Ba(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),od(a,!0)},Ji.prototype.stopTransaction=function(){var a=this.diagram,y=xi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function va(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,rs(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Wa(){var a=Qt;Ba(a),wa(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Ji.prototype.doCancel=function(){Ba(this),wa(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Ji.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Ji.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function za(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):wa(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 Kn,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof fi&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,Qo(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ph(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Ba(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 fi&&(x.value.point=new qe(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function hs(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function Ma(a,y,x){var E=a.diagram,b=a.startPoint,z=qe.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),qe.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(bl(E),E.hk())}Ji.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&qu(E,a,y,this.dragOptions,x)};function wa(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof fi&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),Ph(E,-b.x,-b.y)}y.bd()}}function Na(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),ka(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,ne=!1;try{if(x.skipsUndoManager=!0,ne=rs(a,b,E),!a.isActive&&Qt===null)return;var re=E!==null?E.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Rr)){var oe=x.mouseDragOver;oe!==null&&(oe(b),ne=!0)}if(!a.isActive&&Qt===null||(a.doDragOver(y,E),!a.isActive&&Qt===null))return}finally{x.skipsUndoManager=z,ne&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}Ji.prototype.findDragOverObject=function(a){var y=this;return $u(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Go||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Ji.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 rs(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var ne=0;ne<b;ne++){var re=a.Cg[ne],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Qt===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=fs(b);for(b=a.Cg.length,x=0;x<b&&(ne=a.Cg[x],re=ne.mouseDragEnter,re===null||(re(y,ne,z),E=!0,!y.handled));x++);return E}function fs(a){var y=a.panel;return y!==null?y:a instanceof Qi&&!(a instanceof Rr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Ua(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(le){return E.findValidLinkablePort(le,x)});a=qe.alloc();var z=1/0,ne=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var oe=re.ga(xo,a);oe=y.Bf(oe),oe<z&&(ne=re,z=oe)}}return qe.free(a),ne}function ka(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ne=null;x.fromNode===null&&(z=Ua(a,x.i(0),!1),z!==null&&(ne=z.part));var re=null,oe=null;x.toNode===null&&(re=Ua(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ne,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ne,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):ir(b,ne,z,oe,re):ir(b,null,null,null,null)}}}}Ji.prototype.doDragOver=function(){};function Rs(a,y){var x=a.diagram;a.dragsLink&&ka(a,!0),va(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var ne=z.mouseDrop;if(ne!==null&&(ne(b,z),b.handled))break;ul(a,b,z),z=fs(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Qt!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Mi&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Qt!==null){for(a=Cn.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Mi&&ut(x,E,a);Cn.free(a)}}}function ul(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Rr||(x=a.mouseDrop,x!==null&&x(y))}function ut(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof fi},!0,function(b){return b instanceof fi},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Ji.prototype.doDropOnto=function(){},Ji.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()?(za(this,!1),ch(a,this.copiedParts),Ma(this,this.copiedParts,!1),Ru(a,this.copiedParts)):this.mayMove()?(Ba(this),Ma(this,this.draggedParts,!0)):this.mayDragOut()?(za(this,!1),Ma(this,this.copiedParts,!1)):Ba(this),Na(this,a.lastInput.documentPoint))}},Ji.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?(Ba(this),za(this,!0),ch(a,this.copiedParts),Ma(this,this.copiedParts,!1),Ru(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,Ba(this),this.mayMove()&&(Ma(this,this.draggedParts,!0),Na(this,a.lastInput.documentPoint))),this.Ym=!0,Rs(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&St(this),a.Ya(),Ru(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Ji.prototype.simulatedMouseMove=function(a,y,x){if(Qt===null)return!1;var E=Qt.diagram;x instanceof cn||(x=null);var b=mn;return x!==b&&(b!==null&&b!==E&&(b.ug(),Qt.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),mn=x,x!==null&&x!==E&&(Wa(),b=x.toolManager.findTool("Dragging"),b!==null&&(la.contains(b)||la.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==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,E.doSimulatedDragOver()),!0)},Ji.prototype.simulatedMouseUp=function(a,y,x){if(Qt===null)return!1;var E=mn,b=Qt.diagram;if(x===null)return Qt.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Qt.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;mn=x,E=x.toolManager.findTool("Dragging"),E!==null&&(Wa(),la.contains(E)||la.add(E),E.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 qe),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=Qt,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function St(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Mi&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Ji.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Br?!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())},Ji.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())},Ji.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())},Ji.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Ji.prototype.Az=function(){return Qt},Ji.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Qt;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Ji.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Nl(a),a.animationManager.Cc(),a=Qt,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Ji.prototype.doSimulatedDragLeave=function(){var a=Qt;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Ji.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Qt;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Yt(this,y.draggedParts.Lf(),!1,a.firstInput),Ma(this,this.copiedParts,!1),Na(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Ji.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Qt;if(y!==null){var x=y.diagram;if(y.Ym=!0,Ba(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Yt(this,y.draggedParts.Lf(),!0,a.lastInput),Ma(this,this.copiedParts,!1);var E=new Wn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Rs(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function Yt(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=Cn.alloc();b=E=1/0;for(var ne=-1/0,re=-1/0,oe=y.iterator;oe.next();){var le=oe.value;if(le.isVisible()){var ce=le.location;le=ce.x,ce=ce.y,isNaN(le)||isNaN(ce)||(le<E&&(E=le),ce<b&&(b=ce),le>ne&&(ne=le),ce>re&&(re=ce))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ne-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,Cn.free(z),z=a.Fr,ne=new Kn,re=qe.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof fi&&le.canCopy()&&(ce=x.I(le),ce!==null&&(ce.points=le.points,Ph(ce,z.x-E,z.y-b),ce.suspendsRouting=!0,ne.add(ce,a.Pd())));for(y=y.iterator;y.next();)le=y.value,le.Zc()&&le.canCopy()&&(oe=x.I(le),oe!==null&&(le=le.location,re.h(z.x-(E-le.x),z.y-(b-le.y)),oe.location=re,oe.Va(),ne.add(oe,a.Pd(re))));qe.free(re),a.copiedParts=ne,Qo(a,ne.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ph(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Ji.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Ji.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new qe},bt.Object.defineProperties(Ji.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}}}),Ji.prototype.getDraggingSource=Ji.prototype.Az;var Qt=null,mn=null;Ji.className="DraggingTool",la=new An,Tn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ei.prototype.doCancel=function(){Qt!==null&&Qt.doCancel(),xi.prototype.doCancel.call(this)};function un(){xi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new fi,y=new Vr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Vr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Mi,y=new Vr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Jo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Mi,y=new Vr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Jo,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 Kn,this.Of=this.gj=this.Pf=null}Ut(un,xi),un.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},un.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ne=oi.alloc();ne.width=y.naturalBounds.width*z,ne.height=y.naturalBounds.height*z,E.desiredSize=ne,oi.free(ne),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=xo,z=qe.alloc(),x.location=y.ga(xo,z),qe.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},un.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Jo,y.fromSpot=$a,y.toSpot=$a),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},un.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},un.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Mi){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)}},un.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Mi))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Mi)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},un.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(me){return b.findValidLinkablePort(me,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ne=z.value,re=ne.part;if(re instanceof Mi){var oe=ne.ga(xo,qe.alloc()),le=x.x-oe.x,ce=x.y-oe.y;qe.free(oe),oe=le*le+ce*ce,oe<E&&(le=this.validPortsCache.I(ne),le!==null?le&&(y=ne,E=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ne)||!a&&this.isValidLink(re,ne,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ne,!0),y=ne,E=oe):this.validPortsCache.add(ne,!1))}}return y!==null&&(x=y.part,x instanceof Mi&&(x.layer===null||x.layer.allowLink))?y:null},un.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},un.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},un.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},un.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Mi))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Mi))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},un.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||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 b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},un.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 E=new Wn;return E.add(a),jn(this,x,y,E)};function jn(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),jn(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),jn(a,y.labeledLink,x,E))))}un.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==Uf){if(E===hp){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!zn(this,a,y,x,!0)}if(E===fp){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!zn(this,a,y,x,!0)}if(E===up)return a===y?a=!0:(E=new Wn,E.add(y),a=Rn(this,E,a,y,x)),!a;if(E===cp)return!zn(this,a,y,x,!1);if(E===dp)return a===y?a=!0:(E=new Wn,E.add(y),a=yi(this,E,a,y,x)),!a}return!0};function zn(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ne=z.value;if(ne!==E&&(!b||ne.isTreeLink)&&ne.toNode===y&&(ne=ne.fromNode,ne!==y&&zn(a,ne,x,E,b)))return!0}return!1}function Rn(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ne=z.value;if(ne!==b&&ne.toNode===x&&(ne=ne.fromNode,ne!==x&&Rn(a,y,ne,E,b)))return!0}return!1}function yi(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ne=z.value;if(ne!==b){var re=ne.fromNode;if(ne=ne.toNode,re=re===x?ne:re,re!==x&&yi(a,y,re,E,b))return!0}}return!1}bt.Object.defineProperties(un.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}}}),un.className="LinkingBaseTool";function ti(){un.call(this),this.name="Linking",this.V={},this.F=null,this.K=gi,this.Xd=null}Ut(ti,un),ti.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},ti.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 Mi)))return null;var x=this.direction;if(x===gi||x===Ri){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===gi||x===Oi)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ti.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 Mi&&(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 Mi&&(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)},ti.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()},ti.prototype.doStop=function(){un.prototype.doStop.call(this),this.startObject=null},ti.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var ne=this.targetPort=this.findTargetPort(this.isForwards);if(ne!==null){var re=ne.part;re instanceof Mi&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=ne):(y=re,x=ne,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(ne===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,E,b)):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)}}},ti.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof fi)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)},ti.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},ti.prototype.doNoLink=function(){},bt.Object.defineProperties(ti.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 gi=new Jt(ti,"Either",0),Ri=new Jt(ti,"ForwardsOnly",0),Oi=new Jt(ti,"BackwardsOnly",0);ti.className="LinkingTool",ti.Either=gi,ti.ForwardsOnly=Ri,ti.BackwardsOnly=Oi;function Bi(){un.call(this),this.name="Relinking";var a=new Vr;a.figure="Diamond",a.desiredSize=na,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Vr,a.figure="Diamond",a.desiredSize=na,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Cn}Ut(Bi,un),Bi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof fi){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},Bi.prototype.makeAdornment=function(a,y){var x=new Go;return x.type=ai.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Bi.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},Bi.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 Go&&x.adornedPart instanceof fi))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=Ao),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ao),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},Bi.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===zg||x===wh)&&(x=ql),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}},Bi.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()},Bi.prototype.doStop=function(){un.prototype.doStop.call(this),this.handle=null},Bi.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ne=this.targetPort.part;ne instanceof Mi&&(this.isForwards?(E=ne,b=this.targetPort):(y=ne,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b: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()}}},Bi.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},Bi.prototype.doNoRelink=function(){};function ir(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}bt.Object.defineProperties(Bi.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 Go))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Bi.className="RelinkingTool",Tn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Tn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ti(){xi.call(this),this.name="LinkReshaping";var a=new Vr;a.figure="Rectangle",a.desiredSize=Fa,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Vr,a.figure="Diamond",a.desiredSize=na,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new qe,this.Yq=new An}Ut(Ti,xi),Ti.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:cr},Ti.prototype.om=function(a,y){a.reshapingBehavior=y},Ti.prototype.updateAdornments=function(a){if(a!==null&&a instanceof fi){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)}},Ti.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new Go,b.type=ai.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ne=E?1:0;if(y.resegmentable&&y.computeCurve()!==Zu)for(var re=x+ne;re<z-ne;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,b.add(oe))}for(ne=x+1;ne<z;ne++)if(re=this.makeHandle(a,ne),re!==null){if(re.segmentIndex=ne,ne!==x)if(ne===x+1&&E){oe=y.i(x);var le=y.i(x+1);Kt.B(oe.x,le.x)&&Kt.B(oe.y,le.y)&&(le=y.i(x-1)),Kt.B(oe.x,le.x)?(this.om(re,so),re.cursor="n-resize"):Kt.B(oe.y,le.y)&&(this.om(re,xr),re.cursor="w-resize")}else ne===z-1&&E?(oe=y.i(z-1),le=y.i(z),Kt.B(oe.x,le.x)&&Kt.B(oe.y,le.y)&&(oe=y.i(z+1)),Kt.B(oe.x,le.x)?(this.om(re,so),re.cursor="n-resize"):Kt.B(oe.y,le.y)&&(this.om(re,xr),re.cursor="w-resize")):ne!==z&&(this.om(re,Eo),re.cursor="move");b.add(re)}b.adornedObject=a}return b},Ti.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ti.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ti.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},Ti.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 fi){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),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}}},Ti.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ti.prototype.stopTransaction=function(){var a=this.diagram,y=xi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ti.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ti.prototype.getResegmentingPoint=function(){return this.handle.ga(xo)},Ti.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ti.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,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ne=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(pr(this,ne,E,b,z,!0)||pr(this,ne,E,b,z,!1))){var re=y.points.copy();pr(this,ne,E,b,z,!0)?(re.cd(x-2,new qe(ne.x,(z.y+ne.y)/2)),re.cd(x+1,new qe(z.x,(z.y+ne.y)/2))):(re.cd(x-2,new qe((z.x+ne.x)/2,ne.y)),re.cd(x+1,new qe((z.x+ne.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ne=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(pr(this,E,b,z,ne,!0)||pr(this,E,b,z,ne,!1))&&(re=y.points.copy(),pr(this,E,b,z,ne,!0)?(re.cd(x-1,new qe(E.x,(E.y+ne.y)/2)),re.cd(x+2,new qe(ne.x,(E.y+ne.y)/2))):(re.cd(x-1,new qe((E.x+ne.x)/2,E.y)),re.cd(x+2,new qe((E.x+ne.x)/2,ne.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ne=qe.alloc(),Kt.qh(E.x,E.y,z.x,z.y,b.x,b.y,ne)&&ne.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),qe.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function pr(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}Ti.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===so?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===xr&&(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,E===so?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===xr&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),ne=y.i(E+1);Kt.B(z.x,b.x)&&Kt.B(b.y,ne.y)?(Kt.B(z.x,y.i(E-2).x)&&!Kt.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),Kt.B(ne.y,y.i(E+2).y)&&!Kt.B(ne.x,y.i(E+2).x)?y.m(E+1,ne.x,a.y):y.L(E+1,ne.x,a.y)):Kt.B(z.y,b.y)&&Kt.B(b.x,ne.x)?(Kt.B(z.y,y.i(E-2).y)&&!Kt.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),Kt.B(ne.x,y.i(E+2).x)&&!Kt.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):Kt.B(z.x,b.x)&&Kt.B(b.x,ne.x)?(Kt.B(z.x,y.i(E-2).x)&&!Kt.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),Kt.B(ne.x,y.i(E+2).x)&&!Kt.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):Kt.B(z.y,b.y)&&Kt.B(b.y,ne.y)&&(Kt.B(z.y,y.i(E-2).y)&&!Kt.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),Kt.B(ne.y,y.i(E+2).y)&&!Kt.B(ne.x,y.i(E+2).x)?y.m(E+1,ne.x,a.y):y.L(E+1,ne.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(xo,qe.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,qe.alloc()),y.L(0,E.x,E.y),qe.free(z),qe.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(xo,qe.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,qe.alloc()),y.L(y.pointsCount-1,a.x,a.y),qe.free(x),qe.free(a));y.zf()},Ti.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Eo:return a;case so:return new qe(y.i(x).x,a.y);case xr:return new qe(a.x,y.i(x).y);default:case cr:return y.i(x)}},bt.Object.defineProperties(Ti.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 Go))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}}}),Ti.prototype.setReshapingBehavior=Ti.prototype.om,Ti.prototype.getReshapingBehavior=Ti.prototype.Ru;var cr=new Jt(Ti,"None",0),xr=new Jt(Ti,"Horizontal",1),so=new Jt(Ti,"Vertical",2),Eo=new Jt(Ti,"All",3);Ti.className="LinkReshapingTool",Ti.None=cr,Ti.Horizontal=xr,Ti.Vertical=so,Ti.All=Eo,Tn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Mr(){xi.call(this),this.name="Resizing",this.o=new oi(1,1).freeze(),this.j=new oi(9999,9999).freeze(),this.yg=new oi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Vr;a.alignmentFocus=xo,a.figure="Rectangle",a.desiredSize=Fa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new qe,this.Dw=new oi,this.Tn=new qe,this.rt=new oi(0,0),this.qt=new oi(1/0,1/0),this.pt=new oi(1,1)}Ut(Mr,xi),Mr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof fi)){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(),Vh(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Mr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Go,y.type=ai.Spot,y.locationSpot=xo;var x=new $l;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,As)),y.add(this.makeHandle(a,zl)),y.add(this.makeHandle(a,pa)),y.add(this.makeHandle(a,Ll)),y.add(this.makeHandle(a,ds)),y.add(this.makeHandle(a,Is)),y.add(this.makeHandle(a,Ts)),y.add(this.makeHandle(a,Ps))}else if(xc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Mr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Mr.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=xo),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof ai)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Mr.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},Mr.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))},Mr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Mr.prototype.stopTransaction=function(){var a=this.diagram,y=xi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Mr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Mr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,qe.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),qe.free(b)}},Mr.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,qe.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),qe.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Mr.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 Rr){var E=new An;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new se;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Mr.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=xo);var ne=this.adornedObject.naturalBounds,re=ne.x,oe=ne.y,le=ne.x+ne.width,ce=ne.y+ne.height,me=1;if(!z){me=ne.width;var Ce=ne.height;0>=me&&(me=1),0>=Ce&&(Ce=1),me=Ce/me}return Ce=qe.alloc(),Kt.No(a.x,a.y,re,oe,b.width,b.height,Ce),a=ne.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ce.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.y=Math.max(Ce.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me):(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width),a.x=le-a.width,a.y=ce-a.height)):1<=y.y?(a.x=Math.max(Ce.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=Math.max(le-a.x,x.width),a.height=Math.max(Math.min(Ce.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me):(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width),a.x=le-a.width)):(a.x=Math.max(Ce.x,le-E.width),a.x=Math.min(a.x,le-x.width),a.width=le-a.x,z||(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me,a.y=oe+.5*(ce-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ce.x-re,E.width),x.width),a.y=Math.max(Ce.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=Math.max(ce-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me):(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width),a.y=ce-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ce.x-re,E.width),x.width),a.height=Math.max(Math.min(Ce.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me):(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width))):(a.width=Math.max(Math.min(Ce.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(me*a.width,E.height),x.height),a.width=a.height/me,a.y=oe+.5*(ce-oe-a.height))):0>=y.y?(a.y=Math.max(Ce.y,ce-E.height),a.y=Math.min(a.y,ce-x.height),a.height=ce-a.y,z||(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width,a.x=re+.5*(le-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ce.y-oe,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/me,E.width),x.width),a.height=me*a.width,a.x=re+.5*(le-re-a.width))),qe.free(Ce),a},Mr.prototype.computeReshape=function(){var a=Xn;return this.adornedObject instanceof Vr&&(a=Av(this.adornedObject)),!(a===Gi||this.diagram.lastInput.shift)},Mr.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},Mr.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},Mr.prototype.computeCellSize=function(){var a=new oi(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},bt.Object.defineProperties(Mr.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 Go))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 Go)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}}}),Mr.className="ResizingTool",Tn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Zr(){xi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new qe,this.ue=null;var a=new Vr;a.figure="Ellipse",a.desiredSize=na,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new qe(NaN,NaN),this.u=0,this.F=50}Ut(Zr,xi),Zr.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)}},Zr.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Go,y.type=ai.Position,y.locationSpot=xo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(xc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Zr.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},Zr.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)},Zr.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(xo)},Zr.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 E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Zr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new qe(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Zr.prototype.stopTransaction=function(){var a=this.diagram,y=xi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Zr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Zr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Zr.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()},Zr.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Zr.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},bt.Object.defineProperties(Zr.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 Go))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 Go)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}}}),Zr.className="RotatingTool",Tn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function jo(){xi.call(this),this.name="ClickSelecting"}Ut(jo,xi),jo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},jo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},jo.className="ClickSelectingTool";function Pr(){xi.call(this),this.name="Action",this.pk=null}Ut(Pr,xi),Pr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Pr.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()},Pr.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))}},Pr.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()},Pr.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())},Pr.prototype.doStop=function(){this.pk=null},Pr.className="ActionTool";function _r(){xi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new qe(0,0)}Ut(_r,xi),_r.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)},_r.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},_r.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Qi)x.Zc()&&(xc(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);qt(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=qe.allocAt(a.x,a.y);this.isGridSnapEnabled&&mf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),qe.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},bt.Object.defineProperties(_r.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}}}),_r.className="ClickCreatingTool";function Lr(){xi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Qi;a.layerName="Tool",a.selectable=!1;var y=new Vr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Ut(Lr,xi),Lr.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))},Lr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Lr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Lr.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 E=oi.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),oi.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Lr.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()},Lr.prototype.computeBoxBounds=function(){var a=this.diagram;return new Cn(a.firstInput.documentPoint,a.lastInput.documentPoint)},Lr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Br?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 An,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},bt.Object.defineProperties(Lr.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}}}),Lr.className="DragSelectingTool";function qi(){xi.call(this),this.name="Panning",this.Xt=new qe,this.xy=new qe,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(ot.document,"scroll",a.Kw,!1),a.stopTool()}}Ut(qi,xi),qi.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())},qi.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(ot.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},qi.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},qi.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},qi.prototype.doMouseMove=function(){this.move()},qi.prototype.doMouseUp=function(){this.move(),this.stopTool()},qi.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,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},bt.Object.defineProperties(qi.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),qi.className="PanningTool",Tn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Tn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Tn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Tn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Tn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function mr(){this.F=this.u=this.j=this.o=null}bt.Object.defineProperties(mr.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}}}),mr.className="HTMLInfo";function Qr(a,y,x){this.text=a,this.hx=y,this.visible=x}Qr.className="ContextMenuButtonInfo";function bo(){xi.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new qe,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Ut(bo,xi);function Mo(a){var y=new mr;y.show=function(b,z,ne){ne.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},$o=y,a.tu=function(){a.stopTool()},y=vn("div");var x=vn("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 E=vn("style");ot.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",vr,!1),E.addEventListener(y,"selectstart",vr,!1),E.addEventListener(x,"contextmenu",vr,!1)),y.className="goCXforeground",x.className="goCXbackground",ot.document.body&&(ot.document.body.appendChild(y),ot.document.body.appendChild(x)),Ro=y,ga=x,Xa=!0}function vr(a){return a.preventDefault(),!1}bo.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)},bo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},bo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},bo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof cn||(a instanceof jt?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},bo.prototype.doActivate=function(){},bo.prototype.doMouseDown=function(){if(xi.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Go){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Ho(this)},bo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Go){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Ho(this)};function Ho(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof mr||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Xo(a,!0),a.isActive||a.stopTool())}bo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Xo(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=$o,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof jt?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Go&&!a.currentContextMenu.visible&&a.stopTool()}}bo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},bo.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Go){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof mr&&a.show(y,x,this);this.currentContextMenu=a},bo.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},bo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Go?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof mr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function ea(a){var y=new An;return y.add(new Qr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Qr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Qr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Qr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Qr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Qr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Qr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Qr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Qr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Qr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Qr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Qr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Qr("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}bo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=ea(this)),Ro.innerHTML="",ga.addEventListener("pointerdown",this.tu,!1);var y=this,x=vn("ul");x.className="goCXul",Ro.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=vn("li"),z.className="goCXli";var ne=vn("a");ne.className="goCXa",ne.href="#",ne.ky=b.hx,ne.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ne.textContent=b.text,z.appendChild(ne),x.appendChild(z)}}Ro.style.display="block",ga.style.display="block"},bo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===$o){Ro.style.display="none",ga.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ga,"pointerdown",this.tu,!1),this.currentContextMenu=null}},bt.Object.defineProperties(bo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Go?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Xa===!1&&$o===null&&ls&&Mo(this),$o},set:function(a){a===null&&(Xa=!0),$o=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var $o=null,Xa=!1,ga=null,Ro=null;bo.className="ContextMenuTool",Tn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function po(){xi.call(this),this.name="TextEditing",this.Zh=new Ca,this.ia=null,this.V=co,this.vj=null,this.qa=Hi,this.u=1,this.F=!0,this.o=null,this.j=new mr,this.kt=null,Bo(this,this.j)}Ut(po,xi);function Bo(a,y){if(ls){var x=vn("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(Po)):b==="Tab"?(a.acceptText(To),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Hi){var E=a.kt;a.qa===Tr&&(a.qa=Ko),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Hi){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof Ca&&z instanceof po)if(z.state===il)x.style.border="3px solid red",x.focus();else{var ne=E.ga(xo),re=b.position,oe=b.scale,le=E.Df()*oe;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var ce=E.naturalBounds.width*le+6,me=E.naturalBounds.height*le+2,Ce=(ne.x-re.x)*oe;ne=(ne.y-re.y)*oe,re=E.verticalAlignment,oe=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*le,me=re.y*me-re.y*oe+re.offsetY-(.5*me-.5*oe)-oe/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*le+"%",x.style.lineHeight="normal",x.style.width=ce+"px",x.style.left=(Ce-ce/2|0)-1+"px",x.style.top=(ne+me|0)-1+"px",x.style.textAlign=E.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=E.lineCount,x.wA=le,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}po.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||yl&&yl!==this&&(yl.acceptText(es),yl&&yl!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ca&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===co&&!y.isSelected||this.starting===Ur&&2>a.lastInput.clickCount)):!1},po.prototype.doStart=function(){yl=this,this.textBlock!==null&&this.doActivate()},po.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 Ca&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Tr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new Cn(this.textBlock.ga(As),this.textBlock.ga(pa));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},po.prototype.doCancel=function(){this.stopTool()},po.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},po.prototype.doMouseDown=function(){this.isActive&&this.acceptText(es)},po.prototype.acceptText=function(a){switch(a){case es:this.qa===zs?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Tr||this.qa===il||this.qa===Ko)&&(this.qa=ua,Ga(this));break;case Ta:case Po:case To:(Po!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Tr||this.qa===il||this.qa===Ko)&&(this.qa=ua,Ga(this))}};function Ga(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=zs,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=il,a.doError(b,z))}}po.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)},po.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},po.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Hi,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},po.prototype.doStop=function(){yl=null},po.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},po.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},bt.Object.defineProperties(po.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)}}}),po.prototype.measureTemporaryTextBlock=po.prototype.Lx;var Ta=new Jt(po,"LostFocus",0),es=new Jt(po,"MouseDown",1),To=new Jt(po,"Tab",2),Po=new Jt(po,"Enter",3),zo=new Jt(po,"SingleClick",0),co=new Jt(po,"SingleClickSelected",1),Ur=new Jt(po,"DoubleClick",2),Hi=new Jt(po,"StateNone",0),Tr=new Jt(po,"StateActive",1),Ko=new Jt(po,"StateEditing",2),ua=new Jt(po,"StateValidating",3),il=new Jt(po,"StateInvalid",4),zs=new Jt(po,"StateValidated",5),yl=null;po.className="TextEditingTool",po.LostFocus=Ta,po.MouseDown=es,po.Tab=To,po.Enter=Po,po.SingleClick=zo,po.SingleClickSelected=co,po.DoubleClick=Ur,po.StateNone=Hi,po.StateActive=Tr,po.StateEditing=Ko,po.StateValidating=ua,po.StateInvalid=il,po.StateValidated=zs,Tn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Da(a){Ls||(Va(),Ls=!0),this.H=gc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Vs,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Wn,this.ce=new Ja,this.ce.Yd=this,this.Ei=new Wn,this.pu=new Wn,this.Sr=new Wn,this.pr=new Wn,a&&Object.assign(this,a)}Da.prototype.Xe=function(a){this.H=a},Da.prototype.canStart=function(){return!0};function Ka(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),rl(a.H),a.zb=!0)}function Fo(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===Vs?(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===su&&y.vc.clear(),a.Qw=!!(a.Pk===Mu&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),xl(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==jl&&E!==null&&(delete E.start.scale,delete E.end.scale),ot.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&bl(x),Od(x),a.zb=!1,y.start(),y.bc&&(ts(a),x.Ya(),fc(y,0),Nl(x,!0),ws(a),x.R("AnimationStarting",a)))}))}}function Gs(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Sl(a,y,x,E){a.isTicking||Gs(a)||y instanceof fi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}De=Da.prototype,De.fv=function(a){return this.ce.fv(a)},De.Xu=function(a){return this.ce.Xu(a)};function ja(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var ne=z.value;if(ne.bc!==!1){e:if(0<ne.yl.count)var re=!0;else{for(re=ne.vc.iterator;re.next();){var oe=re.key;if(oe instanceof jt&&oe.diagram!==null||oe instanceof cn){re=!0;break e}}re=!1}re?mu(ne,!1):ne.Xk=!0}}b.pu.clear(),b.bc!==!1&&(ts(b),Nl(b.H),ws(b)),ot.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),ot.requestAnimationFrame(function(){x()}))}function _a(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ts(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 ws(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}De.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(),xl(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),xl(y,this.H)},De.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))},De.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),os(this,a))},De.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ys(this.ce,y,"position",y.position,y.position),os(this,a))};function Ks(a,y,x){!a.zb||y.D(x)||Gs(a)||(a.H.pi||(y=x.copy()),ys(a.ce,a.H,"position",y,x))}function ya(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function os(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function _s(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ne=a[1],re=a[2];a=a[3];var oe=y[0],le=y[1],ce=y[2];return y=y[3],re===0||re===100?(z=oe,ne=le):(ce===0||ce===100)&&(oe=z,le=ne),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=b(x,z,oe-z,E)%360,ne=b(x,ne,le-ne,E),re=b(x,re,ce-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ne+"%, "+re+"%, "+x+")"}function Va(){function a(x,E,b,z,ne,re){x.position=new qe(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re))}var y=new Kn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,ne,re){ne<re?x.mm(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re),!1):x.position=new qe(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re))}),y.add("location",function(x,E,b,z,ne,re){ne<re?x.mm(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re),!0):x.location=new qe(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re))}),y.add("position:placeholder",function(x,E,b,z,ne,re){ne<re?x.mm(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re),!1):x.position=new qe(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re))}),y.add("position:nodeCollapse",function(x,E,b,z,ne,re){var oe=x.actualBounds,le=b.actualBounds;b=le.x+le.width/2-oe.width/2,oe=le.y+le.height/2-oe.height/2,ne<re?x.mm(z(ne,E.x,b-E.x,re),z(ne,E.y,oe-E.y,re),!1):x.position=new qe(z(ne,E.x,b-E.x,re),z(ne,E.y,oe-E.y,re))}),y.add("desiredSize",function(x,E,b,z,ne,re){x.desiredSize=new Cn(z(ne,E.width,b.width-E.width,re),z(ne,E.height,b.height-E.height,re))}),y.add("width",function(x,E,b,z,ne,re){x.width=z(ne,E,b-E,re)}),y.add("height",function(x,E,b,z,ne,re){x.height=z(ne,E,b-E,re)}),y.add("fill",function(x,E,b,z,ne,re){x.fill=_s(E,b,ne,re,z)}),y.add("stroke",function(x,E,b,z,ne,re){x.stroke=_s(E,b,ne,re,z)}),y.add("strokeWidth",function(x,E,b,z,ne,re){x.strokeWidth=z(ne,E,b-E,re)}),y.add("strokeDashOffset",function(x,E,b,z,ne,re){x.strokeDashOffset=z(ne,E,b-E,re)}),y.add("background",function(x,E,b,z,ne,re){x.background=_s(E,b,ne,re,z)}),y.add("areaBackground",function(x,E,b,z,ne,re){x.areaBackground=_s(E,b,ne,re,z)}),y.add("opacity",function(x,E,b,z,ne,re){x.opacity=z(ne,E,b-E,re)}),y.add("scale",function(x,E,b,z,ne,re){x.scale=z(ne,E,b-E,re)}),y.add("angle",function(x,E,b,z,ne,re){x.angle=z(ne,E,b-E,re)}),Oo=y}bt.Object.defineProperties(Da.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&&pi(a,">= 1",Da,"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}}}),Da.prototype.stopAnimation=Da.prototype.Cc;var Oo=null,Ls=!1,Vs=new Jt(Da,"Default",1),Mu=new Jt(Da,"AnimateLocations",2),su=new Jt(Da,"None",3);Da.className="AnimationManager",Da.defineAnimationEffect=function(a,y){Ls||(Va(),Ls=!0),Oo.add(a,y)},Da.Default=Vs,Da.AnimateLocations=Mu,Da.None=su;function Ja(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=Yl,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=_i,this.vc=new Kn,this.Tt=new Kn,this.yl=new Wn,this.Ut=new Wn,this.dw=fh,a&&Object.assign(this,a)}Ja.prototype.suspend=function(){this.Xk=!0},Ja.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,mu(this,!0),ts(this.Yd),Nl(this.H),ws(this.Yd),this.H.redraw()};function xl(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}De=Ja.prototype,De.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 cn?a=x:x instanceof jt&&(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===Vs&&this===y.defaultAnimation&&(this.Lp=Ju,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Xf),ts(y),this.yl.each(function(E){E.data=null,a.add(E)}),ws(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ja(y,this),this)},De.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},De.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof cn?this.H=a:a instanceof jt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Qi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ys(this,a,y,x,E,b),this};function ys(a,y,x,E,b,z){var ne=a.vc;if(y instanceof cn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Yd(E),lv(),E=[Wu.j,Wu.u,Wu.o,Wu.F],Yd(b),lv(),b=[Wu.j,Wu.u,Wu.o,Wu.F]),ne.contains(y)){var re=ne.I(y),oe=re.start,le=re.end;oe[x]===void 0&&(oe[x]=gs(E)),le[x]=gs(b)}else oe={},le={},oe[x]=gs(E),le[x]=gs(b),re=oe.position,y instanceof jt&&re instanceof qe&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new Qu(oe,le,z),ne.add(y,re);ne=oe[x],ne instanceof qe&&!ne.w()&&ne.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Qi?re.Ku.location=gs(y.location):z&&(re.Ku[x]=gs(E))}function gs(a){return a instanceof qe||a instanceof oi?a.copy():a}De.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},De.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function mu(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),ts(x),fc(a,b),Nl(a.H,!0),ws(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function fc(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof jt&&z.diagram===null)){var ne=E.value,re=b?ne.end:ne.start;ne=b?ne.start:ne.end;var oe=Oo,le;for(le in ne)le==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||oe.get(le)===null||oe.get(le)(z,re[le],ne[le],a.Lp,y,x,a)}}}De.stop=function(){return this.bc?(this.Ml(!0),this):this},De.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,ts(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=Oo;E.next();){var ne=E.key,re=E.value,oe=b?re.end:re.start,le=b?re.start:re.end,ce=re.Ku,me;for(me in le)if(z.get(me)!==null){var Ce=me;!re.Hu||Ce!=="position:nodeCollapse"&&Ce!=="position:placeholder"||(Ce="position"),z.get(Ce)(ne,oe[me],ce[me]!==void 0?ce[me]:re.Hu?oe[me]:le[me],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ce.location!==void 0&&ne instanceof Qi&&(ne.location=ce.location),re.nv&&ne instanceof Qi&&ne.Zb(!1)}if(y.As.clear(),od(y,!1),y.Ya(),y.N(),Nl(y,!0),x.defaultAnimation===this){for(me=x.pr.iterator;me.next();)b=me.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}Nl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),ws(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),xl(this,null),x.Ml(this),y.$b())}},De.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Rr&&(E=y.placeholder),E!==null?(x=E.ga(As),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new qe(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Rr)for(a=a.memberParts;a.next();)E=a.value,E instanceof Mi&&this.Cj(E,y)},De.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Rr&&(x=y.placeholder),x!==null){var E=x.ga(As);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Rr)for(a=a.memberParts;a.next();)E=a.value,E instanceof Mi&&this.Aj(E,y)}},De.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},bt.Object.defineProperties(Ja.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&pi(a,">= 1",Ja,"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:at("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}}}),Ja.prototype.getTemporaryState=Ja.prototype.Ez,Ja.prototype.stop=Ja.prototype.stop,Ja.prototype.add=Ja.prototype.add,Ja.prototype.addTemporaryPart=Ja.prototype.Iy;function Yl(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Ju(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}Ja.className="Animation",Ja.EaseLinear=function(a,y,x,E){return x*a/E+y},Ja.EaseInOutQuad=Yl,Ja.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},Ja.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},Ja.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},Ja.EaseOutExpo=Ju;function Qu(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Qu.className="AnimationState";function lu(a,y,x){this.xd=null,this.rf=a,this.so=x||as,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Js))}lu.prototype.copy=function(){var a=new lu(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 Oa(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))}bt.Object.defineProperties(lu.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 as=new Jt(lu,"Default",1),Js=new Jt(lu,"Immediate",2),ps=new Jt(lu,"Bundled",3);lu.className="AnimationTrigger",lu.Default=as,lu.Immediate=Js,lu.Bundled=ps;function Ia(a){Hr(this),this.H=null,this.Pa=new An,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)}De=Ia.prototype,De.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Ol(x)}a.clear(),this.Zq.length=0},De.Xe=function(a){this.H=a},De.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,ne=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof Rr?b++:oe instanceof Mi?E++:oe instanceof fi?z++:oe instanceof Go?ne++:x++}if(re="",0<x&&(re+=x+" Parts "),0<E&&(re+=E+" Nodes "),0<b&&(re+=b+" Groups "),0<z&&(re+=z+" Links "),0<ne&&(re+=ne+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
|
|
|
`+x.toString(),E=x.data,E!==null&&yo(E)&&(re+=" #"+yo(E)),x instanceof Mi?re+=" "+Jn(E):x instanceof fi&&(re+=" "+Jn(x.fromNode)+" "+Jn(x.toNode));return y+" "+this.Pa.count+": "+re},De.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=qe.alloc(),z=this.Pa.s,ne=z.length;ne--;){var re=z[ne];if((E!==!0||Vh(re)!==!1)&&re.isVisible()&&(b.assign(a),Gr(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return qe.free(b),re}return qe.free(b),null},De.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof An||E instanceof Wn||(E=new Wn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=qe.alloc(),ne=this.Pa.s,re=ne.length;re--;){var oe=ne[re];if((b!==!0||Vh(oe)!==!1)&&oe.isVisible()){z.assign(a),Gr(z,oe.oe);var le=oe;oe.ji(z,y,x,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return qe.free(z),E},De.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof An||b instanceof Wn||(b=new Wn),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ne=this.Pa.s,re=ne.length;re--;){var oe=ne[re];if((z!==!0||Vh(oe)!==!1)&&oe.isVisible()){var le=oe;oe.Cf(a,y,x,E,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return b},De.Nu=function(a,y,x,E,b,z,ne){if(this.Uh===!1)return b;for(var re=this.Pa.s,oe=re.length;oe--;){var le=re[oe];if((ne!==!0||Vh(le)!==!1)&&z(le)&&le.isVisible()){var ce=le;le.Cf(a,y,x,E,b)&&(y!==null&&(ce=y(ce)),ce===null||x!==null&&!x(ce)||b.add(ce))}}return b},De.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof An||b instanceof Wn)&&(z=b),b=!0),z instanceof An||z instanceof Wn||(z=new Wn),this.Uh===!1)return z;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var re=qe.alloc(),oe=qe.alloc(),le=this.Pa.s,ce=le.length;ce--;){var me=le[ce];if((ne!==!0||Vh(me)!==!1)&&me.isVisible()){re.assign(a),Gr(re,me.oe),oe.h(a.x+y,a.y),Gr(oe,me.oe);var Ce=me;me.og(re,oe,x,E,b,z)&&(x!==null&&(Ce=x(Ce)),Ce===null||E!==null&&!E(Ce)||z.add(Ce))}}return qe.free(re),qe.free(oe),z},De.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=En();for(var b=En(),z=0;z<E;z++){var ne=x[z];if(ne.vw=z,ne instanceof fi){if(ne.fd===!1)continue}else if(ne instanceof Go&&ne.adornedPart!==null)continue;var re=ne.actualBounds;ne.isVisible()&&sa(re,y)?(ne.Fd(!0),a.push(ne)):(ne.Fd(!1),ne.adornments!==null&&0<ne.adornments.count&&b.push(ne))}for(y=0;y<a.length;y++)for(x=a[y],Rv(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)Rv(b[y]);kn(a),kn(b)}}};function Qs(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}De.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=Qs(this,a);var z=this.Zq;z.length=0;for(var ne=y.scale,re=Cn.alloc(),oe=0;oe<E;oe++)this.Oj(a,x[oe],y,z,ne,re,!0);if(Cn.free(re),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function Bl(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var ne=Qs(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,le=Cn.alloc(),ce=0;ce<z;ce++){var me=b[ce];E.contains(me)&&a.Oj(y,me,x,re,oe,le,!1)}Cn.free(le),y.globalAlpha=ne}}}De.Oj=function(a,y,x,E,b,z,ne){if(ne&&!Vh(y))a.Hs(y);else{if(E!==null&&y instanceof fi&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(ne=!1,E=y.containingGroup;E!==null;)ne?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(ne=!0,z.assign(E.tb)),E=E.containingGroup;var re=y.actualBounds;if(E=!1,ne&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}E=!z.Re(re)}E&&(a.save(),a instanceof Fu?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*b>x.Oq||re.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(us(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(us(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),us(y,a,y.background,!0,!1,z,b),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)))))),E&&(a.restore(),a.Vc(!0))}},De.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(ii,a,this,y,x,E,b)},De.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Ol(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),Lu(this,a,y),a},De.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,Ol(y),a};function Lu(a,y,x){if(y=ah(a,y,x),x instanceof Rr&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,ne=0;ne<z;ne++){var re=b[ne];if(re===x&&(y=ne,0<=E)||0>E&&re.containingGroup===x&&(E=ne,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&Lu(a,-1,y)}x.svg!==null&&x.svg.remove()}function ah(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ne=NaN;0<=z&&(ne=a.M(z).zOrder,!!isNaN(ne));)z--;for(var re=y+1,oe=NaN;re<b&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ne)&&ne>E)for(;;){if(z===-1||ne<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ne=NaN;0<=--z&&(ne=a.M(z).zOrder,isNaN(ne)););}else if(!isNaN(oe)&&oe<E)for(;;){if(re===b||oe>=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<b&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}bt.Object.defineProperties(Ia.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===""&&at("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&at("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)&&pi(a,"0 <= value <= 1",Ia,"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))}}}),Ia.prototype.findObjectsNear=Ia.prototype.og,Ia.prototype.findObjectsIn=Ia.prototype.Cf,Ia.prototype.findObjectsAt=Ia.prototype.ji,Ia.prototype.findObjectAt=Ia.prototype.ic,Ia.className="Layer";function cn(a,y){if(hm||(kl(),hm=!0),Hr(this),gc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ls){var x=this,E=function(){x.removeEventListener(ot.document,"DOMContentLoaded",E,!1),x.setRTL()};ot.document.body!==null?this.setRTL():x.addEventListener(ot.document,"DOMContentLoaded",E,!1)}this.ol=null,Vc.add("Model",ra);var b=this;return this.Hb=function(z){var ne=b.partManager;if(z.model===ne.diagram.model&&ne.diagram.aa){ne.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===ii&&ne.updateDataBindings(z.object,z.propertyName)}finally{ne.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,Rh(this),this.model=hy(),this.Wg=!0,Id(this),this.layout=new Ha,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 fm,a!==void 0&&(typeof a=="string"||ot.Element&&a instanceof Element?Lc(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Mc,gc;function Rh(a){a.Yd=new Da,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new An,a.pj=new Kn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new qe(NaN,NaN).freeze(),a.du=new qe(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new qe(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Wr,a.zu=new qe(NaN,NaN).freeze(),a.ut=new Cn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Yn(0,0,0,0).freeze(),a.sj=fh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=jl,a.zk=Yo,a.Fg=jl,a.pq=Yo,a.yt=As,a.Bt=As,a.Fc=!0,a.pn=!1,a.De=new Wn,a.Eh=new Kn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Yn(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new $t,a.bq.diagram=a,a.Qg=new $t,a.Qg.diagram=a,a.cj=new $t,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,lp(a),a.ai=new Wn,a.Ht=!0,a.uu=gh,a.pw=!1,a.wu=Uf,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 Kn,a.Xn=new An,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 Yn(5).freeze(),a.Hw=new Wn().freeze(),a.Nt=999999999,a.nw=new Wn().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new Wn,a.ow=new Wn,a.Xh=null,a.aw=new oi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new qe,bounds:new Cn,Py:new oi,bA:new oi,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Cn(NaN,NaN,NaN,NaN).freeze(),a.wo=new oi(NaN,NaN).freeze(),a.Sp=new Cn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Kn;var y=new Mi,x=new Ca;x.bind(new Fs("text","",Jn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Mi,x=new Ca,x.stroke="brown",x.bind(new Fs("text","",Jn)),y.add(x),a.Lg.add("Comment",y),y=new Mi,y.selectable=!1,y.avoidable=!1,x=new Vr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new oi(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Kn,y=new Rr,y.selectionObjectName="GROUPPANEL",y.type=ai.Vertical,x=new Ca,x.font="bold 12pt sans-serif",x.bind(new Fs("text","",Jn)),y.add(x),x=new ai(ai.Auto),x.name="GROUPPANEL";var E=new Vr;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new $l,E.padding=new Yn(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Kn,y=new fi,x=new Vr,x.isPanelMain=!0,y.add(x),x=new Vr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new fi,x=new Vr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Go,y.type=ai.Auto,x=new Vr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new $l,x.margin=new Yn(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Go,y.type=ai.Link,x=new Vr,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 ra,a.toolManager=new ei,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new se,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Hc(),a.eq=null,a.fq=Er,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 qe,a.zy=500,a.wp=new qe,a.wq=!1}cn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),xf=null,Wh="",vd(this,!1),this.Xn.clear(),kg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function vd(a,y){a.animationManager.Cc(!0),a.Hw=new Wn().freeze(),a.nw=new Wn().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],ne=a.Wa.length;if(y){for(y=0;y<ne;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==b&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ne;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),kg(),a.Og.clear(),rr=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Hc(){return null}cn.prototype.reset=function(){this.clear(),this.vb=!0,Rh(this),Dc(this),this.Wg=!0,Id(this),this.layout=new Ha,this.Wg=!1,this.model=hy(),this.model.undoManager=new wi,this.vb=this.rn=!1,this.N()},cn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=ot.document.body);var y=vn("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},cn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=ot.document.body);var y=0;if(ls){var x=vc;y=Mc,x===null&&(x=vc=vn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Mc=vn("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 E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||Br||(y=11)}this.Db=y,this.Gw=!0},cn.prototype.qb=function(a){a.classType===cn&&(this.autoScale=a)},cn.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 Lc(a,y){if(ls){if(y!=null||at("Diagram setup requires an argument DIV."),a.Ka!==null&&at("Diagram has already completed setup."),typeof y=="string"?a.Ka=ot.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:at("No DIV or DIV id supplied: "+y),a.Ka===null&&at("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&at("Invalid div id; div already has a Diagram associated with it."),!a.ol&&ot.ResizeObserver){var x=yn(function(){a.$b()},250);a.ol=new ot.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}ot.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=ot.go;var b=new Sc(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",ot.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),uh(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new Sc(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,ls){b=vn("div");var z=vn("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=gf,b.addEventListener("pointerdown",zd),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=yn(function(){a.Yh=null,a.N()},300),a.Ov=yn(function(){Od(a)},250),a.preventDefault=function(ne){return ne.preventDefault(),!1},a.$j=function(ne){if(a.isEnabled){var re=Ul(a,ne,!0);re.bubbles=!0;var oe=0,le=0;re.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(oe=0<ne.deltaX?1:-1),ne.deltaY!==0&&(le=0<ne.deltaY?1:-1),re.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-oe:-le):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(oe=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(le=0<ne.wheelDeltaY?-1:1),re.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-oe:-le):ne.wheelDelta!==void 0&&ne.wheelDelta!==0&&(re.delta=0<ne.wheelDelta?1:-1),a.doMouseWheel(),uu(re,ne)}},a.aA=function(ne){a.isEnabled&&(a.Vk=!1,Ul(a,ne,!0),ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())},a.ui=function(ne){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ne.pointerId]===void 0&&(re[ne.pointerId]=ne),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ne.pointerId&&re[0].pointerType===ne.pointerType)if(re[1]!==null&&re[1].pointerId===ne.pointerId)re[1]=ne,oe=!0;else if(re[0]===null)re[0]=ne;else if(re[1]===null)re[1]=ne,oe=!0;else{ne.preventDefault();return}else re[0]=ne;(re=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=oe;oe=Hd(a,ne,!0,!1,!0,le),yd(a,ne,oe),oe.targetDiagram=sh(ne,ne.target),oe.targetObject=null,le||oe.clone(a.bq),le=a.uw,re=re?25:10,ne.timeStamp-a.tw<a.zy&&!(Math.abs(le.x-ne.screenX)>re||Math.abs(le.y-ne.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():uu(oe,ne)}},a.dk=function(ne){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ne.pointerId&&re[0].pointerType===ne.pointerType){if(re[1]!==null&&re[1].pointerId===ne.pointerId){re[1]=ne;return}if(re[0]===null)re[0]=ne;else return}else re[0]=ne;if(re[0].pointerId===ne.pointerId){re=Hd(a,ne,!1,!1,!1,re[1]!==null);var oe=ot.document.elementFromPoint(ne.clientX,ne.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var le=a,ce=ne;oe&&oe.H&&(ce=ne,le=oe.H),re.targetDiagram=le,yd(a,ce,re),re.targetObject=null,a.doMouseMove(),uu(re,ne)}}},a.fk=function(ne){if(a.isEnabled){a.Vk=!0;var re=ne.pointerType==="touch"||ne.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ne.pointerId],ne.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ne.pointerId&&oe[0].pointerType===ne.pointerType)oe[1]!==null&&oe[1].pointerId===ne.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Hd(a,ne,!1,!0,!0,!1);var le=ot.document.elementFromPoint(ne.clientX,ne.clientY)||null;le!==null&&le.shadowRoot!==void 0&&le.shadowRoot!==null&&(le=le.shadowRoot.elementFromPoint(ne.clientX,ne.clientY)),le!==null&&le.H instanceof cn&&le.H!==a&&yd(le.H,ne,oe),le===null&&(le=ne.target),yd(a,ne,oe),oe.clickCount=a.yq,oe.targetDiagram=sh(ne,le),oe.targetObject=null,a.doMouseUp(),uu(oe,ne),re&&(a.wq=!1)}}},a.ek=function(ne){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ne.pointerId]&&delete re[ne.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ne.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ne.pointerId&&(re[1]=null),ne.pointerType!=="touch"&&ne.pointerType!=="pen"&&(ne=a.currentTool,ne.cancelWaitAfter(),ne.standardMouseOver())}},a.ck=function(ne){var re=a.oj;re[0]!==null&&re[0].pointerId===ne.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ne.pointerId&&(re[1]=null)},a.Vp=E.Z["d"+Jf[1]+Jf[2]+"wI"+wf.slice(1,5)]["b"+jx.slice(1,y)](E.Z,_f,y,y),E.Vc(!0),ff(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}cn.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},cn.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function ff(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(ot,"resize",a.Ov,!1)}function bl(a){30<a.Sq&&(a.Yh=1)}function od(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Nr&&Nr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}cn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:ot.devicePixelRatio||1},cn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},cn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},cn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},cn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},cn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},cn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},cn.prototype.doFocus=function(){this.focus()},cn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=ot.scrollX||ot.pageXOffset,y=ot.scrollY||ot.pageYOffset;this.ta.focus(),ot.scrollTo(a,y)}},cn.prototype.Oy=function(){this.H.R("GainedFocus")},cn.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,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===jl&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Id(a){var y=new Ia;y.name="Background",a.Al(y),y=new Ia,y.name="",a.Al(y),y=new Ia,y.name="Foreground",a.Al(y),y=new Ia,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Ia,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Ia,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 ai(ai.Grid);y.name="GRID";var x=new Vr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Vr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Vr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Vr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Vr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Vr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Qi,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 gf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Gc(this.H)}function zd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Gc(this.H)}cn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,ne=E.x-z.left,re=E.y-z.top,oe=E.width+z.left+z.right,le=E.height+z.top+z.bottom,ce=E.right+z.right;z=E.bottom+z.bottom;var me=b.x;E=b.y;var Ce=b.width,Me=b.height,Be=b.right,Re=b.bottom;b=this.scale;var dt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":dt=dt+a.scrollWidth-a.clientWidth;break;case"reverse":dt=a.scrollWidth-dt-a.clientWidth}var et=dt;Ce<oe||Me<le?(dt=qe.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==et&&(dt.x=et/b+ne,this.ju=et),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(dt.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=dt,qe.free(dt),this.Ee=this.qr=!1):(dt=qe.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<me&&(this.position=dt.h(et+ne,this.position.y)),ce>Be&&(this.position=dt.h(-(y.scrollWidth-this.Aa)+et-this.Aa/b+ce,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=dt.h(this.position.x,a.scrollTop+re)),z>Re&&(this.position=dt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),qe.free(dt),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ce=E.right,Be=b.right,z=E.bottom,Re=b.bottom,ne=E.x,me=b.x,re=E.y,E=b.y,Ce>=oe&&ne>=me&&ce<=Be&&(x.style.width="1px"),Me>=le&&re>=E&&z<=Re&&(x.style.height="1px"))}},cn.prototype.computeBounds=function(a){return a===void 0&&(a=new Cn),rl(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,E=a.Wa.s,b=E.length,z=0;z<b;z++){var ne=E[z];if(ne.visible&&ne.isInDocumentBounds){ne=ne.Pa.s;for(var re=ne.length,oe=0;oe<re;oe++){var le=ne[oe];le.isInDocumentBounds&&le.isVisible()&&(le=le.actualBounds,le.w()&&(x?(x=!1,y.assign(le)):y.ed(le)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}cn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Nn(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof fi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof fi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new Cn(NaN,NaN,0,0):x};function vu(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=qe.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=Cn.allocAt(0,0,E.width,E.height);var b=qe.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,Cn.free(E),qe.free(b),qe.free(x)}x=a.yh,y&&a.Fg!==jl&&(x=a.Fg);var z=x!==jl?Wc(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var ne=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?xo:oe),zh(a,a.documentBounds,b,ne,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Kt.B(z.x,x)&&Kt.B(z.y,E)&&Kt.B(z.width,b)&&Kt.B(z.height,ne)||a.onViewportBoundsChanged(new Cn(x,E,b,ne),z,y,!1)}}function Wc(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),ne=a.ya+(a.Be?a.Db:0),re=z/b,oe=ne/E;return y===zu?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Zh?(y=oe>re?(ne-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}cn.prototype.zoomToFit=function(){var a=this.sj;this.sj=fh,this.scale=Wc(this,zu),a!==fh&&(vu(this,!1),zh(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},De=cn.prototype,De.BA=function(a,y){y===void 0&&(y=zu);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===zu||y===Zh)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===Zh?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new qe(a.x,a.y)}},De.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new qe(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},De.zz=function(a){if(a instanceof jt){this.eq=a;var y=qe.alloc();this.fq=this.op(a.ga(As,y)),qe.free(y)}else this.eq=null,this.fq=Er};function zh(a,y,x,E,b,z){var ne=qe.allocAt(a.pa.x,a.pa.y),re=ne.x,oe=ne.y;if(a.eq!==null){var le=qe.alloc();le=a.eq.ga(As,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,b=$a,qe.free(le)}(z||a.scrollMode===fh)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(re=Math.min(re+x/2,y.right+Math.max(z,b.right)-x/2),re=Math.max(re,y.left-Math.max(z,b.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(oe=Math.min(oe+E/2,y.bottom+Math.max(x,b.bottom)-E/2),oe=Math.max(oe,y.top-Math.max(x,b.top)+E/2),oe-=E/2):oe>y.top?oe=y.top:oe<y.bottom-E&&(oe=y.bottom-E)),ne.x=isFinite(re)?re:-a.yb.left,ne.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),Ks(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),Dc(a),qe.free(ne)}De.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=$u(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Qi)return a}else if(a=$u(this,a,function(x){return x.part}),a instanceof Qi)return a;return null},De.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),rl(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function $u(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),rl(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}De.lz=function(a,y,x){return y===void 0&&(y=!0),Zc(this,a,function(E){return E.part},y?function(E){return E instanceof Qi&&E.canSelect()}:null,x)};function Zc(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof An||b instanceof Wn||(b=new Wn),rl(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}De.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof An||E instanceof Wn||(E=new Wn),rl(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},De.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),ad(this,a,function(b){return b instanceof Qi&&(!x||b.canSelect())},y,E)},De.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof An||b instanceof Wn||(b=new Wn),rl(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ne=z.value;ne.visible&&ne.Cf(a,y,x,E,b)}return b},De.Nu=function(a,y,x,E,b,z){var ne=new Wn;rl(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,E,ne,b,z)}return ne};function ad(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof An||b instanceof Wn||(b=new Wn),rl(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,z,x,E,b)}return b}De.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),sd(this,a,y,function(z){return z instanceof Qi&&(!E||z.canSelect())},x,b)},De.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof An||b instanceof Wn)&&(z=b),b=!0),z instanceof An||z instanceof Wn||(z=new Wn),rl(this);for(var ne=this.Wa.iteratorBackwards;ne.next();){var re=ne.value;re.visible&&re.og(a,y,x,E,b,z)}return z};function sd(a,y,x,E,b,z){var ne=null;for(ne===void 0&&(ne=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof An||b instanceof Wn)&&(z=b),b=!0),z instanceof An||z instanceof Wn||(z=new Wn),rl(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ne,E,b,z)}return z}cn.prototype.acceptEvent=function(a){return Ul(this,a,a instanceof MouseEvent)};function Ul(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?yd(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),Br&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=sh(y,y.target),E.targetObject=null,E}function sh(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,E,b,z){var ne=a.Qg;return a.Qg=a.cj,a.cj=ne,ne.diagram=a,ne.clickCount=1,a=ne.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ne.modifiers=a,ne.event=y,ne.timestamp=y.timeStamp,ne.button=y.button,ne.buttons=y.buttons,Br&&y.button===0&&y.ctrlKey&&(ne.button=2),ne.down=x,ne.up=E,ne.handled=!1,ne.bubbles=b,ne.isMultiTouch=z,ne}function uu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}cn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Ul(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(),uu(x,a)},cn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ul(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(),uu(x,a)},cn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ul(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),uu(x,a)},cn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Ul(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),uu(x,a)},cn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new qe(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?Gr(new qe(y,a),this.Ab):new qe(y,a)};function yd(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,ne=0,re=0;E!==null&&(E=E.getBoundingClientRect(),ne=y.clientX-b/E.width*E.left,re=y.clientY-z/E.height*E.top),x.viewPoint.h(ne,re),a.Ab!==null?(y=qe.allocAt(ne,re),a.Ab.Cd(y),x.documentPoint.assign(y),qe.free(y)):x.documentPoint.h(ne,re)}function Wd(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}cn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function lh(a){a.ld||rl(a),a.Va()}cn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},De=cn.prototype,De.Pz=function(){return this.kg},De.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Nl(this),this.hf=!1,this.du=new qe(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&li(function(){E.ld=!1,Ka(y,"Model"),a(E)},1)},De.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;ot.requestAnimationFrame(function(){y.kg&&y.bd()})}},De.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Nl(this))};function Fc(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Gc(a)||(y&&rl(a),x&&vu(a,!1))}function Nl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,ne=0;ne<z;ne++){var re=b[ne];Hs(re,!1),re.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(oe){oe.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Od(a),Fc(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(pc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),rl(a),z=!1,(!a.hf||a.xh)&&(a.hf?Hh(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Hh(a,!1)),z=!0),a.Jk=!1,rl(a),a.ou||lh(a),Fc(a,!0,!1),ne=!1,z?(x=Cn.alloc(),x.assign(a.viewportBounds),a.hf||(ne=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Zd(a)),a.R("LayoutCompleted"),Fc(a,!0,!1),Cn.free(x)):x.Ok&&x.Qw&&(a.Fg!==jl?a.scale=Wc(a,a.Fg):a.yh!==jl?a.scale=Wc(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),vu(a,!0)),z&&ne&&a.eb("Initial Layout"),rl(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Zd(a){if(a.Fg!==jl)a.scale=Wc(a,a.Fg);else if(a.yh!==jl)a.scale=Wc(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}vu(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),pc(a)}function rl(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Wn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Rr&&E.U&65536&&(E.U=E.U^65536)})}}De.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Rr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Rr&&x.isVisible()&&Za(this,x);for(a.reset();a.next();)x=a.value,x instanceof fi&&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 Go&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Za(a,y){for(var x=En(),E=En(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Rr?(Hu(z)||Jl(z)||Kh(z))&&Za(a,z):z instanceof fi?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(kn(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();kn(E)}De.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},De.gc=function(a){if(this.Ka!==null){if(this.ta===null&&at("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Su(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,ne=Math.round(y.y*b)/b,re=this.Ab;for(re.reset(),b!==1&&re.scale(b),y.x===0&&y.y===0||re.translate(-z,-ne),a.ti=null,Qy(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),Al(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<E;y++)x[y].gc(a,this);a=!1,this.Yf?Cf(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Wr.prototype.Cd=Wr.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Su(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ne=this.Mb,re=this.pa;var oe=this.Ca,le=Math.round(re.x*oe)/oe,ce=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-le,-ce),a.setTransform(ne,0,0,ne,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Al(this,a),re=0;re<b;re++)a.setTransform(ne,0,0,ne,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?Cf(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Wr.prototype.Cd=Wr.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=Nr&&Nr.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function Cs(a,y,x,E,b,z,ne,re,oe,le){if(a.Ka!==null){a.ta===null&&at("No canvas specified"),ne===void 0&&(ne=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),le===void 0&&(le=!1),Su(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ce=a.Ca;a.Ca=b;var me=a.Wa.s,Ce=me.length;try{var Me=new Cn(z.x,z.y,E.width/b,E.height/b),Be=Me.copy();Be.Co(x),pc(a,Be),rl(a),a.Fd(me,Ce,a,Me),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,E.width,E.height));var Re=a.Mb;y.scale(Re,Re);var dt=Wr.alloc();dt.reset(),dt.translate(x.left,x.top),dt.scale(b),z.x===0&&z.y===0||dt.translate(-z.x,-z.y),y.setTransform(dt.m11,dt.m12,dt.m21,dt.m22,dt.dx,dt.dy),y.yc(),y instanceof Fu&&Qy(y,dt.m11,dt.m12,dt.m21,dt.m22,dt.dx,dt.dy),Wr.free(dt),Al(a,y),y.globalAlpha=a.pb;var et=a.Qj("Grid");if(ne){var Pt=new Wn,At=ne.iterator;for(At.reset();At.next();){var Dt=At.value;Dt instanceof Qi&&(le||Dt.layer!==et)&&(Dt.Gj(),Pt.add(Dt))}for(le=0;le<Ce;le++)Bl(me[le],y,a,Pt,oe);Pt.each(function(dn){return dn.Gj()})}else for(Pt=0;Pt<Ce;Pt++){var Rt=me[Pt];Rt===et?le&&Rt.gc(y,a,!0):Rt.gc(y,a,oe)}a.$i=!1,a.Yf&&Cf(a.Yf,a)&&a.Vp()}finally{a.Ca=ce,a.ib.Vc(!0),a.vd=!0,a.Fd(me,Ce,a,a.viewportBounds),pc(a),a.ib instanceof Fu&&(a.ib.Nj.PA(),a.redraw())}}}De.Gf=function(a){return this.Rg[a]},De.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},De.Tx=function(){this.Rg=new Wi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Br||nr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Al(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}De.Ql=function(a){return this.on[a]},De.sA=function(a,y){this.on[a]=y},De.Sx=function(){this.on=new Wi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},De.set=function(a){return Object.assign(this,a),this},De.Du=function(a){return this.nm(a)},De.nm=function(a){return yu(this,a),this};function yu(a,y){var x=a instanceof ai,E=a instanceof cn,b;for(b in y){b===""&&at("Setting properties requires non-empty property names");var z=a,ne=b;if(x||E){var re=b.indexOf(".");if(0<re){var oe=b.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),qt(z)?ne=b.substr(re+1):at("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ne[0]!=="_"&&!si(z,ne))if(E&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(E&&ne==="Changed"){a.Pe(y[ne]);continue}else if(E&&si(a.toolManager,ne))z=a.toolManager;else if(E&&ss(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof Ki&&ne==="Changed"){a.Pe(y[ne]);continue}else at('Trying to set undefined property "'+ne+'" on object: '+z.toString());z[ne]=y[b],ne[0]==="_"&&z instanceof jt&&z.Vw(ne)}}De.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Kn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},De.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")},cn.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!==Xf&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=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))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=Cn.alloc(),Vf(this,this.computeBounds(E)),Cn.free(E)),E=this.ta,E===null||E instanceof ud)))){var ne=this.Mb;b=this.Aa*ne;var re=this.ya*ne,oe=this.scale*ne;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==b&&(oe.width=b),oe.height!==re&&(oe.height=re),a.clearRect(0,0,b,re),oe=190*ne;var le=70*ne,ce=Math.max(z,0),me=Math.max(y,0),Ce=Math.floor(b-ce),Me=Math.floor(re-me);a.drawImage(E.Oa,ce,me,Ce,Me,0,0,Ce,Me),Cf(this.Yf,this)&&a.clearRect(0,0,oe,le),E=En(),a=En(),Me=Math.abs(z),Ce=Math.abs(y);var Be=ce===0?0:b-Me;ce=qe.allocAt(Be,0),Me=qe.allocAt(Me+Be,re),a.push(new Cn(Math.min(ce.x,Me.x),Math.min(ce.y,Me.y),Math.abs(ce.x-Me.x),Math.abs(ce.y-Me.y)));var Re=this.Ab;if(Re.reset(),Re.scale(ne,ne),this.Ca!==1&&Re.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&Re.translate(-ne.x,-ne.y),Gr(ce,Re),Gr(Me,Re),E.push(new Cn(Math.min(ce.x,Me.x),Math.min(ce.y,Me.y),Math.abs(ce.x-Me.x),Math.abs(ce.y-Me.y))),Be=me===0?0:re-Ce,ce.h(0,Be),Me.h(b,Ce+Be),a.push(new Cn(Math.min(ce.x,Me.x),Math.min(ce.y,Me.y),Math.abs(ce.x-Me.x),Math.abs(ce.y-Me.y))),Gr(ce,Re),Gr(Me,Re),E.push(new Cn(Math.min(ce.x,Me.x),Math.min(ce.y,Me.y),Math.abs(ce.x-Me.x),Math.abs(ce.y-Me.y))),Cf(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,ce.h(b,re),Me.h(oe+b,le+re),a.push(new Cn(Math.min(ce.x,Me.x),Math.min(ce.y,Me.y),Math.abs(ce.x-Me.x),Math.abs(ce.y-Me.y))),Gr(ce,Re),Gr(Me,Re),E.push(new Cn(Math.min(ce.x,Me.x),Math.min(ce.y,Me.y),Math.abs(ce.x-Me.x),Math.abs(ce.y-Me.y)))),qe.free(ce),qe.free(Me),Fc(this,!1,!0),this.Ka===null&&at("No div specified"),this.ta===null&&at("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(Su(this),re=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*re,this.ya*re),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ne=this.Ca,oe=Math.round(z.x*ne)/ne,le=Math.round(z.y*ne)/ne,y=this.Ab,y.reset(),ne!==1&&y.scale(ne),z.x===0&&z.y===0||y.translate(-oe,-le),b.save(),b.beginPath(),z=a.length,ne=0;ne<z;ne++)oe=a[ne],oe.width!==0&&oe.height!==0&&b.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(b.clip(),b.setTransform(re,0,0,re,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Al(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ne=y[re],oe=E,ne.visible&&ne.pb!==0){le=Qs(ne,b),me=ne.Zq,me.length=0,ce=this.scale,Ce=Cn.alloc(),Me=ne.Pa.s,Re=Me.length,Be=oe.length;for(var dt=0;dt<Re;dt++){var et=Me[dt],Pt=Df(et,et.actualBounds);e:{for(var At=2/ce,Dt=4/ce,Rt=0;Rt<Be;Rt++){var dn=oe[Rt];if(dn.width!==0&&dn.height!==0&&Pt.Vu(dn.x-At,dn.y-At,dn.width+Dt,dn.height+Dt)){Pt=!0;break e}}Pt=!1}Pt&&ne.Oj(b,et,this,me,ce,Ce,!0)}Cn.free(Ce),b.globalAlpha=le}b.restore(),b.Vc(!0),this.Yf&&Cf(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}kn(E),kn(a),this.ld=!1}}else this.bd();x&&(bl(this),this.bd(),od(this,!0))}else x?(bl(this),this.bd(),od(this,!0)):this.bd()}};function Su(a){a.pn!==!1&&(a.pn=!1,uh(a,a.Aa,a.ya))}function uh(a,y,x){Dc(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Gc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,ne=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=b.clientWidth||x+ne,le=b.clientHeight||E+re,ce=a.viewportBounds;b=ce.x;var me=ce.y,Ce=ce.width,Me=ce.height;if((oe!==x+ne||le!==E+re)&&(a.gf=!1,a.Be=!1,re=ne=0,a.Aa=oe,a.ya=le,z=a.pn=!0,Dc(a)),!a.hf||!a.viewportBounds.w())return!0;var Be=a.ku,Re=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var dt=a.documentBounds,et=0,Pt=0,At=0,Dt=0,Rt=ce.width,dn=ce.height,bi=a.rj;a.contentAlignment.sb()?(dt.width>Rt&&(et=bi.left,Pt=bi.right),dt.height>dn&&(At=bi.top,Dt=bi.bottom)):(et=bi.left,Pt=bi.right,At=bi.top,Dt=bi.bottom);var Ii=dt.width+et+Pt,Ni=dt.height+At+Dt;bi=a.scale;var hi=Ii>oe/bi,Vn=Ni>le/bi;if(!(z||a.gf||a.Be||hi||Vn))return!0;et=dt.x-et,oe=ce.x,Pt=dt.right+Pt,le=ce.right+ne,At=dt.y-At;var Or=ce.y;dt=dt.bottom+Dt,ce=ce.bottom+re;var Cr="1px";if(Dt="1px",a.scrollMode===fh&&(hi||Vn)&&(hi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(hi=1,et+1<oe&&(hi=Math.max((oe-et)*bi+a.Aa,hi)),Pt>le+1&&(hi=Math.max((Pt-le)*bi+a.Aa,hi)),Rt+ne+1<Ii&&(hi=Math.max((Ii-Rt)*bi+a.Aa,hi)),Cr=hi.toString()+"px"),Vn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(hi=1,At+1<Or&&(hi=Math.max((Or-At)*bi+a.ya,hi)),dt>ce+1&&(hi=Math.max((dt-ce)*bi+a.ya,hi)),dn+re+1<Ni&&(hi=Math.max((Ni-dn)*bi+a.ya,hi)),Dt=hi.toString()+"px")),hi=Cr!=="1px",Vn=Dt!=="1px",hi&&Vn||!hi&&!Vn||(Vn&&(le-=a.Db),hi&&(ce-=a.Db),Ii<Rt+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,et+1<oe&&(ne=Math.max((oe-et)*bi+a.Aa,ne)),Pt>le+1&&(ne=Math.max((Pt-le)*bi+a.Aa,ne)),Rt+1<Ii&&(ne=Math.max((Ii-Rt)*bi+a.Aa,ne)),Cr=ne.toString()+"px"),hi=Cr!=="1px",ne=a.ya,hi!==a.Be&&(ne=hi?a.ya-a.Db:a.ya+a.Db),Ni<dn+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,At+1<Or&&(re=Math.max((Or-At)*bi+ne,re)),dt>ce+1&&(re=Math.max((dt-ce)*bi+ne,re)),dn+1<Ni&&(re=Math.max((Ni-dn)*bi+ne,re)),Dt=re.toString()+"px"),Vn=Dt!=="1px"),a.qr&&hi===a.Be&&Vn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(hi!==a.Be&&(Cr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=hi,Re.style.width=Cr,Vn!==a.gf&&(Dt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=qe.alloc(),Vn?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),qe.free(re))),z&&Dc(a),a.gf=Vn,Re.style.height=Dt,a.gu=!0,z&&(a.pn=!0),y=Be.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Rt+1<Ii?y=(a.position.x-et)*bi:et+1<oe?y=Be.scrollWidth-Be.clientWidth:Pt>le+1&&(y=a.position.x*bi)),a.tn)switch(a.bu){case"negative":y=-(Be.scrollWidth-y-Be.clientWidth);break;case"reverse":y=Be.scrollWidth-y-Be.clientWidth}return Be.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(dn+1<Ni?Be.scrollTop=(a.position.y-At)*bi:At+1<Or?Be.scrollTop=Be.scrollHeight-Be.clientHeight:dt>ce+1&&(Be.scrollTop=a.position.y*bi)),oe=a.Aa,le=a.ya,Be.style.width=oe+(a.gf?a.Db:0)+"px",Be.style.height=le+(a.Be?a.Db:0)+"px",x!==oe||E!==le||a.animationManager.zb?(x=Cn.allocAt(b,me,Ce,Me),a.onViewportBoundsChanged(x,a.viewportBounds,bi,z),Cn.free(x),!1):!0}De=cn.prototype,De.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&at("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&&at('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(ci,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},De.oi=function(a){this.partManager.oi(a);var y=this;Mf(a,function(x){dh(y,x)}),(a instanceof Go||a instanceof Rr&&a.placeholder!==null)&&a.v(),a.data!==null&&Mf(a,function(x){uy(y.partManager,x)}),Jl(a)!==!0&&Kh(a)!==!0||this.De.add(a),H1(a,!0,this),Z1(a)?(a.actualBounds.w()&&this.N(Df(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Df(a,a.actualBounds)),this.$b()},De.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Mf(a,function(x){cy(y.partManager,x,y)}),this.De.remove(a),Z1(a)?(a.actualBounds.w()&&this.N(Df(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Df(a,a.actualBounds)),this.$b()},De.remove=function(a){Gd(this,a,!0)};function Gd(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(Ei,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}De.Is=function(a,y){if(y===void 0&&(y=!1),Nn(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new Wn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},De.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},cn.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=pf(this)),this.toolManager!==null){var b=new Kn;if(a!==null)if(Nn(a))for(var z=0;z<a.length;z++)Iu(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Iu(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Iu(this,b,a.value,x,E);for(a=this.nodes;a.next();)Iu(this,b,a.value,x,E);for(a=this.links;a.next();)Iu(this,b,a.value,x,E)}qu(this,b,y,E,x)}};function Iu(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=pf(a)),x instanceof Mi){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Rr&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Iu(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ne=z.value;if(!y.contains(ne)){var re=ne.fromNode,oe=ne.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Iu(a,y,ne,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Iu(a,y,x.value,E,b)}else if(x instanceof fi)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Iu(a,y,x.value,E,b);else x instanceof Go||y.add(x,a.Pd(b,x,x.location))}function qu(a,y,x,E,b){if(y!==null&&y.count!==0){var z=qe.alloc(),ne=qe.alloc();ne.assign(x),isNaN(ne.x)&&(ne.x=0),isNaN(ne.y)&&(ne.y=0),(x=a.Mr)||ch(a,y);for(var re=En(),oe=En(),le=y.iterator,ce=qe.alloc();le.next();){var me=le.key,Ce=le.value;if(me.Zc()){var Me=vf(a,me,y);Me!==null?re.push(new ie(me,Ce,Me)):(!b||me.canMove())&&(Me=Ce.point,z.assign(Me),a.computeMove(me,z.add(ne),E,ce),me.location=ce,Ce.shifted===void 0&&(Ce.shifted=new qe),Ce.shifted.assign(ce.re(Me)))}else le.key instanceof fi&&oe.push(le.sa)}for(qe.free(ce),b=re.length,le=0;le<b;le++)me=re[le],z.assign(me.info.point),me.Su.shifted===void 0&&(me.Su.shifted=new qe),me.node.location=z.add(me.Su.shifted);for(b=qe.alloc(),le=qe.alloc(),me=oe.length,Ce=0;Ce<me;Ce++){var Be=oe[Ce];if(Me=Be.key,Me instanceof fi)if(Me.suspendsRouting){Me.Tg=null,ce=Me.fromNode;var Re=Me.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Re=Be.value.point,Me.dragComputation===null)y.add(Me,a.Pd(E,Me,ne)),Ph(Me,ne.x-Re.x,ne.y-Re.y);else{Be=qe.allocAt(0,0),(ce=Me.i(0))&&ce.w()&&Be.assign(ce);var dt=ce=qe.alloc().assign(Be).add(ne);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(dt=qe.alloc(),mf(a,Me,ce,dt,E)),ce.assign(Me.dragComputation(Me,ce,dt)).re(Be),y.add(Me,a.Pd(E,Me,ce)),Ph(Me,ce.x-Re.x,ce.y-Re.y),qe.free(Be),qe.free(ce),dt!==ce&&qe.free(dt)}else ce!==null&&(b.assign(ce.location),dt=y.I(ce),dt!==null&&b.re(dt.point)),Re!==null&&(le.assign(Re.location),dt=y.I(Re),dt!==null&&le.re(dt.point)),ce!==null&&Re!==null?b.Xa(le)?(ce=Be.value.point,Re=z,Re.assign(b),Re.re(ce),y.add(Me,a.Pd(E,Me,b)),Ph(Me,Re.x,Re.y)):(Me.suspendsRouting=!1,Me.bb()):(Be=Be.value.point,ce=ce!==null?b:Re!==null?le:ne,y.add(Me,a.Pd(E,Me,ce)),Ph(Me,ce.x-Be.x,ce.y-Be.y))}else(Me.fromNode===null||Me.toNode===null)&&(ce=Be.value.point,y.add(Me,a.Pd(E,Me,ne)),Ph(Me,ne.x-ce.x,ne.y-ce.y))}qe.free(z),qe.free(ne),qe.free(b),qe.free(le),kn(re),kn(oe),x||(rl(a),Ru(a,y))}}cn.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new qe),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=qe.alloc(),mf(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var ne=a.minLocation,re=ne.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ne=ne.y,isNaN(ne)&&(ne=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,le=oe.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(re,Math.min(x.x,le)),Math.max(ne,Math.min(x.y,oe))),b!==y&&qe.free(b),E};function pf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function mf(a,y,x,E,b){if(b===void 0&&(b=pf(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var ne=b.gridSnapOrigin,re=ne.x;if(ne=ne.y,b=b.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ne)&&(ne=z.y)}z=qe.allocAt(0,0),z.yi(0,0,a,y,b),Kt.No(x.x,x.y,re+z.x,ne+z.y,a,y,E),qe.free(z)}}function ch(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof fi&&(y.suspendsRouting=!0)}function Ru(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof fi&&(x.suspendsRouting=!1,_v(x)&&x.bb())}a.Mr=!1}}function vf(a,y,x){return y=y.containingGroup,y!==null&&(a=vf(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}De=cn.prototype,De.Pd=function(a,y,x){if(x===void 0)return new Kd(_i);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Kd(new qe(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new Kd(x.copy())};function Zf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&at("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&at("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&at("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&at("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var E=0;E<x;E++)a.M(E).name===y&&at("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}De.Al=function(a){Zf(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(ci,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},De.Ww=function(a,y){Zf(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ei,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(ci,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},De.Cy=function(a,y){Zf(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(Ei,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(ci,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},De.kA=function(a){if(a.diagram!==this&&at("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 E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(Ei,"layers",this,a,null,x,null),this.N(),this.Ya()}}},De.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},De.Yw=function(a){return this.pf===null&&(this.pf=new An),this.pf.add(a),this.model.Pe(a),this},De.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},De.Pe=function(a){return this.zg===null&&(this.zg=new An),this.zg.add(a),this},De.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},De.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==On&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},De.cb=function(a,y,x,E,b,z,ne){z===void 0&&(z=null),ne===void 0&&(ne=null);var re=new Dn;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=E,re.oldParam=z,re.newValue=b,re.newParam=ne,this.ds(re)},De.g=function(a,y,x,E,b){this.cb(ii,a,this,y,x,E,b)},cn.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===ii){var b=a.object;if(Ra(b,a.propertyName,a.I(y)),b instanceof jt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===ci){var ne=a.object,re=a.newParam,oe=a.newValue;if(ne instanceof ai)if(typeof re=="number"&&oe instanceof jt){y?ne.pc(re):ne.Gb(re,oe);var le=ne.part;le!==null&&le.Wb()}else typeof re=="number"&&oe instanceof Ws&&(oe.isRow?f1(ne,re,y?void 0:oe):g1(ne,re,y?void 0:oe));else if(ne instanceof Ia){var ce=a.oldParam===!0;typeof re=="number"&&oe instanceof Qi&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ne.pc(ce?re:-1,oe,ce)):ne.oi(re,oe,ce))}else ne instanceof cn?typeof re=="number"&&oe instanceof Ia&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):at("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===Ei){var me=a.object,Ce=a.oldParam,Me=a.oldValue;if(me instanceof ai)typeof Ce=="number"&&Me instanceof jt?y?me.Gb(Ce,Me):me.pc(Ce):typeof Ce=="number"&&Me instanceof Ws&&(Me.isRow?f1(me,Ce,y?Me:void 0):g1(me,Ce,y?Me:void 0));else if(me instanceof Ia){var Be=a.newParam===!0;typeof Ce=="number"&&Me instanceof Qi&&(y?0>me.Pa.indexOf(Me)&&me.oi(Ce,Me,Be):(Me.isSelected=!1,Me.isHighlighted=!1,Me.Wb(),me.pc(Be?Ce:-1,Me,Be)))}else me instanceof cn?typeof Ce=="number"&&Me instanceof Ia&&(y?(Me.Xe(this),this.Wa.Gb(Ce,Me)):this.Wa.mb(Ce)):at("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==On&&at("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},cn.prototype.Ea=function(a){return this.undoManager.Ea(a)},cn.prototype.eb=function(a){return this.undoManager.eb(a)},cn.prototype.Kf=function(){return this.undoManager.Kf()},cn.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},cn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},cn.prototype.rp=function(){this.partManager.rp()};function yf(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Dc(a),a.N(),a.Ee=!0,E.zb&&(Gs(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Dc(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ne=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(tl)?re=0:le.Hf(fl)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(oe)&&(le.$c()?le.Hf(hl)?oe=0:le.Hf(wl)&&(oe=ne-1):oe=le.sb()?le.y*(ne-1):ne/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=qe.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,qe.free(z),a.Ca=x,Dc(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),vu(a,!1),E.zb&&(Gs(E)||E.ce.add(E.H,"scale",y,a.Ca))}}cn.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==jl||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof ei&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),ji(b,this)),this.vb||this.invalidateViewport(a,y),pc(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=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function pc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=oi.alloc(),b=1,z=1,ne=x.O.s,re=ne.length,oe=0;oe<re;oe++){var le=ne[oe],ce=Math.abs(le.interval);2>ce||(vv(le.figure)?z=z*ce/Kt.vx(z,ce):b=b*ce/Kt.vx(b,ce))}if(ne=x.gridCellSize,E.h(z*ne.width,b*ne.height),y!==void 0)b=y.width,z=y.height,a=y.x,ne=y.y;else{if(y=Cn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Cn.free(y);return}b=y.width,z=y.height,a=y.x,ne=y.y,Cn.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=qe.alloc(),Kt.No(a,ne,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),oi.free(E),x.part.location=y,qe.free(y)}}cn.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(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},cn.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))},cn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Nn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof Qi||at("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Qi||at("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},cn.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},De=cn.prototype,De.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},De.Jz=function(a){a=new Wn().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof Qi||at("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},De.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=qe.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),qe.free(z);return}at("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):at("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),qe.free(z)},De.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)},De.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},De.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)},De.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,ne=y.m11,re=y.m12,oe=y.m21,le=y.m22,ce=y.dx,me=y.dy,Ce=x*ne+E*oe+ce;y=x*re+E*le+me;var Me=b*ne+E*oe+ce;return a=b*re+E*le+me,E=x*ne+z*oe+ce,x=x*re+z*le+me,ne=b*ne+z*oe+ce,b=b*re+z*le+me,z=Math.min(Ce,Me),Ce=Math.max(Ce,Me),Me=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Ce=Math.max(Ce,E),Me=Math.min(Me,x),y=Math.max(y,x),z=Math.min(z,ne),Ce=Math.max(Ce,ne),Me=Math.min(Me,b),y=Math.max(y,b),new Cn(z,Me,Ce-z,y-Me)},De.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),Gr(a.copy(),this.Ab)};function xg(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Gf(a){return a=Vc.get(a),a!==null?new a:new ra}cn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===On&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=b}),a.mouseMoveTools.each(function(oe){return oe.diagram=b}),a.mouseUpTools.each(function(oe){return oe.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===On){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),rl(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Fo(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ne=a.isTransactionFinished;if(ne&&(xg(this),this.As.clear(),_a(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;li(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function dh(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)Sd(a,y[E])}function Sd(a,y){if(y instanceof fu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Wn&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function Kf(a,y){if(y instanceof fu){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Wn&&x.Bg.remove(a),kg(E));break}}}}}cn.prototype.Wd=function(){this.partManager.Wd()},cn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},cn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},cn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},cn.prototype.Vb=function(a){return this.partManager.Vb(a)},cn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},De=cn.prototype,De.Lc=function(a){return this.partManager.Lc(a)},De.ii=function(a){return this.partManager.ii(a)},De.Kc=function(a){return this.partManager.Kc(a)},De.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:Dr(yr(y)))},De.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:Dr(yr(y)))};function Dc(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 Vf(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),vu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}De.Va=function(){if(this.Zi){var a=Cn.alloc();Vf(this,this.computeBounds(a)),Cn.free(a)}},De.rz=function(){for(var a=new Wn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},De.qz=function(){return this.ai.iterator},De.Uz=function(a){rl(this),a&&jh(this,!0),this.ld?Hh(this,!1):(this.Jk=!0,Nl(this))};function jh(a,y){for(var x=a.ai.iterator;x.next();)Sf(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function Sf(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)Sf(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Hh(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ka(z,"Layout")),a.xh=!1;for(var ne=a.ai.iterator;ne.next();)Yf(a,ne.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),rl(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||Fo(z),a.aa=x}}}function Yf(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)Yf(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),Za(a,y),b.isValidLayout=!0):a.xh=!0)}}De.yz=function(){for(var a=new An,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function lp(a){function y(b){var z=b.toLowerCase(),ne=new An;x.add(b,ne),x.add(z,ne),E.add(b,b),E.add(z,b)}var x=new Kn,E=new Kn;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=E}function ss(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Zo(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;at("Unknown DiagramEvent name: "+y)}De.Bj=function(a,y){return a=Zo(this,a),a!==null&&a.add(y),this},De.am=function(a,y){a=Zo(this,a),a!==null&&a.remove(y)},De.R=function(a,y,x){var E=Zo(this,a),b=new sn;if(b.diagram=this,a=ss(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function ca(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}De.Yj=function(a,y){return ns(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},cn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?jd(this,a):a.assign(this.documentBounds)};function ns(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new Ip(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=ol(a,x)),x===null){y=Cn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var ne=z.value,re=ne.layer;re!==null&&re.visible&&!re.isTemporary&&ld(a,ne,E,y)}Cn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=Cn.alloc(),z=x.memberParts;z.next();)ne=z.value,ne instanceof Mi&&ld(a,ne,E,y);Cn.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&sS(b);return b}function ol(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ol(a,y.containingGroup):null}function ld(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(jg(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(Ch,x,y+1);else for(var ne=x;ne<=y;ne++)z[ne]=Ch}else if(y instanceof Rr)for(y=y.memberParts;y.next();)b=y.value,b instanceof Mi&&ld(a,b,x,E)}}function Xl(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}cn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Kc(this)};function Kc(a){a.vk===-1&&(a.vk=li(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=Cn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Vf(a,y),Cn.free(y),a.Fc=!0,a.bd(),Kc(a))}},a.vp))}cn.prototype.ug=function(){this.vk!==-1&&(ot.clearTimeout(this.vk),this.vk=-1)},cn.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 E=this.viewportBounds,b=this.scale;E=Cn.allocAt(0,0,E.width*b,E.height*b);var z=qe.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var ne=Math.max(this.scrollHorizontalLineChange,1);ne|=0,z.x-=ne,a.x<E.x+x.left/2&&(z.x-=ne),a.x<E.x+x.left/4&&(z.x-=4*ne)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(ne=Math.max(this.scrollHorizontalLineChange,1),ne|=0,z.x+=ne,a.x>E.x+E.width-x.right/2&&(z.x+=ne),a.x>E.x+E.width-x.right/4&&(z.x+=4*ne));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y-=ne,a.y<E.y+x.top/2&&(z.y-=ne),a.y<E.y+x.top/4&&(z.y-=4*ne)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(ne=Math.max(this.scrollVerticalLineChange,1),ne|=0,z.y+=ne,a.y>E.y+E.height-x.bottom/2&&(z.y+=ne),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*ne)),z.Xa(_i)||(y=new qe(y.x+z.x/b,y.y+z.y/b)),Cn.free(E),qe.free(z),y},De=cn.prototype,De.Cs=function(){return null},De.av=function(){return null},De.bs=function(a,y){this.pj.add(a,y)},De.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Rr&&(y.$p=null)})};function mc(a,y,x){function E(){var ce=+new Date;for(z=!0,ne.reset();ne.next();)if(!ne.value[0].al){z=!1;break}z||ce-le>oe?y(x,b,re):ot.requestAnimationFrame(E)}for(var b=x.callback,z=!0,ne=a.Og.iterator;ne.next();)if(!ne.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,oe=x.callbackTimeout||300,le=+new Date;return ot.requestAnimationFrame(function(){E()}),null}De.Wz=function(a){return ls?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},De.Jx=function(a){return a===void 0&&(a={}),mc(this,this.Xz,a)},De.Xz=function(a,y,x){var E=hh(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case wf+"data":b=E.getImageData(0,0,x.width,x.height);break;case wf:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&at('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:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function hh(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&at("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ne=y.maxSize;y.maxSize===void 0&&(ne=x==="SVG"?new oi(1/0,1/0):new oi(2e3,2e3));var re=y.position||null,oe=y.parts||null,le=y.padding===void 0?1:y.padding,ce=y.background||null,me=y.omitTemporary;me===void 0&&(me=!0);var Ce=y.document||document,Me=y.elementFinished||null,Be=y.showTemporary;Be===void 0&&(Be=!me),y=y.showGrid,y===void 0&&(y=Be),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof le=="number"?le=new Yn(le):le instanceof Yn||at("MakeImage padding must be a Margin or a number."),le.left=Math.max(le.left,0),le.right=Math.max(le.right,0),le.top=Math.max(le.top,0),le.bottom=Math.max(le.bottom,0),a.ib.Vc(!0),me=new Sc(null,Ce,void 0,!0);var Re=me.context;if(!(b||z||oe||re))return me.width=a.Aa+Math.ceil(le.left+le.right),me.height=a.ya+Math.ceil(le.top+le.bottom),x==="SVG"?E===null?null:(E.resize(me.width,me.height,me.width,me.height),E.ownerDocument=Ce,E.hs=Me,Cs(a,E.context,le,new oi(me.width,me.height),a.Ca,a.pa,oe,ce,Be,y),E.context):(a.Xm=!1,Cs(a,Re,le,new oi(me.width,me.height),a.Ca,a.pa,oe,ce,Be,y),a.Xm=!0,me.context);var dt=a.Pp,et=a.documentBounds.copy();if(et.Fv(a.yb),Be)for(var Pt=a.Wa.s,At=Pt.length,Dt=0;Dt<At;Dt++){var Rt=Pt[Dt];if(Rt.visible&&Rt.isTemporary){Rt=Rt.Pa.s;for(var dn=Rt.length,bi=0;bi<dn;bi++){var Ii=Rt[bi];Ii.isInDocumentBounds&&Ii.isVisible()&&(Ii=Ii.actualBounds,Ii.w()&&et.ed(Ii))}}}if(Pt=new qe(et.x,et.y),oe!==null){for(At=new Cn(0,0,0,0),Dt=!0,Rt=oe.iterator,Rt.reset();Rt.next();)dn=Rt.value,dn instanceof Qi&&(bi=dn.layer,bi!==null&&!bi.visible||bi!==null&&!Be&&bi.isTemporary||!dn.isVisible()||(dn=dn.actualBounds,dn.w()&&(Dt?(Dt=!1,At.assign(dn)):At.ed(dn))));et.width=At.width,et.height=At.height,Pt.x=At.x,Pt.y=At.y}return re!==null&&re.w()&&(Pt=re,z||(z=dt)),At=re=0,le!==null&&(re=le.left+le.right,At=le.top+le.bottom),Dt=Rt=0,b!==null&&(Rt=b.width,Dt=b.height,isFinite(Rt)&&(Rt=Math.max(0,Rt-re)),isFinite(Dt)&&(Dt=Math.max(0,Dt-At))),b!==null&&z!==null?(z==="NaN"&&(z=dt),b.w()?(b=Rt,et=Dt):isNaN(Dt)?(b=Rt,et=et.height*z):(b=et.width*z,et=Dt)):b!==null?b.w()?(z=Math.min(Rt/et.width,Dt/et.height),b=Rt,et=Dt):isNaN(Dt)?(z=Rt/et.width,b=Rt,et=et.height*z):(z=Dt/et.height,b=et.width*z,et=Dt):z!==null?z==="NaN"&&ne.w()?(z=Math.min((ne.width-re)/et.width,(ne.height-At)/et.height),z>dt?(z=dt,b=et.width,et=et.height):(b=ne.width,et=ne.height)):(b=et.width*z,et=et.height*z):(z=dt,b=et.width,et=et.height),le!==null?(b+=re,et+=At):le=new Yn(0),ne!==null&&(dt=ne.width,ne=ne.height,isNaN(dt)&&(dt=2e3),isNaN(ne)&&(ne=2e3),isFinite(dt)&&(b=Math.min(b,dt)),isFinite(ne)&&(et=Math.min(et,ne))),me.width=Math.ceil(b),me.height=Math.ceil(et),x==="SVG"?E===null?null:(E.resize(me.width,me.height,me.width,me.height),E.ownerDocument=Ce,E.hs=Me,Cs(a,E.context,le,new oi(Math.ceil(b),Math.ceil(et)),z,Pt,oe,ce,Be,y),E.context):(a.Xm=!1,Cs(a,Re,le,new oi(Math.ceil(b),Math.ceil(et)),z,Pt,oe,ce,Be,y),a.Xm=!0,me.context)}bt.Object.defineProperties(cn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Se||(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 ud(this,ot.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 ud(this,ot.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(ot,"resize",this.Ov,!1),this.removeEventListener(ot,"wheel",this.$j,!0),gc===this&&(gc=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Lc(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)&&pi(a,"0 <= value <= 1",cn,"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),vu(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),vu(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),vu(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),vu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&pi(a,">= 0",cn,"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&&pi(a,">= 0",cn,"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 E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(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 pi(a,">= 0",cn,"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||xg(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&&at("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 E=this.vb;this.vb=!0,Ka(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=Gf(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);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=E,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(ot,"pointermove",this.dk,!0),this.addEventListener(ot,"pointerdown",this.ui,!0),this.addEventListener(ot,"pointerup",this.fk,!0),this.addEventListener(ot,"pointerout",this.ek,!0),this.addEventListener(ot,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(ot,"wheel",this.$j,!0),this.addEventListener(ot,"selectstart",this.preventDefault,!1)):(this.removeEventListener(ot,"pointermove",this.dk,!0),this.removeEventListener(ot,"pointerdown",this.ui,!0),this.removeEventListener(ot,"pointerup",this.fk,!0),this.removeEventListener(ot,"pointerout",this.ek,!0),this.removeEventListener(ot,"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(ot,"wheel",this.$j,!0),this.removeEventListener(ot,"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=qe.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Ks(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Dc(this):(this.vb=!0,a=this.scale,zh(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)}qe.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!==ai.Grid&&at("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),pc(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),Dc(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||at("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 Yn(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===fh&&vu(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,vu(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,yf(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&&yf(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!==jl&&vu(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()||at("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()||at("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)):pi(a,"> 0",cn,"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)):pi(a,"> 0",cn,"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),vu(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 Yn(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&&at("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();)Ap(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==gh&&a!==js&&a!==Pg&&at("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 oi(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 Yn(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),bt.Object.defineProperties(cn,{licenseKey:{get:function(){return gp.jc()},set:function(a){gp.add(a.replace(/\s/g,""))}},version:{get:function(){return Pf}}}),cn.prototype.makeImageData=cn.prototype.Jx,cn.prototype.makeImage=cn.prototype.Wz,cn.prototype.cacheGroupExternalLinks=cn.prototype.Fu,cn.prototype.addRenderer=cn.prototype.bs,cn.prototype.makeSVG=cn.prototype.av,cn.prototype.makeSvg=cn.prototype.Cs,cn.prototype.stopAutoScroll=cn.prototype.ug,cn.prototype.doAutoScroll=cn.prototype.gs,cn.prototype.isUnoccupied=cn.prototype.Yj,cn.prototype.raiseDiagramEvent=cn.prototype.R,cn.prototype.removeDiagramListener=cn.prototype.am,cn.prototype.addDiagramListener=cn.prototype.Bj,cn.prototype.findTreeRoots=cn.prototype.yz,cn.prototype.layoutDiagram=cn.prototype.Uz,cn.prototype.findTopLevelGroups=cn.prototype.qz,cn.prototype.findTopLevelNodesAndLinks=cn.prototype.rz,cn.prototype.ensureBounds=cn.prototype.Va,cn.prototype.findLinksByExample=cn.prototype.ls,cn.prototype.findNodesByExample=cn.prototype.ms,cn.prototype.findLinkForData=cn.prototype.Kc,cn.prototype.findNodeForData=cn.prototype.ii,cn.prototype.findPartForData=cn.prototype.Lc,cn.prototype.findLinkForKey=cn.prototype.findLinkForKey,cn.prototype.findNodeForKey=cn.prototype.Vb,cn.prototype.findPartForKey=cn.prototype.findPartForKey,cn.prototype.rebuildParts=cn.prototype.Wd,cn.prototype.transformViewToDoc=cn.prototype.Ps,cn.prototype.transformRectDocToView=cn.prototype.zA,cn.prototype.transformDocToView=cn.prototype.op,cn.prototype.centerRect=cn.prototype.es,cn.prototype.scrollToRect=cn.prototype.tv,cn.prototype.scroll=cn.prototype.scroll,cn.prototype.highlightCollection=cn.prototype.Jz,cn.prototype.highlight=cn.prototype.Iz,cn.prototype.selectCollection=cn.prototype.rA,cn.prototype.select=cn.prototype.select,cn.prototype.updateAllRelationshipsFromData=cn.prototype.rp,cn.prototype.updateAllTargetBindings=cn.prototype.updateAllTargetBindings,cn.prototype.commit=cn.prototype.commit,cn.prototype.rollbackTransaction=cn.prototype.Kf,cn.prototype.commitTransaction=cn.prototype.eb,cn.prototype.startTransaction=cn.prototype.Ea,cn.prototype.raiseChanged=cn.prototype.g,cn.prototype.raiseChangedEvent=cn.prototype.cb,cn.prototype.removeChangedListener=cn.prototype.ik,cn.prototype.addChangedListener=cn.prototype.Pe,cn.prototype.removeModelChangedListener=cn.prototype.mA,cn.prototype.addModelChangedListener=cn.prototype.Yw,cn.prototype.findLayer=cn.prototype.Qj,cn.prototype.removeLayer=cn.prototype.kA,cn.prototype.addLayerAfter=cn.prototype.Cy,cn.prototype.addLayerBefore=cn.prototype.Ww,cn.prototype.addLayer=cn.prototype.Al,cn.prototype.moveParts=cn.prototype.moveParts,cn.prototype.copyParts=cn.prototype.Kj,cn.prototype.removeParts=cn.prototype.Is,cn.prototype.remove=cn.prototype.remove,cn.prototype.add=cn.prototype.add,cn.prototype.clearDelayedGeometries=cn.prototype.bx,cn.prototype.setProperties=cn.prototype.nm,cn.prototype.attach=cn.prototype.Du,cn.prototype.set=cn.prototype.set,cn.prototype.resetInputOptions=cn.prototype.Sx,cn.prototype.setInputOption=cn.prototype.sA,cn.prototype.getInputOption=cn.prototype.Ql,cn.prototype.resetRenderingHints=cn.prototype.Tx,cn.prototype.setRenderingHint=cn.prototype.Xx,cn.prototype.getRenderingHint=cn.prototype.Gf,cn.prototype.maybeUpdate=cn.prototype.bd,cn.prototype.requestUpdate=cn.prototype.$b,cn.prototype.delayInitialization=cn.prototype.Xy,cn.prototype.isUpdateRequested=cn.prototype.Pz,cn.prototype.invalidateDocumentBounds=cn.prototype.Ya,cn.prototype.findObjectsNear=cn.prototype.og,cn.prototype.findPartsNear=cn.prototype.mz,cn.prototype.findObjectsIn=cn.prototype.Cf,cn.prototype.findPartsIn=cn.prototype.ux,cn.prototype.findObjectsAt=cn.prototype.ji,cn.prototype.findPartsAt=cn.prototype.lz,cn.prototype.findObjectAt=cn.prototype.ic,cn.prototype.findPartAt=cn.prototype.Ol,cn.prototype.focusObject=cn.prototype.zz,cn.prototype.alignDocument=cn.prototype.Jy,cn.prototype.zoomToRect=cn.prototype.BA,cn.prototype.zoomToFit=cn.prototype.zoomToFit,cn.prototype.diagramScroll=cn.prototype.kx,cn.prototype.focus=cn.prototype.focus;var Vc=new Kn,vc=null,ls=ot.document!==void 0,xf=null,Wh="",jl=new Jt(cn,"None",0),zu=new Jt(cn,"Uniform",1),Zh=new Jt(cn,"UniformToFill",2),Uf=new Jt(cn,"CycleAll",10),up=new Jt(cn,"CycleNotDirected",11),cp=new Jt(cn,"CycleNotDirectedFast",12),dp=new Jt(cn,"CycleNotUndirected",13),hp=new Jt(cn,"CycleDestinationTree",14),fp=new Jt(cn,"CycleSourceTree",15),fh=new Jt(cn,"DocumentScroll",1),Xf=new Jt(cn,"InfiniteScroll",2),gh=new Jt(cn,"TreeParentCollapsed",21),js=new Jt(cn,"AllParentsCollapsed",22),Pg=new Jt(cn,"AnyParentsCollapsed",23),gp=new An,Pf="2.3.10",wf="image",_f=null,hm=!1;function kl(){if(ls){var a=ot.document.createElement("canvas"),y=a.getContext("2d"),x=mi("7ca11abfd022028846");y[x]=mi("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",fn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Wr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Kt.za],b=1;5>b;b++)y[mi("7ca11abfd7330390")](mi(E[b-1]),10,15*b);for(y[x]=mi("39f046ebb36e4b"),x=1;5>x;x++)y[mi("7ca11abfd7330390")](mi(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Wr.prototype.Cd=Wr.prototype.Eu),_f=a}}cn.className="Diagram",cn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=ot.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof cn?y.H:null},cn.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},cn.useDOM=function(a){ls=a?ot.document!==void 0:!1},cn.isUsingDOM=function(){return ls},cn.None=jl,cn.Uniform=zu,cn.UniformToFill=Zh,cn.CycleAll=Uf,cn.CycleNotDirected=up,cn.CycleNotDirectedFast=cp,cn.CycleNotUndirected=dp,cn.CycleDestinationTree=hp,cn.CycleSourceTree=fp,cn.DocumentScroll=fh,cn.InfiniteScroll=Xf,cn.TreeParentCollapsed=gh,cn.AllParentsCollapsed=js,cn.AnyParentsCollapsed=Pg;function fm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Cf(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=ot[mi("76a715b2f73f148a")][mi("72ba13b5")]||"";if(a.Rc=!0,ls){var E=cn[mi("76a115b6ed251eaf4692")];if(E)for(var b=gp.iterator;b.next()&&(E=b.value,E=mi(E).split(mi("39e9")),!(6>E.length));){var z=mi(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ne=mi(fn[mi("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var re=ot[mi("74a900bae4370f8b51")][mi("6fbb13a1c2311e8a57")].toLowerCase();if(ne=re[mi("73a612b6fb191d")](mi("3aad1ab6e022098b4dc4")),z=mi(E[2]),-1<ne&&(re=re[mi("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ne),!a.Rc))break;for(ne=x[mi("76ad18b4f73e")],re=x[mi("73a612b6fb191d")](mi("35e7"))+2;re<ne;re++)y+=x[re];if(ne=y[mi("73a612b6fb191d")](z),0>ne&&z!==mi("7da71ca0ad381e90")&&(ne=y[mi("73a612b6fb191d")](mi("76a715b2ef3e149757"))),0>ne&&(ne=y[mi("73a612b6fb191d")](mi("76a715b2ef3e149757"))),0>ne&&(ne=y[mi("73a612b6fb191d")](mi("2bfa41fdb3784bca12"))),0>ne&&(ne=x[mi("73a612b6fb191d")](mi("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[mi("73a612b6fb191d")](mi("35"))||y[mi("73a612b6fb191d")](mi("35"))===-1),!a.Rc||x[mi("73a612b6fb191d")](mi("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[mi("73a612b6fb191d")](z)),!a.Rc)||(ne=ot[mi("76a715b2f73f148a")][mi("69ad17a1e03e")],re=ne[mi("73a612b6fb191d")](mi("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ne[mi("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ne=ot.document.createElement("div");for(var oe=E[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),E="",E+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ne[mi("79a417a0f0181a8946")]=E,ot.document[mi("78a712aa")]){ot.document[mi("78a712aa")][mi("7bb806b6ed32388c4a875b")](ne),oe=ot.getComputedStyle(ne).getPropertyValue(mi("78a704b7e62456904c9b12701b6532a8"));var le=ot.getComputedStyle(ne).getPropertyValue(mi("75b817b0ea2202"));if(ot.document[mi("78a712aa")][mi("68ad1bbcf533388c4a875b")](ne),oe){if(ne=ot[mi("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(mi("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){ne=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ce in ne)if(E===ne[ce].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ce=x[mi("76ad18b4f73e")],b=x[mi("73a612b6fb191d")](mi("35e7"))+2;b<ce;b++)y+=x[b];x=y[mi("73a612b6fb191d")](mi("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[mi("73a612b6fb191d")](mi("35")))}}}return 0<a.Rc&&a!==a.wy}fm.className="DiagramHelper";function Kd(a){this.j=a===void 0?new qe:a,this.o=new qe}bt.Object.defineProperties(Kd.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Jf="DraggingInfo";Kd.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function se(){this.reset()}se.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new oi(NaN,NaN).freeze(),this.gridSnapCellSpot=As,this.gridSnapOrigin=new qe(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},se.className="DraggingOptions";function ge(a,y){if(typeof a=="string"||ot.Element&&a instanceof Element)var x=cn.call(this,a)||this;else x=cn.call(this)||this,y=a;return fe(x),y&&x.nm(y),x}Ut(ge,cn);function fe(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Rl,a.layout=new ml}ge.prototype.reset=function(){cn.prototype.reset.call(this),fe(this)},ge.className="Palette";function Se(a,y){if(typeof a=="string"||ot.Element&&a instanceof Element)var x=cn.call(this,a)||this;else x=cn.call(this)||this,y=a;var E=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 Qi;var b=new Vr;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Yn(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new ht,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var ne=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new qe(re.x-ne.width/2,re.y-ne.height/2)}},x.Pf=function(){E.Ya(),_e(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&_e(E)},x.autoScale=zu,x.vb=!1,y&&Object.assign(x,y),x}Ut(Se,cn),Se.prototype.computePixelRatio=function(){return 1},Se.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(Su(this),this.ql===null){var x=new Sc(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Ne(this)}finally{this.ta=a,this.ib=y}}}cn.prototype.redraw.call(this)},Se.prototype.gc=function(){if(this.Ka===null&&at("No div specified"),this.ta===null&&at("No canvas specified"),!(this.ta instanceof ud)&&(Rv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Su(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Ne(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Ne(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=Cn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),pc(y,b),Cn.free(b),rl(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),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var ne=0;ne<z;ne++){var re=y[ne],oe=a;if(re.visible&&re.opacity!==0){var le=re.diagram.grid.part;if(!x&&re.isTemporary)E&&le.layer===re&&(re=Qs(re,b),le.gc(b,oe),b.globalAlpha=re);else{for(var ce=Qs(re,b),me=oe.scale,Ce=Cn.alloc(),Me=re.Pa.s,Be=Me.length,Re=0;Re<Be;Re++){var dt=Me[Re];(E||dt!==le)&&re.Oj(b,dt,oe,null,me,Ce,!1)}Cn.free(Ce),b.globalAlpha=ce}}}}}function _e(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=oi.alloc();b.h(x.width,x.height),E.desiredSize=b,oi.free(b),a=2/a.scale,E instanceof Vr&&(E.strokeWidth=a),y.location=new qe(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Se.prototype.computeBounds=function(){var a=this.observed;if(a===null)return qr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Se.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Se.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),_e(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=E,this.R("ViewportBoundsChanged",this.fc,a))},bt.Object.defineProperties(Se.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Se&&at("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,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),_e(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),_e(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)}}}),Se.className="Overview";function ht(){Ji.call(this),this.j=null}Ut(ht,Ji),ht.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 qe(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new qe(a.x-this.j.x,a.y-this.j.y)),!0)},ht.prototype.doActivate=function(){this.j=null,Ji.prototype.doActivate.call(this)},ht.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},ht.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 E=a.firstInput.documentPoint;x=x.location,this.j=new qe(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new qe(a.x-this.j.x,a.y-this.j.y)}}},ht.className="OverviewDraggingTool";function ct(){Hr(this),this.H=gc,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=qr,this.hb=!0,this.cg=null,this.ob=200}ct.prototype.toString=function(){return"CommandHandler"},ct.prototype.Xe=function(a){this.H=a},ct.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Br?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&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"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&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():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&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()},ct.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ct.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ei&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},ct.prototype.canStopCommand=function(){return!0},ct.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 E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},ct.prototype.canSelectAll=function(){return this.diagram.allowSelect},ct.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Wn,x=a.selection.iterator;x.next();)Yh(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},ct.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},ct.prototype.copySelection=function(){var a=this.diagram,y=new Wn;for(a=a.selection.iterator;a.next();)Yh(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},ct.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},ct.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ct.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},ct.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)xf=null,Wh="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new An,x.addAll(z),xf=x,Wh=y.model.dataFormat}}y.R("ClipboardChanged",x)},ct.prototype.pasteFromClipboard=function(){var a=new Wn,y=xf;if(y===null)return a;var x=this.diagram;if(Wh!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,ne=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),ne=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=ne.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},ct.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 E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);qu(y,z,new qe(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ct.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||xf===null||xf.count===0||Wh!==a.model.dataFormat)},ct.prototype.undo=function(){this.diagram.undoManager.undo()},ct.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},ct.prototype.redo=function(){this.diagram.undoManager.redo()},ct.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},ct.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===jl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ct.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==jl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ct.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===jl&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},ct.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==jl?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},ct.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},ct.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},ct.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Ka(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=qr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Fo(y)},ct.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ct.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(oe){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Ka(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=kt(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var oe=b.pop();0<b.length&&oe instanceof Mi&&oe.isTreeExpanded&&(!(oe instanceof Rr)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof Qi&&y.tv(oe.actualBounds),oe instanceof Mi&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof Rr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof Qi&&y.es(oe.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){li(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",ne),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function kt(a,y,x){if(y.isVisible())return x;if(y instanceof Go)kt(a,y.adornedPart,x);else if(y instanceof fi){var E=y.fromNode;E!==null&&kt(a,E,x),y=y.toNode,y!==null&&kt(a,y,x)}else y instanceof Mi&&(E=y.labeledLink,E!==null&&kt(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),kt(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),kt(a,y,x));return x}ct.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Qi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},ct.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ka(y.animationManager,"Collapse Tree");var x=new An;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Mi&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},ct.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Mi&&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 Mi&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ct.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ka(y.animationManager,"Expand Tree");var x=new An;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Mi&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},ct.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Mi)||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 Mi&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},ct.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new An,z=a.selection.iterator;z.next();){var ne=z.value;ne.Zc()&&ne.canGroup()&&b.add(ne)}for(var re=new An,oe=b.iterator;oe.next();){var le=oe.value;z=!1;for(var ce=b.iterator;ce.next();)if(le.Td(ce.value)){z=!0;break}z||re.add(le)}if(0<re.count){var me=re.first().containingGroup;if(me!==null)for(;me!==null;){b=!1;for(var Ce=re.iterator;Ce.next();)if(!Ce.value.Td(me)){b=!0;break}if(b)me=me.containingGroup;else break}if(x instanceof Rr)xc(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var Me=y.copyNodeData(x);qt(Me)&&(y.xf(Me),E=a.ii(Me))}if(E!==null){me!==null&&this.isValidMember(me,E)&&(E.containingGroup=me);for(var Be=re.iterator;Be.next();){var Re=Be.value;this.isValidMember(E,Re)&&(Re.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},ct.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 bn(a){var y=En();for(a=a.iterator;a.next();){var x=a.value;x instanceof fi||y.push(x)}a=new Wn,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,ne=0;ne<x;ne++)if(b.Td(y[ne])){z=!1;break}z&&a.add(b)}return kn(y),a}ct.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof fi)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},ct.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 E=new An;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Rr&&z.canUngroup()&&E.add(z)}var ne=new An;if(0<E.count){y.clearSelection(!0);for(var re=E.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var le=oe.containingGroup,ce=le!==null&&le.data!==null?x.wa(le.data):void 0;ne.addAll(oe.memberParts);for(var me=ne.iterator;me.next();){var Ce=me.value;if(Ce.isSelected=!0,!(Ce instanceof fi)){var Me=Ce.data;Me!==null?x.mp(Me,ce):Ce.containingGroup=le}}y.remove(oe)}}y.R("SelectionUngrouped",E,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},ct.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 Rr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Rr&&y.canUngroup())return!0;return!1},ct.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=bn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},ct.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ka(y.animationManager,"Collapse SubGraph");var x=new An;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Rr&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},ct.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Rr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Rr&&y.isSubGraphExpanded)return!0;return!1},ct.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ka(y.animationManager,"Expand SubGraph");var x=new An;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Rr&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},ct.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Rr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Rr&&!y.isSubGraphExpanded)return!0;return!1},ct.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 E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof Ca&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},ct.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 Ca))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 Ca&&x.editable}),a!==null))return!0;return!1},ct.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 E=y.lastInput,b=null;a instanceof jt?b=a.ga(xo):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new qe(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,Xo(x,!1,a)}},ct.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)},ct.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new Kn,a===null)return E;for(var z=a.iterator;z.next();)Iu(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof fi&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},bt.Object.defineProperties(ct.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||at("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}}}),ct.className="CommandHandler",Hc=function(){return new ct};function jt(){Hr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new qe(NaN,NaN).freeze(),this.jd=fo,this.Ab=new Wr,this.wh=new Wr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=qo,this.uc=new Cn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Cn(NaN,NaN,NaN,NaN).freeze(),this.dc=new Cn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Yo,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 ni,Xn,Gi,Yi,dr,jr,wo,no,Io,da;jt.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=on(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},jt.prototype.Vw=function(a){var y=this.Dh;if(Nn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},jt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},jt.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},jt.prototype.copy=function(){return this.clone()},De=jt.prototype,De.qb=function(a){a.classType===fi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:at("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===jt&&(this.stretch=a)},De.toString=function(){return Zn(this.constructor)+"#"+yo(this)},De.th=function(){this.A!==null&&(this.A.nc=!0)};function $r(a){a.A===null?a.A=new $f:a.A.nc&&(a.A=a.A.copy())}De.Xc=function(){if(this.ba===null){var a=new pp;a.Xi=$a,a.yj=$a,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},De.cb=function(a,y,x,E,b,z,ne){var re=this.part;if(re!==null&&(re.gk(a,y,x,E,b,z,ne),x===this&&a===ii&&Pl(this)&&La(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new Kn),ne=z.undoManager.transactionLevel===0,a.startCondition===Js?ne=!0:a.startCondition===ps&&(ne=!1),ne?(z=new Ja,Oa(a,z),ne=this.jo.get(a),ne!==null&&ne.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(Ka(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof ai&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)re=x[b],re instanceof ai&&Mf(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function La(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,ne=null;if(z.sourceName!==null){if(ne=FS(z,E,a),ne===null)continue;z.sp(a,ne,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,E)}else{if(re=E.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,E)}ne===a&&(re=E.ks(z.Ai),re!==null&&z.Mv(re,ne,x))}}De.ks=function(a){return this.bindingId===a?this:null},De.g=function(a,y,x){this.cb(ii,a,this,y,x)},De.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Wr);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function $s(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}De.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?_o(a.x,a.y,0,0,0,E.height)<=y||_o(a.x,a.y,0,E.height,E.width,E.height)<=y||_o(a.x,a.y,E.width,E.height,E.width,0)<=y||_o(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},De.se=function(){return!0},De.ca=function(a){var y=qe.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return qe.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),ne=z/2,re=this.naturalBounds;E=this.Df()*E.scale;var oe=1/E;if(re.width*E<b&&re.height*E<b)return a=aa(x.x-ne*oe,x.y-ne*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),qe.free(y),a}return b=!1,(this instanceof Go||this instanceof Vr?aa(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)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),qe.free(y),b},De.gh=function(a){var y=this.naturalBounds;return aa(0,0,y.width,y.height,a.x,a.y)},De.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Cn.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=qe.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),qe.free(b),Cn.free(y),E},De.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=qe.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),qe.free(b),E},De.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=qe.allocAt(0,0),b=qe.allocAt(0,x.height),z=qe.allocAt(x.width,x.height),ne=qe.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(ne)))re=!0;else{x=Cn.allocAt(0,0,x.width,x.height);var oe=qe.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),qe.free(oe),Cn.free(x),!re&&(Kt.us(a,E,b)||Kt.us(a,b,z)||Kt.us(a,z,ne)||Kt.us(a,ne,E))&&(re=!0)}return qe.free(E),qe.free(b),qe.free(z),qe.free(ne),re},De.ga=function(a,y){if(y===void 0&&(y=new qe),a instanceof Zi){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},De.mi=function(a){a===void 0&&(a=new Cn);var y=this.naturalBounds,x=this.oe,E=qe.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),vo(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),vo(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),vo(a,E.x,E.y,0,0),qe.free(E),a},De.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},De.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},De.qs=function(a,y){return y===void 0&&(y=new qe),y.assign(a),this.oe.Cd(y),y},De.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},De.Sj=function(a,y,x,E,b){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ne,oe=-z.m12*ne,le=-z.m21*ne,ce=z.m11*ne,me=ne*(z.m21*z.dy-z.m22*z.dx),Ce=ne*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Kt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ne=a*re+y*le+me,a=a*oe+y*ce+Ce,y=x*re+E*le+me,x=x*oe+E*ce+Ce,b.h(0,0),E=this.naturalBounds,x=Kt.Ff(0,0,E.width,E.height,ne,a,y,x,b),b.transform(z),x)},jt.prototype.measure=function(a,y,x,E){if(Hu(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var ne=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ne:a,y=isFinite(b.width)?b.width+ne:y):(a=isFinite(b.width)?b.width+ne:a,y=isFinite(b.height)?b.height+ne:y),b=x||0,ne=E||0;var re=this instanceof ai;switch(du(this,!0)){case Xn:ne=b=0,re&&(y=a=1/0);break;case ni:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ne=y);break;case Yi:isFinite(a)&&a>x&&(b=a),ne=0,re&&(y=1/0);break;case dr:isFinite(y)&&y>E&&(ne=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.width<re.width&&(b=re.width),ne>re.height&&oe.height<re.height&&(ne=re.height),x=Math.max(b,oe.width),E=Math.max(ne,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<E&&(E=Math.min(oe.height,E)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||at("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Hs(this,!1)}},jt.prototype.Wl=function(){},jt.prototype.Dd=function(){return!1},jt.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=Cn.alloc();z.assign(this.Ib),this.Ib.ka(),Jl(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&vh(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof Ca&&(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()||at("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),xd(this,!1),Cn.free(z)},De=jt.prototype,De.eh=function(){};function Hl(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ne=x.top+x.bottom;switch(x=z.width+y,z=z.height+ne,E+=y,b+=ne,y=du(a,!0),x===E&&z===b&&(y=Xn),y){case Xn:(x>E||z>b)&&(Hs(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case ni:Hs(a,!0),a.measure(E,b,0,0);break;case Yi:Hs(a,!0),a.measure(E,z,0,0);break;case dr:Hs(a,!0),a.measure(x,b,0,0)}}}De.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Hv(x,!0),this.N(),Lo(a,y)||(x.oh(),this.Pn(x)))},De.Pn=function(a){this.portId!==null&&(Hv(a,!0),a instanceof Mi&&Y1(a,this))},De.gc=function(a,y){if(!ec(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof ai&&vh(this),ne=this.Ib;if(z){var re=this.Ib,oe=this.dc,le=this.areaBackground,ce=this.Ma;le===null&&ce===null||a.yc(),le!==null&&(us(this,a,le,!0,!0,oe,re),le instanceof ta&&le.type===ic?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(le)):a.fillRect(re.x,re.y,re.width,re.height)),ce!==null&&(us(this,a,ce,!0,!1,oe,re),ce instanceof ta&&ce.type===ic?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ce)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ne.width!==0&&ne.height!==0&&!isNaN(ne.x)&&!isNaN(ne.y))){z=this.transform,re=this.panel,this.l&4096&&pl(this),le=this.part,oe=!1;var me=0;le&&y.Gf("drawShadows")&&(oe=le.isShadowed)&&(ce=le.shadowOffset,me=Math.max(ce.y,ce.x)*y.scale*y.Mb),ce=this.Dd();var Ce;if(!(Ce=y.$i||!ce)){var Me=this.naturalBounds;Ce=this.wh;var Be=Ce.m11,Re=Ce.m21,dt=Ce.dx,et=Ce.m12,Pt=Ce.m22,At=Ce.dy,Dt,Rt=Dt=0;Ce=Dt*Be+Rt*Re+dt;var dn=Dt*et+Rt*Pt+At;Dt=Me.width+me,Rt=0;var bi=Dt*Be+Rt*Re+dt;Dt=Dt*et+Rt*Pt+At,Rt=Math.min(Ce,bi);var Ii=Math.min(dn,Dt),Ni=Math.max(Ce+0,bi)-Rt,hi=Math.max(dn+0,Dt)-Ii;Ce=Rt,dn=Ii,Dt=Me.width+me,Rt=Me.height+me,bi=Dt*Be+Rt*Re+dt,Dt=Dt*et+Rt*Pt+At,Rt=Math.min(Ce,bi),Ii=Math.min(dn,Dt),Ni=Math.max(Ce+Ni,bi)-Rt,hi=Math.max(dn+hi,Dt)-Ii,Ce=Rt,dn=Ii,Dt=0,Rt=Me.height+me,bi=Dt*Be+Rt*Re+dt,Dt=Dt*et+Rt*Pt+At,Rt=Math.min(Ce,bi),Ii=Math.min(dn,Dt),Ni=Math.max(Ce+Ni,bi)-Rt,hi=Math.max(dn+hi,Dt)-Ii,Ce=Rt,dn=Ii,me=y.viewportBounds,Me=me.x,Be=me.y,Ce=!(Ce>me.width+Me||Me>Ni+Ce||dn>me.height+Be||Be>hi+dn)}if(Ce){if(Ce=(this.l&256)!==0,a.clipInsteadOfFill&&(Ce=!1),this instanceof Ca&&(a.font=this.font),Ce){if(dn=re.se()?re.naturalBounds:re.actualBounds,Ni=Math.max(ne.x,dn.x),hi=Math.max(ne.y,dn.y),me=Math.min(ne.right,dn.right)-Ni,Me=Math.min(ne.bottom,dn.bottom)-hi,Be=this.tb,Be!==null&&(Ni=Be.x,hi=Be.y,me=Be.width,Me=Be.height),Ni>ne.width+ne.x||ne.x>dn.width+dn.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Ni,hi,me,Me),a.clip()}if(ce){if(!le.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(dn=le.shadowOffset,a.Ev(dn.x*y.scale*this.scale*y.Mb,dn.y*y.scale*this.scale*y.Mb,le.shadowBlur),Vd(a),a.shadowColor=le.shadowColor)}oe&&this.shadowVisible===!0?Vd(a):oe&&this.shadowVisible===!1&&Pd(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ju(this,a,le,ne)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&cl(this,re)&&this.shadowVisible===null&&Pd(a),this.Ma!==null&&(a.yc(),xu(this,a,le,ne)),oe&&(this.Ma!==null||this.areaBackground!==null||cl(this,re))?(Bc(this,!0),this.shadowVisible===null&&Pd(a)):Bc(this,!1),this.hh(a,y),oe&&this.l&512&&Vd(a),ce&&oe&&Pd(a),Ce&&(a.restore(),a.Vc(this instanceof ai)),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=E),this.filter!==""&&(a.filter=b)}}};function cl(a,y){return y===null?!1:(vh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ai.Auto||y.type===ai.Spot)&&y.Pb()!==a)}De.Dv=function(){};function ju(a,y,x,E){us(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof ta&&a.areaBackground.type===ic?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function xu(a,y,x,E){var b=a.kq(),z=x.x,ne=x.y,re=x.width+b,oe=x.height+b;us(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof ta&&a.Ma.type===ic?(y.beginPath(),y.rect(z-b/2,ne-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ne-b/2,re,oe)}function Tl(a,y,x){for(var E=y.O.s,b=E.length,z=-1,ne=0;ne<b;ne++)if(E[ne]===a){z=ne;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===ai.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 ec(a,y,x){if(!(y instanceof Fu))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 E=a.panel,b=a.nk(y);if(a.kk(y,x,b))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):E&&Tl(a,E,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 Ca&&(y.font=a.font),y.yd=null;var ne=a.transform;z=a instanceof ai;var re=a instanceof ai?vh(a):!1;a.l&4096&&pl(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(mp(y,1,0,0,1,0,0),a.svg=y.ad):z?(mp(y,ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy),a.svg=y.ad):mp(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var le=ne.copy().Vj();y.rb.ha=[le.m11,le.m12,le.m21,le.m22,le.dx,le.dy],ju(a,y,b,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy]),xu(a,y,b,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],xu(a,y,b,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ne=y.yd,b=a.part,re=!1,b&&x.Gf("drawShadows")&&(re=b.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&Vd(y),re&&a.shadowVisible===!0?Vd(y):re&&a.shadowVisible===!1&&Pd(y),b=a.panel,re&&cl(a,b)&&a.shadowVisible===null&&Pd(y),y.Il&&(le=x.computePixelRatio(),le="drop-shadow("+y.shadowOffsetX/le+"px "+y.shadowOffsetY/le+"px "+y.shadowBlur/le/2+"px "+y.shadowColor+")",a.background!==null&&ne.Ma.setAttributeNS(null,"filter",le),a.areaBackground!==null&&ne.gd.setAttributeNS(null,"filter",le)),re&&(a.Ma!==null||a.areaBackground!==null||cl(a,b))?(Bc(a,!0),a.shadowVisible===null&&Pd(y)):Bc(a,!1),b=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ne=y.Gv.hs,re=z?a.svg:y.yd,le=a.svg,!z&&le!==null&&re!==le&&le.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,E,oe,re),cu(y,le),!0):(a.svg=re,ne!==null&&re===null&&(pm(y),y.nh.pop()),re===null||(a.$o(y,E,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&Vd(y),a.Dd()&&Pd(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):E!==null&&Tl(a,E,re),ne!==null&&ne(a,re)),!0)}De.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var ne=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,ne=z.width,x=z.height),z=E.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+Ot++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ne,height:x}),this instanceof ai&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),re.appendChild(y),a.svg.appendChild(re),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",ne.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),cu(a,E)};function cu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Ol(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=yr(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}De.hh=function(){},De.lv=function(){this.Uc=!0},De.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 E=this.transform,b=this instanceof ai?vh(this):!1;if(!(this instanceof ai&&b))if(this instanceof fu){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&$y(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 ai)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Vr){z=y.getElementsByTagName("path");for(var ne=0;ne<z.length;ne++)z[ne].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.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):(ne=E.copy().Vj(),a.rb.ha=[ne.m11,ne.m12,ne.m21,ne.m22,ne.dx,ne.dy],ju(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ne=y.gd.getAttribute("filter"),ne!==null&&a.ad.setAttribute("filter",ne),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&mm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(mm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof ai))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),xu(this,a,this.naturalBounds,this.actualBounds),y.Ma?(mm(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&&mm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},De.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 us(a,y,x,E,b,z,ne){if(x!==null){var re=1,oe=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===mh)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var le=a.kq();if(re=z.width,oe=z.height,b?(re=ne.width,oe=ne.height):E||(re+=le,oe+=le),(z=y instanceof Af)&&x.xe&&(x.type===Lg||x.yk===re&&x.ft===oe))var ce=x.xe;else{var me=0,Ce=0,Me=0,Be=0,Re=0,dt=0;if(dt=Re=0,b?(Re=ne.x,dt=ne.y):E||(Re-=le/2,dt-=le/2),me=x.start.x*re+x.start.offsetX,Ce=x.start.y*oe+x.start.offsetY,Me=x.end.x*re+x.end.offsetX,Be=x.end.y*oe+x.end.offsetY,me+=Re,Me+=Re,Ce+=dt,Be+=dt,x.type===Ud)ce=y.createLinearGradient(me,Ce,Me,Be);else if(x.type===ic)dt=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Re=0,dt=Math.max(re,oe)/2):Re=x.startRadius,ce=y.createRadialGradient(me,Ce,Re,Me,Be,dt);else if(x.type===Lg)try{ce=y.createPattern(x.pattern,"repeat")}catch(Pt){ce=null}if(x.type!==Lg&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ce.addColorStop(b.key,b.value);if(z&&(x.xe=ce,ce!==null&&(x.yk=re,x.ft=oe),ce===null&&x.type===Lg&&x.yk!==-1)){x.yk=-1;var et=a.diagram;et!==null&&x.yk===-1&&li(function(){et.redraw()},600)}}E?y.fillStyle=ce:y.strokeStyle=ce}}}De.rg=function(a){if(a instanceof ai)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},De.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},De.If=function(){for(var a=this instanceof ai?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function pl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){yc(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)}yc(a,!1),tc(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,tc(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,tc(a,!1)))}De.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=qe.alloc();z.yi(y,x,E,b,xo),a.rotate(this.Kb,z.x,z.y),qe.free(z)}},De.v=function(a){if(!Hu(this)){a===void 0&&(a=!1),Hs(this,!0),xd(this,!0);var y=this.panel;y===null||a||y.v()}},De.Uj=function(){Hu(this)||(Hs(this,!0),xd(this,!0))};function _l(a){if(!Jl(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Mi&&a.Bd(),y.$b())),xd(a,!0)}}De.Uk=function(){!(this.l&2048)&&(yc(this,!0),tc(this,!0))},De.Wu=function(){tc(this,!0)},De.N=function(){var a=this.part;a!==null&&a.N()};function du(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===ai.Table?Yc(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===ai.Auto&&E.Pb()===a?dl(a,ni,y):x===jr?E!==null?E.type===ai.Spot&&E.Pb()===a?dl(a,ni,y):(x=E.defaultStretch,x===jr?dl(a,Xn,y):dl(a,x,y)):dl(a,Xn,y):dl(a,x,y)}function Yc(a,y,x,E){var b=a.stretch;if(b!==jr)return dl(a,b,E);var z=b=null;switch(y.stretch){case dr:z=!0;break;case ni:z=!0}switch(x.stretch){case Yi:b=!0;break;case ni:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Yi||y===ni),z===null&&(z=y===dr||y===ni),b===!0&&z===!0?dl(a,ni,E):b===!0?dl(a,Yi,E):z===!0?dl(a,dr,E):dl(a,Xn,E)}function dl(a,y,x){if(x)return y;if(y===Xn||(x=a.desiredSize,x.w()))return Xn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Yi)return Xn;if(y===ni)return dr}else{if(y===dr)return Xn;if(y===ni)return Yi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===dr)return Xn;if(y===ni)return Yi}else{if(y===Yi)return Xn;if(y===ni)return dr}return y}function Bc(a,y){a.l=y?a.l|512:a.l&-513}function Pl(a){return(a.l&1024)!==0}function Qf(a,y){a.l=y?a.l|1024:a.l&-1025}function yc(a,y){a.l=y?a.l|2048:a.l&-2049}function tc(a,y){a.l=y?a.l|4096:a.l&-4097}function Hu(a){return(a.l&8192)!==0}function Hs(a,y){a.l=y?a.l|8192:a.l&-8193}function Jl(a){return(a.l&16384)!==0}function xd(a,y){a.l=y?a.l|16384:a.l&-16385}De.Gj=function(){this.svg=null},De.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},De.Av=function(){},De.zv=function(a){return this.pa=a,_l(this),!0},De.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},De.kq=function(){return 0};function Ef(a){var y=a.part;if(y instanceof Mi&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||Y1(y,a)}}function Jy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof ai?a instanceof Mi?a.Bd():a.qm(a,function(x){Ef(x)}):Ef(a))}De.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Fs(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&p1(a)&&at("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new An),this.localBindings.add(b),this},De.set=function(a){return Object.assign(this,a),this},De.Du=function(a){return rv(this,a),this},De.apply=function(a){return a(this),this},De.nm=function(a){return yu(this,a),this},De.pz=function(){return this.ih()},De.ih=function(){for(var a=this instanceof ai?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},De.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Kn),this.animationTriggers.add(a.propertyName,a),this};function nc(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=wg.I(a);typeof z=="function"?(x=on(arguments),E=z(x),qt(E)||at('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=ot.go[a]}if(E===null&&(b!=null&&b.constructor||at("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof cn&&1<x.length){z=E;var ne=x[1];(typeof ne=="string"||ne instanceof HTMLDivElement)&&(Lc(z,ne),b++)}for(;b<x.length;b++)z=x[b],z===void 0?at("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):rv(E,z);return E}function rv(a,y){if(typeof y=="string")if(a instanceof Ca)a.text=y;else if(a instanceof Vr)a.figure=y;else if(a instanceof fu)a.source=y;else if(a instanceof ai)y=Nc.I(y),y!==null&&(a.type=y);else if(a instanceof ta){var x=Fi(ta,y);x!==null?a.type=x:at("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof vi?(y=Fi(vi,y),y!==null&&(a.type=y)):a instanceof ko&&(y=Fi(ko,y),y!==null&&(a.type=y));else if(y instanceof jt)a instanceof ai||at("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ws){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof Ws?Nm(E,y):at("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Jt)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ys)a.type=y;else if(y instanceof Fs)a instanceof jt||a instanceof Ws?a.bind(y):at("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof lu)a instanceof jt?a.Jv(y):at("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Os)a instanceof vi&&a.type===vi.o?a.figures.add(y):at("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof ko)a instanceof Os?a.segments.add(y):at("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ha)a instanceof cn||a instanceof Rr?a.layout=y:at("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)rv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof ta){x=new Wi;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);yu(a,x)}else if(a instanceof Ws){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&at("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&at("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Wi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);yu(a,b)}else yu(a,y);else at('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function ph(a,y){wg.add(a,y)}function gm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}bt.Object.defineProperties(jt.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&&($r(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&&($r(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:ql},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===ql&&(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 Gh),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 Gh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:_i},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Gh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:jr},set:function(a){var y=this.stretch;y!==a&&($r(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&&($r(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)&&pi(a,"0 <= value <= 1",jt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Df(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(Df(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(),Jy(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&&eg(a,"GraphObject.areaBackground"),a instanceof ta&&a.freeze(),$r(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&&eg(a,"GraphObject.background"),a instanceof ta&&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 Qi)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,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new qe(b,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&at("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,Jy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Vr&&this.qc(),this.g("desiredSize",E,a),Pl(this)&&(a=this.part,a!==null&&(La(this,a,"width"),La(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 oi(a,this.jd.height).freeze(),this.v(),this instanceof Vr&&this.qc(),this.g("desiredSize",y,a),Pl(this)&&(a=this.part,a!==null&&La(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 oi(this.jd.width,a).freeze(),this.v(),this instanceof Vr&&this.qc(),this.g("desiredSize",y,a),Pl(this)&&(a=this.part,a!==null&&La(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ao},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(),$r(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:xa},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(),$r(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 Yn(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&&pl(this),this.Ab}},oe:{get:function(){return this.l&4096&&pl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&($r(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Xn},set:function(a){this.reshapingBehavior!==a&&($r(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()&&at("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),_l(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&&pi(a,">= 0",jt,"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&&pi(a,">= 1",jt,"columnSpan"),$r(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&&pi(a,">= 0",jt,"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&&pi(a,">= 1",jt,"rowSpan"),$r(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&&($r(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 Mi||at("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Kv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,_1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:$a},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Ef(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&pi(a,">= 0",jt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Ef(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),Ef(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&&pi(a,">= 0",jt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:$a},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Ef(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&pi(a,">= 0",jt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Ef(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),Ef(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&&pi(a,">= 0",jt,"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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(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&&($r(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),jt.prototype.trigger=jt.prototype.Jv,jt.prototype.findBindingPanel=jt.prototype.ih,jt.prototype.findTemplateBinder=jt.prototype.pz,jt.prototype.setProperties=jt.prototype.nm,jt.prototype.apply=jt.prototype.apply,jt.prototype.attach=jt.prototype.Du,jt.prototype.set=jt.prototype.set,jt.prototype.isEnabledObject=jt.prototype.If,jt.prototype.isVisibleObject=jt.prototype.Ed,jt.prototype.isContainedBy=jt.prototype.rg,jt.prototype.getNearestIntersectionPoint=jt.prototype.rs,jt.prototype.getLocalPoint=jt.prototype.qs,jt.prototype.getDocumentScale=jt.prototype.Df,jt.prototype.getDocumentAngle=jt.prototype.li,jt.prototype.getDocumentBounds=jt.prototype.mi,jt.prototype.getDocumentPoint=jt.prototype.ga,jt.prototype.intersectsRect=jt.prototype.Yc,jt.prototype.containedInRect=jt.prototype.fh,jt.prototype.containsRect=jt.prototype.Re,jt.prototype.containsPoint=jt.prototype.ca,jt.prototype.raiseChanged=jt.prototype.g,jt.prototype.raiseChangedEvent=jt.prototype.cb,jt.prototype.addCopyProperty=jt.prototype.Vw;var wg=null;jt.className="GraphObject",wg=new Kn,ph("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=nc(ai,ai.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ai){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},nc(Vr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Zi(0,0,2.76142374915397,2.761423749153969),spot2:new Zi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof ai&&(x=E.fb("ButtonBorder"),x instanceof Vr)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof ai&&(x=E.fb("ButtonBorder"),x instanceof Vr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ai&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Vr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ne=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=ne,ne=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=ne,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof ai&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Vr){var z=x.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof ai&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Vr){var z=x.diagram,ne=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ne}}},y.actionMove=function(x,E){if(E.If()&&E instanceof ai&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Vr))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ne=E._buttonFillPressed;x.fill!==ne&&(x.fill=ne),ne=E._buttonStrokePressed,x.stroke!==ne&&(x.stroke=ne),b.skipsUndoManager=z}}},y}),ph("TreeExpanderButton",function(){var a=nc("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},nc(Vr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:na},new Fs("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Fs("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Go&&(x=x.adornedPart),x instanceof Mi){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),ph("SubGraphExpanderButton",function(){var a=nc("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},nc(Vr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:na},new Fs("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 Go&&(x=x.adornedPart),x instanceof Rr){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),ph("ToolTip",function(){return nc(Go,ai.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new qe(0,3),shadowBlur:5},nc(Vr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Zi(0,0,4,6),spot2:new Zi(1,1,-4,-4)}))}),ph("ContextMenu",function(){return nc(Go,ai.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new qe(0,3),shadowBlur:5},new Fs("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),ph("ContextMenuButton",function(){var a=nc("Button");a.stretch=Yi;var y=a.fb("ButtonBorder");return y instanceof Vr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Zi(0,0,2,3),y.spot2=new Zi(1,1,-2,-2)),a}),ph("PanelExpanderButton",function(a){var y=gm(a,"COLLAPSIBLE"),x=nc("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},nc(Vr,{name:"ButtonIcon",strokeWidth:2},new Fs("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Vr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ne=b.ih();ne===null&&(ne=b.part),ne!==null&&(b=ne.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),ph("CheckBoxButton",function(a){var y=gm(a);return a=nc("Button",{desiredSize:new oi(14,14)},nc(Vr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ni,geometryStretch:Gi,visible:!1},y!==""?new Fs("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ai){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),ph("CheckBox",function(a){a=gm(a),a=nc("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Yn(0,1,0,0)});var y=nc(ai,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Yn(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}),jt.None=Xn=new Jt(jt,"None",0),jt.Default=jr=new Jt(jt,"Default",0),jt.Vertical=dr=new Jt(jt,"Vertical",4),jt.Horizontal=Yi=new Jt(jt,"Horizontal",5),jt.Fill=ni=new Jt(jt,"Fill",3),jt.Uniform=Gi=new Jt(jt,"Uniform",1),jt.UniformToFill=wo=new Jt(jt,"UniformToFill",2),jt.FlipVertical=no=new Jt(jt,"FlipVertical",1),jt.FlipHorizontal=Io=new Jt(jt,"FlipHorizontal",2),jt.FlipBoth=da=new Jt(jt,"FlipBoth",3),jt.make=nc,jt.getBuilders=function(){var a=new Kn,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},jt.defineBuilder=ph,jt.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=wg.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof jt))return y&&E.set(y),E;at('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},jt.takeBuilderArgument=gm;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=Ao,this.o=xa,this.hg=jr,this.ob=this.Bi=1,this.Pf=Xn,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 Gh(){this.u=-1/0,this.o=0,this.F=_i,this.rr=ql,this.j=this.V="None"}Gh.prototype.copy=function(){var a=new Gh;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},Gh.className="LinkElementSettings";function pp(){this.yj=this.Xi=Yo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}pp.prototype.copy=function(){var a=new pp;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},pp.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 E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,ne=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=ne,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 ud(a,y,x){this.ownerDocument=a=y===void 0?ot.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 Fu(this,x)}ud.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},ud.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),qt(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},ud.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ud.prototype.focus=function(){this.Oa.focus()},ud.prototype.mx=function(){this.ownerDocument=null},bt.Object.defineProperties(ud.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}}}),ud.className="SVGSurface";function Fu(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=pm(this),this.Nj=pm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Ot++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Qy(a,y,x,E,b,z,ne){a.Nj===void 0?mp(a,y,x,E,b,z,ne):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ne+")")}De=Fu.prototype,De.arc=function(a,y,x,E,b,z,ne,re){var oe=2*Math.PI,le=oe-1e-6,ce=x*Math.cos(E),me=x*Math.sin(E),Ce=a+ce,Me=y+me,Be=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(ne-Ce)||1e-6<Math.abs(re-Me))&&this.path.push(["L",Ce,+Me]),0>E&&(E=E%oe+oe),E>le?(this.path.push(["A",x,x,0,1,Be,a-ce,y-me]),this.path.push(["A",x,x,0,1,Be,Ce,Me])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Be,a+x*Math.cos(b),y+x*Math.sin(b)])},De.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},De.Se=function(a){this.addPath(this.path,this.rb,a||0)},De.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},De.clearRect=function(){},De.clip=function(){this.Yl.clipPath=!0},De.closePath=function(){this.path.push(["z"])},De.createLinearGradient=function(a,y,x,E){var b=new qf("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},De.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 E="PATTERN"+Ot++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(wf,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},De.createRadialGradient=function(a,y,x,E,b,z){var ne=new qf("radial");return ne.x1=a,ne.y1=y,ne.r1=x,ne.x2=E,ne.y2=b,ne.r2=z,ne};function $y(a,y,x,E,b,z,ne,re,oe){E=re/E,b=oe/b,z===0&&ne===0||a.rb.translate(z,ne),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}De.drawImage=function(a,y,x,E,b,z,ne,re,oe){var le="";a instanceof HTMLCanvasElement&&(le=a.toDataURL()),a instanceof HTMLImageElement&&(le=a.getAttribute("src"));var ce=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ne=x,re=E=ce,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,$y(this,y,x,E,b,z||0,ne||0,re,oe),z={x:0,y:0,width:ce||E,height:a||b,href:le},Kt.$(E,re)&&Kt.$(b,oe)?le.toLowerCase().indexOf(".svg")===-1&&le.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ce||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),Cg(this,wf,z,this.rb),this.addElement(wf,z)},De.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ov(this,this.Yl)},De.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},De.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},Cg(this,"fill",a,this.rb),this.addElement("rect",a)},De.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},Cg(this,"fill",a,this.rb),ov(this,a),this.svg.prepend(this.Ud("rect",a))},De.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},Cg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},De.lineTo=function(a,y){this.path.push(["L",a,y])},De.moveTo=function(a,y){this.path.push(["M",a,y])},De.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},De.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},De.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},De.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())},De.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||mp(this,a,y,x,E,b,z)};function qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}De.scale=function(a,y){this.rb.scale(a,y)},De.translate=function(a,y){this.rb.translate(a,y)},De.transform=function(){},De.yc=function(){},De.stroke=function(){t1(this,this.Yl)},De.jk=function(){this.clipInsteadOfFill||this.stroke()},De.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},De.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 Cg(a,y,x,E){y==="fill"?ov(a,x):y==="stroke"&&t1(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function ov(a,y){a.fillStyle instanceof qf?y.fill=av(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 e1(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof qf?y.setAttributeNS(null,"fill",av(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 t1(a,y){if(a.strokeStyle instanceof qf)y.stroke=av(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 av(a,y,x){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+Ot++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,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:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],ne=0;ne<y;ne++){var re=b[ne],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(le,ce){return le.offset>ce.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}De.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=on(a[b]),ne=[z.shift()];if(ne[0]==="A")ne.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ne.push(z.shift()+","+z.shift());E.push(ne.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,Cg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function mp(a,y,x,E,b,z,ne){var re=new bf;re.ha=[y,x,E,b,z,ne],y={},Cg(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function pm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}De.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Pd(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}De.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},De.fs=function(){this.Ct=!1},De.Vc=function(){},De.Wx=function(){},Fu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Fu.prototype.getImageData=function(){return null},Fu.prototype.measureText=function(){return null};function mm(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()))}Fu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Fu.className="SVGContext",cn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new ud(this,ot.document));var y=new ud(this,ot.document,!0);a===void 0&&(a=new Wi);var x=this;return mc(this,function(E,b){return E=hh(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},cn.prototype.makeSvg=cn.prototype.Cs,cn.prototype.av=function(a){return this.Cs(a)},cn.prototype.makeSVG=cn.prototype.av;function Sc(a,y,x,E){this.ownerDocument=y=y===void 0?ot.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Af(y,x,E),y.H=a}Sc.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},Sc.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Sc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Sc.prototype.focus=function(){this.Oa.focus()},Sc.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},bt.Object.defineProperties(Sc.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}}}),Sc.className="CanvasSurface";function Af(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&at("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 Wr,this.isTemporary=!!x}De=Af.prototype,De.Wx=function(a){this.Z.imageSmoothingEnabled=a},De.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},De.beginPath=function(){this.Z.beginPath()},De.Se=function(){},De.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},De.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},De.clip=function(){this.Z.clip()},De.closePath=function(){this.Z.closePath()},De.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},De.createPattern=function(a,y){return this.Z.createPattern(a,y)},De.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},De.drawImage=function(a,y,x,E,b,z,ne,re,oe){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,ne,re,oe)},De.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},De.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},De.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},De.fillText=function(a,y,x){this.Z.fillText(a,y,x)},De.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},De.lineTo=function(a,y){this.Z.lineTo(a,y)},De.measureText=function(a){return this.Z.measureText(a)},De.moveTo=function(a,y){this.Z.moveTo(a,y)},De.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},De.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},De.restore=function(){this.Z.restore()},De.save=function(){this.yc(),this.Z.save()},Af.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},De=Af.prototype,De.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},De.scale=function(a,y){this.El.scale(a,y)},De.translate=function(a,y){this.El.translate(a,y)},De.stroke=function(){this.Z.stroke()},De.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var ne=this.El,re=ne.m11*a+ne.m21*y;a=ne.m12*a+ne.m22*y,y=ne.m11*x+ne.m21*E,x=ne.m12*x+ne.m22*E,ne.dx=ne.m11*b+ne.m21*z+ne.dx,ne.dy=ne.m12*b+ne.m22*z+ne.dy,ne.m11=re,ne.m12=a,ne.m21=y,ne.m22=x}},De.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},De.ng=function(a,y){if(a instanceof ta&&a.type===ic){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)},De.jk=function(){this.Hm||this.stroke()},De.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},De.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},De.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Cx),a.lineDashOffset=0)},De.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},De.Hs=function(){},bt.Object.defineProperties(Af.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 Cx=Object.freeze([]);Af.className="CanvasSurfaceContext";function vp(){this.F=this.o=this.u=this.j=0}vp.className="ColorNumbers";function ta(a,y){Mg||(hv(),Mg=!0),Hr(this),this._isFrozen=!1,a===void 0?(this.na=mh,this.xk="black"):typeof a=="string"?(this.na=mh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Ud?(this.Qd=Rl,this.Lk=Xr):this.Lk=a===ic?this.Qd=xo:this.Qd=$a,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}ta.prototype.copy=function(){var a=new ta;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},De=ta.prototype,De.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},De.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},De.qb=function(a){a.classType===ta&&(this.type=a)},De.toString=function(){var a="Brush(";if(this.type===mh)a+=this.color;else if(a=this.type===Ud?a+"Linear ":this.type===ic?a+"Radial ":this.type===Lg?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+")"},De.addColorStop=function(a,y){return this._isFrozen&&Bn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&pi(a,"0 <= loc <= 1",ta,"addColorStop:loc"),this.we===null&&(this.we=new Kn),this.we.add(a,y),this.na===mh&&(this.type=Ud),this.xe=null,this},De.Vz=function(a,y){if(this._isFrozen&&Bn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Fg:y,this.type===mh)Yd(this.color),this.color=bg(a,y);else if((this.type===Ud||this.type===ic)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(a,y));return this};function n1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Fg:x,Yd(a),bg(y,x)}De.Wy=function(a,y){if(this._isFrozen&&Bn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Fg:y,this.type===mh)Yd(this.color),this.color=bg(-a,y);else if((this.type===Ud||this.type===ic)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Yd(x.value),this.addColorStop(x.key,bg(-a,y));return this};function i1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Fg:x,Yd(a),bg(-y,x)}function sv(a,y,x){Yd(a),a=ba.j;var E=ba.u,b=ba.o,z=ba.F;return Yd(y),x===void 0&&(x=.5),"rgba("+Math.round((ba.j-a)*x+a)+", "+Math.round((ba.u-E)*x+E)+", "+Math.round((ba.o-b)*x+b)+", "+Math.round((ba.F-z)*x+z)+")"}De.Gx=function(){if(this.type===mh)return Eg(this.color);if((this.type===Ud||this.type===ic)&&this.colorStops!==null){var a=this.colorStops;if(this.type===ic)return Eg(a.first().value);if(a.get(.5)!==null)return Eg(a.get(.5));if(a.count===2)return a=a.Fa(),Eg(sv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var ne=y.key,re=Math.abs(.5-y.key);b>z&&re<b?(x=ne,b=re):z>=b&&re<z&&(E=ne,z=re)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,Eg(sv(a.get(x),a.get(E),1-z/b))}return!1};function Eg(a){return a?a instanceof ta?a.Gx():(Yd(a),128>(299*ba.j+587*ba.u+114*ba.o)/1e3):!1}function bg(a,y){switch(y){case Fg:y=100*uv(ba.j);var x=100*uv(ba.u),E=100*uv(ba.o);return Ql.j=.4124564*y+.3575761*x+.1804375*E,Ql.u=.2126729*y+.7151522*x+.072175*E,Ql.o=.0193339*y+.119192*x+.9503041*E,Ql.F=ba.F,y=dv(Ql.j/Ag[0]),x=dv(Ql.u/Ag[1]),E=dv(Ql.o/Ag[2]),wd.j=116*x-16,wd.u=500*(y-x),wd.o=200*(x-E),wd.F=Ql.F,wd.j=Math.min(100,Math.max(0,wd.j+100*a)),a=(wd.j+16)/116,y=a-wd.o/200,Ql.j=Ag[0]*r1(wd.u/500+a),Ql.u=Ag[1]*(wd.j>vm*fv?Math.pow(a,3):wd.j/vm),Ql.o=Ag[2]*r1(y),Ql.F=wd.F,a=-.969266*Ql.j+1.8760108*Ql.u+.041556*Ql.o,y=.0556434*Ql.j+-.2040259*Ql.u+1.0572252*Ql.o,ba.j=255*cv((3.2404542*Ql.j+-1.5371385*Ql.u+-.4985314*Ql.o)/100),ba.u=255*cv(a/100),ba.o=255*cv(y/100),ba.F=Ql.F,ba.j=Math.round(ba.j),255<ba.j?ba.j=255:0>ba.j&&(ba.j=0),ba.u=Math.round(ba.u),255<ba.u?ba.u=255:0>ba.u&&(ba.u=0),ba.o=Math.round(ba.o),255<ba.o?ba.o=255:0>ba.o&&(ba.o=0),"rgba("+ba.j+", "+ba.u+", "+ba.o+", "+ba.F+")";case o1:return lv(),Wu.o=Math.min(100,Math.max(0,Wu.o+100*a)),"hsla("+Wu.j+", "+Wu.u+"%, "+Wu.o+"%, "+Wu.F+")";default:at("Unknown color space: "+y)}}function Yd(a){Mg||(hv(),Mg=!0);var y=gv;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,ba.j=a[0],ba.u=a[1],ba.o=a[2],ba.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,ba.j=0,ba.u=0,ba.o=0,ba.F=1)}}function lv(){var a=ba.j/255,y=ba.u/255,x=ba.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var ne=a=0;else{switch(E){case a:ne=(y-x)/z%6;break;case y:ne=(x-a)/z+2;break;case x:ne=(a-y)/z+4}ne*=60,0>ne&&(ne+=360),a=z/(1-Math.abs(2*b-1))}Wu.j=Math.round(ne),Wu.u=Math.round(100*a),Wu.o=Math.round(100*b),Wu.F=ba.F}function uv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function cv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function dv(a){return a>fv?Math.pow(a,1/3):(vm*a+16)/116}function r1(a){var y=a*a*a;return y>fv?y:(116*a-16)/vm}function eg(a,y){typeof a!="string"&&(a instanceof ta||at("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){gv=ls?new Sc(null,void 0,{willReadFrequently:!0}).context:null}bt.Object.defineProperties(ta.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Bn(this,a),this.na=a,this.start.Mc()&&(a===Ud?this.start=Rl:a===ic&&(this.start=xo)),this.end.Mc()&&(a===Ud?this.end=Xr:a===ic&&(this.end=xo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Bn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Bn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Bn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Bn(this,a),0>a&&pi(a,">= zero",ta,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Bn(this,a),0>a&&pi(a,">= zero",ta,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Bn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Bn(this,a),this.cr=a,this.xe=null}}}),ta.prototype.isDark=ta.prototype.Gx,ta.prototype.darkenBy=ta.prototype.Wy,ta.prototype.lightenBy=ta.prototype.Vz,ta.prototype.addColorStop=ta.prototype.addColorStop;var fv=216/24389,vm=24389/27,Ag=[95.047,100,108.883],gv=null,ba=new vp,Wu=new vp,Ql=new vp,wd=new vp,Mg=!1;ta.className="Brush";var mh;ta.Solid=mh=new Jt(ta,"Solid",0);var Ud;ta.Linear=Ud=new Jt(ta,"Linear",1);var ic;ta.Radial=ic=new Jt(ta,"Radial",2);var Lg;ta.Pattern=Lg=new Jt(ta,"Pattern",4);var Fg;ta.Lab=Fg=new Jt(ta,"Lab",5);var o1;ta.HSL=o1=new Jt(ta,"HSL",6),ta.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 E=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>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},ta.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Mg||(hv(),Mg=!0);var y=gv;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)},ta.lighten=function(a){return n1(a)},ta.lightenBy=n1,ta.darken=function(a){return i1(a)},ta.darkenBy=i1,ta.mix=sv,ta.isDark=Eg;function Ys(){this.xa="Base"}Ys.prototype.measure=function(){},Ys.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Ys.prototype.arrange=function(){},Ys.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Ys.prototype.iA=function(a){a.Uj()},Ys.prototype.gc=function(){},bt.Object.defineProperties(Ys.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ai}}}),Ys.prototype.remeasureObject=Ys.prototype.iA,Ys.prototype.arrangeElement=Ys.prototype.Ly,Ys.prototype.measureElement=Ys.prototype.Yz,Ys.className="PanelLayout";function ym(){this.xa="Base"}Ut(ym,Ys),ym.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length;a=Xd(a);for(var oe=0;oe<re;oe++){var le=E[oe];if(le.visible||le===a){var ce=le.margin,me=ce.right+ce.left;ce=ce.top+ce.bottom,le.measure(y,x,z,ne);var Ce=le.measuredBounds;me=Math.max(Ce.width+me,0),ce=Math.max(Ce.height+ce,0),Ce=le.position.x;var Me=le.position.y;isFinite(Ce)||(Ce=0),isFinite(Me)||(Me=0),le instanceof Vr&&le.isGeometryPositioned&&(le=le.strokeWidth/2,Ce-=le,Me-=le),vo(b,Ce,Me,me,ce)}}},ym.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],ne=z.measuredBounds,re=z.margin,oe=z.position.x,le=z.position.y;if(oe=isNaN(oe)?-a:oe-a,le=isNaN(le)?-x:le-x,z instanceof Vr&&z.isGeometryPositioned){var ce=z.strokeWidth/2;oe-=ce,le-=ce}z.visible&&z.arrange(oe+re.left,le+re.top,ne.width,ne.height)}};function Sm(){this.xa="Base"}Ut(Sm,Ys),Sm.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length;y=En(),z=Xd(a);for(var oe=0;oe<re;oe++){var le=E[oe];if(le.visible||le===z){var ce=du(le,!1);if(ce!==Xn&&ce!==Yi)y.push(le);else{le.measure(1/0,x,0,ne),ce=le.margin,le=le.measuredBounds;var me=Math.max(le.height+ce.top+ce.bottom,0);b.width+=Math.max(le.width+ce.right+ce.left,0),b.height=Math.max(b.height,me)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)oe=y[a],(oe.visible||oe===z)&&(ce=oe.margin,re=ce.right+ce.left,ce=ce.top+ce.bottom,oe.measure(1/0,x,0,ne),oe=oe.measuredBounds,ce=Math.max(oe.height+ce,0),b.width+=Math.max(oe.width+re,0),b.height=Math.max(b.height,ce));kn(y)},Sm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,ne=a.isOpposite,re=ne?x.width:b.left,oe=0;oe<E;oe++){var le=z,ce=y[oe];if(ce.visible){var me=ce.measuredBounds,Ce=ce.margin,Me=Ce.top+Ce.bottom,Be=z+b.bottom,Re=me.height,dt=du(ce,!1);(isNaN(ce.desiredSize.height)&&dt===ni||dt===dr)&&(Re=Math.max(x.height-Me-Be,0)),Me=Re+Me+Be,Be=ce.alignment,Be.Xb()&&(Be=a.defaultAlignment),Be.sb()||(Be=xo),ne&&(re-=me.width+Ce.left+Ce.right),ce.arrange(re+Be.offsetX+Ce.left,le+Be.offsetY+Ce.top+(x.height*Be.y-Me*Be.y),me.width,Re),ne||(re+=me.width+Ce.left+Ce.right)}}};function xm(){this.xa="Base"}Ut(xm,Ys),xm.prototype.measure=function(a,y,x,E,b,z){var ne=E.length;x=En();for(var re=Xd(a),oe=0;oe<ne;oe++){var le=E[oe];if(le.visible||le===re){var ce=du(le,!1);if(ce!==Xn&&ce!==dr)x.push(le);else{var me=le.margin;ce=me.right+me.left,me=me.top+me.bottom,le.measure(y,1/0,z,0),le=le.measuredBounds,cs(b,Math.max(b.width,Math.max(le.width+ce,0)),b.height+Math.max(le.height+me,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)oe=x[a],(oe.visible||oe===re)&&(le=oe.margin,ne=le.right+le.left,le=le.top+le.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,le=Math.max(oe.height+le,0),b.width=Math.max(b.width,Math.max(oe.width+ne,0)),b.height+=le);kn(x)}},xm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,ne=a.isOpposite,re=ne?x.height:b.top,oe=0;oe<E;oe++){var le=z,ce=y[oe];if(ce.visible){var me=ce.measuredBounds,Ce=ce.margin,Me=Ce.left+Ce.right,Be=z+b.right,Re=me.width,dt=du(ce,!1);(isNaN(ce.desiredSize.width)&&dt===ni||dt===Yi)&&(Re=Math.max(x.width-Me-Be,0)),Me=Re+Me+Be,Be=ce.alignment,Be.Xb()&&(Be=a.defaultAlignment),Be.sb()||(Be=xo),ne&&(re-=me.height+Ce.bottom+Ce.top),ce.arrange(le+Be.offsetX+Ce.left+(x.width*Be.x-Me*Be.x),re+Be.offsetY+Ce.top,Re,me.height),ne||(re+=me.height+Ce.bottom+Ce.top)}}};function Pm(){this.xa="Base"}Ut(Pm,Ys),Pm.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length,oe=a.Pb(),le=oe.margin,ce=le.right+le.left,me=le.top+le.bottom;oe.measure(y,x,z,ne);var Ce=oe.measuredBounds;z=Ce.width,ne=Ce.height;var Me=Math.max(z+ce,0),Be=Math.max(ne+me,0),Re=a.isClipping,dt=Cn.allocAt(-le.left,-le.top,Me,Be),et=Cn.allocAt(0,0,z,ne);pv(oe,et,!0),z=et.width,ne=et.height;for(var Pt=!0,At=Xd(a),Dt=0;Dt<re;Dt++){var Rt=E[Dt];Ce=y;var dn=x;if(Rt!==oe&&(Rt.visible||Rt===At)){le=Rt.margin;var bi=le.left,Ii=le.top;switch(Me=le.right+le.left,Be=le.top+le.bottom,le=du(Rt,!1),le){case ni:Ce=z,dn=ne,Ii=bi=Be=Me=0;break;case Yi:Ce=z,bi=Me=0;break;case dr:dn=ne,Ii=Be=0}Rt.measure(Ce,dn,0,0),Ce=Rt.measuredBounds,Me=Math.max(Ce.width+Me,0),Be=Math.max(Ce.height+Be,0),le=Rt.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=xo);var Ni=Rt.alignmentFocus;if(Ni.Xb()&&(Ni=xo),dn=null,Rt instanceof ai&&Rt.$e!==""&&(dn=Rt.fb(Rt.$e),dn===Rt&&(dn=null)),bi=et.x-bi,Ii=et.y-Ii,dn!==null){for(Rt.arrange(0,0,Ce.width,Ce.height),Ce=dn.actualBounds,Ce=qe.allocAt(Ce.x+(Ni.x*Ce.width-Ni.offsetX),Ce.y+(Ni.y*Ce.height-Ni.offsetY)),dn=dn.panel;dn!==Rt;)dn.transform.Ga(Ce),dn=dn.panel;bi+=le.x*z+le.offsetX-Ce.x,Ii+=le.y*ne+le.offsetY-Ce.y,qe.free(Ce)}else bi+=le.x*z+le.offsetX-(Ni.x*Ce.width+Ni.offsetX),Ii+=le.y*ne+le.offsetY-(Ni.y*Ce.height+Ni.offsetY);Pt?(Pt=!1,b.h(bi,Ii,Me,Be)):vo(b,bi,Ii,Me,Be)}}switch(Pt?b.assign(dt):Re?b.Uu(et.x,et.y,et.width,et.height):vo(b,dt.x,dt.y,dt.width,dt.height),Cn.free(dt),Cn.free(et),le=oe.stretch,le===jr&&(le=du(oe,!1)),le){case Xn:return;case ni:if(!isFinite(y)&&!isFinite(x))return;break;case Yi:if(!isFinite(y))return;break;case dr:if(!isFinite(x))return}for(Ce=oe.measuredBounds,z=Ce.width,ne=Ce.height,Me=Math.max(z+ce,0),Be=Math.max(ne+me,0),le=oe.margin,et=Cn.allocAt(-le.left,-le.top,Me,Be),pv(oe,et,!0),z=et.width,ne=et.height,y=0;y<re;y++)x=E[y],x===oe||!x.visible&&x!==At||(le=x.margin,Me=le.right+le.left,Be=le.top+le.bottom,Ce=x.measuredBounds,Me=Math.max(Ce.width+Me,0),Be=Math.max(Ce.height+Be,0),ce=x.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=xo),x=x.alignmentFocus,x.Xb()&&(x=xo),Pt?(Pt=!1,b.h(ce.x*z+ce.offsetX-(x.x*Ce.width+x.offsetX)-le.left,ce.y*ne+ce.offsetY-(x.y*Ce.height+x.offsetY)-le.top,Me,Be)):vo(b,ce.x*z+ce.offsetX-(x.x*Ce.width+x.offsetX)-le.left,ce.y*ne+ce.offsetY-(x.y*Ce.height+x.offsetY)-le.top,Me,Be));Pt?b.assign(dt):Re?b.Uu(et.x,et.y,et.width,et.height):vo(b,dt.x,dt.y,dt.width,dt.height),Cn.free(et)},Pm.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,ne=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var le=z-x.x,ce=oe-x.y;for(b.arrange(le,ce,ne,re),ne=Cn.allocAt(0,0,ne,re),pv(b,ne,!1),re=0;re<E;re++){var me=y[re];if(me!==b){le=me.measuredBounds;var Ce=le.width,Me=le.height;ce=me.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=xo);var Be=me.alignmentFocus;if(Be.Xb()&&(Be=xo),le=null,me instanceof ai&&me.$e!==""&&(le=me.fb(me.$e),le===me&&(le=null)),le!==null){var Re=le.actualBounds;for(Be=qe.allocAt(Re.x+(Be.x*Re.width-Be.offsetX),Re.y+(Be.y*Re.height-Be.offsetY)),le=le.panel;le!==me;)le.transform.Ga(Be),le=le.panel;le=ce.x*ne.width+ce.offsetX-Be.x,ce=ce.y*ne.height+ce.offsetY-Be.y,qe.free(Be)}else le=ce.x*ne.width+ce.offsetX-(Be.x*Ce+Be.offsetX),ce=ce.y*ne.height+ce.offsetY-(Be.y*Me+Be.offsetY);le+=ne.x-x.x,ce+=ne.y-x.y,me.visible&&me.arrange(z+le,oe+ce,Ce,Me)}}Cn.free(ne)};function pv(a,y,x){var E=null;if(a instanceof ai&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function wm(){this.xa="Base"}Ut(wm,Ys),wm.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length,oe=a.Pb(),le=oe.margin,ce=y,me=x,Ce=le.right+le.left,Me=le.top+le.bottom;oe.measure(y,x,z,ne),le=oe.measuredBounds;var Be=0,Re=null;oe instanceof Vr&&(Re=oe,Be=Re.strokeWidth*Re.scale);var dt=Math.max(le.width+Ce,0);le=Math.max(le.height+Me,0);var et=Sv(oe),Pt=et.x*dt+et.offsetX;et=et.y*le+et.offsetY;var At=xv(oe),Dt=At.x*dt+At.offsetX;for(At=At.y*le+At.offsetY,isFinite(y)&&(ce=Math.max(Math.abs(Pt-Dt)-Be,0)),isFinite(x)&&(me=Math.max(Math.abs(et-At)-Be,0)),Be=oi.alloc(),Be.h(0,0),a=Xd(a),At=0;At<re;At++)et=E[At],et===oe||!et.visible&&et!==a||(le=et.margin,dt=le.right+le.left,Pt=le.top+le.bottom,et.measure(ce,me,0,0),le=et.measuredBounds,dt=Math.max(le.width+dt,0),le=Math.max(le.height+Pt,0),Be.h(Math.max(dt,Be.width),Math.max(le,Be.height)));if(re===1)b.width=dt,b.height=le,oi.free(Be);else{switch(et=Sv(oe),At=xv(oe),re=E=0,At.x!==et.x&&At.y!==et.y&&(E=Be.width/Math.abs(At.x-et.x),re=Be.height/Math.abs(At.y-et.y)),oi.free(Be),Be=0,Re!==null&&(Be=Re.strokeWidth*Re.scale,Av(Re)===Gi&&(E=re=Math.max(E,re))),E+=Math.abs(et.offsetX)+Math.abs(At.offsetX)+Be,re+=Math.abs(et.offsetY)+Math.abs(At.offsetY)+Be,Re=oe.stretch,Re===jr&&(Re=du(oe,!1)),Re){case Xn:ne=z=0;break;case ni:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case Yi:isFinite(y)&&(E=y),ne=0;break;case dr:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(E,re,z,ne),b.width=oe.measuredBounds.width+Ce,b.height=oe.measuredBounds.height+Me}},wm.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=Cn.alloc();z.h(0,0,1,1);var ne=E.margin,re=ne.left;ne=ne.top;var oe=a.padding,le=oe.left;oe=oe.top,E.arrange(le+re,oe+ne,b.width,b.height);var ce=Sv(E),me=xv(E),Ce=ce.y*b.height+ce.offsetY,Me=me.x*b.width+me.offsetX;for(me=me.y*b.height+me.offsetY,z.x=ce.x*b.width+ce.offsetX,z.y=Ce,vo(z,Me,me,0,0),z.x+=re+le,z.y+=ne+oe,b=0;b<x;b++)re=y[b],re!==E&&(le=re.measuredBounds,ne=re.margin,oe=Math.max(le.width+ne.right+ne.left,0),ce=Math.max(le.height+ne.top+ne.bottom,0),Ce=re.alignment,Ce.Xb()&&(Ce=a.defaultAlignment),Ce.sb()||(Ce=xo),oe=z.width*Ce.x+Ce.offsetX-oe*Ce.x+ne.left+z.x,ne=z.height*Ce.y+Ce.offsetY-ce*Ce.y+ne.top+z.y,re.visible&&(aa(z.x,z.y,z.width,z.height,oe,ne,le.width,le.height)?re.arrange(oe,ne,le.width,le.height):re.arrange(oe,ne,le.width,le.height,new Cn(z.x,z.y,z.width,z.height))));Cn.free(z)};function Cm(){this.xa="Base",this.name="Table"}Ut(Cm,Ys),Cm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,ne=En(),re=En(),oe=0;oe<z;oe++){var le=E[oe],ce=le instanceof ai?le:null;if(ce!==null&&vh(ce)&&le.visible){re.push(ce);for(var me=ce.O.s,Ce=me.length,Me=0;Me<Ce;Me++){var Be=me[Me];ce.type===ai.TableRow?Be.row=le.row:ce.type===ai.TableColumn&&(Be.column=le.column),ne.push(Be)}}else ne.push(le)}z=ne.length,z===0&&(a.Fb(0),a.Eb(0));for(var Re=[],dt=0;dt<z;dt++){var et=ne[dt];et.visible&&(Hs(et,!0),xd(et,!0),Re[et.row]||(Re[et.row]=[]),Re[et.row][et.column]||(Re[et.row][et.column]=[]),Re[et.row][et.column].push(et))}kn(ne);var Pt=En(),At=En(),Dt=En(),Rt={count:0},dn={count:0},bi=y,Ii=x,Ni=a.rowDefs,hi=a.colDefs,Vn=null;z=Ni.length;for(var Or=0;Or<z;Or++)Vn=Ni[Or],Vn!==void 0&&(Vn.actual=0);z=hi.length;for(var Cr=0;Cr<z;Cr++)Vn=hi[Cr],Vn!==void 0&&(Vn.actual=0);for(var Vo=Re.length,Sa=0,qs=0;qs<Vo;qs++)Re[qs]&&(Sa=Math.max(Sa,Re[qs].length));var sl=Math.min(a.topIndex,Vo-1),Wl=Math.min(a.leftIndex,Sa-1),el=0;Vo=Re.length;for(var Mh=Xd(a),Ds=0;Ds<Vo;Ds++)if(Re[Ds]){Sa=Re[Ds].length;var Qc=a.Fb(Ds);Qc.actual=0;for(var Zl=Qc.oc=0;Zl<Sa;Zl++)if(Re[Ds][Zl]){var Lh=a.Eb(Zl);Pt[Zl]===void 0&&(Lh.actual=0,Lh.oc=0,Pt[Zl]=!0);for(var Ku=Re[Ds][Zl],Cc=Ku.length,Nu=0;Nu<Cc;Nu++){var wu=Ku[Nu];if(wu.visible||wu===Mh){var rf=1<wu.rowSpan||1<wu.columnSpan;rf&&(Ds<sl||Zl<Wl||At.push(wu));var $c=wu.margin,$g=$c.right+$c.left,ku=$c.top+$c.bottom,Gl=Yc(wu,Qc,Lh,!1),rm=wu.desiredSize,hg=!isNaN(rm.height),hd=!isNaN(rm.width)&&hg;if(rf||Gl===Xn||hd||Ds<sl||Zl<Wl||(Rt[Zl]!==void 0||Gl!==ni&&Gl!==Yi||(Rt[Zl]=-1,Rt.count++),dn[Ds]!==void 0||Gl!==ni&&Gl!==dr||(dn[Ds]=-1,dn.count++),Dt.push(wu)),wu.measure(1/0,1/0,0,0),!(Ds<sl||Zl<Wl)){var Cu=wu.measuredBounds,Of=Math.max(Cu.width+$g,0),Tu=Math.max(Cu.height+ku,0);if(wu.rowSpan===1&&(Gl===Xn||Gl===Yi)){Vn=a.Fb(Ds);var of=Vn.Wc();el=Math.max(Tu-Vn.actual,0),el+of>Ii&&(el=Math.max(Ii-of,0));var Y0=Vn.oa===0;Vn.oc=Vn.oc+el,Vn.actual=Vn.oa+el,Ii=Math.max(Ii-(el+(Y0?of:0)),0)}if(wu.columnSpan===1&&(Gl===Xn||Gl===dr)){Vn=a.Eb(Zl);var om=Vn.Wc();el=Math.max(Of-Vn.actual,0),el+om>bi&&(el=Math.max(bi-om,0));var Zy=Vn.oa===0;Vn.oc=Vn.oc+el,Vn.actual=Vn.oa+el,bi=Math.max(bi-(el+(Zy?om:0)),0)}rf&&wu.Uj()}}}}}kn(Pt);var Bd=0,Qd=0;z=a.columnCount;for(var fg=0;fg<z;fg++){var af=hi[fg];af!==void 0&&(Bd+=isNaN(af.Hc)?af.oc:af.Hc,af.oc!==0&&(Bd+=af.Wc()))}z=a.rowCount;for(var qg=0;qg<z;qg++){var sf=Ni[qg];sf!==void 0&&(Qd+=isNaN(sf.Hc)?sf.oc:sf.Hc,sf.oc!==0&&(Qd+=sf.Wc()))}bi=Math.max(y-Bd,0);var Nd=Ii=Math.max(x-Qd,0),Fh=bi;z=Dt.length;for(var Eu=0;Eu<z;Eu++){var fd=Dt[Eu],U0=a.Fb(fd.row),$d=a.Eb(fd.column),ep=fd.measuredBounds,qc=fd.margin,If=qc.right+qc.left,gd=qc.top+qc.bottom;Rt[fd.column]=$d.oc===0&&Rt[fd.column]!==void 0?Math.max(ep.width+If,Rt[fd.column]):null,dn[fd.row]=U0.oc===0&&dn[fd.row]!==void 0?Math.max(ep.height+gd,dn[fd.row]):null}var gg=0,tp=0,zc;for(zc in dn)zc!=="count"&&(gg+=dn[zc]);for(zc in Rt)zc!=="count"&&(tp+=Rt[zc]);for(var vl=oi.alloc(),am=0;am<z;am++){var ru=Dt[am];if(ru.visible||ru===Mh){var Bs=a.Fb(ru.row),ou=a.Eb(ru.column),qd=0;isFinite(ou.width)?qd=ou.width:(isFinite(bi)&&Rt[ru.column]!==null?tp===0?qd=ou.actual+bi:qd=Rt[ru.column]/tp*Fh:Rt[ru.column]!==null?qd=bi:qd=ou.actual||bi,qd=Math.max(0,qd-ou.Wc()));var Dh=0;switch(isFinite(Bs.height)?Dh=Bs.height:(isFinite(Ii)&&dn[ru.row]!==null?gg===0?Dh=Bs.actual+Ii:Dh=dn[ru.row]/gg*Nd:dn[ru.row]!==null?Dh=Ii:Dh=Bs.actual||Ii,Dh=Math.max(0,Dh-Bs.Wc())),vl.h(Math.max(ou.minimum,Math.min(qd,ou.maximum)),Math.max(Bs.minimum,Math.min(Dh,Bs.maximum))),Gl=Yc(ru,Bs,ou,!1),Gl){case Yi:vl.height=Math.max(vl.height,Bs.actual+Ii);break;case dr:vl.width=Math.max(vl.width,ou.actual+bi)}var Rf=ru.margin,Gy=Rf.right+Rf.left,X0=Rf.top+Rf.bottom;ru.Uj(),ru.measure(vl.width,vl.height,ou.minimum,Bs.minimum);var np=ru.measuredBounds,zf=Math.max(np.width+Gy,0),pg=Math.max(np.height+X0,0);isFinite(bi)&&(zf=Math.min(zf,vl.width)),isFinite(Ii)&&(pg=Math.min(pg,vl.height));var bu=0;bu=Bs.actual,Bs.actual=Math.max(Bs.actual,pg),Bs.oc=Math.max(Bs.oc,pg),el=Bs.actual-bu,Ii=Math.max(Ii-el,0),dn[ru.row]===null&&(Nd=Math.max(Nd-el,0)),bu=ou.actual,ou.actual=Math.max(ou.actual,zf),ou.oc=Math.max(ou.oc,zf),el=ou.actual-bu,bi=Math.max(bi-el,0),Rt[ru.column]===null&&(Fh=Math.max(Fh-el,0))}}kn(Dt);var eh=oi.alloc(),ed=En(),lc=En();if(z=At.length,z!==0){for(var lf=0;lf<Vo;lf++)if(Re[lf]){Sa=Re[lf].length;var ip=a.Fb(lf);ed[lf]=ip.actual;for(var uf=0;uf<Sa;uf++)if(Re[lf][uf]){var _0=a.Eb(uf);lc[uf]=_0.actual}}}for(var rp=0;rp<z;rp++){var ms=At[rp];if(ms.visible||ms===Mh){var jc=a.Fb(ms.row),Ec=a.Eb(ms.column);switch(vl.h(Math.max(Ec.minimum,Math.min(y,Ec.maximum)),Math.max(jc.minimum,Math.min(x,jc.maximum))),Gl=Yc(ms,jc,Ec,!1),Gl){case ni:lc[Ec.index]!==0&&(vl.width=Math.min(vl.width,lc[Ec.index])),ed[jc.index]!==0&&(vl.height=Math.min(vl.height,ed[jc.index]));break;case Yi:lc[Ec.index]!==0&&(vl.width=Math.min(vl.width,lc[Ec.index]));break;case dr:ed[jc.index]!==0&&(vl.height=Math.min(vl.height,ed[jc.index]))}isFinite(Ec.width)&&(vl.width=Ec.width),isFinite(jc.height)&&(vl.height=jc.height),eh.h(0,0);for(var J0=Ec.minimum,Ou=jc.minimum,Bh=1;Bh<ms.rowSpan&&!(ms.row+Bh>=a.rowCount);Bh++)Vn=a.Fb(ms.row+Bh),el=0,el=Gl===ni||Gl===dr?Math.max(Vn.minimum,ed[ms.row+Bh]===0?Vn.maximum:Math.min(ed[ms.row+Bh],Vn.maximum)):Math.max(Vn.minimum,isNaN(Vn.Hc)?Vn.maximum:Math.min(Vn.Hc,Vn.maximum)),eh.height+=el,Ou+=Vn.minimum;for(var bc=1;bc<ms.columnSpan&&!(ms.column+bc>=a.columnCount);bc++)Vn=a.Eb(ms.column+bc),el=0,el=Gl===ni||Gl===Yi?Math.max(Vn.minimum,lc[ms.column+bc]===0?Vn.maximum:Math.min(lc[ms.column+bc],Vn.maximum)):Math.max(Vn.minimum,isNaN(Vn.Hc)?Vn.maximum:Math.min(Vn.Hc,Vn.maximum)),eh.width+=el,J0+=Vn.minimum;vl.width+=eh.width,vl.height+=eh.height;var op=ms.margin,cf=op.right+op.left,sm=op.top+op.bottom;ms.measure(vl.width,vl.height,J0,Ou);for(var ap=ms.measuredBounds,pd=Math.max(ap.width+cf,0),jf=Math.max(ap.height+sm,0),df=0,sp=0;sp<ms.rowSpan&&!(ms.row+sp>=a.rowCount);sp++)Vn=a.Fb(ms.row+sp),df+=Vn.total||0;if(df<jf){var Nh=jf-df,kd=jf-df;if(ms.spanAllocation!==null)for(var kh=ms.spanAllocation,th=0;th<ms.rowSpan&&!(0>=Nh)&&!(ms.row+th>=a.rowCount);th++){Vn=a.Fb(ms.row+th);var Th=Vn.oa||0,Hf=kh(ms,Vn,kd);Vn.actual=Math.min(Vn.maximum,Th+Hf),Vn.oa!==Th&&(Nh-=Vn.oa-Th)}for(;0<Nh;){var td=Vn.oa||0;if(isNaN(Vn.height)&&Vn.maximum>td&&(Vn.actual=Math.min(Vn.maximum,td+Nh),Vn.oa!==td&&(Nh-=Vn.oa-td)),Vn.index===0)break;Vn=a.Fb(Vn.index-1)}}for(var mg=0,Oh=0;Oh<ms.columnSpan&&!(ms.column+Oh>=a.columnCount);Oh++)Vn=a.Eb(ms.column+Oh),mg+=Vn.total||0;if(mg<pd){var vg=pd-mg,Ky=pd-mg;if(ms.spanAllocation!==null)for(var nh=ms.spanAllocation,Wf=0;Wf<ms.columnSpan&&!(0>=vg)&&!(ms.column+Wf>=a.columnCount);Wf++){Vn=a.Eb(ms.column+Wf);var lm=Vn.oa||0,Vy=nh(ms,Vn,Ky);Vn.actual=Math.min(Vn.maximum,lm+Vy),Vn.oa!==lm&&(vg-=Vn.oa-lm)}for(;0<vg;){var Q0=Vn.oa||0;if(isNaN(Vn.width)&&Vn.maximum>Q0&&(Vn.actual=Math.min(Vn.maximum,Q0+vg),Vn.oa!==Q0&&(vg-=Vn.oa-Q0)),Vn.index===0)break;Vn=a.Eb(Vn.index-1)}}}}kn(At),oi.free(eh),oi.free(vl),ed!==void 0&&kn(ed),lc!==void 0&&kn(lc);var yg=0,Sg=0,$0=a.desiredSize,vx=a.maxSize;Gl=du(a,!0);var um=Qd=Bd=0,cm=0;z=a.columnCount;for(var q0=0;q0<z;q0++)hi[q0]!==void 0&&(Vn=a.Eb(q0),isFinite(Vn.width)?(um+=Vn.width,um+=Vn.Wc()):km(Vn)===Pp?(um+=Vn.oa,um+=Vn.Wc()):Vn.oa!==0&&(Bd+=Vn.oa,Bd+=Vn.Wc()));isFinite($0.width)?yg=Math.min($0.width,vx.width):yg=Gl!==Xn&&isFinite(y)?y:Bd,yg=Math.max(yg,a.minSize.width),yg=Math.max(yg-um,0);for(var rP=Bd===0?1:Math.max(yg/Bd,1),ev=0;ev<z;ev++)hi[ev]!==void 0&&(Vn=a.Eb(ev),isFinite(Vn.width)||km(Vn)===Pp||(Vn.actual=Vn.oa*rP),Vn.position=b.width,Vn.oa!==0&&(b.width+=Vn.oa,b.width+=Vn.Wc()));z=a.rowCount;for(var tv=0;tv<z;tv++)Ni[tv]!==void 0&&(Vn=a.Fb(tv),isFinite(Vn.height)?(cm+=Vn.height,cm+=Vn.Wc()):km(Vn)===Pp?(cm+=Vn.oa,cm+=Vn.Wc()):Vn.oa!==0&&(Qd+=Vn.oa,Qd+=Vn.Wc()));isFinite($0.height)?Sg=Math.min($0.height,vx.height):Sg=Gl!==Xn&&isFinite(x)?x:Qd,Sg=Math.max(Sg,a.minSize.height),Sg=Math.max(Sg-cm,0);for(var oP=Qd===0?1:Math.max(Sg/Qd,1),nv=0;nv<z;nv++)Ni[nv]!==void 0&&(Vn=a.Fb(nv),isFinite(Vn.height)||km(Vn)===Pp||(Vn.actual=Vn.oa*oP),Vn.position=b.height,Vn.oa!==0&&(b.height+=Vn.oa,b.height+=Vn.Wc()));z=re.length;for(var Yy=0;Yy<z;Yy++){var dm=re[Yy],Uy=0,Xy=0;dm.type===ai.TableRow?(Uy=b.width,Vn=a.Fb(dm.row),Xy=Vn.actual):(Vn=a.Eb(dm.column),Uy=Vn.actual,Xy=b.height),dm.measuredBounds.h(0,0,Uy,Xy),Hs(dm,!1)}kn(re),a.inRowsCols=Re},Cm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var ne=a.inRowsCols;if(ne!==null){for(var re,oe,le=ne.length,ce=0,me=0;me<le;me++)ne[me]&&(ce=Math.max(ce,ne[me].length));oe=a.rowDefs,re=a.colDefs;var Ce=me=0,Me=Math.min(a.topIndex,le-1);if(0<oe.length){for(;Me!==le&&(oe[Me]===void 0||oe[Me].oa===0);)Me++;Me=Math.max(Math.min(Me,le-1),0),me=-oe[Me].position}var Be=Math.min(a.leftIndex,ce-1);if(0<re.length){for(;Be!==ce&&(re[Be]===void 0||re[Be].oa===0);)Be++;Be=Math.max(Math.min(Be,ce-1),0),Ce=-re[Be].position}for(var Re=0,dt=0;Re!==le&&oe[Re]===void 0;)Re++;for(;dt!==le&&re[dt]===void 0;)dt++;ce=a.part,a.Fb(Re),a.Eb(dt);for(var et=0;et<y.length;et++){var Pt=y[et];if(Pt instanceof ai&&Pt.visible&&vh(Pt)){if(Pt.type===ai.TableRow){re=a.Fb(Pt.row);var At=a.Eb(dt)}else re=a.Fb(Re),At=a.Eb(Pt.column);oe=re.position+me+b,re.oa!==0&&(oe+=re.Io(Math.max(Re,Me))),re=At.position+Ce+z,At.oa!==0&&(re+=At.Io(Math.max(dt,Be))),At=Pt.measuredBounds,Pt.Uk(),Pt.actualBounds.ka();var Dt=Pt.actualBounds,Rt=Cn.allocAt(Dt.x,Dt.y,Dt.width,Dt.height);Dt.x=Pt.type===ai.TableRow?z:re,Dt.y=Pt.type===ai.TableColumn?b:oe,Dt.width=At.width,Dt.height=At.height,Pt.actualBounds.freeze(),xd(Pt,!1),Lo(Rt,Dt)||ce===null||(ce.oh(),Pt.Pn(ce)),Cn.free(Rt)}}for(et=oi.alloc(),Pt=0;Pt<le;Pt++)if(ne[Pt]){for(ce=ne[Pt].length,At=a.Fb(Pt),oe=At.position+me+b,At.oa!==0&&(oe+=At.Io(Math.max(Re,Me))),Dt=0;Dt<ce;Dt++)if(ne[Pt][Dt]){Rt=a.Eb(Dt),re=Rt.position+Ce+z,Rt.oa!==0&&(re+=Rt.Io(Math.max(dt,Be)));for(var dn=ne[Pt][Dt],bi=dn.length,Ii=0;Ii<bi;Ii++){var Ni=dn[Ii],hi=Ni.measuredBounds;et.h(0,0);for(var Vn=1;Vn<Ni.rowSpan&&!(Pt+Vn>=a.rowCount);Vn++){var Or=a.Fb(Pt+Vn);Or.oa!==0&&(et.height+=Or.total)}for(Vn=1;Vn<Ni.columnSpan&&!(Dt+Vn>=a.columnCount);Vn++)Or=a.Eb(Dt+Vn),Or.oa!==0&&(et.width+=Or.total);var Cr=Rt.oa+et.width,Vo=At.oa+et.height;Vn=re,Or=oe;var Sa=Cr,qs=Vo,sl=re,Wl=oe,el=Cr,Mh=Vo;re+Cr>x.width&&(el=Math.max(x.width-re,0)),oe+Vo>x.height&&(Mh=Math.max(x.height-oe,0));var Ds=Ni.alignment;if(Ds.Xb()){Ds=a.defaultAlignment,Ds.sb()||(Ds=xo);var Qc=Ds.x,Zl=Ds.y,Lh=Ds.offsetX;Ds=Ds.offsetY;var Ku=Rt.alignment,Cc=At.alignment;Ku.sb()&&(Qc=Ku.x,Lh=Ku.offsetX),Cc.sb()&&(Zl=Cc.y,Ds=Cc.offsetY)}else Qc=Ds.x,Zl=Ds.y,Lh=Ds.offsetX,Ds=Ds.offsetY;(isNaN(Qc)||isNaN(Zl))&&(Zl=Qc=.5,Ds=Lh=0),Ku=hi.width,Cc=hi.height;var Nu=Ni.margin,wu=Nu.left+Nu.right,rf=Nu.top+Nu.bottom,$c=Yc(Ni,At,Rt,!1);!isNaN(Ni.desiredSize.width)||$c!==ni&&$c!==Yi||(Ku=Math.max(Cr-wu,0)),!isNaN(Ni.desiredSize.height)||$c!==ni&&$c!==dr||(Cc=Math.max(Vo-rf,0)),Cr=Ni.maxSize,Vo=Ni.minSize,Ku=Math.min(Cr.width,Ku),Cc=Math.min(Cr.height,Cc),Ku=Math.max(Vo.width,Ku),Cc=Math.max(Vo.height,Cc),Cr=Cc+rf,Vn+=Sa*Qc-(Ku+wu)*Qc+Lh+Nu.left,Or+=qs*Zl-Cr*Zl+Ds+Nu.top,Ni.visible&&(aa(sl,Wl,el,Mh,Vn,Or,hi.width,hi.height)?Ni.arrange(Vn,Or,Ku,Cc):Ni.arrange(Vn,Or,Ku,Cc,new Cn(sl,Wl,el,Mh)))}}}for(oi.free(et),a=0;a<E;a++)x=y[a],z=x instanceof ai?x:null,z!==null&&vh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Em(){this.xa="Base"}Ut(Em,Ys),Em.prototype.measure=function(){},Em.prototype.arrange=function(){};function bm(){this.xa="Base"}Ut(bm,Ys),bm.prototype.measure=function(){},bm.prototype.arrange=function(){};function Am(){this.xa="Base"}Ut(Am,Ys),Am.prototype.measure=function(a,y,x,E,b,z,ne){1<E.length&&at("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,ne);var re=E.measuredBounds,oe=E.margin,le=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var ce=E.scale,me=re.width;re=re.height;var Ce=Math.max(y-le,0),Me=Math.max(x-oe,0),Be=1;a.viewboxStretch===Gi?me!==0&&re!==0&&(Be=Math.min(Ce/me,Me/re)):me!==0&&re!==0&&(Be=Math.max(Ce/me,Me/re)),Be===0&&(Be=1e-4),E.Ca*=Be,ce!==E.scale&&(Hs(E,!0),E.measure(1/0,1/0,z,ne))}re=E.measuredBounds,b.width=isFinite(y)?y:Math.max(re.width+le,0),b.height=isFinite(x)?x:Math.max(re.height+oe,0)},Am.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var ne=y.alignment;ne.Xb()&&(ne=a.defaultAlignment),ne.sb()||(ne=xo),y.arrange(x.width*ne.x-z*ne.x+ne.offsetX,x.height*ne.y-b*ne.y+ne.offsetY,E.width,E.height)};function yp(){this.xa="Base"}Ut(yp,Ys),yp.prototype.measure=function(){},yp.prototype.arrange=function(){},yp.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,ne=a.actualBounds,re=z.width,oe=z.height,le=Math.ceil(re/b),ce=Math.ceil(oe/E),me=a.gridOrigin,Ce=me.x;me=me.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var Me=[],Be=a.O.s,Re=Be.length,dt=0;dt<Re;dt++){var et=Be[dt],Pt=[];if(Me.push(Pt),et.visible){var At=et.interval;if(!(0>At)){et=vv(et.figure);for(var Dt=0;Dt<Re;Dt++)if(Dt!==dt){var Rt=Be[Dt];Rt.visible&&vv(Rt.figure)===et&&(Rt=Rt.interval,Rt>At&&Pt.push(Rt))}}}}for(Be=a.O.s,Re=Be.length,dt=0;dt<Re;dt++){var dn=Be[dt];if(dn.visible&&(Pt=dn.interval||1,et=Math.abs(Pt),!(2>b*et*x))){if(At=dn.segmentIndex,(!isFinite(At)||isNaN(At))&&(At=0),0>At&&(At=et-Math.min(-At,et)),At=Math.round(At%et),et=dn.opacity,Dt=1,et!==1){if(et===0)continue;Dt=y.globalAlpha,y.globalAlpha=Dt*et}Rt=Me[dt];var bi=!1,Ii=dn.strokeDashArray;if(Ii!==null&&(bi=!0,y.js(Ii,dn.strokeDashOffset)),dn.figure==="LineV"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,us(a,y,dn.stroke,!1,!1,z,ne),y.beginPath(),Ii=dn=Math.floor((Ce-b)/b);Ii<=dn+le;Ii++){var Ni=Ii*b+Ce;0<=Ni&&Ni<=re&&Mm(Ii,Pt,At,Rt)&&(y.moveTo(Ni,0),y.lineTo(Ni,oe))}y.stroke(),y.Se()}else if(dn.figure==="LineH"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,us(a,y,dn.stroke,!1,!1,z,ne),y.beginPath(),Ii=dn=Math.floor((me-E)/E);Ii<=dn+ce;Ii++)Ni=Ii*E+me,0<=Ni&&Ni<=oe&&Mm(Ii,Pt,At,Rt)&&(y.moveTo(0,Ni),y.lineTo(re,Ni));y.stroke(),y.Se()}else if(dn.figure==="BarV"&&dn.fill!==null)for(us(a,y,dn.fill,!0,!1,z,ne),dn=dn.width,isNaN(dn)&&(dn=b),Ni=Ii=Math.floor((Ce-b)/b);Ni<=Ii+le;Ni++){var hi=Ni*b+Ce;0<=hi+dn&&hi<=re&&Mm(Ni,Pt,At,Rt)&&y.fillRect(hi,0,dn,oe)}else if(dn.figure==="BarH"&&dn.fill!==null)for(us(a,y,dn.fill,!0,!1,z,ne),dn=dn.height,isNaN(dn)&&(dn=E),Ni=Ii=Math.floor((me-E)/E);Ni<=Ii+ce;Ni++)hi=Ni*E+me,0<=hi+dn&&hi<=oe&&Mm(Ni,Pt,At,Rt)&&y.fillRect(0,hi,re,dn);bi&&y.fs(),et!==1&&(y.globalAlpha=Dt)}}y.restore(),y.Vc(!1)};function Mm(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function Lm(){this.xa="Base"}Ut(Lm,Ys),Lm.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof Go||a instanceof fi){var ne=null,re=null;if(a instanceof fi&&(ne=a),a instanceof Go&&(re=a,ne=re.adornedPart,a.j===null&&(a.j=[])),ne instanceof fi){var oe=ne;if(z===0)cs(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof Go?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ce=oe.points,me=ne.pointsCount;re!==null?re.Ul(!1):ne!==null&&ne.Ul(!1),re=y.width;var Ce=y.height,Me=a.j;if(Me.length=0,le!==null){a1(a,re,Ce,le);var Be=le.measuredBounds;x.ed(Be),Me.push(Be)}Be=Wr.alloc();for(var Re=qe.alloc(),dt=qe.alloc(),et=0;et<z;et++){var Pt=E[et];if(Pt!==le)if(Pt.isPanelMain&&Pt instanceof Vr){a1(a,re,Ce,Pt);var At=Pt.measuredBounds;x.ed(At),Me.push(At)}else if(2>me)Pt.measure(1/0,1/0,0,0),At=Pt.measuredBounds,x.ed(At),Me.push(At);else{var Dt=Pt.segmentIndex,Rt=Pt.segmentFraction,dn=Pt.alignmentFocus;dn.Mc()&&(dn=xo);var bi=Pt.segmentOrientation,Ii=Pt.segmentOffset;if(isNaN(Dt)){var Ni=oe.ua;At=En(),Ni.Qu(Rt,At);var hi=qe.allocAt(At[0],At[1]);if(hi.add(oe.i(0)),Ni.type===vi.j?hi.offset(-Ni.startX,-Ni.startY):(Ni=Ni.figures.first(),Ni!==null&&hi.offset(-Ni.startX,-Ni.startY)),Ni=At[2],bi!==ql){var Vn=oe.computeAngle(Pt,bi,Ni);Pt.Kb=Vn}Vn=hi.x-y.x;var Or=hi.y-y.y;qe.free(hi),kn(At)}else if(Dt<-me||Dt>=me)At=qe.alloc(),oe.vg(),oe.computeMidPoint(At),Ni=oe.midAngle,bi!==ql&&(Vn=oe.computeAngle(Pt,bi,Ni),Pt.Kb=Vn),Vn=At.x-y.x,Or=At.y-y.y,qe.free(At);else{if(Vn=0,0<=Dt?(Or=ce.M(Dt),At=Dt<me-1?ce.M(Dt+1):Or):(Vn=me+Dt,Or=ce.M(Vn),At=0<Vn?ce.M(Vn-1):Or),Or.Xa(At)){0<=Dt?(Ni=0<Dt?ce.M(Dt-1):Or,Vn=Dt<me-2?ce.M(Dt+2):At):(Ni=Vn<me-1?ce.M(Vn+1):Or,Vn=1<Vn?ce.M(Vn-2):At),hi=Ni.Bf(Or);var Cr=At.Bf(Vn);Ni=hi>Cr+10?0<=Dt?Ni.ab(Or):Or.ab(Ni):Cr>hi+10?0<=Dt?At.ab(Vn):Vn.ab(At):0<=Dt?Ni.ab(Vn):Vn.ab(Ni)}else Ni=0<=Dt?Or.ab(At):At.ab(Or);bi!==ql&&(Vn=oe.computeAngle(Pt,bi,Ni),Pt.Kb=Vn),Vn=Or.x+(At.x-Or.x)*Rt-y.x,Or=Or.y+(At.y-Or.y)*Rt-y.y}Pt.measure(1/0,1/0,0,0),At=Pt.measuredBounds,hi=Pt.naturalBounds;var Vo=0;Pt instanceof Vr&&(Vo=Pt.strokeWidth),Cr=hi.width+Vo;var Sa=hi.height+Vo;Be.reset(),Be.translate(-At.x,-At.y),Be.scale(Pt.scale,Pt.scale),Be.rotate(bi===ql?Pt.angle:Ni,Cr/2,Sa/2),bi!==Bp&&bi!==kp||Be.rotate(90,Cr/2,Sa/2),bi!==Np&&bi!==Tp||Be.rotate(-90,Cr/2,Sa/2),bi===r0&&(45<Ni&&135>Ni||225<Ni&&315>Ni)&&Be.rotate(-Ni,Cr/2,Sa/2),hi=new Cn(0,0,Cr,Sa),Re.xi(hi,dn),Be.Ga(Re),dn=-Re.x+Vo/2*Pt.scale,Pt=-Re.y+Vo/2*Pt.scale,dt.assign(Ii),Vo=isNaN(Ii.x);var qs=isNaN(Ii.y);if(Vo||qs){Cr=Cr/2+3,Sa=Sa/2+3;var sl=45<=Ni&&135>=Ni,Wl=225<=Ni&&315>=Ni;bi===ql&&(sl||Wl)?(dt.x=qs?Cr:Ii.y,dt.y=Vo?Sa:Ii.x,sl?0<=Dt||isNaN(Dt)&&.5>Rt||!Vo||(dt.y=-Sa):Wl&&((0<=Dt||isNaN(Dt)&&.5>Rt)&&Vo&&(dt.y=-Sa),qs&&(dt.x=-Cr))):(Vo&&(dt.x=0<=Dt||isNaN(Dt)&&.5>Rt?Cr:-Cr),qs&&(dt.y=-Sa),dt.rotate(Ni))}else dt.rotate(Ni);Vn+=dt.x,Or+=dt.y,hi.set(At),hi.h(Vn+dn,Or+Pt,At.width,At.height),Me.push(hi),x.ed(hi)}}if(ne!==null)for(E=ne.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),cs(b,x.width||0,x.height||0),Wr.free(Be),qe.free(Re),qe.free(dt)}}}},Lm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Go||a instanceof fi){var E=a,b=null;a instanceof Go&&(b=a,E=b.adornedPart);var z=a instanceof Go?null:E.path,ne=a.j;if(ne.length!==0){var re=0;if(z!==null&&re<ne.length){var oe=ne[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var le=y[oe];if(le!==z&&re<ne.length){var ce=ne[re];re++,le.arrange(ce.x-a.jg.x,ce.y-a.jg.y,ce.width,ce.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof fi)for(z=a.labelNodes;z.next();){var me=a;ne=z.value,re=ne.segmentIndex,oe=ne.segmentFraction;var Ce=ne.alignmentFocus;if(le=ne.segmentOrientation,ce=ne.segmentOffset,isNaN(re)){var Me=me.ua,Be=En();Me.Qu(oe,Be);var Re=qe.allocAt(Be[0],Be[1]);Re.add(me.i(0)),Me.type===vi.j||(Me=Me.figures.first()),Re.offset(-Me.startX,-Me.startY),Me=Be[2],le!==ql&&(me=me.computeAngle(ne,le,Me),ne.angle=me),me=Re.x;var dt=Re.y;qe.free(Re),kn(Be)}else if(re<-x||re>=x)Be=qe.alloc(),Me=me,dt=Be,Me.vg(),Me.computeMidPoint(dt),Me=me.midAngle,le!==ql&&(me=me.computeAngle(ne,le,Me),ne.angle=me),me=Be.x,dt=Be.y,qe.free(Be);else{if(Re=0,0<=re?(Be=y.s[re],dt=re<x-1?y.s[re+1]:Be):(Re=x+re,Be=y.s[Re],dt=0<Re?y.s[Re-1]:Be),Be.Xa(dt)){0<=re?(Me=0<re?y.s[re-1]:Be,Re=re<x-2?y.s[re+2]:dt):(Me=Re<x-1?y.s[Re+1]:Be,Re=1<Re?y.s[Re-2]:dt);var et=Me.Bf(Be),Pt=dt.Bf(Re);Me=et>Pt+10?0<=re?Me.ab(Be):Be.ab(Me):Pt>et+10?0<=re?dt.ab(Re):Re.ab(dt):0<=re?Me.ab(Re):Re.ab(Me)}else Me=0<=re?Be.ab(dt):dt.ab(Be);le!==ql&&(me=me.computeAngle(ne,le,Me),ne.angle=me),me=Be.x+(dt.x-Be.x)*oe,dt=Be.y+(dt.y-Be.y)*oe}if(Ce.ys())ne.location=new qe(me,dt);else{Ce.Mc()&&(Ce=xo),Be=Wr.alloc(),Be.reset(),Be.scale(ne.scale,ne.scale),Be.rotate(ne.angle,0,0);var At=ne.naturalBounds;Re=Cn.allocAt(0,0,At.width,At.height),et=qe.alloc(),et.xi(Re,Ce),Be.Ga(et),Ce=-et.x,Pt=-et.y;var Dt=At.width,Rt=At.height;At=qe.alloc(),At.assign(ce);var dn=isNaN(ce.x),bi=isNaN(ce.y);if(dn||bi){Dt=Dt/2+3,Rt=Rt/2+3;var Ii=45<=Me&&135>=Me,Ni=225<=Me&&315>=Me;le===ql&&(Ii||Ni)?(At.x=bi?Dt:ce.y,At.y=dn?Rt:ce.x,Ii?0<=re||isNaN(re)&&.5>oe||!dn||(At.y=-Rt):Ni&&((0<=re||isNaN(re)&&.5>oe)&&dn&&(At.y=-Rt),bi&&(At.x=-Dt))):(dn&&(At.x=0<=re||isNaN(re)&&.5>oe?Dt:-Dt),bi&&(At.y=-Rt),At.rotate(Me))}else At.rotate(Me);me+=At.x,dt+=At.y,Be.pp(Re),Ce+=Re.x,Pt+=Re.y,re=qe.allocAt(me+Ce,dt+Pt),ne.move(re),qe.free(re),qe.free(At),qe.free(et),Cn.free(Re),Wr.free(Be)}}b!==null?b.Ul(!1):E.Ul(!1),E=O1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),qe.free(E)}};function a1(a,y,x,E){if(Hu(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Go&&a.type===ai.Link&&a.adornedObject instanceof Vr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof fi&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof Go&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Hs(E,!1)}}function Sp(){this.xa="Base"}Ut(Sp,Ys),Sp.prototype.measure=function(a,y,x,E,b,z,ne){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,le=oe.right+oe.left,ce=oe.top+oe.bottom;re.measure(y,x,z,ne);var me=re.measuredBounds,Ce=new Cn(-oe.left,-oe.top,Math.max(me.width+le,0),Math.max(me.height+ce,0));a.graduatedBounds.push(Ce),b.assign(Ce);for(var Me=re.geometry,Be=re.strokeWidth,Re=Me.flattenedSegments,dt=Me.flattenedLengths,et=Me.flattenedTotalLength,Pt=Re.length,At=0,Dt=0,Rt=En(),dn=0;dn<Pt;dn++){var bi=Re[dn],Ii=[];Dt=At=0;for(var Ni=bi.length,hi=0;hi<Ni;hi+=2){var Vn=bi[hi],Or=bi[hi+1];if(hi!==0){var Cr=180*Math.atan2(Or-Dt,Vn-At)/Math.PI;0>Cr&&(Cr+=360),Ii.push(Cr)}At=Vn,Dt=Or}Rt.push(Ii)}if(a.graduatedIntervals===null){for(var Vo=[],Sa=a.O.s,qs=Sa.length,sl=0;sl<qs;sl++){var Wl=Sa[sl],el=[];if(Vo.push(el),Wl.visible){var Mh=Wl.interval;if(!(0>Mh)){for(var Ds=0;Ds<qs;Ds++)if(Ds!==sl){var Qc=Sa[Ds];if(Qc.visible&&Wl.constructor===Qc.constructor){var Zl=Qc.interval;Zl>Mh&&el.push(Zl)}}}}}a.graduatedIntervals=Vo}var Lh=a.graduatedIntervals,Ku=a.O.s,Cc=Ku.length,Nu=0,wu=0,rf=et;a.graduatedMarks=[];for(var $c,$g=0;$g<Cc;$g++){var ku=Ku[$g];if($c=[],ku.visible&&ku!==re){var Gl=Math.abs(ku.interval),rm=a.graduatedTickUnit;if(!(2>rm*Gl*et/a.graduatedRange&&ku.graduatedSkip===null)){var hg=dt[0][0],hd=0,Cu=0;wu=et*ku.graduatedStart-1e-4,rf=et*ku.graduatedEnd+1e-4;var Of=rm*Gl,Tu=a.graduatedTickBase;if(Tu<a.graduatedMin){var of=(a.graduatedMin-Tu)/Of;of=of%1===0?of:Math.floor(of+1),Tu+=of*Of}else Tu>a.graduatedMin+Of&&(Tu-=Math.floor((Tu-a.graduatedMin)/Of)*Of);for(var Y0=Lh[$g],om=Tu,Zy=1e-6*a.graduatedMax,Bd=1;Tu<=a.graduatedMax+Zy;Bd++){e:{for(var Qd=Y0.length,fg=0;fg<Qd;fg++){var af=(Tu-a.graduatedTickBase)%(Y0[fg]*a.graduatedTickUnit),qg=1e-6*a.graduatedTickUnit;if(af<qg&&af>-qg){var sf=!1;break e}}sf=!0}if(sf&&(Tu>a.graduatedMax&&(Tu=a.graduatedMax),ku.graduatedSkip===null||ku instanceof Ca&&!ku.graduatedSkip(Tu,ku)||ku instanceof Vr&&!ku.graduatedSkip(Tu,ku))&&(Nu=(Tu-a.graduatedMin)*et/a.graduatedRange,Nu>et&&(Nu=et),wu<=Nu&&Nu<=rf)){for(var Nd=Rt[hd][Cu],Fh=dt[hd][Cu];hd<dt.length;){for(;Nu>hg&&Cu<dt[hd].length-1;)Cu++,Nd=Rt[hd][Cu],Fh=dt[hd][Cu],hg+=Fh;if(Nu<=hg)break;hd++,Cu=0,Nd=Rt[hd][Cu],Fh=dt[hd][Cu],hg+=Fh}var Eu=Re[hd],fd=Eu[2*Cu],U0=Eu[2*Cu+1],$d=(Nu-(hg-Fh))/Fh,ep=new qe(fd+(Eu[2*Cu+2]-fd)*$d+Be/2-Me.bounds.x,U0+(Eu[2*Cu+3]-U0)*$d+Be/2-Me.bounds.y);ep.scale(re.scale,re.scale);e:{var qc=Nd,If=Rt[hd];if(!(.5005>$d&&.4995<$d)){var gd=qc;if(.5>$d?0<Cu?gd=If[Cu-1]:Kt.$(Eu[0],Eu[Eu.length-2])&&Kt.$(Eu[1],Eu[Eu.length-1])&&(gd=If[If.length-1]):.5<$d&&(Cu+1<If.length?gd=If[Cu+1]:Kt.$(Eu[0],Eu[Eu.length-2])&&Kt.$(Eu[1],Eu[Eu.length-1])&&(gd=If[0])),qc!==gd){var gg=Math.abs(qc-gd);if(180<gg&&(qc<gd?qc+=360:gd+=360,gg=Math.abs(qc-gd)),5e-4>$d||.9995<$d){Nd=(qc+gd)/2%360;break e}if(10>gg){var tp=1-Math.abs(.5-$d);Nd=(qc*tp+gd*(1-tp))%360;break e}}}Nd=qc}if(ku instanceof Ca){var zc="";ku.graduatedFunction!==null?(zc=ku.graduatedFunction(Tu,ku),zc=zc!=null?zc.toString():""):zc=(+Tu.toFixed(2)).toString(),zc!==""&&$c.push({$l:ep,angle:Nd,text:zc})}else $c.push({$l:ep,angle:Nd})}Tu=om+Bd*Of}}}a.graduatedMarks.push($c)}kn(Rt);var vl=a.graduatedMarks;if(vl!==null)for(var am=E.length,ru=0;ru<am;ru++){var Bs=E[ru],ou=vl[ru];if(Bs.visible&&Bs!==re&&ou.length!==0){if(Bs instanceof Vr){var qd=a,Dh=b,Rf=Bs.alignmentFocus;Rf.Mc()&&(Rf=Rl);var Gy=Bs.angle;Bs.Kb=0,Bs.measure(1/0,1/0,0,0),Bs.Kb=Gy;var X0=Bs.measuredBounds,np=X0.width,zf=X0.height,pg=Cn.allocAt(0,0,np,zf),bu=qe.alloc();bu.xi(pg,Rf),Cn.free(pg);for(var eh=-bu.x,ed=-bu.y,lc=new Cn,lf=ou.length,ip=0;ip<lf;ip++)for(var uf=ou[ip],_0=uf.$l.x,rp=uf.$l.y,ms=uf.angle,jc=0;4>jc;jc++){switch(jc){case 0:bu.h(eh,ed);break;case 1:bu.h(eh+np,ed);break;case 2:bu.h(eh,ed+zf);break;case 3:bu.h(eh+np,ed+zf)}bu.rotate(ms+Bs.angle),bu.offset(_0,rp),ip===0&&jc===0?lc.h(bu.x,bu.y,0,0):lc.Ye(bu),bu.offset(-_0,-rp),bu.rotate(-ms-Bs.angle)}qe.free(bu),qd.graduatedBounds!==null&&qd.graduatedBounds.push(lc),vo(Dh,lc.x,lc.y,lc.width,lc.height)}else if(Bs instanceof Ca){var Ec=a,J0=b;Ec.temporaryTextBlock===null&&(Ec.temporaryTextBlock=new Ca);var Ou=Ec.temporaryTextBlock;P1(Ou,Bs);var Bh=Bs.alignmentFocus;Bh.Mc()&&(Bh=Rl);for(var bc=Bs.segmentOrientation,op=Bs.segmentOffset,cf=new Cn,sm=0,ap=0,pd=0,jf=0,df=0,sp=ou.length,Nh=0;Nh<sp;Nh++){var kd=ou[Nh];sm=kd.$l.x,ap=kd.$l.y,pd=kd.angle,df=jf=Bs.angle,bc!==ql&&(df=bc===Dp||bc===i0?pd+Bs.angle:pd,jf=fi.computeAngle(bc,df)),Ou.Kb=jf,Ou.text=kd.text||"",Ou.measure(1/0,1/0,0,0);var kh=Ou.measuredBounds,th=Ou.naturalBounds,Th=th.width,Hf=th.height,td=Wr.alloc();td.reset(),td.translate(-kh.x,-kh.y),td.scale(Ou.scale,Ou.scale),td.rotate(df,Th/2,Hf/2),bc!==Bp&&bc!==kp||td.rotate(90,Th/2,Hf/2),bc!==Np&&bc!==Tp||td.rotate(-90,Th/2,Hf/2),bc===r0&&(45<pd&&135>pd||225<pd&&315>pd)&&td.rotate(-pd,Th/2,Hf/2);var mg=Cn.allocAt(0,0,Th,Hf),Oh=qe.alloc();Oh.xi(mg,Bh),td.Ga(Oh);var vg=-Oh.x,Ky=-Oh.y,nh=qe.alloc();nh.assign(op),isNaN(nh.x)&&(nh.x=Th/2+3),isNaN(nh.y)&&(nh.y=-(Hf/2+3)),nh.rotate(pd),sm+=nh.x+vg,ap+=nh.y+Ky;var Wf=new Cn(sm,ap,kh.width,kh.height),lm=new Cn(kh.x,kh.y,kh.width,kh.height),Vy=new Cn(th.x,th.y,th.width,th.height);kd.Sz=jf,kd.lineCount=Ou.lineCount,kd.lines=[Ou.Cb,Ou.Ih,Ou.df,Ou.Le,Ou.Qc,Ou.Qb,Ou.ze],kd.actualBounds=Wf,kd.measuredBounds=lm,kd.naturalBounds=Vy,Nh===0?cf.assign(Wf):cf.ed(Wf),qe.free(nh),qe.free(Oh),Cn.free(mg),Wr.free(td)}Ec.graduatedBounds!==null&&Ec.graduatedBounds.push(cf),vo(J0,cf.x,cf.y,cf.width,cf.height)}Hs(Bs,!1)}}},Sp.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ne=0,re=z[ne];ne++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,le=0;le<oe;le++){var ce=y[le];re=b[le],ce.visible&&ce!==E&&re.length!==0&&(re=z[ne],ne++,ce.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},Sp.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,ne=b.height;b=y instanceof Fu,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ne+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ne=a.Df()*x.scale,0>=ne&&(ne=1);for(var re=z.actualBounds,oe=a.O.s,le=a.graduatedMarks,ce=oe.length,me=0;me<ce;me++){var Ce=oe[me],Me=le[me],Be=Me.length;if(Ce.visible&&Ce!==z&&Me.length!==0){if(Ce instanceof Vr){if(!(2>a.graduatedTickUnit*Ce.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ce.graduatedSkip===null)){var Re=Ce.measuredBounds,dt=Ce.strokeWidth*Ce.scale,et=Ce.alignmentFocus;et.Mc()&&(et=Rl);for(var Pt=0;Pt<Be;Pt++){var At=Me[Pt].$l,Dt=Me[Pt].angle,Rt=et,dn=Ce.Ab;dn.reset(),dn.translate(At.x+re.x,At.y+re.y),dn.rotate(Dt+Ce.angle,0,0),dn.translate(-Re.width*Rt.x+Rt.offsetX+dt/2,-Re.height*Rt.y+Rt.offsetY+dt/2),dn.scale(Ce.scale,Ce.scale),yc(Ce,!1),Ce.wh.set(Ce.Ab),Ce.Kk=Ce.scale,tc(Ce,!1),Ce.gc(y,x),b&&(a.svg.appendChild(Ce.svg),Ce.svg=null),Ce.Ab.reset()}}}else if(Ce instanceof Ca)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ca),Re=a.temporaryTextBlock,P1(Re,Ce),dt=0;dt<Be;dt++)et=Me[dt],et.actualBounds&&et.measuredBounds&&et.naturalBounds&&(Re.ec=et.text||"",Re.Kb=et.Sz||0,Re.Gc=et.lineCount||0,Pt=et.lines,Pt!==void 0&&(Re.Cb=Pt[0],Re.Ih=Pt[1],Re.df=Pt[2],Re.Le=Pt[3],Re.Qc=Pt[4],Re.Qb=Pt[5],Re.ze=Pt[6]),et.naturalBounds&&(Re.dc=et.naturalBounds),et.actualBounds&&(Pt=et.actualBounds,Re.arrange(Pt.x,Pt.y,Pt.width,Pt.height)),Pt=et.actualBounds,Re.arrange(Pt.x,Pt.y,Pt.width,Pt.height),At=et.measuredBounds,et=et.naturalBounds,Dt=Re.Ab,Dt.reset(),Dt.translate(Pt.x+re.x,Pt.y+re.y),Dt.translate(-At.x,-At.y),Re.no(Dt,et.x,et.y,et.width,et.height),yc(Re,!1),Re.wh.set(Re.Ab),Re.Kk=Re.scale,tc(Re,!1),Re.Ng=Ce.part,Re.Me=Ce.panel,Re.gc(y,x),Re.Me=null,Re.Ng=null,b&&(a.svg.appendChild(Re.svg),Re.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function ai(a,y){if(jt.call(this),this.na=null,a===void 0)this.na=ai.Position;else if(typeof a=="string"){var x=Nc.I(a);x!==null&&(this.na=x)}else a instanceof Ys?this.na=a:a&&(this.na=ai.Position,y=a);this.na===null&&at("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ai.Grid?1048576:0),this.O=new An,this.yb=qo,this.Tm=Yo,this.Uf=jr,this.$g=null,this.$e="",this.jg=new Cn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Gi,this.jn=ia,this.kn=_i,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Ut(ai,jt),ai.prototype.cloneProtected=function(a){jt.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},ai.prototype.Af=function(a){jt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},ai.prototype.copy=function(){var a=jt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,ne=z.count;if(z.Gb(ne,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof Mi&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(ci,"elements",a,null,b,null,ne)}}return a}return null},De=ai.prototype,De.toString=function(){return"Panel("+this.type.name+")#"+yo(this)},De.Pn=function(a){jt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},De.hh=function(a,y){if(this.na===ai.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ai.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ai.Table)if(a.yc(),a instanceof Fu){var x=a.yd;a.yd=pm(a,"gojs-ts"),mv(this,a),a.nh.pop(),a.yd=x}else mv(this,a);(x=this.isClipping&&this.na===ai.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,ne=0;ne<z;ne++){var re=b[ne];x&&re===E&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function mv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&Fm(a,y,!0,x,!0),E!==null&&Fm(a,y,!1,E,!0),x!==null&&s1(a,y,!0,x),E!==null&&s1(a,y,!1,E),x!==null&&Fm(a,y,!0,x,!1),E!==null&&Fm(a,y,!1,E,!1)}function s1(a,y,x,E){for(var b=E.length,z=a.actualBounds,ne=a.naturalBounds,re=!0,oe=0;oe<b;oe++){var le=E[oe];if(le!==void 0&&le.actual!==0)if(re)re=!1;else{if(x){if(le.position>ne.height)continue}else if(le.position>ne.width)continue;var ce=le.separatorStrokeWidth;isNaN(ce)&&(ce=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var me=le.separatorStroke;if(me===null&&(me=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ce!==0&&me!==null){us(a,y,me,!1,!1,ne,z),me=!1;var Ce=le.separatorDashArray;Ce===null&&(Ce=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ce!==null&&(me=!0,y.js(Ce,0)),y.beginPath(),Ce=le.position+ce,x?Ce>ne.height&&(ce-=Ce-ne.height):Ce>ne.width&&(ce-=Ce-ne.width),le=le.position+ce/2,y.lineWidth=ce,ce=a.yb,x?(le+=ce.top,Ce=ne.width-ce.right,y.moveTo(ce.left,le),y.lineTo(Ce,le)):(le+=ce.left,Ce=ne.height-ce.bottom,y.moveTo(le,ce.top),y.lineTo(le,Ce)),y.stroke(),y.Se(),me&&y.fs()}}}}function Fm(a,y,x,E,b){for(var z=E.length,ne=a.actualBounds,re=a.naturalBounds,oe=l1(a,!0),le=l1(a,!1),ce=0;ce<z;ce++){var me=E[ce];if(me!==void 0&&me.background!==null&&me.coversSeparators!==b&&me.actual!==0){var Ce=x?ne.height:ne.width;if(!(me.position>Ce)){var Me=me.Wc(),Be=me.separatorStrokeWidth;isNaN(Be)&&(Be=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Re=me.separatorStroke;Re===null&&(Re=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Re===null||me.index===(x?oe:le))&&(Be=0),Me-=Be,Be=me.position+Be,Me+=me.actual,Be+Me>Ce&&(Me=Ce-Be),0>=Me||(Ce=a.yb,us(a,y,me.background,!0,!1,re,ne),x?y.fillRect(Ce.left,Be+Ce.top,ne.width-(Ce.left+Ce.right),Me):y.fillRect(Be+Ce.left,Ce.top,Me,ne.height-(Ce.top+Ce.bottom)))}}}}function l1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function vv(a){return a==="LineV"||a==="BarV"}De.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},De.kk=function(a,y,x){if(!jt.prototype.kk.call(this,a,y,x))return!1;if(this.type===ai.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,mv(this,a),a.yd=null;else if(this.na===ai.Grid||this.na===ai.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},De.nk=function(){return!0},De.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,ne=0;ne<y.length;ne++)if(y[ne].Ed()){var re=y[ne].actualBounds;b=ne===0?re.x:Math.min(re.x,b),z=ne===0?re.y:Math.min(re.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else jt.prototype.$o.call(this,a,y,x,E)},De.Sj=function(a,y,x,E,b){var z=this.se(),ne=this.transform,re=1/(ne.m11*ne.m22-ne.m12*ne.m21),oe=ne.m22*re,le=-ne.m12*re,ce=-ne.m21*re,me=ne.m11*re,Ce=re*(ne.m21*ne.dy-ne.m22*ne.dx),Me=re*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,Kt.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,E,b);if(this.background!==null)return z=a*oe+y*ce+Ce,re=a*le+y*me+Me,a=x*oe+E*ce+Ce,oe=x*le+E*me+Me,b.h(0,0),x=this.naturalBounds,z=Kt.Ff(0,0,x.width,x.height,z,re,a,oe,b),b.transform(ne),z;z||(oe=1,ce=le=0,me=1,Me=Ce=0),re=a*oe+y*ce+Ce,a=a*le+y*me+Me,oe=x*oe+E*ce+Ce,x=x*le+E*me+Me,b.h(oe,x),E=(oe-re)*(oe-re)+(x-a)*(x-a),le=!1,me=this.O.s,Me=me.length,ce=qe.alloc(),Ce=null,y=1/0;var Be=null,Re=this.isClipping&&this.na===ai.Spot;Re&&(Be=qe.alloc(),Ce=this.Pb(),(le=Ce.Sj(re,a,oe,x,Be))&&(y=(re-Be.x)*(re-Be.x)+(a-Be.y)*(a-Be.y)));for(var dt=0;dt<Me;dt++){var et=me[dt];et.visible&&et!==Ce&&et.Sj(re,a,oe,x,ce)&&(le=!0,et=(re-ce.x)*(re-ce.x)+(a-ce.y)*(a-ce.y),et<E&&(E=et,b.set(ce)))}return Re&&(y>E&&b.set(Be),qe.free(Be)),qe.free(ce),z&&b.transform(ne),le},De.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();jt.prototype.Gj.call(this)},De.v=function(a){if(!Hu(this)){jt.prototype.v.call(this,a),a=null,(this.na===ai.Auto||this.na===ai.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=du(b,!1);(b instanceof $l||b instanceof ai||b instanceof Ca||z!==Xn)&&b.v(!0)}}}},De.Uj=function(){if(!Hu(this)){Hs(this,!0),xd(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},De.Uk=function(){if(!(this.l&2048)){yc(this,!0),tc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},De.Wu=function(){tc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},De.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,ne=this.minSize;x===void 0&&(x=ne.width,E=ne.height),x=Math.max(x,ne.width),E=Math.max(E,ne.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(E,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,b,x,E),a=b.width+oe.left+oe.right,oe=b.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ne.width,a),oe=Math.max(ne.height,oe),a=Math.max(x,a),oe=Math.max(E,oe),cs(b,a,oe),cs(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},De.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 E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function Xd(a){return a.part!==null?a.part.locationObject:null}De.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=du(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ne=this.Kg,re=ne.left+ne.right;switch(ne=ne.top+ne.bottom,y===x&&z===E&&(a=Xn),a){case Xn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case ni:this.v(!0),this.measure(x+re,E+ne,0,0);break;case Yi:this.v(!0),this.measure(x+re,z+ne,0,0);break;case dr:this.v(!0),this.measure(y+re,E+ne,0,0)}}this.na.arrange(this,b,this.jg)}},De.gh=function(a){var y=this.naturalBounds,x=Xd(this);if(aa(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=qe.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Gr(b.set(a),z.transform),z.ca(b)))return qe.free(b),!0}return qe.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},De.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},De.qm=function(a,y){if(y(this,a),a instanceof ai){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Mf(a,y){u1(a,a,y)}function u1(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof ai&&u1(a,z,x)}}function Ex(a,y){c1(a,a,y)}function c1(a,y,x){if(x(y),y instanceof ai){y=y.O.s;for(var E=y.length,b=0;b<E;b++)c1(a,y[b],x)}}De.Nl=function(a){return d1(this,this,a)};function d1(a,y,x){if(x(y))return y;if(y instanceof ai){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=d1(a,y[b],x);if(z!==null)return z}}return null}De.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=xp(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof ai){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function h1(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof ai?x=Math.max(x,h1(b)):b instanceof Vr&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}De.se=function(){return!(this.type===ai.TableRow||this.type===ai.TableColumn)};function vh(a){return a.type===ai.TableRow||a.type===ai.TableColumn}De.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Jl(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),ne=z?a:Gr(qe.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,le=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),le=oe/2),aa(-(le*b),-(le*b),E.width+oe*b,E.height+oe*b,ne.x,ne.y)){if(!this.isAtomic){b=this.O.s;var ce=b.length;if(re=qe.alloc(),le=(oe=this.isClipping&&this.na===ai.Spot)?this.Pb():null,oe&&(le.se()?Gr(re.set(a),le.transform):re.set(a),!le.ca(re)))return qe.free(re),z||qe.free(ne),null;for(var me=Xd(this);ce--;){var Ce=b[ce];if((Ce.visible||Ce===me)&&(Ce.se()?Gr(re.set(a),Ce.transform):re.set(a),!oe||Ce!==le)){var Me=null;if(Ce instanceof ai?Me=Ce.ic(re,y,x):Ce.pickable===!0&&Ce.ca(re)&&(Me=Ce),Me!==null&&(y!==null&&(Me=y(Me)),Me!==null&&(x===null||x(Me))))return qe.free(re),z||qe.free(ne),Me}}qe.free(re)}return this.background===null&&this.areaBackground===null?(z||qe.free(ne),null):(a=aa(0,0,E.width,E.height,ne.x,ne.y)?this:null,z||qe.free(ne),a)}return z||qe.free(ne),null},De.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),ne=z?a:Gr(qe.allocAt(a.x,a.y),this.transform);if(b=aa(0,0,b.width,b.height,ne.x,ne.y),vh(this)||b){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,le=qe.alloc(),ce=Xd(this);oe--;){var me=re[oe];if(me.visible||me===ce){me.se()?Gr(le.set(a),me.transform):le.set(a);var Ce=me;me=me instanceof ai?me:null,(me!==null?me.ji(le,y,x,E):Ce.ca(le))&&Ce.pickable!==!1&&(y!==null&&(Ce=y(Ce)),Ce===null||x!==null&&!x(Ce)||E.add(Ce))}}qe.free(le)}return z||qe.free(ne),b&&(this.background!==null||this.areaBackground!==null)}return z||qe.free(ne),!1},De.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=z;if(z===void 0&&(ne=Wr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return yv(this,y,x,b),z===void 0&&Wr.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var re=Xd(this),oe=this.O.s,le=oe.length;le--;){var ce=oe[le];if(ce.visible||ce===re){var me=ce.actualBounds,Ce=this.naturalBounds;me.x>Ce.width||me.y>Ce.height||0>me.x+me.width||0>me.y+me.height||(me=ce,ce=ce instanceof ai?ce:null,Ce=Wr.alloc(),Ce.set(ne),(ce!==null?ce.Cf(a,y,x,E,b,Ce):$s(me,a,E,Ce))&&(y!==null&&(me=y(me)),me===null||x!==null&&!x(me)||b.add(me)),Wr.free(Ce))}}return z===void 0&&Wr.free(ne),E}return z===void 0&&Wr.free(ne),!1};function yv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var ne=b[z];if(ne.visible){var re=ne.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ne instanceof ai&&yv(ne,y,x,E),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||E.add(ne))}}}De.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var ne=this.naturalBounds,re=this.se(),oe=re?a:Gr(qe.allocAt(a.x,a.y),this.transform),le=re?y:Gr(qe.allocAt(y.x,y.y),this.transform),ce=oe.Bf(le),me=0<oe.x&&oe.x<ne.width&&0<oe.y&&oe.y<ne.height||_o(oe.x,oe.y,0,0,0,ne.height)<=ce||_o(oe.x,oe.y,0,ne.height,ne.width,ne.height)<=ce||_o(oe.x,oe.y,ne.width,ne.height,ne.width,0)<=ce||_o(oe.x,oe.y,ne.width,0,0,0)<=ce;if(ne=oe.zd(0,0)<=ce&&oe.zd(0,ne.height)<=ce&&oe.zd(ne.width,0)<=ce&&oe.zd(ne.width,ne.height)<=ce,re||(qe.free(oe),qe.free(le)),me){if(!this.isAtomic){oe=qe.alloc(),le=qe.alloc(),ce=Xd(this);for(var Ce=this.O.s,Me=Ce.length;Me--;){var Be=Ce[Me];if(Be.visible||Be===ce){var Re=Be.actualBounds,dt=this.naturalBounds;(!re||!(Re.x>dt.width||Re.y>dt.height||0>Re.x+Re.width||0>Re.y+Re.height))&&(Be.se()?(Re=Be.transform,Gr(oe.set(a),Re),Gr(le.set(y),Re)):(oe.set(a),le.set(y)),Re=Be,Be=Be instanceof ai?Be:null,(Be!==null?Be.og(oe,le,x,E,b,z):Re.tx(oe,le,b))&&(x!==null&&(Re=x(Re)),Re===null||E!==null&&!E(Re)||z.add(Re)))}}qe.free(oe),qe.free(le)}return b?me:ne}return!1};function Sv(a){var y=null;return a instanceof Vr&&(y=a.spot1,y===Yo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=As),y}function xv(a){var y=null;return a instanceof Vr&&(y=a.spot2,y===Yo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=pa),y}De.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},De.M=function(a){return this.O.M(a)},De.Gb=function(a,y){y instanceof Qi&&at("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&at("Cannot make a Panel contain itself: "+this.toString()),at("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&at("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!==ai.Grid||y instanceof Vr||at("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ai.Graduated||y instanceof Vr||y instanceof Ca||at("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new Kn),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,ne=this.O.s,re=ne.length,oe=0;oe<re;oe++)if(ne[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else at("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Hu(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ai&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Bm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Mi&&(x.Te=!0),x.Te&&x instanceof Mi&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(Ei,"elements",this,y,null,E,null),x.cb(ci,"elements",this,null,y,null,a)))};function Pv(a,y){a.l=y?a.l|16777216:a.l&-16777217}De.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},De.mb=function(a){0<=a&&this.pc(a,!0)},De.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),Hs(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Mi&&(E instanceof ai?E.qm(E,function(ne,re){Kv(z,re,y)}):Kv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ei,"elements",this,E,null,a,null))},De.Fb=function(a){0>a&&pi(a,">= 0",ai,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ws;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ci,"rowdefs",this,null,x,null,a)}return y[a]},De.oA=function(a){if(0>a&&pi(a,">= 0",ai,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Ei,"rowdefs",this,x,null,a,null),this.v()}}};function f1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Ws?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}De.Eb=function(a){0>a&&pi(a,">= 0",ai,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ws;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ci,"coldefs",this,null,x,null,a)}return y[a]},De.jA=function(a){if(0>a&&pi(a,">= 0",ai,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(Ei,"coldefs",this,x,null,a,null),this.v()}}};function g1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Ws?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}De.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},De.Hy=function(a,y){return(a=this.Fb(a))&&Nm(a,new Ws(y)),this},De.By=function(a,y){return(a=this.Eb(a))&&Nm(a,new Ws(y)),this},De.nz=function(a){if(0>a||this.type!==ai.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},De.fz=function(a){if(0>a||this.type!==ai.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},De.Fz=function(a,y){if(y===void 0&&(y=new qe(NaN,NaN)),this.type!==ai.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)},De.Gz=function(a){if(this.type!==ai.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function p1(a){return a=a.allBindings,a!==null&&a._isFrozen}function xc(a){var y=a.allBindings;if(y===null)a.data!==null&&at("Template cannot have .data be non-null: "+a),a.allBindings=y=new An;else if(y._isFrozen)return;var x=new An;Pv(a,!1),a.qm(a,function(le,ce){ce.th();var me=ce.localBindings;if(me!==null)for(Qf(ce,!1),me=me.iterator;me.next();){var Ce=me.value;Ce.mode===Zp&&Qf(ce,!0);var Me=Ce.sourceName;Me!==null&&(Me==="/"&&Pv(le,!0),Me=FS(Ce,le,ce),Me!==null&&(x.add(Me),Me.srcBindings===null&&(Me.srcBindings=new An),Me.srcBindings.add(Ce))),y.add(Ce)}if(ce instanceof ai&&ce.type===ai.Table){if(0<ce.rowCount){for(le=ce.rowDefs,me=le.length,Ce=0;Ce<me;Ce++)if(Me=le[Ce],Me!==void 0&&Me.be!==null)for(var Be=Me.be.iterator;Be.next();){var Re=Be.value;Re.xd=Me,Re.to=2,Re.wl=Me.index,y.add(Re)}}if(0<ce.columnCount){for(ce=ce.colDefs,le=ce.length,me=0;me<le;me++)if(Ce=ce[me],Ce!==void 0&&Ce.be!==null)for(Me=Ce.be.iterator;Me.next();)Be=Me.value,Be.xd=Ce,Be.to=1,Be.wl=Ce.index,y.add(Be)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){Qf(b,!0);for(var z=b.srcBindings.iterator;z.next();){var ne=z.value;b.localBindings===null&&(b.localBindings=new An),b.localBindings.add(ne)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var re=b.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof ai&&(ne=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ne),oe!==null?(z=oe,b.targetProperty=re):Li('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+b.toString())),z instanceof Ws?(ne=yo(z.panel),b.Ai=ne===void 0?-1:ne,z.panel.bindingId=b.Ai):z instanceof jt?(ne=yo(z),b.Ai=ne===void 0?-1:ne,z.bindingId=b.Ai):at("Unknown type of binding target: "+z)}y.freeze(),a instanceof Qi&&a.Zc()&&a.Va()}De.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Ex(y,function(x){x instanceof ai&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&xc(y),y},De.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,ne=x.Ai;if(ne!==-1){if(z=this.ks(ne),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof ai))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},De.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function bx(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof ai&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var ne=0;b<x&&ne<E;){if(z=a[b],!(z instanceof ai)||z.data!==y[ne])return!0;b++,ne++}return!1}function xp(a){if(a.type===ai.Spot||a.type===ai.Auto)return Math.min(a.O.length,1);if(a.type===ai.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Vr&&E.isPanelMain))break}return x}return a.type===ai.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ai&&vh(a))?1:0}De.mv=function(){for(var a=xp(this);this.O.length>a;)this.pc(this.O.length-1,!1);m1(this,this.itemArray)};function m1(a,y){var x=xp(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 E=0;E<x;E++)Dm(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],ne=E<a.O.length?a.O.M(E):null;if(ne instanceof ai){if(ne.data!==z){var re=Cv(a,ne.data),oe=Cv(a,z),le=oe!==re;le||(re=Ev(a,re),le=Ev(a,oe)!==re),le?(a.pc(E,!1),Dm(a,z,b,!1)):ne.data=z}}else Dm(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,wv(a,x,0),Hu(a)||a.v(),a.graduatedIntervals=null,a.If()||Bm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Mi&&(y.Te=!0),y.Te&&y instanceof Mi&&(y.wc=null))}}function Dm(a,y,x,E){if(!(y==null||0>x)){var b=Cv(a,y);if(b=Ev(a,b),b!==null){if(xc(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Pv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Kn),a.ge.add(y,b)),z=x+xp(a),a.Gb(z,b),E&&(b.ub=y,wv(a,z,x),b.ub=null),b.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof ai){var b=y,z=x;E.type===ai.TableRow?E.row=b:E.type===ai.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function Cv(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=Es(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;at("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Ev(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(v1||(v1=!0,Li('No item template Panel found for category "'+y+'" on '+a),Li(" Using default item template."),a=new ai,y=new Ca,y.bind(new Fs("text","",Jn)),a.add(y),y1=a),E=y1)),E}function Bm(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof ai){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof ai&&!z.isEnabled||Bm(a,z,x)}}}function cd(a,y){y.name=a,Nc.add(a,y)}bt.Object.defineProperties(ai.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ai.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&&pi(a,">= 0",ai,"padding"),a=new Yn(a)):(0>a.left&&pi(a.left,">= 0",ai,"padding:value.left"),0>a.right&&pi(a.right,">= 0",ai,"padding:value.right"),0>a.top&&pi(a.top,">= 0",ai,"padding:value.top"),0>a.bottom&&pi(a.bottom,">= 0",ai,"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:qo},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new rc),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 ta)&&(a instanceof ta&&a.freeze(),this.T===null&&(this.T=new rc),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 rc),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,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||at("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new rc),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 ta)&&(a instanceof ta&&a.freeze(),this.T===null&&(this.T=new rc),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 rc),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,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||at("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new rc),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 rc),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||at("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&pc(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()||at("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&pc(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 _d),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Pl(this)&&(a=this.part,a!==null&&La(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 _d),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Pl(this)&&(a=this.part,a!==null&&La(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 _d),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 _d),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 _d,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 _d,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 _d,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 _d,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 rc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new rc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Tm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new rc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Tm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new rc),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)&&at("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new rc),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)&&at("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new rc),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 Qi&&!(this instanceof Go);xc(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof fi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Qi&&(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),E!==null&&E.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&&bx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&cy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&uy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||m1(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 Kn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Qi||a.isPanelMain)&&at("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(););$r(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&&($r(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 Rr&&(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&&Bm(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))}}}),bt.Object.defineProperties(ai,{Position:{get:function(){return Nc.I("Position")}},Horizontal:{get:function(){return Nc.I("Horizontal")}},Vertical:{get:function(){return Nc.I("Vertical")}},Spot:{get:function(){return Nc.I("Spot")}},Auto:{get:function(){return Nc.I("Auto")}},Table:{get:function(){return Nc.I("Table")}},Viewbox:{get:function(){return Nc.I("Viewbox")}},TableRow:{get:function(){return Nc.I("TableRow")}},TableColumn:{get:function(){return Nc.I("TableColumn")}},Link:{get:function(){return Nc.I("Link")}},Grid:{get:function(){return Nc.I("Grid")}},Graduated:{get:function(){return Nc.I("Graduated")}}}),ai.prototype.rebuildItemElements=ai.prototype.mv,ai.prototype.findItemPanelForData=ai.prototype.sx,ai.prototype.updateTargetBindings=ai.prototype.La,ai.prototype.copyTemplate=ai.prototype.Uy,ai.prototype.graduatedValueForPoint=ai.prototype.Gz,ai.prototype.graduatedPointForValue=ai.prototype.Fz,ai.prototype.findColumnForLocalX=ai.prototype.fz,ai.prototype.findRowForLocalY=ai.prototype.nz,ai.prototype.addColumnDefinition=ai.prototype.By,ai.prototype.addRowDefinition=ai.prototype.Hy,ai.prototype.addRowColumnDefinition=ai.prototype.Gy,ai.prototype.removeColumnDefinition=ai.prototype.jA,ai.prototype.getColumnDefinition=ai.prototype.Eb,ai.prototype.removeRowDefinition=ai.prototype.oA,ai.prototype.getRowDefinition=ai.prototype.Fb,ai.prototype.removeAt=ai.prototype.mb,ai.prototype.remove=ai.prototype.remove,ai.prototype.insertAt=ai.prototype.Gb,ai.prototype.elt=ai.prototype.M,ai.prototype.add=ai.prototype.add,ai.prototype.findObject=ai.prototype.fb,ai.prototype.findInVisualTree=ai.prototype.Nl,ai.prototype.walkVisualTreeFrom=ai.prototype.qm,ai.prototype.findMainElement=ai.prototype.Pb;var v1=!1,y1=null,Nc=new Kn;ai.className="Panel",ai.definePanelLayout=cd,cd("Position",new ym),cd("Vertical",new xm),cd("Auto",new wm),cd("Link",new Lm);function _d(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}_d.prototype.copy=function(){var a=new _d;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},_d.className="GradPanelSettings";function rc(){this.Pc=[],this.Oc=[],this.j=this.ob=Tm,this.hb=this.Hb=0,this.Qp=qo,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}rc.prototype.copy=function(a){for(var y=new rc,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var ne=x[z].copy();ne.wi(a),b[z]=ne}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(ne=x[z].copy(),ne.wi(a),b[z]=ne);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},rc.className="TablePanelSettings";function Ws(a){Hr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Yo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=bv,this.hg=jr,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))}Ws.prototype.copy=function(){var a=new Ws;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=on(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=on(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}De=Ws.prototype,De.qb=function(a){a.classType===Ws&&(this.sizing=a)},De.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+yo(this)},De.wi=function(a){this.Me=a},De.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)},De.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===ai.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var ne=E?y.rowDefs[z]:y.colDefs[z];if(ne!==void 0&&ne.oa!==0){x=ne.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},De.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(ii,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function km(a){if(a.sizing===bv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}De.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Fs(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&p1(y)&&at("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new An),this.be.add(b),this},bt.Object.defineProperties(Ws.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&&pi(a,">= 0",Ws,"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&&pi(a,">= 0",Ws,"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))&&pi(a,">= 0",Ws,"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&&pi(a,">= 0",Ws,"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 Yn(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&&eg(a,"RowColumnDefinition.separatorStroke"),a instanceof ta&&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,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||at("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===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&&eg(a,"RowColumnDefinition.background"),a instanceof ta&&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}}}),Ws.prototype.computeEffectiveSpacing=Ws.prototype.Wc,Ws.prototype.computeEffectiveSpacingTop=Ws.prototype.Io;var bv=new Jt(Ws,"Default",0),Pp=new Jt(Ws,"None",1),Tm=new Jt(Ws,"ProportionalExtra",2);Ws.className="RowColumnDefinition",Ws.Default=bv,Ws.None=Pp,Ws.ProportionalExtra=Tm;function Vr(a,y){jt.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)}Ut(Vr,jt),Vr.prototype.cloneProtected=function(a){jt.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=on(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 Lf(a){a.Na===null?a.Na=new Lv:a.Na.nc&&(a.Na=a.Na.copy())}De=Vr.prototype,De.th=function(){jt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},De.qb=function(a){a===Xn||a===Gi||a===wo||a===jr?this.geometryStretch=a:jt.prototype.qb.call(this,a)},De.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+yo(this)};function Dg(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,ne=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],le,ce,me,Ce,Me,Be,Re=0,dt=En(),et=2;et<b;et+=2)le=x[et],ce=x[et+1],me=le-re,re=ce-oe,me===0&&(me=.001),Ce=re/me,Me=Math.atan2(re,me),Be=Math.sqrt(me*me+re*re),dt.push([me,Me,Ce,Be]),Re+=Be,re=le,oe=ce;re=x[0],oe=x[1],me=E.measuredBounds.width,E instanceof Vr&&(me-=E.strokeWidth),1>me&&(me=1),b=x=me,le=ne/2,ce=le!==0,et=0,Be=dt[et],me=Be[0],Me=Be[1],Ce=Be[2],Be=Be[3];for(var Pt=0;.1<=Re;){if(Pt===0&&(ce?(b=x,b-=le,Re-=le,ce=!1):b=x,b===0&&(b=1)),b>Re){kn(dt);return}b>Be?(Pt=b-Be,b=Be):Pt=0;var At=Math.sqrt(b*b/(1+Ce*Ce));if(0>me&&(At=-At),re+=At,oe+=Ce*At,a.translate(re,oe),a.rotate(Me),a.translate(-(ne/2),-(z/2)),Pt===0&&E.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Me),a.translate(-re,-oe),Re-=b,Be-=b,Pt!==0){if(et++,et===dt.length){kn(dt);return}Be=dt[et],me=Be[0],Me=Be[1],Ce=Be[2],Be=Be[3],b=Pt}}kn(dt)}}De.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,ne=this.naturalBounds;E!==null&&us(this,a,E,!0,!1,ne,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===ai.Link&&re instanceof Go&&re.category==="Selection"&&re.adornedObject instanceof Vr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(us(this,a,x,!1,!1,ne,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),ne=!1,oe=this.strokeDashArray,oe!==null&&(ne=!0,a.js(oe,this.strokeDashOffset)),b.type===vi.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===vi.u){var le=b.startX;oe=b.startY;var ce=b.endX,me=b.endY;b=Math.min(le,ce);var Ce=Math.min(oe,me);le=Math.abs(ce-le),oe=Math.abs(me-oe),a.beginPath(),a.rect(b,Ce,le,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&Pd(a),a.jk(),re&&z&&Vd(a)),a.Se()}else if(b.type===vi.F)le=b.startX,oe=b.startY,ce=b.endX,me=b.endY,b=Math.abs(ce-le)/2,Ce=Math.abs(me-oe)/2,le=Math.min(le,ce)+b,oe=Math.min(oe,me)+Ce,a.beginPath(),a.moveTo(le,oe-Ce),a.bezierCurveTo(le+Kt.wg*b,oe-Ce,le+b,oe-Kt.wg*Ce,le+b,oe),a.bezierCurveTo(le+b,oe+Kt.wg*Ce,le+Kt.wg*b,oe+Ce,le,oe+Ce),a.bezierCurveTo(le-Kt.wg*b,oe+Ce,le-b,oe+Kt.wg*Ce,le-b,oe),a.bezierCurveTo(le-b,oe-Kt.wg*Ce,le-Kt.wg*b,oe-Ce,le,oe-Ce),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&Pd(a),a.jk(),re&&z&&Vd(a)),a.Se();else if(b.type===vi.o)for(b=b.figures,oe=b.length,Ce=0;Ce<oe;Ce++){le=b.s[Ce],a.beginPath(),a.moveTo(le.startX,le.startY),ce=le.segments.s,me=ce.length;for(var Me=null,Be=0;Be<me;Be++){var Re=ce[Be];switch(Re.type){case vs:a.moveTo(Re.endX,Re.endY);break;case ma:a.lineTo(Re.endX,Re.endY);break;case nl:a.bezierCurveTo(Re.point1X,Re.point1Y,Re.point2X,Re.point2Y,Re.endX,Re.endY);break;case Ue:a.quadraticCurveTo(Re.point1X,Re.point1Y,Re.endX,Re.endY);break;case rt:if(Re.radiusX===Re.radiusY){var dt=Math.PI/180;a.arc(Re.point1X,Re.point1Y,Re.radiusX,Re.startAngle*dt,(Re.startAngle+Re.sweepAngle)*dt,0>Re.sweepAngle,Me!==null?Me.endX:le.startX,Me!==null?Me.endY:le.startY)}else if(Me=gl(Re,le),dt=Me.length,dt===0)a.lineTo(Re.centerX,Re.centerY);else for(var et=0;et<dt;et++){var Pt=Me[et];et===0&&a.lineTo(Pt[0],Pt[1]),a.bezierCurveTo(Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7])}break;case gt:if(et=dt=0,Me!==null&&Me.type===rt){if(Me=gl(Me,le),Pt=Me.length,Pt===0){a.lineTo(Re.endX,Re.endY);break}Me=Me[Pt-1]||null,Me!==null&&(dt=Me[6],et=Me[7])}else dt=Me!==null?Me.endX:le.startX,et=Me!==null?Me.endY:le.startY;if(Me=Dl(Re,le,dt,et),dt=Me.length,dt===0){a.lineTo(Re.endX,Re.endY);break}for(et=0;et<dt;et++)Pt=Me[et],a.bezierCurveTo(Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7]);break;default:at("Segment not of valid type: "+Re.type)}Re.isClosed&&a.closePath(),Me=Re}ce=le.isFilled,z?le.isShadowed?(ce===!0&&E!=="transparent"&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&(ce&&re&&Pd(a),a.jk(),ce&&re&&Vd(a))):(Pd(a),ce&&E!=="transparent"&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&a.jk(),Vd(a)):(ce&&E!==null&&a.ng(E,le.isEvenOdd),x!==null&&a.jk()),a.Se(Ce)}if(ne&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=En(),z.type===vi.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Dg(a,y,E,x);else if(z.type===vi.o)for(z=z.figures.iterator;z.next();){for(re=z.value,E.length=0,E.push(re.startX),E.push(re.startY),ne=re.startX,b=re.startY,oe=ne,Ce=b,le=re.segments.s,ce=le.length,me=0;me<ce;me++){switch(Be=le[me],Be.type){case vs:Dg(a,y,E,x),E.length=0,E.push(Be.endX),E.push(Be.endY),ne=Be.endX,b=Be.endY,oe=ne,Ce=b;break;case ma:E.push(Be.endX),E.push(Be.endY),ne=Be.endX,b=Be.endY;break;case nl:Kt.Qe(ne,b,Be.point1X,Be.point1Y,Be.point2X,Be.point2Y,Be.endX,Be.endY,.5,E),ne=Be.endX,b=Be.endY;break;case Ue:Kt.ep(ne,b,Be.point1X,Be.point1Y,Be.endX,Be.endY,.5,E),ne=Be.endX,b=Be.endY;break;case rt:if(Re=gl(Be,re),Me=Re.length,Me===0){E.push(Be.centerX),E.push(Be.centerY),ne=Be.centerX,b=Be.centerY;break}for(dt=0;dt<Me;dt++)et=Re[dt],Kt.Qe(ne,b,et[2],et[3],et[4],et[5],et[6],et[7],.5,E),ne=et[6],b=et[7];break;case gt:if(Re=Dl(Be,re,ne,b),Me=Re.length,Me===0){E.push(Be.endX),E.push(Be.endY),ne=Be.endX,b=Be.endY;break}for(dt=0;dt<Me;dt++)et=Re[dt],Kt.Qe(ne,b,et[2],et[3],et[4],et[5],et[6],et[7],.5,E),ne=et[6],b=et[7];break;default:at("Segment not of valid type: "+Be.type)}Be.isClosed&&(E.push(oe),E.push(Ce),Dg(a,y,E,x))}Dg(a,y,E,x)}else if(z.type===vi.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),Dg(a,y,E,x);else if(z.type===vi.F){if(b=new Os,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ne=new ko(rt),ne.startAngle=0,ne.sweepAngle=360,ne.centerX=(z.startX+z.endX)/2,ne.centerY=(z.startY+z.endY)/2,ne.radiusX=Math.abs(z.startX-z.endX)/2,ne.radiusY=Math.abs(z.startY-z.endY)/2,b.add(ne),z=gl(ne,b),re=z.length,re===0)E.push(ne.centerX),E.push(ne.centerY);else for(ne=b.startX,b=b.startY,oe=0;oe<re;oe++)Ce=z[oe],Kt.Qe(ne,b,Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7],.5,E),ne=Ce[6],b=Ce[7];Dg(a,y,E,x)}kn(E),a.restore(),a.Vc(!1)}}}},De.kk=function(a,y,x){return!jt.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)},De.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:jt.prototype.nk.call(this,a)},De.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)}},De.ga=function(a,y){if(y===void 0&&(y=new qe),a instanceof Zi){a.Mc()&&at("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},De.mi=function(a){a===void 0&&(a=new Cn);var y=this.naturalBounds,x=this.oe;y=Cn.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=qe.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),vo(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),vo(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),vo(a,E.x,E.y,0,0),Cn.free(y),qe.free(E),a},De.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==vi.j||y||(b+=2);var z=Cn.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return Cn.free(z),!1;if(E=b+1e-4,x.type===vi.j)return this.stroke===null||(E=(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>E)?!1:(Cn.free(z),Kt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===vi.u){y=x.startX;var ne=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ne,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ne),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return Cn.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),Cn.free(z),a}if(x.type===vi.F){ne=x.startX,b=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ne,re),y=Math.min(b,oe),ne=Math.abs(re-ne)/2,b=Math.abs(oe-b)/2,x=a.x-(x+ne),y=a.y-(y+b),this.fill===null){if(ne-=E,b-=E,0>=ne||0>=b||1>=x*x/(ne*ne)+y*y/(b*b))return Cn.free(z),!1;ne+=E,b+=E}return this.stroke!==null&&(ne+=E,b+=E),Cn.free(z),0>=ne||0>=b?!1:1>=x*x/(ne*ne)+y*y/(b*b)}if(x.type===vi.o)return Cn.free(z),this.fill===null?Ac(x,a.x,a.y,b):dc(x,a,b,1<this.strokeWidth,y);at("Unknown Geometry type: "+x.type)},De.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ne=this.geometry.bounds;else{var re=this.figure,oe=Mv[re];if(oe===void 0){var le=Kt.Ze[re];typeof le=="string"&&(le=Kt.Ze[le]),typeof le=="function"?(oe=le(null,100,100),Mv[re]=oe):at("Unsupported Figure: "+re)}ne=oe.bounds}re=ne.width,oe=ne.height,le=ne.width;var ce=ne.height;switch(du(this,!0)){case Xn:E=x=0;break;case ni:le=Math.max(a-z,0),ce=Math.max(y-z,0);break;case Yi:le=Math.max(a-z,0),E=0;break;case dr:x=0,ce=Math.max(y-z,0)}isFinite(b.width)&&(le=b.width),isFinite(b.height)&&(ce=b.height);var me=this.maxSize,Ce=this.minSize;switch(x=Math.max(x-z,Ce.width),E=Math.max(E-z,Ce.height),le=Math.min(me.width,le),ce=Math.min(me.height,ce),le=isFinite(le)?Math.max(x,le):Math.max(re,x),ce=isFinite(ce)?Math.max(E,ce):Math.max(oe,E),x=Av(this),x){case Xn:break;case ni:re=le,oe=ce;break;case Gi:x=Math.min(le/re,ce/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:at(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ne=x.bounds,E=re/ne.width,ne=oe/ne.height,isFinite(E)||(E=1),isFinite(ne)||(ne=1),this.ua=E===1&&ne===1?x:x.copy().scale(E,ne)):this.ua!==null&&Kt.$(this.ua.Sk,a-z)&&Kt.$(this.ua.Rk,y-z)||(this.ua=Vr.makeGeometry(this,re,oe)),ne=this.ua.bounds,a===1/0||y===1/0?this.Ge(ne.x-z/2,ne.y-z/2,a===0&&re===0?0:ne.width+z,y===0&&oe===0?0:ne.height+z):this.Ge(-(z/2),-(z/2),le+z,ce+z),b.w()?(le=b.width,ce=b.height,le=Math.min(me.width,le),ce=Math.min(me.height,ce),le=Math.max(Ce.width,le),ce=Math.max(Ce.height,ce),this.dc.h(0,0,le,ce)):this.dc.assign(ne)};function Av(a){var y=a.geometryStretch;return a.Rd!==null?y===jr?ni:y:y===jr?Mv[a.figure].defaultStretch:y}De.eh=function(a,y,x,E){Hl(this,a,y,x,E)},De.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},De.Sj=function(a,y,x,E,b){var z=this.transform,ne=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ne,oe=-z.m12*ne,le=-z.m21*ne,ce=z.m11*ne,me=ne*(z.m21*z.dy-z.m22*z.dx),Ce=ne*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*le+me,ne=a*oe+y*ce+Ce,re=x*re+E*le+me,oe=x*oe+E*ce+Ce,me=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var Me=le.bounds;if(ce=!1,le.type===vi.j)if(1.5>=this.strokeWidth)ce=Kt.Ve(le.startX,le.startY,le.endX,le.endY,z,ne,re,oe,b);else{if(le.startX===le.endX?(E=me,ce=0):(y=(le.endY-le.startY)/(le.endX-le.startX),ce=me/Math.sqrt(1+y*y),E=ce*y),y=En(),a=new qe,Kt.Ve(le.startX+E,le.startY+ce,le.endX+E,le.endY+ce,z,ne,re,oe,a)&&y.push(a),a=new qe,Kt.Ve(le.startX-E,le.startY-ce,le.endX-E,le.endY-ce,z,ne,re,oe,a)&&y.push(a),a=new qe,Kt.Ve(le.startX+E,le.startY+ce,le.startX-E,le.startY-ce,z,ne,re,oe,a)&&y.push(a),a=new qe,Kt.Ve(le.endX+E,le.endY+ce,le.endX-E,le.endY-ce,z,ne,re,oe,a)&&y.push(a),re=y.length,re===0)return kn(y),!1;for(ce=!0,oe=1/0,E=0;E<re;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-ne)*(a.y-ne),x<oe&&(oe=x,b.x=a.x,b.y=a.y);kn(y)}else if(le.type===vi.u)ce=Kt.Ff(Me.x-me,Me.y-me,Me.x+Me.width+me,Me.y+Me.height+me,z,ne,re,oe,b);else if(le.type===vi.F){y=Cn.allocAt(Me.x,Me.y,Me.width,Me.height).Bc(me,me);e:if(y.width===0)ce=Kt.Ve(y.x,y.y,y.x,y.y+y.height,z,ne,re,oe,b);else if(y.height===0)ce=Kt.Ve(y.x,y.y,y.x+y.width,y.y,z,ne,re,oe,b);else{if(a=y.width/2,le=y.height/2,E=y.x+a,ce=y.y+le,x=9999,z!==re&&(x=(ne-oe)/(z-re)),9999>Math.abs(x)){if(oe=ne-ce-x*(z-E),0>a*a*x*x+le*le-oe*oe){b.x=NaN,b.y=NaN,ce=!1;break e}me=Math.sqrt(a*a*x*x+le*le-oe*oe),re=(-(a*a*x*oe)+a*le*me)/(le*le+a*a*x*x)+E,a=(-(a*a*x*oe)-a*le*me)/(le*le+a*a*x*x)+E,le=x*(re-E)+oe+ce,oe=x*(a-E)+oe+ce,Math.abs((z-re)*(z-re))+Math.abs((ne-le)*(ne-le))<Math.abs((z-a)*(z-a))+Math.abs((ne-oe)*(ne-oe))?(b.x=re,b.y=le):(b.x=a,b.y=oe)}else{if(re=le*le,oe=z-E,re-=re/(a*a)*oe*oe,0>re){b.x=NaN,b.y=NaN,ce=!1;break e}oe=Math.sqrt(re),re=ce+oe,oe=ce-oe,Math.abs(re-ne)<Math.abs(oe-ne)?(b.x=z,b.y=re):(b.x=z,b.y=oe)}ce=!0}Cn.free(y)}else if(le.type===vi.o){Ce=qe.alloc();var Be=re-z,Re=oe-ne,dt=Be*Be+Re*Re,et=z,Pt=ne;if(0<dt&&Me.contains(et,Pt)&&(Ce.x=et,Ce.y=Pt,this.ca(Ce)))for(Be!==0&&.5>Math.abs(Be)?(Re*=.5/Be,Be=.5):Re!==0&&.5>Math.abs(Re)&&(Be*=.5/Re,Re=.5),et-=Be,Pt-=Re;Me.contains(et,Pt);)et-=Be,Pt-=Re;for(b.x=re,b.y=oe,Re=0;Re<le.figures.count;Re++){var At=le.figures.s[Re],Dt=At.isFilled?et:z,Rt=At.isFilled?Pt:ne,dn=At.segments;Me=At.startX,Be=At.startY;for(var bi=Me,Ii=Be,Ni=0;Ni<dn.count;Ni++){var hi=dn.s[Ni],Vn=hi.type,Or=hi.endX,Cr=hi.endY,Vo=!1;switch(Vn){case vs:bi=Or,Ii=Cr;break;case ma:Vo=Im(Me,Be,Or,Cr,Dt,Rt,re,oe,Ce);break;case nl:Vo=Kt.Eo(Me,Be,hi.point1X,hi.point1Y,hi.point2X,hi.point2Y,Or,Cr,Dt,Rt,re,oe,.6,Ce);break;case Ue:Vo=Kt.Eo(Me,Be,Me+2/3*(hi.point1X-Me),Be+2/3*(hi.point1Y-Be),Or+2/3*(hi.point1X-Or),Cr+2/3*(hi.point1Y-Cr),Or,Cr,Dt,Rt,re,oe,.6,Ce);break;case rt:case gt:Vn=hi.type===rt?gl(hi,At):Dl(hi,At,Me,Be);var Sa=Vn.length;if(Sa===0){Vo=Im(Me,Be,hi.type===rt?hi.centerX:hi.endX,hi.type===rt?hi.centerY:hi.endY,Dt,Rt,re,oe,Ce);break}for(Cr=null,Or=0;Or<Sa;Or++){if(Cr=Vn[Or],Or===0&&Im(Me,Be,Cr[0],Cr[1],Dt,Rt,re,oe,Ce)){var qs=Om(Dt,Rt,Ce,dt,b);qs<dt&&(dt=qs,ce=!0)}Kt.Eo(Cr[0],Cr[1],Cr[2],Cr[3],Cr[4],Cr[5],Cr[6],Cr[7],Dt,Rt,re,oe,.6,Ce)&&(qs=Om(Dt,Rt,Ce,dt,b),qs<dt&&(dt=qs,ce=!0))}Or=Cr[6],Cr=Cr[7];break;default:at("Unknown Segment type: "+Vn)}Me=Or,Be=Cr,Vo&&(Vo=Om(Dt,Rt,Ce,dt,b),Vo<dt&&(dt=Vo,ce=!0)),hi.isClosed&&(Or=bi,Cr=Ii,Im(Me,Be,Or,Cr,Dt,Rt,re,oe,Ce)&&(hi=Om(Dt,Rt,Ce,dt,b),hi<dt&&(dt=hi,ce=!0)))}}z=x-a,ne=E-y,re=Math.sqrt(z*z+ne*ne),re!==0&&(z/=re,ne/=re),b.x-=z*me,b.y-=ne*me,qe.free(Ce)}else at("Unknown Geometry type: "+le.type);return ce?(this.transform.Ga(b),!0):!1};function Om(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function Im(a,y,x,E,b,z,ne,re,oe){if(Kt.$(a,x)&&Kt.$(y,E)||Kt.$(b,ne)&&Kt.$(z,re))return!1;var le=!1,ce=(b-ne)*(y-E)-(z-re)*(a-x);return ce===0?!1:(oe.x=((b*re-z*ne)*(a-x)-(b-ne)*(a*E-y*x))/ce,oe.y=((b*re-z*ne)*(y-E)-(z-re)*(a*E-y*x))/ce,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(oe.y>a||Kt.$(oe.y,a))&&(oe.y<y||Kt.$(oe.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||Kt.$(oe.x,y))&&(oe.x<a||Kt.$(oe.x,a))&&(le=!0)),le)}De.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 E=this.strokeWidth/2,b=!1,z=qe.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),qe.free(z),b},De.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Wr.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var ne=qe.alloc();if(ne.h(E,z),x.Ga(ne),this.gh(ne,!0)||(ne.h(b,z),x.Ga(ne),this.gh(ne,!0))||(ne.h(E,a),x.Ga(ne),this.gh(ne,!0))||(ne.h(b,a),x.Ga(ne),this.gh(ne,!0)))return qe.free(ne),!0;var re=qe.alloc(),oe=qe.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=b,re.y=z,re.transform(x),ne.x=E,ne.y=z,ne.transform(x),y=!1,Ff(this,ne,re,oe)?y=!0:(ne.x=b,ne.y=a,ne.transform(x),Ff(this,ne,re,oe)?y=!0:(re.x=E,re.y=a,re.transform(x),Ff(this,ne,re,oe)?y=!0:(ne.x=E,ne.y=z,ne.transform(x),Ff(this,ne,re,oe)&&(y=!0)))),qe.free(ne),Wr.free(x),qe.free(re),qe.free(oe),y};function Ff(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}De.tx=function(a,y,x){function E(dt,et){for(var Pt=dt.length,At=0;At<Pt;At+=2)if(et.zd(dt[At],dt[At+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ne=y.bounds,re=ne.x,oe=ne.y,le=ne.x+ne.width;if(ne=ne.y+ne.height,lr(a.x,a.y,re,oe)<=b&&lr(a.x,a.y,le,oe)<=b&&lr(a.x,a.y,re,ne)<=b&&lr(a.x,a.y,le,ne)<=b)return!0}if(re=y.startX,oe=y.startY,le=y.endX,ne=y.endY,y.type===vi.j){if(x=(re-le)*(a.x-le)+(oe-ne)*(a.y-ne),_o(a.x,a.y,re,oe,le,ne)<=(0<=(le-re)*(a.x-re)+(ne-oe)*(a.y-oe)&&0<=x?b:z))return!0}else{if(y.type===vi.u)return y=!1,x&&(y=_o(a.x,a.y,re,oe,re,ne)<=b||_o(a.x,a.y,re,oe,le,oe)<=b||_o(a.x,a.y,le,oe,le,ne)<=b||_o(a.x,a.y,re,ne,le,ne)<=b),y;if(y.type===vi.F){y=a.x-(re+le)/2,z=a.y-(oe+ne)/2;var ce=Math.abs(le-re)/2,me=Math.abs(ne-oe)/2;if(ce===0||me===0)return _o(a.x,a.y,re,oe,le,ne)<=b;if(x){if(a=Kt.$y(ce,me,y,z),a*a<=b)return!0}else return!(lr(y,z,-ce,0)>=b||lr(y,z,0,-me)>=b||lr(y,z,0,me)>=b||lr(y,z,ce,0)>=b)}else if(y.type===vi.o){if(le=y.bounds,z=le.x,re=le.y,oe=le.x+le.width,le=le.y+le.height,a.x>oe&&a.x<z&&a.y>le&&a.y<re&&_o(a.x,a.y,z,re,z,le)>b&&_o(a.x,a.y,z,re,oe,re)>b&&_o(a.x,a.y,oe,le,z,le)>b&&_o(a.x,a.y,oe,le,oe,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Ac(y,a.x,a.y,z):dc(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ne=z.startX,ce=z.startY,a.zd(ne,ce)>b)return!1;for(re=z.segments.s,oe=re.length,le=0;le<oe;le++)switch(me=re[le],me.type){case vs:case ma:if(ne=me.endX,ce=me.endY,a.zd(ne,ce)>b)return!1;break;case nl:var Ce=En();if(Kt.Qe(ne,ce,me.point1X,me.point1Y,me.point2X,me.point2Y,me.endX,me.endY,.8,Ce),ne=E(Ce,a),kn(Ce),ne||(ne=me.endX,ce=me.endY,a.zd(ne,ce)>b))return!1;break;case Ue:if(Ce=En(),Kt.ep(ne,ce,me.point1X,me.point1Y,me.endX,me.endY,.8,Ce),ne=E(Ce,a),kn(Ce),ne||(ne=me.endX,ce=me.endY,a.zd(ne,ce)>b))return!1;break;case rt:case gt:Ce=me.type===rt?gl(me,z):Dl(me,z,ne,ce);var Me=Ce.length;if(Me===0){if(ne=me.type===rt?me.centerX:me.endX,ce=me.type===rt?me.centerY:me.endY,a.zd(ne,ce)>b)return!1;break}me=null;for(var Be=En(),Re=0;Re<Me;Re++)if(me=Ce[Re],Be.length=0,Kt.Qe(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],.8,Be),E(Be,a))return kn(Be),!1;kn(Be),me!==null&&(ne=me[6],ce=me[7]);break;default:at("Unknown Segment type: "+me.type)}}return!0}}}return!1},De.qc=function(){this.ua=null},De.kq=function(){return this.ig};function S1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Dp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Is):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Zi(1-Is.x,Is.y)))}Vr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=Cd[a.toArrow];else a.fromArrow!=="None"?E=Cd[a.fromArrow]:(E=Kt.Ze[a.figure],typeof E=="string"&&(E=Kt.Ze[E]),E===void 0&&at("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=Kt.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function x1(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 E=null,b;for(b in Kt.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=vi.parse(Kt.um[E],!1),Cd[E]=a,x!==E&&(Cd[x]=E),E}}return typeof y=="string"?y:y instanceof vi?a:null}bt.Object.defineProperties(Vr.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 E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),Pl(this)&&(a=this.part,a!==null&&La(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=vi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=qe.allocAt(-y.x,-y.y),qe.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&&eg(a,"Shape.fill"),a instanceof ta&&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&&eg(a,"Shape.stroke"),a instanceof ta&&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 pi(a,"value >= 0",Vr,"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"?pi(a,'"butt", "round", or "square"',Vr,"strokeCap"):(Lf(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"?pi(a,'"miter", "bevel", or "round"',Vr,"strokeJoin"):(Lf(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){Lf(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,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||at("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===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&&(Lf(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=Kt.Ze[a];typeof x=="function"?x=a:(x=Kt.Ze[a.toLowerCase()])||at("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=x1(a);x===null?at("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),S1(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=x1(a);x===null?at("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Gh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),S1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Yo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Lf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Yo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Lf(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&&(Lf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:jr},set:function(a){var y=this.geometryStretch;y!==a&&(Lf(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 Ed),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&pc(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 Ed),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 Ed),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 Ed),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Vr.prototype.intersectsRect=Vr.prototype.Yc,Vr.prototype.containedInRect=Vr.prototype.fh,Vr.prototype.getNearestIntersectionPoint=Vr.prototype.rs,Vr.prototype.getDocumentBounds=Vr.prototype.mi,Vr.prototype.getDocumentPoint=Vr.prototype.ga;var Cd=new Wi,Mv=new Wi;Vr.className="Shape",Vr.getFigureGenerators=function(){var a=new Kn,y;for(y in Kt.Ze)y!==y.toLowerCase()&&a.add(y,Kt.Ze[y]);return a.freeze(),a},Vr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=Kt.Ze;E[a]=y,E[x]=a},Vr.getArrowheadGeometries=function(){var a=new Kn;for(E in Kt.um)if(Cd[E]===void 0){var y=vi.parse(Kt.um[E],!1);Cd[E]=y,y=E.toLowerCase(),y!==E&&(Cd[y]=E)}for(var x in Cd)if(x!==x.toLowerCase()){var E=Cd[x];E instanceof vi&&a.add(x,E)}return a.freeze(),a},Vr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=vi.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||at("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Cd;E[a]=x,E[y]=a};function Lv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=jr,this.gg=this.fg=Yo}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 Ca(a,y){return jt.call(this),Wm||(hu=ls?new Sc(null).context:null,Wm=!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}Ut(Ca,jt),Ca.prototype.cloneProtected=function(a){jt.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 dd(a){a.da===null?a.da=new Ov:a.da.nc&&(a.da=a.da.copy())}De=Ca.prototype,De.th=function(){jt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function P1(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}De.qb=function(a){a.classType===Ca?this.wrap=a:jt.prototype.qb.call(this,a)},De.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},De.v=function(){jt.prototype.v.call(this)},De.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,ne=Cp(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var le=this.isStrikethrough;us(this,a,this.xc,!0,!1,x,E),(oe||le)&&us(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var ce=this.oe,me=ce.dx-(ne*ce.m21+ce.dx);ce=ce.dy-(ne*ce.m22+ce.dy);var Ce=y.scale;switch(8>(me*me+ce*ce)*Ce*Ce&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Fu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,me=this.spacingBelow,this.flip){case Io:a.translate(b,0),a.scale(-1,1);break;case no:a.translate(0,z),a.scale(1,-1);break;case da:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ce=this.Gc,Ce=(y+ne+me)*ce,z>Ce&&(E=this.verticalAlignment,E=E.y*z-E.y*Ce+E.offsetY),ce===1&&this.ze!==null)me=this.Cb,me>b&&(me=b),this.Oj(this.ze,a,0,E+y,b,ne,me,x,re,oe,le);else if(this.Qc!==null&&this.Qb!==null)for(Ce=0;Ce<ce;Ce++){var Me=this.Qc[Ce];Me>b&&(Me=b),E+=y,this.Oj(this.Qb[Ce],a,0,E,b,ne,Me,x,re,oe,le),E+=ne+me}switch(this.flip){case Io:a.scale(-1,1),a.translate(-b,0);break;case no:a.scale(1,-1),a.translate(0,-z);break;case da:a.scale(-1,-1),a.translate(-b,-z)}}},De.Oj=function(a,y,x,E,b,z,ne,re,oe,le,ce){var me=0;if(re)oe==="left"?me=0:oe==="right"?me=b-ne:oe==="center"&&(me=(b-ne)/2),y.fillRect(x+me,E+.25*z,ne,1);else{if(oe==="left"?me=0:oe==="right"?me=b:oe==="center"&&(me=b/2),b=Rm!==null?Rm(this,z):.75*z,y.fillText(a,x+me,E+b),a=z/20|0,a===0&&(a=1),oe==="right"?me-=ne:oe==="center"&&(me-=ne/2),le){re=zm!==null?zm(this,z):.8*z,oe=x+me,le=E+re,b=x+me+ne,re=E+re;var Ce=a;y.beginPath(),y.lineWidth=Ce,y.moveTo(oe,le),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof Fu&&y.ad.classList.add("gojs-td")}ce&&(ce=E+z-z/2.2|0,a%2!==0&&(ce+=.5),E=x+me,z=ce,x=x+me+ne,ne=ce,me=a,y.beginPath(),y.lineWidth=me,y.moveTo(E,z),y.lineTo(x,ne),y.stroke(),y.Se(),y instanceof Fu&&y.ad.classList.add("gojs-td"))}},De.kk=function(a,y,x){if(!jt.prototype.kk.call(this,a,y,x))return!1;if(us(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++)e1(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,e1(a,y,!0);return!0},De.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:jt.prototype.nk.call(this,a)},De.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)}},De.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;hu!==null&&L1!==z&&(L1=hu.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ne;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ne=0,oe=!1;!oe;){var le=z.indexOf(`
|
|
|
`,re);le===-1&&(le=z.length,oe=!0),re=z.substr(re,le-re),this.formatting===Ep&&(re=re.trim()),ne=Math.max(ne,kc(re)),re=le+1}z=ne}else ne=z.indexOf(`
|
|
|
`,0),0<=ne&&(z=z.substr(0,ne)),z=kc(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)),ne=C1(this,z),isNaN(this.desiredSize.height)?ne=Math.min(ne,y/this.scale):ne=this.desiredSize.height,oe=ne,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===jm&&(y=this.Ae,y=this.overflow===jm?w1(y):0,le=this.spacingAbove+this.spacingBelow,le=Math.max(0,Cp(this)+le),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/le+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[oe],y=Math.max(1,a-y);kc(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=bp,y=kc(le),this.Qb[oe]=le,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===E1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ne=Math.max(E,ne),cs(this.dc,z,ne),this.Ge(0,0,z,ne),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},De.eh=function(a,y,x,E){Hl(this,a,y,x,E)};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 Fv(a,y,x,E){var b=a.formatting===Ep;b&&(y=y.trim());var z=0,ne=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,Cp(a)+re);var oe=a.overflow===jm?w1(ne):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(ne=y,a.wrap===Dv){a.Le=1;var le=kc(y);if(oe===0||le<=x)a.Cb=Math.max(a.Cb,le),wp(a,y,a.Cb),E!==null&&E.h(le,re);else{for(z=Bg(a,ne),ne=ne.substr(z.length),y=Bg(a,ne),le=kc(z+y);0<y.length&&le<=x;)z+=y,ne=ne.substr(y.length),y=Bg(a,ne),le=z+y,b&&(le=le.trim()),le=kc(le);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);kc(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=bp;var ce=kc(z);a.Cb=ce,wp(a,z,ce),E!==null&&E.h(ce,re)}}else{for(oe=0,ne.length===0&&(oe=1,wp(a,ne,0));0<ne.length;){for(y=Bg(a,ne),ne=ne.substr(y.length);kc(y)>x;){var me=1;for(le=kc(y.substr(0,me)),ce=0;le<=x;)me++,ce=le,le=kc(y.substr(0,me));if(me===1){var Ce=le;z=Math.max(z,le)}else Ce=ce,z=Math.max(z,ce);if(me--,1>me&&(me=1),wp(a,y.substr(0,me),Ce),oe++,y=y.substr(me),a.Gc+oe>a.maxLines)break}for(ce=Bg(a,ne),le=kc(y+ce);0<ce.length&&le<=x;)y+=ce,ne=ne.substr(ce.length),ce=Bg(a,ne),le=y+ce,b&&(le=le.trim()),le=kc(le);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ce.length===0?(me=le,z=Math.max(z,le)):(me=ce=kc(y),z=Math.max(z,ce)),wp(a,y,me),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*a.Le)}}function Bg(a,y){if(a.wrap===b1)return y.substr(0,1);for(var x=y.length,E=0,b=Ax;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===A1&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function kc(a){return hu===null?8*a.length:hu.measureText(a).width}function Cp(a){if(a.df!==null)return a.df;var y=a.Ae;if(hu===null){var x=16;return a.df=x}return kv[y]!==void 0&&5e3>M1?x=kv[y]:(x=1.3*hu.measureText("M").width,kv[y]=x,M1++),a.df=x}function w1(a){if(hu===null)return 6;if(Hm[a]!==void 0&&5e3>Tv)var y=Hm[a];else y=hu.measureText(bp).width,Hm[a]=y,Tv++;return y}function C1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,Cp(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
|
|
|
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,ne,re=!1;!re;){if(ne=x.indexOf(`
|
|
|
`,z),ne===-1&&(ne=x.length,re=!0),z<=ne){if(z=x.substr(z,ne-z),a.wrap!==Dv){a.Le=0;var oe=oi.alloc();Fv(a,z,y,oe),b+=oe.height,oi.free(oe),a.Gc+=a.Le}else Fv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ne+1}return a.Lq=b}bt.Object.defineProperties(Ca.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"||(dd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Xn},set:function(a){var y=this.flip;y!==a&&(dd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ns},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),dd(this),this.da.Yr=a,_l(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=oi.alloc();Fv(this,this.ec,999999,a);var y=a.width;oi.free(a),a=C1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),cs(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:Bv},set:function(a){var y=this.wrap;y!==a&&(dd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Nv},set:function(a){var y=this.overflow;y!==a&&(dd(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&&eg(a,"TextBlock.stroke"),a instanceof ta&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Cp(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&&(dd(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&&(dd(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 Ed),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 Ed),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 Ed),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 Ed),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 Ed),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&&(dd(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&&(dd(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&&(dd(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&&(dd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Ep},set:function(a){var y=this.formatting;y!==a&&(dd(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&&pi(a,"> 0",Ca,"maxLines"),dd(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 Rm=null,zm=null,Dv=new Jt(Ca,"None",0),E1=new Jt(Ca,"WrapFit",1),Bv=new Jt(Ca,"WrapDesiredSize",2),b1=new Jt(Ca,"WrapBreakAll",3),Nv=new Jt(Ca,"OverflowClip",0),jm=new Jt(Ca,"OverflowEllipsis",1),Ep=new Jt(Ca,"FormatTrim",0),A1=new Jt(Ca,"FormatNone",0),Ax=/[ \u200b\u00ad]/,kv=new Wi,M1=0,Hm=new Wi,Tv=0,bp="...",L1="",hu=null,Wm=!1;Ca.className="TextBlock";function Ov(){this.nc=!1,this.Hd=null,this.Xf=Xn,this.gq=Ep,this.Jq=1/0,this.$q=Nv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ns,this.$r=Bv}Ov.prototype.copy=function(){var a=new Ov;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},Ca.getEllipsis=function(){return bp},Ca.setEllipsis=function(a){bp=a,Hm=new Wi,Tv=0},Ca.getBaseline=function(){return Rm},Ca.setBaseline=function(a){Rm=a},Ca.getUnderline=function(){return zm},Ca.setUnderline=function(a){zm=a},Ca.isValidFont=function(a){if(Wm||(hu=ls?new Sc(null).context:null,Wm=!0),hu===null)return!0;var y=hu.font;if(a===y||a==="10px sans-serif")return!0;hu.font="10px sans-serif",hu.font=a;var x=hu.font;if(x!=="10px sans-serif")return hu.font=y,!0;hu.font="19px serif";var E=hu.font;return hu.font=a,x=hu.font,hu.font=y,x!==E},Ca.FormatNone=A1,Ca.FormatTrim=Ep,Ca.None=Dv,Ca.OverflowClip=Nv,Ca.OverflowEllipsis=jm,Ca.WrapBreakAll=b1,Ca.WrapDesiredSize=Bv,Ca.WrapFit=E1;function Ed(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Ed.prototype.copy=function(){var a=new Ed;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Ed.className="GradElementSettings";function fu(a,y){jt.call(this),this.Eg=null,this.qo="",this.Xg=gr,this.Nk=ni,this.Zg=this.Hd=null,this.Mk=xo,this.Xf=Xn,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;Ut(fu,jt),fu.prototype.cloneProtected=function(a){jt.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},fu.prototype.qb=function(a){a===Xn||a===Gi||a===wo?this.imageStretch=a:jt.prototype.qb.call(this,a)},fu.prototype.toString=function(){return"Picture("+this.source+")#"+yo(this)};function kg(a){a===void 0&&(a=""),a!==""?Ng[a]&&(delete Ng[a],Zm--):(Ng=new Wi,Zm=0)}function F1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",ne=b.Og.I(z);if(ne!==null)for(var re=ne.length,oe=0;oe<re;oe++)z=ne[oe],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Hs(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",ne=b.Og.I(z);if(ne!==null){b=ne.length,z=En();for(var re=0;re<b;re++)z.push(ne[re]);if(y.hn)for(re=0;re<b;re++)ne=z[re],ne.Hd!==null&&ne.Hd(ne,x);kn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}fu.prototype.hA=function(){if(this.source!==""){kg(this.source);var a=this.source;this.source="",this.source=a}},fu.prototype.redraw=function(){this.N(),this.Uc=!0},fu.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Af)){var b=a instanceof Fu;E=this.naturalBounds;var z=0,ne=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||E.width,re=re||E.height,oe!==0&&re!==0){var le=oe,ce=re;this.sourceRect.w()&&(z=this.Xg.x,ne=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var me=oe,Ce=re,Me=this.Nk,Be=this.Mk;switch(Me){case Xn:if(this.sourceRect.w())break;me>=E.width&&(z=z+Be.offsetX+(me*Be.x-E.width*Be.x)),Ce>=E.height&&(ne=ne+Be.offsetY+(Ce*Be.y-E.height*Be.y)),oe=Math.min(E.width,me),re=Math.min(E.height,Ce);break;case ni:me=E.width,Ce=E.height;break;case Gi:case wo:Me===Gi?(Me=Math.min(E.height/Ce,E.width/me),me*=Me,Ce*=Me):Me===wo&&(Me=Math.max(E.height/Ce,E.width/me),me*=Me,Ce*=Me,me>=E.width&&(z=(z+Be.offsetX+(me*Be.x-E.width*Be.x)/me)*oe),Ce>=E.height&&(ne=(ne+Be.offsetY+(Ce*Be.y-E.height*Be.y)/Ce)*re),oe*=1/(me/E.width),re*=1/(Ce/E.height),me=E.width,Ce=E.height)}Me=this.Df()*y.scale;var Re=me*Me*Ce*Me,dt=oe*re/Re,et=x.__goCache;Me=null;var Pt=Mx;if(!b){if(x.sq&&et!==void 0&&4<Re&&dt>Pt*Pt)for(et.gi===null&&(B1(et,4,le,ce,x),B1(et,16,le,ce,x)),b=et.gi,le=b.length,ce=0;ce<le&&b[ce].ratio*b[ce].ratio<dt;ce++)Me=b[ce];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new Sc(null).context;try{b.drawImage(this.Eg,0,0)}catch(At){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(At){this.vl=!0}}if(this.vl)return}}switch(b=me<E.width?Be.offsetX+(E.width*Be.x-me*Be.x):0,Be=Ce<E.height?Be.offsetY+(E.height*Be.y-Ce*Be.y):0,this.flip){case Io:a.translate(Math.min(E.width,me),0),a.scale(-1,1);break;case no:a.translate(0,Math.min(E.height,Ce)),a.scale(1,-1);break;case da:a.translate(Math.min(E.width,me),Math.min(E.height,Ce)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&et!==void 0&&Me!==null&&Me.ratio!==1){a.save(),y=Me.ratio;try{a.drawImage(Me.source,z/y,ne/y,Math.min(Me.source.width,oe/y),Math.min(Me.source.height,re/y),b,Be,Math.min(E.width,me),Math.min(E.height,Ce)),a instanceof Fu&&(this.bt=[z/y,ne/y,Math.min(Me.source.width,oe/y),Math.min(Me.source.height,re/y),b,Be,Math.min(E.width,me),Math.min(E.height,Ce)])}catch(At){this.en=!1}a.restore()}else try{a.drawImage(x,z,ne,oe,re,b,Be,Math.min(E.width,me),Math.min(E.height,Ce)),a instanceof Fu&&(this.bt=[z,ne,oe,re,b,Be,Math.min(E.width,me),Math.min(E.height,Ce)])}catch(At){this.en=!1}switch(this.flip){case Io:a.scale(-1,1),a.translate(-Math.min(E.width,me),0);break;case no:a.scale(1,-1),a.translate(0,-Math.min(E.height,Ce));break;case da:a.scale(-1,-1),a.translate(-Math.min(E.width,me),-Math.min(E.height,Ce))}}}}},fu.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=du(this,!0),ne=this.Eg,re=this.qn,oe=0,le=0;(re||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(oe=re?+ne.width:ne.naturalWidth,le=re?+ne.height:ne.naturalHeight),isFinite(b.width)||z===ni||z===Yi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=oe)),x=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(b.height)||z===ni||z===dr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ne!==null&&(y=le)),E=0):ne!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:le),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),ne===null||ne.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),cs(this.dc,a,y),this.Ge(0,0,a,y)},fu.prototype.eh=function(a,y,x,E){Hl(this,a,y,x,E)},bt.Object.defineProperties(fu.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||at("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Kf(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Wn),E!==null&&x&&Sd(E,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()||(Hs(this,!1),this.v())):x&&F1(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(ls){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Zm&&(kg(),x=Ng),E=vn("img"),E.hn=!0,F1(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,Zm++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new D1),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}}}),fu.prototype.redraw=fu.prototype.redraw,fu.prototype.reloadSource=fu.prototype.hA;var Zm=0,Mx=4;fu.className="Picture",Ng=new Wi,fu.clearCache=kg;function D1(){this.gi=null}function B1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new Sc(null),ne=z.context,re=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new N1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),ne.setTransform(re*x,0,0,re*x,0,0),ne.yc(),ne.drawImage(b,0,0),a.gi.push(y))}D1.className="PictureCacheArray";function N1(a,y){this.source=a,this.ratio=y}N1.className="PictureCacheInstance";function Tg(){this.os=new vi,this.mc=null}Tg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new vi,this.mc=null};function Og(a,y,x,E,b,z){a.mc=new Os,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function Lx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Tg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new ko(vs);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},Tg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new ko(ma);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function yh(a,y,x,E,b,z,ne){var re;re===void 0&&(re=!1);var oe=new ko(nl);oe.point1X=y,oe.point1Y=x,oe.point2X=E,oe.point2Y=b,oe.endX=z,oe.endY=ne,re&&oe.close(),a.mc.segments.add(oe)}function Gm(a,y,x,E,b){var z;z===void 0&&(z=!1);var ne=new ko(Ue);ne.point1X=y,ne.point1Y=x,ne.endX=E,ne.endY=b,z&&ne.close(),a.mc.segments.add(ne)}Tg.prototype.arcTo=function(a,y,x,E,b,z,ne){z===void 0&&(z=0),ne===void 0&&(ne=!1);var re=new ko(rt);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=E,re.radiusX=b,re.radiusY=z!==0?z:b,ne&&re.close(),this.mc.segments.add(re)};function Fx(a,y,x,E,b,z,ne,re){var oe;oe===void 0&&(oe=!1),y=new ko(gt,ne,re,y,x,E,b,z),oe&&y.close(),a.mc.segments.add(y)}function k1(a){var y=Km;return y!==null?(Km=null,y.reset(a),y):(y=new Tg,y.reset(a),y)}var Km=null;Tg.className="StreamGeometryContext";function Il(a,y){var x=a.toLowerCase(),E=Kt.Ze;E[a]=y,E[x]=a}Il("Rectangle",function(a,y,x){a="r"+y+","+x;var E=Kt.Mf[a];return E!==void 0||(E=new vi(vi.u),E.endX=y,E.endY=x,Kt.Nf<Kt.vm&&(Kt.Mf[a]=E,Kt.Nf++)),E}),Il("Square",function(a,y,x){a="s"+y+","+x;var E=Kt.Mf[a];return E!==void 0||(E=new vi(vi.u),E.endX=y,E.endY=x,E.defaultStretch=Gi,Kt.Nf<Kt.vm&&(Kt.Mf[a]=E,Kt.Nf++)),E}),Il("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 E="rr"+y+","+x+","+a,b=Kt.Mf[E];if(b!==void 0)return b;var z=a*Kt.wg;return b=new vi().add(new Os(a,0,!0).add(new ko(ma,y-a,0)).add(new ko(nl,y,a,y-z,0,y,z)).add(new ko(ma,y,x-a)).add(new ko(nl,y-a,x,y,x-z,y-z,x)).add(new ko(ma,a,x)).add(new ko(nl,0,x-a,z,x,0,x-z)).add(new ko(ma,0,a)).add(new ko(nl,a,0,0,z,z,0).close())),1<z&&(b.spot1=new Zi(0,0,z,z),b.spot2=new Zi(1,1,-z,-z)),Kt.Nf<Kt.vm&&(Kt.Mf[E]=b,Kt.Nf++),b}),Il("Border","RoundedRectangle"),Il("Ellipse",function(a,y,x){a="e"+y+","+x;var E=Kt.Mf[a];return E!==void 0||(E=new vi(vi.F),E.endX=y,E.endY=x,E.spot1=cc,E.spot2=au,Kt.Nf<Kt.vm&&(Kt.Mf[a]=E,Kt.Nf++)),E}),Il("Circle",function(a,y,x){a="c"+y+","+x;var E=Kt.Mf[a];return E!==void 0||(E=new vi(vi.F),E.endX=y,E.endY=x,E.spot1=cc,E.spot2=au,E.defaultStretch=Gi,Kt.Nf<Kt.vm&&(Kt.Mf[a]=E,Kt.Nf++)),E}),Il("TriangleRight",function(a,y,x){return new vi().add(new Os(0,0).add(new ko(ma,y,.5*x)).add(new ko(ma,0,x).close())).pm(0,.25,.5,.75)}),Il("TriangleDown",function(a,y,x){return new vi().add(new Os(0,0).add(new ko(ma,y,0)).add(new ko(ma,.5*y,x).close())).pm(.25,0,.75,.5)}),Il("TriangleLeft",function(a,y,x){return new vi().add(new Os(y,x).add(new ko(ma,0,.5*x)).add(new ko(ma,y,0).close())).pm(.5,.25,1,.75)}),Il("TriangleUp",function(a,y,x){return new vi().add(new Os(y,x).add(new ko(ma,0,x)).add(new ko(ma,.5*y,0).close())).pm(.25,.5,.75,1)}),Il("Triangle","TriangleUp"),Il("Diamond",function(a,y,x){return new vi().add(new Os(.5*y,0).add(new ko(ma,0,.5*x)).add(new ko(ma,.5*y,x)).add(new ko(ma,y,.5*x).close())).pm(.25,.25,.75,.75)}),Il("LineH",function(a,y,x){return a=new vi(vi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Il("LineV",function(a,y,x){return a=new vi(vi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Il("None","Rectangle"),Il("BarH","Rectangle"),Il("BarV","Rectangle"),Il("MinusLine","LineH"),Il("PlusLine",function(a,y,x){return new vi().add(new Os(0,x/2,!1).add(new ko(ma,y,x/2)).add(new ko(vs,y/2,0)).add(new ko(ma,y/2,x)))}),Il("XLine",function(a,y,x){return new vi().add(new Os(0,x,!1).add(new ko(ma,y,0)).add(new ko(vs,0,0)).add(new ko(ma,y,x)))}),Il("LineRight",function(a,y,x){return new vi().add(new Os(.25*y,0,!1).add(new ko(ma,.75*y,.5*x)).add(new ko(ma,.25*y,x)))}),Il("LineDown",function(a,y,x){return new vi().add(new Os(0,.25*x,!1).add(new ko(ma,.5*y,.75*x)).add(new ko(ma,y,.25*x)))}),Il("LineLeft",function(a,y,x){return new vi().add(new Os(.75*y,0,!1).add(new ko(ma,.25*y,.5*x)).add(new ko(ma,.75*y,x)))}),Il("LineUp",function(a,y,x){return new vi().add(new Os(0,.75*x,!1).add(new ko(ma,.5*y,.25*x)).add(new ko(ma,y,.75*x)))}),Kt.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 Iv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=fo,this.ir=null,this.jr="",this.lr=Yo,this.Gq="",this.Hq=As,this.Pq=uo,this.Kq=wr,this.Up=null,this.Cq=127,this.zr=Uo,this.yr="gray",this.Vg=4}Iv.prototype.copy=function(){var a=new Iv;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 Qi(a,y){a===void 0||a instanceof Ys||typeof a=="string"?ai.call(this,a):(ai.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 qe(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Cn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Ut(Qi,ai),Qi.prototype.cloneProtected=function(a){ai.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},De=Qi.prototype,De.Af=function(a){ai.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},De.toString=function(){var a=Zn(this.constructor)+"#"+yo(this);return this.data!==null&&(a+="("+Jn(this.data)+")"),a};function gu(a){a.P===null?a.P=new Iv:a.P.nc&&(a.P=a.P.copy())}De.th=function(){ai.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},De.gk=function(a,y,x,E,b,z,ne){var re=this.diagram;re!==null&&(a===ci&&y==="elements"?b instanceof ai?Mf(b,function(oe){uy(re.partManager,oe),dh(re,oe)}):Sd(re,b):a===Ei&&y==="elements"&&(b instanceof ai?Mf(b,function(oe){cy(re.partManager,oe,re)}):Kf(re,b)),re.cb(a,y,x,E,b,z,ne))},De.La=function(a){if(ai.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof ai&&Mf(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Qi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Qi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Qi.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new Kn),y.Tf!==a&&(y.category=a),E.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)))}}},Qi.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Qi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=En();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)}},Qi.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Rr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Go))break e;xc(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ai.Link),x.adornedObject=y)}if(x!==null){x.type===ai.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Dx(this,a),y=this.adornments;y.next();)y.value.La()}},Qi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Rv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Dx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Vm(a){if(Kh(a)===!1){jv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function T1(a){if(a.G|=2097152,Kh(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||R1(a,y,x),x=a.Ib;var E=Cn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),Cn.free(E),jv(a,!1)}}Qi.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new Wr);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},Qi.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=xo;this.locationSpot.sb()&&(z=this.locationSpot);var ne=qe.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ne.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ne),ne.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ne),ne.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ne.yi(y,x,E,b,z);a.rotate(this.Kb,ne.x,ne.y),qe.free(ne)}},Qi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Qi.prototype.moveTo=function(a,y,x){a=qe.allocAt(a,y),this.move(a,x),qe.free(a)},Qi.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())},Qi.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())},Qi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Kn),y.I(a)!==null)return y.I(a);var x=ai.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Sh(a,y,x,E){E===void 0&&(E=new qe),x=x.Mc()?xo:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}Qi.prototype.mi=function(a){return a===void 0&&(a=new Cn),a.assign(this.actualBounds)},Qi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function O1(a){var y=qe.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Vr?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/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 Df(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=h1(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var ne=a.shadowBlur;return a=a.shadowOffset,z+=ne,y+=ne,E-=ne/2,b-=ne/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}Qi.prototype.arrange=function(){if(Jl(this)===!1)T1(this);else{xd(this,!1);var a=this.Ib,y=Cn.alloc();y.assign(a);var x=Vh(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;R1(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Kt.B(y.width,a.width)&&Kt.B(y.height,a.height)||0<=this.vw&&this.C(16),Cn.free(y),jv(this,!1)}},De=Qi.prototype,De.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=Cn.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),Cn.free(b)}!(this.G&65536)&&a.D(y)||H1(this,E,x),x.N(),!a.w()&&!y.w()||Lo(a,y)||(this instanceof Mi&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},De.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&I1(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new qe(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),Kh(this)===!1&&Jl(this)===!1&&(Vm(this),T1(this)),!0};function I1(a,y,x,E,b){y===null||a instanceof Go||(y=y.animationManager,y.zb&&Sl(y,a,new qe(E,b),x))}De.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;Kh(this)||Jl(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}Vm(this)},De.Av=function(){this.G&=-2097153,Vm(this)};function R1(a,y,x){var E=O1(a),b=a.diagram,z=x.w(),ne=y.w();z&&ne?a.G&2097152?z1(a,y,x,b,E):j1(a,y,x,b,E):z?z1(a,y,x,b,E):ne&&j1(a,y,x,b,E),a.G|=2097152,qe.free(E),a.Uk()}function z1(a,y,x,E,b){var z=y.x,ne=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Go||Sl(x,a,new qe(z,ne),y),E||y.x===z&&y.y===ne||a.g("position",new qe(z,ne),y.copy()))}function j1(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function H1(a,y,x){Hv(a,!1),a instanceof Mi&&Xl(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?Vh(a)?(sa(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}De.si=function(){return!0},De.Zc=function(){return!0},De.ph=function(){return!1},De.Dd=function(){return!0};function zv(a,y,x,E){y.constructor===a.constructor||G1||(G1=!0,Li('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),Li(" Old class: "+Zn(a.constructor)+", new class: "+Zn(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,ne=a.isHighlighted,re=!0,oe=!0,le=!1;a instanceof Mi&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,le=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=ne?a.G|524288:a.G&-524289,a instanceof Mi&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=le?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}Qi.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},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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 Kh(a){return(a.G&32768)!==0}function jv(a,y){a.G=y?a.G|32768:a.G&-32769}function Hv(a,y){a.G=y?a.G|65536:a.G&-65537}function Vh(a){return(a.G&131072)!==0}De=Qi.prototype,De.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Ym(a,y){a.G=y?a.G|1048576:a.G&-1048577}De.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},De.N=function(){var a=this.diagram;a!==null&&!Jl(this)&&!Kh(this)&&this.isVisible()&&this.Ib.w()&&a.N(Df(this,this.Ib))},De.v=function(){ai.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Mi&&this.labeledLink!==null&&_l(this.labeledLink),a.$b(!0))},De.Vo=function(a){a||(a=this.Ah,a!==null&&Yv(a,this))},De.Wo=function(a){a||(a=this.Ah,a!==null&&Uv(a,this))},De.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},De.oz=function(){return Wv(this,this)};function Wv(a,y){var x=y.containingGroup;return x!==null?1+Wv(a,x):y instanceof Mi&&(y=y.labeledLink,y!==null)?Wv(a,y):0}De.sz=function(){return W1(this,this)};function W1(a,y){var x=y.containingGroup;return x!==null||y instanceof Mi&&(x=y.labeledLink,x!==null)?W1(a,x):y}De.Td=function(a){return a instanceof Rr?Zv(this,this,a):!1};function Zv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Zv(a,E,x)?y instanceof Mi&&(y=y.labeledLink,y!==null)?Zv(a,y,x):!1:!0}De.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Rr&&Ym(y,!0),y instanceof Mi){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 Mi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Rr&&Ym(y,!1),y instanceof Mi&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Qi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Mi&&this.isLinkLabel)},Qi.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 Mi&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function Z1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Yh(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Go)){if(a.add(y),y instanceof Mi){if(x&&y instanceof Rr)for(var ne=y.memberParts;ne.next();)Yh(a,ne.value,x,E,b,z);if(b!==!1)for(ne=y.linksConnected;ne.next();){var re=ne.value;if(!a.contains(re)){var oe=re.fromNode,le=re.toNode;oe=oe===null||a.contains(oe),le=le===null||a.contains(le),(b?oe&&le:oe||le)&&Yh(a,re,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)Yh(a,y.value,x,E-1,b,z)}else if(y instanceof fi)for(y=y.labelNodes;y.next();)Yh(a,y.value,x,E,b,z)}}bt.Object.defineProperties(Qi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Ir: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 E=y.pc(-1,this,!0);if(0<=E&&x.cb(Ei,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(ci,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(gu(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&&Lu(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 Go?this.type!==ai.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:uo},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),gu(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:wr},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),gu(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&&(gu(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:As},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),gu(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,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Jl(this)===!1&&(Vm(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),I1(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,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,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof Go)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof Go?this instanceof Go&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(xc(x),x=x.copy(),x!==null&&zv(this,x,y,a))):(z!==null&&z.jm(E,a),x=gS(x.partManager,E,a),x!==null&&(xc(x),x=x.copy(),x===null||x instanceof fi||(E=this.location.copy(),zv(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){zv(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 E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},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&&(gu(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&&(gu(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&&(gu(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 fi?(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&&(gu(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&&(gu(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&&(gu(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:fo},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),gu(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&&(gu(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&&(gu(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:Yo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),gu(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&&at("Cannot make a Group a member of itself: "+this.toString()),at("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Uv(y,this):this instanceof Rr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Yv(a,this):this instanceof Rr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Rr){for(x=new Wn,Yh(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Mi)for(E=E.linksConnected;E.next();)Ig(E.value)}if(this instanceof Mi){for(x=this.linksConnected;x.next();)Ig(x.value);x=this.labeledLink,x!==null&&Ig(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Lu(y,-1,a))}}else at("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&&(gu(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Mi&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(gu(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&&(gu(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Uo},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),gu(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&&(gu(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&&(gu(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Qi.prototype.invalidateLayout=Qi.prototype.C,Qi.prototype.findCommonContainingGroup=Qi.prototype.px,Qi.prototype.isMemberOf=Qi.prototype.Td,Qi.prototype.findTopLevelPart=Qi.prototype.sz,Qi.prototype.findSubGraphLevel=Qi.prototype.oz,Qi.prototype.ensureBounds=Qi.prototype.Va,Qi.prototype.getDocumentBounds=Qi.prototype.mi,Qi.prototype.findObject=Qi.prototype.fb,Qi.prototype.moveTo=Qi.prototype.moveTo,Qi.prototype.invalidateAdornments=Qi.prototype.Wb,Qi.prototype.clearAdornments=Qi.prototype.Ej,Qi.prototype.removeAdornment=Qi.prototype.Jf,Qi.prototype.addAdornment=Qi.prototype.bh,Qi.prototype.findAdornment=Qi.prototype.Pj,Qi.prototype.updateTargetBindings=Qi.prototype.La;var G1=!1;Qi.className="Part",Qi.LayoutNone=0,Qi.LayoutAdded=1,Qi.LayoutRemoved=2,Qi.LayoutShown=4,Qi.LayoutHidden=8,Qi.LayoutNodeSized=16,Qi.LayoutGroupLayout=32,Qi.LayoutNodeReplaced=64,Qi.LayoutStandard=127,Qi.LayoutAll=16777215;function Go(a,y){a===void 0||a instanceof Ys||typeof a=="string"?Qi.call(this,a):(Qi.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)}Ut(Go,Qi),Go.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Go.prototype.updateRelationshipsFromData=function(){},Go.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof fi&&y instanceof Vr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof Vr&&(b.ua=a)}}},Go.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Jl(a))},Go.prototype.Zc=function(){return!1},Go.prototype.gk=function(a,y,x,E,b,z,ne){if(a===ci&&y==="elements"){if(b instanceof $l)this.$a===null&&(this.$a=b);else if(b instanceof ai){var re=b.Nl(function(oe){return oe instanceof $l});re instanceof $l&&this.$a===null&&(this.$a=re)}}else a===Ei&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ai&&this.$a.rg(E)&&(this.$a=null));Qi.prototype.gk.call(this,a,y,x,E,b,z,ne)},Go.prototype.updateAdornments=function(){},Go.prototype.Lj=function(){},bt.Object.defineProperties(Go.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}}}),Go.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Xs,this.er=_m,this.Kr=this.ij=this.Nq=this.Mq=null}Gv.prototype.copy=function(){var a=new Gv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Mi(a,y){a===void 0||a instanceof Ys||typeof a=="string"?Qi.call(this,a):(Qi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new An,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Ut(Mi,Qi),Mi.prototype.cloneProtected=function(a){Qi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},De=Mi.prototype,De.Af=function(a){Qi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function xh(a){a.Ba===null?a.Ba=new Gv:a.Ba.nc&&(a.Ba=a.Ba.copy())}De.th=function(){Qi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function K1(a,y){y!==null&&(a.af===null&&(a.af=new Wn),a.af.add(y))}function V1(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}De.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=V1(this,a,y,x),a!==null&&a.Sl()},De.gk=function(a,y,x,E,b,z,ne){a===ci&&y==="elements"?this.wc=null:a===Ei&&y==="elements"&&(this.wc=null),Qi.prototype.gk.call(this,a,y,x,E,b,z,ne)},De.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Du(x.fromPort),Du(x.toPort),x.bb())}};function Y1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Du(x.fromPort),Du(x.toPort),x.bb())}}function Du(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Du(y.port)}}De.si=function(){return!0},Mi.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Mi.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Mi.prototype.isVisible=function(){if(!Qi.prototype.isVisible.call(this))return!1;var a=!0,y=gh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===gh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===js){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Pg&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Mi.prototype.Zb=function(a){Qi.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Mi.prototype.qx=function(){var a=new Wn,y=new Wn;return U1(this,this,a,y),y.iterator};function U1(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(ne){ne.isTreeLink?(b?ne.fromNode===y:ne.toNode===y)&&U1(a,b?ne.toNode:ne.fromNode,x,E):E.add(ne)})}}Mi.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Ui(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},De=Mi.prototype,De.Mo=function(a){a===void 0&&(a=null);var y=new Ui(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},De.Sd=function(a){a===void 0&&(a=null);var y=new Ui(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},De.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Wn,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Wn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new hr(x):Ir},De.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Wn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new hr(x):Ir},De.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new Wn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new hr(x):Ir},De.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Ui(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},De.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Ui(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function Um(a,y,x){Du(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,ne=a.diagram;ne!==null&&(z=ne.aa,ne.aa=!0),b(a,y,x),ne!==null&&(ne.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Xm(a,y,x){Du(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var ne=!0;b!==null&&(ne=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=ne)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.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,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):Ap(y)))}function Ap(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 E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Mi.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},De=Mi.prototype,De.Vo=function(a){Qi.prototype.Vo.call(this,a),a||(Ap(this),a=this.Yk,a!==null&&nS(a,this))},De.Wo=function(a){Qi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},De.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 E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,Qi.prototype.Lj.call(this)},De.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;X1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function X1(a){a.wc===null?a.wc=new Kn:a.wc.clear(),a.qm(a,function(y,x){_1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function _1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Kv(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=En()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);kn(x)}}}De.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 E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},De.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 E=x.value;if(E.isTreeLink&&(a=E.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()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},De.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Ym(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;)Ym(y,!1),y=y.pg();return x},De.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},De.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Mi)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},De.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new Wn;return a(this,y),y},De.uz=function(){return J1(this,this)};function J1(a,y){return y=y.pg(),y===null?0:1+J1(a,y)}De.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Ui(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},De.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new An,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new An,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new hr(x):Ir},De.wz=function(a){a===void 0&&(a=1/0);var y=new Wn;return Yh(y,this,!1,a,!0),y},Mi.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Wn;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gh),y.Ue=!1}};function Q1(a,y,x,E,b,z,ne){if(1<E)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),Q1(oe,y,x,E-1,b,z,ne)))}else $1(a,y,x,b,z,ne)}function $1(a,y,x,E,b,z){for(var ne=b===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var le=re.value;if(le.isTreeLink&&(le=le.To(a),le!==null&&le!==a)){var ce=y.contains(le);if(ce||y.add(le),ne){var me=x?le.Oo():le.Po();oe.uv=a,me.all(function(Ce){return function(Me){return Me===Ce.uv||!Me.isTreeExpanded}}(oe))&&E.Aj(le,b),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,ce||$1(le,y,x,E,b,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}Mi.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Wn;x.add(this),q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===gh),y.Ue=!1}};function q1(a,y,x,E,b,z,ne){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),le={};oe.next();){var ce=oe.value;if(ce.isTreeLink&&(re||ce.fd||ce.bb(),ce=ce.To(a),ce!==null&&ce!==a&&!y.contains(ce))){if(y.add(ce),!re){ce.Zb(!0),ce.oh();var me=x?ce.Oo():ce.Po();le.vv=a,me.all(function(Ce){return function(Me){return Me===Ce.vv||!Me.isTreeExpanded}}(le))&&b.Cj(ce,z)}(2<E||ce.wasTreeExpanded)&&(ce.wasTreeExpanded=!1,q1(ce,y,x,E-1,b,z,ne))}le={vv:le.vv}}a.isTreeExpanded=!0}bt.Object.defineProperties(Mi.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:_m},set:function(a){var y=this.portSpreading;y!==a&&(xh(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&&Xl(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Xs},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),xh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Xl(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&&(xh(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&&(xh(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&&(xh(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,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var ne=z.wa(E);ne!==void 0&&z.Qx(b,ne)}}this.containingGroup=null}this.Yk=a,a!==null&&(nS(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),_l(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&X1(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 E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}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&&(xh(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))}}}),Mi.prototype.expandTree=Mi.prototype.expandTree,Mi.prototype.collapseTree=Mi.prototype.collapseTree,Mi.prototype.findTreeParts=Mi.prototype.wz,Mi.prototype.findTreeChildrenNodes=Mi.prototype.Ou,Mi.prototype.findTreeChildrenLinks=Mi.prototype.Qo,Mi.prototype.findTreeLevel=Mi.prototype.uz,Mi.prototype.findTreeParentChain=Mi.prototype.vz,Mi.prototype.findTreeParentNode=Mi.prototype.pg,Mi.prototype.findTreeParentLink=Mi.prototype.kh,Mi.prototype.findCommonTreeParent=Mi.prototype.gz,Mi.prototype.findTreeRoot=Mi.prototype.xz,Mi.prototype.isInTreeOf=Mi.prototype.Nz,Mi.prototype.findPort=Mi.prototype.ns,Mi.prototype.findLinksTo=Mi.prototype.kz,Mi.prototype.findLinksBetween=Mi.prototype.jz,Mi.prototype.findNodesInto=Mi.prototype.Oo,Mi.prototype.findNodesOutOf=Mi.prototype.Po,Mi.prototype.findNodesConnected=Mi.prototype.Mu,Mi.prototype.findLinksInto=Mi.prototype.Sd,Mi.prototype.findLinksOutOf=Mi.prototype.Mo,Mi.prototype.findExternalTreeLinksConnected=Mi.prototype.qx,Mi.prototype.invalidateConnectedLinks=Mi.prototype.Bd,Mi.prototype.invalidateLinkBundle=Mi.prototype.Lz;var Bx=new Jt(Mi,"SpreadingNone",10),_m=new Jt(Mi,"SpreadingEvenly",11),Vv=new Jt(Mi,"SpreadingPacked",12);Mi.className="Node",Mi.SpreadingNone=Bx,Mi.SpreadingEvenly=_m,Mi.SpreadingPacked=Vv;function Rr(a,y){a===void 0||a instanceof Ys||typeof a=="string"?Mi.call(this,a):(Mi.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Wn,this.$a=null,this.Sc=new Ha,this.Sc.group=this,this.gl=new Wn,this.tb=this.$p=null,y&&Object.assign(this,y)}Ut(Rr,Mi),Rr.prototype.cloneProtected=function(a){Mi.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof $l});y instanceof $l?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())},De=Rr.prototype,De.Af=function(a){Mi.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 Mi)x.Bd(y);else if(x instanceof fi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},De.gk=function(a,y,x,E,b,z,ne){if(a===ci&&y==="elements"){if(b instanceof $l)this.$a===null?this.$a=b:this.$a!==b&&at("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof ai){var re=b.Nl(function(oe){return oe instanceof $l});re instanceof $l&&(this.$a===null?this.$a=re:this.$a!==re&&at("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ei&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ai&&this.$a.rg(E)&&(this.$a=null));Mi.prototype.gk.call(this,a,y,x,E,b,z,ne)},De.Xl=function(a,y){Mi.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ai.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ai&&(a=a.Pb()),this.tb===null&&(this.tb=new Cn),a.mi(this.tb),a instanceof Vr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},De.eh=function(a,y,x,E){this.nf=this.$a,Mi.prototype.eh.call(this,a,y,x,E)},De.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof fi||y.Va()}),Mi.prototype.Va.call(this)},De.si=function(){if(!Mi.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Mi){if(y.isVisible()&&Jl(y))return!1}else if(y instanceof fi&&y.isVisible()&&Jl(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Yv(a,y){if(a.Gn.add(y)){y instanceof Rr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof fi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Uv(a,y){if(a.Gn.remove(y)){y instanceof Rr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof fi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}De.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)}Mi.prototype.Lj.call(this)},Rr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=bn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Rr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=bn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Rr.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))},De=Rr.prototype,De.Bd=function(a){var y=(this.U&65536)!==0;if(Mi.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 E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(Du(x.fromPort),Du(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(Du(x.fromPort),Du(x.toPort),x.bb()))}}},De.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new Wn,E=y.iterator;E.next();){var b=E.value;if(b instanceof Mi)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},De.iz=function(){var a=this.Rj();a.add(this);for(var y=new Wn,x=a.iterator;x.next();){var E=x.value;if(E instanceof Mi)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},De.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new Wn;return a(this,y),y},De.Rj=function(){var a=new Wn;return Yh(a,this,!0,0,!0),a.remove(this),a},De.Zb=function(a){Mi.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Rr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();eS(this,y,a,this),a.Ue=!1}};function eS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Rr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,eS(z,y,x,E)),z instanceof Mi)z.Bd(y),x.Aj(z,E);else if(z instanceof fi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Rr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();tS(this,y,a,this),a.Ue=!1}};function tS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Rr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,tS(z,y,x,E)),z instanceof Mi)z.Bd(y),x.Cj(z,E);else if(z instanceof fi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Rr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=qe.alloc(),Mi.prototype.move.call(this,a,y),a=new Wn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof fi&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof Mi&&b.isLinkLabel)){var ne=b.position,re=b.location;ne.w()?(z.x=ne.x+E,z.y=ne.y+x,b.position=z):re.w()&&(z.x=re.x+E,z.y=re.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof fi&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(ne=b.position,z.x=ne.x+E,z.y=ne.y+x,z.w()?b.move(z):b.bb(),_v(b)&&b.bb());qe.free(z)}},bt.Object.defineProperties(Rr.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&&at("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&&(xh(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&&(xh(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&&(xh(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 E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.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&&(xh(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)}}}),Rr.prototype.expandSubGraph=Rr.prototype.expandSubGraph,Rr.prototype.collapseSubGraph=Rr.prototype.collapseSubGraph,Rr.prototype.findSubGraphParts=Rr.prototype.Rj,Rr.prototype.findContainingGroupChain=Rr.prototype.hz,Rr.prototype.findExternalNodesConnected=Rr.prototype.iz,Rr.prototype.findExternalLinksConnected=Rr.prototype.Lu,Rr.prototype.ensureBounds=Rr.prototype.Va,Rr.className="Group";function $l(a){jt.call(this),this.yb=qo,this.ko=new Cn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Ut($l,jt),$l.prototype.cloneProtected=function(a){jt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},$l.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return aa(0,0,y.width,y.height,a.x,a.y)},$l.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Rr||a instanceof Go)||at("Placeholder is not inside a Group or Adornment."),a instanceof Rr){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(cs(E,(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,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=qe.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),qe.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var ne=0;z instanceof Vr&&(ne=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,le=(oe.width+ne)*re;ne=(oe.height+ne)*re,a.type!==ai.Link&&(re=z.ga(a.category==="Selection"?As:a.locationSpot,qe.alloc()),a.location=re,qe.free(re)),isNaN(le)||isNaN(ne)?(a=z.ga(As,qe.alloc()),le=Cn.allocAt(a.x,a.y,0,0),le.Ye(z.ga(pa,a)),le.Ye(z.ga(zl,a)),le.Ye(z.ga(Ll,a)),cs(y,le.width+E||0,le.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),qe.free(a),Cn.free(le)):(cs(y,le+E||0,ne+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},$l.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},$l.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Rr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=Cn.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Rr&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),Cn.free(x),E&&y instanceof Rr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},$l.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Rr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,ne=y.memberParts;ne.next();){var re=ne.value;if(re.isVisible()){if(re instanceof fi&&(!y.computesBoundsIncludingLinks||Hu(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<E&&(E=re.top),re.right>b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},bt.Object.defineProperties($l.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Yn(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),$l.className="Placeholder";function fi(a){Qi.call(this,ai.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=ql,this.Om=0,this.Qm=ql,this.Rm=NaN,this.qj=$v,this.po=.5,this.wd=null,this.Nb=new An().freeze(),this.Tg=this.Mg=null,this.ml=new Cn,this.ua=new vi,this.u=this.o=this.Sf=this.Wf=null,this.su=new qe,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Ut(fi,Qi),fi.prototype.cloneProtected=function(a){Qi.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())},De=fi.prototype,De.Af=function(a){Qi.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&&Du(y),a=a.toPort,a!==null&&Du(a)},De.qb=function(a){a.classType===fi?(a.value&2)===2?this.routing=a:a===Zu||a===wh||a===zg?this.curve=a:a===Fp||a===t0||a===n0?this.adjusting=a:a!==$v&&a!==ql&&at("Unknown Link enum value for a Link property: "+a):Qi.prototype.qb.call(this,a)},De.Xc=function(){this.ba===null&&(this.ba=new pp)},De.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Jl(a)||Kh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Jl(a)||Kh(a)))},De.zv=function(){return!1},De.Av=function(){},De.Zc=function(){return!1},fi.prototype.computeAngle=function(a,y,x){return fi.computeAngle(y,x)},fi.computeAngle=function(a,y){switch(a){default:case ql:a=0;break;case Dp:a=y;break;case Bp:a=y+90;break;case Np:a=y-90;break;case qv:a=y+180;break;case i0:a=Kt.bp(y),90<a&&270>a&&(a-=180);break;case kp:a=Kt.bp(y+90),90<a&&270>a&&(a-=180);break;case Tp:a=Kt.bp(y-90),90<a&&270>a&&(a-=180);break;case r0:if(a=Kt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Kt.bp(a)};function Ig(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&Uv(x,a),a.Ah=y,y!==null&&Yv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ne=a.diagram;ne!==null&&(z=ne.aa,ne.aa=!0),b(a,x,y),ne!==null&&(ne.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}De=fi.prototype,De.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Qi.prototype.oh.call(this)},De.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},De.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function nS(a,y){a.wd===null&&(a.wd=new Wn),a.wd.add(y),a.v()}De.Vo=function(a){if(Qi.prototype.Vo.call(this,a),Bf(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 E=this.toPort;x===a&&E===y||Um(x,this,E)}Mp(this)}},De.Wo=function(a){if(Qi.prototype.Wo.call(this,a),Bf(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Xm(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Xm(x,this,E)}Lp(this)}},De.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))},fi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},fi.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?Qi.prototype.move.call(this,a,!1):(a=qe.allocAt(x.x+E,x.y+b),Qi.prototype.move.call(this,a,!1),qe.free(a)),Ph(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},fi.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},fi.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},fi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Er),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.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),E=this.i(1);var b=this.i(2);return Kt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Kt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ne=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=ne[z],!(E+b>x/2));)E+=b,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-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},fi.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 E=this.i(x+2);return x=this.i(x+3),Kt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},De=fi.prototype,De.i=function(a){return this.Nb.s[a]},De.dd=function(a,y){this.Nb.cd(a,y)},De.L=function(a,y,x){this.Nb.cd(a,new qe(y,x))},De.Kz=function(a,y){this.Nb.Gb(a,y)},De.m=function(a,y,x){this.Nb.Gb(a,new qe(y,x))},De.ne=function(a){this.Nb.add(a)},De.yf=function(a,y){this.Nb.add(new qe(a,y))},De.pv=function(a){this.Nb.mb(a)},De.Fj=function(){this.Nb.clear()};function Ph(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 E=a.fd,b=new An,z=a.Nb.iterator;z.next();){var ne=z.value;b.add(new qe(ne.x+y,ne.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ne=a.diagram,isNaN(y)||isNaN(x)||ne!==null&&ne.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),_l(a)),E?Jm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ne!==null&&ne.animationManager.zb&&ya(ne.animationManager,a,b),a.g("points",z,b)}}De.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},De.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,ne=0;ne<z;ne++){var re=b[ne];x=Math.min(re.x,x),E=Math.min(re.y,E)}re=ne=1/0;for(var oe=y.s,le=oe.length,ce=0;ce<le;ce++){var me=oe[ce];ne=Math.min(me.x,ne),re=Math.min(me.y,re),me.freeze()}if(y.freeze(),le===z){for(z=0;z<le;z++)if(ce=b[z],me=oe[z],ce.x-x!==me.x-ne||ce.y-E!==me.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&ya(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},De.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),e0(a,!1))}De.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())}},De.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()}}},fi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(ig||(ig=new Mi,ig.desiredSize=Ao,ig.Va()),this.defaultFromPoint&&(ig.location=this.defaultFromPoint,ig.Va(),y=a=ig)):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 E=this.toNode,b=null;if(E===null?(rg||(rg=new Mi,rg.desiredSize=Ao,rg.Va()),this.defaultToPoint&&(rg.location=this.defaultToPoint,rg.Va(),b=E=rg)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,ne=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var re=Rg(ne),oe=Rg(x),le=y===b&&y!==null,ce=this.isOrthogonal,me=this.curve===Zu;this.Wf=le&&!ce?me=!0:!1;var Ce=this.computeAdjusting()===ql||le;if(!ce&&!le&&re&&oe){if(re=!1,!Ce&&3<=z&&(Ce=this.getLinkPoint(a,y,ne,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),re=this.adjustPoints(0,Ce,z-1,oe))&&(Ce=this.getLinkPoint(a,y,ne,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,Ce,z-1,oe)),!re)if(this.Fj(),me){z=this.getLinkPoint(a,y,ne,!0,!1,E,b),Ce=this.getLinkPoint(E,b,x,!1,!1,a,y),re=Ce.x-z.x,oe=Ce.y-z.y,le=this.computeCurviness(),me=ce=0;var Me=z.x+re/3,Be=z.y+oe/3,Re=Me,dt=Be;Kt.B(oe,0)?dt=0<re?dt-le:dt+le:(ce=-re/oe,me=Math.sqrt(le*le/(ce*ce+1)),0>le&&(me=-me),Re=(0>oe?-1:1)*me+Me,dt=ce*(Re-Me)+Be),Me=z.x+2*re/3,Be=z.y+2*oe/3;var et=Me,Pt=Be;Kt.B(oe,0)?Pt=0<re?Pt-le:Pt+le:(et=(0>oe?-1:1)*me+Me,Pt=ce*(et-Me)+Be),this.Fj(),this.ne(z),this.yf(Re,dt),this.yf(et,Pt),this.ne(Ce),this.dd(0,this.getLinkPoint(a,y,ne,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,Ce=b,E=this.getLinkPoint(a,y,ne,!0,!1,z,Ce),b=this.getLinkPoint(z,Ce,x,!1,!1,a,y),this.hasCurviness()?(Ce=b.x-E.x,x=b.y-E.y,ne=this.computeCurviness(),a=E.x+Ce/2,y=E.y+x/2,z=a,re=y,Kt.B(x,0)?re=0<Ce?re-ne:re+ne:(Ce=-Ce/x,z=Math.sqrt(ne*ne/(Ce*Ce+1)),0>ne&&(z=-z),z=(0>x?-1:1)*z+a,re=Ce*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=Cn.alloc(),y.mi(re),oe=re.ca(b),Ce.mi(re),le=re.ca(E),(oe||le)&&(ne=y.ga($m(ne),new qe),this.dd(0,this.getLinkPointFromPoint(a,y,ne,b,!0,ne)),x=Ce.ga($m(x),new qe),this.dd(1,this.getLinkPointFromPoint(z,Ce,x,E,!1,x))),Cn.free(re))}else{me=this.isAvoiding,Ce&&(ce&&me||le)&&this.Fj();var At=le?this.computeCurviness():0;me=this.getLinkPoint(a,y,ne,!0,ce,E,b),Me=Re=Be=0,(ce||!re||le)&&(dt=this.computeEndSegmentLength(a,y,ne,!0),Me=this.getLinkDirection(a,y,me,ne,!0,ce,E,b),le&&(re||ne.D(x)||!ce&&ne.x+x.x===1&&ne.y+x.y===1)&&(Me-=ce?90:30,0>At&&(Me-=180)),0>Me?Me+=360:360<=Me&&(Me-=360),le&&(dt+=Math.abs(At)*(ce?1:2)),Me===0?Be=dt:Me===90?Re=dt:Me===180?Be=-dt:Me===270?Re=-dt:(Be=dt*Math.cos(Me*Math.PI/180),Re=dt*Math.sin(Me*Math.PI/180)),ne.Mc()&&le&&(dt=y.ga(xo,qe.alloc()),et=qe.allocAt(dt.x+1e3*Be,dt.y+1e3*Re),this.getLinkPointFromPoint(a,y,dt,et,!0,me),qe.free(dt),qe.free(et))),dt=this.getLinkPoint(E,b,x,!1,ce,a,y);var Dt=Pt=et=0;if(ce||!oe||le){var Rt=this.computeEndSegmentLength(E,b,x,!1);Dt=this.getLinkDirection(E,b,dt,x,!1,ce,a,y),le&&(oe||ne.D(x)||!ce&&ne.x+x.x===1&&ne.y+x.y===1)&&(Dt+=ce?0:30,0>At&&(Dt+=180)),0>Dt?Dt+=360:360<=Dt&&(Dt-=360),le&&(Rt+=Math.abs(At)*(ce?1:2)),Dt===0?et=Rt:Dt===90?Pt=Rt:Dt===180?et=-Rt:Dt===270?Pt=-Rt:(et=Rt*Math.cos(Dt*Math.PI/180),Pt=Rt*Math.sin(Dt*Math.PI/180)),x.Mc()&&le&&(x=b.ga(xo,qe.alloc()),ne=qe.allocAt(x.x+1e3*et,x.y+1e3*Pt),this.getLinkPointFromPoint(E,b,x,ne,!1,dt),qe.free(x),qe.free(ne))}x=me,(ce||!re||le)&&(x=new qe(me.x+Be,me.y+Re)),ne=dt,(ce||!oe||le)&&(ne=new qe(dt.x+et,dt.y+Pt)),!Ce&&!ce&&re&&3<z&&this.adjustPoints(0,me,z-2,ne)?this.dd(z-1,dt):!Ce&&!ce&&oe&&3<z&&this.adjustPoints(1,x,z-1,dt)?this.dd(0,me):!Ce&&(ce?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ne)?(this.dd(0,me),this.dd(z-1,dt)):(this.Fj(),this.ne(me),(ce||!re||le)&&this.ne(x),ce&&this.addOrthoPoints(x,Me,ne,Dt,a,E),(ce||!oe||le)&&this.ne(ne),this.ne(dt))}return!0};function Xv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}fi.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new qe),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var ne=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ne=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,le=a.m11*b,ce=b*(a.m21*a.dy-a.m22*a.dx),me=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*ne+E.y*oe+ce,E=E.x*re+E.y*le+me,ne=x.x*ne+x.y*oe+ce,x=x.x*re+x.y*le+me}return y.Sj(b,E,ne,x,z),a!==null&&z.transform(a),z};function Qm(a,y){var x=y.Zn;return x===null&&(x=new og,x.port=y,x.node=y.part,y.Zn=x),cS(x,a)}fi.prototype.getLinkPoint=function(a,y,x,E,b,z,ne,re){if(re===void 0&&(re=new qe),x.sb()&&!Rg(x))return y.ga(x,re),re;if(x.$c()){var oe=Qm(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===rS){var le=Qm(this,ne);if(le!==null&&oe.Gl<le.Gl){oe=qe.alloc(),le=qe.alloc();var ce=new Cn(y.ga(As,oe),y.ga(pa,le)),me=this.computeSpot(!E,ne);a=this.getLinkPoint(z,ne,me,!E,b,a,y,le),(x.Hf(tl)||x.Hf(fl))&&a.y>=ce.y&&a.y<=ce.y+ce.height?re.y=a.y:(x.Hf(hl)||x.Hf(wl))&&a.x>=ce.x&&a.x<=ce.x+ce.width&&(re.x=a.x),qe.free(oe),qe.free(le)}}return re}}return x=y.ga($m(x),qe.alloc()),this.pointsCount>(b?6:2)?(ne=E?this.i(1):this.i(this.pointsCount-2),b&&(ne=Xv(x,ne.copy()))):(oe=this.computeSpot(!E,ne),z=qe.alloc(),ne=ne.ga($m(oe),z),b&&(ne=Xv(x,ne)),qe.free(z)),this.getLinkPointFromPoint(a,y,x,ne,E,re),qe.free(x),re},fi.prototype.getLinkDirection=function(a,y,x,E,b,z,ne,re){e:if(E.sb())var oe=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(oe=Qm(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(xo,qe.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Xv(oe,re.copy()):x):(x=qe.alloc(),re=re.ga(xo,x),qe.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,qe.free(oe),oe=x}return E.Mc()&&ne.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),Rg(E)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},fi.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=Qm(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},fi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=xo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Yo?$a:y)):(a=y||this.toPort,a===null?a=xo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Yo?$a:y)),a};function Rg(a){return a===$a||a.x===.5&&a.y===.5}function $m(a){return a.x===.5&&a.y===.5?a:xo}fi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ql&&4<this.pointsCount?this.computeMidPoint(new qe):(a=y.Zn,a=a!==null?cS(a,this):null,a!==null?a.Zo:y.ga(xo))},fi.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},fi.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ne=z;if(z===void 0&&(ne=Wr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return yv(this,y,x,b),z===void 0&&Wr.free(ne),!0;if(this.Yc(a,ne)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,le=oe.length;le--;){var ce=oe[le];if(ce.visible||ce===this.locationObject){var me=ce.actualBounds,Ce=this.naturalBounds;if(!(me.x>Ce.width||me.y>Ce.height||0>me.x+me.width||0>me.y+me.height)){if(me=Wr.alloc(),me.set(ne),ce instanceof ai)re=ce.Cf(a,y,x,E,b,me);else if(this.path===ce){if(ce instanceof Vr)if(re=a,Ce=E,ce.pickable===!1)re=!1;else if(me.multiply(ce.transform),Ce)e:{var Me=re,Be=me;if(ce.fh(Me,Be))re=!0;else{if(Be===void 0&&(Be=ce.transform,Me.Re(ce.actualBounds))){re=!0;break e}re=Me.left,Ce=Me.right;var Re=Me.top;Me=Me.bottom;var dt=qe.alloc(),et=qe.alloc(),Pt=qe.alloc(),At=Wr.alloc();At.set(Be),At.bv(ce.transform),At.Vj(),et.x=Ce,et.y=Re,et.transform(At),dt.x=re,dt.y=Re,dt.transform(At),Be=!1,Ff(ce,dt,et,Pt)?Be=!0:(dt.x=Ce,dt.y=Me,dt.transform(At),Ff(ce,dt,et,Pt)?Be=!0:(et.x=re,et.y=Me,et.transform(At),Ff(ce,dt,et,Pt)?Be=!0:(dt.x=re,dt.y=Re,dt.transform(At),Ff(ce,dt,et,Pt)&&(Be=!0)))),Wr.free(At),qe.free(dt),qe.free(et),qe.free(Pt),re=Be}}else re=ce.fh(re,me)}else re=$s(ce,a,E,me);re&&(Ce=ce,y!==null&&(Ce=y(ce)),Ce&&(x===null||x(Ce))&&b.add(Ce)),Wr.free(me)}}}return z===void 0&&Wr.free(ne),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Wr.free(ne),!1},fi.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},fi.prototype.computeCorner=function(){if(this.curve===Zu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},fi.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},fi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=aS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,ne=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===Dp||E===i0||E===qv?a=Math.max(a,b):E===Np||E===Tp||E===Bp||E===kp?a=Math.max(a,ne):(y=y.ga(xo).ab(x.ga(xo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ne)+Math.abs(Math.cos(y)*b)+1)),this.curve===Zu&&(a*=1.333)}}return a},fi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===ql&&x.bb()}},fi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=oS;var y=this.Sf;if(y!==null){for(var x=En(),E=0,b=y.links,z=0;z<b.length;z++){var ne=b[z].computeSpacing();x.push(ne),E+=ne}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),kn(x)}}return a},fi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},fi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},fi.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===t0)return!1;b===n0&&(b=Fp)}switch(b){case t0:var z=this.i(a),ne=this.i(x);if(!z.Xa(y)||!ne.Xa(E)){b=z.x,z=z.y;var re=ne.x-b,oe=ne.y-z,le=Math.sqrt(re*re+oe*oe);if(!Kt.$(le,0)){if(Kt.$(re,0))var ce=0>oe?-Math.PI/2:Math.PI/2;else ce=Math.atan(oe/Math.abs(re)),0>re&&(ce=Math.PI-ce);ne=y.x;var me=y.y;re=E.x-ne;var Ce=E.y-me;for(oe=Math.sqrt(re*re+Ce*Ce),Kt.$(re,0)?Ce=0>Ce?-Math.PI/2:Math.PI/2:(Ce=Math.atan(Ce/Math.abs(re)),0>re&&(Ce=Math.PI-Ce)),le=oe/le,ce=Ce-ce,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-b,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),Kt.$(y,0)||(Kt.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ce,y*=le,this.L(a,ne+y*Math.cos(re),me+y*Math.sin(re)));this.dd(x,E)}}return!0;case n0:if(z=this.i(a),me=this.i(x),!z.Xa(y)||!me.Xa(E)){b=z.x,z=z.y,ne=me.x,me=me.y,le=(ne-b)*(ne-b)+(me-z)*(me-z),re=y.x,ce=y.y,oe=E.x,Ce=E.y;var Me=1;if(oe-re!==0){var Be=(Ce-ce)/(oe-re);Me=Math.sqrt(1+1/(Be*Be))}else Be=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Re=y.x,dt=y.y,et=.5;le!==0&&(et=((b-Re)*(b-ne)+(z-dt)*(z-me))/le);var Pt=b+et*(ne-b),At=z+et*(me-z);y=Math.sqrt((Re-Pt)*(Re-Pt)+(dt-At)*(dt-At)),dt<Be*(Re-Pt)+At&&(y=-y),0<Be&&(y=-y),Re=re+et*(oe-re),et=ce+et*(Ce-ce),Be!==0?(y=Re+y/Me,this.L(a,y,et-(y-Re)/Be)):this.L(a,Re,et+y)}this.dd(x,E)}return!0;case Fp:e:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),ne=this.i(a+2),re=z.x,ce=z.y,me=re,le=ce,Kt.B(b.y,z.y)?Kt.B(z.x,ne.x)?ce=y.y:Kt.B(z.y,ne.y)&&(re=y.x):Kt.B(b.x,z.x)&&(Kt.B(z.y,ne.y)?re=y.x:Kt.B(z.x,ne.x)&&(ce=y.y)),this.L(a+1,re,ce),b=this.i(x),z=this.i(x-1),ne=this.i(x-2),re=z.x,ce=z.y,oe=re,Ce=ce,Kt.B(b.y,z.y)?Kt.B(z.x,ne.x)?ce=E.y:Kt.B(z.y,ne.y)&&(re=E.x):Kt.B(b.x,z.x)&&(Kt.B(z.y,ne.y)?re=E.x:Kt.B(z.x,ne.x)&&(ce=E.y)),this.L(x-1,re,ce),_v(this))){this.L(a+1,me,le),this.L(x-1,oe,Ce),x=!1;break e}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},fi.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ne=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(Op,Op),oe.Bc(Op,Op),re.Ye(a),oe.Ye(x);var le=qe.alloc(),ce=qe.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&oe.right>a.x||E===90&&x.y>a.y&&oe.right>a.x?(le.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),E===180?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ce.x=le.x,ce.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(le.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ce.x=le.x,ce.y=x.y):E===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ce.y=le.y)):(le.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===180||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ce.x=x.x,ce.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(E===90||E===270)&&(le.h(Math.max((a.x+x.x)/2,a.x),a.y),ce.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===0?re.bottom:Math.max(re.bottom,oe.bottom)),ce.x=x.x,ce.y=le.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&oe.left<a.x||E===90&&x.y>a.y&&oe.left<a.x?(le.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),E===0?(le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ce.x=le.x,ce.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(le.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ce.x=le.x,ce.y=x.y):E===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ce.y=le.y)):(le.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?le.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===0||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ce.x=x.x,ce.y=le.y),le.y>re.top&&le.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(E===90||E===270)&&(le.h(Math.min((a.x+x.x)/2,a.x),a.y),ce.h(le.x,x.y)):(le.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===180?re.bottom:Math.max(re.bottom,oe.bottom)),ce.x=x.x,ce.y=le.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&oe.bottom>a.y||E===0&&x.x>a.x&&oe.bottom>a.y?(le.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),E===270?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ce.x=x.x,ce.y=le.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(le.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ce.x=x.x,ce.y=le.y):E===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ce.x=le.x)):(le.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===270&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ce.x=le.x,ce.y=x.y),le.x>re.left&&le.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(E===0||E===180)&&(le.h(a.x,Math.max((a.y+x.y)/2,a.y)),ce.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===90?re.right:Math.max(re.right,oe.right)),ce.x=le.x,ce.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&oe.top<a.y||E===0&&x.x>a.x&&oe.top<a.y?(le.h(a.x,x.y),ce.h((a.x+x.x)/2,x.y),E===90?(le.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ce.x=x.x,ce.y=le.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(le.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ce.x=x.x,ce.y=le.y):E===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(le.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),le.y=a.y,ce.x=le.x)):(le.h(x.x,a.y),ce.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===90&&(oe.ca(a)||re.ca(x))?le.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?le.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ce.x=le.x,ce.y=x.y),le.x>re.left&&le.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(E===0||E===180)&&(le.h(a.x,Math.min((a.y+x.y)/2,a.y)),ce.h(x.x,le.y)):(le.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===270?re.right:Math.max(re.right,oe.right)),ce.x=le.x,ce.y=x.y)));var me=x;if(this.isAvoiding){var Ce=this.diagram;if(Ce===null||b===z||this.layer.isTemporary||!ca(Ce)||re.ca(me)&&!z.Td(b)||oe.ca(a)&&!b.Td(z))y=!1;else{var Me=ns(Ce,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Me.Yj(Math.min(a.x,le.x),Math.min(a.y,le.y),Math.abs(a.x-le.x),Math.abs(a.y-le.y))&&Me.Yj(Math.min(le.x,ce.x),Math.min(le.y,ce.y),Math.abs(le.x-ce.x),Math.abs(le.y-ce.y))&&Me.Yj(Math.min(ce.x,me.x),Math.min(ce.y,me.y),Math.abs(ce.x-me.x),Math.abs(ce.y-me.y)))y=!1;else{b=a,z=me;var Be=x=null;if(Ce.isVirtualized){Ce=Me.bounds.copy(),Ce.Bc(-Me.Ho,-Me.Go);var Re=qe.alloc();jg(Me,a.x,a.y)||(Kt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,a.x,a.y,le.x,le.y,Re)?(x=a=Re.copy(),y=Re.ab(le)):Kt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,le.x,le.y,ce.x,ce.y,Re)?(x=a=Re.copy(),y=Re.ab(ce)):Kt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ce.x,ce.y,me.x,me.y,Re)&&(x=a=Re.copy(),y=Re.ab(me))),jg(Me,me.x,me.y)||(Kt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,me.x,me.y,ce.x,ce.y,Re)?(Be=me=Re.copy(),E=ce.ab(Re)):Kt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ce.x,ce.y,le.x,le.y,Re)?(Be=me=Re.copy(),E=le.ab(Re)):Kt.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,le.x,le.y,a.x,a.y,Re)&&(Be=me=Re.copy(),E=a.ab(Re))),qe.free(Re)}re=re.copy().ed(oe),re.Bc(Me.Ho*Me.Os,Me.Go*Me.Os),lS(Me,a,y,me,E,re,!0),oe=bd(Me,me.x,me.y),!Me.abort&&oe>=Hg&&(sS(Me),re.Bc(Me.Ho*Me.Hx,Me.Go*Me.Ix),lS(Me,a,y,me,E,re,!1),oe=bd(Me,me.x,me.y)),!Me.abort&&oe<Hg&&bd(Me,me.x,me.y)!==Ch?(Jv(this,Me,me.x,me.y,E,!0,ne),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=me.y):(re.x=me.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ne=this.i(3),y===0||y===180?Kt.B(re.x,ne.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ne.y)):Kt.B(re.y,ne.y)?(Math.abs(a.y-re.y)<=Me.Go/2&&(this.L(2,re.x,a.y),this.L(3,ne.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(Kt.B(re.y,ne.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ne.x,re)):Kt.B(re.x,ne.x)?(Math.abs(a.x-re.x)<=Me.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ne.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ne=this.i(2),a.x!==ne.x&&a.y!==ne.y?y===0||y===180?this.m(2,a.x,ne.y):this.m(2,ne.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Be!==null&&(E===0||E===180?this.yf(z.x,Be.y):this.yf(Be.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ce.copy())),qe.free(le),qe.free(ce)}},fi.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function _v(a){if(a.diagram===null||!a.isAvoiding||!ca(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=ns(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function Jv(a,y,x,E,b,z,ne){var re=y.Ho,oe=y.Go,le=bd(y,x,E),ce=x,me=E;for(b===0?ce+=re:b===90?me+=oe:b===180?ce-=re:me-=oe,b!==ne&&le>Nf&&bd(y,ce,me)!==le-1&&(bd(y,x-re,E)===le-1?(b=180,ce=x-re,me=E):bd(y,x+re,E)===le-1?(b=0,ce=x+re,me=E):bd(y,x,E-oe)===le-1?(b=270,ce=x,me=E-oe):bd(y,x,E+oe)===le-1&&(b=90,ce=x,me=E+oe));le>Nf&&bd(y,ce,me)===le-1;)x=ce,E=me,b===0?ce+=re:b===90?me+=oe:b===180?ce-=re:me-=oe,--le;z?le>Nf&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/oe)*oe+oe/2),le>Nf&&(z=b,ne=x,ce=E,b===0?(z=90,ce+=oe):b===90?(z=180,ne-=re):b===180?(z=270,ce-=oe):b===270&&(z=0,ne+=re),bd(y,ne,ce)===le-1?Jv(a,y,ne,ce,z,!1,z):(ne=x,ce=E,b===0?(z=270,ce-=oe):b===90?(z=0,ne+=re):b===180?(z=90,ce+=oe):b===270&&(z=180,ne-=re),bd(y,ne,ce)===le-1&&Jv(a,y,ne,ce,z,!1,z))),a.yf(x,E)}fi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=_o(y,a,x.x,x.y,E.x,E.y),z=0,ne=1;ne<this.pointsCount-1;ne++){x=this.i(ne+1);var re=_o(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=ne,b=re)}return z},fi.prototype.qc=function(){this.lk=!1,this.v()},fi.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,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof Vr&&(b.ua=this.ua)}}},fi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&Bf(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var ne=this.computeCurve();if(ne===Zu&&3<=y&&!Kt.$(this.smoothness,0))if(y===3){var re=this.i(1);E=Math.min(b.x,re.x);var oe=Math.min(b.y,re.y);re=this.i(2),E=Math.min(E,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),oe=this.i(E),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);E=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);E=z.x,oe=z.y}if(E-=this.su.x,oe-=this.su.y,b.x-=E,b.y-=oe,y!==2||Bf(this)){if(a.type=vi.o,re=k1(a),this.computeShortLength(!0)!==0&&(b=tg(this,b,!0,z)),Og(re,b.x,b.y,!1),ne===Zu&&3<=y&&!Kt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-oe,b=this.i(2).copy(),b.x-=E,b.y-=oe,this.computeShortLength(!1)!==0&&(b=tg(this,b,!1,z)),yh(re,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=qe.allocAt(E,oe),x=qe.alloc(),x.assign(this.i(1)),z=qe.allocAt(E,oe),b=qe.allocAt(E,oe),ne=this.i(0);for(var le,ce=this.smoothness/3,me=1;me<this.pointsCount-1;me++){le=this.i(me);var Ce=ne,Me=le,Be=this.i(Qv(this,le,me,!1));if((!Kt.$(Ce.x,Me.x)||!Kt.$(Me.x,Be.x))&&(!Kt.$(Ce.y,Me.y)||!Kt.$(Me.y,Be.y))){var Re=ce;isNaN(Re)&&(Re=this.smoothness/3);var dt=Ce.x;Ce=Ce.y;var et=Me.x;Me=Me.y;var Pt=Be.x;Be=Be.y;var At=Re*qm(dt,Ce,et,Me);Re*=qm(et,Me,Pt,Be),Kt.$(Ce,Me)&&Kt.$(et,Pt)&&(et>dt?Be>Me?(z.x=et-At,z.y=Me-At,b.x=et+Re,b.y=Me+Re):(z.x=et-At,z.y=Me+At,b.x=et+Re,b.y=Me-Re):Be>Me?(z.x=et+At,z.y=Me-At,b.x=et-Re,b.y=Me+Re):(z.x=et+At,z.y=Me+At,b.x=et-Re,b.y=Me-Re)),Kt.$(dt,et)&&Kt.$(Me,Be)&&(Me>Ce?(Pt>et?(z.x=et-At,z.y=Me-At,b.x=et+Re):(z.x=et+At,z.y=Me-At,b.x=et-Re),b.y=Me+Re):(Pt>et?(z.x=et-At,z.y=Me+At,b.x=et+Re):(z.x=et+At,z.y=Me+At,b.x=et-Re),b.y=Me-Re)),(Kt.$(dt,et)&&Kt.$(et,Pt)||Kt.$(Ce,Me)&&Kt.$(Me,Be))&&(dt=.5*(dt+Pt),Ce=.5*(Ce+Be),z.x=dt,z.y=Ce,b.x=dt,b.y=Ce),(me===1||me===2&&Kt.$(ne.x,this.i(0).x)&&Kt.$(ne.y,this.i(0).y))&&(x.x=.5*(ne.x+le.x),x.y=.5*(ne.y+le.y)),yh(re,x.x-E,x.y-oe,z.x-E,z.y-oe,le.x-E,le.y-oe),y.set(z),x.set(b),ne=le}}le=ne.x,ne=ne.y,ce=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ce=tg(this,ce.copy(),!1,_i)),le=.5*(le+ce.x),ne=.5*(ne+ce.y),yh(re,b.x-E,b.y-oe,le-E,ne-oe,ce.x-E,ce.y-oe),qe.free(y),qe.free(x),qe.free(z),qe.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),ne=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ne=tg(this,ne.copy(),!1,_i)),yh(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ne.x-E,ne.y-oe);else{for(z=qe.alloc(),z.assign(this.i(0)),b=qe.alloc(),b.assign(z),ne=this.computeCorner(),me=1,le=0;me<y;){if(me=Qv(this,z,me,1<me),ce=this.i(me),me>=y-1){if(!z.D(ce))this.computeShortLength(!1)!==0&&(ce=tg(this,ce.copy(),!1,_i)),ng(this,re,-E,-oe,z,ce,x);else if(le===0)for(me=1;me<y;)b.assign(z),ce=this.i(me++),ng(this,re,-E,-oe,z,ce,x),z.assign(ce);break}if(le=Qv(this,ce,me+1,me<y-3),me=-E,dt=-oe,Ce=ce,et=this.i(le),Re=x,Kt.B(z.y,Ce.y)&&Kt.B(Ce.x,et.x))if(Be=Math.min(ne,Math.abs(Ce.x-b.x)/2),Be=At=Math.min(Be,Math.abs(et.y-Ce.y)/2),Kt.B(Be,0))ng(this,re,me,dt,z,Ce,Re),z.assign(Ce);else{var Dt=Ce.x,Rt=Ce.y;Me=Dt,Pt=Rt,Ce.x>z.x?Dt=Ce.x-Be:Dt=Ce.x+Be,et.y>Ce.y?Pt=Ce.y+At:Pt=Ce.y-At,et=qe.allocAt(Dt,Rt),ng(this,re,me,dt,z,et,Re),qe.free(et),Gm(re,Ce.x+me,Ce.y+dt,Me+me,Pt+dt),z.h(Me,Pt)}else Kt.B(z.x,Ce.x)&&Kt.B(Ce.y,et.y)?(Be=Math.min(ne,Math.abs(Ce.y-b.y)/2),Be=At=Math.min(Be,Math.abs(et.x-Ce.x)/2),Kt.B(At,0)?(ng(this,re,me,dt,z,Ce,Re),z.assign(Ce)):(Dt=Ce.x,Rt=Ce.y,Me=Dt,Pt=Rt,Ce.y>z.y?Rt=Ce.y-Be:Rt=Ce.y+Be,et.x>Ce.x?Me=Ce.x+At:Me=Ce.x-At,et=qe.allocAt(Dt,Rt),ng(this,re,me,dt,z,et,Re),qe.free(et),Gm(re,Ce.x+me,Ce.y+dt,Me+me,Pt+dt),z.h(Me,Pt))):(ng(this,re,me,dt,z,Ce,Re),z.assign(Ce));b.assign(ce),me=le}qe.free(z)}Km=re}else re=this.i(1).copy(),re.x-=E,re.y-=oe,this.computeShortLength(!0)!==0&&(b=tg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=tg(this,re,!1,z)),a.type=vi.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function qm(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Kt.$(a,0)?y:Kt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function tg(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function Qv(a,y,x,E){for(var b=a.pointsCount,z=y;Kt.$(y.x,z.x)&&Kt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Kt.$(y.x,z.x)&&!Kt.$(y.y,z.y))return x-1;for(var ne=z;Kt.$(y.x,z.x)&&Kt.$(z.x,ne.x)&&(!E||(y.y>=z.y?z.y>=ne.y:z.y<=ne.y))||Kt.$(y.y,z.y)&&Kt.$(z.y,ne.y)&&(!E||(y.x>=z.x?z.x>=ne.x:z.x<=ne.x));){if(x>=b)return b-1;ne=a.i(x++)}return x-2}fi.prototype.computeJumpLength=function(){return 10};function ng(a,y,x,E,b,z,ne){if(!ne&&Bf(a)){ne=a.computeJumpLength();var re=ne/2,oe=[],le=0;if(a.isVisible()&&(le=Nx(a,b,z,oe)),0<le){if(Kt.B(b.y,z.y))if(b.x<z.x)for(var ce=0;ce<le;){var me=Math.max(b.x,Math.min(oe[ce++]-re,z.x-ne));y.lineTo(me+x,z.y+E);for(var Ce=me+x,Me=Math.min(me+ne,z.x);ce<le&&(me=oe[ce],me<Me+ne);)ce++,Me=Math.min(me+re,z.x);me=z.y-ne+E,Me+=x;var Be=z.y+E;a.curve===wh?Og(y,Me,Be,!1):yh(y,Ce,me,Me,me,Me,Be)}else for(--le;0<=le;){for(ce=Math.min(b.x,Math.max(oe[le--]+re,z.x+ne)),y.lineTo(ce+x,z.y+E),Ce=ce+x,me=Math.max(ce-ne,z.x);0<=le&&(ce=oe[le],ce>me-ne);)le--,me=Math.max(ce-re,z.x);ce=z.y-ne+E,me+=x,Me=z.y+E,a.curve===wh?Og(y,me,Me,!1):yh(y,Ce,ce,me,ce,me,Me)}else if(Kt.B(b.x,z.x))if(b.y<z.y)for(ce=0;ce<le;){for(me=Math.max(b.y,Math.min(oe[ce++]-re,z.y-ne)),y.lineTo(z.x+x,me+E),Ce=me+E,me=Math.min(me+ne,z.y);ce<le&&(Me=oe[ce],Me<me+ne);)ce++,me=Math.min(Me+re,z.y);Me=z.x-ne+x,Be=z.x+x,me+=E,a.curve===wh?Og(y,Be,me,!1):yh(y,Me,Ce,Me,me,Be,me)}else for(--le;0<=le;){for(ce=Math.min(b.y,Math.max(oe[le--]+re,z.y+ne)),y.lineTo(z.x+x,ce+E),Ce=ce+E,ce=Math.max(ce-ne,z.y);0<=le&&(me=oe[le],me>ce-ne);)le--,ce=Math.max(me-re,z.y);me=z.x-ne+x,Me=z.x+x,ce+=E,a.curve===wh?Og(y,Me,ce,!1):yh(y,me,Ce,me,ce,Me,ce)}}}y.lineTo(z.x+x,z.y+E)}function Nx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ne=z.length,re=0;re<ne;re++){var oe=z[re];if(oe instanceof fi){if(oe===a)return 0<E.length&&E.sort(function(ce,me){return ce-me}),E.length;if(oe.isVisible()&&Bf(oe)){var le=oe.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(oe)&&(le=oe.path,le!==null&&le.Ed()&&kx(y,x,E,oe))}}}}}return 0<E.length&&E.sort(function(ce,me){return ce-me}),E.length}function kx(a,y,x,E){for(var b=Kt.B(a.y,y.y),z=E.pointsCount,ne=E.i(0),re=qe.alloc(),oe=1;oe<z;oe++){var le=E.i(oe);if(oe<z-1){var ce=E.i(oe+1);if(ne.y===le.y&&le.y===ce.y){if(le.x>ne.x&&ce.x>=le.x||le.x<ne.x&&ce.x<=le.x)continue}else if(ne.x===le.x&&le.x===ce.x&&(le.y>ne.y&&ce.y>=le.y||le.y<ne.y&&ce.y<=le.y))continue}e:{ce=a.x;var me=a.y,Ce=y.x,Me=y.y,Be=ne.x;ne=ne.y;var Re=le.x,dt=le.y;if(Kt.B(ce,Ce)){if(!Kt.B(me,Me)&&Kt.B(ne,dt)&&Math.min(me,Me)<ne&&Math.max(me,Me)>ne&&Math.min(Be,Re)<ce&&Math.max(Be,Re)>ce&&!Kt.B(Be,Re)){re.x=ce,re.y=ne,ce=!0;break e}}else if(Kt.B(me,Me)&&Kt.B(Be,Re)&&Math.min(ce,Ce)<Be&&Math.max(ce,Ce)>Be&&Math.min(ne,dt)<me&&Math.max(ne,dt)>me&&!Kt.B(ne,dt)){re.x=Be,re.y=me,ce=!0;break e}re.x=0,re.y=0,ce=!1}ce&&(b?x.push(re.x):x.push(re.y)),ne=le}qe.free(re)}function Bf(a){return a=a.curve,a===zg||a===wh}function e0(a,y){(y||Bf(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()))}fi.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 E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var ne=b.length,re=0;re<ne;re++){var oe=b[re];oe instanceof fi&&(oe===this?z=!0:z&&iS(this,oe,a))}}else if(E)for(z=b.Pa.s,b=z.length,ne=0;ne<b;ne++)re=z[ne],re instanceof fi&&iS(this,re,a)}}}}};function iS(a,y,x){if(y!==null&&y.lk&&y.fd&&Bf(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}fi.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},fi.prototype.isVisible=function(){if(!Qi.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 E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.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},fi.prototype.Zb=function(a){if(Qi.prototype.Zb.call(this,a),a&&e0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},fi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Fp:this.qk};function Mp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,ne=y.jb.s,re=ne.length,oe=0;oe<re;oe++){var le=ne[oe];(le.ef===y&&le.ff===E&&le.uf===x&&le.vf===b||le.ef===x&&le.ff===b&&le.uf===y&&le.vf===E)&&(z===null?z=le:(a===null&&(a=[],a.push(z)),a.push(le)))}if(a!==null){for(z=V1(y,x,E,b),z===null&&(z=new o0(y,E,x,b),K1(y,z),K1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function Lp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Fn(y.links,a),y.Sl()))}fi.prototype.ph=function(){return!0},bt.Object.defineProperties(fi.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&&Xm(y,this,x),Lp(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ne)}a!==null&&(this.uf!==a&&Um(a,this,b),Mp(this),this.C(1)),this.g("fromNode",y,a),Ig(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Du(x),Lp(this),this.ff=a;var E=this.fromPort;E!==null&&Du(E);var b=this.diagram;if(b!==null){var z=this.data,ne=b.model;z!==null&&ne.ri()&&ne.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ne=!0,b!==null&&(ne=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ne))),Mp(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&&Xm(y,this,x),Lp(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var ne=!0;E!==null&&(ne=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ne)}a!==null&&(this.ef!==a&&Um(a,this,b),Mp(this),this.C(1)),this.g("toNode",y,a),Ig(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Du(x),Lp(this),this.vf=a;var E=this.toPort;E!==null&&Du(E);var b=this.diagram;if(b!==null){var z=this.data,ne=b.model;z!==null&&ne.ri()&&ne.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ne=!0,b!==null&&(ne=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ne))),Mp(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:Yo},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&&Du(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&&pi(a,">= 0",fi,"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:Yo},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&&Du(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&&pi(a,">= 0",fi,"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?Ir: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&&Ap(this.fromNode),this.toNode!==null&&Ap(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Vr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===Zu&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Kt.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var ne=this.i(z-2);z+3>=E&&(z=E-1);var re=this.i(z-1),oe=this.i(z);Kt.Dl(b.x,b.y,ne.x,ne.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),b=oe}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),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 qe)}},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 E=this.i(x),b=this.i(x+1);Kt.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):Kt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];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 E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new An,E=0;E<a.length/2;E++)b=new qe(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!qt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new An,E=0;E<a.length;E++)b=a[E],x.add(new qe(b.x,b.y).freeze())}}else if(a instanceof An)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else at("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&&ya(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||!Rg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Rg(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(),e0(this,y===wh||y===zg||a===wh||a===zg),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(),e0(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)}}}),fi.prototype.invalidateOtherJumpOvers=fi.prototype.Xo,fi.prototype.findClosestSegment=fi.prototype.ez,fi.prototype.updateRoute=fi.prototype.vg,fi.prototype.invalidateRoute=fi.prototype.bb,fi.prototype.rollbackRoute=fi.prototype.rv,fi.prototype.commitRoute=fi.prototype.zf,fi.prototype.startRoute=fi.prototype.uh,fi.prototype.clearPoints=fi.prototype.Fj,fi.prototype.removePoint=fi.prototype.pv,fi.prototype.addPointAt=fi.prototype.yf,fi.prototype.addPoint=fi.prototype.ne,fi.prototype.insertPointAt=fi.prototype.m,fi.prototype.insertPoint=fi.prototype.Kz,fi.prototype.setPointAt=fi.prototype.L,fi.prototype.setPoint=fi.prototype.dd,fi.prototype.getPoint=fi.prototype.i,fi.prototype.getOtherPort=fi.prototype.Cz,fi.prototype.getOtherNode=fi.prototype.To;var ig=null,rg=null,$v=new Jt(fi,"Normal",1),Tx=new Jt(fi,"Orthogonal",2),Ox=new Jt(fi,"AvoidsNodes",6),rS=new Jt(fi,"AvoidsNodesStraight",7),ql=new Jt(fi,"None",0),Zu=new Jt(fi,"Bezier",9),wh=new Jt(fi,"JumpGap",10),zg=new Jt(fi,"JumpOver",11),Fp=new Jt(fi,"End",17),t0=new Jt(fi,"Scale",18),n0=new Jt(fi,"Stretch",19),Dp=new Jt(fi,"OrientAlong",21),Bp=new Jt(fi,"OrientPlus90",22),Np=new Jt(fi,"OrientMinus90",23),qv=new Jt(fi,"OrientOpposite",24),i0=new Jt(fi,"OrientUpright",25),kp=new Jt(fi,"OrientPlus90Upright",26),Tp=new Jt(fi,"OrientMinus90Upright",27),r0=new Jt(fi,"OrientUpright45",28),oS=16,aS=14,Op=8;fi.className="Link",fi.Normal=$v,fi.Orthogonal=Tx,fi.AvoidsNodes=Ox,fi.AvoidsNodesStraight=rS,fi.None=ql,fi.Bezier=Zu,fi.JumpGap=wh,fi.JumpOver=zg,fi.End=Fp,fi.Scale=t0,fi.Stretch=n0,fi.OrientAlong=Dp,fi.OrientPlus90=Bp,fi.OrientMinus90=Np,fi.OrientOpposite=qv,fi.OrientUpright=i0,fi.OrientPlus90Upright=kp,fi.OrientMinus90Upright=Tp,fi.OrientUpright45=r0,fi.EndSegmentStep=8,fi.CurvinessStart=oS,fi.SpacingMin=aS,fi.OrthoShortCut=Op;function o0(a,y,x,E){Hr(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}o0.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},o0.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))}},o0.className="LinkBundle";function Ip(a){Hr(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}Ip.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=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((E+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=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=ey,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function jg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function bd(a,y,x){return jg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ey}function sS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=Nf&&(x[E]=ey)}Ip.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<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 b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Ch)return!1}return!0};function Ad(a,y,x,E,b,z,ne,re,oe){if(!(y<z||y>ne||x<re||x>oe)){var le=y|0,ce=x|0,me=a.ac[le][ce];if(me>=Nf&&me<Hg)for(b?ce+=E:le+=E,me+=1;z<=le&&le<=ne&&re<=ce&&ce<=oe&&!(me>=a.ac[le][ce]);)a.ac[le][ce]=me,me+=1,b?ce+=E:le+=E;if(le=b?ce:le,b)if(0<E)for(x+=E;x<le;x+=E)Ad(a,y,x,1,!b,z,ne,re,oe),Ad(a,y,x,-1,!b,z,ne,re,oe);else for(x+=E;x>le;x+=E)Ad(a,y,x,1,!b,z,ne,re,oe),Ad(a,y,x,-1,!b,z,ne,re,oe);else if(0<E)for(y+=E;y<le;y+=E)Ad(a,y,x,1,!b,z,ne,re,oe),Ad(a,y,x,-1,!b,z,ne,re,oe);else for(y+=E;y>le;y+=E)Ad(a,y,x,1,!b,z,ne,re,oe),Ad(a,y,x,-1,!b,z,ne,re,oe)}}function a0(a,y,x,E,b,z,ne,re,oe){y|=0,x|=0;var le=Ch,ce=Nf;for(a.ac[y][x]=ce;le===Ch&&y>z&&y<ne&&x>re&&x<oe;)ce+=1,a.ac[y][x]=ce,b?x+=E:y+=E,le=a.ac[y][x]}function s0(a,y,x,E,b,z,ne,re,oe){y|=0,x|=0;var le=Ch,ce=Hg;for(a.ac[y][x]=ce;le===Ch&&y>z&&y<ne&&x>re&&x<oe;)a.ac[y][x]=ce,b?x+=E:y+=E,le=a.ac[y][x]}function lS(a,y,x,E,b,z,ne){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(jg(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var le=E.x,ce=E.y;if(jg(a,le,ce))if(le-=a.Nd,le/=a.rc,ce-=a.Od,ce/=a.sc,1>=Math.abs(re-le)&&1>=Math.abs(oe-ce))a.abort=!0;else{var me=z.x;E=z.y,y=z.x+z.width;var Ce=z.y+z.height;me-=a.Nd,me/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,Ce-=a.Od,Ce/=a.sc,z=Math.max(0,Math.min(a.di,me|0)),y=Math.min(a.di,Math.max(0,y|0)),me=Math.max(0,Math.min(a.ei,E|0)),Ce=Math.min(a.ei,Math.max(0,Ce|0)),E=a.ac,re|=0,oe|=0,le|=0,ce|=0;var Me=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===Ch?(a0(a,re,oe,Me,x,z,y,me,Ce),a0(a,re,oe,1,!x,z,y,me,Ce),a0(a,re,oe,-1,!x,z,y,me,Ce)):a0(a,re,oe,Me,x,re,oe,re,oe),E[le][ce]===Ch?(s0(a,le,ce,b===0||b===90?1:-1,b===90||b===270,z,y,me,Ce),s0(a,le,ce,1,!(b===90||b===270),z,y,me,Ce),s0(a,le,ce,-1,!(b===90||b===270),z,y,me,Ce)):s0(a,le,ce,Me,x,le,ce,le,ce),x=En(),ne&&uS(a,le,ce,b,re,oe,x))for((x[0]!==le||x[1]!==ce)&&(x.unshift(ce),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=Nf,b=x[x.length-2],ne=x[x.length-1],E[b][ne]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],ne=x[z+3],y=x[z],le=x[z+1];y>b?b++:y<b?b--:le>ne?ne++:le<ne&&ne--,E[b][ne]=a++,b!==y||ne!==le;);else Ad(a,re,oe,1,!1,z,y,me,Ce),Ad(a,re,oe,-1,!1,z,y,me,Ce),Ad(a,re,oe,1,!0,z,y,me,Ce),Ad(a,re,oe,-1,!0,z,y,me,Ce);kn(x)}}}}function uS(a,y,x,E,b,z,ne){for(var re=a.ac,oe=y,le=x;;){if(oe===b&&le===z)return!0;var ce=oe,me=le;if(E===0)if(ce<b)ce++;else break;else if(E===90)if(me<z)me++;else break;else if(E===180)if(ce>b)ce--;else break;else if(me>z)me--;else break;var Ce=re[ce][me];if(Ce===0||Ce===ty)break;oe=ce,le=me}for(;;){if(ce=E,me=oe,Ce=le,E===0?Ce<z?(ce=90,Ce++):Ce>z&&(ce=270,Ce--):E===90?me<b?(ce=0,me++):me>b&&(ce=180,me--):E===180?Ce<z?(ce=90,Ce++):Ce>z&&(ce=270,Ce--):me<b?(ce=0,me++):me>b&&(ce=180,me--),me=re[me][Ce],ce!==E&&me!==0&&me!==ty){if(ne.push(oe),ne.push(le),uS(a,oe,le,ce,b,z,ne))return!0;ne.pop(),ne.pop()}if(re[oe][le]=ty,E===0){if(oe===y)return!1;oe--}else if(E===90){if(le===x)return!1;le--}else if(E===180){if(oe===y)return!1;oe++}else{if(le===x)return!1;le++}}}bt.Object.defineProperties(Ip.prototype,{bounds:{get:function(){return new Cn(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 Ch=0,Nf=1,Hg=999999,ey=Hg+1,ty=Hg+2;Ip.className="PositionArray";function og(){Hr(this),this.port=this.node=null,this.pe=[],this.ap=!1}og.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var E=a[x];E!==null&&(y+=`
|
|
|
`+E.toString())}return y};function Ix(a,y,x,E){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 E&&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}og.prototype.Sl=function(){this.pe.length=0};function cS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Rr?b:null;if(z===null||z.isSubGraphExpanded)var ne=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,ne=E.Lu()}z=a.pe.length=0;var re=a.port.ga(As,qe.alloc()),oe=a.port.ga(pa,qe.alloc());for(b=Cn.allocAt(re.x,re.y,0,0),b.Ye(oe),qe.free(re),qe.free(oe),re=qe.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ne=ne.iterator;ne.next();){var le=ne.value;if(le.isVisible()&&le.fromPort!==le.toPort){var ce=le.fromPort===a.port||le.fromNode!==null&&le.fromNode.Td(E),me=le.computeSpot(ce,a.port);if(me.$c()&&(ce=ce?le.toPort:le.fromPort,ce!==null)){var Ce=ce.part;if(Ce!==null){var Me=Ce.findVisibleNode();Me!==null&&Me!==Ce&&(Ce=Me,ce=Ce.port),ce=le.computeOtherPoint(Ce,ce),Ce=re.ab(ce),Ce-=oe,0>Ce?Ce+=360:360<=Ce&&(Ce-=360),me=Ix(b,me,Ce,le.isOrthogonal),me===0?(me=4,180<Ce&&(Ce-=360)):me===90?(me=8,270<Ce&&(Ce-=360)):me===180?me=2:(me=1,90>Ce&&(Ce+=360)),Me=a.pe[z],Me===void 0?(Me=new ny(le,Ce,me),a.pe[z]=Me):(Me.link=le,Me.angle=Ce,Me.Nc=me),Me.hv.set(ce),z++}}}}for(qe.free(re),a.pe.sort(og.prototype.j),oe=a.pe.length,E=-1,z=re=0;z<oe;z++)ne=a.pe[z],ne!==void 0&&(ne.Nc!==E&&(E=ne.Nc,re=0),ne.Uo=re,re++);for(E=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==E&&(E=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,me=a.port,E=a.node.portSpreading,re=qe.alloc(),oe=qe.alloc(),ne=qe.alloc(),le=qe.alloc(),me.ga(As,re),me.ga(zl,oe),me.ga(pa,ne),me.ga(Ll,le),Me=Ce=ce=me=0,E===Vv)for(var Be=0;Be<z.length;Be++){var Re=z[Be];if(Re!==null){var dt=Re.link.computeThickness();switch(Re.Nc){case 8:Ce+=dt;break;case 2:Me+=dt;break;case 1:me+=dt;break;default:case 4:ce+=dt}}}var et=Be=0,Pt=1,At=Re=0;for(dt=0;dt<z.length;dt++){var Dt=z[dt];if(Dt!==null){if(Be!==Dt.Nc){switch(Be=Dt.Nc,Be){case 8:var Rt=ne;et=le;break;case 2:Rt=le,et=re;break;case 1:Rt=re,et=oe;break;default:case 4:Rt=oe,et=ne}switch(Re=et.x-Rt.x,At=et.y-Rt.y,Be){case 8:Ce>Math.abs(Re)?(Pt=Math.abs(Re)/Ce,Ce=Math.abs(Re)):Pt=1;break;case 2:Me>Math.abs(At)?(Pt=Math.abs(At)/Me,Me=Math.abs(At)):Pt=1;break;case 1:me>Math.abs(Re)?(Pt=Math.abs(Re)/me,me=Math.abs(Re)):Pt=1;break;default:case 4:ce>Math.abs(At)?(Pt=Math.abs(At)/ce,ce=Math.abs(At)):Pt=1}et=0}var dn=Dt.Zo;if(E===Vv){switch(Dt=Dt.link.computeThickness(),Dt*=Pt,dn.set(Rt),Be){case 8:dn.x=Rt.x+Re/2+Ce/2-et-Dt/2;break;case 2:dn.y=Rt.y+At/2+Me/2-et-Dt/2;break;case 1:dn.x=Rt.x+Re/2-me/2+et+Dt/2;break;default:case 4:dn.y=Rt.y+At/2-ce/2+et+Dt/2}et+=Dt}else{var bi=.5;E===_m&&(bi=(Dt.Uo+1)/(Dt.Gl+1)),dn.x=Rt.x+Re*bi,dn.y=Rt.y+At*bi}}}for(qe.free(re),qe.free(oe),qe.free(ne),qe.free(le),Rt=a.pe,z=0;z<Rt.length;z++)E=Rt[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,Cn.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}og.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},og.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,$a,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},og.className="Knot";function ny(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new qe,this.Gl=this.Uo=0,this.Zo=new qe,this.Ju=0}ny.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()},ny.className="LinkInfo";function Ha(a){Hr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new qe(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ha.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},Ha.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ha.prototype.qb=function(){},Ha.prototype.toString=function(){var a=Zn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ha.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())}}},Ha.prototype.createNetwork=function(){return new Ea(this)},Ha.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof cn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Rr?y.lg(a.memberParts):y.lg(a.iterator),y},Ha.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")}},Ha.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()}},Ha.prototype.doLayout=function(a){var y=new Wn;a instanceof cn?(Uh(this,y,a.nodes,!0,this.rh,!0,!1,!0),Uh(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Rr?Uh(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},Ha.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,ne=0;for(a=a.iterator;a.next();){var re=a.value;Rp(re);var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(E,b),re instanceof Rr&&(re.rh=!1),E+=Math.max(le,50)+20,ne=Math.max(ne,Math.max(oe,50)),z>=y-1?(z=0,E=x,b+=ne+20,ne=0):z++}},Ha.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,E=this.arrangementOrigin.y,b=0,z=0,ne=this.network.vertexes.iterator;ne.next();){var re=ne.value.node;if(!(re===null||re instanceof fi)&&(Rp(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof Rr&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Ha.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Rr&&a.rh)};function Uh(a,y,x,E,b,z,ne,re){for(x=x.iterator;x.next();){var oe=x.value;E&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof Mi?oe.isLinkLabel||(oe instanceof Rr&&oe.layout===null?Uh(a,y,oe.memberParts,!1,b,z,ne,re):(Rp(oe),y.add(oe))):ne&&oe instanceof fi?y.add(oe):!re||!oe.Zc()||oe instanceof Mi||(Rp(oe),y.add(oe)))}}function Rp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ha.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Cn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ha.prototype.ex=function(a){var y=new Wn;return a instanceof cn?(Uh(this,y,a.nodes,!0,null,!0,!0,!0),Uh(this,y,a.links,!0,null,!0,!0,!0),Uh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Rr?Uh(this,y,a.memberParts,!1,null,!0,!0,!0):Uh(this,y,a.iterator,!1,null,!0,!0,!0),y},Ha.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(As),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},bt.Object.defineProperties(Ha.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())}}}),Ha.prototype.collectParts=Ha.prototype.ex,Ha.prototype.getLayoutBounds=Ha.prototype.ni,Ha.prototype.invalidateLayout=Ha.prototype.C,Ha.className="Layout";function Ea(a){Hr(this),this.Sc=a,this.wf=new Wn,this.ye=new Wn,this.Es=new Kn,this.zs=new Kn}Ea.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Wn,this.ye=new Wn,this.Es=new Kn,this.zs=new Kn},Ea.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},Ea.prototype.createVertex=function(){return new Us(this)},Ea.prototype.createEdge=function(){return new Bu(this)},Ea.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ne){if(ne instanceof Mi)return!ne.isLinkLabel;if(ne instanceof fi){var re=ne.fromNode;return re===null||re.isLinkLabel?!1:(ne=ne.toNode,!(ne===null||ne.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof Mi&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Rr&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof fi&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},Ea.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},De=Ea.prototype,De.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},De.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},De.Iu=function(a){if(a!==null&&dS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function dS(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}De.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},De.ki=function(a){return a===null?null:this.Es.I(a)},De.Bo=function(a){if(a!==null){iy(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function iy(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}}De.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},De.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ry(this,a)}};function ry(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}De.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},De.Lo=function(a){return a===null?null:this.zs.I(a)},De.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},De.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))}},De.Ko=function(){for(var a=En(),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)},Ea.prototype.deleteArtificialVertexes=function(){for(var a=En(),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=En(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);kn(a),kn(y)};function Rx(a){for(var y=En(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);kn(y)}Ea.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Rx(this),this.Ko()),a=new An;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),oy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function oy(a,y,x){if(x!==null&&x.network!==y){dS(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ry(a,b),iy(y,b),oy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ry(a,x),iy(y,x),oy(a,y,x.toVertex))}}Ea.prototype.dz=function(){for(var a=new Wn,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},bt.Object.defineProperties(Ea.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}}}),Ea.prototype.findAllParts=Ea.prototype.dz,Ea.prototype.splitIntoSubNetworks=Ea.prototype.Zx,Ea.prototype.deleteSelfEdges=Ea.prototype.Ko,Ea.prototype.reverseEdge=Ea.prototype.gm,Ea.prototype.linkVertexes=Ea.prototype.Zj,Ea.prototype.findEdge=Ea.prototype.Lo,Ea.prototype.deleteLink=Ea.prototype.Yy,Ea.prototype.deleteEdge=Ea.prototype.Mj,Ea.prototype.addLink=Ea.prototype.Dy,Ea.prototype.addEdge=Ea.prototype.Bo,Ea.prototype.findVertex=Ea.prototype.ki,Ea.prototype.deleteNode=Ea.prototype.Zy,Ea.prototype.deleteVertex=Ea.prototype.Iu,Ea.prototype.addNode=Ea.prototype.Bl,Ea.prototype.addVertex=Ea.prototype.dh,Ea.prototype.addParts=Ea.prototype.lg,Ea.className="LayoutNetwork";function Us(a){Hr(this),this.ob=a,this.j=new Cn(0,0,10,10).freeze(),this.o=new qe(5,5).freeze(),this.Sh=this.ub=null,this.tg=new An,this.mg=new An}Us.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new An,this.mg=new An},Us.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+yo(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},Us.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;qt(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 Rr)){x=Cn.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(xo);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),Cn.free(x);return}Cn.free(x)}a.moveTo(y.x,y.y)}},Us.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Us.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Us.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Us.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ay(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}bt.Object.defineProperties(Us.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,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,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=Cn.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),Cn.free(x),!(a instanceof Rr)&&(a=a.locationObject.ga(xo),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Wn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Wn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Wn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new An,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}}}),Us.prototype.deleteDestinationEdge=Us.prototype.Jl,Us.prototype.addDestinationEdge=Us.prototype.zl,Us.prototype.deleteSourceEdge=Us.prototype.Kl,Us.prototype.addSourceEdge=Us.prototype.Cl,Us.className="LayoutVertex",Us.standardComparer=ay,Us.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 E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}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 Bu(a){Hr(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Bu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Bu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+yo(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},Bu.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Bu.prototype.commit=function(){},Bu.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},bt.Object.defineProperties(Bu.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)}}}),Bu.prototype.getOtherVertex=Bu.prototype.Ax,Bu.className="LayoutEdge";function ml(a){Ha.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new oi(NaN,NaN).freeze(),this.tf=new oi(10,10).freeze(),this.Jb=zp,this.Rb=u0,this.nd=jp,this.hd=hS,a&&Object.assign(this,a)}Ut(ml,Ha),ml.prototype.cloneProtected=function(a){Ha.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},ml.prototype.qb=function(a){a.classType===ml?a===jp||a===d0||a===sy||a===c0?this.sorting=a:a===u0||a===Uc?this.arrangement=a:a===zp||a===l0?this.alignment=a:at("Unknown enum value: "+a):Ha.prototype.qb.call(this,a)},ml.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 E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Rr)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case c0:b.reverse();break;case jp:b.sort(this.comparer);break;case d0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ne=this.wrappingWidth;switch(isNaN(ne)&&a!==null?(y=a.padding,ne=Math.max(a.viewportBounds.width-y.left-y.right,0)):ne=Math.max(this.wrappingWidth,0),0>=z&&0>=ne&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case l0:var re=y,oe=x,le=Cn.alloc(),ce=Math.max(this.cellSize.width,1);if(!isFinite(ce))for(var me=ce=0;me<b.length;me++){var Ce=this.ni(b[me],le);ce=Math.max(ce,Ce.width)}if(ce=Math.max(ce+re,1),me=Math.max(this.cellSize.height,1),!isFinite(me))for(Ce=me=0;Ce<b.length;Ce++){var Me=this.ni(b[Ce],le);me=Math.max(me,Me.height)}me=Math.max(me+oe,1),Ce=this.arrangement;for(var Be=Me=this.arrangementOrigin.x,Re=this.arrangementOrigin.y,dt=0,et=0,Pt=0;Pt<b.length;Pt++){var At=b[Pt],Dt=this.ni(At,le),Rt=Math.ceil((Dt.width+re)/ce)*ce,dn=Math.ceil((Dt.height+oe)/me)*me;switch(Ce){case Uc:var bi=Math.abs(Be-Dt.width);break;default:bi=Be+Dt.width}switch((0<z&&dt>z-1||0<ne&&0<dt&&bi-Me>ne)&&(E.push(new Cn(0,Re,ne+re,et)),dt=0,Be=Me,Re+=et,et=0),et=Math.max(et,dn),Ce){case Uc:Dt=-Dt.width;break;default:Dt=0}switch(At.moveTo(Be+Dt,Re),Ce){case Uc:Be-=Rt;break;default:Be+=Rt}dt++}E.push(new Cn(0,Re,ne+re,et)),Cn.free(le);break;case zp:for(oe=ne,ce=z,me=y,Ce=x,ne=Cn.alloc(),Me=Math.max(this.cellSize.width,1),z=Re=le=0,re=qe.alloc(),Be=0;Be<b.length;Be++)et=b[Be],dt=this.ni(et,ne),et=Sh(et,et.locationObject,et.locationSpot,re),le=Math.max(le,et.x),Re=Math.max(Re,dt.width-et.x),z=Math.max(z,et.y);switch(Be=this.arrangement,Be){case Uc:le+=me;break;default:Re+=me}Me=isFinite(Me)?Math.max(Me+me,1):Math.max(le+Re,1);var Ii=et=this.arrangementOrigin.x;for(Pt=this.arrangementOrigin.y,Re=0,oe>=le&&(oe-=le),le=At=0,Rt=Math.max(this.cellSize.height,1),Dt=z=0,dn=!0,dt=qe.alloc(),bi=0;bi<b.length;bi++){var Ni=b[bi],hi=this.ni(Ni,ne),Vn=Sh(Ni,Ni.locationObject,Ni.locationSpot,re);if(0<Re)switch(Be){case Uc:Ii=(Ii-et-(hi.width-Vn.x))/Me,Ii=Kt.$(Math.round(Ii),Ii)?Math.round(Ii):Math.floor(Ii),Ii=Ii*Me+et;break;default:Ii=(Ii-et+Vn.x)/Me,Ii=Kt.$(Math.round(Ii),Ii)?Math.round(Ii):Math.ceil(Ii),Ii=Ii*Me+et}else switch(Be){case Uc:At=Ii+Vn.x+hi.width;break;default:At=Ii-Vn.x}switch(Be){case Uc:var Or=-(Ii+Vn.x)+At;break;default:Or=Ii+hi.width-Vn.x-At}if(0<ce&&Re>ce-1||0<oe&&0<Re&&Or>oe){for(E.push(new Cn(0,dn?Pt-z:Pt,oe+me,Dt+z+Ce)),Ii=0;Ii<Re&&bi!==Re;Ii++){Or=b[bi-Re+Ii];var Cr=Sh(Or,Or.locationObject,Or.locationSpot,dt);Or.moveTo(Or.position.x,Or.position.y+z-Cr.y)}Dt+=Ce,Pt=dn?Pt+Dt:Pt+(Dt+z),Re=Dt=z=0,Ii=et,dn=!1}switch(Ii===et&&(le=Be===Uc?Math.max(le,hi.width-Vn.x):Math.min(le,-Vn.x)),z=Math.max(z,Vn.y),Dt=Math.max(Dt,hi.height-Vn.y),isFinite(Rt)&&(Dt=Math.max(Dt,Math.max(hi.height,Rt)-Vn.y)),dn?Ni.moveTo(Ii-Vn.x,Pt-Vn.y):Ni.moveTo(Ii-Vn.x,Pt),Be){case Uc:Ii-=Vn.x+me;break;default:Ii+=hi.width-Vn.x+me}Re++}if(E.push(new Cn(0,Pt,oe+me,(dn?Dt:Dt+z)+Ce)),b.length!==Re)for(oe=0;oe<Re;oe++)ce=b[b.length-Re+oe],me=Sh(ce,ce.locationObject,ce.locationSpot,re),ce.moveTo(ce.position.x,ce.position.y+z-me.y);if(qe.free(re),qe.free(dt),Be===Uc)for(b=0;b<E.length;b++)z=E[b],z.width+=le,z.x-=le;else for(b=0;b<E.length;b++)z=E[b],z.x>le&&(z.width+=z.x-le,z.x=le);Cn.free(ne)}for(re=z=ne=b=0;re<E.length;re++)oe=E[re],b=Math.min(b,oe.x),ne=Math.min(ne,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===Uc?this.commitLayers(E,new qe(b+y/2-(z+b),ne-x/2)):this.commitLayers(E,new qe(b-y/2,ne-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},ml.prototype.commitLayers=function(){};function hS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}bt.Object.defineProperties(ml.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!==zp&&a!==l0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==u0&&a!==Uc||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==sy&&a!==c0&&a!==jp&&a!==d0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var l0=new Jt(ml,"Position",0),zp=new Jt(ml,"Location",1),u0=new Jt(ml,"LeftToRight",2),Uc=new Jt(ml,"RightToLeft",3),sy=new Jt(ml,"Forward",4),c0=new Jt(ml,"Reverse",5),jp=new Jt(ml,"Ascending",6),d0=new Jt(ml,"Descending",7);ml.className="GridLayout",ml.standardComparer=hS,ml.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 E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},ml.Position=l0,ml.Location=zp,ml.LeftToRight=u0,ml.RightToLeft=Uc,ml.Forward=sy,ml.Reverse=c0,ml.Ascending=jp,ml.Descending=d0;function ra(){this.On=new Wn,this.Dn=new Wn,this.Pa=new Wn,this.cf=new Kn,this.bf=new Kn,this.aj=new Kn,this.H=null,this.tp=!1}De=ra.prototype,De.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},De.Xe=function(a){this.H=a},De.oi=function(a){if(a instanceof Mi){if(this.On.add(a),a instanceof Rr){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 fi?this.Dn.add(a):a instanceof Go||this.Pa.add(a);y=a.data,y===null||a instanceof Go||(a instanceof fi?this.bf.add(y,a):this.cf.add(y,a))},De.pc=function(a){if(a.Ej(),a instanceof Mi){if(this.On.remove(a),a instanceof Rr){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 fi?this.Dn.remove(a):a instanceof Go||this.Pa.remove(a);y=a.data,y===null||a instanceof Go||(a instanceof fi?this.bf.remove(y):this.cf.remove(y))},De.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof Rr)&&at('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Rr||at('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof fi||at('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=En(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=En(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=En(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);kn(y),kn(x),kn(a)}},ra.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ra.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&fS(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&jh(this.diagram,!1)};function fS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=gS(a,y,E);if(b!==null&&(xc(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break e}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}ra.prototype.insertLink=function(){return null},ra.prototype.resolveReferencesForData=function(){},ra.prototype.Ro=function(a){return this.H.model.Ro(a)};function gS(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(vS||(vS=!0,Li('No Group template found for category "'+x+'"'),Li(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(mS||(mS=!0,Li('No Node template found for category "'+x+'"'),Li(" Using default node template")),y=a.ny))),y}ra.prototype.getLinkCategoryForData=function(){return""},ra.prototype.setLinkCategoryForData=function(){},ra.prototype.setFromNodeForLink=function(){},ra.prototype.setToNodeForLink=function(){},ra.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(yS||(yS=!0,Li('No Link template found for category "'+a+'"'),Li(" Using default link template")),x=y.my)),x},ra.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ra.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},ra.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Gd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},ra.prototype.unresolveReferencesForPart=function(){},ra.prototype.removeDataForLink=function(){},ra.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},ra.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Mi?a:null)},ra.prototype.findLinkForKey=function(){return null},De=ra.prototype,De.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},De.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Mi?a:null)},De.Kc=function(a){return a===null?null:this.bf.I(a)},De.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Wn;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(qt(ne)&&ly(this,b,ne)){y.add(E);break}}}return y.iterator},De.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Wn;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ne=arguments[z];if(qt(ne)&&ly(this,b,ne)){y.add(E);break}}}return y.iterator};function ly(a,y,x){for(var E in x){var b=y[E],z=x[E];if(Nn(z)){if(!Nn(b)||b.length<z.length)return!1;for(var ne=0;ne<b.length;ne++){var re=z[ne];if(re!==void 0&&!pS(a,b[ne],re))return!1}}else if(!pS(a,b,z))return!1}return!0}function pS(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(qt(y)&&qt(x)){if(!ly(a,y,x))return!1}else if(y!==x)return!1;return!0}ra.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 E=a.modelChange;if(E!=="")if(x===ii){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===ci){var ne=a.newValue;E==="nodeDataArray"&&qt(ne)&&fS(this,ne),y.isModified=!0}else if(x===Ei){var re=a.oldValue;E==="nodeDataArray"&&qt(re)&&this.ip(re),y.isModified=!0}else x===On&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===ii){var oe=a.propertyName,le=a.object;le===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,oe),y.isModified=!0}else if(x===ci||x===Ei){var ce=a.change===ci,me=ce?a.newParam:a.oldParam,Ce=ce?a.newValue:a.oldValue,Me=this.aj.I(a.object);if(Array.isArray(Me))for(a=0;a<Me.length;a++){var Be=Me[a];if(ce)Dm(Be,Ce,me,!0);else if(!(0>me)){var Re=me+xp(Be);Be.pc(Re,!0),wv(Be,Re,me)}}y.isModified=!0}}finally{y.aa=!0}}}}},ra.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)},ra.prototype.rp=function(){for(var a=this.H.model,y=new Wn,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(ne){ne.data===null||y.contains(ne.data)||b.push(ne.data)}),this.parts.each(function(ne){ne.data===null||y.contains(ne.data)||b.push(ne.data)}),b.forEach(function(ne){MS(a,ne,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&AS(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()},ra.prototype.refreshDataBoundLinks=function(){},ra.prototype.updateRelationshipsFromData=function(){},ra.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 E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var ne=b[z].sx(a);ne!==null&&(x===null&&(x=En()),x.push(ne))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);kn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function uy(a,y){var x=y.Hh;if(Nn(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function cy(a,y,x){Mf(y,function(ne){ne=ne.O.s;for(var re=ne.length,oe=0;oe<re;oe++)Kf(x,ne[oe])});var E=y.Hh;if(Nn(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}ra.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new Kn;if(Nn(a))for(var b=0;b<a.length;b++)h0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)h0(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new Wn;for(var z=new Kn,ne=E.iterator;ne.next();){var re=ne.value;if(re instanceof fi)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof Mi&&re.data!==null&&x.Tl()){var oe=re;re=ne.key;var le=re.pg();le!==null&&(le=E.I(le),le!==null?(x.qe(oe.data,x.wa(le.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ce=new Kn;E.each(function(me){me.key.data!==null&&ce.add(me.key.data,me.value.data)}),x(ce,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function h0(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Qi))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof Mi){for(var ne=y.linksConnected;ne.next();){var re=ne.value;if(re.fromNode===y){var oe=E.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=E.I(re),re!==null&&(re.toNode=z))}if(y instanceof Rr&&z instanceof Rr)for(y=y.memberParts;y.next();)ne=h0(a,y.value,x,E,b),ne instanceof fi||ne===null||(ne.containingGroup=z)}else if(y instanceof fi&&z instanceof fi)for(ne=y.fromNode,ne!==null&&(ne=E.I(ne),ne!==null&&(z.fromNode=ne)),ne=y.toNode,ne!==null&&(ne=E.I(ne),ne!==null&&(z.toNode=ne)),y=y.labelNodes;y.next();)ne=h0(a,y.value,x,E,b),ne!==null&&ne instanceof Mi&&(ne.labeledLink=z);return z}ra.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof fi||(E=b.copyNodeData(E),qt(E)&&(b.xf(E),x=y.Lc(E)))}else xc(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof fi||(b=y.copyNodeData(E)),qt(b)&&(x.data=b)));return x},bt.Object.defineProperties(ra.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}}}),ra.prototype.updateAllRelationshipsFromData=ra.prototype.rp,ra.prototype.findLinksByExample=ra.prototype.ls,ra.prototype.findNodesByExample=ra.prototype.ms,ra.prototype.findLinkForData=ra.prototype.Kc,ra.prototype.findNodeForData=ra.prototype.ii,ra.prototype.findPartForData=ra.prototype.Lc,ra.prototype.findNodeForKey=ra.prototype.Vb,ra.prototype.removeModeledPart=ra.prototype.ip,ra.prototype.removeModeledParts=ra.prototype.Gs,ra.prototype.rebuildParts=ra.prototype.Wd;var mS=!1,vS=!1,yS=!1;ra.className="PartManager";function al(a){ra.apply(this,arguments)}Ut(al,ra),al.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),SS(this,a.linkDataArray)},al.prototype.addModeledParts=function(a){for(ra.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Ig(a.value);jh(this.diagram,!1)};function SS(a,y){y.forEach(function(x){xS(a,x)}),jh(a.diagram,!1)}function xS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){xc(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=m0(x,y,!0);z!==""&&(b.fromPortId=z),z=Gu(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Mi&&(b.fromNode=z)),z=m0(x,y,!1),z!==""&&(b.toPortId=z),z=Gu(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Mi&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ne){ne=a.Vb(ne),ne!==null&&(ne.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}al.prototype.removeAllModeledParts=function(){var a=this.diagram.model;PS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function PS(a,y){y.forEach(function(x){a.ip(x)})}al.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},al.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},al.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},al.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},al.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},al.prototype.findPartForKey=function(a){var y=ra.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},al.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},al.prototype.doModelChanged=function(a){var y=this;if(ra.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===ii){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ne=this.Vb(a.newValue);z.fromNode=ne}}else if(b==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(b==="linkFromPortId"){var le=this.Kc(a.object);if(le!==null){var ce=a.newValue;typeof ce=="string"&&(le.fromPortId=ce)}}else if(b==="linkToPortId"){var me=this.Kc(a.object);if(me!==null){var Ce=a.newValue;typeof Ce=="string"&&(me.toPortId=Ce)}}else if(b==="nodeGroupKey"){var Me=this.Lc(a.object);if(Me!==null){var Be=a.newValue;if(Be!==void 0){var Re=this.Vb(Be);Re instanceof Rr?Me.containingGroup=Re:Me.containingGroup=null}else Me.containingGroup=null}}else if(b==="linkLabelKeys"){var dt=this.Kc(a.object);if(dt!==null){var et=a.oldValue,Pt=a.newValue;Array.isArray(et)&&et.forEach(function(Vn){0<=Pt.indexOf(Vn)||(Vn=y.Vb(Vn),Vn!==null&&(Vn.labeledLink=null))}),Array.isArray(Pt)&&Pt.forEach(function(Vn){Vn=y.Vb(Vn),Vn!==null&&(Vn.labeledLink=dt)})}}else if(b==="linkCategory"){var At=this.Kc(a.object),Dt=a.newValue;At!==null&&typeof Dt=="string"&&(At.category=Dt)}else b==="linkDataArray"&&(PS(this,a.oldValue),SS(this,a.newValue));x.isModified=!0}else if(E===ci){var Rt=a.newValue;if(b==="linkDataArray"&&typeof Rt=="object"&&Rt!==null)xS(this,Rt);else if(b==="linkLabelKeys"&&_h(Rt)){var dn=this.Kc(a.object),bi=this.Vb(Rt);dn!==null&&bi!==null&&(bi.labeledLink=dn)}x.isModified=!0}else if(E===Ei){var Ii=a.oldValue;if(b==="linkDataArray"&&typeof Ii=="object"&&Ii!==null)this.ip(Ii);else if(b==="linkLabelKeys"&&_h(Ii)){var Ni=this.Vb(Ii);Ni!==null&&(Ni.labeledLink=null)}x.isModified=!0}}else if(E===ii){var hi=a.propertyName;a.object!==x.model||hi!=="linkFromKeyProperty"&&hi!=="linkToKeyProperty"&&hi!=="linkFromPortIdProperty"&&hi!=="linkToPortIdProperty"&&hi!=="linkLabelKeysProperty"&&hi!=="nodeIsGroupProperty"&&hi!=="nodeGroupKeyProperty"&&hi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},al.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Wn,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){kS(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&NS(y,z,!1)})},al.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof fi){var b=Gu(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=Gu(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new Wn().addAll(y);var ne=new Wn;a.labelNodes.each(function(re){re.data!==null&&(re=E.wa(re.data),re!==void 0&&ne.add(re))}),y=ne.copy(),y.hp(b),b=b.copy(),b.hp(ne),(0<y.count||0<b.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),b.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof Go)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Rr)&&(a.containingGroup=y)}}},al.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Hp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var ne=E.value;y.lb(ne)?b instanceof Rr&&y.lh(ne)===x&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=b)):(z.link=this.Kc(ne),z.link!==null&&b instanceof Mi&&(Gu(y,ne,!0)===x&&(z.link.fromNode=b),Gu(y,ne,!1)===x&&(z.link.toNode=b),ne=y.Ef(ne),Array.isArray(ne)&&ne.some(function(re){return function(oe){return oe===x?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}_c(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Rr&&(b.containingGroup=a))}},al.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Mi){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)Xc(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&Xc(y,x,E.data)),a instanceof Rr)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&Xc(y,x,E)}}},al.prototype.copyPartData=function(a,y){var x=ra.prototype.copyPartData.call(this,a,y);if(a instanceof fi)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.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},al.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,ne=b.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=ne.archetypeLinkData,E instanceof fi){if(xc(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,b.add(z),a=ne.archetypeLabelNodeData,a instanceof Mi&&(xc(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&Zg(z,E,z.wa(a.data),!0),Gg(z,E,re,!0),x!==null&&Zg(z,E,z.wa(x.data),!1),Gg(z,E,y,!1),z.fi(E),a=ne.archetypeLabelNodeData,a===null||a instanceof Mi||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},al.prototype.findLinkForKey=al.prototype.findLinkForKey,al.prototype.findPartForKey=al.prototype.findPartForKey,al.prototype.removeAllModeledParts=al.prototype.removeAllModeledParts,al.prototype.addModeledParts=al.prototype.addModeledParts,al.prototype.addAllModeledParts=al.prototype.addAllModeledParts,al.className="GraphLinksPartManager";function oc(){ra.apply(this,arguments),this.Sg=null}Ut(oc,ra);function f0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!zn(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(xc(E),E=E.copy(),E!==null))){var ne=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=ne}}}oc.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},oc.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},oc.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},oc.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},oc.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},oc.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},oc.prototype.doModelChanged=function(a){if(ra.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 E=a.modelChange;if(E!==""){if(x===ii){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),ne=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(ne!==null){var re=ne.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:f0(this,z,ne)}}else if(E==="parentLinkCategory"){var oe=this.ii(a.object),le=a.newValue;if(oe!==null&&typeof le=="string"){var ce=oe.kh();ce!==null&&(ce.category=le)}}y.isModified=!0}}else if(x===ii){var me=a.propertyName;a.object===y.model&&me==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},oc.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof Mi&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:f0(this,y,a):E!==null&&Gd(x,E,!1)))}}},oc.prototype.updateDataBindings=function(a,y){ra.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},oc.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=Hp(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof Mi&&y.mh(z)===x&&f0(this,b,this.ii(z))}_c(y,x)}a=y.mh(a),a!==void 0&&b instanceof Mi&&(a=this.Vb(a),f0(this,a,b))}},oc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Mi){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(Ei,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&Xc(y,x,b)}},oc.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},oc.prototype.findLinkForKey=oc.prototype.findLinkForKey,oc.className="TreePartManager";function Ki(a,y){this.kl=new Wn,this.il=new Wn,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Hr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Kn,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 Kn,this.Lt=new An,this.Wg=!1,this.o=null,this.undoManager=new wi,a!==void 0&&(Nn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ki.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},Ki.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ki.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ki.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,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Jn(b)}}return y},Ki.prototype.xA=function(a){a.change!==On&&at("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Xi?(CS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ki.prototype.Qv=function(a,y){var x=this,E=!1,b=new Wn,z=new Wn,ne=new Wn,re=this.vh;a.changes.each(function(me){me.model===x&&(me.modelChange==="nodeDataArray"?me.change===ci?b.add(me.newValue):me.change===Ei&&ne.add(me.oldValue):x.lb(me.object)?z.add(me.object):me.change!==ii||x.modelData!==me.object&&me.propertyName!=="modelData"?me.object!==null&&(re&&re.contains(me.object)?re.get(me.object).each(function(Ce){x.lb(Ce)&&z.add(Ce)}):me.object instanceof Ki||x.ri()&&x.Jc(me.object)||ES(x,me.object).each(function(Ce){z.add(Ce)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(me){oe.add(x.wa(me)),y||z.add(me)});var le=this.kl;le.clear(),ne.each(function(me){le.add(x.wa(me)),y&&z.add(me)}),a=x.cloneDeep(z.Fa());var ce=null;return E&&(ce===null&&(ce={}),ce.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(ce===null&&(ce={}),y?ce.removedNodeKeys=oe.Fa():ce.insertedNodeKeys=oe.Fa()),0<a.length&&(ce===null&&(ce={}),ce.modifiedNodeData=a),0<le.count&&(ce===null&&(ce={}),y?ce.insertedNodeKeys=le.Fa():ce.removedNodeKeys=le.Fa()),le.clear(),oe.clear(),ce},Ki.prototype.cloneDeep=function(a){return Wg(this,a,!0)};function Wg(a,y,x,E,b,z){function ne(me,Ce){re?(me.__gohashid===void 0&&z.push(me),E.set(me,Ce)):(me=Ot++,E.set(me,Ce),b.set(me,y))}if(!qt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new Kn),re){var oe=E.get(y);if(oe)return oe}else for(b||(b=new Kn),oe=b.iterator;oe.next();){var le=oe.key;if(oe.value===y&&(le=E.get(le)))return le}if(Array.isArray(y)){oe=[],ne(y,oe);for(var ce=0;ce<y.length;ce++)oe.push(Wg(a,y[ce],!1,E,b,z))}else if(y instanceof qe||y instanceof oi||y instanceof Cn||y instanceof Yn||y instanceof Zi)oe=y.copy(),ne(y,oe);else{if(y instanceof ta||y instanceof vi||y instanceof Jt)return y;if(y instanceof An)oe=new An().addAll(Wg(a,y.Fa(),!1,E,b,z)),ne(y,oe);else if(y instanceof Wn)oe=new Wn().addAll(Wg(a,y.Fa(),!1,E,b,z)),ne(y,oe);else if(y instanceof Kn)oe=new Kn().addAll(Wg(a,y.Fa(),!1,E,b,z)),ne(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ne(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ne(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ne(y,oe);else for(ce in oe={},ne(y,oe),y)ce!=="__gohashid"&&(oe[ce]=Wg(a,y[ce],!1,E,b,z))}return x&&z.forEach(function(me){delete me.__gohashid}),oe}De=Ki.prototype,De.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},De.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},De.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 wS(a,y){y=y.modelData,qt(y)&&(a.dm(y),a.modelData=y)}De.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!bS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+dy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+Xh(this,this.nodeDataArray,!0)},De.kv=function(a){wS(this,a),a=a.nodeDataArray,Nn(a)&&(this.dm(a),this.nodeDataArray=a)};function CS(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var ne=E.get(b);ne===null?(ne=new Wn,ne.add(z),E.add(b,ne)):ne.add(z)}}var E=a.vh;E===null&&(E=new Kn,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===ii?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===ci||z===Ei)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function ES(a,y){for(var x=new Wn,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];g0(a,y,b,b,x)}return x}function g0(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var ne=x[z];if(ne===y)return b.add(E),!0;if(g0(a,y,ne,E,b))return!0}else if(qt(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ne=x[z],ne===y)return b.add(E),!0;if(g0(a,y,ne,E,b))return!0}return!1}De.Pv=function(a,y){var x=this,E=!1,b=new Wn,z=new Wn,ne=new Wn,re=this.vh;a.changes.each(function(ce){ce.model===x&&(ce.modelChange==="nodeDataArray"?ce.change===ci?b.add(ce.newValue):ce.change===Ei&&ne.add(ce.oldValue):x.lb(ce.object)?z.add(ce.object):ce.change!==ii||x.modelData!==ce.object&&ce.propertyName!=="modelData"?ce.object!==null&&(re&&re.contains(ce.object)?re.get(ce.object).each(function(me){x.lb(me)&&z.add(me)}):ce.object instanceof Ki||x.ri()&&x.Jc(ce.object)||ES(x,ce.object).each(function(me){z.add(me)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(ce){oe.add(x.wa(ce)),y||z.add(ce)});var le=this.kl;return le.clear(),ne.each(function(ce){le.add(x.wa(ce)),y&&z.add(ce)}),a="",E&&(a+=`,
|
|
|
"modelData": `+dy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+Xh(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+Xh(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Wv:this.Yv)+Xh(this,le.Fa(),!0)),le.clear(),oe.clear(),a},De.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)&&at("applyIncrementalJson cannot change Model properties"),wS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new Kn;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],ne=this.wa(z);ne!=null&&E.set(ne,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){ne=y[z];var re=this.hc(ne);re===null&&(re=(re=E.get(ne))?re:this.copyNodeData({}),this.km(re,ne),this.xf(re))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var oe in b)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,b[oe]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},De.$x=function(a,y){a.change!==On&&at("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Xi?(y===void 0&&(y=Wp(this,this)),CS(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 }'},De.yA=function(a,y){return this.$x(a,y)},De.np=function(a){return a===void 0&&(a=Wp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},De.toJSON=function(a){return this.np(a)},De.Zw=function(a){var y=null;if(typeof a=="string")try{y=ot.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:at("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&at("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},De.Ky=function(a){return this.Zw(a)},Ki.constructGraphLinksModel=function(){return new Ki},De=Ki.prototype,De.dm=function(a){if(Nn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(qt(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:at("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(qt(a)){for(y in a)if(x=a[y],qt(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new An,E=0;E<x.length/2;E++)b.add(new qe(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return zx(a)}return a},De.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Nn(a)?Xh(this,a):qt(a)?dy(this,a):typeof a=="function"?"null":a.toString()};function Xh(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new Si;b.add("["),x&&1<E&&b.add(`
|
|
|
`);for(var z=0;z<E;z++){var ne=y[z];ne!==void 0&&(0<z&&(b.add(","),x&&b.add(`
|
|
|
`)),b.add(a.sm(ne)))}return x&&1<E&&b.add(`
|
|
|
`),b.add("]"),b.toString()}function bS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function eu(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function dy(a,y){var x=y;if(x instanceof qe)y={class:"go.Point",x:eu(x.x),y:eu(x.y)};else if(x instanceof oi)y={class:"go.Size",width:eu(x.width),height:eu(x.height)};else if(x instanceof Cn)y={class:"go.Rect",x:eu(x.x),y:eu(x.y),width:eu(x.width),height:eu(x.height)};else if(x instanceof Yn)y={class:"go.Margin",top:eu(x.top),right:eu(x.right),bottom:eu(x.bottom),left:eu(x.left)};else if(x instanceof Zi)x.sb()?y={class:"go.Spot",x:eu(x.x),y:eu(x.y),offsetX:eu(x.offsetX),offsetY:eu(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof ta){if(y={class:"go.Brush",type:x.type.name},x.type===mh?y.color=x.color:(x.type===Ud||x.type===ic)&&(y.start=x.start,y.end=x.end,x.type===ic&&(x.startRadius!==0&&(y.startRadius=eu(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=eu(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof vi?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=eu(x.startX)),x.startY!==0&&(y.startY=eu(x.startY)),x.endX!==0&&(y.endX=eu(x.endX)),x.endY!==0&&(y.endY=eu(x.endY)),x.spot1.D(As)||(y.spot1=x.spot1),x.spot2.D(pa)||(y.spot2=x.spot2),x.type===vi.o&&(y.path=vi.ia(x))):x instanceof Jt&&(y={class:"go.EnumValue",classType:Wp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=Es(y,b);if(!bS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof An){var ne="[";for(z=z.iterator;z.next();){var re=z.value;1<ne.length&&(ne+=","),ne+=a.sm(re.x),ne+=",",ne+=a.sm(re.y)}ne+="]",E+=ne}else E+=a.sm(z)}return E+"}"}function tu(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function zx(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 qe(tu(a.x),tu(a.y));else if(y==="Size")x=new oi(tu(a.width),tu(a.height));else if(y==="Rect")x=new Cn(tu(a.x),tu(a.y),tu(a.width),tu(a.height));else if(y==="Margin")x=new Yn(tu(a.top),tu(a.right),tu(a.bottom),tu(a.left));else if(y==="Spot")typeof a.enum=="string"?x=ih(a.enum):x=new Zi(tu(a.x),tu(a.y),tu(a.offsetX),tu(a.offsetY));else if(y==="Brush"){if(x=new ta,x.type=Fi(ta,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Zi&&(x.start=a.start),a.end instanceof Zi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=tu(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=tu(a.endRadius)),a=a.colorStops,qt(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=vi.parse(a.path):x=new vi,x.type=Fi(vi,a.type),typeof a.startX=="number"&&(x.startX=tu(a.startX)),typeof a.startY=="number"&&(x.startY=tu(a.startY)),typeof a.endX=="number"&&(x.endX=tu(a.endX)),typeof a.endY=="number"&&(x.endY=tu(a.endY)),a.spot1 instanceof Zi&&(x.spot1=a.spot1),a.spot2 instanceof Zi&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=fy(E),typeof E=="function"&&(x=Fi(E,a.name)));return x}De.Pe=function(a){return this.Lt.add(a),this},De.ik=function(a){this.Lt.remove(a)},De.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},De.cb=function(a,y,x,E,b,z,ne){Zs(this,"",a,y,x,E,b,z,ne)},De.g=function(a,y,x,E,b){Zs(this,"",ii,a,this,y,x,E,b)},De.Fs=function(a,y,x,E,b,z){Zs(this,"",ii,y,a,x,E,b,z)};function Zs(a,y,x,E,b,z,ne,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var le=new Dn;le.model=a,le.change=x,le.modelChange=y,le.propertyName=E,le.object=b,le.oldValue=z,le.oldParam=re,le.newValue=ne,le.newParam=oe,a.ds(le)}Ki.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===ii){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),Ra(x,E,b)}else a.change===ci?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,qt(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&Fn(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&Sn(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Nn(E)&&a.propertyName&&(E=Es(a.object,a.propertyName)),Nn(E)&&typeof x=="number"&&(a=a.newValue,y?Fn(E,x):Sn(E,x,a))):at("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ei?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,qt(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&Sn(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&Fn(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Nn(E)&&a.propertyName&&(E=Es(a.object,a.propertyName)),Nn(E)&&typeof x=="number"&&(a=a.oldValue,y?Sn(E,x,a):Fn(E,x))):at("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==On&&at("unknown ChangedEvent: "+a.toString())},Ki.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ki.prototype.eb=function(a){return this.undoManager.eb(a)},Ki.prototype.Kf=function(){return this.undoManager.Kf()},Ki.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},De=Ki.prototype,De.La=function(a,y){y===void 0&&(y=""),Zs(this,"SourceChanged",On,y,a,null,null)},De.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Es(a,y),y!==void 0)){if(_h(y))return y;at("Key value for node data "+a+" is not a number or a string: "+y)}}},De.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=Es(a,x);E!==y&&this.hc(y)===null&&(Ra(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Zs(this,"nodeKey",ii,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else Ra(a,x,y)}};function _h(a){return typeof a=="number"||typeof a=="string"}De.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},De.hc=function(a){return a===null&&at("Model.findNodeDataForKey:key must not be null"),a!==void 0&&_h(a)?this.kb.I(a):null},De.$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 E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){Ra(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;Ra(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ra(a,y,x)}}}}},De.xf=function(a){a!==null&&(ha(a),this.lb(a)||AS(this,a,!0))};function AS(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&at("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,Sn(a.Tc,E,y)),Zs(a,"nodeDataArray",ci,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}De.Fy=function(a){if(Nn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},De.cm=function(a){a!==null&&MS(this,a,!0)};function MS(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){e:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break e}E=-1}if(0>E)return;Fn(a.Tc,E)}Zs(a,"nodeDataArray",Ei,"nodeDataArray",a,y,null,E,null),a.qp(y)}De.nA=function(a){if(Nn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},De.$z=function(a){if(a!==this.nodeDataArray&&Nn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ne=this.wa(z);if(ne!==void 0){x.add(ne);var re=this.hc(ne);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ne),this.xf(z)))}else ne=this.cloneDeep(z),this.xf(ne),x.add(this.wa(ne))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},De.jp=function(a,y){y!==void 0&&(a=Hp(this,a),a instanceof Wn&&this.Vf.add(y,a))},De.Lv=function(){},De.fm=function(){},De.em=function(){},De.qp=function(){};function Xc(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new Wn,a.Vf.add(y,E)),E.add(x)}}function _c(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof Wn&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function Hp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Wn?a:null)}De.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ki.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):p0(this,a,!0),qt(a)&&Hr(a),a};function p0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=p0(a,y[x],a.copiesArrayObjects);E.push(b)}return Hr(E),E}if(x&&qt(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=Es(y,E),ne=Wp(a,z);ne==="GraphObject"||ne==="Diagram"||ne==="Layer"||ne==="RowColumnDefinition"||ne==="AnimationManager"||ne==="Tool"||ne==="CommandHandler"||ne==="Layout"||ne==="InputEvent"||ne==="DiagramEvent"||z instanceof Ki||z instanceof wi||z instanceof Xi||z instanceof Dn||(z=p0(a,z,!1)),Ra(x,E,z)}return Hr(x),x}return y instanceof qe||y instanceof oi||y instanceof Cn||y instanceof Zi||y instanceof Yn?y.copy():y}Ki.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!LS&&a instanceof jt&&(LS=!0,Li('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Li(" Is that really your intent?"));var E=Es(a,y);E!==x&&(Ra(a,y,x),this.Fs(a,y,E,x))},De=Ki.prototype,De.set=function(a,y,x){this.setDataProperty(a,y,x)},De.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},De.Ay=function(a,y){this.ts(a,-1,y)},De.ts=function(a,y,x){0>y&&(y=a.length),Sn(a,y,x),Zs(this,"",ci,"",a,null,x,null,y)},De.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&at("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Fn(a,y),Zs(this,"",Ei,"",a,x,null,y,null)},De.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Es(a,y),y===void 0))return"";if(typeof y=="string")return y;at("getCategoryForNodeData found a non-string category for "+a+": "+y)},De.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Es(a,x);E===void 0&&(E=""),E!==y&&(Ra(a,x,y),Zs(this,"nodeCategory",ii,x,a,E,y))}else Ra(a,x,y)}},De.lm=function(a,y){this.jm(y,this.Ro(a))},De.Tl=function(){return!1},De.Wj=function(){return!1},De.ri=function(){return!1},De.xs=function(){return!1},De.Xj=function(){return!1};function hy(){return new Ki}function Wp(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 Wp(a,y.constructor);return typeof y}function fy(a){return Tc[a]?Tc[a]:ot.go!==void 0&&ot.go[a]?ot.go[a]:null}function Es(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(E){}return x}function Ra(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(E){}}bt.Object.defineProperties(Ki.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===""&&at("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&at("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,E=0;E<x;E++){var b=a[E];qt(b)||at("Model.nodeDataArray must only contain Objects, not: "+b),ha(b)}for(this.Tc=a,E=new An,b=0;b<x;b++){var z=a[b],ne=this.wa(z);ne===void 0||this.kb.I(ne)!==null?E.add(z):this.kb.add(ne,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(Zs(this,"nodeDataArray",ii,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);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"}}}),Ki.prototype.setCategoryForNodeData=Ki.prototype.jm,Ki.prototype.getCategoryForNodeData=Ki.prototype.Ro,Ki.prototype.removeArrayItem=Ki.prototype.ov,Ki.prototype.insertArrayItem=Ki.prototype.ts,Ki.prototype.addArrayItem=Ki.prototype.Ay,Ki.prototype.assignAllDataProperties=Ki.prototype.Do,Ki.prototype.set=Ki.prototype.set,Ki.prototype.clearUnresolvedReferences=Ki.prototype.Qy,Ki.prototype.mergeNodeDataArray=Ki.prototype.$z,Ki.prototype.removeNodeDataCollection=Ki.prototype.nA,Ki.prototype.removeNodeData=Ki.prototype.cm,Ki.prototype.addNodeDataCollection=Ki.prototype.Fy,Ki.prototype.addNodeData=Ki.prototype.xf,Ki.prototype.makeNodeDataKeyUnique=Ki.prototype.$u,Ki.prototype.findNodeDataForKey=Ki.prototype.hc,Ki.prototype.containsNodeData=Ki.prototype.lb,Ki.prototype.setKeyForNodeData=Ki.prototype.km,Ki.prototype.getKeyForNodeData=Ki.prototype.wa,Ki.prototype.updateTargetBindings=Ki.prototype.La,Ki.prototype.commit=Ki.prototype.commit,Ki.prototype.rollbackTransaction=Ki.prototype.Kf,Ki.prototype.commitTransaction=Ki.prototype.eb,Ki.prototype.startTransaction=Ki.prototype.Ea,Ki.prototype.raiseDataChanged=Ki.prototype.Fs,Ki.prototype.raiseChanged=Ki.prototype.g,Ki.prototype.raiseChangedEvent=Ki.prototype.cb,Ki.prototype.removeChangedListener=Ki.prototype.ik,Ki.prototype.addChangedListener=Ki.prototype.Pe,Ki.prototype.writeJsonValue=Ki.prototype.sm,Ki.prototype.replaceJsonObjects=Ki.prototype.dm,Ki.prototype.applyIncrementalJSON=Ki.prototype.Ky,Ki.prototype.applyIncrementalJson=Ki.prototype.Zw,Ki.prototype.toJSON=Ki.prototype.toJSON,Ki.prototype.toJson=Ki.prototype.np,Ki.prototype.toIncrementalJSON=Ki.prototype.yA,Ki.prototype.toIncrementalJson=Ki.prototype.$x,Ki.prototype.toIncrementalData=Ki.prototype.xA,Ki.prototype.clear=Ki.prototype.clear;var LS=!1,Tc={};Ki.className="Model",Ki.fromJSON=Ki.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=ot.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:at("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=fy(E)):(b=fy(E),b===null&&(b=ot[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Ki?y=a:at("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ki.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ki.safePropertyValue=Es,Ki.safePropertySet=Ra,Tc.Brush=ta,Tc.ChangedEvent=Dn,Tc.Geometry=vi,Tc.Margin=Yn,Tc.Panel=ai,Tc.Point=qe,Tc.Rect=Cn,Tc.Size=oi,Tc.Spot=Zi,Tc.Transaction=Xi,Tc.UndoManager=wi;function Fs(a,y,x,E){Hr(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,E===void 0?(this.el=DS,this.wk=null):(this.el=Zp,this.wk=E),this.st=new Wn}Fs.prototype.copy=function(){var a=new Fs;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},De=Fs.prototype,De.qb=function(a){a.classType===Fs&&(this.mode=a)},De.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},De.freeze=function(){return this._isFrozen=!0,this},De.ka=function(){return this._isFrozen=!1,this},De.Kx=function(a){return a===void 0&&(a=null),this.mode=Zp,this.backConverter=a,this},De.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},De.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function FS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}De.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")Li("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=Es(y,E)),z!==void 0)if(b===null)x!==""&&Ra(a,x,z);else try{if(x!==""){var ne=b(z,a);Ra(a,x,ne)}else b(z,a)}catch(re){}}}},De.sp=function(a,y,x,E){if(this.el===Zp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,ne=a;if(b!==""&&(ne=Es(a,b)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=E!==null?E.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ne):Ra(y,x,ne);else if(oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var le=E.itemIndex,ce=E.panel.itemArray;oe.ov(ce,le),oe.ts(ce,le,ne)}}else try{if(x!==""){var me=z(ne,y,oe);oe!==null?oe.setDataProperty(y,x,me):Ra(y,x,me)}else{var Ce=z(ne,y,oe);if(Ce!==void 0&&oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var Me=E.itemIndex,Be=E.panel.itemArray;oe.ov(Be,Me),oe.ts(Be,Me,Ce)}}}catch(Re){}}finally{this.st.remove(a)}}}},bt.Object.defineProperties(Fs.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Bn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Bn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Bn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Bn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Bn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Bn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Bn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Bn(this),this.el=a}}}),Fs.prototype.updateSource=Fs.prototype.sp,Fs.prototype.updateTarget=Fs.prototype.Mv,Fs.prototype.ofModel=Fs.prototype.dA,Fs.prototype.ofObject=Fs.prototype.cp,Fs.prototype.makeTwoWay=Fs.prototype.Kx;var jx="Binding",DS=new Jt(Fs,"OneWay",1),Zp=new Jt(Fs,"TwoWay",2);Fs.className="Binding",Fs.parseEnum=function(a,y){return function(x){return x=Fi(a,x),x===null?y:x}},Fs.toString=Jn,Fs.OneWay=DS,Fs.TwoWay=Zp;function Do(a,y,x){Ki.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Wn,this.wb=new Kn,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(Nn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Ut(Do,Ki),Do.constructGraphLinksModel=Ki.constructGraphLinksModel,Do.prototype.cloneProtected=function(a){Ki.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},De=Do.prototype,De.clear=function(){Ki.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},De.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,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Jn(b)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+Gu(this,b,!0)+"-->"+Gu(this,b,!1)}return y},De.Qv=function(a,y){this.linkKeyProperty===""&&at("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ki.prototype.Qv.call(this,a,y),E=this,b=new Wn,z=new Wn,ne=new Wn,re=this.vh;a.changes.each(function(ce){ce.model===E&&(ce.modelChange==="linkDataArray"?ce.change===ci?b.add(ce.newValue):ce.change===Ei&&ne.add(ce.oldValue):E.Jc(ce.object)?z.add(ce.object):ce.object!==null&&(ce.object!==null&&re&&re.contains(ce.object)?re.get(ce.object).each(function(me){E.Jc(me)&&z.add(me)}):ce.object instanceof Ki||E.lb(ce.object)||BS(E,ce.object).each(function(me){z.add(me)})))});var oe=this.il;oe.clear(),b.each(function(ce){oe.add(E.Ac(ce)),y||z.add(ce)});var le=this.kl;return le.clear(),ne.each(function(ce){le.add(E.Ac(ce)),y&&z.add(ce)}),a=E.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<le.count&&(x===null&&(x={}),y?x.insertedLinkKeys=le.Fa():x.removedLinkKeys=le.Fa()),le.clear(),oe.clear(),x},De.rm=function(){var a=Ki.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},De.gp=function(a){Ki.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)},De.Rv=function(){var a=Ki.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Xh(this,this.linkDataArray,!0);return a+y},De.kv=function(a){Ki.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function BS(a,y){for(var x=new Wn,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];g0(a,y,b,b,x)}return x}De.Pv=function(a,y){this.linkKeyProperty===""&&at("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ki.prototype.Pv.call(this,a,y),E=this,b=new Wn,z=new Wn,ne=new Wn,re=this.vh;a.changes.each(function(ce){ce.model===E&&(ce.modelChange==="linkDataArray"?ce.change===ci?b.add(ce.newValue):ce.change===Ei&&ne.add(ce.oldValue):E.Jc(ce.object)?z.add(ce.object):ce.object!==null&&(ce.object!==null&&re&&re.contains(ce.object)?re.get(ce.object).each(function(me){E.Jc(me)&&z.add(me)}):ce.object instanceof Ki||E.lb(ce.object)||BS(E,ce.object).each(function(me){z.add(me)})))});var oe=this.il;oe.clear(),b.each(function(ce){oe.add(E.Ac(ce)),y||z.add(ce)});var le=this.kl;return le.clear(),ne.each(function(ce){le.add(E.Ac(ce)),y&&z.add(ce)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+Xh(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+Xh(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Vv:this.Xv)+Xh(this,le.Fa(),!0)),le.clear(),oe.clear(),a},De.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)&&at("applyIncrementalJson cannot change Model properties"),Ki.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var ne in b)ne!=="__gohashid"&&ne!==this.linkKeyProperty&&this.setDataProperty(z,ne,b[ne]);TS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ne=a.length,y=0;y<ne;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},Do.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===ii){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),Ra(x,E,b);return}}else if(a.change===ci){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,qt(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===Ei){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,qt(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Ki.prototype.changeState.call(this,a,y)}},De=Do.prototype,De.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),Ra(x,this.nodeKeyProperty,a),this.xf(x))}return a}},De.yx=function(a){return Gu(this,a,!0)},De.wv=function(a,y){Zg(this,a,y,!0)},De.Bx=function(a){return Gu(this,a,!1)},De.Bv=function(a,y){Zg(this,a,y,!1)};function Gu(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Es(y,a),a!==void 0))){if(_h(a))return a;at((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Zg(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=Es(y,b);z!==x&&(_c(a,z,y),Ra(y,b,x),a.hc(x)===null&&Xc(a,x,y),Zs(a,E?"linkFromKey":"linkToKey",ii,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Ra(y,b,x)}}De.zx=function(a){return m0(this,a,!0)},De.xv=function(a,y){Gg(this,a,y,!0)},De.Cx=function(a){return m0(this,a,!1)},De.Cv=function(a,y){Gg(this,a,y,!1)};function m0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Es(y,a),y===void 0?"":y)}function Gg(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Es(y,b);z===void 0&&(z=""),z!==x&&(Ra(y,b,x),Zs(a,E?"linkFromPortId":"linkToPortId",ii,b,y,z,x),typeof b=="string"&&a.La(y,b))}else Ra(y,b,x)}}De.Ef=function(a){if(a===null)return v0;var y=this.je;return y===""?v0:(a=Es(a,y),a===void 0?v0:a)},De.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Es(a,x);if(E===void 0&&(E=v0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)_c(this,E[z],a);for(Ra(a,x,y),b=y.length,z=0;z<b;z++){var ne=y[z];this.hc(ne)===null&&Xc(this,ne,a)}Zs(this,"linkLabelKeys",ii,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else Ra(a,x,y)}},De.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Es(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&Xc(this,y,a),Zs(this,"linkLabelKeys",ci,x,a,null,y,null,b)))}else at(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},De.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Es(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(_c(this,y,a),Zs(this,"linkLabelKeys",Ei,x,a,y,null,b,null)))}else E!==void 0&&at(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},De.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Es(a,y),y!==void 0)){if(_h(y))return y;at("Key value for link data "+a+" is not a number or a string: "+y)}}},De.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Es(a,x);E!==y&&this.jh(y)===null&&(Ra(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Zs(this,"linkKey",ii,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Ra(a,x,y)}},De.jh=function(a){return a===null&&at("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&_h(a)?this.wb.I(a):null},De.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 E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){Ra(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;Ra(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ra(a,y,x)}}}}},De.Jc=function(a){return a===null?!1:this.$f.contains(a)},De.fi=function(a){a!==null&&(ha(a),this.Jc(a)||NS(this,a,!0))};function NS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&at("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Zs(a,"linkDataArray",ci,"linkDataArray",a,null,y,null,E),gy(a,y)}De.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)},De.bm=function(a){a!==null&&kS(this,a,!0)};function kS(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(Zs(a,"linkDataArray",Ei,"linkDataArray",a,y,null,E,null),x=Gu(a,y,!0),_c(a,x,y),x=Gu(a,y,!1),_c(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],_c(a,x,y)}De.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)},De.Zz=function(a){if(this.linkKeyProperty===""&&at("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Nn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ne=this.Ac(z);if(ne!==void 0){x.add(ne);var re=this.jh(ne);re!==z&&(re!==null?(this.Do(re,z),TS(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ne),this.fi(z)))}else ne=this.cloneDeep(z),this.fi(ne),x.add(this.Ac(ne))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function gy(a,y){var x=Gu(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Xc(a,x,y),x=Gu(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Xc(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&Xc(a,x,y)}De.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):p0(this,a,!0),qt(a)&&(Hr(a),this.lf!==""&&Ra(a,this.lf,void 0),this.mf!==""&&Ra(a,this.mf,void 0),this.je!==""&&Ra(a,this.je,[])),a},De.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Es(a,y)},De.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Es(a,y),y!==void 0)){if(_h(y))return y;at("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},De.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=Es(a,x);E!==y&&(_c(this,E,a),Ra(a,x,y),this.hc(y)===null&&Xc(this,y,a),Zs(this,"nodeGroupKey",ii,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Ra(a,x,y)}},Do.prototype.copyNodeData=function(a){return a===null?null:(a=Ki.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Es(a,this.Je)===void 0||Ra(a,this.Je,void 0),a)},Do.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){Zg(this,a,x,!0);return}if(y===this.linkToKeyProperty){Zg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Gg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Gg(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 E=Es(a,y);E!==x&&(Ra(a,y,x),this.Fs(a,y,E,x))},De=Do.prototype,De.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&Es(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},De.jp=function(a,y){Ki.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 E=x.value,b=a,z=y;if(Gu(this,E,!0)===b){var ne=this.lf;Ra(E,ne,z),Zs(this,"linkFromKey",ii,ne,E,b,z),typeof ne=="string"&&this.La(E,ne)}if(Gu(this,E,!1)===b&&(ne=this.mf,Ra(E,ne,z),Zs(this,"linkToKey",ii,ne,E,b,z),typeof ne=="string"&&this.La(E,ne)),ne=this.Ef(E),Array.isArray(ne))for(var re=ne.length,oe=this.je,le=0;le<re;le++)ne[le]===b&&(ne[le]=z,Zs(this,"linkLabelKeys",ci,oe,E,b,z,le,le))}},De.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;Ra(a,E,x),Zs(this,"nodeGroupKey",ii,E,a,y,x),typeof E=="string"&&this.La(a,E)}},De.Lv=function(){Ki.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)gy(this,a[x])},De.fm=function(a){Ki.prototype.fm.call(this,a),a=this.wa(a);var y=Hp(this,a);if(y!==null){var x=En();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;Zs(this,"nodeGroupKey",ii,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(Gu(this,E,!0)===a&&(b=this.lf,Zs(this,"linkFromKey",ii,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),Gu(this,E,!1)===a&&(b=this.mf,Zs(this,"linkToKey",ii,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,ne=this.je,re=0;re<z;re++)b[re]===a&&(Zs(this,"linkLabelKeys",ci,ne,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)_c(this,a,x[y]);kn(x)}},De.em=function(a){Ki.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Xc(this,y,a)},De.qp=function(a){Ki.prototype.qp.call(this,a);var y=this.lh(a);_c(this,y,a)},De.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Es(a,y),y===void 0))return"";if(typeof y=="string")return y;at("getCategoryForLinkData found a non-string category for "+a+": "+y)},Do.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Do.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=Es(a,x);E===void 0&&(E=""),E!==y&&(Ra(a,x,y),Zs(this,"linkCategory",ii,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Ra(a,x,y)}},Do.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},De=Do.prototype,De.lm=function(a,y){Ki.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function TS(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))}De.Wj=function(){return!0},De.ri=function(){return!0},De.xs=function(){return!0},De.Xj=function(){return!0},bt.Object.defineProperties(Do.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,E=0;E<x;E++){var b=a[E];qt(b)||at("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),ha(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new An,b=0;b<x;b++){var z=a[b],ne=this.Ac(z);ne===void 0||this.wb.I(ne)!==null?E.add(z):this.wb.add(ne,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new Wn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,Zs(this,"linkDataArray",ii,"linkDataArray",this,y,a),y=0;y<x;y++)gy(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,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}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"}}}),Do.prototype.setCategoryForLinkData=Do.prototype.lp,Do.prototype.getCategoryForLinkData=Do.prototype.ps,Do.prototype.assignAllDataProperties=Do.prototype.Do,Do.prototype.setGroupKeyForNodeData=Do.prototype.mp,Do.prototype.getGroupKeyForNodeData=Do.prototype.lh,Do.prototype.isGroupForNodeData=Do.prototype.Yu,Do.prototype.copyLinkData=Do.prototype.Jo,Do.prototype.mergeLinkDataArray=Do.prototype.Zz,Do.prototype.removeLinkDataCollection=Do.prototype.lA,Do.prototype.removeLinkData=Do.prototype.bm,Do.prototype.addLinkDataCollection=Do.prototype.Ey,Do.prototype.addLinkData=Do.prototype.fi,Do.prototype.containsLinkData=Do.prototype.Jc,Do.prototype.makeLinkDataKeyUnique=Do.prototype.Bs,Do.prototype.findLinkDataForKey=Do.prototype.jh,Do.prototype.setKeyForLinkData=Do.prototype.Ks,Do.prototype.getKeyForLinkData=Do.prototype.Ac,Do.prototype.removeLabelKeyForLinkData=Do.prototype.Qx,Do.prototype.addLabelKeyForLinkData=Do.prototype.Bu,Do.prototype.setLabelKeysForLinkData=Do.prototype.Ls,Do.prototype.getLabelKeysForLinkData=Do.prototype.Ef,Do.prototype.setToPortIdForLinkData=Do.prototype.Cv,Do.prototype.getToPortIdForLinkData=Do.prototype.Cx,Do.prototype.setFromPortIdForLinkData=Do.prototype.xv,Do.prototype.getFromPortIdForLinkData=Do.prototype.zx,Do.prototype.setToKeyForLinkData=Do.prototype.Bv,Do.prototype.getToKeyForLinkData=Do.prototype.Bx,Do.prototype.setFromKeyForLinkData=Do.prototype.wv,Do.prototype.getFromKeyForLinkData=Do.prototype.yx,Do.prototype.clear=Do.prototype.clear;var v0=Object.freeze([]);Do.className="GraphLinksModel",Tc.GraphLinksModel=Do,Ki.constructGraphLinksModel=Ki.constructGraphLinksModel=function(){return new Do},Ki.initDiagramModel=hy=function(){return new Do};function nu(a,y){Ki.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Nn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ut(nu,Ki),nu.constructGraphLinksModel=Ki.constructGraphLinksModel,nu.prototype.cloneProtected=function(a){Ki.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},De=nu.prototype,De.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,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+Jn(b)}}return y},De.rm=function(){var a=Ki.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},De.gp=function(a){Ki.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},De.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&at("applyIncrementalJson cannot change Model properties"),Ki.prototype.fp.call(this,a)},De.Vl=function(a){return a},De.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Es(a,y),y!==void 0)){if(_h(y))return y;at("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},De.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 E=Es(a,x);E!==y&&(_c(this,E,a),Ra(a,x,y),this.hc(y)===null&&Xc(this,y,a),Zs(this,"nodeParentKey",ii,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Ra(a,x,y)}},De.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Es(a,y),y===void 0)?"":typeof y=="string"?y:(at("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},nu.prototype.getLinkCategoryForData=function(a){return this.ss(a)},nu.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=Es(a,x);E===void 0&&(E=""),E!==y&&(Ra(a,x,y),Zs(this,"parentLinkCategory",ii,x,a,E,y),typeof x=="string"&&this.La(a,x))}else Ra(a,x,y)}},nu.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},nu.prototype.copyNodeData=function(a){return a===null?null:(a=Ki.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Es(a,this.Ke)===void 0||Ra(a,this.Ke,void 0),a)},nu.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 E=Es(a,y);E!==x&&(Ra(a,y,x),this.Fs(a,y,E,x))},De=nu.prototype,De.jp=function(a,y){Ki.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},De.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;Ra(a,E,x),Zs(this,"nodeParentKey",ii,E,a,y,x),typeof E=="string"&&this.La(a,E)}},De.fm=function(a){Ki.prototype.fm.call(this,a),a=this.wa(a);var y=Hp(this,a);if(y!==null){var x=En();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;Zs(this,"nodeParentKey",ii,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)_c(this,a,x[y]);kn(x)}},De.em=function(a){Ki.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Xc(this,y,a)},De.qp=function(a){Ki.prototype.qp.call(this,a);var y=this.mh(a);_c(this,y,a)},De.lm=function(a,y){Ki.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},De.Tl=function(){return!0},De.xs=function(){return!0},bt.Object.defineProperties(nu.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"}}}),nu.prototype.setParentLinkCategoryForNodeData=nu.prototype.Ms,nu.prototype.getParentLinkCategoryForNodeData=nu.prototype.ss,nu.prototype.setParentKeyForNodeData=nu.prototype.qe,nu.prototype.getParentKeyForNodeData=nu.prototype.mh,nu.className="TreeModel",Tc.TreeModel=nu;function Qa(a){Ha.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Oc,this.Ti=0,this.Zv=new qe,this.Jp=this.me=0,this.Xr=new Yp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Oc,this.K=iu,this.nd=Vg,this.hd=ay,this.tf=6,this.Nn=E0,a&&Object.assign(this,a)}Ut(Qa,Ha),Qa.prototype.cloneProtected=function(a){Ha.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},Qa.prototype.qb=function(a){a.classType===Qa?a===w0||a===C0||a===x0||a===P0||a===Vg?this.sorting=a:a===kf||a===Kg||a===iu||a===Qh?this.direction=a:a===Eh||a===Jh||a===Oc||a===Ic?this.arrangement=a:(a===ag||a===E0)&&(this.nodeDiameterFormula=a):Ha.prototype.qb.call(this,a)},Qa.prototype.createNetwork=function(){return new Yg(this)},Qa.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 An;y.addAll(a.iterator),a=new An;var x=new An,E=this.sort(y),b,z,ne=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,le=this.radius;(!isFinite(le)||0>=le)&&(le=NaN);var ce=this.aspectRatio;(!isFinite(ce)||0>=ce)&&(ce=1);var me=this.startAngle;isFinite(me)||(me=0);var Ce=this.sweepAngle;if((!isFinite(Ce)||360<Ce||1>Ce)&&(Ce=360),y=this.spacing,isFinite(y)||(y=NaN),re===Ic&&oe===ag?re=Oc:re===Ic&&oe!==ag&&(re=this.arrangement),(this.direction===kf||this.direction===Kg)&&this.sorting!==Vg){for(oe=0;!(oe>=E.length)&&(a.add(E.M(oe)),!(oe+1>=E.length));oe+=2)x.add(E.M(oe+1));this.direction===kf?(this.arrangement===Ic&&a.reverse(),E=new An,E.addAll(a),E.addAll(x)):(this.arrangement===Ic&&x.reverse(),E=new An,E.addAll(x),E.addAll(a))}oe=E.length;for(var Me=z=b=0;Me<E.length;Me++){var Be=me+Ce*z*(this.direction===iu?1:-1)/oe,Re=E.M(Me).diameter;isNaN(Re)&&(Re=$h(E.M(Me),Be)),360>Ce&&(Me===0||Me===E.length-1)&&(Re/=2),b+=Re,z++}if(isNaN(le)||re===Ic){if(isNaN(y)&&(y=6),re!==Oc&&re!==Ic){for(z=-1/0,ne=0;ne<oe;ne++)Me=E.M(ne),b=E.M(ne===oe-1?0:ne+1),isNaN(Me.diameter)&&$h(Me,0),isNaN(b.diameter)&&$h(b,0),z=Math.max(z,(Me.diameter+b.diameter)/2);ne=z+y,re===Eh?le=(z+y)/(2*Math.PI/oe):le=y0(this,ne*(360<=Ce?oe:oe-1),ce,me*Math.PI/180,Ce*Math.PI/180)}else le=y0(this,b+(360<=Ce?oe:oe-1)*(re!==Ic?y:1.6*y),ce,me*Math.PI/180,Ce*Math.PI/180);z=le*ce}else if(z=le*ce,Me=py(this,le,z,me*Math.PI/180,Ce*Math.PI/180),isNaN(y))(re===Oc||re===Ic)&&(y=(Me-b)/(360<=Ce?oe:oe-1));else if(re===Oc||re===Ic)Me=(Me-b)/(360<=Ce?oe:oe-1),Me<y?(le=y0(this,b+y*(360<=Ce?oe:oe-1),ce,me*Math.PI/180,Ce*Math.PI/180),z=le*ce):y=Me;else{for(ne=-1/0,b=0;b<oe;b++)Be=E.M(b),Re=E.M(b===oe-1?0:b+1),isNaN(Be.diameter)&&$h(Be,0),isNaN(Re.diameter)&&$h(Re,0),ne=Math.max(ne,(Be.diameter+Re.diameter)/2);ne+=y,b=y0(this,ne*(360<=Ce?oe:oe-1),ce,me*Math.PI/180,Ce*Math.PI/180),b>le?(le=b,z=le*ce):ne=Me/(360<=Ce?oe:oe-1)}if(this.kw=re,this.lc=le,this.Zm=ce,this.lw=me,this.Wp=Ce,this.Ti=y,this.me=z,this.Jp=ne,y=E,E=this.kw,re=this.lc,le=this.lw,ce=this.Wp,me=this.Ti,Ce=this.me,oe=this.Jp,this.direction!==kf&&this.direction!==Kg||E!==Ic)if(this.direction===kf||this.direction===Kg){switch(ne=0,E){case Jh:ne=180*S0(this,re,Ce,le,oe)/Math.PI;break;case Oc:oe=y=0,ne=a.first(),ne!==null&&(y=$h(ne,Math.PI/2)),ne=x.first(),ne!==null&&(oe=$h(ne,Math.PI/2)),ne=180*S0(this,re,Ce,le,me+(y+oe)/2)/Math.PI;break;case Eh:ne=ce/y.length}if(this.direction===kf){switch(E){case Jh:Vp(this,a,le,Qh);break;case Oc:Kp(this,a,le,Qh);break;case Eh:Gp(this,a,ce/2,le,Qh)}switch(E){case Jh:Vp(this,x,le+ne,iu);break;case Oc:Kp(this,x,le+ne,iu);break;case Eh:Gp(this,x,ce/2,le+ne,iu)}}else{switch(E){case Jh:Vp(this,x,le,Qh);break;case Oc:Kp(this,x,le,Qh);break;case Eh:Gp(this,x,ce/2,le,Qh)}switch(E){case Jh:Vp(this,a,le+ne,iu);break;case Oc:Kp(this,a,le+ne,iu);break;case Eh:Gp(this,a,ce/2,le+ne,iu)}}}else switch(E){case Jh:Vp(this,y,le,this.direction);break;case Oc:Kp(this,y,le,this.direction);break;case Eh:Gp(this,y,ce,le,this.direction);break;case Ic:OS(this,y,ce,le,this.direction)}else OS(this,y,ce,le-ce/2,iu)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Gp(a,y,x,E,b){var z=a.Wp,ne=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=E+(b===iu?oe*x/(360<=z?re:re-1):-(oe*x)/re),ce=y.M(oe),me=ne*Math.tan(le)/a;me=Math.sqrt((ne*ne+a*a*me*me)/(1+me*me)),ce.centerX=me*Math.cos(le),ce.centerY=me*Math.sin(le),ce.actualAngle=180*le/Math.PI}}function Kp(a,y,x,E){var b=a.lc,z=a.me,ne=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe),ce=y.M(oe===re-1?0:oe+1),me=z*Math.sin(x);le.centerX=b*Math.cos(x),le.centerY=me,le.actualAngle=180*x/Math.PI,isNaN(le.diameter)&&$h(le,0),isNaN(ce.diameter)&&$h(ce,0),le=S0(a,b,z,E===iu?x:-x,(le.diameter+ce.diameter)/2+ne),x+=E===iu?le:-le}}function Vp(a,y,x,E){var b=a.lc,z=a.me,ne=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var le=y.M(oe);le.centerX=b*Math.cos(x),le.centerY=z*Math.sin(x),le.actualAngle=180*x/Math.PI,le=S0(a,b,z,E===iu?x:-x,ne),x+=E===iu?le:-le}}function OS(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new Yp,360>x){for(z=E+(b===iu?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,RS(a,y,x,E,b)}else IS(a,y,x,E,b);a.Xr.commit(y)}function IS(a,y,x,E,b){var z=a.lc,ne=a.Ti,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),le=a.me*Math.sin(E*Math.PI/180),ce=y.Fa();if(ce.length===3)ce[0].centerX=z,ce[0].centerY=0,ce[1].centerX=ce[0].centerX-ce[0].width/2-ce[1].width/2-ne,ce[1].y=ce[0].y,ce[2].centerX=(ce[0].centerX+ce[1].centerX)/2,ce[2].y=ce[0].y-ce[2].height-ne;else if(ce.length===4)ce[0].centerX=z,ce[0].centerY=0,ce[2].centerX=-ce[0].centerX,ce[2].centerY=ce[0].centerY,ce[1].centerX=0,ce[1].y=Math.min(ce[0].y,ce[2].y)-ce[1].height-ne,ce[3].centerX=0,ce[3].y=Math.max(ce[0].y+ce[0].height+ne,ce[2].y+ce[2].height+ne);else{z=qe.alloc();for(var me=0;me<ce.length&&(ce[me].centerX=oe,ce[me].centerY=le,!(me>=ce.length-1));me++)zS(a,oe,le,ce,me,b,z)||jS(a,oe,le,ce,me,b,z),oe=z.x,le=z.y;if(qe.free(z),a.mj++,!(23<a.mj)){oe=ce[0].centerX,le=ce[0].centerY,z=ce[ce.length-1].centerX,me=ce[ce.length-1].centerY;var Ce=Math.abs(oe-z)-((ce[0].width+ce[ce.length-1].width)/2+ne),Me=Math.abs(le-me)-((ce[0].height+ce[ce.length-1].height)/2+ne);ne=0,1>Math.abs(Me)?Math.abs(oe-z)<(ce[0].width+ce[ce.length-1].width)/2&&(ne=0):ne=0<Me?Me:1>Math.abs(Ce)?0:Ce,oe=Math.abs(z)>Math.abs(me)?0<z!=le>me:0<me!=oe<z,(oe=b===iu?oe:!oe)&&(ne=-Math.abs(ne),ne=Math.min(ne,-ce[ce.length-1].width),ne=Math.min(ne,-ce[ce.length-1].height)),a.Xr.compare(ne,ce),1<Math.abs(ne)&&(a.lc=8>a.mj?a.lc-ne/(2*Math.PI):5>ce.length&&10<ne?a.lc/2:a.lc-(0<ne?1.7:-2.3),a.me=a.lc*re,IS(a,y,x,E,b))}}}function RS(a,y,x,E,b){for(var z=a.lc,ne=a.me,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),le=ne*Math.sin(E*Math.PI/180),ce=qe.alloc(),me=y.Fa(),Ce=0;Ce<me.length&&(me[Ce].centerX=oe,me[Ce].centerY=le,!(Ce>=me.length-1));Ce++)zS(a,oe,le,me,Ce,b,ce)||jS(a,oe,le,me,Ce,b,ce),oe=ce.x,le=ce.y;if(qe.free(ce),a.mj++,!(23<a.mj)){if(oe=Math.atan2(le,oe),oe=b===iu?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ne)/2,ne=a.Xr,Math.abs(z)<Math.abs(ne.Pl))for(ne.Pl=z,ne.mk=[],ne.tm=[],oe=0;oe<me.length;oe++)ne.mk[oe]=me[oe].bounds.x,ne.tm[oe]=me[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,RS(a,y,x,E,b))}}function zS(a,y,x,E,b,z,ne){var re=a.lc,oe=a.me,le=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var ce=!1;if(0<=x!=(z===iu)){if(z=y+a,z>re){if(z=y-a,z<-re)return ne.x=z,ne.y=le,!1;ce=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ne.x=z,ne.y=le,!1;ce=!0}return le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ce&&(le=-le),Math.abs(x-le)>(E[b].height+E[b+1].height)/2?(ne.x=z,ne.y=le,!1):(ne.x=z,ne.y=le,!0)}function jS(a,y,x,E,b,z,ne){var re=a.lc,oe=a.me,le=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===iu)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ne.x=le,ne.y=z;return}E=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ne.x=le,ne.y=z;return}E=!0}le=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==E&&(le=-le),ne.x=le,ne.y=z}Qa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Qa.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 qe(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.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))},Qa.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function py(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ne=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,le=0;le<=z;le++){E!==void 0&&b!==void 0?oe=E+le*b/z:oe=le*Math.PI/(2*z);var ce=Math.sin(oe);ne+=Math.sqrt(1-a*a*ce*ce)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ne:4*(y>x?y:x)*ne}function y0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?py(a,1,x,E,b):py(a,1,x))}function S0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ne=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(E+re*a);if(ne+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ne>=b)return re*a}}Qa.prototype.sort=function(a){switch(this.sorting){case x0:break;case P0:a.reverse();break;case w0:a.sort(this.comparer);break;case C0:a.sort(this.comparer),a.reverse();break;case Vg:return this.ak(Hx(a));default:at("Invalid sorting type.")}return a};function Hx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new An;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var ne=0;ne<a.length;ne++){var re=a.M(ne).edgesCount;re>b&&(b=re,z=ne)}else for(ne=0;ne<a.length;ne++)re=y[ne],re>b&&(b=re,z=ne);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ne=z.sourceEdges;ne.next();)b=a.indexOf(ne.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}Qa.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var ne=[],re=[];E=[],b=new An;for(var oe=0,le=0;le<y.length;le++){var ce=y[le].length;if(ce===1)E.push(le);else if(ce===0)b.add(a.M(le));else{if(oe===0)x.push(le);else{for(var me=ce=1/0,Ce=-1,Me=[],Be=0;Be<x.length;Be++)0>y[x[Be]].indexOf(x[Be===x.length-1?0:Be+1])&&Me.push(Be===x.length-1?0:Be+1);if(Me.length===0)for(Be=0;Be<x.length;Be++)Me.push(Be);for(Be=0;Be<Me.length;Be++){for(var Re=Me[Be],dt=y[le],et=0,Pt=0;Pt<ne.length;Pt++){var At=z[ne[Pt]],Dt=z[re[Pt]];if(At<Dt){var Rt=At;At=Dt}else Rt=Dt;if(Rt<Re&&Re<=At)for(Dt=0;Dt<dt.length;Dt++){var dn=dt[Dt];0>x.indexOf(dn)||Rt<z[dn]&&z[dn]<At||Rt===z[dn]||At===z[dn]||et++}else for(Dt=0;Dt<dt.length;Dt++)dn=dt[Dt],0>x.indexOf(dn)||Rt<z[dn]&&z[dn]<At&&Rt!==z[dn]&&At!==z[dn]&&et++}for(dt=et,Pt=et=0;Pt<y[le].length;Pt++)Rt=x.indexOf(y[le][Pt]),0<=Rt&&(Rt=Math.abs(Re-(Rt>=Re?Rt+1:Rt)),et+=Rt<x.length+1-Rt?Rt:x.length+1-Rt);for(Pt=0;Pt<ne.length;Pt++)Rt=z[ne[Pt]],At=z[re[Pt]],Rt>=Re&&Rt++,At>=Re&&At++,Rt>At&&(Dt=At,At=Rt,Rt=Dt),At-Rt<(x.length+2)/2==(Rt<Re&&Re<=At)&&et++;(dt<ce||dt===ce&&et<me)&&(ce=dt,me=et,Ce=Re)}for(x.splice(Ce,0,le),ce=0;ce<x.length;ce++)z[x[ce]]=ce;for(ce=0;ce<y[le].length;ce++)me=y[le][ce],0<=x.indexOf(me)&&(ne.push(le),re.push(me))}oe++}}for(ne=x.length;;){for(z=!0,re=0;re<E.length;re++)if(oe=E[re],le=y[oe][0],ce=x.indexOf(le),0<=ce){for(Ce=me=0;Ce<y[le].length;Ce++)Me=x.indexOf(y[le][Ce]),0>Me||Me===ce||(Be=Me>ce?Me-ce:ce-Me,me+=Me<ce!=Be>ne-Be?1:-1);x.splice(0>me?ce:ce+1,0,oe),E.splice(re,1),re--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},bt.Object.defineProperties(Qa.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!==Ic&&a!==Oc&&a!==Jh&&a!==Eh||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==iu&&a!==Qh&&a!==kf&&a!==Kg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==x0&&a!==P0&&a!==w0&&!C0&&a!==Vg||(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!==E0&&a!==ag||(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 Oc=new Jt(Qa,"ConstantSpacing",0),Jh=new Jt(Qa,"ConstantDistance",1),Eh=new Jt(Qa,"ConstantAngle",2),Ic=new Jt(Qa,"Packed",3),iu=new Jt(Qa,"Clockwise",4),Qh=new Jt(Qa,"Counterclockwise",5),kf=new Jt(Qa,"BidirectionalLeft",6),Kg=new Jt(Qa,"BidirectionalRight",7),x0=new Jt(Qa,"Forwards",8),P0=new Jt(Qa,"Reverse",9),w0=new Jt(Qa,"Ascending",10),C0=new Jt(Qa,"Descending",11),Vg=new Jt(Qa,"Optimized",12),E0=new Jt(Qa,"Pythagorean",13),ag=new Jt(Qa,"Circular",14);Qa.className="CircularLayout",Qa.ConstantSpacing=Oc,Qa.ConstantDistance=Jh,Qa.ConstantAngle=Eh,Qa.Packed=Ic,Qa.Clockwise=iu,Qa.Counterclockwise=Qh,Qa.BidirectionalLeft=kf,Qa.BidirectionalRight=Kg,Qa.Forwards=x0,Qa.Reverse=P0,Qa.Ascending=w0,Qa.Descending=C0,Qa.Optimized=Vg,Qa.Pythagorean=E0,Qa.Circular=ag;function Yp(){this.Pl=-1/0,this.tm=this.mk=null}Yp.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},Yp.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]}},Yp.className="VertexArrangement";function Yg(a){Ea.call(this,a)}Ut(Yg,Ea),Yg.prototype.createVertex=function(){return new Up(this)},Yg.prototype.createEdge=function(){return new b0(this)},Yg.className="CircularNetwork";function Up(a){Us.call(this,a),this.u=this.Si=NaN}Ut(Up,Us);function $h(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Ic)if(x.nodeDiameterFormula===ag)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===ag?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}bt.Object.defineProperties(Up.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)}}}),Up.className="CircularVertex";function b0(a){Bu.call(this,a)}Ut(b0,Bu),b0.className="CircularEdge";function Ml(a){Ha.call(this),this.ah=null,this.An=0,this.$d=new oi(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)}Ut(Ml,Ha),Ml.prototype.cloneProtected=function(a){Ha.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},Ml.prototype.createNetwork=function(){return new sg(this)},Ml.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 E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}HS(this,0,a)}this.network=y;var ne=E=x.iterator;E=this.arrangementSpacing;var re=ne.count,oe=!0;z=b=0;for(var le=En(),ce=0;ce<re+y.vertexes.count+2;ce++)le[ce]=null;re=0,ne.reset();for(var me=Cn.alloc();ne.next();)if(ce=ne.value,this.computeBounds(ce,me),oe)oe=!1,b=me.x+me.width/2,z=me.y+me.height/2,le[0]=new qe(me.x+me.width+E.width,me.y),le[1]=new qe(me.x,me.y+me.height+E.height),re=2;else{var Ce=WS(le,re,b,z,me.width,me.height,E),Me=le[Ce],Be=new qe(Me.x+me.width+E.width,Me.y),Re=new qe(Me.x,Me.y+me.height+E.height);for(Ce+1<re&&le.splice(Ce+1,0,null),le[Ce]=Be,le[Ce+1]=Re,re++,Ce=Me.x-me.x,Me=Me.y-me.y,ce=ce.vertexes.iterator;ce.next();)Be=ce.value,Be.centerX+=Ce,Be.centerY+=Me}for(Cn.free(me),ce=y.vertexes.iterator;ce.next();)ne=ce.value,Ce=ne.bounds,2>re?(b=Ce.x+Ce.width/2,z=Ce.y+Ce.height/2,le[0]=new qe(Ce.x+Ce.width+E.width,Ce.y),le[1]=new qe(Ce.x,Ce.y+Ce.height+E.height),re=2):(oe=WS(le,re,b,z,Ce.width,Ce.height,E),me=le[oe],Me=new qe(me.x+Ce.width+E.width,me.y),Ce=new qe(me.x,me.y+Ce.height+E.height),oe+1<re&&le.splice(oe+1,0,null),le[oe]=Me,le[oe+1]=Ce,re++,ne.centerX=me.x+ne.width/2,ne.centerY=me.y+ne.height/2);for(kn(le),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}GS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Ml.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},Ml.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function HS(a,y,x){if(Wx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Zx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,HS(a,y+1,x),GS(a,z),Gx(a,b),y=b.vertexes.Fa(),y.sort(function(ne,re){return ne===null||re===null||ne===re?0:re.Vd-ne.Vd}),x=0;x<y.length;x++)Kx(a,y[x]);a.Zf=E}}function Wx(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,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Zx(a,y){for(var x=a.network,E=new sg(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var ne=new KS;ne.Rs=z.Vd,ne.Ss=z.width,ne.Qs=z.height,ne.Sv=z.focus.x,ne.Tv=z.focus.y,z.We===null&&(z.We=new An),z.We.add(ne),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;b=re.fromVertex,ne=re.toVertex,b.network===E&&ne.network===E?E.Bo(re):b.network===E?(re=b.Hj,re===null&&(re=new An,b.Hj=re),re.add(ne),b.Vd--,b.sh+=ne.sh):ne.network===E&&(re=ne.Hj,re===null&&(re=new An,ne.Hj=re),re.add(b),ne.Vd--,ne.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,Kt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var oe=b.Hj;if(oe!==null&&0<oe.count&&(ne=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=ne))){for(var le=re=0,ce=oe.count-ne;ce<oe.count;ce++){var me=oe.M(ce),Ce=null;for(z=me.edges.iterator;z.next();){var Me=z.value;if(Me.Ax(me)===b){Ce=Me;break}}Ce!==null&&(le+=Ce.length,re+=me.width*me.height)}z=b.centerX,oe=b.centerY,ce=b.width,me=b.height,Ce=b.focus,Me=ce*me,1>Me&&(Me=1),re=Kt.sqrt((re+Me+le*le*4/(ne*ne))/Me),ne=(re-1)*ce/2,re=(re-1)*me/2,b.bounds=new Cn(z-Ce.x-ne,oe-Ce.y-re,ce+2*ne,me+2*re),b.focus=new qe(Ce.x+ne,Ce.y+re)}}return a.network=E,x}function Gx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,ne=b.Tv;E.bounds=new Cn(E.centerX-z,E.centerY-ne,b.Ss,b.Qs),E.focus=new qe(z,ne),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Kx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,ne=y.height;y.We!==null&&0<y.We.count&&(ne=y.We.M(0),z=ne.Ss,ne=ne.Qs),z=Kt.sqrt(z*z+ne*ne)/2;for(var re=!1,oe=ne=0,le=0,ce=y.vertexes.iterator;ce.next();){var me=ce.value;1>=me.Vd?oe++:(re=!0,le++,ne+=Math.atan2(y.centerY-me.centerY,y.centerX-me.centerX))}if(oe!==0){for(0<le&&(ne/=le),le=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(le=y/2),1<x.count&&x.sort(function(Me,Be){return Me===null||Be===null||Me===Be?0:Be.width*Be.height-Me.width*Me.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(ce=null,me=oe.edges.iterator;me.next();){ce=me.value;break}me=oe.width;var Ce=oe.height;me=Kt.sqrt(me*me+Ce*Ce)/2,ce=z+ce.length+me,me=ne+(y*(re/2>>1)+le)*(re%2===0?1:-1),oe.centerX=E+ce*Math.cos(me),oe.centerY=b+ce*Math.sin(me),re++}}}}function WS(a,y,x,E,b,z,ne){var re=9e19,oe=-1,le=0;e:for(;le<y;le++){var ce=a[le],me=ce.x-x,Ce=ce.y-E;if(me=me*me+Ce*Ce,me<re){for(Ce=le-1;0<=Ce;Ce--)if(a[Ce].y>ce.y&&a[Ce].x-ce.x<b+ne.width)continue e;for(Ce=le+1;Ce<y;Ce++)if(a[Ce].x>ce.x&&a[Ce].y-ce.y<z+ne.height)continue e;oe=le,re=me}}return oe}Ml.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ml.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 E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function ZS(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,ne=z.x;y=z.y;var re=z.width;return z=z.height,E+b<ne?a>y+z?(x=E+b-ne,a=a-y-z,Kt.sqrt(x*x+a*a)):a+x<y?(E=E+b-ne,a=a+x-y,Kt.sqrt(E*E+a*a)):ne-(E+b):E>ne+re?a>y+z?(x=E-ne-re,a=a-y-z,Kt.sqrt(x*x+a*a)):a+x<y?(E=E-ne-re,a=a+x-y,Kt.sqrt(E*E+a*a)):E-(ne+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function GS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Vx(a)););a.ah=null}function Vx(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 E=x.centerX,b=E,z=x=x.centerY,ne=1;ne<y.length;ne++){var re=y[ne];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,E=Math.min(E,oe),b=Math.max(b,oe),x=Math.min(x,re),z=Math.max(z,re)}(b=b-E>z-x)?y.sort(function(Re,dt){return Re===null||dt===null||Re===dt?0:Re.centerX-dt.centerX}):y.sort(function(Re,dt){return Re===null||dt===null||Re===dt?0:Re.centerY-dt.centerY}),x=a.Zf;var le=E=re=0;for(z=0;z<y.length;z++){ne=y[z],E=ne.bounds,re=ne.focus,oe=E.x+re.x;var ce=E.y+re.y;E=ne.charge*a.electricalFieldX(oe,ce),le=ne.charge*a.electricalFieldY(oe,ce),E+=ne.mass*a.gravitationalFieldX(oe,ce),le+=ne.mass*a.gravitationalFieldY(oe,ce),ne.forceX+=E,ne.forceY+=le;for(var me=z+1;me<y.length;me++){var Ce=y[me];if(Ce!==ne){E=Ce.bounds,re=Ce.focus,le=E.x+re.x;var Me=E.y+re.y;if(oe-le>x||le-oe>x){if(b)break}else if(ce-Me>x||Me-ce>x){if(!b)break}else{var Be=ZS(ne,Ce);1>Be?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new A0),Be=E.random(),re=E.random(),oe>le?(E=Math.abs(Ce.bounds.right-ne.bounds.x),E=(1+E)*Be):oe<le?(E=Math.abs(Ce.bounds.x-ne.bounds.right),E=-(1+E)*Be):(E=Math.max(Ce.width,ne.width),E=(1+E)*Be-E/2),ce>Me?(le=Math.abs(Ce.bounds.bottom-ne.bounds.y),le=(1+le)*re):oe<le?(le=Math.abs(Ce.bounds.y-ne.bounds.bottom),le=-(1+le)*re):(le=Math.max(Ce.height,ne.height),le=(1+le)*re-le/2)):(re=-(ne.charge*Ce.charge)/(Be*Be),E=(le-oe)/Be*re,le=(Me-ce)/Be*re),ne.forceX+=E,ne.forceY+=le,Ce.forceX-=E,Ce.forceY-=le}}}}for(b=a.network.edges.iterator;b.next();)re=b.value,x=re.fromVertex,z=re.toVertex,ne=x.bounds,oe=x.focus,E=ne.x+oe.x,ne=ne.y+oe.y,ce=z.bounds,me=z.focus,oe=ce.x+me.x,ce=ce.y+me.y,me=ZS(x,z),1>me?(me=a.randomNumberGenerator,me===null&&(a.randomNumberGenerator=me=new A0),re=me.random(),me=me.random(),E=(E>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,le=(ne>ce?1:-1)*(1+(z.height>x.height?z.height:x.height))*me):(re=re.stiffness*(me-re.length),E=(oe-E)/me*re,le=(ce-ne)/me*re),x.forceX+=E,x.forceY+=le,z.forceX-=E,z.forceY-=le;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}Ml.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},Ml.prototype.moveFixedVertex=function(){},Ml.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ml.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Yo,y.toSpot=Yo)}},Ml.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Cn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Cn.free(x)}x=Cn.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}Cn.free(x)},Ml.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ml.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Ml.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Ml.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Ml.prototype.electricalFieldX=function(){return 0},Ml.prototype.electricalFieldY=function(){return 0},Ml.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Ml.prototype.gravitationalFieldX=function(){return 0},Ml.prototype.gravitationalFieldY=function(){return 0},Ml.prototype.isFixed=function(a){return a.isFixed},bt.Object.defineProperties(Ml.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"&&at('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())}}}),Ml.className="ForceDirectedLayout";function KS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}KS.className="ForceDirectedSubnet";function sg(a){Ea.call(this,a)}Ut(sg,Ea),sg.prototype.createVertex=function(){return new Xp(this)},sg.prototype.createEdge=function(){return new _p(this)},sg.className="ForceDirectedNetwork";function Xp(a){Us.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}Ut(Xp,Us),bt.Object.defineProperties(Xp.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)}}}),Xp.className="ForceDirectedVertex";function _p(a){Bu.call(this,a),this.j=this.o=NaN}Ut(_p,Bu),bt.Object.defineProperties(_p.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)}}}),_p.className="ForceDirectedEdge";function A0(){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()}A0.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},A0.className="RandomNumberGenerator";function oa(a){Ha.call(this),this.kc=this.ie=25,this.K=0,this.Dk=B0,this.Zk=N0,this.Qk=k0,this.bj=4,this.rk=T0,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 qe,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Ut(oa,Ha),oa.prototype.cloneProtected=function(a){Ha.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},oa.prototype.qb=function(a){a.classType===oa?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:at("Unknown enum value: "+a):Ha.prototype.qb.call(this,a)},oa.prototype.createNetwork=function(){return new Xg(this)},oa.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 E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var ne=0,re=0,oe=0,le=0;if(E.link!==null){if(re=E.link,re===null)continue;var ce=b.node;if(ne=z.node,ce===null||ne===null)continue;var me=re.fromNode;oe=re.toNode;for(var Ce=re.fromPort;Ce!==null&&!Ce.Ed();)Ce=Ce.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(E.rev){le=me;var Me=Ce;me=oe,Ce=re,oe=le,re=Me}var Be=b.focus;le=z.focus;var Re=E.rev?z.bounds:b.bounds;Me=qe.alloc(),ce!==me?Re.w()&&me.isVisible()?me.actualBounds.w()?(Sh(me,Ce,xo,Me),Me.x+=me.actualBounds.x-Re.x,Me.y+=me.actualBounds.y-Re.y):(Sh(me,Ce,xo,Me),Me.w()||Me.assign(Be)):Me.assign(Be):Re.w()?(Sh(me,Ce,xo,Me),Me.w()||Me.assign(Be)):Me.assign(Be),me=E.rev?b.bounds:z.bounds,ce=qe.alloc(),ne!==oe?me.w()&&oe.isVisible()?oe.actualBounds.w()?(Sh(oe,re,xo,ce),ce.x+=oe.actualBounds.x-me.x,ce.y+=oe.actualBounds.y-me.y):(Sh(oe,re,xo,ce),ce.w()||ce.assign(le)):ce.assign(le):me.w()?(Sh(oe,re,xo,ce),ce.w()||ce.assign(le)):ce.assign(le),this.K===90||this.K===270?(ne=Math.round((Me.x-Be.x)/this.kc),oe=Me.x,re=Math.round((ce.x-le.x)/this.kc),le=ce.x):(ne=Math.round((Me.y-Be.y)/this.kc),oe=Me.y,re=Math.round((ce.y-le.y)/this.kc),le=ce.y),qe.free(Me),qe.free(ce),E.portFromColOffset=ne,E.portFromPos=oe,E.portToColOffset=re,E.portToPos=le}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(Me=b.layer,ce=z.layer,me=0,Re=E.link,Re!==null){var dt=Re.fromPort,et=Re.toPort;if(dt!==null&&et!==null){var Pt=Re.fromNode;if(Ce=Re.toNode,Pt!==null&&Ce!==null){var At=D0(this,!0),Dt=D0(this,!1),Rt=this.setsPortSpots?At:Re.computeSpot(!0,dt);Be=this.setsPortSpots?Dt:Re.computeSpot(!1,et);var dn=Re.isOrthogonal;Rt.$c()&&Rt.Hf(Dt)&&Be.$c()&&Be.Hf(At)?me=0:(At=Re.getLinkPoint(Pt,dt,Rt,!0,dn,Ce,et,qe.alloc()),Dt=Re.getLinkDirection(Pt,dt,At,Rt,!0,dn,Ce,et),qe.free(At),Rt.ys()||Dt!==qS(this,E,!0)?this.setsPortSpots&&Pt!==null&&Pt.ports.count===1&&E.rev&&(me+=1):me+=1,Rt=Re.getLinkPoint(Ce,et,Be,!1,dn,Pt,dt,qe.alloc()),Re=Re.getLinkDirection(Ce,et,Rt,Be,!1,dn,Pt,dt),qe.free(Rt),Be.ys()||Re!==qS(this,E,!1)?this.setsPortSpots&&Ce!==null&&Ce.ports.count===1&&E.rev&&(me+=2):me+=2)}}}if(Ce=me,me=Ce===1||Ce===3,(Ce=Ce===2||Ce===3)&&(Be=a.createVertex(),Be.node=null,Be.Dj=1,Be.layer=Me,Be.near=b,a.dh(Be),b=a.Zj(b,Be,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=ne,b.portToColOffset=0,b.portFromPos=oe,b.portToPos=0,b=Be),Re=1,me&&Re--,Me-ce>Re&&0<Me){for(E.valid=!1,Be=a.createVertex(),Be.node=null,Be.Dj=2,Be.layer=Me-1,a.dh(Be),b=a.Zj(b,Be,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=Ce?0:ne,b.portToColOffset=0,b.portFromPos=Ce?0:oe,b.portToPos=0,b=Be,Me--;Me-ce>Re&&0<Me;)Be=a.createVertex(),Be.node=null,Be.Dj=3,Be.layer=Me-1,a.dh(Be),b=a.Zj(b,Be,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Be,Me--;b=a.Zj(Be,z,E.link),b.valid=!me,me&&(Be.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=re,b.portFromPos=0,b.portToPos=le}else E.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=qh(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),ef(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},oa.prototype.linkMinLength=function(){return 1};function my(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}oa.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},oa.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 pu(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function ac(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function VS(a,y,x){var E=qh(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,ne=0;ne<b;ne++){var re=0,oe=E[ne],le=oe.near;if(le!==null&&le.layer===oe.layer)if(oe=le.index,oe>ne)for(var ce=ne+1;ce<oe;ce++){var me=E[ce];me.near===le&&me.Dj===le.Dj||re++}else for(ce=ne-1;ce>oe;ce--)me=E[ce],me.near===le&&me.Dj===le.Dj||re++;var Ce;if(0<=x)for(oe=E[ne].sourceEdgesArrayAccess,le=0;le<oe.length;le++){var Me=oe[le];if(Me.valid&&Me.fromVertex.layer!==y)for(me=Me.fromVertex.index,ce=Me.portToPos,Me=Me.portFromPos,Ce=le+1;Ce<oe.length;Ce++){var Be=oe[Ce];if(Be.valid&&Be.fromVertex.layer!==y){var Re=Be.fromVertex.index,dt=Be.portToPos;Be=Be.portFromPos,ce<dt&&(me>Re||me===Re&&Me>Be)&&re++,dt<ce&&(Re>me||Re===me&&Be>Me)&&re++}}}if(0>=x){for(oe=E[ne].destinationEdgesArrayAccess,le=0;le<oe.length;le++)if(Me=oe[le],Me.valid&&Me.toVertex.layer!==y)for(me=Me.toVertex.index,ce=Me.portToPos,Me=Me.portFromPos,Ce=le+1;Ce<oe.length;Ce++)Be=oe[Ce],Be.valid&&Be.toVertex.layer!==y&&(Re=Be.toVertex.index,dt=Be.portToPos,Be=Be.portFromPos,Me<Be&&(me>Re||me===Re&&ce>dt)&&re++,Be<Me&&(Re>me||Re===me&&dt>ce)&&re++)}for(z[ne*b+ne]=re,oe=ne+1;oe<b;oe++){var et=0,Pt=0;if(0<=x){re=E[ne].sourceEdgesArrayAccess;var At=E[oe].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(Me=re[le],Me.valid&&Me.fromVertex.layer!==y)for(me=Me.fromVertex.index,Me=Me.portFromPos,Ce=0;Ce<At.length;Ce++)Be=At[Ce],Be.valid&&Be.fromVertex.layer!==y&&(Re=Be.fromVertex.index,Be=Be.portFromPos,(me<Re||me===Re&&Me<Be)&&Pt++,(Re<me||Re===me&&Be<Me)&&et++)}if(0>=x){for(re=E[ne].destinationEdgesArrayAccess,At=E[oe].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(Me=re[le],Me.valid&&Me.toVertex.layer!==y)for(me=Me.toVertex.index,ce=Me.portToPos,Ce=0;Ce<At.length;Ce++)Be=At[Ce],Be.valid&&Be.toVertex.layer!==y&&(Re=Be.toVertex.index,dt=Be.portToPos,(me<Re||me===Re&&ce<dt)&&Pt++,(Re<me||Re===me&&dt<ce)&&et++)}z[ne*b+oe]=et,z[oe*b+ne]=Pt}}return ef(a,y,E),z}oa.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=VS(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function M0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=qh(E,b),ne=E.tc[b],re=0,oe=0;oe<ne;oe++){var le=z[oe].destinationEdgesArrayAccess;if(le!==null)for(var ce=0;ce<le.length;ce++){var me=le[ce];if(me.valid&&me.toVertex.layer!==b){var Ce=me.fromVertex.column+me.portFromColOffset,Me=me.toVertex.column+me.portToColOffset;re+=(Math.abs(Ce-Me)+1)*my(me)}}}ef(E,b,z),y+=re}return y}oa.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 vy(a,y,x){for(var E=qh(a,y),b=a.tc[y],z=[],ne=0;ne<b;ne++){var re=E[ne],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ce=0,me=0,Ce=re.near;if(Ce!==null&&Ce.layer===re.layer&&(ce+=Ce.column-1,me++),oe!==null)for(Ce=0;Ce<oe.length;Ce++){re=oe[Ce];var Me=re.fromVertex;re.valid&&!re.rev&&Me.layer!==y&&(ce+=Me.column,me++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],Ce=re.toVertex,re.valid&&!re.rev&&Ce.layer!==y&&(ce+=Ce.column,me++);z[ne]=me===0?-1:ce/me}return ef(a,y,E),z}function YS(a,y,x){for(var E=qh(a,y),b=a.tc[y],z=[],ne=0;ne<b;ne++){var re=E[ne],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var le=null;0<=x&&(le=re.destinationEdgesArrayAccess);var ce=0,me=[],Ce=re.near;if(Ce!==null&&Ce.layer===re.layer&&(me[ce]=Ce.column-1,ce++),re=void 0,oe!==null)for(Ce=0;Ce<oe.length;Ce++){re=oe[Ce];var Me=re.fromVertex;re.valid&&!re.rev&&Me.layer!==y&&(me[ce]=Me.column+re.portFromColOffset,ce++)}if(le!==null)for(oe=0;oe<le.length;oe++)re=le[oe],Ce=re.toVertex,re.valid&&!re.rev&&Ce.layer!==y&&(me[ce]=Ce.column+re.portToColOffset,ce++);ce===0?z[ne]=-1:(me.sort(function(Be,Re){return Be-Re}),le=ce>>1,z[ne]=ce&1?me[le]:me[le-1]+me[le]>>1)}return ef(a,y,E),z}function Jp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ne=y.destinationEdges;ne.next();){var re=ne.value,oe=re.toVertex,le=y.layer-oe.layer;re=a.linkMinLength(re),le===re&&Jp(a,oe,x,E,b,z)}if(z)for(ne=y.sourceEdges;ne.next();)re=ne.value,oe=re.fromVertex,le=oe.layer-y.layer,re=a.linkMinLength(re),le===re&&Jp(a,oe,x,E,b,z)}}function yy(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ne=y.destinationEdges;ne.next();)yy(a,ne.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)yy(a,y.value.fromVertex,x,E,b,z)}}oa.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Py:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Yx(a)!==null;){for(b=US(a);b!==null;)E[x]=b,x--,b.valid=!1,b=US(a);for(b=XS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=XS(a);b=null;for(var z=0,ne=this.network.vertexes.iterator;ne.next();){var re=ne.value;if(re.valid){for(var oe=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&oe++;le=0;for(var ce=re.sourceEdges;ce.next();)ce.value.fromVertex.valid&&le++;(b===null||z<oe-le)&&(b=re,z=oe-le)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case B0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&Sy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&Sy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case Qp:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Yx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function US(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function XS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function Sy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,Sy(a,b))}y.finish=a.Kn,a.Kn++}oa.prototype.assignLayers=function(){switch(this.Zk){case wy:_S(this);break;case Cy:for(var a,y=this.network.vertexes.iterator;y.next();)a=QS(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(_S(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&$S(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 _S(a){for(var y=a.network.vertexes.iterator;y.next();){var x=JS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function JS(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,JS(a,z)+b)}y.layer=x}else x=y.layer;return x}function QS(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,QS(a,z)+b)}y.layer=x}else x=y.layer;return x}function $S(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)$S(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var ne=E[z],re=ne.fromVertex,oe=ne.toVertex;ne=a.linkMinLength(ne),re.layer-oe.layer>ne&&Jp(a,re,0,-1,!0,!1)}for(Jp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,oe=null,ne=a.network.vertexes.iterator;ne.next();){var le=ne.value;if(le.component===1){var ce=0,me=!1,Ce=le.sourceEdgesArrayAccess;b=Ce.length;for(var Me=0;Me<b;Me++){var Be=Ce[Me],Re=Be.fromVertex;ce+=1,Re.component!==1&&(z+=1,Re=Re.layer-le.layer,Be=a.linkMinLength(Be),E=Math.min(E,Re-Be))}for(Ce=le.destinationEdgesArrayAccess,b=Ce.length,Me=0;Me<b;Me++)Be=Ce[Me].toVertex,--ce,Be.component!==1?--z:me=!0;(oe===null||ce<re)&&!me&&(oe=le,re=ce)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Jp(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ne=oe.value,ne.component===1){for(le=0,ce=!1,Ce=ne.sourceEdgesArrayAccess,me=Ce.length,Me=0;Me<me;Me++)Be=Ce[Me].fromVertex,le+=1,Be.component!==1?E+=1:ce=!0;for(Ce=ne.destinationEdgesArrayAccess,me=Ce.length,Me=0;Me<me;Me++)Be=Ce[Me],Re=Be.toVertex,--le,Re.component!==1&&(--E,Re=ne.layer-Re.layer,Be=a.linkMinLength(Be),b=Math.min(b,Re-Be));(re===null||le>z)&&!ce&&(re=ne,z=le)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function qS(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}oa.prototype.initializeIndices=function(){switch(this.Qk){default:case by: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 k0: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&&ex(this,x);break;case Ey: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&&tx(this,x)}};function ex(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 E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&ex(a,E))}function tx(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&tx(a,E))}oa.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=pu(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)L0(this,E,1),Pc(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=pu(this)),E=this.Ia;0<=E;E--)L0(this,E,-1),Pc(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=pu(this))}for(ac(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)L0(this,E,0),Pc(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=pu(this)),E=this.Ia;0<=E;E--)L0(this,E,0),Pc(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=pu(this))}ac(this,y);var z,ne,re;switch(this.rk){case Ay:break;case My:for(re=a+1;(E=this.countCrossings())<re;)for(re=E,x=this.Ia;0<=x;x--)for(ne=0;ne<=x;ne++){for(z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Pc(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Pc(this,E,1)||z;for(b=this.countCrossings(),b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Pc(this,E,1)||z;for(b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Pc(this,E,-1)||z;for(b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Pc(this,E,0)||z;for(b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Pc(this,E,0)||z;b>=a?ac(this,y):(a=b,y=pu(this))}break;default:case T0:for(x=this.Ia,ne=0,re=a+1;(E=this.countCrossings())<re;){for(re=E,z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Pc(this,E,-1)||z;for(b=this.countCrossings(),b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Pc(this,E,1)||z;for(b=this.countCrossings(),b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Pc(this,E,1)||z;for(b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Pc(this,E,-1)||z;for(b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=x;E>=ne;E--)z=Pc(this,E,0)||z;for(b>=a?ac(this,y):(a=b,y=pu(this)),z=!0;z;)for(z=!1,E=ne;E<=x;E++)z=Pc(this,E,0)||z;b>=a?ac(this,y):(a=b,y=pu(this))}}ac(this,y)};function L0(a,y,x){var E=qh(a,y),b=a.tc[y],z=YS(a,y,x),ne=vy(a,y,x);for(x=0;x<b;x++)ne[x]===-1&&(ne[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ne[x+1]<ne[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ne[x],ne[x]=ne[x+1],ne[x+1]=oe,oe=E[x],E[x]=E[x+1],E[x+1]=oe);for(x=z=0;x<b;x++)oe=E[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);ef(a,y,E)}function Pc(a,y,x){var E=qh(a,y),b=a.tc[y];x=VS(a,y,x);var z,ne=[];for(z=0;z<b;z++)ne[z]=-1;var re=[];for(z=0;z<b;z++)re[z]=-1;for(var oe=!1,le=!0;le;)for(le=!1,z=0;z<b-1;z++){var ce=x[E[z].index*b+E[z+1].index],me=x[E[z+1].index*b+E[z].index],Ce=0,Me=0,Be=E[z].column,Re=E[z+1].column,dt=a.nodeMinColumnSpace(E[z],!0),et=a.nodeMinColumnSpace(E[z],!1),Pt=a.nodeMinColumnSpace(E[z+1],!0),At=a.nodeMinColumnSpace(E[z+1],!1);dt=Be-dt+Pt,et=Re-et+At;var Dt=E[z].sourceEdges.iterator;for(Dt.reset();Dt.next();)if(Pt=Dt.value,At=Pt.fromVertex,Pt.valid&&At.layer===y){for(Pt=0;E[Pt]!==At;)Pt++;Pt<z&&(Ce+=2*(z-Pt),Me+=2*(z+1-Pt)),Pt===z+1&&(Ce+=1),Pt>z+1&&(Ce+=4*(Pt-z),Me+=4*(Pt-(z+1)))}for(Dt=E[z].destinationEdges.iterator,Dt.reset();Dt.next();)if(Pt=Dt.value,At=Pt.toVertex,Pt.valid&&At.layer===y){for(Pt=0;E[Pt]!==At;)Pt++;Pt===z+1&&(Me+=1)}for(Dt=E[z+1].sourceEdges.iterator,Dt.reset();Dt.next();)if(Pt=Dt.value,At=Pt.fromVertex,Pt.valid&&At.layer===y){for(Pt=0;E[Pt]!==At;)Pt++;Pt<z&&(Ce+=2*(z+1-Pt),Me+=2*(z-Pt)),Pt===z&&(Me+=1),Pt>z+1&&(Ce+=4*(Pt-(z+1)),Me+=4*(Pt-z))}for(Dt=E[z+1].destinationEdges.iterator,Dt.reset();Dt.next();)if(Pt=Dt.value,At=Pt.toVertex,Pt.valid&&At.layer===y){for(Pt=0;E[Pt]!==At;)Pt++;Pt===z&&(Ce+=1)}Pt=At=0,Dt=ne[E[z].index];var Rt=re[E[z].index],dn=ne[E[z+1].index],bi=re[E[z+1].index];Dt!==-1&&(At+=Math.abs(Dt-Be),Pt+=Math.abs(Dt-et)),Rt!==-1&&(At+=Math.abs(Rt-Be),Pt+=Math.abs(Rt-et)),dn!==-1&&(At+=Math.abs(dn-Re),Pt+=Math.abs(dn-dt)),bi!==-1&&(At+=Math.abs(bi-Re),Pt+=Math.abs(bi-dt)),(Me<Ce-.5||Me===Ce&&me<ce-.5||Me===Ce&&me===ce&&Pt<At-.5)&&(le=oe=!0,E[z].column=et,E[z+1].column=dt,ce=E[z],E[z]=E[z+1],E[z+1]=ce)}for(z=0;z<b;z++)E[z].index=z;return ef(a,y,E),oe}oa.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&eP)!==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 E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Ug(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Ug(this,y,-1)||x;x=Ug(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)xy(this,y,1);for(y=this.Md-1;0<=y;y--)xy(this,y,-1);xy(this,this.Md,0)}if(a&&(nx(this,-1),nx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Ug(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Ug(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Ug(this,y,0)||x}}else Jx(this)};function Ug(a,y,x){for(var E=!1;Ux(a,y,x);)E=!0;return E}function Ux(a,y,x){var E,b=qh(a,y),z=a.tc[y],ne=vy(a,y,-1);if(0<x)for(E=0;E<z;E++)ne[E]=-1;var re=vy(a,y,1);if(0>x)for(E=0;E<z;E++)re[E]=-1;for(var oe=!1,le=!0;le;)for(le=!1,E=0;E<z;E++){var ce=b[E].column,me=a.nodeMinColumnSpace(b[E],!0),Ce=a.nodeMinColumnSpace(b[E],!1),Me=0;0>E-1||ce-b[E-1].column-1>me+a.nodeMinColumnSpace(b[E-1],!1)?Me=ce-1:Me=ce,me=E+1>=z||b[E+1].column-ce-1>Ce+a.nodeMinColumnSpace(b[E+1],!0)?ce+1:ce;var Be=Ce=0,Re=0;if(0>=x)for(var dt=b[E].sourceEdges.iterator;dt.next();){var et=dt.value,Pt=et.fromVertex;if(et.valid&&Pt.layer!==y){var At=my(et),Dt=et.portFromColOffset;et=et.portToColOffset,Pt=Pt.column,Ce+=(Math.abs(ce+et-(Pt+Dt))+1)*At,Be+=(Math.abs(Me+et-(Pt+Dt))+1)*At,Re+=(Math.abs(me+et-(Pt+Dt))+1)*At}}if(0<=x)for(dt=b[E].destinationEdges.iterator;dt.next();)et=dt.value,Pt=et.toVertex,et.valid&&Pt.layer!==y&&(At=my(et),Dt=et.portFromColOffset,et=et.portToColOffset,Pt=Pt.column,Ce+=(Math.abs(ce+Dt-(Pt+et))+1)*At,Be+=(Math.abs(Me+Dt-(Pt+et))+1)*At,Re+=(Math.abs(me+Dt-(Pt+et))+1)*At);et=Dt=At=0,dt=ne[b[E].index],Pt=re[b[E].index],dt!==-1&&(At+=Math.abs(dt-ce),Dt+=Math.abs(dt-Me),et+=Math.abs(dt-me)),Pt!==-1&&(At+=Math.abs(Pt-ce),Dt+=Math.abs(Pt-Me),et+=Math.abs(Pt-me)),Be<Ce||Be===Ce&&Dt<At?(le=oe=!0,b[E].column=Me):(Re<Ce||Re===Ce&&et<At)&&(le=oe=!0,b[E].column=me)}return ef(a,y,b),a.normalize(),oe}function xy(a,y,x){var E=qh(a,y),b=a.tc[y],z=YS(a,y,x),ne=[];for(x=0;x<b;x++)ne[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var re=E[x].column,oe=a.nodeMinColumnSpace(E[x],!0),le=a.nodeMinColumnSpace(E[x],!1),ce=0;if(ne[x]===-1)if(x===0&&x===b-1)ce=re;else if(x===0){var me=E[x+1].column;me-re===le+a.nodeMinColumnSpace(E[x+1],!0)?ce=re-1:ce=re}else x===b-1?(me=E[x-1].column,ce=re-me===oe+a.nodeMinColumnSpace(E[x-1],!1)?re+1:re):(me=E[x-1].column,oe=me+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,me=E[x+1].column,le=me-a.nodeMinColumnSpace(E[x+1],!0)-le-1,ce=(oe+le)/2|0);else x===0&&x===b-1?ce=ne[x]:x===0?(me=E[x+1].column,le=me-a.nodeMinColumnSpace(E[x+1],!0)-le-1,ce=Math.min(ne[x],le)):x===b-1?(me=E[x-1].column,oe=me+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ce=Math.max(ne[x],oe)):(me=E[x-1].column,oe=me+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,me=E[x+1].column,le=me-a.nodeMinColumnSpace(E[x+1],!0)-le-1,oe<ne[x]&&ne[x]<le?ce=ne[x]:oe>=ne[x]?ce=oe:le<=ne[x]&&(ce=le));ce!==re&&(z=!0,E[x].column=ce)}ef(a,y,E),a.normalize()}function Xx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),ne=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ne>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function _x(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var ne=a.network.vertexes.iterator;ne.next();){E=ne.value;var re=E.column-a.nodeMinColumnSpace(E,!0),oe=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&oe>=y&&(b[E.layer]=!0),re<=x&&oe>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(ne.reset();ne.next();)a=ne.value,a.column>y&&(--a.column,x=!0);return x}function nx(a,y){for(var x=0;x<=a.Ra;x++)for(;Xx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;_x(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=pu(a),z=M0(a);for(E=z+1;z<E;){E=z,ix(a,x,1);var ne=M0(a);ne>z?ac(a,b):ne<z&&(z=ne,b=pu(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=pu(a),z=M0(a),E=z+1;z<E;)E=z,ix(a,x,-1),ne=M0(a),ne>z?ac(a,b):ne<z&&(z=ne,b=pu(a));a.normalize()}function ix(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(yy(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(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var ne=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)b[ne*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ne=0;ne<a.Ra;ne++)b[z*(a.Ra+1)+ne]!==-1&&b[z*(a.Ra+1)+ne+1]!==-1&&b[z*(a.Ra+1)+ne]!==b[z*(a.Ra+1)+ne+1]&&(y[b[z*(a.Ra+1)+ne]*a.le+b[z*(a.Ra+1)+ne+1]]=!0);if(0>x)for(ne=a.Ra;0<ne;ne--)b[z*(a.Ra+1)+ne]!==-1&&b[z*(a.Ra+1)+ne-1]!==-1&&b[z*(a.Ra+1)+ne]!==b[z*(a.Ra+1)+ne-1]&&(y[b[z*(a.Ra+1)+ne]*a.le+b[z*(a.Ra+1)+ne-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(ne=[],ne.push(0);ne.length!==0;)if(oe=ne[ne.length-1],ne.pop(),b[oe])for(b[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ne.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function Jx(a){for(var y=En(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new Wn,Qx(y,x);var z=null,ne=null,re=null,oe=null,le=(a.ve&1)!==0,ce=(a.ve&2)!==0,me=(a.ve&4)!==0,Ce=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=F0(a,y,!0,!1)),y.reverse(),me&&(a.verticalAlignment(y,x,!1),re=F0(a,y,!1,!1)),E=yr(y),b=E.next();!b.done;b=E.next())b.value.reverse();Ce&&(a.verticalAlignment(y,x,!1),oe=F0(a,y,!1,!0)),y.reverse(),ce&&(a.verticalAlignment(y,x,!0),ne=F0(a,y,!0,!0)),kn(y),a.u(z,ne,re,oe),a.network.vertexes.each(function(Me){var Be=En();le&&Be.push(z.get(Me)),ce&&Be.push(ne.get(Me)),me&&Be.push(re.get(Me)),Ce&&Be.push(oe.get(Me)),Be.sort(function(dt,et){return dt-et});var Re=Be.length;Re=(Be[Math.floor((Re-1)/2)]+Be[Math.ceil((Re-1)/2)])/2,kn(Be),Me.zc=Re})}function Qx(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,ne=a[E],re=a[E+1],oe=0;z<re.length;oe++){var le=re[oe];e:{if(le.node===null){var ce=Ly(le);if(0<ce.length){ce=ce[0].node===null;break e}}ce=!1}var me=ce;if(oe===re.length-1||me){for(ce=ne.length-1,me&&(ce=Ly(le)[0].index);z<=oe;){if(le=re[z],!le.bo){me=[];for(var Ce=yr(le.sourceEdgesArrayAccess),Me=Ce.next();!Me.done;Me=Ce.next())Me=Me.value,Me.valid&&me.push(Me);le.bo=me}for(le=yr(le.bo),me=le.next();!me.done;me=le.next())me=me.value,Ce=me.fromVertex.index,(Ce<b||Ce>ce)&&y.add(me);z++}b=ce}}}oa.prototype.verticalAlignment=function(a,y,x){$x(a),a=yr(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=yr(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ne=x?Ly(z):tP(z),re=ne.length;if(0<re){ne.sort(function(me,Ce){return me.vi-Ce.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var le=ne[re],ce=void 0;ce=x?O0(le,z):O0(z,le),!y.contains(ce)&&b<le.vi&&(le.align=z,z.root=le.root,z.align=le.root,b=le.vi)}}}}};function $x(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function F0(a,y,x,E){for(var b=a.K===90||a.K===270,z=yr(y),ne=z.next();!ne.done;ne=z.next()){var re=yr(ne.value);for(ne=re.next();!ne.done;ne=re.next())ne=ne.value,ne.sd=ne,ne.shift=1/0,ne.zc=NaN,ne.qg=0}for(ne=a.K===90||a.K===270,z=yr(y),re=z.next();!re.done;re=z.next()){re=yr(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var le=0,ce=oe;ce.align!==oe;){var me=ce.align,Ce=ne?ce.width:ce.height,Me=ne?me.width:me.height;if(x){var Be=O0(ce,me),Re=Be.portFromPos,dt=Be.portToPos;Be.link!==null&&(ce.node&&ce.node!==Be.link.fromNode&&(Re=ne?ce.focusX:ce.focusY),me.node&&me.node!==Be.link.toNode&&(dt=ne?me.focusX:me.focusY))}else Be=O0(me,ce),Re=Be.portToPos,dt=Be.portFromPos,Be.link!==null&&(ce.node&&ce.node!==Be.link.toNode&&(Re=ne?ce.focusX:ce.focusY),me.node&&me.node!==Be.link.fromNode&&(dt=ne?me.focusX:me.focusY));Ce=E?ce.qg+(Ce-Re)-(Me-dt):ce.qg+Re-dt,me.qg=Ce,le=Math.min(le,Ce),ce=ce.align}ce=oe;do ce.qg=ce.qg-le,ce=ce.align;while(ce!==oe)}}for(x=yr(y),ne=x.next();!ne.done;ne=x.next())for(z=yr(ne.value),ne=z.next();!ne.done;ne=z.next())ne=ne.value,ne.root===ne&&rx(a,ne,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ne=y[x][0],ne.sd===ne)){ne.sd.shift===1/0&&(ne.sd.shift=0),ne=x,re=0;do{for(z=y[ne][re];z.align!==z.root;)z=z.align,ne++,0<z.vi&&(re=ox(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(b?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ne<y.length&&re<y[ne].length&&z.sd===y[ne][re].sd)}for(a=new Kn,y=yr(y),ne=y.next();!ne.done;ne=y.next())for(x=yr(ne.value),ne=x.next();!ne.done;ne=x.next())ne=ne.value,ne.zc=ne.zc+ne.sd.shift+ne.qg,z=b?ne.width:ne.height,a.add(ne,E?-ne.zc-z:ne.zc);return a}function rx(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=ox(E,x),z=b.root;rx(a,z,x),y.sd===y&&(y.sd=z.sd);var ne=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+ne-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function ox(a,y){var x=a.Tz;return a=a.vi,1>a&&at("Could not determine previous vertex in layer"),y[x][a-1]}oa.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=En(),b=En(),z=1/0,ne=0;4>ne;ne++)if(y[ne]){var re=qx(this,y[ne],E,b,ne);re<z&&(x=ne,z=re)}for(z={},ne=0;4>ne;z={delta:z.delta},ne++)y[ne]&&(z.delta=ne===0||ne===2?E[x]-E[ne]:b[x]-b[ne],z.delta!==0&&y[ne].each(function(oe){return function(le){le.value+=oe.delta}}(z)));kn(E),kn(b)};function qx(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,ne=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ne&&(ne=re+oe)}),x[b]=z,E[b]=ne,ne-z}oa.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=D0(this,!0),y=D0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function D0(a,y){return a.K===270?y?ds:Ts:a.K===90?y?Ts:ds:a.K===180?y?Ps:Is:y?Is:Ps}oa.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 E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,ne=b=1/0,re=-1/0;a.next();){var oe=a.value,le=oe.layer,ce=oe.column|0;E?(ne=y.x+this.kc*ce,le=this.Kd[le]):(ne=this.Kd[le],le=y.y+this.kc*ce),oe.centerX=ne,oe.centerY=le,x&&isFinite(oe.zc)&&(E?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),b=Math.min(oe.y,b),E?(ne=z,re=Math.max(re,oe.bounds.right)):(ne=b,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ne,z=y.x-z,y=y.y-b,this.Rf=new qe(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},oa.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 E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new Cn(0,0,x,Math.abs(this.Ta[0]))):y.push(new Cn(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new Cn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Cn(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new Cn(0,0,Math.abs(this.Ta[0]),x)):y.push(new Cn(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new Cn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Cn(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},oa.prototype.commitLayers=function(){},oa.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 E=y,b=E.fromNode,z=E.toNode,ne=E.fromPort,re=E.toPort;if(b!==null){var oe=b.findVisibleNode();oe!==null&&oe!==b&&(b=oe,ne=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var le=y.computeSpot(!0,ne);oe=y.computeSpot(!1,re);var ce=x.fromVertex,me=x.toVertex;if(x.valid)y.curve===Zu&&y.pointsCount===4&&(ce.column===me.column&&this.alignOption===0?(x=y.getLinkPoint(b,ne,le,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,b,ne),x.w()||x.set(b.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=E=!1,ne!==null&&le===$a&&(E=!0),re!==null&&oe===$a&&(x=!0),(E||x)&&(oe=null,E&&(oe=y.getLinkPointFromPoint(b,ne,ne.ga(xo),y.i(3),!0),oe.w()||oe.set(b.actualBounds.center),y.L(0,oe.x,oe.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,re,re.ga(xo),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(ce.layer===me.layer)y.zf();else{var Ce=!1,Me=!1,Be=this.ie,Re=y.firstPickIndex+1;if(y.isOrthogonal){Me=!0;var dt=y.pointsCount;4<dt&&y.points.removeRange(2,dt-3)}else if(y.curve===Zu)Ce=!0,dt=y.pointsCount,4<dt&&y.points.removeRange(2,dt-3),dt===4&&(Re=2);else{dt=y.pointsCount;var et=le===$a,Pt=oe===$a;2<dt&&et&&Pt?y.points.removeRange(1,dt-2):3<dt&&et&&!Pt?y.points.removeRange(1,dt-3):3<dt&&!et&&Pt?y.points.removeRange(2,dt-2):4<dt&&!et&&!Pt&&y.points.removeRange(2,dt-3)}if(x.rev){for(;me!==null&&ce!==me;){var At=dt=null;for(et=me.sourceEdges.iterator;et.next()&&(Pt=et.value,Pt.link!==x.link||(dt=Pt.fromVertex,At=Pt.toVertex,dt.node!==null)););if(dt===null)break;if(dt!==ce){et=y.i(Re-1).x,Pt=y.i(Re-1).y;var Dt=dt.centerX,Rt=dt.centerY;if(Me)this.K===180||this.K===0?Re===y.firstPickIndex+1?(y.m(Re++,et,Pt),y.m(Re++,et,Rt)):(At!==null?At.centerY:Pt)!==Rt&&(At=this.Ta[dt.layer-1]+this.Rf.x,y.m(Re++,At,Pt),y.m(Re++,At,Rt)):Re===y.firstPickIndex+1?(y.m(Re++,et,Pt),y.m(Re++,Dt,Pt)):(At!==null?At.centerX:et)!==Dt&&(At=this.Ta[dt.layer-1]+this.Rf.y,y.m(Re++,et,At),y.m(Re++,Dt,At));else if(Re===y.firstPickIndex+1){At=Math.max(10,this.he[me.layer]);var dn=Math.max(10,this.Ld[me.layer]);if(Ce)this.K===180?Dt<=me.bounds.x?(me=me.bounds.x,y.m(Re++,me-At,Rt),y.m(Re++,me,Rt),y.m(Re++,me+dn,Rt)):(y.m(Re++,Dt-At,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt+dn,Rt)):this.K===90?Rt>=me.bounds.bottom?(me=me.bounds.y+me.bounds.height,y.m(Re++,Dt,me+dn),y.m(Re++,Dt,me),y.m(Re++,Dt,me-At)):(y.m(Re++,Dt,Rt+dn),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt-At)):this.K===270?Rt<=me.bounds.y?(me=me.bounds.y,y.m(Re++,Dt,me-At),y.m(Re++,Dt,me),y.m(Re++,Dt,me+dn)):(y.m(Re++,Dt,Rt-At),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt+dn)):this.K===0&&(Dt>=me.bounds.right?(me=me.bounds.x+me.bounds.width,y.m(Re++,me+dn,Rt),y.m(Re++,me,Rt),y.m(Re++,me-At,Rt)):(y.m(Re++,Dt+dn,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt-At,Rt)));else{y.m(Re++,et,Pt);var bi=0;this.K===180||this.K===0?((this.K===180?Dt>=me.bounds.right:Dt<=me.bounds.x)&&(bi=(this.K===0?-At:dn)/2),y.m(Re++,et+bi,Rt)):((this.K===270?Rt>=me.bounds.bottom:Rt<=me.bounds.y)&&(bi=(this.K===90?-At:dn)/2),y.m(Re++,Dt,Pt+bi)),y.m(Re++,Dt,Rt)}}else At=Math.max(10,this.he[dt.layer]),dn=Math.max(10,this.Ld[dt.layer]),Ce?this.K===180?(y.m(Re++,Dt-At-Be,Rt),y.m(Re++,Math.min(Dt-At+Be/2,Dt),Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Math.max(Dt+dn-Be/2,Dt),Rt),y.m(Re++,Dt+dn+Be,Rt)):this.K===90?(y.m(Re++,Dt,Rt+dn+Be),y.m(Re++,Dt,Math.max(Rt+dn-Be/2,Rt)),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Math.min(Rt-At+Be/2,Rt)),y.m(Re++,Dt,Rt-At-Be)):this.K===270?(y.m(Re++,Dt,Rt-At-Be),y.m(Re++,Dt,Math.min(Rt-At+Be/2,Rt)),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Math.max(Rt+dn-Be/2,Rt)),y.m(Re++,Dt,Rt+dn+Be)):(y.m(Re++,Dt+dn+Be,Rt),y.m(Re++,Math.max(Dt+dn-Be/2,Dt),Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Math.min(Dt-At+Be/2,Dt),Rt),y.m(Re++,Dt-At-Be,Rt)):y.m(Re++,Dt,Rt)}me=dt}(re===null||le!==$a||Me)&&(et=y.i(Re-1).x,Pt=y.i(Re-1).y,Dt=y.i(Re).x,Rt=y.i(Re).y,Me?(Be=this.Ld[ce.layer],this.K===180||this.K===0?(Me=Pt,Me>=ce.bounds.y&&Me<=ce.bounds.bottom&&(this.K===180?Dt>=ce.bounds.x:Dt<=ce.bounds.right)&&(me=ce.centerX+(this.K===180?-Be:Be),Me<ce.bounds.y+ce.bounds.height/2?Me=ce.bounds.y-this.kc/2:Me=ce.bounds.bottom+this.kc/2,y.m(Re++,me,Pt),y.m(Re++,me,Me)),y.m(Re++,Dt,Me)):(Me=et,Me>=ce.bounds.x&&Me<=ce.bounds.right&&(this.K===270?Rt>=ce.bounds.y:Rt<=ce.bounds.bottom)&&(me=ce.centerY+(this.K===270?-Be:Be),Me<ce.bounds.x+ce.bounds.width/2?Me=ce.bounds.x-this.kc/2:Me=ce.bounds.right+this.kc/2,y.m(Re++,et,me),y.m(Re++,Me,me)),y.m(Re++,Me,Rt)),y.m(Re++,Dt,Rt)):Ce?(At=Math.max(10,this.he[ce.layer]),dn=Math.max(10,this.Ld[ce.layer]),this.K===180&&Dt>=ce.bounds.x?(me=ce.bounds.x+ce.bounds.width,y.L(Re-2,me,Pt),y.L(Re-1,me+dn,Pt)):this.K===90&&Rt<=ce.bounds.bottom?(me=ce.bounds.y,y.L(Re-2,et,me),y.L(Re-1,et,me-At)):this.K===270&&Rt>=ce.bounds.y?(me=ce.bounds.y+ce.bounds.height,y.L(Re-2,et,me),y.L(Re-1,et,me+dn)):this.K===0&&Dt<=ce.bounds.right&&(me=ce.bounds.x,y.L(Re-2,me,Pt),y.L(Re-1,me-At,Pt))):(At=Math.max(10,this.he[ce.layer]),dn=Math.max(10,this.Ld[ce.layer]),Me=0,this.K===180||this.K===0?((this.K===180?Dt<=ce.bounds.x:Dt>=ce.bounds.right)&&(Me=(this.K===0?dn:-At)/2),y.m(Re++,Dt+Me,Pt)):((this.K===270?Rt<=ce.bounds.y:Rt>=ce.bounds.bottom)&&(Me=(this.K===90?dn:-At)/2),y.m(Re++,et,Rt+Me)),y.m(Re++,Dt,Rt)))}else{for(;ce!==null&&ce!==me;){for(At=dt=null,ce=ce.destinationEdges.iterator;ce.next()&&(et=ce.value,et.link!==x.link||(dt=et.toVertex,At=et.fromVertex,At.node!==null&&(At=null),dt.node!==null)););if(dt===null)break;dt!==me&&(et=y.i(Re-1).x,Pt=y.i(Re-1).y,Dt=dt.centerX,Rt=dt.centerY,Me?this.K===180||this.K===0?(At!==null?At.centerY:Pt)!==Rt&&(At=this.Ta[dt.layer]+this.Rf.x,Re===y.firstPickIndex+1&&(At=this.K===0?Math.max(At,et):Math.min(At,et)),y.m(Re++,At,Pt),y.m(Re++,At,Rt)):(At!==null?At.centerX:et)!==Dt&&(At=this.Ta[dt.layer]+this.Rf.y,Re===y.firstPickIndex+1&&(At=this.K===90?Math.max(At,Pt):Math.min(At,Pt)),y.m(Re++,et,At),y.m(Re++,Dt,At)):(At=Math.max(10,this.he[dt.layer]),dn=Math.max(10,this.Ld[dt.layer]),Ce?this.K===180?(y.m(Re++,Dt+dn+Be,Rt),y.m(Re++,Math.max(Dt+dn-Be/2,Dt),Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Math.min(Dt-At+Be/2,Dt),Rt),y.m(Re++,Dt-At-Be,Rt)):this.K===90?(y.m(Re++,Dt,Rt-At-Be),y.m(Re++,Dt,Math.min(Rt-At+Be/2,Rt)),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Math.max(Rt+dn-Be/2,Rt)),y.m(Re++,Dt,Rt+dn+Be)):this.K===270?(y.m(Re++,Dt,Rt+dn+Be),y.m(Re++,Dt,Math.max(Rt+dn-Be/2,Rt)),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Math.min(Rt-At+Be/2,Rt)),y.m(Re++,Dt,Rt-At-Be)):(y.m(Re++,Dt-At-Be,Rt),y.m(Re++,Math.min(Dt-At+Be/2,Dt),Rt),y.m(Re++,Dt,Rt),y.m(Re++,Dt,Rt),y.m(Re++,Math.max(Dt+dn-Be/2,Dt),Rt),y.m(Re++,Dt+dn+Be,Rt)):this.K===180?(y.m(Re++,Dt+dn,Rt),y.m(Re++,Dt-At,Rt)):this.K===90?(y.m(Re++,Dt,Rt-At),y.m(Re++,Dt,Rt+dn)):this.K===270?(y.m(Re++,Dt,Rt+dn),y.m(Re++,Dt,Rt-At)):(y.m(Re++,Dt-At,Rt),y.m(Re++,Dt+dn,Rt)))),ce=dt}Me&&(et=y.i(Re-1).x,Pt=y.i(Re-1).y,Dt=y.i(Re).x,Rt=y.i(Re).y,this.K===180||this.K===0?Pt!==Rt&&(At=this.K===0?Math.min(Math.max((Dt+et)/2,this.Ta[me.layer]+this.Rf.x),Dt):Math.max(Math.min((Dt+et)/2,this.Ta[me.layer]+this.Rf.x),Dt),y.m(Re++,At,Pt),y.m(Re++,At,Rt)):et!==Dt&&(At=this.K===90?Math.min(Math.max((Rt+Pt)/2,this.Ta[me.layer]+this.Rf.y),Rt):Math.max(Math.min((Rt+Pt)/2,this.Ta[me.layer]+this.Rf.y),Rt),y.m(Re++,et,At),y.m(Re++,Dt,At)))}E!==null&&Ce&&4<=y.pointsCount&&(ne!==null&&(ne=le===$a?y.getLinkPointFromPoint(b,ne,ne.ga(xo),y.i(3),!0):y.i(0),le===$a&&(le=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ne.x+le.x)/2,le.y),y.L(2,E.x,(le.y+E.y)/2)):(y.L(1,le.x,(ne.y+le.y)/2),y.L(2,(le.x+E.x)/2,E.y))),ne.w()||ne.set(b.actualBounds.center),y.L(0,ne.x,ne.y)),re!==null&&(b=oe===$a?y.getLinkPointFromPoint(z,re,re.ga(xo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===$a&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},oa.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new An,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 E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),ne=E.i(b+1);if(this.B(z.y,ne.y)&&!this.B(z.x,ne.x)){var re=new tf;re.layer=Math.floor(z.y/2);var oe=E.i(0),le=E.i(E.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=le.x*le.x+le.y,re.rd=Math.min(z.x,ne.x),re.Ic=Math.max(z.x,ne.x),re.index=b,re.link=E,b+2<E.pointsCount){oe=E.i(b-1),le=E.i(b+2);var ce=0;oe.y<z.y?ce=le.y<z.y?3:z.x<ne.x?2:1:oe.y>z.y&&(ce=le.y>z.y?0:ne.x<z.x?2:1),re.j=ce}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ne=x[z].Ic,b=a+1;b<E&&x[b].rd<ne;)ne=Math.max(ne,x[b].Ic),b++;if(ne=b-z,1<ne){for(this.zi(x,this.Js,z,z+ne),ce=1,re=x[z].jc,oe=z;oe<b;oe++)le=x[oe],le.jc!==re&&(ce++,re=le.jc);this.zi(x,this.Ux,z,z+ne);var me=1;for(re=x[z].first,oe=z;oe<b;oe++)le=x[oe],le.first!==re&&(me++,re=le.first);for(oe=!0,le=me,ce<me?(oe=!1,le=ce,re=x[z].jc,this.zi(x,this.Js,z,z+ne)):re=x[z].first,ce=0,me=z;me<b;me++){var Ce=x[me];(oe?Ce.first:Ce.jc)!==re&&(ce++,re=oe?Ce.first:Ce.jc);var Me=Ce.link;z=Me.i(Ce.index),ne=Me.i(Ce.index+1);var Be=this.linkSpacing*(ce-(le-1)/2);y++,Me.uh(),Me.L(Ce.index,z.x,z.y+Be),Me.L(Ce.index+1,ne.x,ne.y+Be),Me.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),ne=E.i(b+1),this.B(z.x,ne.x)&&!this.B(z.y,ne.y)&&(re=new tf,re.layer=Math.floor(z.x/2),oe=E.i(0),le=E.i(E.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=le.x+le.y*le.y,re.rd=Math.min(z.y,ne.y),re.Ic=Math.max(z.y,ne.y),re.index=b,re.link=E,b+2<E.pointsCount&&(oe=E.i(b-1),le=E.i(b+2),ce=0,oe.x<z.x?ce=le.x<z.x?3:z.y<ne.y?2:1:oe.x>z.x&&(ce=le.x>z.x?0:ne.y<z.y?2:1),re.j=ce),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ne=x[z].Ic,b=a+1;b<E&&x[b].rd<ne;)ne=Math.max(ne,x[b].Ic),b++;if(ne=b-z,1<ne){for(this.zi(x,this.Js,z,z+ne),ce=1,re=x[z].jc,oe=z;oe<b;oe++)le=x[oe],le.jc!==re&&(ce++,re=le.jc);for(this.zi(x,this.Ux,z,z+ne),me=1,re=x[z].first,oe=z;oe<b;oe++)le=x[oe],le.first!==re&&(me++,re=le.first);for(oe=!0,le=me,ce<me?(oe=!1,le=ce,re=x[z].jc,this.zi(x,this.Js,z,z+ne)):re=x[z].first,ce=0,me=z;me<b;me++)Ce=x[me],(oe?Ce.first:Ce.jc)!==re&&(ce++,re=oe?Ce.first:Ce.jc),Me=Ce.link,z=Me.i(Ce.index),ne=Me.i(Ce.index+1),Be=this.linkSpacing*(ce-(le-1)/2),y++,Me.uh(),Me.L(Ce.index,z.x+Be,z.y),Me.L(Ce.index+1,ne.x+Be,ne.y),Me.zf()}z=b}a=E}}}},De=oa.prototype,De.Vx=function(a,y){return a instanceof tf&&y instanceof tf&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},De.Ux=function(a,y){return a instanceof tf&&y instanceof tf&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},De.Js=function(a,y){return a instanceof tf&&y instanceof tf&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},De.B=function(a,y){return a-=y,-1<a&&1>a},De.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&at("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function qh(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function ef(a,y,x){a.He[a.tc[y]]=x}bt.Object.defineProperties(oa.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()):at("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Py&&a!==B0&&a!==Qp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==N0&&a!==wy&&a!==Cy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==k0&&a!==Ey&&a!==by||(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!==Ay&&a!==T0&&a!==My||(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 B0=new Jt(oa,"CycleDepthFirst",0),Py=new Jt(oa,"CycleGreedy",1),Qp=new Jt(oa,"CycleFromLayers",2),N0=new Jt(oa,"LayerOptimalLinkLength",0),wy=new Jt(oa,"LayerLongestPathSink",1),Cy=new Jt(oa,"LayerLongestPathSource",2),k0=new Jt(oa,"InitDepthFirstOut",0),Ey=new Jt(oa,"InitDepthFirstIn",1),by=new Jt(oa,"InitNaive",2),Ay=new Jt(oa,"AggressiveNone",0),T0=new Jt(oa,"AggressiveLess",1),My=new Jt(oa,"AggressiveMore",2),eP=8;oa.className="LayeredDigraphLayout",oa.CycleDepthFirst=B0,oa.CycleGreedy=Py,oa.CycleFromLayers=Qp,oa.LayerOptimalLinkLength=N0,oa.LayerLongestPathSink=wy,oa.LayerLongestPathSource=Cy,oa.InitDepthFirstOut=k0,oa.InitDepthFirstIn=Ey,oa.InitNaive=by,oa.AggressiveNone=Ay,oa.AggressiveLess=T0,oa.AggressiveMore=My,oa.PackNone=0,oa.PackExpand=1,oa.PackStraighten=2,oa.PackMedian=4,oa.PackAll=15,oa.AlignNone=0,oa.AlignUpperLeft=1,oa.AlignUpperRight=2,oa.AlignLowerLeft=4,oa.AlignLowerRight=8,oa.AlignAll=15;function tf(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}tf.className="SegInfo";function Xg(a){Ea.call(this,a)}Ut(Xg,Ea),Xg.prototype.createVertex=function(){return new sc(this)},Xg.prototype.createEdge=function(){return new $p(this)},Xg.className="LayeredDigraphNetwork";function sc(a){Us.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}Ut(sc,Us);function ax(a,y){return a.index-y.index}function O0(a,y){if(!a.$n){for(var x=[],E=yr(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=yr(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;at("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=yr(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(ax),a.co=y}return a.co}function tP(a){if(!a.ao){for(var y=[],x=yr(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(ax),a.ao=y}return a.ao}sc.prototype.Cl=function(a){Us.prototype.Cl.call(this,a),this.bo=this.co=null},sc.prototype.Kl=function(a){Us.prototype.Kl.call(this,a),this.bo=this.co=null},sc.prototype.zl=function(a){Us.prototype.zl.call(this,a),this.$n=this.ao=null},sc.prototype.Jl=function(a){Us.prototype.Jl.call(this,a),this.$n=this.ao=null},bt.Object.defineProperties(sc.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)}}}),sc.prototype.deleteDestinationEdge=sc.prototype.Jl,sc.prototype.addDestinationEdge=sc.prototype.zl,sc.prototype.deleteSourceEdge=sc.prototype.Kl,sc.prototype.addSourceEdge=sc.prototype.Cl,sc.className="LayeredDigraphVertex";function $p(a){Bu.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Ut($p,Bu),bt.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 mo(a){Ha.call(this),this.Ub=new Wn,this.Wn=j0,this.ud=Md,this.vo=W0,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=Z0,this.$d=new oi(10,10).freeze();var y=new dg(this);this.W=new wc(y),this.Y=new wc(y),this.ru=[],a&&Object.assign(this,a)}Ut(mo,Ha),mo.prototype.cloneProtected=function(a){Ha.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)},mo.prototype.qb=function(a){a.classType===mo?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:at("Unknown enum value: "+a):Ha.prototype.qb.call(this,a)},mo.prototype.createNetwork=function(){return new dg(this)},mo.prototype.makeNetwork=function(a){function y(E){if(E instanceof Mi)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof fi){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof cn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Rr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},mo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==G0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof cn&&(y=a),this.path===j0&&y!==null?this.ud=y.isTreePathToChildren?Md:ug:this.ud=this.path===j0?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 Wn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Mi?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof wc&&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,Fy(this,y));for(y=this.network.vertexes,a=null;a=nP(y),0<a.count;)y=sx(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Fy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wc&&ux(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wc&&cx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wc&&dx(this,y);if(this.Cu(),this.layerStyle===K0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?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,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Hy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof wc&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Wn,this.isValidLayout=!0};function nP(a){var y=new Wn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}mo.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 ug:x.destinationEdges.count===0&&this.Ub.add(x);break;default:at("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=sx(this,a),a!==null&&this.Ub.add(a))};function sx(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case Md:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case ug:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:at("Unhandled path value "+a.ud.toString())}}return E}function Fy(a,y){if(y!==null){switch(a.ud){case Md:if(0<y.destinationEdges.count){for(var x=new An,E=y.destinationVertexes;E.next();){var b=E.value;lx(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case ug:if(0<y.sourceEdges.count){for(x=new An,E=y.sourceVertexes;E.next();)b=E.value,lx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:at("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)Fy(a,x[y])}}function lx(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}mo.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function ux(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Dd&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,ne=z.length,re=0;re<ne;re++){var oe=z[re];ux(a,oe),x+=oe.descendantCount+1,E=Math.max(E,oe.maxChildrenCount),b=Math.max(b,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function iP(a,y){switch(a.vo){default:case W0:return y.parent!==null?y.parent:a.W;case Ry:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Iy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Oy:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}mo.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(iP(this,a)),a.parent!==null&&a.parent.alignment===Dd){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==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 cx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)cx(a,y[E])}}mo.prototype.assignTreeVertexValues=function(){};function dx(a,y){if(y!==null){y.alignment!==Dd&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)dx(a,y[E])}}mo.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case _g:break;case em:a.children.reverse();break;case tm:a.children.sort(a.comparer);break;case nm:a.children.sort(a.comparer),a.children.reverse();break;default:at("Unhandled sorting value "+a.sorting.toString())}},mo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},mo.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=nf(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,ne=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var le=a.node.Mu();le.next();){var ce=le.value;ce.category==="Comment"&&ce.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ce),ce.Va(),ce=ce.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,ce.width),ne+=ce.height+Math.abs(re)):(z+=ce.width+Math.abs(re),ne=Math.max(ne,ce.height)),re=oe)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),ne=Math.max(0,ne-a.height)):(ne+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=Cn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ne),a.bounds=b,Cn.free(b))};function nf(a){return a===bh||a===Dd||a===Ah||a===Jd}function qp(a){return a===bh||a===Dd}function Dy(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===Ah)return!0}}return!1}mo.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=nf(z)),E=E===90||E===270,x=b===90||b===270;for(var ne=a.childrenCount===0,re=Dy(a),oe=0,le=a.comments,ce=le.length,me=qe.alloc(),Ce=0;Ce<ce;Ce++){var Me=le[Ce],Be=Me.measuredBounds;if(E&&!ne||!z&&!x&&ne||z&&x&&ne){if(135<b&&!z||x&&re)if(0<=a.commentMargin)for(me.h(a.bounds.x-a.commentMargin-Be.width,a.bounds.y+oe),Me.move(me),Me=Me.Sd();Me.next();){var Re=Me.value;Re.fromSpot=Ps,Re.toSpot=Is}else for(me.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Me.move(me),Me=Me.Sd();Me.next();)Re=Me.value,Re.fromSpot=Is,Re.toSpot=Ps;else if(0<=a.commentMargin)for(me.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Me.move(me),Me=Me.Sd();Me.next();)Re=Me.value,Re.fromSpot=Is,Re.toSpot=Ps;else for(me.h(a.bounds.x+a.commentMargin-Be.width,a.bounds.y+oe),Me.move(me),Me=Me.Sd();Me.next();)Re=Me.value,Re.fromSpot=Ps,Re.toSpot=Is;oe=0<=a.commentSpacing?oe+(Be.height+a.commentSpacing):oe+(a.commentSpacing-Be.height)}else{if(135<b&&!z||!x&&re)if(0<=a.commentMargin)for(me.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Be.height),Me.move(me),Me=Me.Sd();Me.next();)Re=Me.value,Re.fromSpot=ds,Re.toSpot=Ts;else for(me.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Me.move(me),Me=Me.Sd();Me.next();)Re=Me.value,Re.fromSpot=Ts,Re.toSpot=ds;else if(0<=a.commentMargin)for(me.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Me.move(me),Me=Me.Sd();Me.next();)Re=Me.value,Re.fromSpot=Ts,Re.toSpot=ds;else for(me.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Be.height),Me.move(me),Me=Me.Sd();Me.next();)Re=Me.value,Re.fromSpot=ds,Re.toSpot=Ts;oe=0<=a.commentSpacing?oe+(Be.width+a.commentSpacing):oe+(a.commentSpacing-Be.width)}}if(qe.free(me),y=oe-a.commentSpacing-(E?y.height:y.width),this.ud===Md)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},mo.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case H0:hx(this,a);break;case im:if(a.alignment===Dd)hx(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=nf(x)),E=Dy(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?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 b=Rc(a);y=b===90||b===270;var z=0,ne=a.children,re=ne.length;for(x=0;x<re;x++)E=ne[x],z=Math.max(z,y?E.Da.width:E.Da.height);var oe=a.alignment;E=oe===Ld;var le=oe===Fd,ce=nf(oe),me=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ce=a.nodeSpacing,Me=this.computeNodeIndent(a),Be=a.rowSpacing,Re=0;(E||le||a.hm||a.im&&a.maxGenerationCount===1)&&(Re=Math.max(0,a.rowIndent)),E=a.width;var dt=a.height,et=0,Pt=0,At=0,Dt=null,Rt=null,dn=0,bi=0,Ii=0,Ni=0,hi=0,Vn=0,Or=0,Cr=0;if(ce&&!qp(oe)&&135<b&&ne.reverse(),qp(oe))if(1<re)for(var Vo=0;Vo<re;Vo++)Vo%2===0&&Vo!==re-1&&(Cr=Math.max(Cr,y?ne[Vo].Da.width:ne[Vo].Da.height));else re===1&&(Cr=y?ne[0].Da.width:ne[0].Da.height);if(ce){switch(oe){case bh:Pt=135>b?fx(this,a,ne,Cr,et,Pt):gx(this,a,ne,Cr,et,Pt),Cr=Pt.x,et=Pt.width,Pt=Pt.height;break;case Ah:for(Dt=0;Dt<re;Dt++)Rt=ne[Dt],me=Rt.Da,At=Vn===0?0:Be,y?(Rt.S.h(z-me.width,Ni+At),et=Math.max(et,me.width),Pt=Math.max(Pt,Ni+At+me.height),Ni+=At+me.height):(Rt.S.h(Ii+At,z-me.height),et=Math.max(et,Ii+At+me.width),Pt=Math.max(Pt,me.height),Ii+=At+me.width),Vn++;break;case Jd:for(Dt=0;Dt<re;Dt++)Rt=ne[Dt],z=Rt.Da,me=Vn===0?0:Be,y?(Rt.S.h(Ce/2+a.focus.x,Ni+me),et=Math.max(et,z.width),Pt=Math.max(Pt,Ni+me+z.height),Ni+=me+z.height):(Rt.S.h(Ii+me,Ce/2+a.focus.y),et=Math.max(et,Ii+me+z.width),Pt=Math.max(Pt,z.height),Ii+=me+z.width),Vn++}Dt=Pu(this,2),Rt=Pu(this,2),y?(Dt[0].h(0,0),Dt[1].h(0,Pt),Rt[0].h(et,0)):(Dt[0].h(0,0),Dt[1].h(et,0),Rt[0].h(0,Pt)),Rt[1].h(et,Pt)}else for(Vo=0;Vo<re;Vo++){var Sa=ne[Vo],qs=Sa.Da;if(y){0<me&&0<Vn&&Ii+Ce+qs.width>me&&(Ii<z&&Tf(a,oe,z-Ii,0,Or,Vo-1),hi++,Vn=0,Or=Vo,At=Pt,Ii=0,Ni=135<b?-Pt-Be:Pt+Be),R0(this,Sa,0,Ni);var sl=0;if(Vn===0)Dt=Sa.Yo,Rt=Sa.kp,dn=qs.width,bi=qs.height,(Dt===null||Rt===null||b!==Rc(Sa))&&(Dt=Pu(this,2),Rt=Pu(this,2),Dt[0].h(0,0),Dt[1].h(0,bi),Rt[0].h(dn,0),Rt[1].h(dn,bi));else{var Wl=En();bi=px(this,a,Sa,Dt,Rt,dn,bi,Wl),sl=bi.x,Dt=Wl[0],Rt=Wl[1],dn=bi.width,bi=bi.height,kn(Wl),Ii<qs.width&&0>sl&&(lg(a,-sl,0,Or,Vo-1),z0(Dt,-sl,0),z0(Rt,-sl,0),sl=0)}Sa.S.h(sl,Ni),et=Math.max(et,dn),Pt=Math.max(Pt,At+(hi===0?0:Be)+qs.height),Ii=dn}else 0<me&&0<Vn&&Ni+Ce+qs.height>me&&(Ni<z&&Tf(a,oe,0,z-Ni,Or,Vo-1),hi++,Vn=0,Or=Vo,At=et,Ni=0,Ii=135<b?-et-Be:et+Be),R0(this,Sa,Ii,0),sl=0,Vn===0?(Dt=Sa.Yo,Rt=Sa.kp,dn=qs.width,bi=qs.height,(Dt===null||Rt===null||b!==Rc(Sa))&&(Dt=Pu(this,2),Rt=Pu(this,2),Dt[0].h(0,0),Dt[1].h(dn,0),Rt[0].h(0,bi),Rt[1].h(dn,bi))):(Wl=En(),bi=px(this,a,Sa,Dt,Rt,dn,bi,Wl),sl=bi.x,Dt=Wl[0],Rt=Wl[1],dn=bi.width,bi=bi.height,kn(Wl),Ni<qs.height&&0>sl&&(lg(a,0,-sl,Or,Vo-1),z0(Dt,0,-sl),z0(Rt,0,-sl),sl=0)),Sa.S.h(Ii,sl),Pt=Math.max(Pt,bi),et=Math.max(et,At+(hi===0?0:Be)+qs.width),Ni=bi;Vn++}switch(0<hi&&(y?(Pt+=Math.max(0,x),Ii<et&&Tf(a,oe,et-Ii,0,Or,re-1),0<Re&&(le||lg(a,Re,0,0,re-1),et+=Re)):(et+=Math.max(0,x),Ni<Pt&&Tf(a,oe,0,Pt-Ni,Or,re-1),0<Re&&(le||lg(a,0,Re,0,re-1),Pt+=Re))),Re=le=0,oe){case Jg:y?le+=et/2-a.focus.x-Me/2:Re+=Pt/2-a.focus.y-Me/2;break;case cg:0<hi?y?le+=et/2-a.focus.x-Me/2:Re+=Pt/2-a.focus.y-Me/2:y?(Cr=ne[0].S.x+ne[0].la.x,le+=Cr+(ne[re-1].S.x+ne[re-1].la.x+2*ne[re-1].focus.x-Cr)/2-a.focus.x-Me/2):(Cr=ne[0].S.y+ne[0].la.y,Re+=Cr+(ne[re-1].S.y+ne[re-1].la.y+2*ne[re-1].focus.y-Cr)/2-a.focus.y-Me/2);break;case Ld:y?(le-=Me,et+=Me):(Re-=Me,Pt+=Me);break;case Fd:y?(le+=et-a.width+Me,et+=Me):(Re+=Pt-a.height+Me,Pt+=Me);break;case bh:y?1<re?le+=Cr+Ce/2-a.focus.x:le+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<re?Re+=Cr+Ce/2-a.focus.y:Re+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case Ah:y?le+=et+Ce/2-a.focus.x:Re+=Pt+Ce/2-a.focus.y;break;case Jd:break;default:Pt=this.customAlignment(a,le,Re,et,Pt),le=Pt[0],Re=Pt[1],et=Pt[2],Pt=Pt[3]}for(Me=0;Me<re;Me++)Cr=ne[Me],y?Cr.S.h(Cr.S.x+Cr.la.x-le,Cr.S.y+(135<b?(ce?-Pt:-Cr.Da.height)+Cr.la.y-x:dt+x+Cr.la.y)):Cr.S.h(Cr.S.x+(135<b?(ce?-et:-Cr.Da.width)+Cr.la.x-x:E+x+Cr.la.x),Cr.S.y+Cr.la.y-Re);if(re=ne=0,ce?y?(et=By(a,et,le),0>le&&(le=0),135<b&&(Re+=Pt+x),Pt+=dt+x,oe===Jd&&(ne+=Ce/2+a.focus.x),re+=dt+x):(135<b&&(le+=et+x),et+=E+x,Pt=Ny(a,Pt,Re),0>Re&&(Re=0),oe===Jd&&(re+=Ce/2+a.focus.y),ne+=E+x):y?(a.comments===null?E>et&&(et=ky(oe,E-et,0),ne=et.x,re=et.y,et=E,le=0):et=By(a,et,le),0>le&&(ne-=le,le=0),135<b&&(Re+=Pt+x),Pt=Math.max(Math.max(Pt,dt),Pt+dt+x),re+=dt+x):(135<b&&(le+=et+x),et=Math.max(Math.max(et,E),et+E+x),a.comments===null?dt>Pt&&(Pt=ky(oe,0,dt-Pt),ne=Pt.x,re=Pt.y,Pt=dt,Re=0):Pt=Ny(a,Pt,Re),0>Re&&(re-=Re,Re=0),ne+=E+x),0<hi)b=Pu(this,4),hi=Pu(this,4),y?(b[2].h(0,dt+x),b[3].h(b[2].x,Pt),hi[2].h(et,b[2].y),hi[3].h(hi[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(et,b[2].y),hi[2].h(b[2].x,Pt),hi[3].h(b[3].x,hi[2].y));else{for(b=Pu(this,Dt.length+2),hi=Pu(this,Rt.length+2),oe=0;oe<Dt.length;oe++)ce=Dt[oe],b[oe+2].h(ce.x+ne,ce.y+re);for(oe=0;oe<Rt.length;oe++)ce=Rt[oe],hi[oe+2].h(ce.x+ne,ce.y+re)}y?(b[0].h(le,0),b[1].h(b[0].x,dt),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),hi[0].h(le+E,0),hi[1].h(hi[0].x,dt),hi[2].y<hi[1].y&&(hi[2].x<hi[0].x?hi[2].assign(hi[1]):hi[1].assign(hi[2])),hi[3].y<hi[2].y&&(hi[3].x<hi[0].x?hi[3].assign(hi[2]):hi[2].assign(hi[3])),b[2].y-=x/2,hi[2].y-=x/2):(b[0].h(0,Re),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),hi[0].h(0,Re+dt),hi[1].h(E,hi[0].y),hi[2].x<hi[1].x&&(hi[2].y<hi[0].y?hi[2].assign(hi[1]):hi[1].assign(hi[2])),hi[3].x<hi[2].x&&(hi[3].y<hi[0].y?hi[3].assign(hi[2]):hi[2].assign(hi[3])),b[2].x-=x/2,hi[2].x-=x/2),Jc(this,Dt),Jc(this,Rt),a.Yo=b,a.kp=hi,a.la.h(le,Re),a.Da.h(et,Pt)}break;default:at("Unhandled compaction value "+a.compaction.toString())}}};function hx(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=nf(x));var b=Dy(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=Rc(y),x=E===90||E===270;var z=0;b=y.children;for(var ne=b.length,re=0;re<ne;re++){var oe=b[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var le=y.alignment,ce=le===Ld,me=le===Fd;re=nf(le);var Ce=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var Me=y.nodeSpacing,Be=a.computeNodeIndent(y),Re=ce||me?0:Be/2,dt=y.rowSpacing,et=0;(ce||me||y.hm||y.im&&y.maxGenerationCount===1)&&(et=Math.max(0,y.rowIndent)),ce=y.width;var Pt=y.height,At=0,Dt=0,Rt=0,dn=0,bi=0,Ii=0,Ni=0,hi=0,Vn=0,Or=0;if(re&&!qp(le)&&135<E&&b.reverse(),qp(le))if(1<ne)for(var Cr=0;Cr<ne;Cr++){var Vo=b[Cr],Sa=Vo.Da;Cr%2===0&&Cr!==ne-1?Vn=Math.max(Vn,(x?Sa.width:Sa.height)+a.computeBusNodeSpacing(Vo)-Me):Cr%2!==0&&(Or=Math.max(Or,(x?Sa.width:Sa.height)+a.computeBusNodeSpacing(Vo)-Me))}else ne===1&&(Vn=x?b[0].Da.width:b[0].Da.height);if(re)switch(le){case bh:case Dd:Dt=135>E?fx(a,y,b,Vn,At,Dt):gx(a,y,b,Vn,At,Dt),Vn=Dt.x,At=Dt.width,Dt=Dt.height;break;case Ah:for(Ce=0;Ce<ne;Ce++)Re=b[Ce],Rt=Re.Da,Or=Ni===0?0:dt,x?(Re.S.h(z-Rt.width,bi+Or),At=Math.max(At,Rt.width),Dt=Math.max(Dt,bi+Or+Rt.height),bi+=Or+Rt.height):(Re.S.h(dn+Or,z-Rt.height),At=Math.max(At,dn+Or+Rt.width),Dt=Math.max(Dt,Rt.height),dn+=Or+Rt.width),Ni++;break;case Jd:for(z=0;z<ne;z++)Ce=b[z],Re=Ce.Da,Rt=Ni===0?0:dt,x?(Ce.S.h(Me/2+y.focus.x,bi+Rt),At=Math.max(At,Re.width),Dt=Math.max(Dt,bi+Rt+Re.height),bi+=Rt+Re.height):(Ce.S.h(dn+Rt,Me/2+y.focus.y),At=Math.max(At,dn+Rt+Re.width),Dt=Math.max(Dt,Re.height),dn+=Rt+Re.width),Ni++}else for(Or=0;Or<ne;Or++)Cr=b[Or],Vo=Cr.Da,x?(0<Ce&&0<Ni&&dn+Me+Vo.width>Ce&&(dn<z&&Tf(y,le,z-dn,0,hi,Or-1),Ii++,Ni=0,hi=Or,Rt=Dt,dn=0,bi=135<E?-Dt-dt:Dt+dt),Sa=Ni===0?Re:Me,R0(a,Cr,0,bi),Cr.S.h(dn+Sa,bi),At=Math.max(At,dn+Sa+Vo.width),Dt=Math.max(Dt,Rt+(Ii===0?0:dt)+Vo.height),dn+=Sa+Vo.width):(0<Ce&&0<Ni&&bi+Me+Vo.height>Ce&&(bi<z&&Tf(y,le,0,z-bi,hi,Or-1),Ii++,Ni=0,hi=Or,Rt=At,bi=0,dn=135<E?-At-dt:At+dt),Sa=Ni===0?Re:Me,R0(a,Cr,dn,0),Cr.S.h(dn,bi+Sa),Dt=Math.max(Dt,bi+Sa+Vo.height),At=Math.max(At,Rt+(Ii===0?0:dt)+Vo.width),bi+=Sa+Vo.height),Ni++;switch(0<Ii&&(x?(Dt+=Math.max(0,oe),dn<At&&Tf(y,le,At-dn,0,hi,ne-1),0<et&&(me||lg(y,et,0,0,ne-1),At+=et)):(At+=Math.max(0,oe),bi<Dt&&Tf(y,le,0,Dt-bi,hi,ne-1),0<et&&(me||lg(y,0,et,0,ne-1),Dt+=et))),et=me=0,le){case Jg:x?me+=At/2-y.focus.x-Be/2:et+=Dt/2-y.focus.y-Be/2;break;case cg:0<Ii?x?me+=At/2-y.focus.x-Be/2:et+=Dt/2-y.focus.y-Be/2:x?(a=b[0].S.x+b[0].la.x,me+=a+(b[ne-1].S.x+b[ne-1].la.x+2*b[ne-1].focus.x-a)/2-y.focus.x-Be/2):(a=b[0].S.y+b[0].la.y,et+=a+(b[ne-1].S.y+b[ne-1].la.y+2*b[ne-1].focus.y-a)/2-y.focus.y-Be/2);break;case Ld:x?(me-=Be,At+=Be):(et-=Be,Dt+=Be);break;case Fd:x?(me+=At-y.width+Be,At+=Be):(et+=Dt-y.height+Be,Dt+=Be);break;case bh:case Dd:x?1<ne?me+=Vn+Me/2-y.focus.x:me+=b[0].focus.x-y.focus.x+b[0].la.x:1<ne?et+=Vn+Me/2-y.focus.y:et+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Ah:x?me+=At+Me/2-y.focus.x:et+=Dt+Me/2-y.focus.y;break;case Jd:break;default:a=a.customAlignment(y,me,et,At,Dt),me=a[0],et=a[1],At=a[2],Dt=a[3]}for(a=0;a<ne;a++)Be=b[a],x?Be.S.h(Be.S.x+Be.la.x-me,Be.S.y+(135<E?(re?-Dt:-Be.Da.height)+Be.la.y-oe:Pt+oe+Be.la.y)):Be.S.h(Be.S.x+(135<E?(re?-At:-Be.Da.width)+Be.la.x-oe:ce+oe+Be.la.x),Be.S.y+Be.la.y-et);x?(At=By(y,At,me),0>me&&(me=0),135<E&&(et+=Dt+oe),Dt=Math.max(Math.max(Dt,Pt),Dt+Pt+oe)):(135<E&&(me+=At+oe),At=Math.max(Math.max(At,ce),At+ce+oe),Dt=Ny(y,Dt,et),0>et&&(et=0)),y.la.h(me,et),y.Da.h(At,Dt)}}mo.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function fx(a,y,x,E,b,z){var ne=x.length;if(ne===0)return new Cn(E,0,b,z);if(ne===1)return y=x[0],b=y.Da.width,z=y.Da.height,new Cn(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Rc(y)===90,ce=0,me=0,Ce=0,Me=0;Me<ne;Me++)if(!(Me%2!==0||1<ne&&Me===ne-1)){var Be=x[Me],Re=Be.Da,dt=ce===0?0:oe;if(le){var et=a.computeBusNodeSpacing(Be)-re;Be.S.h(E-(Re.width+et),Ce+dt),b=Math.max(b,Re.width+et),z=Math.max(z,Ce+dt+Re.height),Ce+=dt+Re.height}else et=a.computeBusNodeSpacing(Be)-re,Be.S.h(me+dt,E-(Re.height+et)),z=Math.max(z,Re.height+et),b=Math.max(b,me+dt+Re.width),me+=dt+Re.width;ce++}for(ce=0,Be=me,Me=Ce,le?(me=E+re,Ce=0):(me=0,Ce=E+re),Re=0;Re<ne;Re++)if(Re%2!==0){dt=x[Re],et=dt.Da;var Pt=ce===0?0:oe;if(le){var At=a.computeBusNodeSpacing(dt)-re;dt.S.h(me+At,Ce+Pt),b=Math.max(b,me+et.width+At),z=Math.max(z,Ce+Pt+et.height),Ce+=Pt+et.height}else At=a.computeBusNodeSpacing(dt)-re,dt.S.h(me+Pt,Ce+At),b=Math.max(b,me+Pt+et.width),z=Math.max(z,Ce+et.height+At),me+=Pt+et.width;ce++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(Me),Math.abs(Ce)):Math.max(Math.abs(Be),Math.abs(me))),le?(x.S.h(E+re/2-x.focus.x-x.la.x,z+a),le=E+re/2-x.focus.x-x.la.x,b=Math.max(b,le+ne.width),0>le&&(b-=le),z=Math.max(z,Math.max(Me,Ce)+a+ne.height),0>x.S.x&&(E=I0(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Be,me)+a+ne.width),Ce=E+re/2-x.focus.y-x.la.y,z=Math.max(z,Ce+ne.height),0>Ce&&(z-=Ce),0>x.S.y&&(E=I0(y,x.S.y,!0,E,re)))),new Cn(E,0,b,z)}function gx(a,y,x,E,b,z){var ne=x.length;if(ne===0)return new Cn(E,0,b,z);if(ne===1)return x=x[0],b=x.Da.width,z=x.Da.height,new Cn(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Rc(y)===270,ce=0,me=0,Ce=0,Me=0;Me<ne;Me++)if(!(Me%2!==0||1<ne&&Me===ne-1)){var Be=x[Me],Re=Be.Da,dt=ce===0?0:oe;if(le){var et=a.computeBusNodeSpacing(Be)-re;Ce-=dt+Re.height,Be.S.h(E-(Re.width+et),Ce),b=Math.max(b,Re.width+et),z=Math.max(z,Math.abs(Ce))}else et=a.computeBusNodeSpacing(Be)-re,me-=dt+Re.width,Be.S.h(me,E-(Re.height+et)),z=Math.max(z,Re.height+et),b=Math.max(b,Math.abs(me));ce++}for(ce=0,Be=me,Me=Ce,le?(me=E+re,Ce=0):(me=0,Ce=E+re),Re=0;Re<ne;Re++)if(Re%2!==0){dt=x[Re],et=dt.Da;var Pt=ce===0?0:oe;if(le){var At=a.computeBusNodeSpacing(dt)-re;Ce-=Pt+et.height,dt.S.h(me+At,Ce),b=Math.max(b,me+et.width+At),z=Math.max(z,Math.abs(Ce))}else At=a.computeBusNodeSpacing(dt)-re,me-=Pt+et.width,dt.S.h(me,Ce+At),z=Math.max(z,Ce+et.height+At),b=Math.max(b,Math.abs(me));ce++}for(1<ne&&ne%2===1&&(oe=x[ne-1],ce=oe.Da,a=a.computeBusLastRowSpacing(oe,le?Math.max(Math.abs(Me),Math.abs(Ce)):Math.max(Math.abs(Be),Math.abs(me))),le?(oe.S.h(E+re/2-oe.focus.x-oe.la.x,-z-ce.height-a),me=E+re/2-oe.focus.x-oe.la.x,b=Math.max(b,me+ce.width),0>me&&(b-=me),z=Math.max(z,Math.abs(Math.min(Me,Ce))+a+ce.height),0>oe.S.x&&(E=I0(y,oe.S.x,!1,E,re))):(oe.S.h(-b-ce.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(Be,me))+a+ce.width),Ce=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,Ce+ce.height),0>Ce&&(z-=Ce),0>oe.S.y&&(E=I0(y,oe.S.y,!0,E,re)))),y=0;y<ne;y++)re=x[y],le?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+b,re.S.y);return new Cn(E,0,b,z)}mo.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},mo.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function I0(a,y,x,E,b){a=a.children;for(var z=a.length,ne=0;ne<z;ne++)x?a[ne].S.h(a[ne].S.x,a[ne].S.y-y):a[ne].S.h(a[ne].S.x-y,a[ne].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function By(a,y,x){switch(a.alignment){case cg:case Jg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Ld:return a.width>y?a.width:y;case Fd:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case bh:case Dd:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Ah:return a.width-a.focus.x+a.nodeSpacing/2+y;case Jd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a.alignment){case cg:case Jg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Ld:return a.height>y?a.height:y;case Fd:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case bh:case Dd:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Ah:return a.height-a.focus.y+a.nodeSpacing/2+y;case Jd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function ky(a,y,x){switch(a){case Jg:y/=2,x/=2;break;case cg:y/=2,x/=2;break;case Ld:x=y=0;break;case Fd:break;default:at("Unhandled alignment value "+a.toString())}return new qe(y,x)}function Tf(a,y,x,E,b,z){y=ky(y,x,E),lg(a,y.x,y.y,b,z)}function lg(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function R0(a,y,x,E){var b=y.parent;switch(a.ud){case Md:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case ug:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:at("Unhandled path value "+a.ud.toString())}}function z0(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function px(a,y,x,E,b,z,ne,re){var oe=Rc(y),le=oe===90||oe===270,ce=y.nodeSpacing;y=E;var me=b;E=z;var Ce=ne,Me=x.Yo,Be=x.kp;ne=x.Da;var Re=le?Math.max(Ce,ne.height):Math.max(E,ne.width);if((Me===null||oe!==Rc(x))&&(Me=Pu(a,2),Be=Pu(a,2),le?(Me[0].h(0,0),Me[1].h(0,ne.height),Be[0].h(ne.width,0),Be[1].h(Be[0].x,Me[1].y)):(Me[0].h(0,0),Me[1].h(ne.width,0),Be[0].h(0,ne.height),Be[1].h(Me[1].x,Be[0].y))),le){if(Ce=9999999,!(me===null||2>me.length||Me===null||2>Me.length))for(b=x=0;x<me.length&&b<Me.length;){z=me[x];var dt=Me[b];oe=dt.x,le=dt.y,oe+=E;var et=z;x+1<me.length&&(et=me[x+1]);var Pt=dt;dt=Pt.x,Pt=Pt.y,b+1<Me.length&&(Pt=Me[b+1],dt=Pt.x,Pt=Pt.y,dt+=E);var At=Ce;z.y===le?At=oe-z.x:z.y>le&&z.y<Pt?At=oe+(z.y-le)/(Pt-le)*(dt-oe)-z.x:le>z.y&&le<et.y&&(At=oe-(z.x+(le-z.y)/(et.y-z.y)*(et.x-z.x))),At<Ce&&(Ce=At),et.y<=z.y?x++:Pt<=le?b++:(et.y<=Pt&&x++,Pt<=et.y&&b++)}if(Ce=E-Ce,Ce+=ce,x=Me,b=Ce,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ce=Pu(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],ce[E++].h(le.x+b,le.y);for(;oe<y.length;)le=y[oe++],ce[E++].h(le.x,le.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)le=x[z++],ce[E++].h(le.x+b,le.y);for(x=Pu(a,E),oe=0;oe<E;oe++)x[oe].assign(ce[oe]);Jc(a,ce),E=x}if(z=Be,oe=Ce,me===null||2>me.length||z===null||2>z.length)b=null;else{for(ce=Pu(a,me.length+z.length),b=le=x=0;x<me.length&&me[x].y<z[0].y;)et=me[x++],ce[b++].h(et.x,et.y);for(;le<z.length;)et=z[le++],ce[b++].h(et.x+oe,et.y);for(z=z[z.length-1].y;x<me.length&&me[x].y<=z;)x++;for(;x<me.length&&me[x].y>z;)oe=me[x++],ce[b++].h(oe.x,oe.y);for(z=Pu(a,b),x=0;x<b;x++)z[x].assign(ce[x]);Jc(a,ce),b=z}return z=Math.max(0,Ce)+ne.width,ne=Re,Jc(a,y),Jc(a,Me),Jc(a,me),Jc(a,Be),re[0]=E,re[1]=b,new Cn(Ce,0,z,ne)}if(E=9999999,!(me===null||2>me.length||Me===null||2>Me.length))for(b=x=0;x<me.length&&b<Me.length;)z=me[x],dt=Me[b],oe=dt.x,le=dt.y,le+=Ce,et=z,x+1<me.length&&(et=me[x+1]),Pt=dt,dt=Pt.x,Pt=Pt.y,b+1<Me.length&&(Pt=Me[b+1],dt=Pt.x,Pt=Pt.y,Pt+=Ce),At=E,z.x===oe?At=le-z.y:z.x>oe&&z.x<dt?At=le+(z.x-oe)/(dt-oe)*(Pt-le)-z.y:oe>z.x&&oe<et.x&&(At=le-(z.y+(oe-z.x)/(et.x-z.x)*(et.y-z.y))),At<E&&(E=At),et.x<=z.x?x++:dt<=oe?b++:(et.x<=dt&&x++,dt<=et.x&&b++);if(Ce-=E,Ce+=ce,x=Me,b=Ce,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ce=Pu(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],ce[E++].h(le.x,le.y+b);for(;oe<y.length;)le=y[oe++],ce[E++].h(le.x,le.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)le=x[z++],ce[E++].h(le.x,le.y+b);for(x=Pu(a,E),oe=0;oe<E;oe++)x[oe].assign(ce[oe]);Jc(a,ce),E=x}if(z=Be,oe=Ce,me===null||2>me.length||z===null||2>z.length)b=null;else{for(ce=Pu(a,me.length+z.length),b=le=x=0;x<me.length&&me[x].x<z[0].x;)et=me[x++],ce[b++].h(et.x,et.y);for(;le<z.length;)et=z[le++],ce[b++].h(et.x,et.y+oe);for(z=z[z.length-1].x;x<me.length&&me[x].x<=z;)x++;for(;x<me.length&&me[x].x>z;)oe=me[x++],ce[b++].h(oe.x,oe.y);for(z=Pu(a,b),x=0;x<b;x++)z[x].assign(ce[x]);Jc(a,ce),b=z}return z=Re,ne=Math.max(0,Ce)+ne.height,Jc(a,y),Jc(a,Me),Jc(a,me),Jc(a,Be),re[0]=E,re[1]=b,new Cn(Ce,0,z,ne)}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 qe;return a}function Jc(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}mo.prototype.arrangeTrees=function(){if(this.Rb===G0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof wc){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),Ty(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof wc&&a.push(x);switch(this.sorting){case _g:break;case em:a.reverse();break;case tm:a.sort(this.comparer);break;case nm:a.sort(this.comparer),a.reverse();break;default:at("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,E=0;E<a.length;E++){var b=a[E];switch(Ty(this,b,y+b.la.x,x+b.la.y),this.Rb){case Z0:x+=b.Da.height+this.$d.height;break;case zy:y+=b.Da.width+this.$d.width;break;default:at("Unhandled arrangement value "+this.Rb.toString())}}}};function Ty(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var ne=y[z];Ty(a,ne,x+ne.S.x,E+ne.S.y)}}}mo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},mo.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},mo.prototype.Gu=function(){if(this.layerStyle===K0){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new qe(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new qe(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var ne=0;ne<a.length;ne++)z+=a[ne]+y[ne];for(ne=0;ne<a.length;ne++){var re=a[ne]+y[ne];this.angle===270?(z-=re,b.push(new Cn(0,z,x,re))):this.angle===90?(b.push(new Cn(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new Cn(z,0,re,x))):(b.push(new Cn(z,0,re,x)),z+=re)}this.commitLayers(b,E)}},mo.prototype.commitLayers=function(){},mo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},mo.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof wc&&mx(this,y)}};function mx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)mx(a,y[E])}}mo.prototype.setPortSpots=function(a){var y=a.alignment;if(nf(y)){var x=this.ud===Md,E=Rc(a);switch(E){case 0:var b=Is;break;case 90:b=Ts;break;case 180:b=Ps;break;default:b=ds}var z=a.children,ne=z.length;switch(y){case bh:case Dd:for(y=0;y<ne;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=E===90||E===270?Ps:ds;if(ne===1||y===ne-1&&ne%2===1)switch(E){case 0:oe=Ps;break;case 90:oe=ds;break;case 180:oe=Is;break;default:oe=Ts}else y%2===0&&(oe=E===90||E===270?Is:Ts);x?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=b))}}break;case Ah:for(E=E===90||E===270?Is:Ts,z=x?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)):(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)));break;case Jd:for(E=E===90||E===270?Ps:ds,z=x?a.destinationEdges:a.sourceEdges;z.next();)ne=z.value.link,ne!==null&&(x?(a.setsPortSpot&&(ne.fromSpot=b),a.setsChildPortSpot&&(ne.toSpot=E)):(a.setsPortSpot&&(ne.fromSpot=E),a.setsChildPortSpot&&(ne.toSpot=b)))}}else if(x=Rc(a),this.ud===Md){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=Is;break;case 90:E.fromSpot=Ts;break;case 180:E.fromSpot=Ps;break;default:E.fromSpot=ds}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=Ps;break;case 90:E.toSpot=ds;break;case 180:E.toSpot=Is;break;default:E.toSpot=Ts}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=Is;break;case 90:E.toSpot=Ts;break;case 180:E.toSpot=Ps;break;default:E.toSpot=ds}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=Ps;break;case 90:E.fromSpot=ds;break;case 180:E.fromSpot=Is;break;default:E.fromSpot=Ts}else E.fromSpot=a.childPortSpot}};function Rc(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}mo.prototype.computeLayerSpacing=function(a){var y=Rc(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},mo.prototype.computeNodeIndent=function(a){var y=Rc(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},bt.Object.defineProperties(mo.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!==W0&&a!==Iy&&a!==Oy&&a!==Ry||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==jy&&a!==Hy&&a!==K0||(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!==Z0&&a!==zy&&a!==G0||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==_g&&a!==em&&a!==tm&&!nm||(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()):at("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!==H0&&a!==im||(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!==_g&&a!==em&&a!==tm&&!nm||(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!==H0&&a!==im||(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 j0=new Jt(mo,"PathDefault",-1),Md=new Jt(mo,"PathDestination",0),ug=new Jt(mo,"PathSource",1),_g=new Jt(mo,"SortingForwards",10),em=new Jt(mo,"SortingReverse",11),tm=new Jt(mo,"SortingAscending",12),nm=new Jt(mo,"SortingDescending",13),Jg=new Jt(mo,"AlignmentCenterSubtrees",20),cg=new Jt(mo,"AlignmentCenterChildren",21),Ld=new Jt(mo,"AlignmentStart",22),Fd=new Jt(mo,"AlignmentEnd",23),bh=new Jt(mo,"AlignmentBus",24),Dd=new Jt(mo,"AlignmentBusBranching",25),Ah=new Jt(mo,"AlignmentTopLeftBus",26),Jd=new Jt(mo,"AlignmentBottomRightBus",27),H0=new Jt(mo,"CompactionNone",30),im=new Jt(mo,"CompactionBlock",31),W0=new Jt(mo,"StyleLayered",40),Oy=new Jt(mo,"StyleLastParents",41),Iy=new Jt(mo,"StyleAlternating",42),Ry=new Jt(mo,"StyleRootOnly",43),Z0=new Jt(mo,"ArrangementVertical",50),zy=new Jt(mo,"ArrangementHorizontal",51),G0=new Jt(mo,"ArrangementFixedRoots",52),jy=new Jt(mo,"LayerIndividual",60),Hy=new Jt(mo,"LayerSiblings",61),K0=new Jt(mo,"LayerUniform",62);mo.className="TreeLayout",mo.PathDefault=j0,mo.PathDestination=Md,mo.PathSource=ug,mo.SortingForwards=_g,mo.SortingReverse=em,mo.SortingAscending=tm,mo.SortingDescending=nm,mo.AlignmentCenterSubtrees=Jg,mo.AlignmentCenterChildren=cg,mo.AlignmentStart=Ld,mo.AlignmentEnd=Fd,mo.AlignmentBus=bh,mo.AlignmentBusBranching=Dd,mo.AlignmentTopLeftBus=Ah,mo.AlignmentBottomRightBus=Jd,mo.CompactionNone=H0,mo.CompactionBlock=im,mo.StyleLayered=W0,mo.StyleLastParents=Oy,mo.StyleAlternating=Iy,mo.StyleRootOnly=Ry,mo.ArrangementVertical=Z0,mo.ArrangementHorizontal=zy,mo.ArrangementFixedRoots=G0,mo.LayerIndividual=jy,mo.LayerSiblings=Hy,mo.LayerUniform=K0;function dg(a){Ea.call(this,a)}Ut(dg,Ea),dg.prototype.createVertex=function(){return new wc(this)},dg.prototype.createEdge=function(){return new Qg(this)},dg.className="TreeNetwork";function wc(a){Us.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 qe(0,0),this.Da=new oi(0,0),this.la=new qe(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=_g,this.hd=ay,this.Kb=0,this.Jb=cg,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=im,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Yo,this.wr=!0,this.Dp=Yo}Ut(wc,Us),wc.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)},bt.Object.defineProperties(wc.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)}}}),wc.className="TreeVertex";function Qg(a){Bu.call(this,a),this.$t=new qe(0,0)}Ut(Qg,Bu),Qg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case Md:x=this.fromVertex,E=this.toVertex;break;case ug:x=this.toVertex,E=this.fromVertex;break;default:at("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=Rc(x),ne=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===Zu,le=a.isOrthogonal,ce;if(a.uh(),le||oe){for(ce=2;4<a.pointsCount;)a.pv(2);var me=a.i(1),Ce=a.i(2)}else{for(ce=1;3<a.pointsCount;)a.pv(1);me=a.i(0),Ce=a.i(a.pointsCount-1)}var Me=a.i(a.pointsCount-1);z===0?(x.alignment===Fd?(z=E.bottom+b.y,b.y===0&&me.y>Me.y+x.rowIndent&&(z=Math.min(z,Math.max(me.y,z-y.computeNodeIndent(x))))):x.alignment===Ld?(z=E.top+b.y,b.y===0&&me.y<Me.y-x.rowIndent&&(z=Math.max(z,Math.min(me.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(ce,me.x,z),ce++,a.m(ce,E.right+ne,z),ce++,a.m(ce,E.right+ne+(b.x-re)/3,z),ce++,a.m(ce,E.right+ne+2*(b.x-re)/3,z),ce++,a.m(ce,E.right+ne+(b.x-re),z),ce++,a.m(ce,Ce.x,z)):(le&&(a.m(ce,E.right+ne/2,me.y),ce++),a.m(ce,E.right+ne/2,z),ce++,a.m(ce,E.right+ne+b.x-(le?re/2:re),z),ce++,le&&a.m(ce,a.i(ce-1).x,Ce.y))):z===90?(x.alignment===Fd?(z=E.right+b.x,b.x===0&&me.x>Me.x+x.rowIndent&&(z=Math.min(z,Math.max(me.x,z-y.computeNodeIndent(x))))):x.alignment===Ld?(z=E.left+b.x,b.x===0&&me.x<Me.x-x.rowIndent&&(z=Math.max(z,Math.min(me.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(ce,z,me.y),ce++,a.m(ce,z,E.bottom+ne),ce++,a.m(ce,z,E.bottom+ne+(b.y-re)/3),ce++,a.m(ce,z,E.bottom+ne+2*(b.y-re)/3),ce++,a.m(ce,z,E.bottom+ne+(b.y-re)),ce++,a.m(ce,z,Ce.y)):(le&&(a.m(ce,me.x,E.bottom+ne/2),ce++),a.m(ce,z,E.bottom+ne/2),ce++,a.m(ce,z,E.bottom+ne+b.y-(le?re/2:re)),ce++,le&&a.m(ce,Ce.x,a.i(ce-1).y))):z===180?(x.alignment===Fd?(z=E.bottom+b.y,b.y===0&&me.y>Me.y+x.rowIndent&&(z=Math.min(z,Math.max(me.y,z-y.computeNodeIndent(x))))):x.alignment===Ld?(z=E.top+b.y,b.y===0&&me.y<Me.y-x.rowIndent&&(z=Math.max(z,Math.min(me.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(ce,me.x,z),ce++,a.m(ce,E.left-ne,z),ce++,a.m(ce,E.left-ne+(b.x+re)/3,z),ce++,a.m(ce,E.left-ne+2*(b.x+re)/3,z),ce++,a.m(ce,E.left-ne+(b.x+re),z),ce++,a.m(ce,Ce.x,z)):(le&&(a.m(ce,E.left-ne/2,me.y),ce++),a.m(ce,E.left-ne/2,z),ce++,a.m(ce,E.left-ne+b.x+(le?re/2:re),z),ce++,le&&a.m(ce,a.i(ce-1).x,Ce.y))):z===270?(x.alignment===Fd?(z=E.right+b.x,b.x===0&&me.x>Me.x+x.rowIndent&&(z=Math.min(z,Math.max(me.x,z-y.computeNodeIndent(x))))):x.alignment===Ld?(z=E.left+b.x,b.x===0&&me.x<Me.x-x.rowIndent&&(z=Math.max(z,Math.min(me.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(ce,z,me.y),ce++,a.m(ce,z,E.top-ne),ce++,a.m(ce,z,E.top-ne+(b.y+re)/3),ce++,a.m(ce,z,E.top-ne+2*(b.y+re)/3),ce++,a.m(ce,z,E.top-ne+(b.y+re)),ce++,a.m(ce,z,Ce.y)):(le&&(a.m(ce,me.x,E.top-ne/2),ce++),a.m(ce,z,E.top-ne/2),ce++,a.m(ce,z,E.top-ne+b.y+(le?re/2:re)),ce++,le&&a.m(ce,Ce.x,a.i(ce-1).y))):at("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=Rc(x),y!==Rc(b)&&(ne=E.computeLayerSpacing(x),re=x.bounds,x=b.bounds,y===0&&x.left-re.right<ne+1||y===90&&x.top-re.bottom<ne+1||y===180&&re.left-x.right<ne+1||y===270&&re.top-x.bottom<ne+1||(a.vg(),x=a.curve===Zu,b=a.isOrthogonal,E=nf(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-ne/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-ne/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):b?E?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()))}}},bt.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",ei.prototype.initializeStandardTools=function(){this.gb("Action",new Pr,this.mouseDownTools),this.gb("Relinking",new Bi,this.mouseDownTools),this.gb("LinkReshaping",new Ti,this.mouseDownTools),this.gb("Rotating",new Zr,this.mouseDownTools),this.gb("Resizing",new Mr,this.mouseDownTools),this.gb("Linking",new ti,this.mouseMoveTools),this.gb("Dragging",new Ji,this.mouseMoveTools),this.gb("DragSelecting",new Lr,this.mouseMoveTools),this.gb("Panning",new qi,this.mouseMoveTools),this.gb("ContextMenu",new bo,this.mouseUpTools),this.gb("TextEditing",new po,this.mouseUpTools),this.gb("ClickCreating",new _r,this.mouseUpTools),this.gb("ClickSelecting",new jo,this.mouseUpTools)},cd("Horizontal",new Sm),cd("Spot",new Pm),cd("Table",new Cm),cd("Viewbox",new Am),cd("TableRow",new Em),cd("TableColumn",new bm),cd("Graduated",new Sp),cd("Grid",new yp),Vc.add("GraphLinksModel",al),Vc.add("TreeModel",oc);var V0=ot.go,Wy={get licenseKey(){return cn.licenseKey},set licenseKey(a){cn.licenseKey=a},get version(){return cn.version},Group:Rr,EnumValue:Jt,List:An,Set:Wn,Map:Kn,Point:qe,Size:oi,Rect:Cn,Margin:Yn,Spot:Zi,Geometry:vi,PathFigure:Os,PathSegment:ko,InputEvent:$t,DiagramEvent:sn,ChangedEvent:Dn,Model:Ki,GraphLinksModel:Do,TreeModel:nu,Binding:Fs,Transaction:Xi,UndoManager:wi,CommandHandler:ct,Tool:xi,DraggingTool:Ji,DraggingInfo:Kd,DraggingOptions:se,LinkingBaseTool:un,LinkingTool:ti,RelinkingTool:Bi,LinkReshapingTool:Ti,ResizingTool:Mr,RotatingTool:Zr,ClickSelectingTool:jo,ActionTool:Pr,ClickCreatingTool:_r,HTMLInfo:mr,ContextMenuTool:bo,DragSelectingTool:Lr,PanningTool:qi,TextEditingTool:po,ToolManager:ei,Animation:Ja,AnimationManager:Da,AnimationTrigger:lu,Layer:Ia,Diagram:cn,Palette:ge,Overview:Se,Brush:ta,GraphObject:jt,Panel:ai,RowColumnDefinition:Ws,Shape:Vr,TextBlock:Ca,Picture:fu,Part:Qi,Adornment:Go,Node:Mi,Link:fi,Placeholder:$l,Layout:Ha,LayoutNetwork:Ea,LayoutVertex:Us,LayoutEdge:Bu,GridLayout:ml,PanelLayout:Ys,CircularLayout:Qa,CircularNetwork:Yg,CircularVertex:Up,CircularEdge:b0,ForceDirectedLayout:Ml,ForceDirectedNetwork:sg,ForceDirectedVertex:Xp,ForceDirectedEdge:_p,LayeredDigraphLayout:oa,LayeredDigraphNetwork:Xg,LayeredDigraphVertex:sc,LayeredDigraphEdge:$p,TreeLayout:mo,TreeNetwork:dg,TreeVertex:wc,TreeEdge:Qg};typeof V0=="object"&&V0.version&&Li("WARNING: a `go` object on the root object is already defined. "+("Debug"in V0?"debug ":"")+"version: "+V0.version+", replaced with version: "+Wy.version),cn.prototype.go=Wy,ot.go=Wy,typeof gn.exports=="object"&&(gn.exports=typeof he.g!="undefined"?he.g.go:self.go)}();var pe=typeof he.g!="undefined"?he.g.go:self.go;const Ie=typeof he.g!="undefined"?he.g.go:self.go,Ve=Ie.Group,st=Ie.EnumValue,We=Ie.List,it=Ie.Set,be=Ie.Map,yt=Ie.Point,vt=Ie.Size,Je=Ie.Rect,tt=Ie.Margin,$e=Ie.Spot,Qe=Ie.Geometry,Ee=Ie.PathFigure,ee=Ie.PathSegment,te=Ie.InputEvent,ue=Ie.DiagramEvent,ae=Ie.ChangedEvent,de=Ie.Model,ve=Ie.GraphLinksModel,Pe=Ie.TreeModel,Ae=Ie.Binding,xe=Ie.Transaction,Le=Ie.UndoManager,Te=Ie.CommandHandler,He=Ie.Tool,ze=Ie.DraggingTool,Ke=Ie.DraggingInfo,Ze=Ie.LinkingBaseTool,Mt=Ie.LinkingTool,Xe=Ie.RelinkingTool,Ft=Ie.LinkReshapingTool,Ct=Ie.ResizingTool,Nt=Ie.RotatingTool,It=Ie.ClickSelectingTool,_t=Ie.ActionTool,lt=Ie.ClickCreatingTool,je=Ie.HTMLInfo,Et=Ie.ContextMenuTool,ln=Ie.DragSelectingTool,Ht=Ie.PanningTool,xt=Ie.TextEditingTool,Bt=Ie.ToolManager,rn=Ie.Animation,Hn=Ie.AnimationManager,pn=Ie.AnimationTrigger,_n=Ie.Layer,Lt=Ie.Diagram,Un=Ie.Palette,Gn=Ie.Overview,ui=Ie.Brush,Ln=Ie.GraphObject,Wt=Ie.Panel,Vt=Ie.RowColumnDefinition,mt=Ie.Shape,Ye=Ie.TextBlock,Zt=Ie.TextBlockMetrics,Gt=Ie.Picture,ft=Ie.Part,nt=Ie.Adornment,Oe=Ie.Node,we=Ie.Link,ye=Ie.Placeholder,ke=Ie.Layout,Ge=Ie.LayoutNetwork,Fe=Ie.LayoutVertex,pt=Ie.LayoutEdge,tn=Ie.GridLayout,en=Ie.PanelLayout,wt=Ie.CircularLayout,Xt=Ie.CircularNetwork,Pn=Ie.CircularVertex,In=Ie.CircularEdge,$n=Ie.ForceDirectedLayout,Pi=Ie.ForceDirectedNetwork,wn=Ie.ForceDirectedVertex,Ai=Ie.ForceDirectedEdge,Vi=Ie.LayeredDigraphLayout,ur=Ie.LayeredDigraphNetwork,sr=Ie.LayeredDigraphVertex,Qn=Ie.LayeredDigraphEdge,Ci=Ie.TreeLayout,er=Ie.TreeNetwork,ri=Ie.TreeVertex,tr=Ie.TreeEdge,Di=Ie.version},17115:function(gn,zt,he){"use strict";he.d(zt,{ZP:function(){return be}});var pe=he(29043),Ie=he(59301),Ve=he(87746),st=0,We=(0,Ve.Z)();function it(){var yt;return We?(yt=st,st+=1):yt="TEST_OR_SSR",yt}function be(yt){var vt=Ie.useState(),Je=(0,pe.Z)(vt,2),tt=Je[0],$e=Je[1];return Ie.useEffect(function(){$e("rc_select_".concat(it()))},[]),yt||tt}},77861:function(gn,zt,he){"use strict";he.d(zt,{Ac:function(){return ke},Xo:function(){return Ai},Wx:function(){return ur},ZP:function(){return hn},lk:function(){return Pe}});var pe=he(5891),Ie=he(26390),Ve=he(80962),st=he(57259),We=he(29043),it=he(19149),be=he(80665),yt=he(35788),vt=he(51395),Je=he(59301),tt=he(92310),$e=he.n(tt),Qe=he(28800),Ee=he(93144),ee=he(85108),te=he(20475),ue=function(ot){var fn=ot.className,yn=ot.customizeIcon,li=ot.customizeIconProps,vn=ot.onMouseDown,at=ot.onClick,Bn=ot.children,pi;return typeof yn=="function"?pi=yn(li):pi=yn,Je.createElement("span",{className:fn,onMouseDown:function(qt){qt.preventDefault(),vn&&vn(qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:at,"aria-hidden":!0},pi!==void 0?pi:Je.createElement("span",{className:$e()(fn.split(/\s+/).map(function(Li){return"".concat(Li,"-icon")}))},Bn))},ae=ue;function de(Tt,ot,fn,yn,li){var vn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,at=arguments.length>6?arguments[6]:void 0,Bn=arguments.length>7?arguments[7]:void 0,pi=Je.useMemo(function(){if((0,be.Z)(yn)==="object")return yn.clearIcon;if(li)return li},[yn,li]),Li=Je.useMemo(function(){return!!(!vn&&yn&&(fn.length||at)&&!(Bn==="combobox"&&at===""))},[yn,vn,fn.length,at,Bn]);return{allowClear:Li,clearIcon:Je.createElement(ae,{className:"".concat(Tt,"-clear"),onMouseDown:ot,customizeIcon:pi},"\xD7")}}var ve=Je.createContext(null);function Pe(){return Je.useContext(ve)}function Ae(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ot=Je.useState(!1),fn=(0,We.Z)(ot,2),yn=fn[0],li=fn[1],vn=Je.useRef(null),at=function(){window.clearTimeout(vn.current)};Je.useEffect(function(){return at},[]);var Bn=function(Li,qt){at(),vn.current=window.setTimeout(function(){li(Li),qt&&qt()},Tt)};return[yn,Bn,at]}function xe(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ot=Je.useRef(null),fn=Je.useRef(null);Je.useEffect(function(){return function(){window.clearTimeout(fn.current)}},[]);function yn(li){(li||ot.current===null)&&(ot.current=li),window.clearTimeout(fn.current),fn.current=window.setTimeout(function(){ot.current=null},Tt)}return[function(){return ot.current},yn]}function Le(Tt,ot,fn,yn){var li=Je.useRef(null);li.current={open:ot,triggerOpen:fn,customizedTrigger:yn},Je.useEffect(function(){function vn(at){var Bn;if(!((Bn=li.current)!==null&&Bn!==void 0&&Bn.customizedTrigger)){var pi=at.target;pi.shadowRoot&&at.composed&&(pi=at.composedPath()[0]||pi),li.current.open&&Tt().filter(function(Li){return Li}).every(function(Li){return!Li.contains(pi)&&Li!==pi})&&li.current.triggerOpen(!1)}}return window.addEventListener("mousedown",vn),function(){return window.removeEventListener("mousedown",vn)}},[])}var Te=he(36994),He=he(11780),ze=function(ot,fn){var yn,li,vn=ot.prefixCls,at=ot.id,Bn=ot.inputElement,pi=ot.disabled,Li=ot.tabIndex,qt=ot.autoFocus,Nn=ot.autoComplete,on=ot.editable,Sn=ot.activeDescendantId,Fn=ot.value,En=ot.maxLength,kn=ot.onKeyDown,Zn=ot.onMouseDown,Jn=ot.onChange,si=ot.onPaste,Tn=ot.onCompositionStart,mi=ot.onCompositionEnd,nr=ot.open,Br=ot.attrs,rr=Bn||Je.createElement("input",null),Jt=rr,Fi=Jt.ref,Si=Jt.props,Wi=Si.onKeyDown,Nr=Si.onChange,br=Si.onMouseDown,Ir=Si.onCompositionStart,hr=Si.onCompositionEnd,Ui=Si.style;return(0,vt.Kp)(!("maxLength"in rr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),rr=Je.cloneElement(rr,(0,st.Z)((0,st.Z)((0,st.Z)({type:"search"},Si),{},{id:at,ref:(0,te.sQ)(fn,Fi),disabled:pi,tabIndex:Li,autoComplete:Nn||"off",autoFocus:qt,className:$e()("".concat(vn,"-selection-search-input"),(yn=rr)===null||yn===void 0||(li=yn.props)===null||li===void 0?void 0:li.className),role:"combobox","aria-label":"Search","aria-expanded":nr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(at,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(at,"_list"),"aria-activedescendant":nr?Sn:void 0},Br),{},{value:on?Fn:"",maxLength:En,readOnly:!on,unselectable:on?null:"on",style:(0,st.Z)((0,st.Z)({},Ui),{},{opacity:on?null:0}),onKeyDown:function(An){kn(An),Wi&&Wi(An)},onMouseDown:function(An){Zn(An),br&&br(An)},onChange:function(An){Jn(An),Nr&&Nr(An)},onCompositionStart:function(An){Tn(An),Ir&&Ir(An)},onCompositionEnd:function(An){mi(An),hr&&hr(An)},onPaste:si})),rr},Ke=Je.forwardRef(ze);Ke.displayName="Input";var Ze=Ke;function Mt(Tt){return Array.isArray(Tt)?Tt:Tt!==void 0?[Tt]:[]}var Xe=typeof window!="undefined"&&window.document&&window.document.documentElement,Ft=Xe;function Ct(Tt){return Tt!=null}function Nt(Tt){return!Tt&&Tt!==0}function It(Tt){return["string","number"].includes((0,be.Z)(Tt))}function _t(Tt){var ot=void 0;return Tt&&(It(Tt.title)?ot=Tt.title.toString():It(Tt.label)&&(ot=Tt.label.toString())),ot}function lt(Tt,ot){Ft?Je.useLayoutEffect(Tt,ot):Je.useEffect(Tt,ot)}function je(Tt){var ot;return(ot=Tt.key)!==null&&ot!==void 0?ot:Tt.value}var Et=function(ot){ot.preventDefault(),ot.stopPropagation()},ln=function(ot){var fn=ot.id,yn=ot.prefixCls,li=ot.values,vn=ot.open,at=ot.searchValue,Bn=ot.autoClearSearchValue,pi=ot.inputRef,Li=ot.placeholder,qt=ot.disabled,Nn=ot.mode,on=ot.showSearch,Sn=ot.autoFocus,Fn=ot.autoComplete,En=ot.activeDescendantId,kn=ot.tabIndex,Zn=ot.removeIcon,Jn=ot.maxTagCount,si=ot.maxTagTextLength,Tn=ot.maxTagPlaceholder,mi=Tn===void 0?function(_i){return"+ ".concat(_i.length," ...")}:Tn,nr=ot.tagRender,Br=ot.onToggleOpen,rr=ot.onRemove,Jt=ot.onInputChange,Fi=ot.onInputPaste,Si=ot.onInputKeyDown,Wi=ot.onInputMouseDown,Nr=ot.onInputCompositionStart,br=ot.onInputCompositionEnd,Ir=Je.useRef(null),hr=(0,Je.useState)(0),Ui=(0,We.Z)(hr,2),Jr=Ui[0],An=Ui[1],Co=(0,Je.useState)(!1),Wn=(0,We.Z)(Co,2),Hr=Wn[0],ha=Wn[1],yo="".concat(yn,"-selection"),Ot=vn||Nn==="multiple"&&Bn===!1||Nn==="tags"?at:"",di=Nn==="tags"||Nn==="multiple"&&Bn===!1||on&&(vn||Hr);lt(function(){An(Ir.current.scrollWidth)},[Ot]);function Mn(_i,uo,wr,Uo,Er){return Je.createElement("span",{className:$e()("".concat(yo,"-item"),(0,Ve.Z)({},"".concat(yo,"-item-disabled"),wr)),title:_t(_i)},Je.createElement("span",{className:"".concat(yo,"-item-content")},uo),Uo&&Je.createElement(ae,{className:"".concat(yo,"-item-remove"),onMouseDown:Et,onClick:Er,customizeIcon:Zn},"\xD7"))}function qn(_i,uo,wr,Uo,Er){var fr=function(ro){Et(ro),Br(!vn)};return Je.createElement("span",{onMouseDown:fr},nr({label:uo,value:_i,disabled:wr,closable:Uo,onClose:Er}))}function Ar(_i){var uo=_i.disabled,wr=_i.label,Uo=_i.value,Er=!qt&&!uo,fr=wr;if(typeof si=="number"&&(typeof wr=="string"||typeof wr=="number")){var ho=String(fr);ho.length>si&&(fr="".concat(ho.slice(0,si),"..."))}var ro=function(_o){_o&&_o.stopPropagation(),rr(_i)};return typeof nr=="function"?qn(Uo,fr,uo,Er,ro):Mn(_i,fr,uo,Er,ro)}function Sr(_i){var uo=typeof mi=="function"?mi(_i):mi;return Mn({title:uo},uo,!1)}var Kn=Je.createElement("div",{className:"".concat(yo,"-search"),style:{width:Jr},onFocus:function(){ha(!0)},onBlur:function(){ha(!1)}},Je.createElement(Ze,{ref:pi,open:vn,prefixCls:yn,id:fn,inputElement:null,disabled:qt,autoFocus:Sn,autoComplete:Fn,editable:di,activeDescendantId:En,value:Ot,onKeyDown:Si,onMouseDown:Wi,onChange:Jt,onPaste:Fi,onCompositionStart:Nr,onCompositionEnd:br,tabIndex:kn,attrs:(0,Te.Z)(ot,!0)}),Je.createElement("span",{ref:Ir,className:"".concat(yo,"-search-mirror"),"aria-hidden":!0},Ot,"\xA0")),qe=Je.createElement(He.Z,{prefixCls:"".concat(yo,"-overflow"),data:li,renderItem:Ar,renderRest:Sr,suffix:Kn,itemKey:je,maxCount:Jn});return Je.createElement(Je.Fragment,null,qe,!li.length&&!Ot&&Je.createElement("span",{className:"".concat(yo,"-placeholder")},Li))},Ht=ln,xt=function(ot){var fn=ot.inputElement,yn=ot.prefixCls,li=ot.id,vn=ot.inputRef,at=ot.disabled,Bn=ot.autoFocus,pi=ot.autoComplete,Li=ot.activeDescendantId,qt=ot.mode,Nn=ot.open,on=ot.values,Sn=ot.placeholder,Fn=ot.tabIndex,En=ot.showSearch,kn=ot.searchValue,Zn=ot.activeValue,Jn=ot.maxLength,si=ot.onInputKeyDown,Tn=ot.onInputMouseDown,mi=ot.onInputChange,nr=ot.onInputPaste,Br=ot.onInputCompositionStart,rr=ot.onInputCompositionEnd,Jt=ot.title,Fi=Je.useState(!1),Si=(0,We.Z)(Fi,2),Wi=Si[0],Nr=Si[1],br=qt==="combobox",Ir=br||En,hr=on[0],Ui=kn||"";br&&Zn&&!Wi&&(Ui=Zn),Je.useEffect(function(){br&&Nr(!1)},[br,Zn]);var Jr=qt!=="combobox"&&!Nn&&!En?!1:!!Ui,An=Jt===void 0?_t(hr):Jt,Co=function(){if(hr)return null;var Hr=Jr?{visibility:"hidden"}:void 0;return Je.createElement("span",{className:"".concat(yn,"-selection-placeholder"),style:Hr},Sn)};return Je.createElement(Je.Fragment,null,Je.createElement("span",{className:"".concat(yn,"-selection-search")},Je.createElement(Ze,{ref:vn,prefixCls:yn,id:li,open:Nn,inputElement:fn,disabled:at,autoFocus:Bn,autoComplete:pi,editable:Ir,activeDescendantId:Li,value:Ui,onKeyDown:si,onMouseDown:Tn,onChange:function(Hr){Nr(!0),mi(Hr)},onPaste:nr,onCompositionStart:Br,onCompositionEnd:rr,tabIndex:Fn,attrs:(0,Te.Z)(ot,!0),maxLength:br?Jn:void 0})),!br&&hr?Je.createElement("span",{className:"".concat(yn,"-selection-item"),title:An,style:Jr?{visibility:"hidden"}:void 0},hr.label):null,Co())},Bt=xt;function rn(Tt){return![ee.Z.ESC,ee.Z.SHIFT,ee.Z.BACKSPACE,ee.Z.TAB,ee.Z.WIN_KEY,ee.Z.ALT,ee.Z.META,ee.Z.WIN_KEY_RIGHT,ee.Z.CTRL,ee.Z.SEMICOLON,ee.Z.EQUALS,ee.Z.CAPS_LOCK,ee.Z.CONTEXT_MENU,ee.Z.F1,ee.Z.F2,ee.Z.F3,ee.Z.F4,ee.Z.F5,ee.Z.F6,ee.Z.F7,ee.Z.F8,ee.Z.F9,ee.Z.F10,ee.Z.F11,ee.Z.F12].includes(Tt)}var Hn=function(ot,fn){var yn=(0,Je.useRef)(null),li=(0,Je.useRef)(!1),vn=ot.prefixCls,at=ot.open,Bn=ot.mode,pi=ot.showSearch,Li=ot.tokenWithEnter,qt=ot.autoClearSearchValue,Nn=ot.onSearch,on=ot.onSearchSubmit,Sn=ot.onToggleOpen,Fn=ot.onInputKeyDown,En=ot.domRef;Je.useImperativeHandle(fn,function(){return{focus:function(){yn.current.focus()},blur:function(){yn.current.blur()}}});var kn=xe(0),Zn=(0,We.Z)(kn,2),Jn=Zn[0],si=Zn[1],Tn=function(Ui){var Jr=Ui.which;(Jr===ee.Z.UP||Jr===ee.Z.DOWN)&&Ui.preventDefault(),Fn&&Fn(Ui),Jr===ee.Z.ENTER&&Bn==="tags"&&!li.current&&!at&&(on==null||on(Ui.target.value)),rn(Jr)&&Sn(!0)},mi=function(){si(!0)},nr=(0,Je.useRef)(null),Br=function(Ui){Nn(Ui,!0,li.current)!==!1&&Sn(!0)},rr=function(){li.current=!0},Jt=function(Ui){li.current=!1,Bn!=="combobox"&&Br(Ui.target.value)},Fi=function(Ui){var Jr=Ui.target.value;if(Li&&nr.current&&/[\r\n]/.test(nr.current)){var An=nr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Jr=Jr.replace(An,nr.current)}nr.current=null,Br(Jr)},Si=function(Ui){var Jr=Ui.clipboardData,An=Jr.getData("text");nr.current=An},Wi=function(Ui){var Jr=Ui.target;if(Jr!==yn.current){var An=document.body.style.msTouchAction!==void 0;An?setTimeout(function(){yn.current.focus()}):yn.current.focus()}},Nr=function(Ui){var Jr=Jn();Ui.target!==yn.current&&!Jr&&Bn!=="combobox"&&Ui.preventDefault(),(Bn!=="combobox"&&(!pi||!Jr)||!at)&&(at&&qt!==!1&&Nn("",!0,!1),Sn())},br={inputRef:yn,onInputKeyDown:Tn,onInputMouseDown:mi,onInputChange:Fi,onInputPaste:Si,onInputCompositionStart:rr,onInputCompositionEnd:Jt},Ir=Bn==="multiple"||Bn==="tags"?Je.createElement(Ht,(0,pe.Z)({},ot,br)):Je.createElement(Bt,(0,pe.Z)({},ot,br));return Je.createElement("div",{ref:En,className:"".concat(vn,"-selector"),onClick:Wi,onMouseDown:Nr},Ir)},pn=Je.forwardRef(Hn);pn.displayName="Selector";var _n=pn,Lt=he(35593),Un=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Gn=function(ot){var fn=ot===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:fn,adjustY:1},htmlRegion:"scroll"}}},ui=function(ot,fn){var yn=ot.prefixCls,li=ot.disabled,vn=ot.visible,at=ot.children,Bn=ot.popupElement,pi=ot.animation,Li=ot.transitionName,qt=ot.dropdownStyle,Nn=ot.dropdownClassName,on=ot.direction,Sn=on===void 0?"ltr":on,Fn=ot.placement,En=ot.builtinPlacements,kn=ot.dropdownMatchSelectWidth,Zn=ot.dropdownRender,Jn=ot.dropdownAlign,si=ot.getPopupContainer,Tn=ot.empty,mi=ot.getTriggerDOMNode,nr=ot.onPopupVisibleChange,Br=ot.onPopupMouseEnter,rr=(0,it.Z)(ot,Un),Jt="".concat(yn,"-dropdown"),Fi=Bn;Zn&&(Fi=Zn(Bn));var Si=Je.useMemo(function(){return En||Gn(kn)},[En,kn]),Wi=pi?"".concat(Jt,"-").concat(pi):Li,Nr=typeof kn=="number",br=Je.useMemo(function(){return Nr?null:kn===!1?"minWidth":"width"},[kn,Nr]),Ir=qt;Nr&&(Ir=(0,st.Z)((0,st.Z)({},Ir),{},{width:kn}));var hr=Je.useRef(null);return Je.useImperativeHandle(fn,function(){return{getPopupElement:function(){return hr.current}}}),Je.createElement(Lt.Z,(0,pe.Z)({},rr,{showAction:nr?["click"]:[],hideAction:nr?["click"]:[],popupPlacement:Fn||(Sn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Si,prefixCls:Jt,popupTransitionName:Wi,popup:Je.createElement("div",{ref:hr,onMouseEnter:Br},Fi),stretch:br,popupAlign:Jn,popupVisible:vn,getPopupContainer:si,popupClassName:$e()(Nn,(0,Ve.Z)({},"".concat(Jt,"-empty"),Tn)),popupStyle:Ir,getTriggerDOMNode:mi,onPopupVisibleChange:nr}),at)},Ln=Je.forwardRef(ui);Ln.displayName="SelectTrigger";var Wt=Ln,Vt=he(17953);function mt(Tt,ot){var fn=Tt.key,yn;return"value"in Tt&&(yn=Tt.value),fn!=null?fn:yn!==void 0?yn:"rc-index-key-".concat(ot)}function Ye(Tt,ot){var fn=Tt||{},yn=fn.label,li=fn.value,vn=fn.options,at=fn.groupLabel,Bn=yn||(ot?"children":"label");return{label:Bn,value:li||"value",options:vn||"options",groupLabel:at||Bn}}function Zt(Tt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fn=ot.fieldNames,yn=ot.childrenAsData,li=[],vn=Ye(fn,!1),at=vn.label,Bn=vn.value,pi=vn.options,Li=vn.groupLabel;function qt(Nn,on){Nn.forEach(function(Sn){if(on||!(pi in Sn)){var Fn=Sn[Bn];li.push({key:mt(Sn,li.length),groupOption:on,data:Sn,label:Sn[at],value:Fn})}else{var En=Sn[Li];En===void 0&&yn&&(En=Sn.label),li.push({key:mt(Sn,li.length),group:!0,data:Sn,label:En}),qt(Sn[pi],!0)}})}return qt(Tt,!1),li}function Gt(Tt){var ot=(0,st.Z)({},Tt);return"props"in ot||Object.defineProperty(ot,"props",{get:function(){return(0,vt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ot}}),ot}function ft(Tt,ot){if(!ot||!ot.length)return null;var fn=!1;function yn(vn,at){var Bn=(0,Vt.Z)(at),pi=Bn[0],Li=Bn.slice(1);if(!pi)return[vn];var qt=vn.split(pi);return fn=fn||qt.length>1,qt.reduce(function(Nn,on){return[].concat((0,Ie.Z)(Nn),(0,Ie.Z)(yn(on,Li)))},[]).filter(function(Nn){return Nn})}var li=yn(Tt,ot);return fn?li:null}var nt=["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"],Oe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function we(Tt){return Tt==="tags"||Tt==="multiple"}var ye=Je.forwardRef(function(Tt,ot){var fn,yn,li=Tt.id,vn=Tt.prefixCls,at=Tt.className,Bn=Tt.showSearch,pi=Tt.tagRender,Li=Tt.direction,qt=Tt.omitDomProps,Nn=Tt.displayValues,on=Tt.onDisplayValuesChange,Sn=Tt.emptyOptions,Fn=Tt.notFoundContent,En=Fn===void 0?"Not Found":Fn,kn=Tt.onClear,Zn=Tt.mode,Jn=Tt.disabled,si=Tt.loading,Tn=Tt.getInputElement,mi=Tt.getRawInputElement,nr=Tt.open,Br=Tt.defaultOpen,rr=Tt.onDropdownVisibleChange,Jt=Tt.activeValue,Fi=Tt.onActiveValueChange,Si=Tt.activeDescendantId,Wi=Tt.searchValue,Nr=Tt.autoClearSearchValue,br=Tt.onSearch,Ir=Tt.onSearchSplit,hr=Tt.tokenSeparators,Ui=Tt.allowClear,Jr=Tt.suffixIcon,An=Tt.clearIcon,Co=Tt.OptionList,Wn=Tt.animation,Hr=Tt.transitionName,ha=Tt.dropdownStyle,yo=Tt.dropdownClassName,Ot=Tt.dropdownMatchSelectWidth,di=Tt.dropdownRender,Mn=Tt.dropdownAlign,qn=Tt.placement,Ar=Tt.builtinPlacements,Sr=Tt.getPopupContainer,Kn=Tt.showAction,qe=Kn===void 0?[]:Kn,_i=Tt.onFocus,uo=Tt.onBlur,wr=Tt.onKeyUp,Uo=Tt.onKeyDown,Er=Tt.onMouseDown,fr=(0,it.Z)(Tt,nt),ho=we(Zn),ro=(Bn!==void 0?Bn:ho)||Zn==="combobox",Gr=(0,st.Z)({},fr);Oe.forEach(function(Yo){delete Gr[Yo]}),qt==null||qt.forEach(function(Yo){delete Gr[Yo]});var _o=Je.useState(!1),lr=(0,We.Z)(_o,2),$i=lr[0],kr=lr[1];Je.useEffect(function(){kr((0,Ee.Z)())},[]);var oi=Je.useRef(null),Ao=Je.useRef(null),Jo=Je.useRef(null),Fa=Je.useRef(null),na=Je.useRef(null),ia=Ae(),xa=(0,We.Z)(ia,3),fo=xa[0],qa=xa[1],bs=xa[2];Je.useImperativeHandle(ot,function(){var Yo,Aa;return{focus:(Yo=Fa.current)===null||Yo===void 0?void 0:Yo.focus,blur:(Aa=Fa.current)===null||Aa===void 0?void 0:Aa.blur,scrollTo:function(Ns){var ks;return(ks=na.current)===null||ks===void 0?void 0:ks.scrollTo(Ns)}}});var So=Je.useMemo(function(){var Yo;if(Zn!=="combobox")return Wi;var Aa=(Yo=Nn[0])===null||Yo===void 0?void 0:Yo.value;return typeof Aa=="string"||typeof Aa=="number"?String(Aa):""},[Wi,Zn,Nn]),Cn=Zn==="combobox"&&typeof Tn=="function"&&Tn()||null,cs=typeof mi=="function"&&mi(),Ya=(0,te.x1)(Ao,cs==null||(fn=cs.props)===null||fn===void 0?void 0:fn.ref),Ss=Je.useState(!1),Lo=(0,We.Z)(Ss,2),fa=Lo[0],Pa=Lo[1];(0,Qe.Z)(function(){Pa(!0)},[]);var sa=(0,yt.Z)(!1,{defaultValue:Br,value:nr}),vo=(0,We.Z)(sa,2),aa=vo[0],is=vo[1],qr=fa?aa:!1,gr=!En&&Sn;(Jn||gr&&qr&&Zn==="combobox")&&(qr=!1);var zr=gr?!1:qr,Yn=Je.useCallback(function(Yo){var Aa=Yo!==void 0?Yo:!qr;Jn||(is(Aa),qr!==Aa&&(rr==null||rr(Aa)))},[Jn,qr,is,rr]),Fr=Je.useMemo(function(){return(hr||[]).some(function(Yo){return[`
|
|
|
`,`\r
|
|
|
`].includes(Yo)})},[hr]),io=function(Aa,El,Ns){var ks=!0,ds=Aa;Fi==null||Fi(null);var Ps=Ns?null:ft(Aa,hr);return Zn!=="combobox"&&Ps&&(ds="",Ir==null||Ir(Ps),Yn(!1),ks=!1),br&&So!==ds&&br(ds,{source:El?"typing":"effect"}),ks},qo=function(Aa){!Aa||!Aa.trim()||br(Aa,{source:"submit"})};Je.useEffect(function(){!qr&&!ho&&Zn!=="combobox"&&io("",!1,!1)},[qr]),Je.useEffect(function(){aa&&Jn&&is(!1),Jn&&qa(!1)},[Jn]);var Xs=xe(),Kl=(0,We.Z)(Xs,2),Zi=Kl[0],$a=Kl[1],As=function(Aa){var El=Zi(),Ns=Aa.which;if(Ns===ee.Z.ENTER&&(Zn!=="combobox"&&Aa.preventDefault(),qr||Yn(!0)),$a(!!So),Ns===ee.Z.BACKSPACE&&!El&&ho&&!So&&Nn.length){for(var ks=(0,Ie.Z)(Nn),ds=null,Ps=ks.length-1;Ps>=0;Ps-=1){var Is=ks[Ps];if(!Is.disabled){ks.splice(Ps,1),ds=Is;break}}ds&&on(ks,{type:"remove",values:[ds]})}for(var Ts=arguments.length,cc=new Array(Ts>1?Ts-1:0),au=1;au<Ts;au++)cc[au-1]=arguments[au];if(qr&&na.current){var Ms;(Ms=na.current).onKeyDown.apply(Ms,[Aa].concat(cc))}Uo==null||Uo.apply(void 0,[Aa].concat(cc))},Rl=function(Aa){for(var El=arguments.length,Ns=new Array(El>1?El-1:0),ks=1;ks<El;ks++)Ns[ks-1]=arguments[ks];if(qr&&na.current){var ds;(ds=na.current).onKeyUp.apply(ds,[Aa].concat(Ns))}wr==null||wr.apply(void 0,[Aa].concat(Ns))},zl=function(Aa){var El=Nn.filter(function(Ns){return Ns!==Aa});on(El,{type:"remove",values:[Aa]})},Vl=Je.useRef(!1),xo=function(){qa(!0),Jn||(_i&&!Vl.current&&_i.apply(void 0,arguments),qe.includes("focus")&&Yn(!0)),Vl.current=!0},Vu=function(){qa(!1,function(){Vl.current=!1,Yn(!1)}),!Jn&&(So&&(Zn==="tags"?br(So,{source:"submit"}):Zn==="multiple"&&br("",{source:"blur"})),uo&&uo.apply(void 0,arguments))},Ll=[];Je.useEffect(function(){return function(){Ll.forEach(function(Yo){return clearTimeout(Yo)}),Ll.splice(0,Ll.length)}},[]);var Xr=function(Aa){var El,Ns=Aa.target,ks=(El=Jo.current)===null||El===void 0?void 0:El.getPopupElement();if(ks&&ks.contains(Ns)){var ds=setTimeout(function(){var cc=Ll.indexOf(ds);if(cc!==-1&&Ll.splice(cc,1),bs(),!$i&&!ks.contains(document.activeElement)){var au;(au=Fa.current)===null||au===void 0||au.focus()}});Ll.push(ds)}for(var Ps=arguments.length,Is=new Array(Ps>1?Ps-1:0),Ts=1;Ts<Ps;Ts++)Is[Ts-1]=arguments[Ts];Er==null||Er.apply(void 0,[Aa].concat(Is))},pa=Je.useState({}),hl=(0,We.Z)(pa,2),tl=hl[1];function fl(){tl({})}var wl;cs&&(wl=function(Aa){Yn(Aa)}),Le(function(){var Yo;return[oi.current,(Yo=Jo.current)===null||Yo===void 0?void 0:Yo.getPopupElement()]},zr,Yn,!!cs);var Yu=Je.useMemo(function(){return(0,st.Z)((0,st.Z)({},Tt),{},{notFoundContent:En,open:qr,triggerOpen:zr,id:li,showSearch:ro,multiple:ho,toggleOpen:Yn})},[Tt,En,zr,qr,li,ro,ho,Yn]),uc=!!Jr||si,Uu;uc&&(Uu=Je.createElement(ae,{className:$e()("".concat(vn,"-arrow"),(0,Ve.Z)({},"".concat(vn,"-arrow-loading"),si)),customizeIcon:Jr,customizeIconProps:{loading:si,searchValue:So,open:qr,focused:fo,showSearch:ro}}));var Xu=function(){var Aa;kn==null||kn(),(Aa=Fa.current)===null||Aa===void 0||Aa.focus(),on([],{type:"clear",values:Nn}),io("",!1,!1)},_u=de(vn,Xu,Nn,Ui,An,Jn,So,Zn),xs=_u.allowClear,ll=_u.clearIcon,Cl=Je.createElement(Co,{ref:na}),Fl=$e()(vn,at,(yn={},(0,Ve.Z)(yn,"".concat(vn,"-focused"),fo),(0,Ve.Z)(yn,"".concat(vn,"-multiple"),ho),(0,Ve.Z)(yn,"".concat(vn,"-single"),!ho),(0,Ve.Z)(yn,"".concat(vn,"-allow-clear"),Ui),(0,Ve.Z)(yn,"".concat(vn,"-show-arrow"),uc),(0,Ve.Z)(yn,"".concat(vn,"-disabled"),Jn),(0,Ve.Z)(yn,"".concat(vn,"-loading"),si),(0,Ve.Z)(yn,"".concat(vn,"-open"),qr),(0,Ve.Z)(yn,"".concat(vn,"-customize-input"),Cn),(0,Ve.Z)(yn,"".concat(vn,"-show-search"),ro),yn)),nd=Je.createElement(Wt,{ref:Jo,disabled:Jn,prefixCls:vn,visible:zr,popupElement:Cl,animation:Wn,transitionName:Hr,dropdownStyle:ha,dropdownClassName:yo,direction:Li,dropdownMatchSelectWidth:Ot,dropdownRender:di,dropdownAlign:Mn,placement:qn,builtinPlacements:Ar,getPopupContainer:Sr,empty:Sn,getTriggerDOMNode:function(){return Ao.current},onPopupVisibleChange:wl,onPopupMouseEnter:fl},cs?Je.cloneElement(cs,{ref:Ya}):Je.createElement(_n,(0,pe.Z)({},Tt,{domRef:Ao,prefixCls:vn,inputElement:Cn,ref:Fa,id:li,showSearch:ro,autoClearSearchValue:Nr,mode:Zn,activeDescendantId:Si,tagRender:pi,values:Nn,open:qr,onToggleOpen:Yn,activeValue:Jt,searchValue:So,onSearch:io,onSearchSubmit:qo,onRemove:zl,tokenWithEnter:Fr}))),Au;return cs?Au=nd:Au=Je.createElement("div",(0,pe.Z)({className:Fl},Gr,{ref:oi,onMouseDown:Xr,onKeyDown:As,onKeyUp:Rl,onFocus:xo,onBlur:Vu}),fo&&!qr&&Je.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Nn.map(function(Yo){var Aa=Yo.label,El=Yo.value;return["number","string"].includes((0,be.Z)(Aa))?Aa:El}).join(", "))),nd,Uu,xs&&ll),Je.createElement(ve.Provider,{value:Yu},Au)}),ke=ye,Ge=function(Tt,ot){var fn=Je.useRef({values:new Map,options:new Map}),yn=Je.useMemo(function(){var vn=fn.current,at=vn.values,Bn=vn.options,pi=Tt.map(function(Nn){if(Nn.label===void 0){var on;return(0,st.Z)((0,st.Z)({},Nn),{},{label:(on=at.get(Nn.value))===null||on===void 0?void 0:on.label})}return Nn}),Li=new Map,qt=new Map;return pi.forEach(function(Nn){Li.set(Nn.value,Nn),qt.set(Nn.value,ot.get(Nn.value)||Bn.get(Nn.value))}),fn.current.values=Li,fn.current.options=qt,pi},[Tt,ot]),li=Je.useCallback(function(vn){return ot.get(vn)||fn.current.options.get(vn)},[ot]);return[yn,li]};function Fe(Tt,ot){return Mt(Tt).join("").toUpperCase().includes(ot)}var pt=function(Tt,ot,fn,yn,li){return Je.useMemo(function(){if(!fn||yn===!1)return Tt;var vn=ot.options,at=ot.label,Bn=ot.value,pi=[],Li=typeof yn=="function",qt=fn.toUpperCase(),Nn=Li?yn:function(Sn,Fn){return li?Fe(Fn[li],qt):Fn[vn]?Fe(Fn[at!=="children"?at:"label"],qt):Fe(Fn[Bn],qt)},on=Li?function(Sn){return Gt(Sn)}:function(Sn){return Sn};return Tt.forEach(function(Sn){if(Sn[vn]){var Fn=Nn(fn,on(Sn));if(Fn)pi.push(Sn);else{var En=Sn[vn].filter(function(kn){return Nn(fn,on(kn))});En.length&&pi.push((0,st.Z)((0,st.Z)({},Sn),{},(0,Ve.Z)({},vn,En)))}return}Nn(fn,on(Sn))&&pi.push(Sn)}),pi},[Tt,yn,li,fn,ot])},tn=he(17115),en=he(38298),wt=["children","value"],Xt=["children"];function Pn(Tt){var ot=Tt,fn=ot.key,yn=ot.props,li=yn.children,vn=yn.value,at=(0,it.Z)(yn,wt);return(0,st.Z)({key:fn,value:vn!==void 0?vn:fn,children:li},at)}function In(Tt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,en.Z)(Tt).map(function(fn,yn){if(!Je.isValidElement(fn)||!fn.type)return null;var li=fn,vn=li.type.isSelectOptGroup,at=li.key,Bn=li.props,pi=Bn.children,Li=(0,it.Z)(Bn,Xt);return ot||!vn?Pn(fn):(0,st.Z)((0,st.Z)({key:"__RC_SELECT_GRP__".concat(at===null?yn:at,"__"),label:at},Li),{},{options:In(pi)})}).filter(function(fn){return fn})}function $n(Tt,ot,fn,yn,li){return Je.useMemo(function(){var vn=Tt,at=!Tt;at&&(vn=In(ot));var Bn=new Map,pi=new Map,Li=function(on,Sn,Fn){Fn&&typeof Fn=="string"&&on.set(Sn[Fn],Sn)};function qt(Nn){for(var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Sn=0;Sn<Nn.length;Sn+=1){var Fn=Nn[Sn];!Fn[fn.options]||on?(Bn.set(Fn[fn.value],Fn),Li(pi,Fn,fn.label),Li(pi,Fn,yn),Li(pi,Fn,li)):qt(Fn[fn.options],!0)}}return qt(vn),{options:vn,valueOptions:Bn,labelOptions:pi}},[Tt,ot,fn,yn,li])}function Pi(Tt){var ot=Je.useRef();ot.current=Tt;var fn=Je.useCallback(function(){return ot.current.apply(ot,arguments)},[]);return fn}var wn=function(){return null};wn.isSelectOptGroup=!0;var Ai=wn,Vi=function(){return null};Vi.isSelectOption=!0;var ur=Vi,sr=he(79722),Qn=he(64002),Ci=he(21881),er=Je.createContext(null),ri=er;function tr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Di=["disabled","title","children","style","className"];function De(Tt){return typeof Tt=="string"||typeof Tt=="number"}var Yr=function(ot,fn){var yn=Pe(),li=yn.prefixCls,vn=yn.id,at=yn.open,Bn=yn.multiple,pi=yn.mode,Li=yn.searchValue,qt=yn.toggleOpen,Nn=yn.notFoundContent,on=yn.onPopupScroll,Sn=Je.useContext(ri),Fn=Sn.flattenOptions,En=Sn.onActiveValue,kn=Sn.defaultActiveFirstOption,Zn=Sn.onSelect,Jn=Sn.menuItemSelectedIcon,si=Sn.rawValues,Tn=Sn.fieldNames,mi=Sn.virtual,nr=Sn.direction,Br=Sn.listHeight,rr=Sn.listItemHeight,Jt="".concat(li,"-item"),Fi=(0,sr.Z)(function(){return Fn},[at,Fn],function(Mn,qn){return qn[0]&&Mn[1]!==qn[1]}),Si=Je.useRef(null),Wi=function(qn){qn.preventDefault()},Nr=function(qn){Si.current&&Si.current.scrollTo(typeof qn=="number"?{index:qn}:qn)},br=function(qn){for(var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Sr=Fi.length,Kn=0;Kn<Sr;Kn+=1){var qe=(qn+Kn*Ar+Sr)%Sr,_i=Fi[qe],uo=_i.group,wr=_i.data;if(!uo&&!wr.disabled)return qe}return-1},Ir=Je.useState(function(){return br(0)}),hr=(0,We.Z)(Ir,2),Ui=hr[0],Jr=hr[1],An=function(qn){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Jr(qn);var Sr={source:Ar?"keyboard":"mouse"},Kn=Fi[qn];if(!Kn){En(null,-1,Sr);return}En(Kn.value,qn,Sr)};(0,Je.useEffect)(function(){An(kn!==!1?br(0):-1)},[Fi.length,Li]);var Co=Je.useCallback(function(Mn){return si.has(Mn)&&pi!=="combobox"},[pi,(0,Ie.Z)(si).toString(),si.size]);(0,Je.useEffect)(function(){var Mn=setTimeout(function(){if(!Bn&&at&&si.size===1){var Ar=Array.from(si)[0],Sr=Fi.findIndex(function(Kn){var qe=Kn.data;return qe.value===Ar});Sr!==-1&&(An(Sr),Nr(Sr))}});if(at){var qn;(qn=Si.current)===null||qn===void 0||qn.scrollTo(void 0)}return function(){return clearTimeout(Mn)}},[at,Li,Fn.length]);var Wn=function(qn){qn!==void 0&&Zn(qn,{selected:!si.has(qn)}),Bn||qt(!1)};if(Je.useImperativeHandle(fn,function(){return{onKeyDown:function(qn){var Ar=qn.which,Sr=qn.ctrlKey;switch(Ar){case ee.Z.N:case ee.Z.P:case ee.Z.UP:case ee.Z.DOWN:{var Kn=0;if(Ar===ee.Z.UP?Kn=-1:Ar===ee.Z.DOWN?Kn=1:tr()&&Sr&&(Ar===ee.Z.N?Kn=1:Ar===ee.Z.P&&(Kn=-1)),Kn!==0){var qe=br(Ui+Kn,Kn);Nr(qe),An(qe,!0)}break}case ee.Z.ENTER:{var _i=Fi[Ui];_i&&!_i.data.disabled?Wn(_i.value):Wn(void 0),at&&qn.preventDefault();break}case ee.Z.ESC:qt(!1),at&&qn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(qn){Nr(qn)}}}),Fi.length===0)return Je.createElement("div",{role:"listbox",id:"".concat(vn,"_list"),className:"".concat(Jt,"-empty"),onMouseDown:Wi},Nn);var Hr=Object.keys(Tn).map(function(Mn){return Tn[Mn]}),ha=function(qn){return qn.label};function yo(Mn,qn){var Ar=Mn.group;return{role:Ar?"presentation":"option",id:"".concat(vn,"_list_").concat(qn)}}var Ot=function(qn){var Ar=Fi[qn];if(!Ar)return null;var Sr=Ar.data||{},Kn=Sr.value,qe=Ar.group,_i=(0,Te.Z)(Sr,!0),uo=ha(Ar);return Ar?Je.createElement("div",(0,pe.Z)({"aria-label":typeof uo=="string"&&!qe?uo:null},_i,{key:qn},yo(Ar,qn),{"aria-selected":Co(Kn)}),Kn):null},di={role:"listbox",id:"".concat(vn,"_list")};return Je.createElement(Je.Fragment,null,mi&&Je.createElement("div",(0,pe.Z)({},di,{style:{height:0,width:0,overflow:"hidden"}}),Ot(Ui-1),Ot(Ui),Ot(Ui+1)),Je.createElement(Ci.Z,{itemKey:"key",ref:Si,data:Fi,height:Br,itemHeight:rr,fullHeight:!1,onMouseDown:Wi,onScroll:on,virtual:mi,direction:nr,innerProps:mi?null:di},function(Mn,qn){var Ar,Sr=Mn.group,Kn=Mn.groupOption,qe=Mn.data,_i=Mn.label,uo=Mn.value,wr=qe.key;if(Sr){var Uo,Er=(Uo=qe.title)!==null&&Uo!==void 0?Uo:De(_i)?_i.toString():void 0;return Je.createElement("div",{className:$e()(Jt,"".concat(Jt,"-group")),title:Er},_i!==void 0?_i:wr)}var fr=qe.disabled,ho=qe.title,ro=qe.children,Gr=qe.style,_o=qe.className,lr=(0,it.Z)(qe,Di),$i=(0,Qn.Z)(lr,Hr),kr=Co(uo),oi="".concat(Jt,"-option"),Ao=$e()(Jt,oi,_o,(Ar={},(0,Ve.Z)(Ar,"".concat(oi,"-grouped"),Kn),(0,Ve.Z)(Ar,"".concat(oi,"-active"),Ui===qn&&!fr),(0,Ve.Z)(Ar,"".concat(oi,"-disabled"),fr),(0,Ve.Z)(Ar,"".concat(oi,"-selected"),kr),Ar)),Jo=ha(Mn),Fa=!Jn||typeof Jn=="function"||kr,na=typeof Jo=="number"?Jo:Jo||uo,ia=De(na)?na.toString():void 0;return ho!==void 0&&(ia=ho),Je.createElement("div",(0,pe.Z)({},(0,Te.Z)($i),mi?{}:yo(Mn,qn),{"aria-selected":kr,className:Ao,title:ia,onMouseMove:function(){Ui===qn||fr||An(qn)},onClick:function(){fr||Wn(uo)},style:Gr}),Je.createElement("div",{className:"".concat(oi,"-content")},na),Je.isValidElement(Jn)||kr,Fa&&Je.createElement(ae,{className:"".concat(Jt,"-option-state"),customizeIcon:Jn,customizeIconProps:{isSelected:kr}},kr?"\u2713":null))}))},yr=Je.forwardRef(Yr);yr.displayName="OptionList";var Dr=yr;function lo(Tt){var ot=Tt.mode,fn=Tt.options,yn=Tt.children,li=Tt.backfill,vn=Tt.allowClear,at=Tt.placeholder,Bn=Tt.getInputElement,pi=Tt.showSearch,Li=Tt.onSearch,qt=Tt.defaultOpen,Nn=Tt.autoFocus,on=Tt.labelInValue,Sn=Tt.value,Fn=Tt.inputValue,En=Tt.optionLabelProp,kn=isMultiple(ot),Zn=pi!==void 0?pi:kn||ot==="combobox",Jn=fn||convertChildrenToData(yn);if(warning(ot!=="tags"||Jn.every(function(nr){return!nr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ot==="tags"||ot==="combobox"){var si=Jn.some(function(nr){return nr.options?nr.options.some(function(Br){return typeof("value"in Br?Br.value:Br.key)=="number"}):typeof("value"in nr?nr.value:nr.key)=="number"});warning(!si,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ot!=="combobox"||!En,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ot==="combobox"||!li,"`backfill` only works with `combobox` mode."),warning(ot==="combobox"||!Bn,"`getInputElement` only work with `combobox` mode."),noteOnce(ot!=="combobox"||!Bn||!vn||!at,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Li&&!Zn&&ot!=="combobox"&&ot!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!qt||Nn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Sn!=null){var Tn=toArray(Sn);warning(!on||Tn.every(function(nr){return _typeof(nr)==="object"&&("key"in nr||"value"in nr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!kn||Array.isArray(Sn),"`value` should be array when `mode` is `multiple` or `tags`")}if(yn){var mi=null;toNodeArray(yn).some(function(nr){if(!React.isValidElement(nr)||!nr.type)return!1;var Br=nr,rr=Br.type;if(rr.isSelectOption)return!1;if(rr.isSelectOptGroup){var Jt=toNodeArray(nr.props.children).every(function(Fi){return!React.isValidElement(Fi)||!nr.type||Fi.type.isSelectOption?!0:(mi=Fi.type,!1)});return!Jt}return mi=rr,!0}),mi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(mi.displayName||mi.name||mi,"`.")),warning(Fn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Wo(Tt,ot){if(Tt){var fn=function yn(li){for(var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=0;at<li.length;at++){var Bn=li[at];if(Bn[ot==null?void 0:ot.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!vn&&Array.isArray(Bn[ot==null?void 0:ot.options])&&yn(Bn[ot==null?void 0:ot.options],!0))break}};fn(Tt)}}var No=null,ki=["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"],an=["inputValue"];function nn(Tt){return!Tt||(0,be.Z)(Tt)!=="object"}var Ut=Je.forwardRef(function(Tt,ot){var fn=Tt.id,yn=Tt.mode,li=Tt.prefixCls,vn=li===void 0?"rc-select":li,at=Tt.backfill,Bn=Tt.fieldNames,pi=Tt.inputValue,Li=Tt.searchValue,qt=Tt.onSearch,Nn=Tt.autoClearSearchValue,on=Nn===void 0?!0:Nn,Sn=Tt.onSelect,Fn=Tt.onDeselect,En=Tt.dropdownMatchSelectWidth,kn=En===void 0?!0:En,Zn=Tt.filterOption,Jn=Tt.filterSort,si=Tt.optionFilterProp,Tn=Tt.optionLabelProp,mi=Tt.options,nr=Tt.children,Br=Tt.defaultActiveFirstOption,rr=Tt.menuItemSelectedIcon,Jt=Tt.virtual,Fi=Tt.direction,Si=Tt.listHeight,Wi=Si===void 0?200:Si,Nr=Tt.listItemHeight,br=Nr===void 0?20:Nr,Ir=Tt.value,hr=Tt.defaultValue,Ui=Tt.labelInValue,Jr=Tt.onChange,An=(0,it.Z)(Tt,ki),Co=(0,tn.ZP)(fn),Wn=we(yn),Hr=!!(!mi&&nr),ha=Je.useMemo(function(){return Zn===void 0&&yn==="combobox"?!1:Zn},[Zn,yn]),yo=Je.useMemo(function(){return Ye(Bn,Hr)},[JSON.stringify(Bn),Hr]),Ot=(0,yt.Z)("",{value:Li!==void 0?Li:pi,postState:function(gr){return gr||""}}),di=(0,We.Z)(Ot,2),Mn=di[0],qn=di[1],Ar=$n(mi,nr,yo,si,Tn),Sr=Ar.valueOptions,Kn=Ar.labelOptions,qe=Ar.options,_i=Je.useCallback(function(qr){var gr=Mt(qr);return gr.map(function(zr){var Yn,Fr,io,qo,Xs;if(nn(zr))Yn=zr;else{var Kl;io=zr.key,Fr=zr.label,Yn=(Kl=zr.value)!==null&&Kl!==void 0?Kl:io}var Zi=Sr.get(Yn);if(Zi){var $a;if(Fr===void 0&&(Fr=Zi==null?void 0:Zi[Tn||yo.label]),io===void 0&&(io=($a=Zi==null?void 0:Zi.key)!==null&&$a!==void 0?$a:Yn),qo=Zi==null?void 0:Zi.disabled,Xs=Zi==null?void 0:Zi.title,0)var As}return{label:Fr,value:Yn,key:io,disabled:qo,title:Xs}})},[yo,Tn,Sr]),uo=(0,yt.Z)(hr,{value:Ir}),wr=(0,We.Z)(uo,2),Uo=wr[0],Er=wr[1],fr=Je.useMemo(function(){var qr,gr=_i(Uo);return yn==="combobox"&&Nt((qr=gr[0])===null||qr===void 0?void 0:qr.value)?[]:gr},[Uo,_i,yn]),ho=Ge(fr,Sr),ro=(0,We.Z)(ho,2),Gr=ro[0],_o=ro[1],lr=Je.useMemo(function(){if(!yn&&Gr.length===1){var qr=Gr[0];if(qr.value===null&&(qr.label===null||qr.label===void 0))return[]}return Gr.map(function(gr){var zr;return(0,st.Z)((0,st.Z)({},gr),{},{label:(zr=gr.label)!==null&&zr!==void 0?zr:gr.value})})},[yn,Gr]),$i=Je.useMemo(function(){return new Set(Gr.map(function(qr){return qr.value}))},[Gr]);Je.useEffect(function(){if(yn==="combobox"){var qr,gr=(qr=Gr[0])===null||qr===void 0?void 0:qr.value;qn(Ct(gr)?String(gr):"")}},[Gr]);var kr=Pi(function(qr,gr){var zr,Yn=gr!=null?gr:qr;return zr={},(0,Ve.Z)(zr,yo.value,qr),(0,Ve.Z)(zr,yo.label,Yn),zr}),oi=Je.useMemo(function(){if(yn!=="tags")return qe;var qr=(0,Ie.Z)(qe),gr=function(Yn){return Sr.has(Yn)};return(0,Ie.Z)(Gr).sort(function(zr,Yn){return zr.value<Yn.value?-1:1}).forEach(function(zr){var Yn=zr.value;gr(Yn)||qr.push(kr(Yn,zr.label))}),qr},[kr,qe,Sr,Gr,yn]),Ao=pt(oi,yo,Mn,ha,si),Jo=Je.useMemo(function(){return yn!=="tags"||!Mn||Ao.some(function(qr){return qr[si||"value"]===Mn})||Ao.some(function(qr){return qr[yo.value]===Mn})?Ao:[kr(Mn)].concat((0,Ie.Z)(Ao))},[kr,si,yn,Ao,Mn,yo]),Fa=Je.useMemo(function(){return Jn?(0,Ie.Z)(Jo).sort(function(qr,gr){return Jn(qr,gr)}):Jo},[Jo,Jn]),na=Je.useMemo(function(){return Zt(Fa,{fieldNames:yo,childrenAsData:Hr})},[Fa,yo,Hr]),ia=function(gr){var zr=_i(gr);if(Er(zr),Jr&&(zr.length!==Gr.length||zr.some(function(io,qo){var Xs;return((Xs=Gr[qo])===null||Xs===void 0?void 0:Xs.value)!==(io==null?void 0:io.value)}))){var Yn=Ui?zr:zr.map(function(io){return io.value}),Fr=zr.map(function(io){return Gt(_o(io.value))});Jr(Wn?Yn:Yn[0],Wn?Fr:Fr[0])}},xa=Je.useState(null),fo=(0,We.Z)(xa,2),qa=fo[0],bs=fo[1],So=Je.useState(0),Cn=(0,We.Z)(So,2),cs=Cn[0],Ya=Cn[1],Ss=Br!==void 0?Br:yn!=="combobox",Lo=Je.useCallback(function(qr,gr){var zr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Yn=zr.source,Fr=Yn===void 0?"keyboard":Yn;Ya(gr),at&&yn==="combobox"&&qr!==null&&Fr==="keyboard"&&bs(String(qr))},[at,yn]),fa=function(gr,zr,Yn){var Fr=function(){var Vl,xo=_o(gr);return[Ui?{label:xo==null?void 0:xo[yo.label],value:gr,key:(Vl=xo==null?void 0:xo.key)!==null&&Vl!==void 0?Vl:gr}:gr,Gt(xo)]};if(zr&&Sn){var io=Fr(),qo=(0,We.Z)(io,2),Xs=qo[0],Kl=qo[1];Sn(Xs,Kl)}else if(!zr&&Fn&&Yn!=="clear"){var Zi=Fr(),$a=(0,We.Z)(Zi,2),As=$a[0],Rl=$a[1];Fn(As,Rl)}},Pa=Pi(function(qr,gr){var zr,Yn=Wn?gr.selected:!0;Yn?zr=Wn?[].concat((0,Ie.Z)(Gr),[qr]):[qr]:zr=Gr.filter(function(Fr){return Fr.value!==qr}),ia(zr),fa(qr,Yn),yn==="combobox"?bs(""):(!we||on)&&(qn(""),bs(""))}),sa=function(gr,zr){ia(gr);var Yn=zr.type,Fr=zr.values;(Yn==="remove"||Yn==="clear")&&Fr.forEach(function(io){fa(io.value,!1,Yn)})},vo=function(gr,zr){if(qn(gr),bs(null),zr.source==="submit"){var Yn=(gr||"").trim();if(Yn){var Fr=Array.from(new Set([].concat((0,Ie.Z)($i),[Yn])));ia(Fr),fa(Yn,!0),qn("")}return}zr.source!=="blur"&&(yn==="combobox"&&ia(gr),qt==null||qt(gr))},aa=function(gr){var zr=gr;yn!=="tags"&&(zr=gr.map(function(Fr){var io=Kn.get(Fr);return io==null?void 0:io.value}).filter(function(Fr){return Fr!==void 0}));var Yn=Array.from(new Set([].concat((0,Ie.Z)($i),(0,Ie.Z)(zr))));ia(Yn),Yn.forEach(function(Fr){fa(Fr,!0)})},is=Je.useMemo(function(){var qr=Jt!==!1&&kn!==!1;return(0,st.Z)((0,st.Z)({},Ar),{},{flattenOptions:na,onActiveValue:Lo,defaultActiveFirstOption:Ss,onSelect:Pa,menuItemSelectedIcon:rr,rawValues:$i,fieldNames:yo,virtual:qr,direction:Fi,listHeight:Wi,listItemHeight:br,childrenAsData:Hr})},[Ar,na,Lo,Ss,Pa,rr,$i,yo,Jt,kn,Wi,br,Hr]);return Je.createElement(ri.Provider,{value:is},Je.createElement(ke,(0,pe.Z)({},An,{id:Co,prefixCls:vn,ref:ot,omitDomProps:an,mode:yn,displayValues:lr,onDisplayValuesChange:sa,direction:Fi,searchValue:Mn,onSearch:vo,autoClearSearchValue:on,onSearchSplit:aa,dropdownMatchSelectWidth:kn,OptionList:Dr,emptyOptions:!na.length,activeValue:qa,activeDescendantId:"".concat(Co,"_list_").concat(cs)})))}),bt=Ut;bt.Option=ur,bt.OptGroup=Ai;var xn=bt,hn=xn},9296:function(gn,zt,he){"use strict";he.r(zt),he.d(zt,{ResizableTextArea:function(){return Ke},default:function(){return Nt}});var pe=he(5891),Ie=he(57259),Ve=he(80962),st=he(80665),We=he(29043),it=he(19149),be=he(26390),yt=he(92310),vt=he.n(yt),Je=he(93681),tt=he(5643),$e=he(35788),Qe=he(59301),Ee=he(29301),ee=he(28800),te=he(23073),ue=`
|
|
|
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;
|
|
|
`,ae=["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"],de={},ve;function Pe(It){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=It.getAttribute("id")||It.getAttribute("data-reactid")||It.getAttribute("name");if(_t&&de[lt])return de[lt];var je=window.getComputedStyle(It),Et=je.getPropertyValue("box-sizing")||je.getPropertyValue("-moz-box-sizing")||je.getPropertyValue("-webkit-box-sizing"),ln=parseFloat(je.getPropertyValue("padding-bottom"))+parseFloat(je.getPropertyValue("padding-top")),Ht=parseFloat(je.getPropertyValue("border-bottom-width"))+parseFloat(je.getPropertyValue("border-top-width")),xt=ae.map(function(rn){return"".concat(rn,":").concat(je.getPropertyValue(rn))}).join(";"),Bt={sizingStyle:xt,paddingSize:ln,borderSize:Ht,boxSizing:Et};return _t&<&&(de[lt]=Bt),Bt}function Ae(It){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ve||(ve=document.createElement("textarea"),ve.setAttribute("tab-index","-1"),ve.setAttribute("aria-hidden","true"),document.body.appendChild(ve)),It.getAttribute("wrap")?ve.setAttribute("wrap",It.getAttribute("wrap")):ve.removeAttribute("wrap");var Et=Pe(It,_t),ln=Et.paddingSize,Ht=Et.borderSize,xt=Et.boxSizing,Bt=Et.sizingStyle;ve.setAttribute("style","".concat(Bt,";").concat(ue)),ve.value=It.value||It.placeholder||"";var rn=void 0,Hn=void 0,pn,_n=ve.scrollHeight;if(xt==="border-box"?_n+=Ht:xt==="content-box"&&(_n-=ln),lt!==null||je!==null){ve.value=" ";var Lt=ve.scrollHeight-ln;lt!==null&&(rn=Lt*lt,xt==="border-box"&&(rn=rn+ln+Ht),_n=Math.max(rn,_n)),je!==null&&(Hn=Lt*je,xt==="border-box"&&(Hn=Hn+ln+Ht),pn=_n>Hn?"":"hidden",_n=Math.min(Hn,_n))}var Un={height:_n,overflowY:pn,resize:"none"};return rn&&(Un.minHeight=rn),Hn&&(Un.maxHeight=Hn),Un}var xe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Le=0,Te=1,He=2,ze=Qe.forwardRef(function(It,_t){var lt=It,je=lt.prefixCls,Et=lt.onPressEnter,ln=lt.defaultValue,Ht=lt.value,xt=lt.autoSize,Bt=lt.onResize,rn=lt.className,Hn=lt.style,pn=lt.disabled,_n=lt.onChange,Lt=lt.onInternalAutoSize,Un=(0,it.Z)(lt,xe),Gn=(0,$e.Z)(ln,{value:Ht,postState:function(Ai){return Ai!=null?Ai:""}}),ui=(0,We.Z)(Gn,2),Ln=ui[0],Wt=ui[1],Vt=function(Ai){Wt(Ai.target.value),_n==null||_n(Ai)},mt=Qe.useRef();Qe.useImperativeHandle(_t,function(){return{textArea:mt.current}});var Ye=Qe.useMemo(function(){return xt&&(0,st.Z)(xt)==="object"?[xt.minRows,xt.maxRows]:[]},[xt]),Zt=(0,We.Z)(Ye,2),Gt=Zt[0],ft=Zt[1],nt=!!xt,Oe=function(){try{if(document.activeElement===mt.current){var Ai=mt.current,Vi=Ai.selectionStart,ur=Ai.selectionEnd,sr=Ai.scrollTop;mt.current.setSelectionRange(Vi,ur),mt.current.scrollTop=sr}}catch(Qn){}},we=Qe.useState(He),ye=(0,We.Z)(we,2),ke=ye[0],Ge=ye[1],Fe=Qe.useState(),pt=(0,We.Z)(Fe,2),tn=pt[0],en=pt[1],wt=function(){Ge(Le)};(0,ee.Z)(function(){nt&&wt()},[Ht,Gt,ft,nt]),(0,ee.Z)(function(){if(ke===Le)Ge(Te);else if(ke===Te){var wn=Ae(mt.current,!1,Gt,ft);Ge(He),en(wn)}else Oe()},[ke]);var Xt=Qe.useRef(),Pn=function(){te.Z.cancel(Xt.current)},In=function(Ai){ke===He&&(Bt==null||Bt(Ai),xt&&(Pn(),Xt.current=(0,te.Z)(function(){wt()})))};Qe.useEffect(function(){return Pn},[]);var $n=nt?tn:null,Pi=(0,Ie.Z)((0,Ie.Z)({},Hn),$n);return(ke===Le||ke===Te)&&(Pi.overflowY="hidden",Pi.overflowX="hidden"),Qe.createElement(Ee.Z,{onResize:In,disabled:!(xt||Bt)},Qe.createElement("textarea",(0,pe.Z)({},Un,{ref:mt,style:Pi,className:vt()(je,rn,(0,Ve.Z)({},"".concat(je,"-disabled"),pn)),disabled:pn,value:Ln,onChange:Vt})))}),Ke=ze,Ze=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Mt(It,_t){return(0,be.Z)(It||"").slice(0,_t).join("")}function Xe(It,_t,lt,je){var Et=lt;return It?Et=Mt(lt,je):(0,be.Z)(_t||"").length<lt.length&&(0,be.Z)(lt||"").length>je&&(Et=_t),Et}var Ft=Qe.forwardRef(function(It,_t){var lt,je=It.defaultValue,Et=It.value,ln=It.onFocus,Ht=It.onBlur,xt=It.onChange,Bt=It.allowClear,rn=It.maxLength,Hn=It.onCompositionStart,pn=It.onCompositionEnd,_n=It.suffix,Lt=It.prefixCls,Un=Lt===void 0?"rc-textarea":Lt,Gn=It.classes,ui=It.showCount,Ln=It.className,Wt=It.style,Vt=It.disabled,mt=It.hidden,Ye=It.classNames,Zt=It.styles,Gt=It.onResize,ft=(0,it.Z)(It,Ze),nt=(0,$e.Z)(je,{value:Et,defaultValue:je}),Oe=(0,We.Z)(nt,2),we=Oe[0],ye=Oe[1],ke=(0,Qe.useRef)(null),Ge=Qe.useState(!1),Fe=(0,We.Z)(Ge,2),pt=Fe[0],tn=Fe[1],en=Qe.useState(!1),wt=(0,We.Z)(en,2),Xt=wt[0],Pn=wt[1],In=Qe.useRef(),$n=Qe.useRef(0),Pi=Qe.useState(null),wn=(0,We.Z)(Pi,2),Ai=wn[0],Vi=wn[1],ur=function(){var nn;(nn=ke.current)===null||nn===void 0||nn.textArea.focus()};(0,Qe.useImperativeHandle)(_t,function(){return{resizableTextArea:ke.current,focus:ur,blur:function(){var nn;(nn=ke.current)===null||nn===void 0||nn.textArea.blur()}}}),(0,Qe.useEffect)(function(){tn(function(an){return!Vt&&an})},[Vt]);var sr=Number(rn)>0,Qn=function(nn){Pn(!0),In.current=we,$n.current=nn.currentTarget.selectionStart,Hn==null||Hn(nn)},Ci=function(nn){Pn(!1);var Ut=nn.currentTarget.value;if(sr){var bt,xn=$n.current>=rn+1||$n.current===((bt=In.current)===null||bt===void 0?void 0:bt.length);Ut=Xe(xn,In.current,Ut,rn)}Ut!==we&&(ye(Ut),(0,tt.rJ)(nn.currentTarget,nn,xt,Ut)),pn==null||pn(nn)},er=function(nn){var Ut=nn.target.value;if(!Xt&&sr){var bt=nn.target.selectionStart>=rn+1||nn.target.selectionStart===Ut.length||!nn.target.selectionStart;Ut=Xe(bt,we,Ut,rn)}ye(Ut),(0,tt.rJ)(nn.currentTarget,nn,xt,Ut)},ri=function(nn){var Ut=ft.onPressEnter,bt=ft.onKeyDown;nn.key==="Enter"&&Ut&&Ut(nn),bt==null||bt(nn)},tr=function(nn){tn(!0),ln==null||ln(nn)},Di=function(nn){tn(!1),Ht==null||Ht(nn)},De=function(nn){var Ut;ye(""),ur(),(0,tt.rJ)((Ut=ke.current)===null||Ut===void 0?void 0:Ut.textArea,nn,xt)},Yr=(0,tt.D7)(we);!Xt&&sr&&Et==null&&(Yr=Mt(Yr,rn));var yr=_n,Dr;if(ui){var lo=(0,be.Z)(Yr).length;(0,st.Z)(ui)==="object"?Dr=ui.formatter({value:Yr,count:lo,maxLength:rn}):Dr="".concat(lo).concat(sr?" / ".concat(rn):""),yr=Qe.createElement(Qe.Fragment,null,yr,Qe.createElement("span",{className:vt()("".concat(Un,"-data-count"),Ye==null?void 0:Ye.count),style:Zt==null?void 0:Zt.count},Dr))}var Wo=function(nn){var Ut;Gt==null||Gt(nn),(Ut=ke.current)!==null&&Ut!==void 0&&Ut.textArea.style.height&&Vi(!0)},No=!ft.autoSize&&!ui&&!Bt,ki=Qe.createElement(Je.BaseInput,{value:Yr,allowClear:Bt,handleReset:De,suffix:yr,prefixCls:Un,classes:{affixWrapper:vt()(Gn==null?void 0:Gn.affixWrapper,(lt={},(0,Ve.Z)(lt,"".concat(Un,"-show-count"),ui),(0,Ve.Z)(lt,"".concat(Un,"-textarea-allow-clear"),Bt),lt))},disabled:Vt,focused:pt,className:Ln,style:(0,Ie.Z)((0,Ie.Z)({},Wt),Ai&&!No?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Dr=="string"?Dr:void 0}},hidden:mt,inputElement:Qe.createElement(Ke,(0,pe.Z)({},ft,{onKeyDown:ri,onChange:er,onFocus:tr,onBlur:Di,onCompositionStart:Qn,onCompositionEnd:Ci,className:Ye==null?void 0:Ye.textarea,style:(0,Ie.Z)((0,Ie.Z)({},Zt==null?void 0:Zt.textarea),{},{resize:Wt==null?void 0:Wt.resize}),disabled:Vt,prefixCls:Un,onResize:Wo,ref:ke}))});return ki}),Ct=Ft,Nt=Ct},39417:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Te}});var pe=he(5891),Ie=he(80962),Ve=he(19149),st=he(57259),We=he(79545),it=he(68550),be=he(21882),yt=he(17928),vt=he(7711),Je=he(92310),tt=he.n(Je),$e=he(36994),Qe=he(59301),Ee=he(39378),ee=function(ze){for(var Ke=ze.prefixCls,Ze=ze.level,Mt=ze.isStart,Xe=ze.isEnd,Ft="".concat(Ke,"-indent-unit"),Ct=[],Nt=0;Nt<Ze;Nt+=1){var It;Ct.push(Qe.createElement("span",{key:Nt,className:tt()(Ft,(It={},(0,Ie.Z)(It,"".concat(Ft,"-start"),Mt[Nt]),(0,Ie.Z)(It,"".concat(Ft,"-end"),Xe[Nt]),It))}))}return Qe.createElement("span",{"aria-hidden":"true",className:"".concat(Ke,"-indent")},Ct)},te=Qe.memo(ee),ue=he(67841),ae=he(71430),de=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ve="open",Pe="close",Ae="---",xe=function(He){(0,yt.Z)(Ke,He);var ze=(0,vt.Z)(Ke);function Ke(){var Ze;(0,We.Z)(this,Ke);for(var Mt=arguments.length,Xe=new Array(Mt),Ft=0;Ft<Mt;Ft++)Xe[Ft]=arguments[Ft];return Ze=ze.call.apply(ze,[this].concat(Xe)),Ze.state={dragNodeHighlight:!1},Ze.selectHandle=void 0,Ze.cacheIndent=void 0,Ze.onSelectorClick=function(Ct){var Nt=Ze.props.context.onNodeClick;Nt(Ct,(0,ae.F)(Ze.props)),Ze.isSelectable()?Ze.onSelect(Ct):Ze.onCheck(Ct)},Ze.onSelectorDoubleClick=function(Ct){var Nt=Ze.props.context.onNodeDoubleClick;Nt(Ct,(0,ae.F)(Ze.props))},Ze.onSelect=function(Ct){if(!Ze.isDisabled()){var Nt=Ze.props.context.onNodeSelect;Nt(Ct,(0,ae.F)(Ze.props))}},Ze.onCheck=function(Ct){if(!Ze.isDisabled()){var Nt=Ze.props,It=Nt.disableCheckbox,_t=Nt.checked,lt=Ze.props.context.onNodeCheck;if(!(!Ze.isCheckable()||It)){var je=!_t;lt(Ct,(0,ae.F)(Ze.props),je)}}},Ze.onMouseEnter=function(Ct){var Nt=Ze.props.context.onNodeMouseEnter;Nt(Ct,(0,ae.F)(Ze.props))},Ze.onMouseLeave=function(Ct){var Nt=Ze.props.context.onNodeMouseLeave;Nt(Ct,(0,ae.F)(Ze.props))},Ze.onContextMenu=function(Ct){var Nt=Ze.props.context.onNodeContextMenu;Nt(Ct,(0,ae.F)(Ze.props))},Ze.onDragStart=function(Ct){var Nt=Ze.props.context.onNodeDragStart;Ct.stopPropagation(),Ze.setState({dragNodeHighlight:!0}),Nt(Ct,(0,be.Z)(Ze));try{Ct.dataTransfer.setData("text/plain","")}catch(It){}},Ze.onDragEnter=function(Ct){var Nt=Ze.props.context.onNodeDragEnter;Ct.preventDefault(),Ct.stopPropagation(),Nt(Ct,(0,be.Z)(Ze))},Ze.onDragOver=function(Ct){var Nt=Ze.props.context.onNodeDragOver;Ct.preventDefault(),Ct.stopPropagation(),Nt(Ct,(0,be.Z)(Ze))},Ze.onDragLeave=function(Ct){var Nt=Ze.props.context.onNodeDragLeave;Ct.stopPropagation(),Nt(Ct,(0,be.Z)(Ze))},Ze.onDragEnd=function(Ct){var Nt=Ze.props.context.onNodeDragEnd;Ct.stopPropagation(),Ze.setState({dragNodeHighlight:!1}),Nt(Ct,(0,be.Z)(Ze))},Ze.onDrop=function(Ct){var Nt=Ze.props.context.onNodeDrop;Ct.preventDefault(),Ct.stopPropagation(),Ze.setState({dragNodeHighlight:!1}),Nt(Ct,(0,be.Z)(Ze))},Ze.onExpand=function(Ct){var Nt=Ze.props,It=Nt.loading,_t=Nt.context.onNodeExpand;It||_t(Ct,(0,ae.F)(Ze.props))},Ze.setSelectHandle=function(Ct){Ze.selectHandle=Ct},Ze.getNodeState=function(){var Ct=Ze.props.expanded;return Ze.isLeaf()?null:Ct?ve:Pe},Ze.hasChildren=function(){var Ct=Ze.props.eventKey,Nt=Ze.props.context.keyEntities,It=(0,ue.Z)(Nt,Ct)||{},_t=It.children;return!!(_t||[]).length},Ze.isLeaf=function(){var Ct=Ze.props,Nt=Ct.isLeaf,It=Ct.loaded,_t=Ze.props.context.loadData,lt=Ze.hasChildren();return Nt===!1?!1:Nt||!_t&&!lt||_t&&It&&!lt},Ze.isDisabled=function(){var Ct=Ze.props.disabled,Nt=Ze.props.context.disabled;return!!(Nt||Ct)},Ze.isCheckable=function(){var Ct=Ze.props.checkable,Nt=Ze.props.context.checkable;return!Nt||Ct===!1?!1:Nt},Ze.syncLoadData=function(Ct){var Nt=Ct.expanded,It=Ct.loading,_t=Ct.loaded,lt=Ze.props.context,je=lt.loadData,Et=lt.onNodeLoad;It||je&&Nt&&!Ze.isLeaf()&&!Ze.hasChildren()&&!_t&&Et((0,ae.F)(Ze.props))},Ze.isDraggable=function(){var Ct=Ze.props,Nt=Ct.data,It=Ct.context.draggable;return!!(It&&(!It.nodeDraggable||It.nodeDraggable(Nt)))},Ze.renderDragHandler=function(){var Ct=Ze.props.context,Nt=Ct.draggable,It=Ct.prefixCls;return Nt!=null&&Nt.icon?Qe.createElement("span",{className:"".concat(It,"-draggable-icon")},Nt.icon):null},Ze.renderSwitcherIconDom=function(Ct){var Nt=Ze.props.switcherIcon,It=Ze.props.context.switcherIcon,_t=Nt||It;return typeof _t=="function"?_t((0,st.Z)((0,st.Z)({},Ze.props),{},{isLeaf:Ct})):_t},Ze.renderSwitcher=function(){var Ct=Ze.props.expanded,Nt=Ze.props.context.prefixCls;if(Ze.isLeaf()){var It=Ze.renderSwitcherIconDom(!0);return It!==!1?Qe.createElement("span",{className:tt()("".concat(Nt,"-switcher"),"".concat(Nt,"-switcher-noop"))},It):null}var _t=tt()("".concat(Nt,"-switcher"),"".concat(Nt,"-switcher_").concat(Ct?ve:Pe)),lt=Ze.renderSwitcherIconDom(!1);return lt!==!1?Qe.createElement("span",{onClick:Ze.onExpand,className:_t},lt):null},Ze.renderCheckbox=function(){var Ct=Ze.props,Nt=Ct.checked,It=Ct.halfChecked,_t=Ct.disableCheckbox,lt=Ze.props.context.prefixCls,je=Ze.isDisabled(),Et=Ze.isCheckable();if(!Et)return null;var ln=typeof Et!="boolean"?Et:null;return Qe.createElement("span",{className:tt()("".concat(lt,"-checkbox"),Nt&&"".concat(lt,"-checkbox-checked"),!Nt&&It&&"".concat(lt,"-checkbox-indeterminate"),(je||_t)&&"".concat(lt,"-checkbox-disabled")),onClick:Ze.onCheck},ln)},Ze.renderIcon=function(){var Ct=Ze.props.loading,Nt=Ze.props.context.prefixCls;return Qe.createElement("span",{className:tt()("".concat(Nt,"-iconEle"),"".concat(Nt,"-icon__").concat(Ze.getNodeState()||"docu"),Ct&&"".concat(Nt,"-icon_loading"))})},Ze.renderSelector=function(){var Ct=Ze.state.dragNodeHighlight,Nt=Ze.props,It=Nt.title,_t=It===void 0?Ae:It,lt=Nt.selected,je=Nt.icon,Et=Nt.loading,ln=Nt.data,Ht=Ze.props.context,xt=Ht.prefixCls,Bt=Ht.showIcon,rn=Ht.icon,Hn=Ht.loadData,pn=Ht.titleRender,_n=Ze.isDisabled(),Lt="".concat(xt,"-node-content-wrapper"),Un;if(Bt){var Gn=je||rn;Un=Gn?Qe.createElement("span",{className:tt()("".concat(xt,"-iconEle"),"".concat(xt,"-icon__customize"))},typeof Gn=="function"?Gn(Ze.props):Gn):Ze.renderIcon()}else Hn&&Et&&(Un=Ze.renderIcon());var ui;typeof _t=="function"?ui=_t(ln):pn?ui=pn(ln):ui=_t;var Ln=Qe.createElement("span",{className:"".concat(xt,"-title")},ui);return Qe.createElement("span",{ref:Ze.setSelectHandle,title:typeof _t=="string"?_t:"",className:tt()("".concat(Lt),"".concat(Lt,"-").concat(Ze.getNodeState()||"normal"),!_n&&(lt||Ct)&&"".concat(xt,"-node-selected")),onMouseEnter:Ze.onMouseEnter,onMouseLeave:Ze.onMouseLeave,onContextMenu:Ze.onContextMenu,onClick:Ze.onSelectorClick,onDoubleClick:Ze.onSelectorDoubleClick},Un,Ln,Ze.renderDropIndicator())},Ze.renderDropIndicator=function(){var Ct=Ze.props,Nt=Ct.disabled,It=Ct.eventKey,_t=Ze.props.context,lt=_t.draggable,je=_t.dropLevelOffset,Et=_t.dropPosition,ln=_t.prefixCls,Ht=_t.indent,xt=_t.dropIndicatorRender,Bt=_t.dragOverNodeKey,rn=_t.direction,Hn=!!lt,pn=!Nt&&Hn&&Bt===It,_n=Ht!=null?Ht:Ze.cacheIndent;return Ze.cacheIndent=Ht,pn?xt({dropPosition:Et,dropLevelOffset:je,indent:_n,prefixCls:ln,direction:rn}):null},Ze}return(0,it.Z)(Ke,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Mt=this.props.selectable,Xe=this.props.context.selectable;return typeof Mt=="boolean"?Mt:Xe}},{key:"render",value:function(){var Mt,Xe=this.props,Ft=Xe.eventKey,Ct=Xe.className,Nt=Xe.style,It=Xe.dragOver,_t=Xe.dragOverGapTop,lt=Xe.dragOverGapBottom,je=Xe.isLeaf,Et=Xe.isStart,ln=Xe.isEnd,Ht=Xe.expanded,xt=Xe.selected,Bt=Xe.checked,rn=Xe.halfChecked,Hn=Xe.loading,pn=Xe.domRef,_n=Xe.active,Lt=Xe.data,Un=Xe.onMouseMove,Gn=Xe.selectable,ui=(0,Ve.Z)(Xe,de),Ln=this.props.context,Wt=Ln.prefixCls,Vt=Ln.filterTreeNode,mt=Ln.keyEntities,Ye=Ln.dropContainerKey,Zt=Ln.dropTargetKey,Gt=Ln.draggingNodeKey,ft=this.isDisabled(),nt=(0,$e.Z)(ui,{aria:!0,data:!0}),Oe=(0,ue.Z)(mt,Ft)||{},we=Oe.level,ye=ln[ln.length-1],ke=this.isDraggable(),Ge=!ft&&ke,Fe=Gt===Ft,pt=Gn!==void 0?{"aria-selected":!!Gn}:void 0;return Qe.createElement("div",(0,pe.Z)({ref:pn,className:tt()(Ct,"".concat(Wt,"-treenode"),(Mt={},(0,Ie.Z)(Mt,"".concat(Wt,"-treenode-disabled"),ft),(0,Ie.Z)(Mt,"".concat(Wt,"-treenode-switcher-").concat(Ht?"open":"close"),!je),(0,Ie.Z)(Mt,"".concat(Wt,"-treenode-checkbox-checked"),Bt),(0,Ie.Z)(Mt,"".concat(Wt,"-treenode-checkbox-indeterminate"),rn),(0,Ie.Z)(Mt,"".concat(Wt,"-treenode-selected"),xt),(0,Ie.Z)(Mt,"".concat(Wt,"-treenode-loading"),Hn),(0,Ie.Z)(Mt,"".concat(Wt,"-treenode-active"),_n),(0,Ie.Z)(Mt,"".concat(Wt,"-treenode-leaf-last"),ye),(0,Ie.Z)(Mt,"".concat(Wt,"-treenode-draggable"),ke),(0,Ie.Z)(Mt,"dragging",Fe),(0,Ie.Z)(Mt,"drop-target",Zt===Ft),(0,Ie.Z)(Mt,"drop-container",Ye===Ft),(0,Ie.Z)(Mt,"drag-over",!ft&&It),(0,Ie.Z)(Mt,"drag-over-gap-top",!ft&&_t),(0,Ie.Z)(Mt,"drag-over-gap-bottom",!ft&<),(0,Ie.Z)(Mt,"filter-node",Vt&&Vt((0,ae.F)(this.props))),Mt)),style:Nt,draggable:Ge,"aria-grabbed":Fe,onDragStart:Ge?this.onDragStart:void 0,onDragEnter:ke?this.onDragEnter:void 0,onDragOver:ke?this.onDragOver:void 0,onDragLeave:ke?this.onDragLeave:void 0,onDrop:ke?this.onDrop:void 0,onDragEnd:ke?this.onDragEnd:void 0,onMouseMove:Un},pt,nt),Qe.createElement(te,{prefixCls:Wt,level:we,isStart:Et,isEnd:ln}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ke}(Qe.Component),Le=function(ze){return Qe.createElement(Ee.k.Consumer,null,function(Ke){return Qe.createElement(xe,(0,pe.Z)({},ze,{context:Ke}))})};Le.displayName="TreeNode",Le.isTreeNode=1;var Te=Le},39378:function(gn,zt,he){"use strict";he.d(zt,{k:function(){return Ie}});var pe=he(59301),Ie=pe.createContext(null)},99581:function(gn,zt,he){"use strict";he.d(zt,{O:function(){return Te.Z},Z:function(){return Ln}});var pe=he(5891),Ie=he(80962),Ve=he(80665),st=he(57259),We=he(26390),it=he(79545),be=he(68550),yt=he(21882),vt=he(17928),Je=he(7711),tt=he(92310),$e=he.n(tt),Qe=he(85108),Ee=he(36994),ee=he(51395),te=he(59301),ue=he(39378);function ae(Wt){var Vt=Wt.dropPosition,mt=Wt.dropLevelOffset,Ye=Wt.indent,Zt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Vt){case-1:Zt.top=0,Zt.left=-mt*Ye;break;case 1:Zt.bottom=0,Zt.left=-mt*Ye;break;case 0:Zt.bottom=0,Zt.left=Ye;break}return te.createElement("div",{style:Zt})}function de(Wt){if(Wt==null)throw new TypeError("Cannot destructure "+Wt)}var ve=he(29043),Pe=he(19149),Ae=he(28800),xe=he(21881),Le=he(43469),Te=he(39417);function He(Wt,Vt){var mt=te.useState(!1),Ye=(0,ve.Z)(mt,2),Zt=Ye[0],Gt=Ye[1];te.useLayoutEffect(function(){if(Zt)return Wt(),function(){Vt()}},[Zt]),te.useLayoutEffect(function(){return Gt(!0),function(){Gt(!1)}},[])}var ze=he(71430),Ke=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ze=function(Vt,mt){var Ye=Vt.className,Zt=Vt.style,Gt=Vt.motion,ft=Vt.motionNodes,nt=Vt.motionType,Oe=Vt.onMotionStart,we=Vt.onMotionEnd,ye=Vt.active,ke=Vt.treeNodeRequiredProps,Ge=(0,Pe.Z)(Vt,Ke),Fe=te.useState(!0),pt=(0,ve.Z)(Fe,2),tn=pt[0],en=pt[1],wt=te.useContext(ue.k),Xt=wt.prefixCls,Pn=ft&&nt!=="hide";(0,Ae.Z)(function(){ft&&Pn!==tn&&en(Pn)},[ft]);var In=function(){ft&&Oe()},$n=te.useRef(!1),Pi=function(){ft&&!$n.current&&($n.current=!0,we())};He(In,Pi);var wn=function(Vi){Pn===Vi&&Pi()};return ft?te.createElement(Le.default,(0,pe.Z)({ref:mt,visible:tn},Gt,{motionAppear:nt==="show",onVisibleChanged:wn}),function(Ai,Vi){var ur=Ai.className,sr=Ai.style;return te.createElement("div",{ref:Vi,className:$e()("".concat(Xt,"-treenode-motion"),ur),style:sr},ft.map(function(Qn){var Ci=(0,pe.Z)({},(de(Qn.data),Qn.data)),er=Qn.title,ri=Qn.key,tr=Qn.isStart,Di=Qn.isEnd;delete Ci.children;var De=(0,ze.H8)(ri,ke);return te.createElement(Te.Z,(0,pe.Z)({},Ci,De,{title:er,active:ye,data:Qn.data,key:ri,isStart:tr,isEnd:Di}))}))}):te.createElement(Te.Z,(0,pe.Z)({domRef:mt,className:Ye,style:Zt},Ge,{active:ye}))};Ze.displayName="MotionTreeNode";var Mt=te.forwardRef(Ze),Xe=Mt;function Ft(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],mt=Wt.length,Ye=Vt.length;if(Math.abs(mt-Ye)!==1)return{add:!1,key:null};function Zt(Gt,ft){var nt=new Map;Gt.forEach(function(we){nt.set(we,!0)});var Oe=ft.filter(function(we){return!nt.has(we)});return Oe.length===1?Oe[0]:null}return mt<Ye?{add:!0,key:Zt(Wt,Vt)}:{add:!1,key:Zt(Vt,Wt)}}function Ct(Wt,Vt,mt){var Ye=Wt.findIndex(function(nt){return nt.key===mt}),Zt=Wt[Ye+1],Gt=Vt.findIndex(function(nt){return nt.key===mt});if(Zt){var ft=Vt.findIndex(function(nt){return nt.key===Zt.key});return Vt.slice(Gt+1,ft)}return Vt.slice(Gt+1)}var Nt=["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"],It={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_t=function(){},lt="RC_TREE_MOTION_".concat(Math.random()),je={key:lt},Et={key:lt,level:0,index:0,pos:"0",node:je,nodes:[je]},ln={parent:null,children:[],pos:Et.pos,data:je,title:null,key:lt,isStart:[],isEnd:[]};function Ht(Wt,Vt,mt,Ye){return Vt===!1||!mt?Wt:Wt.slice(0,Math.ceil(mt/Ye)+1)}function xt(Wt){var Vt=Wt.key,mt=Wt.pos;return(0,ze.km)(Vt,mt)}function Bt(Wt){for(var Vt=String(Wt.data.key),mt=Wt;mt.parent;)mt=mt.parent,Vt="".concat(mt.data.key," > ").concat(Vt);return Vt}var rn=te.forwardRef(function(Wt,Vt){var mt=Wt.prefixCls,Ye=Wt.data,Zt=Wt.selectable,Gt=Wt.checkable,ft=Wt.expandedKeys,nt=Wt.selectedKeys,Oe=Wt.checkedKeys,we=Wt.loadedKeys,ye=Wt.loadingKeys,ke=Wt.halfCheckedKeys,Ge=Wt.keyEntities,Fe=Wt.disabled,pt=Wt.dragging,tn=Wt.dragOverNodeKey,en=Wt.dropPosition,wt=Wt.motion,Xt=Wt.height,Pn=Wt.itemHeight,In=Wt.virtual,$n=Wt.focusable,Pi=Wt.activeItem,wn=Wt.focused,Ai=Wt.tabIndex,Vi=Wt.onKeyDown,ur=Wt.onFocus,sr=Wt.onBlur,Qn=Wt.onActiveChange,Ci=Wt.onListChangeStart,er=Wt.onListChangeEnd,ri=(0,Pe.Z)(Wt,Nt),tr=te.useRef(null),Di=te.useRef(null);te.useImperativeHandle(Vt,function(){return{scrollTo:function(Nn){tr.current.scrollTo(Nn)},getIndentWidth:function(){return Di.current.offsetWidth}}});var De=te.useState(ft),Yr=(0,ve.Z)(De,2),yr=Yr[0],Dr=Yr[1],lo=te.useState(Ye),Wo=(0,ve.Z)(lo,2),No=Wo[0],ki=Wo[1],an=te.useState(Ye),nn=(0,ve.Z)(an,2),Ut=nn[0],bt=nn[1],xn=te.useState([]),hn=(0,ve.Z)(xn,2),Tt=hn[0],ot=hn[1],fn=te.useState(null),yn=(0,ve.Z)(fn,2),li=yn[0],vn=yn[1],at=te.useRef(Ye);at.current=Ye;function Bn(){var qt=at.current;ki(qt),bt(qt),ot([]),vn(null),er()}(0,Ae.Z)(function(){Dr(ft);var qt=Ft(yr,ft);if(qt.key!==null)if(qt.add){var Nn=No.findIndex(function(Zn){var Jn=Zn.key;return Jn===qt.key}),on=Ht(Ct(No,Ye,qt.key),In,Xt,Pn),Sn=No.slice();Sn.splice(Nn+1,0,ln),bt(Sn),ot(on),vn("show")}else{var Fn=Ye.findIndex(function(Zn){var Jn=Zn.key;return Jn===qt.key}),En=Ht(Ct(Ye,No,qt.key),In,Xt,Pn),kn=Ye.slice();kn.splice(Fn+1,0,ln),bt(kn),ot(En),vn("hide")}else No!==Ye&&(ki(Ye),bt(Ye))},[ft,Ye]),te.useEffect(function(){pt||Bn()},[pt]);var pi=wt?Ut:Ye,Li={expandedKeys:ft,selectedKeys:nt,loadedKeys:we,loadingKeys:ye,checkedKeys:Oe,halfCheckedKeys:ke,dragOverNodeKey:tn,dropPosition:en,keyEntities:Ge};return te.createElement(te.Fragment,null,wn&&Pi&&te.createElement("span",{style:It,"aria-live":"assertive"},Bt(Pi)),te.createElement("div",null,te.createElement("input",{style:It,disabled:$n===!1||Fe,tabIndex:$n!==!1?Ai:null,onKeyDown:Vi,onFocus:ur,onBlur:sr,value:"",onChange:_t,"aria-label":"for screen reader"})),te.createElement("div",{className:"".concat(mt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},te.createElement("div",{className:"".concat(mt,"-indent")},te.createElement("div",{ref:Di,className:"".concat(mt,"-indent-unit")}))),te.createElement(xe.Z,(0,pe.Z)({},ri,{data:pi,itemKey:xt,height:Xt,fullHeight:!1,virtual:In,itemHeight:Pn,prefixCls:"".concat(mt,"-list"),ref:tr,onVisibleChange:function(Nn,on){var Sn=new Set(Nn),Fn=on.filter(function(En){return!Sn.has(En)});Fn.some(function(En){return xt(En)===lt})&&Bn()}}),function(qt){var Nn=qt.pos,on=(0,pe.Z)({},(de(qt.data),qt.data)),Sn=qt.title,Fn=qt.key,En=qt.isStart,kn=qt.isEnd,Zn=(0,ze.km)(Fn,Nn);delete on.key,delete on.children;var Jn=(0,ze.H8)(Zn,Li);return te.createElement(Xe,(0,pe.Z)({},on,Jn,{title:Sn,active:!!Pi&&Fn===Pi.key,pos:Nn,data:qt.data,isStart:En,isEnd:kn,motion:wt,motionNodes:Fn===lt?Tt:null,motionType:li,onMotionStart:Ci,onMotionEnd:Bn,treeNodeRequiredProps:Li,onMouseMove:function(){Qn(null)}}))}))});rn.displayName="NodeList";var Hn=rn,pn=he(35654),_n=he(90782),Lt=he(67841),Un=10,Gn=function(Wt){(0,vt.Z)(mt,Wt);var Vt=(0,Je.Z)(mt);function mt(){var Ye;(0,it.Z)(this,mt);for(var Zt=arguments.length,Gt=new Array(Zt),ft=0;ft<Zt;ft++)Gt[ft]=arguments[ft];return Ye=Vt.call.apply(Vt,[this].concat(Gt)),Ye.destroyed=!1,Ye.delayedDragEnterLogic=void 0,Ye.loadingRetryTimes={},Ye.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,ze.w$)()},Ye.dragStartMousePosition=null,Ye.dragNode=void 0,Ye.currentMouseOverDroppableNodeKey=null,Ye.listRef=te.createRef(),Ye.onNodeDragStart=function(nt,Oe){var we=Ye.state,ye=we.expandedKeys,ke=we.keyEntities,Ge=Ye.props.onDragStart,Fe=Oe.props.eventKey;Ye.dragNode=Oe,Ye.dragStartMousePosition={x:nt.clientX,y:nt.clientY};var pt=(0,pn._5)(ye,Fe);Ye.setState({draggingNodeKey:Fe,dragChildrenKeys:(0,pn.wA)(Fe,ke),indent:Ye.listRef.current.getIndentWidth()}),Ye.setExpandedKeys(pt),window.addEventListener("dragend",Ye.onWindowDragEnd),Ge==null||Ge({event:nt,node:(0,ze.F)(Oe.props)})},Ye.onNodeDragEnter=function(nt,Oe){var we=Ye.state,ye=we.expandedKeys,ke=we.keyEntities,Ge=we.dragChildrenKeys,Fe=we.flattenNodes,pt=we.indent,tn=Ye.props,en=tn.onDragEnter,wt=tn.onExpand,Xt=tn.allowDrop,Pn=tn.direction,In=Oe.props,$n=In.pos,Pi=In.eventKey,wn=(0,yt.Z)(Ye),Ai=wn.dragNode;if(Ye.currentMouseOverDroppableNodeKey!==Pi&&(Ye.currentMouseOverDroppableNodeKey=Pi),!Ai){Ye.resetDragState();return}var Vi=(0,pn.OM)(nt,Ai,Oe,pt,Ye.dragStartMousePosition,Xt,Fe,ke,ye,Pn),ur=Vi.dropPosition,sr=Vi.dropLevelOffset,Qn=Vi.dropTargetKey,Ci=Vi.dropContainerKey,er=Vi.dropTargetPos,ri=Vi.dropAllowed,tr=Vi.dragOverNodeKey;if(Ge.indexOf(Qn)!==-1||!ri){Ye.resetDragState();return}if(Ye.delayedDragEnterLogic||(Ye.delayedDragEnterLogic={}),Object.keys(Ye.delayedDragEnterLogic).forEach(function(Di){clearTimeout(Ye.delayedDragEnterLogic[Di])}),Ai.props.eventKey!==Oe.props.eventKey&&(nt.persist(),Ye.delayedDragEnterLogic[$n]=window.setTimeout(function(){if(Ye.state.draggingNodeKey!==null){var Di=(0,We.Z)(ye),De=(0,Lt.Z)(ke,Oe.props.eventKey);De&&(De.children||[]).length&&(Di=(0,pn.L0)(ye,Oe.props.eventKey)),"expandedKeys"in Ye.props||Ye.setExpandedKeys(Di),wt==null||wt(Di,{node:(0,ze.F)(Oe.props),expanded:!0,nativeEvent:nt.nativeEvent})}},800)),Ai.props.eventKey===Qn&&sr===0){Ye.resetDragState();return}Ye.setState({dragOverNodeKey:tr,dropPosition:ur,dropLevelOffset:sr,dropTargetKey:Qn,dropContainerKey:Ci,dropTargetPos:er,dropAllowed:ri}),en==null||en({event:nt,node:(0,ze.F)(Oe.props),expandedKeys:ye})},Ye.onNodeDragOver=function(nt,Oe){var we=Ye.state,ye=we.dragChildrenKeys,ke=we.flattenNodes,Ge=we.keyEntities,Fe=we.expandedKeys,pt=we.indent,tn=Ye.props,en=tn.onDragOver,wt=tn.allowDrop,Xt=tn.direction,Pn=(0,yt.Z)(Ye),In=Pn.dragNode;if(In){var $n=(0,pn.OM)(nt,In,Oe,pt,Ye.dragStartMousePosition,wt,ke,Ge,Fe,Xt),Pi=$n.dropPosition,wn=$n.dropLevelOffset,Ai=$n.dropTargetKey,Vi=$n.dropContainerKey,ur=$n.dropAllowed,sr=$n.dropTargetPos,Qn=$n.dragOverNodeKey;ye.indexOf(Ai)!==-1||!ur||(In.props.eventKey===Ai&&wn===0?Ye.state.dropPosition===null&&Ye.state.dropLevelOffset===null&&Ye.state.dropTargetKey===null&&Ye.state.dropContainerKey===null&&Ye.state.dropTargetPos===null&&Ye.state.dropAllowed===!1&&Ye.state.dragOverNodeKey===null||Ye.resetDragState():Pi===Ye.state.dropPosition&&wn===Ye.state.dropLevelOffset&&Ai===Ye.state.dropTargetKey&&Vi===Ye.state.dropContainerKey&&sr===Ye.state.dropTargetPos&&ur===Ye.state.dropAllowed&&Qn===Ye.state.dragOverNodeKey||Ye.setState({dropPosition:Pi,dropLevelOffset:wn,dropTargetKey:Ai,dropContainerKey:Vi,dropTargetPos:sr,dropAllowed:ur,dragOverNodeKey:Qn}),en==null||en({event:nt,node:(0,ze.F)(Oe.props)}))}},Ye.onNodeDragLeave=function(nt,Oe){Ye.currentMouseOverDroppableNodeKey===Oe.props.eventKey&&!nt.currentTarget.contains(nt.relatedTarget)&&(Ye.resetDragState(),Ye.currentMouseOverDroppableNodeKey=null);var we=Ye.props.onDragLeave;we==null||we({event:nt,node:(0,ze.F)(Oe.props)})},Ye.onWindowDragEnd=function(nt){Ye.onNodeDragEnd(nt,null,!0),window.removeEventListener("dragend",Ye.onWindowDragEnd)},Ye.onNodeDragEnd=function(nt,Oe){var we=Ye.props.onDragEnd;Ye.setState({dragOverNodeKey:null}),Ye.cleanDragState(),we==null||we({event:nt,node:(0,ze.F)(Oe.props)}),Ye.dragNode=null,window.removeEventListener("dragend",Ye.onWindowDragEnd)},Ye.onNodeDrop=function(nt,Oe){var we,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ke=Ye.state,Ge=ke.dragChildrenKeys,Fe=ke.dropPosition,pt=ke.dropTargetKey,tn=ke.dropTargetPos,en=ke.dropAllowed;if(en){var wt=Ye.props.onDrop;if(Ye.setState({dragOverNodeKey:null}),Ye.cleanDragState(),pt!==null){var Xt=(0,st.Z)((0,st.Z)({},(0,ze.H8)(pt,Ye.getTreeNodeRequiredProps())),{},{active:((we=Ye.getActiveItem())===null||we===void 0?void 0:we.key)===pt,data:(0,Lt.Z)(Ye.state.keyEntities,pt).node}),Pn=Ge.indexOf(pt)!==-1;(0,ee.ZP)(!Pn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var In=(0,pn.yx)(tn),$n={event:nt,node:(0,ze.F)(Xt),dragNode:Ye.dragNode?(0,ze.F)(Ye.dragNode.props):null,dragNodesKeys:[Ye.dragNode.props.eventKey].concat(Ge),dropToGap:Fe!==0,dropPosition:Fe+Number(In[In.length-1])};ye||wt==null||wt($n),Ye.dragNode=null}}},Ye.cleanDragState=function(){var nt=Ye.state.draggingNodeKey;nt!==null&&Ye.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ye.dragStartMousePosition=null,Ye.currentMouseOverDroppableNodeKey=null},Ye.triggerExpandActionExpand=function(nt,Oe){var we=Ye.state,ye=we.expandedKeys,ke=we.flattenNodes,Ge=Oe.expanded,Fe=Oe.key,pt=Oe.isLeaf;if(!(pt||nt.shiftKey||nt.metaKey||nt.ctrlKey)){var tn=ke.filter(function(wt){return wt.key===Fe})[0],en=(0,ze.F)((0,st.Z)((0,st.Z)({},(0,ze.H8)(Fe,Ye.getTreeNodeRequiredProps())),{},{data:tn.data}));Ye.setExpandedKeys(Ge?(0,pn._5)(ye,Fe):(0,pn.L0)(ye,Fe)),Ye.onNodeExpand(nt,en)}},Ye.onNodeClick=function(nt,Oe){var we=Ye.props,ye=we.onClick,ke=we.expandAction;ke==="click"&&Ye.triggerExpandActionExpand(nt,Oe),ye==null||ye(nt,Oe)},Ye.onNodeDoubleClick=function(nt,Oe){var we=Ye.props,ye=we.onDoubleClick,ke=we.expandAction;ke==="doubleClick"&&Ye.triggerExpandActionExpand(nt,Oe),ye==null||ye(nt,Oe)},Ye.onNodeSelect=function(nt,Oe){var we=Ye.state.selectedKeys,ye=Ye.state,ke=ye.keyEntities,Ge=ye.fieldNames,Fe=Ye.props,pt=Fe.onSelect,tn=Fe.multiple,en=Oe.selected,wt=Oe[Ge.key],Xt=!en;Xt?tn?we=(0,pn.L0)(we,wt):we=[wt]:we=(0,pn._5)(we,wt);var Pn=we.map(function(In){var $n=(0,Lt.Z)(ke,In);return $n?$n.node:null}).filter(function(In){return In});Ye.setUncontrolledState({selectedKeys:we}),pt==null||pt(we,{event:"select",selected:Xt,node:Oe,selectedNodes:Pn,nativeEvent:nt.nativeEvent})},Ye.onNodeCheck=function(nt,Oe,we){var ye=Ye.state,ke=ye.keyEntities,Ge=ye.checkedKeys,Fe=ye.halfCheckedKeys,pt=Ye.props,tn=pt.checkStrictly,en=pt.onCheck,wt=Oe.key,Xt,Pn={event:"check",node:Oe,checked:we,nativeEvent:nt.nativeEvent};if(tn){var In=we?(0,pn.L0)(Ge,wt):(0,pn._5)(Ge,wt),$n=(0,pn._5)(Fe,wt);Xt={checked:In,halfChecked:$n},Pn.checkedNodes=In.map(function(sr){return(0,Lt.Z)(ke,sr)}).filter(function(sr){return sr}).map(function(sr){return sr.node}),Ye.setUncontrolledState({checkedKeys:In})}else{var Pi=(0,_n.S)([].concat((0,We.Z)(Ge),[wt]),!0,ke),wn=Pi.checkedKeys,Ai=Pi.halfCheckedKeys;if(!we){var Vi=new Set(wn);Vi.delete(wt);var ur=(0,_n.S)(Array.from(Vi),{checked:!1,halfCheckedKeys:Ai},ke);wn=ur.checkedKeys,Ai=ur.halfCheckedKeys}Xt=wn,Pn.checkedNodes=[],Pn.checkedNodesPositions=[],Pn.halfCheckedKeys=Ai,wn.forEach(function(sr){var Qn=(0,Lt.Z)(ke,sr);if(Qn){var Ci=Qn.node,er=Qn.pos;Pn.checkedNodes.push(Ci),Pn.checkedNodesPositions.push({node:Ci,pos:er})}}),Ye.setUncontrolledState({checkedKeys:wn},!1,{halfCheckedKeys:Ai})}en==null||en(Xt,Pn)},Ye.onNodeLoad=function(nt){var Oe=nt.key,we=new Promise(function(ye,ke){Ye.setState(function(Ge){var Fe=Ge.loadedKeys,pt=Fe===void 0?[]:Fe,tn=Ge.loadingKeys,en=tn===void 0?[]:tn,wt=Ye.props,Xt=wt.loadData,Pn=wt.onLoad;if(!Xt||pt.indexOf(Oe)!==-1||en.indexOf(Oe)!==-1)return null;var In=Xt(nt);return In.then(function(){var $n=Ye.state.loadedKeys,Pi=(0,pn.L0)($n,Oe);Pn==null||Pn(Pi,{event:"load",node:nt}),Ye.setUncontrolledState({loadedKeys:Pi}),Ye.setState(function(wn){return{loadingKeys:(0,pn._5)(wn.loadingKeys,Oe)}}),ye()}).catch(function($n){if(Ye.setState(function(wn){return{loadingKeys:(0,pn._5)(wn.loadingKeys,Oe)}}),Ye.loadingRetryTimes[Oe]=(Ye.loadingRetryTimes[Oe]||0)+1,Ye.loadingRetryTimes[Oe]>=Un){var Pi=Ye.state.loadedKeys;(0,ee.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ye.setUncontrolledState({loadedKeys:(0,pn.L0)(Pi,Oe)}),ye()}ke($n)}),{loadingKeys:(0,pn.L0)(en,Oe)}})});return we.catch(function(){}),we},Ye.onNodeMouseEnter=function(nt,Oe){var we=Ye.props.onMouseEnter;we==null||we({event:nt,node:Oe})},Ye.onNodeMouseLeave=function(nt,Oe){var we=Ye.props.onMouseLeave;we==null||we({event:nt,node:Oe})},Ye.onNodeContextMenu=function(nt,Oe){var we=Ye.props.onRightClick;we&&(nt.preventDefault(),we({event:nt,node:Oe}))},Ye.onFocus=function(){var nt=Ye.props.onFocus;Ye.setState({focused:!0});for(var Oe=arguments.length,we=new Array(Oe),ye=0;ye<Oe;ye++)we[ye]=arguments[ye];nt==null||nt.apply(void 0,we)},Ye.onBlur=function(){var nt=Ye.props.onBlur;Ye.setState({focused:!1}),Ye.onActiveChange(null);for(var Oe=arguments.length,we=new Array(Oe),ye=0;ye<Oe;ye++)we[ye]=arguments[ye];nt==null||nt.apply(void 0,we)},Ye.getTreeNodeRequiredProps=function(){var nt=Ye.state,Oe=nt.expandedKeys,we=nt.selectedKeys,ye=nt.loadedKeys,ke=nt.loadingKeys,Ge=nt.checkedKeys,Fe=nt.halfCheckedKeys,pt=nt.dragOverNodeKey,tn=nt.dropPosition,en=nt.keyEntities;return{expandedKeys:Oe||[],selectedKeys:we||[],loadedKeys:ye||[],loadingKeys:ke||[],checkedKeys:Ge||[],halfCheckedKeys:Fe||[],dragOverNodeKey:pt,dropPosition:tn,keyEntities:en}},Ye.setExpandedKeys=function(nt){var Oe=Ye.state,we=Oe.treeData,ye=Oe.fieldNames,ke=(0,ze.oH)(we,nt,ye);Ye.setUncontrolledState({expandedKeys:nt,flattenNodes:ke},!0)},Ye.onNodeExpand=function(nt,Oe){var we=Ye.state.expandedKeys,ye=Ye.state,ke=ye.listChanging,Ge=ye.fieldNames,Fe=Ye.props,pt=Fe.onExpand,tn=Fe.loadData,en=Oe.expanded,wt=Oe[Ge.key];if(!ke){var Xt=we.indexOf(wt),Pn=!en;if((0,ee.ZP)(en&&Xt!==-1||!en&&Xt===-1,"Expand state not sync with index check"),Pn?we=(0,pn.L0)(we,wt):we=(0,pn._5)(we,wt),Ye.setExpandedKeys(we),pt==null||pt(we,{node:Oe,expanded:Pn,nativeEvent:nt.nativeEvent}),Pn&&tn){var In=Ye.onNodeLoad(Oe);In&&In.then(function(){var $n=(0,ze.oH)(Ye.state.treeData,we,Ge);Ye.setUncontrolledState({flattenNodes:$n})}).catch(function(){var $n=Ye.state.expandedKeys,Pi=(0,pn._5)($n,wt);Ye.setExpandedKeys(Pi)})}}},Ye.onListChangeStart=function(){Ye.setUncontrolledState({listChanging:!0})},Ye.onListChangeEnd=function(){setTimeout(function(){Ye.setUncontrolledState({listChanging:!1})})},Ye.onActiveChange=function(nt){var Oe=Ye.state.activeKey,we=Ye.props.onActiveChange;Oe!==nt&&(Ye.setState({activeKey:nt}),nt!==null&&Ye.scrollTo({key:nt}),we==null||we(nt))},Ye.getActiveItem=function(){var nt=Ye.state,Oe=nt.activeKey,we=nt.flattenNodes;return Oe===null?null:we.find(function(ye){var ke=ye.key;return ke===Oe})||null},Ye.offsetActiveKey=function(nt){var Oe=Ye.state,we=Oe.flattenNodes,ye=Oe.activeKey,ke=we.findIndex(function(pt){var tn=pt.key;return tn===ye});ke===-1&&nt<0&&(ke=we.length),ke=(ke+nt+we.length)%we.length;var Ge=we[ke];if(Ge){var Fe=Ge.key;Ye.onActiveChange(Fe)}else Ye.onActiveChange(null)},Ye.onKeyDown=function(nt){var Oe=Ye.state,we=Oe.activeKey,ye=Oe.expandedKeys,ke=Oe.checkedKeys,Ge=Oe.fieldNames,Fe=Ye.props,pt=Fe.onKeyDown,tn=Fe.checkable,en=Fe.selectable;switch(nt.which){case Qe.Z.UP:{Ye.offsetActiveKey(-1),nt.preventDefault();break}case Qe.Z.DOWN:{Ye.offsetActiveKey(1),nt.preventDefault();break}}var wt=Ye.getActiveItem();if(wt&&wt.data){var Xt=Ye.getTreeNodeRequiredProps(),Pn=wt.data.isLeaf===!1||!!(wt.data[Ge.children]||[]).length,In=(0,ze.F)((0,st.Z)((0,st.Z)({},(0,ze.H8)(we,Xt)),{},{data:wt.data,active:!0}));switch(nt.which){case Qe.Z.LEFT:{Pn&&ye.includes(we)?Ye.onNodeExpand({},In):wt.parent&&Ye.onActiveChange(wt.parent.key),nt.preventDefault();break}case Qe.Z.RIGHT:{Pn&&!ye.includes(we)?Ye.onNodeExpand({},In):wt.children&&wt.children.length&&Ye.onActiveChange(wt.children[0].key),nt.preventDefault();break}case Qe.Z.ENTER:case Qe.Z.SPACE:{tn&&!In.disabled&&In.checkable!==!1&&!In.disableCheckbox?Ye.onNodeCheck({},In,!ke.includes(we)):!tn&&en&&!In.disabled&&In.selectable!==!1&&Ye.onNodeSelect({},In);break}}}pt==null||pt(nt)},Ye.setUncontrolledState=function(nt){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ye.destroyed){var ye=!1,ke=!0,Ge={};Object.keys(nt).forEach(function(Fe){if(Fe in Ye.props){ke=!1;return}ye=!0,Ge[Fe]=nt[Fe]}),ye&&(!Oe||ke)&&Ye.setState((0,st.Z)((0,st.Z)({},Ge),we))}},Ye.scrollTo=function(nt){Ye.listRef.current.scrollTo(nt)},Ye}return(0,be.Z)(mt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Zt=this.props.activeKey;Zt!==void 0&&Zt!==this.state.activeKey&&(this.setState({activeKey:Zt}),Zt!==null&&this.scrollTo({key:Zt}))}},{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 Zt,Gt=this.state,ft=Gt.focused,nt=Gt.flattenNodes,Oe=Gt.keyEntities,we=Gt.draggingNodeKey,ye=Gt.activeKey,ke=Gt.dropLevelOffset,Ge=Gt.dropContainerKey,Fe=Gt.dropTargetKey,pt=Gt.dropPosition,tn=Gt.dragOverNodeKey,en=Gt.indent,wt=this.props,Xt=wt.prefixCls,Pn=wt.className,In=wt.style,$n=wt.showLine,Pi=wt.focusable,wn=wt.tabIndex,Ai=wn===void 0?0:wn,Vi=wt.selectable,ur=wt.showIcon,sr=wt.icon,Qn=wt.switcherIcon,Ci=wt.draggable,er=wt.checkable,ri=wt.checkStrictly,tr=wt.disabled,Di=wt.motion,De=wt.loadData,Yr=wt.filterTreeNode,yr=wt.height,Dr=wt.itemHeight,lo=wt.virtual,Wo=wt.titleRender,No=wt.dropIndicatorRender,ki=wt.onContextMenu,an=wt.onScroll,nn=wt.direction,Ut=wt.rootClassName,bt=wt.rootStyle,xn=(0,Ee.Z)(this.props,{aria:!0,data:!0}),hn;return Ci&&((0,Ve.Z)(Ci)==="object"?hn=Ci:typeof Ci=="function"?hn={nodeDraggable:Ci}:hn={}),te.createElement(ue.k.Provider,{value:{prefixCls:Xt,selectable:Vi,showIcon:ur,icon:sr,switcherIcon:Qn,draggable:hn,draggingNodeKey:we,checkable:er,checkStrictly:ri,disabled:tr,keyEntities:Oe,dropLevelOffset:ke,dropContainerKey:Ge,dropTargetKey:Fe,dropPosition:pt,dragOverNodeKey:tn,indent:en,direction:nn,dropIndicatorRender:No,loadData:De,filterTreeNode:Yr,titleRender:Wo,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}},te.createElement("div",{role:"tree",className:$e()(Xt,Pn,Ut,(Zt={},(0,Ie.Z)(Zt,"".concat(Xt,"-show-line"),$n),(0,Ie.Z)(Zt,"".concat(Xt,"-focused"),ft),(0,Ie.Z)(Zt,"".concat(Xt,"-active-focused"),ye!==null),Zt)),style:bt},te.createElement(Hn,(0,pe.Z)({ref:this.listRef,prefixCls:Xt,style:In,data:nt,disabled:tr,selectable:Vi,checkable:!!er,motion:Di,dragging:we!==null,height:yr,itemHeight:Dr,virtual:lo,focusable:Pi,focused:ft,tabIndex:Ai,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ki,onScroll:an},this.getTreeNodeRequiredProps(),xn))))}}],[{key:"getDerivedStateFromProps",value:function(Zt,Gt){var ft=Gt.prevProps,nt={prevProps:Zt};function Oe(Pi){return!ft&&Pi in Zt||ft&&ft[Pi]!==Zt[Pi]}var we,ye=Gt.fieldNames;if(Oe("fieldNames")&&(ye=(0,ze.w$)(Zt.fieldNames),nt.fieldNames=ye),Oe("treeData")?we=Zt.treeData:Oe("children")&&((0,ee.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,ze.zn)(Zt.children)),we){nt.treeData=we;var ke=(0,ze.I8)(we,{fieldNames:ye});nt.keyEntities=(0,st.Z)((0,Ie.Z)({},lt,Et),ke.keyEntities)}var Ge=nt.keyEntities||Gt.keyEntities;if(Oe("expandedKeys")||ft&&Oe("autoExpandParent"))nt.expandedKeys=Zt.autoExpandParent||!ft&&Zt.defaultExpandParent?(0,pn.r7)(Zt.expandedKeys,Ge):Zt.expandedKeys;else if(!ft&&Zt.defaultExpandAll){var Fe=(0,st.Z)({},Ge);delete Fe[lt],nt.expandedKeys=Object.keys(Fe).map(function(Pi){return Fe[Pi].key})}else!ft&&Zt.defaultExpandedKeys&&(nt.expandedKeys=Zt.autoExpandParent||Zt.defaultExpandParent?(0,pn.r7)(Zt.defaultExpandedKeys,Ge):Zt.defaultExpandedKeys);if(nt.expandedKeys||delete nt.expandedKeys,we||nt.expandedKeys){var pt=(0,ze.oH)(we||Gt.treeData,nt.expandedKeys||Gt.expandedKeys,ye);nt.flattenNodes=pt}if(Zt.selectable&&(Oe("selectedKeys")?nt.selectedKeys=(0,pn.BT)(Zt.selectedKeys,Zt):!ft&&Zt.defaultSelectedKeys&&(nt.selectedKeys=(0,pn.BT)(Zt.defaultSelectedKeys,Zt))),Zt.checkable){var tn;if(Oe("checkedKeys")?tn=(0,pn.E6)(Zt.checkedKeys)||{}:!ft&&Zt.defaultCheckedKeys?tn=(0,pn.E6)(Zt.defaultCheckedKeys)||{}:we&&(tn=(0,pn.E6)(Zt.checkedKeys)||{checkedKeys:Gt.checkedKeys,halfCheckedKeys:Gt.halfCheckedKeys}),tn){var en=tn,wt=en.checkedKeys,Xt=wt===void 0?[]:wt,Pn=en.halfCheckedKeys,In=Pn===void 0?[]:Pn;if(!Zt.checkStrictly){var $n=(0,_n.S)(Xt,!0,Ge);Xt=$n.checkedKeys,In=$n.halfCheckedKeys}nt.checkedKeys=Xt,nt.halfCheckedKeys=In}}return Oe("loadedKeys")&&(nt.loadedKeys=Zt.loadedKeys),nt}}]),mt}(te.Component);Gn.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:ae,allowDrop:function(){return!0},expandAction:!1},Gn.TreeNode=Te.Z;var ui=Gn,Ln=ui},35654:function(gn,zt,he){"use strict";he.d(zt,{BT:function(){return te},E6:function(){return de},L0:function(){return Je},OM:function(){return ee},_5:function(){return vt},r7:function(){return ve},wA:function(){return $e},yx:function(){return tt}});var pe=he(26390),Ie=he(80665),Ve=he(51395),st=he(59301),We=he(39417),it=he(67841),be=he(71430),yt=null;function vt(Pe,Ae){if(!Pe)return[];var xe=Pe.slice(),Le=xe.indexOf(Ae);return Le>=0&&xe.splice(Le,1),xe}function Je(Pe,Ae){var xe=(Pe||[]).slice();return xe.indexOf(Ae)===-1&&xe.push(Ae),xe}function tt(Pe){return Pe.split("-")}function $e(Pe,Ae){var xe=[],Le=(0,it.Z)(Ae,Pe);function Te(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];He.forEach(function(ze){var Ke=ze.key,Ze=ze.children;xe.push(Ke),Te(Ze)})}return Te(Le.children),xe}function Qe(Pe){if(Pe.parent){var Ae=tt(Pe.pos);return Number(Ae[Ae.length-1])===Pe.parent.children.length-1}return!1}function Ee(Pe){var Ae=tt(Pe.pos);return Number(Ae[Ae.length-1])===0}function ee(Pe,Ae,xe,Le,Te,He,ze,Ke,Ze,Mt){var Xe,Ft=Pe.clientX,Ct=Pe.clientY,Nt=Pe.target.getBoundingClientRect(),It=Nt.top,_t=Nt.height,lt=(Mt==="rtl"?-1:1)*(((Te==null?void 0:Te.x)||0)-Ft),je=(lt-12)/Le,Et=(0,it.Z)(Ke,xe.props.eventKey);if(Ct<It+_t/2){var ln=ze.findIndex(function(Ln){return Ln.key===Et.key}),Ht=ln<=0?0:ln-1,xt=ze[Ht].key;Et=(0,it.Z)(Ke,xt)}var Bt=Et.key,rn=Et,Hn=Et.key,pn=0,_n=0;if(!Ze.includes(Bt))for(var Lt=0;Lt<je&&Qe(Et);Lt+=1)Et=Et.parent,_n+=1;var Un=Ae.props.data,Gn=Et.node,ui=!0;return Ee(Et)&&Et.level===0&&Ct<It+_t/2&&He({dragNode:Un,dropNode:Gn,dropPosition:-1})&&Et.key===xe.props.eventKey?pn=-1:(rn.children||[]).length&&Ze.includes(Hn)?He({dragNode:Un,dropNode:Gn,dropPosition:0})?pn=0:ui=!1:_n===0?je>-1.5?He({dragNode:Un,dropNode:Gn,dropPosition:1})?pn=1:ui=!1:He({dragNode:Un,dropNode:Gn,dropPosition:0})?pn=0:He({dragNode:Un,dropNode:Gn,dropPosition:1})?pn=1:ui=!1:He({dragNode:Un,dropNode:Gn,dropPosition:1})?pn=1:ui=!1,{dropPosition:pn,dropLevelOffset:_n,dropTargetKey:Et.key,dropTargetPos:Et.pos,dragOverNodeKey:Hn,dropContainerKey:pn===0?null:((Xe=Et.parent)===null||Xe===void 0?void 0:Xe.key)||null,dropAllowed:ui}}function te(Pe,Ae){if(Pe){var xe=Ae.multiple;return xe?Pe.slice():Pe.length?[Pe[0]]:Pe}}var ue=function(Ae){return Ae};function ae(Pe,Ae){if(!Pe)return[];var xe=Ae||{},Le=xe.processProps,Te=Le===void 0?ue:Le,He=Array.isArray(Pe)?Pe:[Pe];return He.map(function(ze){var Ke=ze.children,Ze=_objectWithoutProperties(ze,yt),Mt=ae(Ke,Ae);return React.createElement(TreeNode,_extends({key:Ze.key},Te(Ze)),Mt)})}function de(Pe){if(!Pe)return null;var Ae;if(Array.isArray(Pe))Ae={checkedKeys:Pe,halfCheckedKeys:void 0};else if((0,Ie.Z)(Pe)==="object")Ae={checkedKeys:Pe.checked||void 0,halfCheckedKeys:Pe.halfChecked||void 0};else return(0,Ve.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function ve(Pe,Ae){var xe=new Set;function Le(Te){if(!xe.has(Te)){var He=(0,it.Z)(Ae,Te);if(He){xe.add(Te);var ze=He.parent,Ke=He.node;Ke.disabled||ze&&Le(ze.key)}}}return(Pe||[]).forEach(function(Te){Le(Te)}),(0,pe.Z)(xe)}},90782:function(gn,zt,he){"use strict";he.d(zt,{S:function(){return be}});var pe=he(51395),Ie=he(67841);function Ve(yt,vt){var Je=new Set;return yt.forEach(function(tt){vt.has(tt)||Je.add(tt)}),Je}function st(yt){var vt=yt||{},Je=vt.disabled,tt=vt.disableCheckbox,$e=vt.checkable;return!!(Je||tt)||$e===!1}function We(yt,vt,Je,tt){for(var $e=new Set(yt),Qe=new Set,Ee=0;Ee<=Je;Ee+=1){var ee=vt.get(Ee)||new Set;ee.forEach(function(de){var ve=de.key,Pe=de.node,Ae=de.children,xe=Ae===void 0?[]:Ae;$e.has(ve)&&!tt(Pe)&&xe.filter(function(Le){return!tt(Le.node)}).forEach(function(Le){$e.add(Le.key)})})}for(var te=new Set,ue=Je;ue>=0;ue-=1){var ae=vt.get(ue)||new Set;ae.forEach(function(de){var ve=de.parent,Pe=de.node;if(!(tt(Pe)||!de.parent||te.has(de.parent.key))){if(tt(de.parent.node)){te.add(ve.key);return}var Ae=!0,xe=!1;(ve.children||[]).filter(function(Le){return!tt(Le.node)}).forEach(function(Le){var Te=Le.key,He=$e.has(Te);Ae&&!He&&(Ae=!1),!xe&&(He||Qe.has(Te))&&(xe=!0)}),Ae&&$e.add(ve.key),xe&&Qe.add(ve.key),te.add(ve.key)}})}return{checkedKeys:Array.from($e),halfCheckedKeys:Array.from(Ve(Qe,$e))}}function it(yt,vt,Je,tt,$e){for(var Qe=new Set(yt),Ee=new Set(vt),ee=0;ee<=tt;ee+=1){var te=Je.get(ee)||new Set;te.forEach(function(ve){var Pe=ve.key,Ae=ve.node,xe=ve.children,Le=xe===void 0?[]:xe;!Qe.has(Pe)&&!Ee.has(Pe)&&!$e(Ae)&&Le.filter(function(Te){return!$e(Te.node)}).forEach(function(Te){Qe.delete(Te.key)})})}Ee=new Set;for(var ue=new Set,ae=tt;ae>=0;ae-=1){var de=Je.get(ae)||new Set;de.forEach(function(ve){var Pe=ve.parent,Ae=ve.node;if(!($e(Ae)||!ve.parent||ue.has(ve.parent.key))){if($e(ve.parent.node)){ue.add(Pe.key);return}var xe=!0,Le=!1;(Pe.children||[]).filter(function(Te){return!$e(Te.node)}).forEach(function(Te){var He=Te.key,ze=Qe.has(He);xe&&!ze&&(xe=!1),!Le&&(ze||Ee.has(He))&&(Le=!0)}),xe||Qe.delete(Pe.key),Le&&Ee.add(Pe.key),ue.add(Pe.key)}})}return{checkedKeys:Array.from(Qe),halfCheckedKeys:Array.from(Ve(Ee,Qe))}}function be(yt,vt,Je,tt){var $e=[],Qe;tt?Qe=tt:Qe=st;var Ee=new Set(yt.filter(function(ae){var de=!!(0,Ie.Z)(Je,ae);return de||$e.push(ae),de})),ee=new Map,te=0;Object.keys(Je).forEach(function(ae){var de=Je[ae],ve=de.level,Pe=ee.get(ve);Pe||(Pe=new Set,ee.set(ve,Pe)),Pe.add(de),te=Math.max(te,ve)}),(0,pe.ZP)(!$e.length,"Tree missing follow keys: ".concat($e.slice(0,100).map(function(ae){return"'".concat(ae,"'")}).join(", ")));var ue;return vt===!0?ue=We(Ee,ee,te,Qe):ue=it(Ee,vt.halfCheckedKeys,ee,te,Qe),ue}},67841:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return pe}});function pe(Ie,Ve){return Ie[Ve]}},71430:function(gn,zt,he){"use strict";he.d(zt,{F:function(){return ve},H8:function(){return de},I8:function(){return ae},km:function(){return $e},oH:function(){return te},w$:function(){return Qe},zn:function(){return ee}});var pe=he(80665),Ie=he(26390),Ve=he(57259),st=he(19149),We=he(38298),it=he(64002),be=he(51395),yt=he(67841),vt=["children"];function Je(Pe,Ae){return"".concat(Pe,"-").concat(Ae)}function tt(Pe){return Pe&&Pe.type&&Pe.type.isTreeNode}function $e(Pe,Ae){return Pe!=null?Pe:Ae}function Qe(Pe){var Ae=Pe||{},xe=Ae.title,Le=Ae._title,Te=Ae.key,He=Ae.children,ze=xe||"title";return{title:ze,_title:Le||[ze],key:Te||"key",children:He||"children"}}function Ee(Pe,Ae){var xe=new Map;function Le(Te){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Te||[]).forEach(function(ze){var Ke=ze[Ae.key],Ze=ze[Ae.children];warning(Ke!=null,"Tree node must have a certain key: [".concat(He).concat(Ke,"]"));var Mt=String(Ke);warning(!xe.has(Mt)||Ke===null||Ke===void 0,"Same 'key' exist in the Tree: ".concat(Mt)),xe.set(Mt,!0),Le(Ze,"".concat(He).concat(Mt," > "))})}Le(Pe)}function ee(Pe){function Ae(xe){var Le=(0,We.Z)(xe);return Le.map(function(Te){if(!tt(Te))return(0,be.ZP)(!Te,"Tree/TreeNode can only accept TreeNode as children."),null;var He=Te.key,ze=Te.props,Ke=ze.children,Ze=(0,st.Z)(ze,vt),Mt=(0,Ve.Z)({key:He},Ze),Xe=Ae(Ke);return Xe.length&&(Mt.children=Xe),Mt}).filter(function(Te){return Te})}return Ae(Pe)}function te(Pe,Ae,xe){var Le=Qe(xe),Te=Le._title,He=Le.key,ze=Le.children,Ke=new Set(Ae===!0?[]:Ae),Ze=[];function Mt(Xe){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Xe.map(function(Ct,Nt){for(var It=Je(Ft?Ft.pos:"0",Nt),_t=$e(Ct[He],It),lt,je=0;je<Te.length;je+=1){var Et=Te[je];if(Ct[Et]!==void 0){lt=Ct[Et];break}}var ln=(0,Ve.Z)((0,Ve.Z)({},(0,it.Z)(Ct,[].concat((0,Ie.Z)(Te),[He,ze]))),{},{title:lt,key:_t,parent:Ft,pos:It,children:null,data:Ct,isStart:[].concat((0,Ie.Z)(Ft?Ft.isStart:[]),[Nt===0]),isEnd:[].concat((0,Ie.Z)(Ft?Ft.isEnd:[]),[Nt===Xe.length-1])});return Ze.push(ln),Ae===!0||Ke.has(_t)?ln.children=Mt(Ct[ze]||[],ln):ln.children=[],ln})}return Mt(Pe),Ze}function ue(Pe,Ae,xe){var Le={};(0,pe.Z)(xe)==="object"?Le=xe:Le={externalGetKey:xe},Le=Le||{};var Te=Le,He=Te.childrenPropName,ze=Te.externalGetKey,Ke=Te.fieldNames,Ze=Qe(Ke),Mt=Ze.key,Xe=Ze.children,Ft=He||Xe,Ct;ze?typeof ze=="string"?Ct=function(_t){return _t[ze]}:typeof ze=="function"&&(Ct=function(_t){return ze(_t)}):Ct=function(_t,lt){return $e(_t[Mt],lt)};function Nt(It,_t,lt,je){var Et=It?It[Ft]:Pe,ln=It?Je(lt.pos,_t):"0",Ht=It?[].concat((0,Ie.Z)(je),[It]):[];if(It){var xt=Ct(It,ln),Bt={node:It,index:_t,pos:ln,key:xt,parentPos:lt.node?lt.pos:null,level:lt.level+1,nodes:Ht};Ae(Bt)}Et&&Et.forEach(function(rn,Hn){Nt(rn,Hn,{node:It,pos:ln,level:lt?lt.level+1:-1},Ht)})}Nt(null)}function ae(Pe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe=Ae.initWrapper,Le=Ae.processEntity,Te=Ae.onProcessFinished,He=Ae.externalGetKey,ze=Ae.childrenPropName,Ke=Ae.fieldNames,Ze=arguments.length>2?arguments[2]:void 0,Mt=He||Ze,Xe={},Ft={},Ct={posEntities:Xe,keyEntities:Ft};return xe&&(Ct=xe(Ct)||Ct),ue(Pe,function(Nt){var It=Nt.node,_t=Nt.index,lt=Nt.pos,je=Nt.key,Et=Nt.parentPos,ln=Nt.level,Ht=Nt.nodes,xt={node:It,nodes:Ht,index:_t,key:je,pos:lt,level:ln},Bt=$e(je,lt);Xe[lt]=xt,Ft[Bt]=xt,xt.parent=Xe[Et],xt.parent&&(xt.parent.children=xt.parent.children||[],xt.parent.children.push(xt)),Le&&Le(xt,Ct)},{externalGetKey:Mt,childrenPropName:ze,fieldNames:Ke}),Te&&Te(Ct),Ct}function de(Pe,Ae){var xe=Ae.expandedKeys,Le=Ae.selectedKeys,Te=Ae.loadedKeys,He=Ae.loadingKeys,ze=Ae.checkedKeys,Ke=Ae.halfCheckedKeys,Ze=Ae.dragOverNodeKey,Mt=Ae.dropPosition,Xe=Ae.keyEntities,Ft=(0,yt.Z)(Xe,Pe),Ct={eventKey:Pe,expanded:xe.indexOf(Pe)!==-1,selected:Le.indexOf(Pe)!==-1,loaded:Te.indexOf(Pe)!==-1,loading:He.indexOf(Pe)!==-1,checked:ze.indexOf(Pe)!==-1,halfChecked:Ke.indexOf(Pe)!==-1,pos:String(Ft?Ft.pos:""),dragOver:Ze===Pe&&Mt===0,dragOverGapTop:Ze===Pe&&Mt===-1,dragOverGapBottom:Ze===Pe&&Mt===1};return Ct}function ve(Pe){var Ae=Pe.data,xe=Pe.expanded,Le=Pe.selected,Te=Pe.checked,He=Pe.loaded,ze=Pe.loading,Ke=Pe.halfChecked,Ze=Pe.dragOver,Mt=Pe.dragOverGapTop,Xe=Pe.dragOverGapBottom,Ft=Pe.pos,Ct=Pe.active,Nt=Pe.eventKey,It=(0,Ve.Z)((0,Ve.Z)({},Ae),{},{expanded:xe,selected:Le,checked:Te,loaded:He,loading:ze,halfChecked:Ke,dragOver:Ze,dragOverGapTop:Mt,dragOverGapBottom:Xe,pos:Ft,active:Ct,key:Nt});return"props"in It||Object.defineProperty(It,"props",{get:function(){return(0,be.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Pe}}),It}},8178:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return Ie}});var pe=he(4676);function Ie(Ve,st,We,it){var be=pe.unstable_batchedUpdates?function(vt){pe.unstable_batchedUpdates(We,vt)}:We;return Ve!=null&&Ve.addEventListener&&Ve.addEventListener(st,be,it),{remove:function(){Ve!=null&&Ve.removeEventListener&&Ve.removeEventListener(st,be,it)}}}},21783:function(gn,zt,he){"use strict";he.d(zt,{g1:function(){return tt},os:function(){return Qe}});var pe=/margin|padding|width|height|max|min|offset/,Ie={left:!0,top:!0},Ve={cssFloat:1,styleFloat:1,float:1};function st(Ee){return Ee.nodeType===1?Ee.ownerDocument.defaultView.getComputedStyle(Ee,null):{}}function We(Ee,ee,te){if(ee=ee.toLowerCase(),te==="auto"){if(ee==="height")return Ee.offsetHeight;if(ee==="width")return Ee.offsetWidth}return ee in Ie||(Ie[ee]=pe.test(ee)),Ie[ee]?parseFloat(te)||0:te}function it(Ee,ee){var te=arguments.length,ue=st(Ee);return ee=Ve[ee]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":ee,te===1?ue:We(Ee,ee,ue[ee]||Ee.style[ee])}function be(Ee,ee,te){var ue=arguments.length;if(ee=Ve[ee]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":ee,ue===3)return typeof te=="number"&&pe.test(ee)&&(te="".concat(te,"px")),Ee.style[ee]=te,te;for(var ae in ee)ee.hasOwnProperty(ae)&&be(Ee,ae,ee[ae]);return st(Ee)}function yt(Ee){return Ee===document.body?document.documentElement.clientWidth:Ee.offsetWidth}function vt(Ee){return Ee===document.body?window.innerHeight||document.documentElement.clientHeight:Ee.offsetHeight}function Je(){var Ee=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ee=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ee,height:ee}}function tt(){var Ee=document.documentElement.clientWidth,ee=window.innerHeight||document.documentElement.clientHeight;return{width:Ee,height:ee}}function $e(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Qe(Ee){var ee=Ee.getBoundingClientRect(),te=document.documentElement;return{left:ee.left+(window.pageXOffset||te.scrollLeft)-(te.clientLeft||document.body.clientLeft||0),top:ee.top+(window.pageYOffset||te.scrollTop)-(te.clientTop||document.body.clientTop||0)}}},24387:function(gn,zt,he){"use strict";he.d(zt,{G:function(){return st}});var pe=he(87746),Ie=function(it){if((0,pe.Z)()&&window.document.documentElement){var be=Array.isArray(it)?it:[it],yt=window.document.documentElement;return be.some(function(vt){return vt in yt.style})}return!1},Ve=function(it,be){if(!Ie(it))return!1;var yt=document.createElement("div"),vt=yt.style[it];return yt.style[it]=be,yt.style[it]!==vt};function st(We,it){return!Array.isArray(We)&&it!==void 0?Ve(We,it):Ie(We)}},21881:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return ui}});var pe=he(5891),Ie=he(80665),Ve=he(57259),st=he(80962),We=he(29043),it=he(19149),be=he(92310),yt=he.n(be),vt=he(29301),Je=he(80764),tt=he(28800),$e=he(59301),Qe=he(4676),Ee=$e.forwardRef(function(Ln,Wt){var Vt=Ln.height,mt=Ln.offsetY,Ye=Ln.offsetX,Zt=Ln.children,Gt=Ln.prefixCls,ft=Ln.onInnerResize,nt=Ln.innerProps,Oe=Ln.rtl,we=Ln.extra,ye={},ke={display:"flex",flexDirection:"column"};return mt!==void 0&&(ye={height:Vt,position:"relative",overflow:"hidden"},ke=(0,Ve.Z)((0,Ve.Z)({},ke),{},(0,st.Z)((0,st.Z)((0,st.Z)((0,st.Z)((0,st.Z)({transform:"translateY(".concat(mt,"px)")},Oe?"marginRight":"marginLeft",-Ye),"position","absolute"),"left",0),"right",0),"top",0))),$e.createElement("div",{style:ye},$e.createElement(vt.Z,{onResize:function(Fe){var pt=Fe.offsetHeight;pt&&ft&&ft()}},$e.createElement("div",(0,pe.Z)({style:ke,className:yt()((0,st.Z)({},"".concat(Gt,"-holder-inner"),Gt)),ref:Wt},nt),Zt,we)))});Ee.displayName="Filler";var ee=Ee;function te(Ln){var Wt=Ln.children,Vt=Ln.setRef,mt=$e.useCallback(function(Ye){Vt(Ye)},[]);return $e.cloneElement(Wt,{ref:mt})}function ue(Ln,Wt,Vt,mt,Ye,Zt,Gt,ft){var nt=ft.getKey;return Ln.slice(Wt,Vt+1).map(function(Oe,we){var ye=Wt+we,ke=Gt(Oe,ye,{style:{width:mt},offsetX:Ye}),Ge=nt(Oe);return $e.createElement(te,{key:Ge,setRef:function(pt){return Zt(Oe,pt)}},ke)})}function ae(Ln,Wt,Vt,mt){var Ye=Vt-Ln,Zt=Wt-Vt,Gt=Math.min(Ye,Zt)*2;if(mt<=Gt){var ft=Math.floor(mt/2);return mt%2?Vt+ft+1:Vt-ft}return Ye>Zt?Vt-(mt-Zt):Vt+(mt-Ye)}function de(Ln,Wt,Vt){var mt=Ln.length,Ye=Wt.length,Zt,Gt;if(mt===0&&Ye===0)return null;mt<Ye?(Zt=Ln,Gt=Wt):(Zt=Wt,Gt=Ln);var ft={__EMPTY_ITEM__:!0};function nt(Fe){return Fe!==void 0?Vt(Fe):ft}for(var Oe=null,we=Math.abs(mt-Ye)!==1,ye=0;ye<Gt.length;ye+=1){var ke=nt(Zt[ye]),Ge=nt(Gt[ye]);if(ke!==Ge){Oe=ye,we=we||ke!==nt(Gt[ye+1]);break}}return Oe===null?null:{index:Oe,multiple:we}}function ve(Ln,Wt,Vt){var mt=$e.useState(Ln),Ye=(0,We.Z)(mt,2),Zt=Ye[0],Gt=Ye[1],ft=$e.useState(null),nt=(0,We.Z)(ft,2),Oe=nt[0],we=nt[1];return $e.useEffect(function(){var ye=de(Zt||[],Ln||[],Wt);(ye==null?void 0:ye.index)!==void 0&&(Vt==null||Vt(ye.index),we(Ln[ye.index])),Gt(Ln)},[Ln]),[Oe]}var Pe=he(23073),Ae=(typeof navigator=="undefined"?"undefined":(0,Ie.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),xe=Ae,Le=function(Ln,Wt,Vt,mt){var Ye=(0,$e.useRef)(!1),Zt=(0,$e.useRef)(null);function Gt(){clearTimeout(Zt.current),Ye.current=!0,Zt.current=setTimeout(function(){Ye.current=!1},50)}var ft=(0,$e.useRef)({top:Ln,bottom:Wt,left:Vt,right:mt});return ft.current.top=Ln,ft.current.bottom=Wt,ft.current.left=Vt,ft.current.right=mt,function(nt,Oe){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ye=nt?Oe<0&&ft.current.left||Oe>0&&ft.current.right:Oe<0&&ft.current.top||Oe>0&&ft.current.bottom;return we&&ye?(clearTimeout(Zt.current),Ye.current=!1):(!ye||Ye.current)&&Gt(),!Ye.current&&ye}};function Te(Ln,Wt,Vt,mt,Ye,Zt,Gt){var ft=(0,$e.useRef)(0),nt=(0,$e.useRef)(null),Oe=(0,$e.useRef)(null),we=(0,$e.useRef)(!1),ye=Le(Wt,Vt,mt,Ye);function ke(wt,Xt){if(Pe.Z.cancel(nt.current),!ye(!1,Xt)){var Pn=wt;if(!Pn._virtualHandled)Pn._virtualHandled=!0;else return;ft.current+=Xt,Oe.current=Xt,xe||Pn.preventDefault(),nt.current=(0,Pe.Z)(function(){var In=we.current?10:1;Gt(ft.current*In,!1),ft.current=0})}}function Ge(wt,Xt){Gt(Xt,!0),xe||wt.preventDefault()}var Fe=(0,$e.useRef)(null),pt=(0,$e.useRef)(null);function tn(wt){if(Ln){Pe.Z.cancel(pt.current),pt.current=(0,Pe.Z)(function(){Fe.current=null},2);var Xt=wt.deltaX,Pn=wt.deltaY,In=wt.shiftKey,$n=Xt,Pi=Pn;(Fe.current==="sx"||!Fe.current&&In&&Pn&&!Xt)&&($n=Pn,Pi=0,Fe.current="sx");var wn=Math.abs($n),Ai=Math.abs(Pi);Fe.current===null&&(Fe.current=Zt&&wn>Ai?"x":"y"),Fe.current==="y"?ke(wt,Pi):Ge(wt,$n)}}function en(wt){Ln&&(we.current=wt.detail===Oe.current)}return[tn,en]}function He(Ln,Wt,Vt,mt){var Ye=$e.useMemo(function(){return[new Map,[]]},[Ln,Vt.id,mt]),Zt=(0,We.Z)(Ye,2),Gt=Zt[0],ft=Zt[1],nt=function(we){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,ke=Gt.get(we),Ge=Gt.get(ye);if(ke===void 0||Ge===void 0)for(var Fe=Ln.length,pt=ft.length;pt<Fe;pt+=1){var tn,en=Ln[pt],wt=Wt(en);Gt.set(wt,pt);var Xt=(tn=Vt.get(wt))!==null&&tn!==void 0?tn:mt;if(ft[pt]=(ft[pt-1]||0)+Xt,wt===we&&(ke=pt),wt===ye&&(Ge=pt),ke!==void 0&&Ge!==void 0)break}return{top:ft[ke-1]||0,bottom:ft[Ge]}};return nt}var ze=he(85899),Ke=he(79545),Ze=he(68550),Mt=function(){function Ln(){(0,Ke.Z)(this,Ln),(0,st.Z)(this,"maps",void 0),(0,st.Z)(this,"id",0),(0,st.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ze.Z)(Ln,[{key:"set",value:function(Vt,mt){this.maps[Vt]=mt,this.id+=1,this.diffKeys.add(Vt)}},{key:"get",value:function(Vt){return this.maps[Vt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Ln}(),Xe=Mt;function Ft(Ln){var Wt=parseFloat(Ln);return isNaN(Wt)?0:Wt}function Ct(Ln,Wt,Vt){var mt=$e.useState(0),Ye=(0,We.Z)(mt,2),Zt=Ye[0],Gt=Ye[1],ft=(0,$e.useRef)(new Map),nt=(0,$e.useRef)(new Xe),Oe=(0,$e.useRef)(0);function we(){Oe.current+=1}function ye(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;we();var Fe=function(){var en=!1;ft.current.forEach(function(wt,Xt){if(wt&&wt.offsetParent){var Pn=(0,ze.ZP)(wt),In=Pn.offsetHeight,$n=getComputedStyle(Pn),Pi=$n.marginTop,wn=$n.marginBottom,Ai=Ft(Pi),Vi=Ft(wn),ur=In+Ai+Vi;nt.current.get(Xt)!==ur&&(nt.current.set(Xt,ur),en=!0)}}),en&&Gt(function(wt){return wt+1})};if(Ge)Fe();else{Oe.current+=1;var pt=Oe.current;Promise.resolve().then(function(){pt===Oe.current&&Fe()})}}function ke(Ge,Fe){var pt=Ln(Ge),tn=ft.current.get(pt);Fe?(ft.current.set(pt,Fe),ye()):ft.current.delete(pt),!tn!=!Fe&&(Fe?Wt==null||Wt(Ge):Vt==null||Vt(Ge))}return(0,$e.useEffect)(function(){return we},[]),[ke,ye,nt.current,Zt]}var Nt=14/15;function It(Ln,Wt,Vt){var mt=(0,$e.useRef)(!1),Ye=(0,$e.useRef)(0),Zt=(0,$e.useRef)(0),Gt=(0,$e.useRef)(null),ft=(0,$e.useRef)(null),nt,Oe=function(Ge){if(mt.current){var Fe=Math.ceil(Ge.touches[0].pageX),pt=Math.ceil(Ge.touches[0].pageY),tn=Ye.current-Fe,en=Zt.current-pt,wt=Math.abs(tn)>Math.abs(en);wt?Ye.current=Fe:Zt.current=pt;var Xt=Vt(wt,wt?tn:en,!1,Ge);Xt&&Ge.preventDefault(),clearInterval(ft.current),Xt&&(ft.current=setInterval(function(){wt?tn*=Nt:en*=Nt;var Pn=Math.floor(wt?tn:en);(!Vt(wt,Pn,!0)||Math.abs(Pn)<=.1)&&clearInterval(ft.current)},16))}},we=function(){mt.current=!1,nt()},ye=function(Ge){nt(),Ge.touches.length===1&&!mt.current&&(mt.current=!0,Ye.current=Math.ceil(Ge.touches[0].pageX),Zt.current=Math.ceil(Ge.touches[0].pageY),Gt.current=Ge.target,Gt.current.addEventListener("touchmove",Oe,{passive:!1}),Gt.current.addEventListener("touchend",we,{passive:!0}))};nt=function(){Gt.current&&(Gt.current.removeEventListener("touchmove",Oe),Gt.current.removeEventListener("touchend",we))},(0,tt.Z)(function(){return Ln&&Wt.current.addEventListener("touchstart",ye,{passive:!0}),function(){var ke;(ke=Wt.current)===null||ke===void 0||ke.removeEventListener("touchstart",ye),nt(),clearInterval(ft.current)}},[Ln])}function _t(Ln){return Math.floor(Math.pow(Ln,.5))}function lt(Ln,Wt){var Vt="touches"in Ln?Ln.touches[0]:Ln;return Vt[Wt?"pageX":"pageY"]-window[Wt?"scrollX":"scrollY"]}function je(Ln,Wt,Vt){$e.useEffect(function(){var mt=Wt.current;if(Ln&&mt){var Ye=!1,Zt,Gt,ft=function(){Pe.Z.cancel(Zt)},nt=function ke(){ft(),Zt=(0,Pe.Z)(function(){Vt(Gt),ke()})},Oe=function(Ge){var Fe=Ge;Fe._virtualHandled||(Fe._virtualHandled=!0,Ye=!0)},we=function(){Ye=!1,ft()},ye=function(Ge){if(Ye){var Fe=lt(Ge,!1),pt=mt.getBoundingClientRect(),tn=pt.top,en=pt.bottom;if(Fe<=tn){var wt=tn-Fe;Gt=-_t(wt),nt()}else if(Fe>=en){var Xt=Fe-en;Gt=_t(Xt),nt()}else ft()}};return mt.addEventListener("mousedown",Oe),mt.ownerDocument.addEventListener("mouseup",we),mt.ownerDocument.addEventListener("mousemove",ye),function(){mt.removeEventListener("mousedown",Oe),mt.ownerDocument.removeEventListener("mouseup",we),mt.ownerDocument.removeEventListener("mousemove",ye),ft()}}},[Ln])}var Et=10;function ln(Ln,Wt,Vt,mt,Ye,Zt,Gt,ft){var nt=$e.useRef(),Oe=$e.useState(null),we=(0,We.Z)(Oe,2),ye=we[0],ke=we[1];return(0,tt.Z)(function(){if(ye&&ye.times<Et){if(!Ln.current){ke(function(De){return(0,Ve.Z)({},De)});return}Zt();var Ge=ye.targetAlign,Fe=ye.originAlign,pt=ye.index,tn=ye.offset,en=Ln.current.clientHeight,wt=!1,Xt=Ge,Pn=null;if(en){for(var In=Ge||Fe,$n=0,Pi=0,wn=0,Ai=Math.min(Wt.length-1,pt),Vi=0;Vi<=Ai;Vi+=1){var ur=Ye(Wt[Vi]);Pi=$n;var sr=Vt.get(ur);wn=Pi+(sr===void 0?mt:sr),$n=wn}for(var Qn=In==="top"?tn:en-tn,Ci=Ai;Ci>=0;Ci-=1){var er=Ye(Wt[Ci]),ri=Vt.get(er);if(ri===void 0){wt=!0;break}if(Qn-=ri,Qn<=0)break}switch(In){case"top":Pn=Pi-tn;break;case"bottom":Pn=wn-en+tn;break;default:{var tr=Ln.current.scrollTop,Di=tr+en;Pi<tr?Xt="top":wn>Di&&(Xt="bottom")}}Pn!==null&&Gt(Pn),Pn!==ye.lastTop&&(wt=!0)}wt&&ke((0,Ve.Z)((0,Ve.Z)({},ye),{},{times:ye.times+1,targetAlign:Xt,lastTop:Pn}))}},[ye,Ln.current]),function(Ge){if(Ge==null){ft();return}if(Pe.Z.cancel(nt.current),typeof Ge=="number")Gt(Ge);else if(Ge&&(0,Ie.Z)(Ge)==="object"){var Fe,pt=Ge.align;"index"in Ge?Fe=Ge.index:Fe=Wt.findIndex(function(wt){return Ye(wt)===Ge.key});var tn=Ge.offset,en=tn===void 0?0:tn;ke({times:0,index:Fe,offset:en,originAlign:pt})}}}var Ht=$e.forwardRef(function(Ln,Wt){var Vt=Ln.prefixCls,mt=Ln.rtl,Ye=Ln.scrollOffset,Zt=Ln.scrollRange,Gt=Ln.onStartMove,ft=Ln.onStopMove,nt=Ln.onScroll,Oe=Ln.horizontal,we=Ln.spinSize,ye=Ln.containerSize,ke=Ln.style,Ge=Ln.thumbStyle,Fe=$e.useState(!1),pt=(0,We.Z)(Fe,2),tn=pt[0],en=pt[1],wt=$e.useState(null),Xt=(0,We.Z)(wt,2),Pn=Xt[0],In=Xt[1],$n=$e.useState(null),Pi=(0,We.Z)($n,2),wn=Pi[0],Ai=Pi[1],Vi=!mt,ur=$e.useRef(),sr=$e.useRef(),Qn=$e.useState(!1),Ci=(0,We.Z)(Qn,2),er=Ci[0],ri=Ci[1],tr=$e.useRef(),Di=function(){clearTimeout(tr.current),ri(!0),tr.current=setTimeout(function(){ri(!1)},3e3)},De=Zt-ye||0,Yr=ye-we||0,yr=$e.useMemo(function(){if(Ye===0||De===0)return 0;var bt=Ye/De;return bt*Yr},[Ye,De,Yr]),Dr=function(xn){xn.stopPropagation(),xn.preventDefault()},lo=$e.useRef({top:yr,dragging:tn,pageY:Pn,startTop:wn});lo.current={top:yr,dragging:tn,pageY:Pn,startTop:wn};var Wo=function(xn){en(!0),In(lt(xn,Oe)),Ai(lo.current.top),Gt(),xn.stopPropagation(),xn.preventDefault()};$e.useEffect(function(){var bt=function(ot){ot.preventDefault()},xn=ur.current,hn=sr.current;return xn.addEventListener("touchstart",bt,{passive:!1}),hn.addEventListener("touchstart",Wo,{passive:!1}),function(){xn.removeEventListener("touchstart",bt),hn.removeEventListener("touchstart",Wo)}},[]);var No=$e.useRef();No.current=De;var ki=$e.useRef();ki.current=Yr,$e.useEffect(function(){if(tn){var bt,xn=function(ot){var fn=lo.current,yn=fn.dragging,li=fn.pageY,vn=fn.startTop;Pe.Z.cancel(bt);var at=ur.current.getBoundingClientRect(),Bn=ye/(Oe?at.width:at.height);if(yn){var pi=(lt(ot,Oe)-li)*Bn,Li=vn;!Vi&&Oe?Li-=pi:Li+=pi;var qt=No.current,Nn=ki.current,on=Nn?Li/Nn:0,Sn=Math.ceil(on*qt);Sn=Math.max(Sn,0),Sn=Math.min(Sn,qt),bt=(0,Pe.Z)(function(){nt(Sn,Oe)})}},hn=function(){en(!1),ft()};return window.addEventListener("mousemove",xn,{passive:!0}),window.addEventListener("touchmove",xn,{passive:!0}),window.addEventListener("mouseup",hn,{passive:!0}),window.addEventListener("touchend",hn,{passive:!0}),function(){window.removeEventListener("mousemove",xn),window.removeEventListener("touchmove",xn),window.removeEventListener("mouseup",hn),window.removeEventListener("touchend",hn),Pe.Z.cancel(bt)}}},[tn]),$e.useEffect(function(){return Di(),function(){clearTimeout(tr.current)}},[Ye]),$e.useImperativeHandle(Wt,function(){return{delayHidden:Di}});var an="".concat(Vt,"-scrollbar"),nn={position:"absolute",visibility:er?null:"hidden"},Ut={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Oe?(nn.height=8,nn.left=0,nn.right=0,nn.bottom=0,Ut.height="100%",Ut.width=we,Vi?Ut.left=yr:Ut.right=yr):(nn.width=8,nn.top=0,nn.bottom=0,Vi?nn.right=0:nn.left=0,Ut.width="100%",Ut.height=we,Ut.top=yr),$e.createElement("div",{ref:ur,className:yt()(an,(0,st.Z)((0,st.Z)((0,st.Z)({},"".concat(an,"-horizontal"),Oe),"".concat(an,"-vertical"),!Oe),"".concat(an,"-visible"),er)),style:(0,Ve.Z)((0,Ve.Z)({},nn),ke),onMouseDown:Dr,onMouseMove:Di},$e.createElement("div",{ref:sr,className:yt()("".concat(an,"-thumb"),(0,st.Z)({},"".concat(an,"-thumb-moving"),tn)),style:(0,Ve.Z)((0,Ve.Z)({},Ut),Ge),onMouseDown:Wo}))}),xt=Ht,Bt=20;function rn(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Vt=Ln/Wt*Ln;return isNaN(Vt)&&(Vt=0),Vt=Math.max(Vt,Bt),Math.floor(Vt)}var Hn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],pn=[],_n={overflowY:"auto",overflowAnchor:"none"};function Lt(Ln,Wt){var Vt=Ln.prefixCls,mt=Vt===void 0?"rc-virtual-list":Vt,Ye=Ln.className,Zt=Ln.height,Gt=Ln.itemHeight,ft=Ln.fullHeight,nt=ft===void 0?!0:ft,Oe=Ln.style,we=Ln.data,ye=Ln.children,ke=Ln.itemKey,Ge=Ln.virtual,Fe=Ln.direction,pt=Ln.scrollWidth,tn=Ln.component,en=tn===void 0?"div":tn,wt=Ln.onScroll,Xt=Ln.onVirtualScroll,Pn=Ln.onVisibleChange,In=Ln.innerProps,$n=Ln.extraRender,Pi=Ln.styles,wn=(0,it.Z)(Ln,Hn),Ai=$e.useCallback(function(Er){return typeof ke=="function"?ke(Er):Er==null?void 0:Er[ke]},[ke]),Vi=Ct(Ai,null,null),ur=(0,We.Z)(Vi,4),sr=ur[0],Qn=ur[1],Ci=ur[2],er=ur[3],ri=!!(Ge!==!1&&Zt&&Gt),tr=$e.useMemo(function(){return Object.values(Ci.maps).reduce(function(Er,fr){return Er+fr},0)},[Ci.id,Ci.maps]),Di=ri&&we&&(Math.max(Gt*we.length,tr)>Zt||!!pt),De=Fe==="rtl",Yr=yt()(mt,(0,st.Z)({},"".concat(mt,"-rtl"),De),Ye),yr=we||pn,Dr=(0,$e.useRef)(),lo=(0,$e.useRef)(),Wo=(0,$e.useRef)(),No=(0,$e.useState)(0),ki=(0,We.Z)(No,2),an=ki[0],nn=ki[1],Ut=(0,$e.useState)(0),bt=(0,We.Z)(Ut,2),xn=bt[0],hn=bt[1],Tt=(0,$e.useState)(!1),ot=(0,We.Z)(Tt,2),fn=ot[0],yn=ot[1],li=function(){yn(!0)},vn=function(){yn(!1)},at={getKey:Ai};function Bn(Er){nn(function(fr){var ho;typeof Er=="function"?ho=Er(fr):ho=Er;var ro=Nr(ho);return Dr.current.scrollTop=ro,ro})}var pi=(0,$e.useRef)({start:0,end:yr.length}),Li=(0,$e.useRef)(),qt=ve(yr,Ai),Nn=(0,We.Z)(qt,1),on=Nn[0];Li.current=on;var Sn=$e.useMemo(function(){if(!ri)return{scrollHeight:void 0,start:0,end:yr.length-1,offset:void 0};if(!Di){var Er;return{scrollHeight:((Er=lo.current)===null||Er===void 0?void 0:Er.offsetHeight)||0,start:0,end:yr.length-1,offset:void 0}}for(var fr=0,ho,ro,Gr,_o=yr.length,lr=0;lr<_o;lr+=1){var $i=yr[lr],kr=Ai($i),oi=Ci.get(kr),Ao=fr+(oi===void 0?Gt:oi);Ao>=an&&ho===void 0&&(ho=lr,ro=fr),Ao>an+Zt&&Gr===void 0&&(Gr=lr),fr=Ao}return ho===void 0&&(ho=0,ro=0,Gr=Math.ceil(Zt/Gt)),Gr===void 0&&(Gr=yr.length-1),Gr=Math.min(Gr+1,yr.length-1),{scrollHeight:fr,start:ho,end:Gr,offset:ro}},[Di,ri,an,yr,er,Zt]),Fn=Sn.scrollHeight,En=Sn.start,kn=Sn.end,Zn=Sn.offset;pi.current.start=En,pi.current.end=kn,$e.useLayoutEffect(function(){var Er=Ci.getRecord();if(Er.size===1){var fr=Array.from(Er)[0],ho=Ai(yr[En]);if(ho===fr){var ro=Ci.get(fr),Gr=ro-Gt;Bn(function(_o){return _o+Gr})}}Ci.resetRecord()},[Fn]);var Jn=$e.useState({width:0,height:Zt}),si=(0,We.Z)(Jn,2),Tn=si[0],mi=si[1],nr=function(fr){mi({width:fr.offsetWidth,height:fr.offsetHeight})},Br=(0,$e.useRef)(),rr=(0,$e.useRef)(),Jt=$e.useMemo(function(){return rn(Tn.width,pt)},[Tn.width,pt]),Fi=$e.useMemo(function(){return rn(Tn.height,Fn)},[Tn.height,Fn]),Si=Fn-Zt,Wi=(0,$e.useRef)(Si);Wi.current=Si;function Nr(Er){var fr=Er;return Number.isNaN(Wi.current)||(fr=Math.min(fr,Wi.current)),fr=Math.max(fr,0),fr}var br=an<=0,Ir=an>=Si,hr=xn<=0,Ui=xn>=pt,Jr=Le(br,Ir,hr,Ui),An=function(){return{x:De?-xn:xn,y:an}},Co=(0,$e.useRef)(An()),Wn=(0,Je.useEvent)(function(Er){if(Xt){var fr=(0,Ve.Z)((0,Ve.Z)({},An()),Er);(Co.current.x!==fr.x||Co.current.y!==fr.y)&&(Xt(fr),Co.current=fr)}});function Hr(Er,fr){var ho=Er;fr?((0,Qe.flushSync)(function(){hn(ho)}),Wn()):Bn(ho)}function ha(Er){var fr=Er.currentTarget.scrollTop;fr!==an&&Bn(fr),wt==null||wt(Er),Wn()}var yo=function(fr){var ho=fr,ro=pt?pt-Tn.width:0;return ho=Math.max(ho,0),ho=Math.min(ho,ro),ho},Ot=(0,Je.useEvent)(function(Er,fr){fr?((0,Qe.flushSync)(function(){hn(function(ho){var ro=ho+(De?-Er:Er);return yo(ro)})}),Wn()):Bn(function(ho){var ro=ho+Er;return ro})}),di=Te(ri,br,Ir,hr,Ui,!!pt,Ot),Mn=(0,We.Z)(di,2),qn=Mn[0],Ar=Mn[1];It(ri,Dr,function(Er,fr,ho,ro){var Gr=ro;return Jr(Er,fr,ho)?!1:!Gr||!Gr._virtualHandled?(Gr&&(Gr._virtualHandled=!0),qn({preventDefault:function(){},deltaX:Er?fr:0,deltaY:Er?0:fr}),!0):!1}),je(Di,Dr,function(Er){Bn(function(fr){return fr+Er})}),(0,tt.Z)(function(){function Er(ho){var ro=br&&ho.detail<0,Gr=Ir&&ho.detail>0;ri&&!ro&&!Gr&&ho.preventDefault()}var fr=Dr.current;return fr.addEventListener("wheel",qn,{passive:!1}),fr.addEventListener("DOMMouseScroll",Ar,{passive:!0}),fr.addEventListener("MozMousePixelScroll",Er,{passive:!1}),function(){fr.removeEventListener("wheel",qn),fr.removeEventListener("DOMMouseScroll",Ar),fr.removeEventListener("MozMousePixelScroll",Er)}},[ri,br,Ir]),(0,tt.Z)(function(){if(pt){var Er=yo(xn);hn(Er),Wn({x:Er})}},[Tn.width,pt]);var Sr=function(){var fr,ho;(fr=Br.current)===null||fr===void 0||fr.delayHidden(),(ho=rr.current)===null||ho===void 0||ho.delayHidden()},Kn=ln(Dr,yr,Ci,Gt,Ai,function(){return Qn(!0)},Bn,Sr);$e.useImperativeHandle(Wt,function(){return{nativeElement:Wo.current,getScrollInfo:An,scrollTo:function(fr){function ho(ro){return ro&&(0,Ie.Z)(ro)==="object"&&("left"in ro||"top"in ro)}ho(fr)?(fr.left!==void 0&&hn(yo(fr.left)),Kn(fr.top)):Kn(fr)}}}),(0,tt.Z)(function(){if(Pn){var Er=yr.slice(En,kn+1);Pn(Er,yr)}},[En,kn,yr]);var qe=He(yr,Ai,Ci,Gt),_i=$n==null?void 0:$n({start:En,end:kn,virtual:Di,offsetX:xn,offsetY:Zn,rtl:De,getSize:qe}),uo=ue(yr,En,kn,pt,xn,sr,ye,at),wr=null;Zt&&(wr=(0,Ve.Z)((0,st.Z)({},nt?"height":"maxHeight",Zt),_n),ri&&(wr.overflowY="hidden",pt&&(wr.overflowX="hidden"),fn&&(wr.pointerEvents="none")));var Uo={};return De&&(Uo.dir="rtl"),$e.createElement("div",(0,pe.Z)({ref:Wo,style:(0,Ve.Z)((0,Ve.Z)({},Oe),{},{position:"relative"}),className:Yr},Uo,wn),$e.createElement(vt.Z,{onResize:nr},$e.createElement(en,{className:"".concat(mt,"-holder"),style:wr,ref:Dr,onScroll:ha,onMouseEnter:Sr},$e.createElement(ee,{prefixCls:mt,height:Fn,offsetX:xn,offsetY:Zn,scrollWidth:pt,onInnerResize:Qn,ref:lo,innerProps:In,rtl:De,extra:_i},uo))),Di&&Fn>Zt&&$e.createElement(xt,{ref:Br,prefixCls:mt,scrollOffset:an,scrollRange:Fn,rtl:De,onScroll:Hr,onStartMove:li,onStopMove:vn,spinSize:Fi,containerSize:Tn.height,style:Pi==null?void 0:Pi.verticalScrollBar,thumbStyle:Pi==null?void 0:Pi.verticalScrollBarThumb}),Di&&pt>Tn.width&&$e.createElement(xt,{ref:rr,prefixCls:mt,scrollOffset:xn,scrollRange:pt,rtl:De,onScroll:Hr,onStartMove:li,onStopMove:vn,spinSize:Jt,containerSize:Tn.width,horizontal:!0,style:Pi==null?void 0:Pi.horizontalScrollBar,thumbStyle:Pi==null?void 0:Pi.horizontalScrollBarThumb}))}var Un=$e.forwardRef(Lt);Un.displayName="List";var Gn=Un,ui=Gn},2637:function(gn,zt,he){"use strict";Object.defineProperty(zt,"__esModule",{value:!0}),Object.defineProperty(zt,"DraggableCore",{enumerable:!0,get:function(){return yt.default}}),zt.default=void 0;var pe=$e(he(59301)),Ie=Je(he(12708)),Ve=Je(he(4676)),st=Je(he(57780)),We=he(13957),it=he(60976),be=he(36641),yt=Je(he(80486)),vt=Je(he(94187));function Je(ae){return ae&&ae.__esModule?ae:{default:ae}}function tt(ae){if(typeof WeakMap!="function")return null;var de=new WeakMap,ve=new WeakMap;return(tt=function(Pe){return Pe?ve:de})(ae)}function $e(ae,de){if(!de&&ae&&ae.__esModule)return ae;if(ae===null||typeof ae!="object"&&typeof ae!="function")return{default:ae};var ve=tt(de);if(ve&&ve.has(ae))return ve.get(ae);var Pe={},Ae=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var xe in ae)if(xe!=="default"&&Object.prototype.hasOwnProperty.call(ae,xe)){var Le=Ae?Object.getOwnPropertyDescriptor(ae,xe):null;Le&&(Le.get||Le.set)?Object.defineProperty(Pe,xe,Le):Pe[xe]=ae[xe]}return Pe.default=ae,ve&&ve.set(ae,Pe),Pe}function Qe(){return Qe=Object.assign?Object.assign.bind():function(ae){for(var de=1;de<arguments.length;de++){var ve=arguments[de];for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&(ae[Pe]=ve[Pe])}return ae},Qe.apply(this,arguments)}function Ee(ae,de,ve){return de=ee(de),de in ae?Object.defineProperty(ae,de,{value:ve,enumerable:!0,configurable:!0,writable:!0}):ae[de]=ve,ae}function ee(ae){var de=te(ae,"string");return typeof de=="symbol"?de:String(de)}function te(ae,de){if(typeof ae!="object"||ae===null)return ae;var ve=ae[Symbol.toPrimitive];if(ve!==void 0){var Pe=ve.call(ae,de||"default");if(typeof Pe!="object")return Pe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(de==="string"?String:Number)(ae)}class ue extends pe.Component{static getDerivedStateFromProps(de,ve){let{position:Pe}=de,{prevPropsPosition:Ae}=ve;return Pe&&(!Ae||Pe.x!==Ae.x||Pe.y!==Ae.y)?((0,vt.default)("Draggable: getDerivedStateFromProps %j",{position:Pe,prevPropsPosition:Ae}),{x:Pe.x,y:Pe.y,prevPropsPosition:hf({},Pe)}):null}constructor(de){super(de),Ee(this,"onDragStart",(ve,Pe)=>{if((0,vt.default)("Draggable: onDragStart: %j",Pe),this.props.onStart(ve,(0,it.createDraggableData)(this,Pe))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Ee(this,"onDrag",(ve,Pe)=>{if(!this.state.dragging)return!1;(0,vt.default)("Draggable: onDrag: %j",Pe);const Ae=(0,it.createDraggableData)(this,Pe),xe={x:Ae.x,y:Ae.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Te,y:He}=xe;xe.x+=this.state.slackX,xe.y+=this.state.slackY;const[ze,Ke]=(0,it.getBoundPosition)(this,xe.x,xe.y);xe.x=ze,xe.y=Ke,xe.slackX=this.state.slackX+(Te-xe.x),xe.slackY=this.state.slackY+(He-xe.y),Ae.x=xe.x,Ae.y=xe.y,Ae.deltaX=xe.x-this.state.x,Ae.deltaY=xe.y-this.state.y}if(this.props.onDrag(ve,Ae)===!1)return!1;this.setState(xe)}),Ee(this,"onDragStop",(ve,Pe)=>{if(!this.state.dragging||this.props.onStop(ve,(0,it.createDraggableData)(this,Pe))===!1)return!1;(0,vt.default)("Draggable: onDragStop: %j",Pe);const xe={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Te,y:He}=this.props.position;xe.x=Te,xe.y=He}this.setState(xe)}),this.state={dragging:!1,dragged:!1,x:de.position?de.position.x:de.defaultPosition.x,y:de.position?de.position.y:de.defaultPosition.y,prevPropsPosition:hf({},de.position),slackX:0,slackY:0,isElementSVG:!1},de.position&&!(de.onDrag||de.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var de,ve;return(de=(ve=this.props)===null||ve===void 0||(ve=ve.nodeRef)===null||ve===void 0?void 0:ve.current)!==null&&de!==void 0?de:Ve.default.findDOMNode(this)}render(){const lt=this.props,{axis:de,bounds:ve,children:Pe,defaultPosition:Ae,defaultClassName:xe,defaultClassNameDragging:Le,defaultClassNameDragged:Te,position:He,positionOffset:ze,scale:Ke}=lt,Ze=Px(lt,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let Mt={},Xe=null;const Ct=!!!He||this.state.dragging,Nt=He||Ae,It={x:(0,it.canDragX)(this)&&Ct?this.state.x:Nt.x,y:(0,it.canDragY)(this)&&Ct?this.state.y:Nt.y};this.state.isElementSVG?Xe=(0,We.createSVGTransform)(It,ze):Mt=(0,We.createCSSTransform)(It,ze);const _t=(0,st.default)(Pe.props.className||"",xe,{[Le]:this.state.dragging,[Te]:this.state.dragged});return pe.createElement(yt.default,Qe({},Ze,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),pe.cloneElement(pe.Children.only(Pe),{className:_t,style:hf(hf({},Pe.props.style),Mt),transform:Xe}))}}zt.default=ue,Ee(ue,"displayName","Draggable"),Ee(ue,"propTypes",_y(hf({},yt.default.propTypes),{axis:Ie.default.oneOf(["both","x","y","none"]),bounds:Ie.default.oneOfType([Ie.default.shape({left:Ie.default.number,right:Ie.default.number,top:Ie.default.number,bottom:Ie.default.number}),Ie.default.string,Ie.default.oneOf([!1])]),defaultClassName:Ie.default.string,defaultClassNameDragging:Ie.default.string,defaultClassNameDragged:Ie.default.string,defaultPosition:Ie.default.shape({x:Ie.default.number,y:Ie.default.number}),positionOffset:Ie.default.shape({x:Ie.default.oneOfType([Ie.default.number,Ie.default.string]),y:Ie.default.oneOfType([Ie.default.number,Ie.default.string])}),position:Ie.default.shape({x:Ie.default.number,y:Ie.default.number}),className:be.dontSetMe,style:be.dontSetMe,transform:be.dontSetMe})),Ee(ue,"defaultProps",_y(hf({},yt.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(gn,zt,he){"use strict";Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=void 0;var pe=Je(he(59301)),Ie=yt(he(12708)),Ve=yt(he(4676)),st=he(13957),We=he(60976),it=he(36641),be=yt(he(94187));function yt(ue){return ue&&ue.__esModule?ue:{default:ue}}function vt(ue){if(typeof WeakMap!="function")return null;var ae=new WeakMap,de=new WeakMap;return(vt=function(ve){return ve?de:ae})(ue)}function Je(ue,ae){if(!ae&&ue&&ue.__esModule)return ue;if(ue===null||typeof ue!="object"&&typeof ue!="function")return{default:ue};var de=vt(ae);if(de&&de.has(ue))return de.get(ue);var ve={},Pe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ae in ue)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(ue,Ae)){var xe=Pe?Object.getOwnPropertyDescriptor(ue,Ae):null;xe&&(xe.get||xe.set)?Object.defineProperty(ve,Ae,xe):ve[Ae]=ue[Ae]}return ve.default=ue,de&&de.set(ue,ve),ve}function tt(ue,ae,de){return ae=$e(ae),ae in ue?Object.defineProperty(ue,ae,{value:de,enumerable:!0,configurable:!0,writable:!0}):ue[ae]=de,ue}function $e(ue){var ae=Qe(ue,"string");return typeof ae=="symbol"?ae:String(ae)}function Qe(ue,ae){if(typeof ue!="object"||ue===null)return ue;var de=ue[Symbol.toPrimitive];if(de!==void 0){var ve=de.call(ue,ae||"default");if(typeof ve!="object")return ve;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ae==="string"?String:Number)(ue)}const Ee={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let ee=Ee.mouse;class te extends pe.Component{constructor(){super(...arguments),tt(this,"dragging",!1),tt(this,"lastX",NaN),tt(this,"lastY",NaN),tt(this,"touchIdentifier",null),tt(this,"mounted",!1),tt(this,"handleDragStart",ae=>{if(this.props.onMouseDown(ae),!this.props.allowAnyClick&&typeof ae.button=="number"&&ae.button!==0)return!1;const de=this.findDOMNode();if(!de||!de.ownerDocument||!de.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:ve}=de;if(this.props.disabled||!(ae.target instanceof ve.defaultView.Node)||this.props.handle&&!(0,st.matchesSelectorAndParentsTo)(ae.target,this.props.handle,de)||this.props.cancel&&(0,st.matchesSelectorAndParentsTo)(ae.target,this.props.cancel,de))return;ae.type==="touchstart"&&ae.preventDefault();const Pe=(0,st.getTouchIdentifier)(ae);this.touchIdentifier=Pe;const Ae=(0,We.getControlPosition)(ae,Pe,this);if(Ae==null)return;const{x:xe,y:Le}=Ae,Te=(0,We.createCoreData)(this,xe,Le);(0,be.default)("DraggableCore: handleDragStart: %j",Te),(0,be.default)("calling",this.props.onStart),!(this.props.onStart(ae,Te)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,st.addUserSelectStyles)(ve),this.dragging=!0,this.lastX=xe,this.lastY=Le,(0,st.addEvent)(ve,ee.move,this.handleDrag),(0,st.addEvent)(ve,ee.stop,this.handleDragStop))}),tt(this,"handleDrag",ae=>{const de=(0,We.getControlPosition)(ae,this.touchIdentifier,this);if(de==null)return;let{x:ve,y:Pe}=de;if(Array.isArray(this.props.grid)){let Le=ve-this.lastX,Te=Pe-this.lastY;if([Le,Te]=(0,We.snapToGrid)(this.props.grid,Le,Te),!Le&&!Te)return;ve=this.lastX+Le,Pe=this.lastY+Te}const Ae=(0,We.createCoreData)(this,ve,Pe);if((0,be.default)("DraggableCore: handleDrag: %j",Ae),this.props.onDrag(ae,Ae)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Le){const Te=document.createEvent("MouseEvents");Te.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(Te)}return}this.lastX=ve,this.lastY=Pe}),tt(this,"handleDragStop",ae=>{if(!this.dragging)return;const de=(0,We.getControlPosition)(ae,this.touchIdentifier,this);if(de==null)return;let{x:ve,y:Pe}=de;if(Array.isArray(this.props.grid)){let Te=ve-this.lastX||0,He=Pe-this.lastY||0;[Te,He]=(0,We.snapToGrid)(this.props.grid,Te,He),ve=this.lastX+Te,Pe=this.lastY+He}const Ae=(0,We.createCoreData)(this,ve,Pe);if(this.props.onStop(ae,Ae)===!1||this.mounted===!1)return!1;const Le=this.findDOMNode();Le&&this.props.enableUserSelectHack&&(0,st.removeUserSelectStyles)(Le.ownerDocument),(0,be.default)("DraggableCore: handleDragStop: %j",Ae),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Le&&((0,be.default)("DraggableCore: Removing handlers"),(0,st.removeEvent)(Le.ownerDocument,ee.move,this.handleDrag),(0,st.removeEvent)(Le.ownerDocument,ee.stop,this.handleDragStop))}),tt(this,"onMouseDown",ae=>(ee=Ee.mouse,this.handleDragStart(ae))),tt(this,"onMouseUp",ae=>(ee=Ee.mouse,this.handleDragStop(ae))),tt(this,"onTouchStart",ae=>(ee=Ee.touch,this.handleDragStart(ae))),tt(this,"onTouchEnd",ae=>(ee=Ee.touch,this.handleDragStop(ae)))}componentDidMount(){this.mounted=!0;const ae=this.findDOMNode();ae&&(0,st.addEvent)(ae,Ee.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const ae=this.findDOMNode();if(ae){const{ownerDocument:de}=ae;(0,st.removeEvent)(de,Ee.mouse.move,this.handleDrag),(0,st.removeEvent)(de,Ee.touch.move,this.handleDrag),(0,st.removeEvent)(de,Ee.mouse.stop,this.handleDragStop),(0,st.removeEvent)(de,Ee.touch.stop,this.handleDragStop),(0,st.removeEvent)(ae,Ee.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,st.removeUserSelectStyles)(de)}}findDOMNode(){var ae,de;return(ae=this.props)!==null&&ae!==void 0&&ae.nodeRef?(de=this.props)===null||de===void 0||(de=de.nodeRef)===null||de===void 0?void 0:de.current:Ve.default.findDOMNode(this)}render(){return pe.cloneElement(pe.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}zt.default=te,tt(te,"displayName","DraggableCore"),tt(te,"propTypes",{allowAnyClick:Ie.default.bool,children:Ie.default.node.isRequired,disabled:Ie.default.bool,enableUserSelectHack:Ie.default.bool,offsetParent:function(ue,ae){if(ue[ae]&&ue[ae].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Ie.default.arrayOf(Ie.default.number),handle:Ie.default.string,cancel:Ie.default.string,nodeRef:Ie.default.object,onStart:Ie.default.func,onDrag:Ie.default.func,onStop:Ie.default.func,onMouseDown:Ie.default.func,scale:Ie.default.number,className:it.dontSetMe,style:it.dontSetMe,transform:it.dontSetMe}),tt(te,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(gn,zt,he){"use strict";const{default:pe,DraggableCore:Ie}=he(2637);gn.exports=pe,gn.exports.default=pe,gn.exports.DraggableCore=Ie},13957:function(gn,zt,he){"use strict";Object.defineProperty(zt,"__esModule",{value:!0}),zt.addClassName=Ae,zt.addEvent=yt,zt.addUserSelectStyles=ve,zt.createCSSTransform=ee,zt.createSVGTransform=te,zt.getTouch=ae,zt.getTouchIdentifier=de,zt.getTranslation=ue,zt.innerHeight=$e,zt.innerWidth=Qe,zt.matchesSelector=it,zt.matchesSelectorAndParentsTo=be,zt.offsetXYFromParent=Ee,zt.outerHeight=Je,zt.outerWidth=tt,zt.removeClassName=xe,zt.removeEvent=vt,zt.removeUserSelectStyles=Pe;var pe=he(36641),Ie=st(he(1750));function Ve(Le){if(typeof WeakMap!="function")return null;var Te=new WeakMap,He=new WeakMap;return(Ve=function(ze){return ze?He:Te})(Le)}function st(Le,Te){if(!Te&&Le&&Le.__esModule)return Le;if(Le===null||typeof Le!="object"&&typeof Le!="function")return{default:Le};var He=Ve(Te);if(He&&He.has(Le))return He.get(Le);var ze={},Ke=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ze in Le)if(Ze!=="default"&&Object.prototype.hasOwnProperty.call(Le,Ze)){var Mt=Ke?Object.getOwnPropertyDescriptor(Le,Ze):null;Mt&&(Mt.get||Mt.set)?Object.defineProperty(ze,Ze,Mt):ze[Ze]=Le[Ze]}return ze.default=Le,He&&He.set(Le,ze),ze}let We="";function it(Le,Te){return We||(We=(0,pe.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(He){return(0,pe.isFunction)(Le[He])})),(0,pe.isFunction)(Le[We])?Le[We](Te):!1}function be(Le,Te,He){let ze=Le;do{if(it(ze,Te))return!0;if(ze===He)return!1;ze=ze.parentNode}while(ze);return!1}function yt(Le,Te,He,ze){if(!Le)return;const Ke=hf({capture:!0},ze);Le.addEventListener?Le.addEventListener(Te,He,Ke):Le.attachEvent?Le.attachEvent("on"+Te,He):Le["on"+Te]=He}function vt(Le,Te,He,ze){if(!Le)return;const Ke=hf({capture:!0},ze);Le.removeEventListener?Le.removeEventListener(Te,He,Ke):Le.detachEvent?Le.detachEvent("on"+Te,He):Le["on"+Te]=null}function Je(Le){let Te=Le.clientHeight;const He=Le.ownerDocument.defaultView.getComputedStyle(Le);return Te+=(0,pe.int)(He.borderTopWidth),Te+=(0,pe.int)(He.borderBottomWidth),Te}function tt(Le){let Te=Le.clientWidth;const He=Le.ownerDocument.defaultView.getComputedStyle(Le);return Te+=(0,pe.int)(He.borderLeftWidth),Te+=(0,pe.int)(He.borderRightWidth),Te}function $e(Le){let Te=Le.clientHeight;const He=Le.ownerDocument.defaultView.getComputedStyle(Le);return Te-=(0,pe.int)(He.paddingTop),Te-=(0,pe.int)(He.paddingBottom),Te}function Qe(Le){let Te=Le.clientWidth;const He=Le.ownerDocument.defaultView.getComputedStyle(Le);return Te-=(0,pe.int)(He.paddingLeft),Te-=(0,pe.int)(He.paddingRight),Te}function Ee(Le,Te,He){const Ke=Te===Te.ownerDocument.body?{left:0,top:0}:Te.getBoundingClientRect(),Ze=(Le.clientX+Te.scrollLeft-Ke.left)/He,Mt=(Le.clientY+Te.scrollTop-Ke.top)/He;return{x:Ze,y:Mt}}function ee(Le,Te){const He=ue(Le,Te,"px");return{[(0,Ie.browserPrefixToKey)("transform",Ie.default)]:He}}function te(Le,Te){return ue(Le,Te,"")}function ue(Le,Te,He){let{x:ze,y:Ke}=Le,Ze="translate(".concat(ze).concat(He,",").concat(Ke).concat(He,")");if(Te){const Mt="".concat(typeof Te.x=="string"?Te.x:Te.x+He),Xe="".concat(typeof Te.y=="string"?Te.y:Te.y+He);Ze="translate(".concat(Mt,", ").concat(Xe,")")+Ze}return Ze}function ae(Le,Te){return Le.targetTouches&&(0,pe.findInArray)(Le.targetTouches,He=>Te===He.identifier)||Le.changedTouches&&(0,pe.findInArray)(Le.changedTouches,He=>Te===He.identifier)}function de(Le){if(Le.targetTouches&&Le.targetTouches[0])return Le.targetTouches[0].identifier;if(Le.changedTouches&&Le.changedTouches[0])return Le.changedTouches[0].identifier}function ve(Le){if(!Le)return;let Te=Le.getElementById("react-draggable-style-el");Te||(Te=Le.createElement("style"),Te.type="text/css",Te.id="react-draggable-style-el",Te.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
|
`,Te.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
|
`,Le.getElementsByTagName("head")[0].appendChild(Te)),Le.body&&Ae(Le.body,"react-draggable-transparent-selection")}function Pe(Le){if(Le)try{if(Le.body&&xe(Le.body,"react-draggable-transparent-selection"),Le.selection)Le.selection.empty();else{const Te=(Le.defaultView||window).getSelection();Te&&Te.type!=="Caret"&&Te.removeAllRanges()}}catch(Te){}}function Ae(Le,Te){Le.classList?Le.classList.add(Te):Le.className.match(new RegExp("(?:^|\\s)".concat(Te,"(?!\\S)")))||(Le.className+=" ".concat(Te))}function xe(Le,Te){Le.classList?Le.classList.remove(Te):Le.className=Le.className.replace(new RegExp("(?:^|\\s)".concat(Te,"(?!\\S)"),"g"),"")}},1750:function(gn,zt){"use strict";Object.defineProperty(zt,"__esModule",{value:!0}),zt.browserPrefixToKey=Ie,zt.browserPrefixToStyle=Ve,zt.default=void 0,zt.getPrefix=pe;const he=["Moz","Webkit","O","ms"];function pe(){var it;let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const yt=(it=window.document)===null||it===void 0||(it=it.documentElement)===null||it===void 0?void 0:it.style;if(!yt||be in yt)return"";for(let vt=0;vt<he.length;vt++)if(Ie(be,he[vt])in yt)return he[vt];return""}function Ie(it,be){return be?"".concat(be).concat(st(it)):it}function Ve(it,be){return be?"-".concat(be.toLowerCase(),"-").concat(it):it}function st(it){let be="",yt=!0;for(let vt=0;vt<it.length;vt++)yt?(be+=it[vt].toUpperCase(),yt=!1):it[vt]==="-"?yt=!0:be+=it[vt];return be}var We=zt.default=pe()},94187:function(gn,zt){"use strict";Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=he;function he(){}},60976:function(gn,zt,he){"use strict";Object.defineProperty(zt,"__esModule",{value:!0}),zt.canDragX=We,zt.canDragY=it,zt.createCoreData=yt,zt.createDraggableData=vt,zt.getBoundPosition=Ve,zt.getControlPosition=be,zt.snapToGrid=st;var pe=he(36641),Ie=he(13957);function Ve($e,Qe,Ee){if(!$e.props.bounds)return[Qe,Ee];let{bounds:ee}=$e.props;ee=typeof ee=="string"?ee:Je(ee);const te=tt($e);if(typeof ee=="string"){const{ownerDocument:ue}=te,ae=ue.defaultView;let de;if(ee==="parent"?de=te.parentNode:de=ue.querySelector(ee),!(de instanceof ae.HTMLElement))throw new Error('Bounds selector "'+ee+'" could not find an element.');const ve=de,Pe=ae.getComputedStyle(te),Ae=ae.getComputedStyle(ve);ee={left:-te.offsetLeft+(0,pe.int)(Ae.paddingLeft)+(0,pe.int)(Pe.marginLeft),top:-te.offsetTop+(0,pe.int)(Ae.paddingTop)+(0,pe.int)(Pe.marginTop),right:(0,Ie.innerWidth)(ve)-(0,Ie.outerWidth)(te)-te.offsetLeft+(0,pe.int)(Ae.paddingRight)-(0,pe.int)(Pe.marginRight),bottom:(0,Ie.innerHeight)(ve)-(0,Ie.outerHeight)(te)-te.offsetTop+(0,pe.int)(Ae.paddingBottom)-(0,pe.int)(Pe.marginBottom)}}return(0,pe.isNum)(ee.right)&&(Qe=Math.min(Qe,ee.right)),(0,pe.isNum)(ee.bottom)&&(Ee=Math.min(Ee,ee.bottom)),(0,pe.isNum)(ee.left)&&(Qe=Math.max(Qe,ee.left)),(0,pe.isNum)(ee.top)&&(Ee=Math.max(Ee,ee.top)),[Qe,Ee]}function st($e,Qe,Ee){const ee=Math.round(Qe/$e[0])*$e[0],te=Math.round(Ee/$e[1])*$e[1];return[ee,te]}function We($e){return $e.props.axis==="both"||$e.props.axis==="x"}function it($e){return $e.props.axis==="both"||$e.props.axis==="y"}function be($e,Qe,Ee){const ee=typeof Qe=="number"?(0,Ie.getTouch)($e,Qe):null;if(typeof Qe=="number"&&!ee)return null;const te=tt(Ee),ue=Ee.props.offsetParent||te.offsetParent||te.ownerDocument.body;return(0,Ie.offsetXYFromParent)(ee||$e,ue,Ee.props.scale)}function yt($e,Qe,Ee){const ee=!(0,pe.isNum)($e.lastX),te=tt($e);return ee?{node:te,deltaX:0,deltaY:0,lastX:Qe,lastY:Ee,x:Qe,y:Ee}:{node:te,deltaX:Qe-$e.lastX,deltaY:Ee-$e.lastY,lastX:$e.lastX,lastY:$e.lastY,x:Qe,y:Ee}}function vt($e,Qe){const Ee=$e.props.scale;return{node:Qe.node,x:$e.state.x+Qe.deltaX/Ee,y:$e.state.y+Qe.deltaY/Ee,deltaX:Qe.deltaX/Ee,deltaY:Qe.deltaY/Ee,lastX:$e.state.x,lastY:$e.state.y}}function Je($e){return{left:$e.left,top:$e.top,right:$e.right,bottom:$e.bottom}}function tt($e){const Qe=$e.findDOMNode();if(!Qe)throw new Error("<DraggableCore>: Unmounted during event!");return Qe}},36641:function(gn,zt){"use strict";Object.defineProperty(zt,"__esModule",{value:!0}),zt.dontSetMe=st,zt.findInArray=he,zt.int=Ve,zt.isFunction=pe,zt.isNum=Ie;function he(We,it){for(let be=0,yt=We.length;be<yt;be++)if(it.apply(it,[We[be],be,We]))return We[be]}function pe(We){return typeof We=="function"||Object.prototype.toString.call(We)==="[object Function]"}function Ie(We){return typeof We=="number"&&!isNaN(We)}function Ve(We){return parseInt(We,10)}function st(We,it,be){if(We[it])return new Error("Invalid prop ".concat(it," passed to ").concat(be," - do not set this, set it on the child."))}},51581:function(gn,zt,he){"use strict";Object.defineProperty(zt,"__esModule",{value:!0});var pe=function(){function $e(Qe,Ee){for(var ee=0;ee<Ee.length;ee++){var te=Ee[ee];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(Qe,te.key,te)}}return function(Qe,Ee,ee){return Ee&&$e(Qe.prototype,Ee),ee&&$e(Qe,ee),Qe}}(),Ie=he(59301),Ve=it(Ie),st=he(12708),We=it(st);function it($e){return $e&&$e.__esModule?$e:{default:$e}}function be($e,Qe){var Ee={};for(var ee in $e)Qe.indexOf(ee)>=0||Object.prototype.hasOwnProperty.call($e,ee)&&(Ee[ee]=$e[ee]);return Ee}function yt($e,Qe){if(!($e instanceof Qe))throw new TypeError("Cannot call a class as a function")}function vt($e,Qe){if(!$e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Qe&&(typeof Qe=="object"||typeof Qe=="function")?Qe:$e}function Je($e,Qe){if(typeof Qe!="function"&&Qe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Qe);$e.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:$e,enumerable:!1,writable:!0,configurable:!0}}),Qe&&(Object.setPrototypeOf?Object.setPrototypeOf($e,Qe):$e.__proto__=Qe)}var tt=function($e){Je(Qe,$e);function Qe(Ee){yt(this,Qe);var ee=vt(this,(Qe.__proto__||Object.getPrototypeOf(Qe)).call(this,Ee));return ee.scrollListener=ee.scrollListener.bind(ee),ee.eventListenerOptions=ee.eventListenerOptions.bind(ee),ee.mousewheelListener=ee.mousewheelListener.bind(ee),ee}return pe(Qe,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var ee=this.getParentElement(this.scrollComponent);ee.scrollTop=ee.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var ee=!1,te={get passive(){ee=!0}};try{document.addEventListener("test",null,te),document.removeEventListener("test",null,te)}catch(ue){}return ee}},{key:"eventListenerOptions",value:function(){var ee=this.props.useCapture;return this.isPassiveSupported()&&(ee={useCapture:this.props.useCapture,passive:!0}),ee}},{key:"setDefaultLoader",value:function(ee){this.defaultLoader=ee}},{key:"detachMousewheelListener",value:function(){var ee=window;this.props.useWindow===!1&&(ee=this.scrollComponent.parentNode),ee.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var ee=window;this.props.useWindow===!1&&(ee=this.getParentElement(this.scrollComponent)),ee.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),ee.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(ee){var te=this.props.getScrollParent&&this.props.getScrollParent();return te!=null?te:ee&&ee.parentNode}},{key:"filterProps",value:function(ee){return ee}},{key:"attachScrollListener",value:function(){var ee=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!ee)){var te=window;this.props.useWindow===!1&&(te=ee),te.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),te.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),te.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(ee){ee.deltaY===1&&!this.isPassiveSupported()&&ee.preventDefault()}},{key:"scrollListener",value:function(){var ee=this.scrollComponent,te=window,ue=this.getParentElement(ee),ae=void 0;if(this.props.useWindow){var de=document.documentElement||document.body.parentNode||document.body,ve=te.pageYOffset!==void 0?te.pageYOffset:de.scrollTop;this.props.isReverse?ae=ve:ae=this.calculateOffset(ee,ve)}else this.props.isReverse?ae=ue.scrollTop:ae=ee.scrollHeight-ue.scrollTop-ue.clientHeight;ae<Number(this.props.threshold)&&ee&&ee.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=ue.scrollHeight,this.beforeScrollTop=ue.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(ee,te){return ee?this.calculateTopPosition(ee)+(ee.offsetHeight-te-window.innerHeight):0}},{key:"calculateTopPosition",value:function(ee){return ee?ee.offsetTop+this.calculateTopPosition(ee.offsetParent):0}},{key:"render",value:function(){var ee=this,te=this.filterProps(this.props),ue=te.children,ae=te.element,de=te.hasMore,ve=te.initialLoad,Pe=te.isReverse,Ae=te.loader,xe=te.loadMore,Le=te.pageStart,Te=te.ref,He=te.threshold,ze=te.useCapture,Ke=te.useWindow,Ze=te.getScrollParent,Mt=be(te,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);Mt.ref=function(Ft){ee.scrollComponent=Ft,Te&&Te(Ft)};var Xe=[ue];return de&&(Ae?Pe?Xe.unshift(Ae):Xe.push(Ae):this.defaultLoader&&(Pe?Xe.unshift(this.defaultLoader):Xe.push(this.defaultLoader))),Ve.default.createElement(ae,Mt,Xe)}}]),Qe}(Ie.Component);tt.propTypes={children:We.default.node.isRequired,element:We.default.node,hasMore:We.default.bool,initialLoad:We.default.bool,isReverse:We.default.bool,loader:We.default.node,loadMore:We.default.func.isRequired,pageStart:We.default.number,ref:We.default.func,getScrollParent:We.default.func,threshold:We.default.number,useCapture:We.default.bool,useWindow:We.default.bool},tt.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},zt.default=tt,gn.exports=zt.default},26724:function(gn,zt,he){gn.exports=he(51581)},80010:function(gn,zt,he){"use strict";zt.__esModule=!0,zt.default=void 0;var pe=We(he(59301)),Ie=he(12911),Ve=he(73638),st=he(6217);function We(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}function it(){return it=Object.assign||function(Ee){for(var ee=1;ee<arguments.length;ee++){var te=arguments[ee];for(var ue in te)Object.prototype.hasOwnProperty.call(te,ue)&&(Ee[ue]=te[ue])}return Ee},it.apply(this,arguments)}function be(Ee,ee){var te=Object.keys(Ee);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(Ee);ee&&(ue=ue.filter(function(ae){return Object.getOwnPropertyDescriptor(Ee,ae).enumerable})),te.push.apply(te,ue)}return te}function yt(Ee){for(var ee=1;ee<arguments.length;ee++){var te=arguments[ee]!=null?arguments[ee]:{};ee%2?be(Object(te),!0).forEach(function(ue){$e(Ee,ue,te[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ee,Object.getOwnPropertyDescriptors(te)):be(Object(te)).forEach(function(ue){Object.defineProperty(Ee,ue,Object.getOwnPropertyDescriptor(te,ue))})}return Ee}function vt(Ee,ee){if(Ee==null)return{};var te={},ue=Object.keys(Ee),ae,de;for(de=0;de<ue.length;de++)ae=ue[de],!(ee.indexOf(ae)>=0)&&(te[ae]=Ee[ae]);return te}function Je(Ee){if(Ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}function tt(Ee,ee){Ee.prototype=Object.create(ee.prototype),Ee.prototype.constructor=Ee,Ee.__proto__=ee}function $e(Ee,ee,te){return ee in Ee?Object.defineProperty(Ee,ee,{value:te,enumerable:!0,configurable:!0,writable:!0}):Ee[ee]=te,Ee}var Qe=function(Ee){tt(ee,Ee);function ee(){for(var ue,ae=arguments.length,de=new Array(ae),ve=0;ve<ae;ve++)de[ve]=arguments[ve];return ue=Ee.call.apply(Ee,[this].concat(de))||this,$e(Je(ue),"state",void 0),$e(Je(ue),"lastHandleRect",null),$e(Je(ue),"slack",null),ue}var te=ee.prototype;return te.componentWillUnmount=function(){this.resetData()},te.lockAspectRatio=function(ae,de,ve){return de=ae/ve,ae=de*ve,[ae,de]},te.resetData=function(){this.lastHandleRect=this.slack=null},te.runConstraints=function(ae,de){var ve=[this.props.minConstraints,this.props.maxConstraints],Pe=ve[0],Ae=ve[1];if(!Pe&&!Ae)return[ae,de];if(this.props.lockAspectRatio){var xe=de===this.props.height;if(xe){var Le=this.props.width/this.props.height;de=ae/Le,ae=de*Le}else{var Te=this.props.height/this.props.width;ae=de/Te,de=ae*Te}}var He=ae,ze=de,Ke=this.slack||[0,0],Ze=Ke[0],Mt=Ke[1];return ae+=Ze,de+=Mt,Pe&&(ae=Math.max(Pe[0],ae),de=Math.max(Pe[1],de)),Ae&&(ae=Math.min(Ae[0],ae),de=Math.min(Ae[1],de)),this.slack=[Ze+(He-ae),Mt+(ze-de)],[ae,de]},te.resizeHandler=function(ae,de){var ve=this;return function(Pe,Ae){var xe=Ae.node,Le=Ae.deltaX,Te=Ae.deltaY;ae==="onResizeStart"&&ve.resetData();var He=(ve.props.axis==="both"||ve.props.axis==="x")&&de!=="n"&&de!=="s",ze=(ve.props.axis==="both"||ve.props.axis==="y")&&de!=="e"&&de!=="w";if(!(!He&&!ze)){var Ke=de[0],Ze=de[de.length-1],Mt=xe.getBoundingClientRect();if(ve.lastHandleRect!=null){if(Ze==="w"){var Xe=Mt.left-ve.lastHandleRect.left;Le+=Xe}if(Ke==="n"){var Ft=Mt.top-ve.lastHandleRect.top;Te+=Ft}}ve.lastHandleRect=Mt,Ze==="w"&&(Le=-Le),Ke==="n"&&(Te=-Te);var Ct=ve.props.width+(He?Le/ve.props.transformScale:0),Nt=ve.props.height+(ze?Te/ve.props.transformScale:0),It=ve.runConstraints(Ct,Nt);Ct=It[0],Nt=It[1];var _t=Ct!==ve.props.width||Nt!==ve.props.height,lt=typeof ve.props[ae]=="function"?ve.props[ae]:null,je=ae==="onResize"&&!_t;lt&&!je&&(typeof Pe.persist=="function"&&Pe.persist(),lt(Pe,{node:xe,size:{width:Ct,height:Nt},handle:de})),ae==="onResizeStop"&&ve.resetData()}}},te.renderResizeHandle=function(ae){var de=this.props.handle;return de?typeof de=="function"?de(ae):de:pe.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+ae})},te.render=function(){var ae=this,de=this.props,ve=de.children,Pe=de.className,Ae=de.draggableOpts,xe=de.width,Le=de.height,Te=de.handle,He=de.handleSize,ze=de.lockAspectRatio,Ke=de.axis,Ze=de.minConstraints,Mt=de.maxConstraints,Xe=de.onResize,Ft=de.onResizeStop,Ct=de.onResizeStart,Nt=de.resizeHandles,It=de.transformScale,_t=vt(de,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]);return(0,Ve.cloneElement)(ve,yt(yt({},_t),{},{className:(Pe?Pe+" ":"")+"react-resizable",children:[].concat(ve.props.children,Nt.map(function(lt){return pe.default.createElement(Ie.DraggableCore,it({},Ae,{key:"resizableHandle-"+lt,onStop:ae.resizeHandler("onResizeStop",lt),onStart:ae.resizeHandler("onResizeStart",lt),onDrag:ae.resizeHandler("onResize",lt)}),ae.renderResizeHandle(lt))}))}))},ee}(pe.default.Component);zt.default=Qe,$e(Qe,"propTypes",st.resizableProps),$e(Qe,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1})},60842:function(gn,zt,he){"use strict";var pe;pe=!0,zt.default=void 0;var Ie=yt(he(59301)),Ve=it(he(12708)),st=it(he(80010)),We=he(6217);function it(ue){return ue&&ue.__esModule?ue:{default:ue}}function be(){if(typeof WeakMap!="function")return null;var ue=new WeakMap;return be=function(){return ue},ue}function yt(ue){if(ue&&ue.__esModule)return ue;if(ue===null||typeof ue!="object"&&typeof ue!="function")return{default:ue};var ae=be();if(ae&&ae.has(ue))return ae.get(ue);var de={},ve=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pe in ue)if(Object.prototype.hasOwnProperty.call(ue,Pe)){var Ae=ve?Object.getOwnPropertyDescriptor(ue,Pe):null;Ae&&(Ae.get||Ae.set)?Object.defineProperty(de,Pe,Ae):de[Pe]=ue[Pe]}return de.default=ue,ae&&ae.set(ue,de),de}function vt(){return vt=Object.assign||function(ue){for(var ae=1;ae<arguments.length;ae++){var de=arguments[ae];for(var ve in de)Object.prototype.hasOwnProperty.call(de,ve)&&(ue[ve]=de[ve])}return ue},vt.apply(this,arguments)}function Je(ue,ae){var de=Object.keys(ue);if(Object.getOwnPropertySymbols){var ve=Object.getOwnPropertySymbols(ue);ae&&(ve=ve.filter(function(Pe){return Object.getOwnPropertyDescriptor(ue,Pe).enumerable})),de.push.apply(de,ve)}return de}function tt(ue){for(var ae=1;ae<arguments.length;ae++){var de=arguments[ae]!=null?arguments[ae]:{};ae%2?Je(Object(de),!0).forEach(function(ve){ee(ue,ve,de[ve])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(de)):Je(Object(de)).forEach(function(ve){Object.defineProperty(ue,ve,Object.getOwnPropertyDescriptor(de,ve))})}return ue}function $e(ue,ae){if(ue==null)return{};var de={},ve=Object.keys(ue),Pe,Ae;for(Ae=0;Ae<ve.length;Ae++)Pe=ve[Ae],!(ae.indexOf(Pe)>=0)&&(de[Pe]=ue[Pe]);return de}function Qe(ue){if(ue===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue}function Ee(ue,ae){ue.prototype=Object.create(ae.prototype),ue.prototype.constructor=ue,ue.__proto__=ae}function ee(ue,ae,de){return ae in ue?Object.defineProperty(ue,ae,{value:de,enumerable:!0,configurable:!0,writable:!0}):ue[ae]=de,ue}var te=function(ue){Ee(ae,ue);function ae(){for(var ve,Pe=arguments.length,Ae=new Array(Pe),xe=0;xe<Pe;xe++)Ae[xe]=arguments[xe];return ve=ue.call.apply(ue,[this].concat(Ae))||this,ee(Qe(ve),"state",{width:ve.props.width,height:ve.props.height,propsWidth:ve.props.width,propsHeight:ve.props.height}),ee(Qe(ve),"onResize",function(Le,Te){var He=Te.size;ve.props.onResize?(Le.persist&&Le.persist(),ve.setState(He,function(){return ve.props.onResize&&ve.props.onResize(Le,Te)})):ve.setState(He)}),ve}ae.getDerivedStateFromProps=function(Pe,Ae){return Ae.propsWidth!==Pe.width||Ae.propsHeight!==Pe.height?{width:Pe.width,height:Pe.height,propsWidth:Pe.width,propsHeight:Pe.height}:null};var de=ae.prototype;return de.render=function(){var Pe=this.props,Ae=Pe.handle,xe=Pe.handleSize,Le=Pe.onResize,Te=Pe.onResizeStart,He=Pe.onResizeStop,ze=Pe.draggableOpts,Ke=Pe.minConstraints,Ze=Pe.maxConstraints,Mt=Pe.lockAspectRatio,Xe=Pe.axis,Ft=Pe.width,Ct=Pe.height,Nt=Pe.resizeHandles,It=Pe.style,_t=Pe.transformScale,lt=$e(Pe,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"]);return Ie.createElement(st.default,{axis:Xe,draggableOpts:ze,handle:Ae,handleSize:xe,height:this.state.height,lockAspectRatio:Mt,maxConstraints:Ze,minConstraints:Ke,onResizeStart:Te,onResize:this.onResize,onResizeStop:He,resizeHandles:Nt,transformScale:_t,width:this.state.width},Ie.createElement("div",vt({},lt,{style:tt(tt({},It),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},ae}(Ie.Component);zt.default=te,ee(te,"propTypes",tt(tt({},We.resizableProps),{},{children:Ve.default.element}))},6217:function(gn,zt,he){"use strict";zt.__esModule=!0,zt.resizableProps=void 0;var pe=Ve(he(12708)),Ie=he(12911);function Ve(We){return We&&We.__esModule?We:{default:We}}var st={axis:pe.default.oneOf(["both","x","y","none"]),className:pe.default.string,children:pe.default.element.isRequired,draggableOpts:pe.default.shape({allowAnyClick:pe.default.bool,cancel:pe.default.string,children:pe.default.node,disabled:pe.default.bool,enableUserSelectHack:pe.default.bool,offsetParent:pe.default.node,grid:pe.default.arrayOf(pe.default.number),handle:pe.default.string,nodeRef:pe.default.object,onStart:pe.default.func,onDrag:pe.default.func,onStop:pe.default.func,onMouseDown:pe.default.func,scale:pe.default.number}),height:pe.default.number.isRequired,handle:pe.default.oneOfType([pe.default.node,pe.default.func]),handleSize:pe.default.arrayOf(pe.default.number),lockAspectRatio:pe.default.bool,maxConstraints:pe.default.arrayOf(pe.default.number),minConstraints:pe.default.arrayOf(pe.default.number),onResizeStop:pe.default.func,onResizeStart:pe.default.func,onResize:pe.default.func,resizeHandles:pe.default.arrayOf(pe.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:pe.default.number,width:pe.default.number.isRequired};zt.resizableProps=st},73638:function(gn,zt,he){"use strict";zt.__esModule=!0,zt.cloneElement=it;var pe=Ie(he(59301));function Ie(be){return be&&be.__esModule?be:{default:be}}function Ve(be,yt){var vt=Object.keys(be);if(Object.getOwnPropertySymbols){var Je=Object.getOwnPropertySymbols(be);yt&&(Je=Je.filter(function(tt){return Object.getOwnPropertyDescriptor(be,tt).enumerable})),vt.push.apply(vt,Je)}return vt}function st(be){for(var yt=1;yt<arguments.length;yt++){var vt=arguments[yt]!=null?arguments[yt]:{};yt%2?Ve(Object(vt),!0).forEach(function(Je){We(be,Je,vt[Je])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors(vt)):Ve(Object(vt)).forEach(function(Je){Object.defineProperty(be,Je,Object.getOwnPropertyDescriptor(vt,Je))})}return be}function We(be,yt,vt){return yt in be?Object.defineProperty(be,yt,{value:vt,enumerable:!0,configurable:!0,writable:!0}):be[yt]=vt,be}function it(be,yt){return yt.style&&be.props.style&&(yt.style=st(st({},be.props.style),yt.style)),yt.className&&be.props.className&&(yt.className=be.props.className+" "+yt.className),pe.default.cloneElement(be,yt)}},9221:function(gn,zt,he){"use strict";gn.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},gn.exports.Resizable=he(80010).default,gn.exports.ResizableBox=he(60842).default},25510:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEBQICuwRCgRg2SOMjmEGBYICQYGgQFBgJ1MgAMtO5l70PSgQFAgKBAWCAnuEAgFY9gijY5hBgaBAUCAoEBTYyRQIwLKTuRd9DwoEBYICQYGgwB6hQACWPcLoGGZQICgQFAgKBAV2MgUCsOxk7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Jp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKY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YASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(gn,zt,he){"use strict";gn.exports=he.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCji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aUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96622:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAUCAYAAACeXl35AAAAAXNSR0IArs4c6QAAAI5JREFUSEtjZKASMI65Jnl2idZzQsYxElJArLxR/CVjxr8szwhZSlULQY4jZCnVLSRkKU0sxGcpzSzEZSkjKLKJTRjkqEOPU5pbiO5TuliIbCndLIRZOnwthCUeuvgQOaXS3EKMbEFO3sKmB1t+xlau0qykwVWI08RCfDUG1S2ka/VEyDJw5qdWoiG2iQEA4ntvEVdpqFkAAAAASUVORK5CYII="},12971:function(gn){"use strict";gn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAB8tJREFUWEetlwtwFdUZx3/n7O7de5MLgYQkPIoYw0sBJQ0VKAEdW0YeAq1ShtZaeZaHVXFspRUqSZ1UpePoKIjQBlAErYpMjR2EgsVGGSgUqoCiLdQiBHklkJv72tepuzfBiEEKw5nZuXt3v/ud3/mf7/vOdwWXMKo/Uh3qGlmoBAM8BymafZy9+cJp8EiAkGDoNIYEi8b3Ey+cb9pWXFyYcOUO9wkjW85JJc5j6wO08kpqoF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Pzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},41727:function(gn){"use strict";gn.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAA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idji4YDQlSF8z4PY6FkfxlWWUG259vIPiGwcfoKU4gNDAssOZcTIRWhaOQUU35lHZIQpWuOwciOqDV7h9zmNb0sGHZHpivpY0fNdbZJkd7HLJcaxq83fSwZ4nmeSMI0D5XJfGcETmxyFjSUUrRtL2NI5/d9h0Jp2HSOBuxSTIzMxvbbIsgzLL8tPCgrSMkyzKDnHW9qtcNLPCDHIqQwQjNIIVkQ7FfNI9zl59TWeBD11jTqR1tIvrKda2d/e3kmOOIW3vLiR7E6asQTyjjNeqDGMKFKrWCariPcqrz5O1tik2blTb5tPGx2rgU9VjmPUEWSWYGmoKSN61fBSYZgiSnsRSlIZRBRzyuRo2tRE52nlB5NeOOObkDzCzPhmY5j2OVqo5FTvpevk3v+nNcnStciqioqKiqi87CieF7hkarXNVUVFTp16flP8AUX7oqfRU+qc4DIwzGkG5HNciKiovX7/hf8VPsqL0VFRUVEVOYc6+c+OOOOOOOOOOOOOOOOOOOOOOOObjjzFTMhhY573uRqI1FXrtevk7r+mtanaucqoiIiqqoic7BCeZ7RjarnOVERETr06/lf8AET7qq/RE+q84EIwLHEI5GtaiqqqvT7fhP9VfsiJ1VVVERFVef//Z"},69429:function(gn,zt,he){"use strict";gn.exports=he.p+"static/lock.1b5026ee.png"},16722:function(gn,zt,he){"use strict";he.d(zt,{Z:function(){return yt}});const pe=vt=>typeof vt=="object"&&vt!=null&&vt.nodeType===1,Ie=(vt,Je)=>(!Je||vt!=="hidden")&&vt!=="visible"&&vt!=="clip",Ve=(vt,Je)=>{if(vt.clientHeight<vt.scrollHeight||vt.clientWidth<vt.scrollWidth){const tt=getComputedStyle(vt,null);return Ie(tt.overflowY,Je)||Ie(tt.overflowX,Je)||($e=>{const Qe=(Ee=>{if(!Ee.ownerDocument||!Ee.ownerDocument.defaultView)return null;try{return Ee.ownerDocument.defaultView.frameElement}catch(ee){return null}})($e);return!!Qe&&(Qe.clientHeight<$e.scrollHeight||Qe.clientWidth<$e.scrollWidth)})(vt)}return!1},st=(vt,Je,tt,$e,Qe,Ee,ee,te)=>Ee<vt&&ee>Je||Ee>vt&&ee<Je?0:Ee<=vt&&te<=tt||ee>=Je&&te>=tt?Ee-vt-$e:ee>Je&&te<tt||Ee<vt&&te>tt?ee-Je+Qe:0,We=vt=>{const Je=vt.parentElement;return Je==null?vt.getRootNode().host||null:Je},it=(vt,Je)=>{var tt,$e,Qe,Ee;if(typeof document=="undefined")return[];const{scrollMode:ee,block:te,inline:ue,boundary:ae,skipOverflowHiddenElements:de}=Je,ve=typeof ae=="function"?ae:Ht=>Ht!==ae;if(!pe(vt))throw new TypeError("Invalid target");const Pe=document.scrollingElement||document.documentElement,Ae=[];let xe=vt;for(;pe(xe)&&ve(xe);){if(xe=We(xe),xe===Pe){Ae.push(xe);break}xe!=null&&xe===document.body&&Ve(xe)&&!Ve(document.documentElement)||xe!=null&&Ve(xe,de)&&Ae.push(xe)}const Le=($e=(tt=window.visualViewport)==null?void 0:tt.width)!=null?$e:innerWidth,Te=(Ee=(Qe=window.visualViewport)==null?void 0:Qe.height)!=null?Ee:innerHeight,{scrollX:He,scrollY:ze}=window,{height:Ke,width:Ze,top:Mt,right:Xe,bottom:Ft,left:Ct}=vt.getBoundingClientRect(),{top:Nt,right:It,bottom:_t,left:lt}=(Ht=>{const xt=window.getComputedStyle(Ht);return{top:parseFloat(xt.scrollMarginTop)||0,right:parseFloat(xt.scrollMarginRight)||0,bottom:parseFloat(xt.scrollMarginBottom)||0,left:parseFloat(xt.scrollMarginLeft)||0}})(vt);let je=te==="start"||te==="nearest"?Mt-Nt:te==="end"?Ft+_t:Mt+Ke/2-Nt+_t,Et=ue==="center"?Ct+Ze/2-lt+It:ue==="end"?Xe+It:Ct-lt;const ln=[];for(let Ht=0;Ht<Ae.length;Ht++){const xt=Ae[Ht],{height:Bt,width:rn,top:Hn,right:pn,bottom:_n,left:Lt}=xt.getBoundingClientRect();if(ee==="if-needed"&&Mt>=0&&Ct>=0&&Ft<=Te&&Xe<=Le&&(xt===Pe&&!Ve(xt)||Mt>=Hn&&Ft<=_n&&Ct>=Lt&&Xe<=pn))return ln;const Un=getComputedStyle(xt),Gn=parseInt(Un.borderLeftWidth,10),ui=parseInt(Un.borderTopWidth,10),Ln=parseInt(Un.borderRightWidth,10),Wt=parseInt(Un.borderBottomWidth,10);let Vt=0,mt=0;const Ye="offsetWidth"in xt?xt.offsetWidth-xt.clientWidth-Gn-Ln:0,Zt="offsetHeight"in xt?xt.offsetHeight-xt.clientHeight-ui-Wt:0,Gt="offsetWidth"in xt?xt.offsetWidth===0?0:rn/xt.offsetWidth:0,ft="offsetHeight"in xt?xt.offsetHeight===0?0:Bt/xt.offsetHeight:0;if(Pe===xt)Vt=te==="start"?je:te==="end"?je-Te:te==="nearest"?st(ze,ze+Te,Te,ui,Wt,ze+je,ze+je+Ke,Ke):je-Te/2,mt=ue==="start"?Et:ue==="center"?Et-Le/2:ue==="end"?Et-Le:st(He,He+Le,Le,Gn,Ln,He+Et,He+Et+Ze,Ze),Vt=Math.max(0,Vt+ze),mt=Math.max(0,mt+He);else{Vt=te==="start"?je-Hn-ui:te==="end"?je-_n+Wt+Zt:te==="nearest"?st(Hn,_n,Bt,ui,Wt+Zt,je,je+Ke,Ke):je-(Hn+Bt/2)+Zt/2,mt=ue==="start"?Et-Lt-Gn:ue==="center"?Et-(Lt+rn/2)+Ye/2:ue==="end"?Et-pn+Ln+Ye:st(Lt,pn,rn,Gn,Ln+Ye,Et,Et+Ze,Ze);const{scrollLeft:nt,scrollTop:Oe}=xt;Vt=ft===0?0:Math.max(0,Math.min(Oe+Vt/ft,xt.scrollHeight-Bt/ft+Zt)),mt=Gt===0?0:Math.max(0,Math.min(nt+mt/Gt,xt.scrollWidth-rn/Gt+Ye)),je+=Oe-Vt,Et+=nt-mt}ln.push({el:xt,top:Vt,left:mt})}return ln},be=vt=>vt===!1?{block:"end",inline:"nearest"}:(Je=>Je===Object(Je)&&Object.keys(Je).length!==0)(vt)?vt:{block:"start",inline:"nearest"};function yt(vt,Je){if(!vt.isConnected||!(Qe=>{let Ee=Qe;for(;Ee&&Ee.parentNode;){if(Ee.parentNode===document)return!0;Ee=Ee.parentNode instanceof ShadowRoot?Ee.parentNode.host:Ee.parentNode}return!1})(vt))return;const tt=(Qe=>{const Ee=window.getComputedStyle(Qe);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(vt);if((Qe=>typeof Qe=="object"&&typeof Qe.behavior=="function")(Je))return Je.behavior(it(vt,Je));const $e=typeof Je=="boolean"||Je==null?void 0:Je.behavior;for(const{el:Qe,top:Ee,left:ee}of it(vt,be(Je))){const te=Ee-tt.top+tt.bottom,ue=ee-tt.left+tt.right;Qe.scroll({top:te,left:ue,behavior:$e})}}}}]);
|
|
|
}()); |