|
|
!(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=(fn,jt,he)=>jt in fn?aP(fn,jt,{enumerable:!0,configurable:!0,writable:!0,value:he}):fn[jt]=he,hf=(fn,jt)=>{for(var he in jt||(jt={}))Sx.call(jt,he)&&yx(fn,he,jt[he]);if(iv)for(var he of iv(jt))xx.call(jt,he)&&yx(fn,he,jt[he]);return fn},_y=(fn,jt)=>sP(fn,lP(jt));var Px=(fn,jt)=>{var he={};for(var ge in fn)Sx.call(fn,ge)&&jt.indexOf(ge)<0&&(he[ge]=fn[ge]);if(fn!=null&&iv)for(var ge of iv(fn))jt.indexOf(ge)<0&&xx.call(fn,ge)&&(he[ge]=fn[ge]);return he};(self.webpackChunk=self.webpackChunk||[]).push([[5825],{35323:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},19155:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},10402:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},72295:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},93343:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},24566:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},80205:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},61441:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},30631:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},43971:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},58358:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},44757:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},16537:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},77042:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},5527:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},86902:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},53878:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},21970:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Xe,et){return Ie.createElement(He.Z,(0,ge.Z)({},Xe,{ref:et,icon:ot}))},be=Ie.forwardRef(it),yt=be},79906:function(){"use strict"},93938:function(fn,jt){"use strict";jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74809:function(fn,jt){"use strict";jt.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(fn,jt){"use strict";jt.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(fn,jt){"use strict";jt.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(fn,jt,he){"use strict";var ge=he(59301),Ie=Object.defineProperty,Ke=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,it=(ct,Xe,et)=>Xe in ct?Ie(ct,Xe,{enumerable:!0,configurable:!0,writable:!0,value:et}):ct[Xe]=et,be=(ct,Xe)=>{for(var et in Xe||(Xe={}))ot.call(Xe,et)&&it(ct,et,Xe[et]);if(Ke)for(var et of Ke(Xe))He.call(Xe,et)&&it(ct,et,Xe[et]);return ct};const yt=ct=>React.createElement("svg",be({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},ct),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"})));jt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},37404:function(){"use strict";function fn(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(fn.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(fn.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(fn.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(fn.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 fn))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 jt=[];function he(Ee,ee){var te=jt.pop();return te===void 0?new go.Point(Ee,ee):(te.x=Ee,te.y=ee,te)}function ge(){var Ee=jt.pop();return Ee===void 0?new go.Point:Ee}function Ie(Ee){jt.push(Ee)}function Ke(Ee,ee,te,ue,oe,de,ve,xe,Ae){Ae||(Ae=new go.Point);var Pe=Ee-te,Ne=oe-ve,Le=NaN,Re=NaN;if(Pe===0)if(Ne===0)Ee===te&&(Le=Ee,Re=ee);else{var je=(de-xe)/Ne,Ge=de-je*oe;Le=Ee,Re=je*Le+Ge}else if(Ne===0){var We=(ee-ue)/Pe,bt=ee-We*Ee;Le=oe,Re=We*Le+bt}else{var We=(ee-ue)/Pe,je=(de-xe)/Ne,bt=ee-We*Ee,Ge=de-je*oe;Le=(Ge-bt)/(We-je),Re=We*Le+bt}return Ae.x=Le,Ae.y=Re,Ae}function ot(Ee,ee,te,ue,oe,de,ve,xe,Ae,Pe,Ne,Le,Re,je){var Ge=1-Ae,We=Ae,bt=Ee*Ge+te*We,Qe=ee*Ge+ue*We,Dt=te*Ge+oe*We,vt=ue*Ge+de*We,kt=oe*Ge+ve*We,Rt=de*Ge+xe*We,Jt=bt*Ge+Dt*We,at=Qe*Ge+vt*We,Ze=Dt*Ge+kt*We,Mt=vt*Ge+Rt*We,Yt=Jt*Ge+Ze*We,Vt=at*Ge+Mt*We;Pe.x=bt,Pe.y=Qe,Ne.x=Jt,Ne.y=at,Le.x=Yt,Le.y=Vt,Re.x=Ze,Re.y=Mt,je.x=kt,je.y=Rt}var He=new go.Spot(.156,.156),it=new go.Spot(.844,.844),be=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new fn("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 oe=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-oe,0,ee,oe)).add(new go.PathSegment(go.PathSegment.Line,ee,te-ue)).add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,te,ee,te-oe,ee-oe,te)).add(new go.PathSegment(go.PathSegment.Line,ue,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te-ue,oe,te,0,te-oe)).add(new go.PathSegment(go.PathSegment.Line,0,ue)).add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,oe,oe,0).close()));return oe>1&&(de.spot1=new go.Spot(0,0,oe,oe),de.spot2=new go.Spot(1,1,-oe,-oe)),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,oe=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 oe.spot1=He,oe.spot2=it,oe.defaultStretch=go.GraphObject.Uniform,oe}),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 fn("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 oe=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(oe,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-oe,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-oe,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,oe,te).close())),oe<ee/2&&de.setSpots(oe/ee,0,(ee-oe)/ee,1),de}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new fn("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 oe=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(oe,0).add(new go.PathSegment(go.PathSegment.Line,ee,0)).add(new go.PathSegment(go.PathSegment.Line,ee-oe,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-oe,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,oe,te).close())),oe<ee/2&&de.setSpots(oe/ee,0,(ee-oe)/ee,1),de}}),go.Shape.setFigureParameter("Trapezoid1",0,new fn("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 oe=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(oe,0).add(new go.PathSegment(go.PathSegment.Line,ee-oe,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-oe,te)).add(new go.PathSegment(go.PathSegment.Line,oe,te).close())),oe<ee/2&&de.setSpots(oe/ee,0,(ee-oe)/ee,1),de}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new fn("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 oe=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(oe,0).add(new go.PathSegment(go.PathSegment.Line,ee-oe,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-oe,te)).add(new go.PathSegment(go.PathSegment.Line,oe,te).close())),oe<ee/2&&de.setSpots(oe/ee,0,(ee-oe)/ee,1),de}}),go.Shape.setFigureParameter("ManualOperation",0,new fn("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 oe=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-oe,te)).add(new go.PathSegment(go.PathSegment.Line,oe,te).close())):de.add(new go.PathFigure(oe,0).add(new go.PathSegment(go.PathSegment.Line,ee-oe,0)).add(new go.PathSegment(go.PathSegment.Line,ee,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())),oe<ee/2&&de.setSpots(oe/ee,0,(ee-oe)/ee,1),de}});var yt=[];function ct(){var Ee=yt.pop();return Ee===void 0?[]:Ee}function Xe(Ee){Ee.length=0,yt.push(Ee)}function et(Ee){for(var ee=ct(),te=.5,ue=.5,oe=Math.PI*1.5,de=0,ve=0;ve<Ee;ve++)de=2*Math.PI/Ee*ve+oe,ee[ve]=new go.Point(ue+te*Math.cos(de),ue+te*Math.sin(de));return ee.push(ee[0]),ee}function Je(Ee){var ee=Ue(Ee),te=ct();te[0]=ee[0];for(var ue=1,oe=1;ue<ee.length;ue+=2,oe+=3)te[oe]=ee[ue],te[oe+1]=ee[ue],te[oe+2]=ee[ue+1];return Xe(ee),te}function Ue(Ee){for(var ee=et(Ee),te=ct(),ue=Math.floor(ee.length/2),oe=ee.length-1,de=Ee%2===0?2:1,ve=0;ve<oe;ve++){var xe=ee[ve],Ae=ee[ve+1],Pe=ee[(ue+ve-1)%oe],Ne=ee[(ue+ve+de)%oe];te[ve*2]=xe,te[ve*2+1]=Ke(xe.x,xe.y,Pe.x,Pe.y,Ae.x,Ae.y,Ne.x,Ne.y,new go.Point)}return te[te.length]=te[0],Xe(ee),te}go.Shape.defineFigureGenerator("Pentagon",function(Ee,ee,te){var ue=et(5),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.2,.22),oe.spot2=new go.Spot(.8,.9),oe}),go.Shape.defineFigureGenerator("Hexagon",function(Ee,ee,te){var ue=et(6),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.07,.25),oe.spot2=new go.Spot(.93,.75),oe}),go.Shape.defineFigureGenerator("Heptagon",function(Ee,ee,te){var ue=et(7),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.2,.15),oe.spot2=new go.Spot(.8,.85),oe}),go.Shape.defineFigureGenerator("Octagon",function(Ee,ee,te){var ue=et(8),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.15,.15),oe.spot2=new go.Spot(.85,.85),oe}),go.Shape.defineFigureGenerator("Nonagon",function(Ee,ee,te){var ue=et(9),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.17,.13),oe.spot2=new go.Spot(.82,.82),oe}),go.Shape.defineFigureGenerator("Decagon",function(Ee,ee,te){var ue=et(10),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.16,.16),oe.spot2=new go.Spot(.84,.84),oe}),go.Shape.defineFigureGenerator("Dodecagon",function(Ee,ee,te){var ue=et(12),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.16,.16),oe.spot2=new go.Spot(.84,.84),oe}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ee,ee,te){var ue=Ue(5),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.266,.333),oe.spot2=new go.Spot(.733,.733),oe}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ee,ee,te){var ue=Ue(6),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.17,.25),oe.spot2=new go.Spot(.83,.75),oe}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ee,ee,te){var ue=Ue(7),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.222,.277),oe.spot2=new go.Spot(.777,.666),oe}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ee,ee,te){var ue=Ue(8),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.25,.25),oe.spot2=new go.Spot(.75,.75),oe}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ee,ee,te){var ue=Ue(9),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.222,.277),oe.spot2=new go.Spot(.777,.666),oe}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ee,ee,te){var ue=Ue(10),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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()),Xe(ue),oe.spot1=new go.Spot(.281,.261),oe.spot2=new go.Spot(.723,.748),oe}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ee,ee,te){var ue=Je(5),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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(),Xe(ue),oe.spot1=new go.Spot(.222,.277),oe.spot2=new go.Spot(.777,.777),oe}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ee,ee,te){var ue=Je(6),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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(),Xe(ue),oe.spot1=new go.Spot(.17,.222),oe.spot2=new go.Spot(.833,.777),oe}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ee,ee,te){var ue=Je(7),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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(),Xe(ue),oe.spot1=new go.Spot(.222,.222),oe.spot2=new go.Spot(.777,.777),oe}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ee,ee,te){var ue=Je(8),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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(),Xe(ue),oe.spot1=new go.Spot(.222,.222),oe.spot2=new go.Spot(.777,.777),oe}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ee,ee,te){var ue=Je(9),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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(),Xe(ue),oe.spot1=new go.Spot(.222,.222),oe.spot2=new go.Spot(.777,.777),oe}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ee,ee,te){var ue=Je(10),oe=new go.Geometry,de=new go.PathFigure(ue[0].x*ee,ue[0].y*te,!0);oe.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(),Xe(ue),oe.spot1=new go.Spot(.222,.222),oe.spot2=new go.Spot(.777,.777),oe}),go.Shape.setFigureParameter("FramedRectangle",0,new fn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new fn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN,oe=Ee?Ee.parameter2:NaN;isNaN(ue)&&(ue=8),isNaN(oe)&&(oe=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&&oe<te/2&&(ve.add(new go.PathSegment(go.PathSegment.Move,ue,oe)),ve.add(new go.PathSegment(go.PathSegment.Line,ue,te-oe)),ve.add(new go.PathSegment(go.PathSegment.Line,ee-ue,te-oe)),ve.add(new go.PathSegment(go.PathSegment.Line,ee-ue,oe).close())),de.setSpots(0,0,1,1,ue,oe,-ue,-oe),de}),go.Shape.setFigureParameter("Ring",0,new fn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=8);var oe=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,oe,oe,oe,oe).close());var xe=Math.max(oe-ue,0);return xe>0&&(ve.add(new go.PathSegment(go.PathSegment.Move,ee/2+xe,ee/2)),ve.add(new go.PathSegment(go.PathSegment.Arc,0,-360,oe,oe,xe,xe).close())),de.spot1=He,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 fn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new fn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN,oe=Ee?Ee.parameter2:NaN;isNaN(ue)&&(ue=0),isNaN(oe)&&(oe=315);var de=ue%360;de<0&&(de+=360);var ve=oe%360,xe=Math.min(ee,te)/2;return new go.Geometry().add(new go.PathFigure(xe,xe).add(new go.PathSegment(go.PathSegment.Arc,de,ve,xe,xe,xe,xe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ee,ee,te){var ue=be/Math.SQRT2*.5,oe=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,oe*ee,de*te,ee,(1-ue)*te,(oe+ue)*ee,(de+ue)*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()))}),go.Shape.setFigureParameter("ThickCross",0,new fn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=30);var oe=Math.min(ue,ee)/2,de=ee/2,ve=te/2;return new go.Geometry().add(new go.PathFigure(de-oe,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+oe,0)).add(new go.PathSegment(go.PathSegment.Line,de+oe,ve-oe)).add(new go.PathSegment(go.PathSegment.Line,ee,ve-oe)).add(new go.PathSegment(go.PathSegment.Line,ee,ve+oe)).add(new go.PathSegment(go.PathSegment.Line,de+oe,ve+oe)).add(new go.PathSegment(go.PathSegment.Line,de+oe,te)).add(new go.PathSegment(go.PathSegment.Line,de-oe,te)).add(new go.PathSegment(go.PathSegment.Line,de-oe,ve+oe)).add(new go.PathSegment(go.PathSegment.Line,0,ve+oe)).add(new go.PathSegment(go.PathSegment.Line,0,ve-oe)).add(new go.PathSegment(go.PathSegment.Line,de-oe,ve-oe).close()))}),go.Shape.setFigureParameter("ThinCross",0,new fn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var oe=Math.min(ue,ee)/2,de=ee/2,ve=te/2;return new go.Geometry().add(new go.PathFigure(de-oe,0,!0).add(new go.PathSegment(go.PathSegment.Line,de+oe,0)).add(new go.PathSegment(go.PathSegment.Line,de+oe,ve-oe)).add(new go.PathSegment(go.PathSegment.Line,ee,ve-oe)).add(new go.PathSegment(go.PathSegment.Line,ee,ve+oe)).add(new go.PathSegment(go.PathSegment.Line,de+oe,ve+oe)).add(new go.PathSegment(go.PathSegment.Line,de+oe,te)).add(new go.PathSegment(go.PathSegment.Line,de-oe,te)).add(new go.PathSegment(go.PathSegment.Line,de-oe,ve+oe)).add(new go.PathSegment(go.PathSegment.Line,0,ve+oe)).add(new go.PathSegment(go.PathSegment.Line,0,ve-oe)).add(new go.PathSegment(go.PathSegment.Line,de-oe,ve-oe).close()))}),go.Shape.setFigureParameter("ThickX",0,new fn("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 oe=new go.Geometry(go.Geometry.Rectangle);return oe.startX=0,oe.startY=0,oe.endX=ee,oe.endY=te,oe}else{var de=ee/2,ve=te/2,xe=Math.atan2(te,ee),Ae=ue-Math.min(Math.cos(xe)*ue/2,de),Pe=ue-Math.min(Math.sin(xe)*ue/2,ve),oe=new go.Geometry,Ne=new go.PathFigure(Ae,0,!0);return oe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,de,.2*te)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee-Ae,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,Pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.8*ee,ve)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee,te-Pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,ee-Ae,te)),Ne.add(new go.PathSegment(go.PathSegment.Line,de,.8*te)),Ne.add(new go.PathSegment(go.PathSegment.Line,Ae,te)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,te-Pe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ve)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,Pe).close()),oe}}),go.Shape.setFigureParameter("ThinX",0,new fn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;(isNaN(ue)||ue<0)&&(ue=10);var oe=new go.Geometry,de=new go.PathFigure(.1*ee,0,!0);return oe.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()),oe}),go.Shape.setFigureParameter("SquareIBeam",0,new fn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.2);var oe=new go.Geometry,de=new go.PathFigure(0,0,!0);return oe.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()),oe}),go.Shape.setFigureParameter("RoundedIBeam",0,new fn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.5);var oe=new go.Geometry,de=new go.PathFigure(0,0,!0);return oe.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()),oe}),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,oe=new go.PathFigure(.4*ee,.6*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.15*ee,te,.5*ee,.75*te,.45*ee,.95*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.6*ee,.6*te,.55*ee,.95*te,.5*ee,.75*te));var de=.2,ve=.3,xe=0,Ae=de*be;return oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5+de+xe)*te,(.5-de+ve)*ee,(.5+Ae+xe)*te,(.5-Ae+ve)*ee,(.5+de+xe)*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+ve)*ee,(.5+xe)*te,(.5+Ae+ve)*ee,(.5+de+xe)*te,(.5+de+ve)*ee,(.5+Ae+xe)*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5-de+xe)*te,(1-.5+de+ve)*ee,(.5-Ae+xe)*te,(.5+Ae+ve)*ee,(.5-de+xe)*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.65*ee,.36771243*te,(.5-Ae+ve)*ee,(.5-de+xe)*te,(.5-de+ve+.05)*ee,(.5-Ae+xe-.02)*te)),de=.2,ve=0,xe=-.3,Ae=de*be,oe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+de+ve)*ee,(.5+xe)*te,(.5+Ae+ve)*ee,(.5+de+xe)*te,(.5+de+ve)*ee,(.5+Ae+xe)*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5-de+xe)*te,(1-.5+de+ve)*ee,(.5-Ae+xe)*te,(.5+Ae+ve)*ee,(.5-de+xe)*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+ve)*ee,(.5+xe)*te,(.5-Ae+ve)*ee,(.5-de+xe)*te,(.5-de+ve)*ee,(.5-Ae+xe)*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Ae+ve)*ee,(.5+de+xe)*te,(.5-de+ve)*ee,(.5+Ae+xe)*te,(.5-Ae+ve)*ee,(.5+de+xe)*te)),de=.2,ve=-.3,xe=0,Ae=de*be,oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5-de+xe)*te,(1-.5+de+ve-.05)*ee,(.5-Ae+xe-.02)*te,(.5+Ae+ve)*ee,(.5-de+xe)*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-de+ve)*ee,(.5+xe)*te,(.5-Ae+ve)*ee,(.5-de+xe)*te,(.5-de+ve)*ee,(.5-Ae+xe)*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*ee,(.5+de+xe)*te,(.5-de+ve)*ee,(.5+Ae+xe)*te,(.5-Ae+ve)*ee,(.5+de+xe)*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,.6*te,(.5+Ae+ve)*ee,(.5+de+xe)*te,(.5+de+ve)*ee,(.5+Ae+xe)*te).close()),ue.setSpots(.06,.33,.93,.68),ue}),go.Shape.defineFigureGenerator("YinYang",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(ee*.5,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Arc,270,180,ee*.5,ee*.5,ee*.5,ee*.5)),oe.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ee*.5,ee*.75,ee*.25,ee*.25)),oe.add(new go.PathSegment(go.PathSegment.Arc,90,180,ee*.5,ee*.25,ee*.25,ee*.25));var de=.1,ve=.5,xe=.25;return oe.add(new go.PathSegment(go.PathSegment.Move,(ve+de)*ee,xe*te)),oe.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ee*ve,te*xe,de*ee,de*ee).close()),oe=new go.PathFigure(ee*.5,0,!1),ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ee*.5,ee*.5,ee*.5,ee*.5)),xe=.75,oe=new go.PathFigure((ve+de)*ee,xe*te,!0),ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Arc,0,360,ee*ve,te*xe,de*ee,de*ee).close()),ue.defaultStretch=go.GraphObject.Uniform,ue}),go.Shape.defineFigureGenerator("Peace",function(Ee,ee,te){var ue=.8535533905932737,oe=.5*ee,de=.5*te;return new go.Geometry().add(new go.PathFigure(oe,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,oe,de,oe,de)).add(new go.PathSegment(go.PathSegment.Line,oe,te)).add(new go.PathSegment(go.PathSegment.Move,oe,de)).add(new go.PathSegment(go.PathSegment.Line,(1-ue)*ee,ue*te)).add(new go.PathSegment(go.PathSegment.Move,oe,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,oe=be*.5,de=.5,ve=.5,xe=.5,Ae=new go.PathFigure(ve*ee,(xe-de)*te);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,xe*te,(ve-oe)*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+de)*te,(ve-de)*ee,(xe+oe)*te,(ve-oe)*ee,(xe+de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,xe*te,(ve+oe)*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-de)*te,(ve+de)*ee,(xe-oe)*te,(ve+oe)*ee,(xe-de)*te)),de=.4,oe=be*.4;var Pe=ge(),Ne=ge(),Le=ge(),Re=ge();ot(ve,xe-de,ve+oe,xe-de,ve+de,xe-oe,ve+de,xe,.42,Pe,Ne,Le,Re,Re);var je=ge(),Ge=ge(),We=ge();ot(ve,xe-de,ve+oe,xe-de,ve+de,xe-oe,ve+de,xe,.58,Re,Re,We,je,Ge);var bt=ge(),Qe=ge(),Dt=ge();ot(ve,xe+de,ve-oe,xe+de,ve-de,xe+oe,ve-de,xe,.42,bt,Qe,Dt,Re,Re);var vt=ge(),kt=ge(),Rt=ge();return ot(ve,xe+de,ve-oe,xe+de,ve-de,xe+oe,ve-de,xe,.58,Re,Re,Rt,vt,kt),Ae.add(new go.PathSegment(go.PathSegment.Move,Rt.x*ee,Rt.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,xe*te,vt.x*ee,vt.y*te,kt.x*ee,kt.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Le.x*ee,Le.y*te,Pe.x*ee,Pe.y*te,Ne.x*ee,Ne.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,Rt.x*ee,Rt.y*te).close()),Ae.add(new go.PathSegment(go.PathSegment.Move,Dt.x*ee,Dt.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Line,We.x*ee,We.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,xe*te,je.x*ee,je.y*te,Ge.x*ee,Ge.y*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Dt.x*ee,Dt.y*te,bt.x*ee,bt.y*te,Qe.x*ee,Qe.y*te).close()),Ie(Pe),Ie(Ne),Ie(Le),Ie(Re),Ie(je),Ie(Ge),Ie(We),Ie(bt),Ie(Qe),Ie(Dt),Ie(vt),Ie(kt),Ie(Rt),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 fn("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 oe=(ee-ue)/2,de=oe+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,oe,.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,oe=be*.4,de=.4,ve=.5,xe=.5,Ae=ge(),Pe=ge(),Ne=ge(),Le=ge(),Re=new go.PathFigure((ve-de)*ee,xe*te,!1);ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te)),ot(ve,xe-de,ve+oe,xe-de,ve+de,xe-oe,ve+de,xe,.44,Ne,Le,Pe,Ae,Ae),Re.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*ee,Pe.y*te,Ne.x*ee,Ne.y*te,Le.x*ee,Le.y*te));var je=he(Pe.x,Pe.y);ot(ve,xe-de,ve+oe,xe-de,ve+de,xe-oe,ve+de,xe,.56,Ae,Ae,Pe,Ne,Le);var Ge=he(Pe.x,Pe.y);Re.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.95*.9)*ee,je.y*.1*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*ee,je.y*.1*te)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*ee,0)),Re.add(new go.PathSegment(go.PathSegment.Line,ee,0)),Re.add(new go.PathSegment(go.PathSegment.Line,ee,.15*te)),Re.add(new go.PathSegment(go.PathSegment.Line,(Ge.x*.1+.9)*ee,.15*te)),Re.add(new go.PathSegment(go.PathSegment.Line,(Ge.x*.1+.9)*ee,(Ge.y*.1+.05*.9)*te)),Re.add(new go.PathSegment(go.PathSegment.Line,Ge.x*ee,Ge.y*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,xe*te,Ne.x*ee,Ne.y*te,Le.x*ee,Le.y*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,xe*te,(ve-oe)*ee,(xe+de)*te,(ve-de)*ee,(xe+oe)*te)),de=.35,oe=be*.35;var We=new go.PathFigure(ve*ee,(xe-de)*te,!1);ue.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,xe*te,(ve-oe)*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te)),We.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+de)*te,(ve-de)*ee,(xe+oe)*te,(ve-oe)*ee,(xe+de)*te)),We.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,xe*te,(ve+oe)*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),We.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-de)*te,(ve+de)*ee,(xe-oe)*te,(ve+oe)*ee,(xe-de)*te));var bt=new go.PathFigure((ve-de)*ee,xe*te,!1);return ue.add(bt),Ie(Ae),Ie(Pe),Ie(Ne),Ie(Le),Ie(je),Ie(Ge),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,oe=.375,de=0,ve=-.125,xe=oe*be,Ae=new go.PathFigure((.525+de)*ee,(.5+oe+ve)*te,!1);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+oe+de)*ee,(.5+ve)*te,(.5+xe+de)*ee,(.5+oe+ve)*te,(.5+oe+de)*ee,(.5+xe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ee,(.5-oe+ve)*te,(1-.5+oe+de)*ee,(.5-xe+ve)*te,(.5+xe+de)*ee,(.5-oe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-oe+de)*ee,(.5+ve)*te,(.5-xe+de)*ee,(.5-oe+ve)*te,(.5-oe+de)*ee,(.5-xe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+de)*ee,(.5+oe+ve)*te,(.5-oe+de)*ee,(.5+xe+ve)*te,(.5-xe+de)*ee,(.5+oe+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()),oe=.325,de=0,ve=-.125,xe=oe*be;var Ae=new go.PathFigure((1-.5+oe+de)*ee,(.5+ve)*te,!1);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ee,(.5+oe+ve)*te,(.5+oe+de)*ee,(.5+xe+ve)*te,(.5+xe+de)*ee,(.5+oe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-oe+de)*ee,(.5+ve)*te,(.5-xe+de)*ee,(.5+oe+ve)*te,(.5-oe+de)*ee,(.5+xe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+de)*ee,(.5-oe+ve)*te,(.5-oe+de)*ee,(.5-xe+ve)*te,(.5-xe+de)*ee,(.5-oe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+oe+de)*ee,(.5+ve)*te,(.5+xe+de)*ee,(.5-oe+ve)*te,(1-.5+oe+de)*ee,(.5-xe+ve)*te));var Ae=new go.PathFigure((.525+de)*ee,(.5+oe+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 fn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new fn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var oe=Ee?Ee.parameter2:NaN;isNaN(oe)&&(oe=.3);var de=(1-ue)*ee,ve=(.5-oe/2)*te,xe=(.5+oe/2)*te,Ae=new go.Geometry,Pe=new go.PathFigure(0,ve,!0);Ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,de,ve)),Pe.add(new go.PathSegment(go.PathSegment.Line,de,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,de,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,de,xe)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,xe).close()),Ae.spot1=new go.Spot(0,ve/te);var Ne=Ke(0,xe/te,1,xe/te,de/ee,1,1,.5,ge());return Ae.spot2=new go.Spot(Ne.x,Ne.y),Ie(Ne),Ae}),go.Shape.setFigureParameter("Arrow2",0,new fn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new fn("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 oe=Ee?Ee.parameter2:NaN;isNaN(oe)&&(oe=30),oe=Math.min(oe,te/2);var de=ee-ue,ve=(te-oe)/2,xe=ve+oe,Ae=new go.Geometry,Pe=new go.PathFigure(0,ve,!0);Ae.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,de,ve)),Pe.add(new go.PathSegment(go.PathSegment.Line,de,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,de,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,de,xe)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,xe).close()),Ae.spot1=new go.Spot(0,ve/te);var Ne=Ke(0,xe/te,1,xe/te,de/ee,1,1,.5,ge());return Ae.spot2=new go.Spot(Ne.x,Ne.y),Ie(Ne),Ae}),go.Shape.defineFigureGenerator("Chevron",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.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,oe=new go.PathFigure(0,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.214*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,1*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,1*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.786*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,1*te).close()),ue}),go.Shape.setFigureParameter("DoubleEndArrow",0,new fn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var oe=(.5-ue/2)*te,de=(.5+ue/2)*te,ve=new go.Geometry,xe=new go.PathFigure(ee,.5*te,!0);ve.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,de)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,oe)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,oe)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close());var Ae=Ke(0,.5,.3,0,0,oe/te,.1,oe/te,ge());return ve.spot1=new go.Spot(Ae.x,Ae.y),Ae=Ke(.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 fn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new fn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var oe=Ee?Ee.parameter2:NaN;isNaN(oe)&&(oe=100);var de=(te-ue)/2,ve=de+ue,xe=(te-oe)/2,Ae=xe+oe;(ue>te||oe>te)&&(oe>ue?(ue=ue*te/oe,de=(te-ue)/2,ve=de+ue,xe=0,Ae=te):(de=0,ve=te,xe=0,Ae=te));var Pe=new go.Geometry,Ne=new go.PathFigure(ee,.5*te,!0);Pe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Ae)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ve)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*ee,ve)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*ee,Ae)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*ee,xe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.3*ee,de)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,xe).close());var Le=Ke(0,.5,.3,xe/te,0,de/te,1,de/te,ge());return Pe.spot1=new go.Spot(Le.x,Le.y),Le=Ke(.7,Ae/te,1,.5,0,ve/te,1,ve/te,Le),Pe.spot2=new go.Spot(Le.x,Le.y),Ie(Le),Pe}),go.Shape.setFigureParameter("IBeamArrow",0,new fn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var oe=(.5-ue/2)*te,de=(.5+ue/2)*te,ve=new go.Geometry,xe=new go.PathFigure(ee,.5*te,!0);ve.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,de)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,oe)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,oe)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),ve.spot1=new go.Spot(0,oe/te);var Ae=Ke(.7,1,1,.5,0,de/te,1,de/te,ge());return ve.spot2=new go.Spot(Ae.x,Ae.y),Ie(Ae),ve}),go.Shape.setFigureParameter("IBeamArrow2",0,new fn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new fn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=40);var oe=Ee?Ee.parameter2:NaN;isNaN(oe)&&(oe=100);var de=(te-ue)/2,ve=de+ue,xe=(te-oe)/2,Ae=xe+oe;(ue>te||oe>te)&&(oe>ue?(ue=ue*te/oe,de=(te-ue)/2,ve=de+ue,xe=0,Ae=te):(de=0,ve=te,xe=0,Ae=te));var Pe=new go.Geometry,Ne=new go.PathFigure(ee,.5*te,!0);Pe.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,Ae)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,ve)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,ve)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,Ae)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,Ae)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,xe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,xe)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*ee,de)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),Ne.add(new go.PathSegment(go.PathSegment.Line,.7*ee,xe).close()),Pe.spot1=new go.Spot(0,de/te);var Le=Ke(.7,Ae/te,1,.5,0,ve/te,1,ve/te,ge());return Pe.spot2=new go.Spot(Le.x,Le.y),Ie(Le),Pe}),go.Shape.setFigureParameter("Pointer",0,new fn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.1);var oe=new go.Geometry,de=new go.PathFigure(ee,.5*te,!0);oe.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()),oe.spot1=new go.Spot(ue,.35);var ve=Ke(.2,.65,1,.65,0,1,1,.5,ge());return oe.spot2=new go.Spot(ve.x,ve.y),Ie(ve),oe}),go.Shape.setFigureParameter("RoundedPointer",0,new fn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.3);var oe=new go.Geometry,de=new go.PathFigure(ee,.5*te,!0);oe.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()),oe.spot1=new go.Spot(ue,.35);var ve=Ke(0,.65,1,.65,0,1,1,.5,ge());return oe.spot2=new go.Spot(ve.x,ve.y),Ie(ve),oe}),go.Shape.setFigureParameter("SplitEndArrow",0,new fn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.4);var oe=(.5-ue/2)*te,de=(.5+ue/2)*te,ve=new go.Geometry,xe=new go.PathFigure(ee,.5*te,!0);ve.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),xe.add(new go.PathSegment(go.PathSegment.Line,0,de)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,oe)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,oe)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),ve.spot1=new go.Spot(.2,.3);var Ae=Ke(.7,1,1,.5,0,de/te,1,de/te,ge());return ve.spot2=new go.Spot(Ae.x,Ae.y),Ie(Ae),ve}),go.Shape.setFigureParameter("SplitEndArrow2",0,new fn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=50);var oe=(te-ue)/2,de=oe+ue;ue>te&&(oe=0,de=te);var ve=new go.Geometry,xe=new go.PathFigure(ee,.5*te,!0);ve.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,de)),xe.add(new go.PathSegment(go.PathSegment.Line,0,de)),xe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,0,oe)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,oe)),xe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0).close()),ve.spot1=new go.Spot(.2,oe/te);var Ae=Ke(.7,1,1,.5,0,de/te,1,de/te,ge());return ve.spot2=new go.Spot(Ae.x,Ae.y),Ie(Ae),ve}),go.Shape.setFigureParameter("SquareArrow",0,new fn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.7);var oe=new go.Geometry,de=new go.PathFigure(ee,.5*te,!0);return oe.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()),oe.spot1=go.Spot.TopLeft,oe.spot2=new go.Spot(ue,1),oe}),go.Shape.defineFigureGenerator("Cone1",function(Ee,ee,te){var ue=new go.Geometry,oe=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+oe)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-oe)*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,oe=new go.PathFigure(0,.9*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee,.9*te,(1-.85/.9)*ee,te,.85/.9*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),oe.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,oe=new go.PathFigure(.5*ee,te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.85*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.15*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),oe.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,oe=new go.PathFigure(0,.3*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.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 oe=new go.Geometry,de=be*.5,ve=new go.PathFigure(0,ue,!0);oe.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 xe=new go.PathFigure(ee,ue,!1);return oe.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,2*ue,1*ee,2*ue-be*ue,(.5+de)*ee,2*ue)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,ue,(.5-de)*ee,2*ue,0,2*ue-be*ue)),oe.spot1=new go.Spot(0,0,0,2*ue),oe.spot2=new go.Spot(1,1),oe}),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 oe=new go.Geometry,de=be*.5,ve=new go.PathFigure(0,te-ue,!0);oe.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 xe=new go.PathFigure(0,te-ue,!1);return oe.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te-2*ue,0,te-ue-be*ue,(.5-de)*ee,te-2*ue)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee,te-ue,(.5+de)*ee,te-2*ue,ee,te-ue-be*ue)),oe.spot1=new go.Spot(0,0),oe.spot2=new go.Spot(1,1,0,-2*ue),oe}),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 oe=new go.Geometry,de=be*.5,ve=new go.PathFigure(ue,0,!0);oe.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 xe=new go.PathFigure(ue,0,!1);return oe.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,2*ue,.5*te,ue+be*ue,0,2*ue,(.5-de)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ue,te,2*ue,(.5+de)*te,ue+be*ue,te)),oe.spot1=new go.Spot(0,0,2*ue,0),oe.spot2=new go.Spot(1,1),oe}),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 oe=new go.Geometry,de=be*.5,ve=new go.PathFigure(ee-ue,0,!0);oe.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 xe=new go.PathFigure(ee-ue,0,!1);return oe.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee-2*ue,.5*te,ee-ue-be*ue,0,ee-2*ue,(.5-de)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,te,ee-2*ue,(.5+de)*te,ee-ue-be*ue,te)),oe.spot1=new go.Spot(0,0),oe.spot2=new go.Spot(1,1,-2*ue,0),oe}),go.Shape.defineFigureGenerator("Prism1",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(.25*ee,.25*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.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,oe=new go.PathFigure(0,.25*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.75*te)),oe.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,oe=new go.PathFigure(.5*ee,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.75*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.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,oe=new go.PathFigure(.5*ee,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.85*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.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,oe=.2,de=.1,ve=be*oe,xe=be*de,Ae=.5,Pe=.1,Ne=new go.PathFigure(Ae*ee,(Pe+de)*te,!0);ue.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-oe)*ee,Pe*te,(Ae-ve)*ee,(Pe+de)*te,(Ae-oe)*ee,(Pe+xe)*te)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe-de)*te,(Ae-oe)*ee,(Pe-xe)*te,(Ae-ve)*ee,(Pe-de)*te)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+oe)*ee,Pe*te,(Ae+ve)*ee,(Pe-de)*te,(Ae+oe)*ee,(Pe-xe)*te)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe+de)*te,(Ae+oe)*ee,(Pe+xe)*te,(Ae+ve)*ee,(Pe+de)*te));var Le=.05,Re=be*Le;Ae=.05,Pe=.25;var je=new go.PathFigure(.5*ee,.2*te,!0);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.95*ee,.2*te)),Ae=.95,Pe=.25,je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+Le)*ee,Pe*te,(Ae+Re)*ee,(Pe-Le)*te,(Ae+Le)*ee,(Pe-Re)*te)),je.add(new go.PathSegment(go.PathSegment.Line,ee,.6*te)),je.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*te)),je.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.35*te)),Le=.025,Re=be*Le,Ae=.825,Pe=.35,je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe-Le)*te,(Ae+Le)*ee,(Pe-Re)*te,(Ae+Re)*ee,(Pe-Le)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Le)*ee,Pe*te,(Ae-Re)*ee,(Pe-Le)*te,(Ae-Le)*ee,(Pe-Re)*te)),je.add(new go.PathSegment(go.PathSegment.Line,.8*ee,te)),je.add(new go.PathSegment(go.PathSegment.Line,.55*ee,te)),je.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.7*te)),Le=.05,Re=be*Le,Ae=.5,Pe=.7,je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe-Le)*te,(Ae+Le)*ee,(Pe-Re)*te,(Ae+Re)*ee,(Pe-Le)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Le)*ee,Pe*te,(Ae-Re)*ee,(Pe-Le)*te,(Ae-Le)*ee,(Pe-Re)*te)),je.add(new go.PathSegment(go.PathSegment.Line,.45*ee,te)),je.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),je.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.35*te)),Le=.025,Re=be*Le,Ae=.175,Pe=.35,je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe-Le)*te,(Ae+Le)*ee,(Pe-Re)*te,(Ae+Re)*ee,(Pe-Le)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-Le)*ee,Pe*te,(Ae-Re)*ee,(Pe-Le)*te,(Ae-Le)*ee,(Pe-Re)*te)),je.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*te)),je.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),je.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),Le=.05,Re=be*Le,Ae=.05,Pe=.25,je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe-Le)*te,(Ae-Le)*ee,(Pe-Re)*te,(Ae-Re)*ee,(Pe-Le)*te)),je.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 fn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ee,ee,te){var ue=Ee?Ee.parameter1:NaN;isNaN(ue)&&(ue=.2);var oe=new go.Geometry,de=new go.PathFigure(ee,0,!0);return oe.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()),oe.spot1=new go.Spot(0,ue),oe.spot2=go.Spot.BottomRight,oe}),go.Shape.defineFigureGenerator("Collate",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(.5*ee,.5*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.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,oe=Ee?Ee.parameter1:NaN;isNaN(oe)&&(oe=.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,oe*te,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,oe*te)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-oe)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,(1-oe)*te)),ue}),go.Shape.defineFigureGenerator("Database",function(Ee,ee,te){var ue=new go.Geometry,oe=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+oe)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-oe)*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-oe)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*te,(.5+oe)*ee,0,ee,(.1-de)*te));var xe=new go.PathFigure(ee,.1*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*te,ee,(.1+de)*te,(.5+oe)*ee,.2*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-oe)*ee,.2*te,0,(.1+de)*te)),xe.add(new go.PathSegment(go.PathSegment.Move,ee,.2*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*te,ee,(.2+de)*te,(.5+oe)*ee,.3*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-oe)*ee,.3*te,0,(.2+de)*te)),xe.add(new go.PathSegment(go.PathSegment.Move,ee,.3*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.4*te,ee,(.3+de)*te,(.5+oe)*ee,.4*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,(.5-oe)*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,oe=new go.PathFigure(0,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,te,ee,0,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.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,oe=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+oe)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-oe)*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-oe)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*te,(.5+oe)*ee,0,ee,(.1-de)*te));var xe=new go.PathFigure(ee,.1*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*te,ee,(.1+de)*te,(.5+oe)*ee,.2*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-oe)*ee,.2*te,0,(.1+de)*te)),xe.add(new go.PathSegment(go.PathSegment.Move,ee,.2*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.3*te,ee,(.2+de)*te,(.5+oe)*ee,.3*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-oe)*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,oe=new go.PathFigure(.25*ee,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,te,ee,0,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*ee,te)),oe.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,oe=Ee?Ee.parameter1:NaN;isNaN(oe)?oe=.2:oe<.15&&(oe=.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 xe=new go.PathFigure(0,oe*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ee,oe*te)),ue}),go.Shape.defineFigureGenerator("DividedProcess",function(Ee,ee,te){var ue=new go.Geometry,oe=Ee?Ee.parameter1:NaN;(isNaN(oe)||oe<.1)&&(oe=.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,oe*te,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,oe*te)),ue}),go.Shape.defineFigureGenerator("Document",function(Ee,ee,te){var ue=new go.Geometry;te=te/.8;var oe=new go.PathFigure(0,.7*te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te)),oe.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,oe=Ee?Ee.parameter1:NaN;(isNaN(oe)||oe<.2)&&(oe=.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(oe*ee,0,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,oe*te)),ve.add(new go.PathSegment(go.PathSegment.Move,ee,oe*te)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-oe)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-oe)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,oe*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-oe)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Line,ee,(1-oe)*te)),ue}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(.5*ee,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.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,oe=new go.PathFigure(0,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.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,oe=new go.PathFigure(ee,.5*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.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,oe=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(oe)&&(oe=.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 xe=new go.PathFigure(oe*ee,0,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,oe*ee,te)),xe.add(new go.PathSegment(go.PathSegment.Move,0,de*te)),xe.add(new go.PathSegment(go.PathSegment.Line,ee,de*te)),ue}),go.Shape.defineFigureGenerator("Junction",function(Ee,ee,te){var ue=new go.Geometry,oe=1/Math.SQRT2,de=(1-1/Math.SQRT2)/2,ve=be*.5,xe=.5,Ae=new go.PathFigure(ee,xe*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*ee,te,ee,(xe+ve)*te,(xe+ve)*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,xe*te,(xe-ve)*ee,te,0,(xe+ve)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*ee,0,0,(xe-ve)*te,(xe-ve)*ee,0)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ee,xe*te,(xe+ve)*ee,0,ee,(xe-ve)*te));var Pe=new go.PathFigure((de+oe)*ee,(de+oe)*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,de*ee,de*te)),Pe.add(new go.PathSegment(go.PathSegment.Move,de*ee,(de+oe)*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,(de+oe)*ee,de*te)),ue}),go.Shape.defineFigureGenerator("LinedDocument",function(Ee,ee,te){var ue=new go.Geometry;te=te/.8;var oe=new go.PathFigure(0,.7*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te)),oe.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,oe=new go.PathFigure(0,te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),oe.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,oe=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-oe)*ee,te,0,(de+oe)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,de*ee,0,0,(de-oe)*te,(de-oe)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,de*te,(de+oe)*ee,0,ee,(de-oe)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(de+.1)*ee,.9*te,ee,(de+oe)*te,(de+oe)*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,oe=new go.PathFigure(ee,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.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,oe=Ee?Ee.parameter1:NaN;isNaN(oe)&&(oe=.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,oe*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,oe=Ee?Ee.parameter1:NaN;isNaN(oe)&&(oe=.25);var de=new go.PathFigure(0,0,!0);return ue.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.5*ee,oe*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-oe)*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,oe=new go.PathFigure(0,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.25*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.15*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.85*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.75*te)),oe.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 oe=new go.PathFigure(ee,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.44*te,.96*ee,.47*te,.93*ee,.45*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.54*te,.86*ee,.57*te,.83*ee,.55*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.7*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.4*ee,.4*te,.4*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.1*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*te)),oe.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,oe=new go.PathFigure(.1*ee,.1*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.1*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.9*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.9*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),oe.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,oe=Ee?Ee.parameter1:NaN;isNaN(oe)&&(oe=.1);var de=1-oe,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 xe=new go.PathFigure(.5*oe*ee,oe*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*oe)*ee,oe*te)),ue}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,te)),oe.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,oe=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+oe)*te,(de+oe)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,de*te,(de-oe)*ee,te,0,(de+oe)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,de*ee,0,0,(de-oe)*te,(de-oe)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,de*te,(de+oe)*ee,0,ee,(de-oe)*te));var xe=new go.PathFigure(ee,.5*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,te)),xe.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 oe=new go.PathFigure(0,.7*te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.3*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee,.3*te,.5*ee,.6*te,.5*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te)),oe.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,oe=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(oe)&&(oe=.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,oe=Ee?Ee.parameter1:NaN,de=Ee?Ee.parameter2:NaN;isNaN(oe)&&(oe=.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,oe=Ee?Ee.parameter1:NaN;isNaN(oe)&&(oe=.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-oe)*ee,0,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-oe)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Move,oe*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,oe*ee,te)),ue}),go.Shape.defineFigureGenerator("Process",function(Ee,ee,te){var ue=new go.Geometry,oe=Ee?Ee.parameter1:NaN;isNaN(oe)&&(oe=.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(oe*ee,0,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,oe*ee,te)),ue.spot2=go.Spot.BottomRight,ue}),go.Shape.defineFigureGenerator("Sort",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(.5*ee,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.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,oe=Ee?Ee.parameter1:NaN;isNaN(oe)&&(oe=.25);var de=new go.PathFigure(oe*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(oe*ee,0,!1);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,oe*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-oe)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-oe)*ee,te)),ue.spot1=new go.Spot(oe,0),ue.spot2=new go.Spot(1-oe,1),ue}),go.Shape.defineFigureGenerator("Terminator",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(.25*ee,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ee,.5*te,.25*ee,.5*te)),oe.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,oe=Ee?Ee.parameter1:NaN;isNaN(oe)&&(oe=.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-oe)*te)),de.add(new go.PathSegment(go.PathSegment.Line,0,(1-oe)*te).close()),ue.spot1=go.Spot.TopLeft,ue}),go.Shape.defineFigureGenerator("AndGate",function(Ee,ee,te){var ue=new go.Geometry,oe=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+oe)*ee,0,ee,(.5-oe)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,ee,(.5+oe)*te,(.5+oe)*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,oe=new go.PathFigure(0,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.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,oe=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+oe)*te,(de+oe)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,de*te,(de-oe)*ee,te,0,(de+oe)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,de*ee,0,0,(de-oe)*te,(de-oe)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,de*te,(de+oe)*ee,0,ee,(de-oe)*te));var xe=new go.PathFigure(ee,de*te,!1);ue.add(xe),xe.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,oe=new go.PathFigure(.5*ee,0,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.3*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.4*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*ee,te)),ue}),go.Shape.defineFigureGenerator("Inverter",function(Ee,ee,te){var ue=new go.Geometry,oe=be*.1,de=.1,ve=.9,xe=.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 Pe=new go.PathFigure((ve+de)*ee,xe*te,!0);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,xe*te,(ve-oe)*ee,(xe+de)*te,(ve-de)*ee,(xe+oe)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,xe*te,(ve+oe)*ee,(xe-de)*te,(ve+de)*ee,(xe-oe)*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,oe=be*.5,de=be*.4,ve=be*.1,xe=.1,Ae=.9,Pe=.5,Ne=new go.PathFigure(.8*ee,.5*te,!0);ue.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,te,.8*ee,(.5+de)*te,(.4+oe)*ee,te)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,te)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ne.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*te,(.4+oe)*ee,0,.8*ee,(.5-de)*te));var Le=new go.PathFigure((Ae+xe)*ee,Pe*te,!0);return ue.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe+xe)*te,(Ae+xe)*ee,(Pe+ve)*te,(Ae+ve)*ee,(Pe+xe)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-xe)*ee,Pe*te,(Ae-ve)*ee,(Pe+xe)*te,(Ae-xe)*ee,(Pe+ve)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe-xe)*te,(Ae-xe)*ee,(Pe-ve)*te,(Ae-ve)*ee,(Pe-xe)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+xe)*ee,Pe*te,(Ae+ve)*ee,(Pe-xe)*te,(Ae+xe)*ee,(Pe-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,oe=.5,de=be*oe,ve=0,xe=.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,(xe+de)*te,(ve+de)*ee,(xe+oe)*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,(xe-oe)*te,.7*ee,(xe-de)*te)),oe=.1,de=be*.1,ve=.9,xe=.5;var Pe=new go.PathFigure((ve-oe)*ee,xe*te,!0);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+oe)*ee,xe*te,(ve+de)*ee,(xe-oe)*te,(ve+oe)*ee,(xe-de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-oe)*ee,xe*te,(ve-de)*ee,(xe+oe)*te,(ve-oe)*ee,(xe+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,oe=.5,de=be*oe,ve=0,xe=.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,(xe-oe)*te,.8*ee,(xe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.8*ee,(xe+de)*te,(ve+de+de)*ee,(xe+oe)*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,oe=.5,de=be*oe,ve=.2,xe=.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 Pe=new go.PathFigure(.8*ee,.5*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,te,.7*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,0,.45*ee,.75*te,.45*ee,.25*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.5*te,(ve+de)*ee,(xe-oe)*te,.7*ee,(xe-de)*te)),oe=.1,de=be*.1,ve=.9,xe=.5;var Ne=new go.PathFigure((ve-oe)*ee,xe*te,!0);return ue.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve+oe)*ee,xe*te,(ve+de)*ee,(xe-oe)*te,(ve+oe)*ee,(xe-de)*te)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve-oe)*ee,xe*te,(ve-de)*ee,(xe+oe)*te,(ve-oe)*ee,(xe+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,oe=.5,de=be*oe,ve=.2,xe=.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 Pe=new go.PathFigure(.2*ee,0,!0);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,(ve+de)*ee,(xe-oe)*te,.9*ee,(xe-de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*ee,te,.9*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),Pe.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,oe=new go.PathFigure(0,0,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Move,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ue}),go.Shape.defineFigureGenerator("Resistor",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,.5*te,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.1*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*ee,te)),oe.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,oe=be*.1,de=.1,ve=.1,xe=.5,Ae=new go.PathFigure((ve-oe*.5)*ee,te,!1);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,0,(ve-oe)*ee,te,(ve-de)*ee,0)),ve=.3,Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,te,(ve+de)*ee,0,(ve+oe)*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,0,(ve-oe)*ee,te,(ve-de)*ee,0)),ve=.5,Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,te,(ve+de)*ee,0,(ve+oe)*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,0,(ve-oe)*ee,te,(ve-de)*ee,0)),ve=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,te,(ve+de)*ee,0,(ve+oe)*ee,te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,0,(ve-oe)*ee,te,(ve-de)*ee,0)),ve=.9,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+oe*.5)*ee,te,(ve+de)*ee,0,(ve+oe)*ee,te)),ue}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ee,ee,te){var ue=new go.Geometry,oe=be*.5,de=.5,ve=.5,xe=.5,Ae=new go.PathFigure((ve-de)*ee,xe*te,!1);return ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,xe*te,(ve+oe)*ee,(xe-de)*te,(ve+de)*ee,(xe-oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,xe*te,(ve-oe)*ee,(xe+de)*te,(ve-de)*ee,(xe+oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Move,(ve-de+.1)*ee,xe*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de-.1)*ee,xe*te,ve*ee,(xe-de)*te,ve*ee,(xe+de)*te)),ue}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,.75*te,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),oe.add(new go.PathSegment(go.PathSegment.Move,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ue}),go.Shape.defineFigureGenerator("Diode",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(ee,0,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.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,oe=ee,de=te;ee=ee*.38,te=te*.6;var ve=be*.8,xe=.8,Ae=0,Pe=.5,Ne=(oe-ee)/2,Le=(de-te)/2,Re=new go.PathFigure(Ae*ee+Ne,(Pe+xe)*te+Le,!0);ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-xe)*ee+Ne,Pe*te+Le,(Ae-ve)*ee+Ne,(Pe+xe)*te+Le,(Ae-xe)*ee+Ne,(Pe+ve)*te+Le)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe-xe)*te+Le,(Ae-xe)*ee+Ne,(Pe-ve)*te+Le,(Ae-ve)*ee+Ne,(Pe-xe)*te+Le)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-xe+ve*.5)*ee+Ne,Pe*te+Le,Ae*ee+Ne,(Pe-xe)*te+Le,(Ae-xe+ve*.5)*ee+Ne,(Pe-ve)*te+Le)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe+xe)*te+Le,(Ae-xe+ve*.5)*ee+Ne,(Pe+ve)*te+Le,Ae*ee+Ne,(Pe+xe)*te+Le).close()),ve=be*.4,xe=.4,Ae=.2,Pe=.5;var je=new go.PathFigure(Ae*ee+Ne,(Pe+xe)*te+Le,!0);ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-xe)*ee+Ne,Pe*te+Le,(Ae-ve)*ee+Ne,(Pe+xe)*te+Le,(Ae-xe)*ee+Ne,(Pe+ve)*te+Le)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe-xe)*te+Le,(Ae-xe)*ee+Ne,(Pe-ve)*te+Le,(Ae-ve)*ee+Ne,(Pe-xe)*te+Le)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-xe+ve*.5)*ee+Ne,Pe*te+Le,Ae*ee+Ne,(Pe-xe)*te+Le,(Ae-xe+ve*.5)*ee+Ne,(Pe-ve)*te+Le)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe+xe)*te+Le,(Ae-xe+ve*.5)*ee+Ne,(Pe+ve)*te+Le,Ae*ee+Ne,(Pe+xe)*te+Le).close()),ve=be*.2,xe=.2,Ae=.5,Pe=.5;var Ge=new go.PathFigure((Ae-xe)*ee+Ne,Pe*te+Le,!0);ue.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe-xe)*te+Le,(Ae-xe)*ee+Ne,(Pe-ve)*te+Le,(Ae-ve)*ee+Ne,(Pe-xe)*te+Le)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+xe)*ee+Ne,Pe*te+Le,(Ae+ve)*ee+Ne,(Pe-xe)*te+Le,(Ae+xe)*ee+Ne,(Pe-ve)*te+Le)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe+xe)*te+Le,(Ae+xe)*ee+Ne,(Pe+ve)*te+Le,(Ae+ve)*ee+Ne,(Pe+xe)*te+Le)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-xe)*ee+Ne,Pe*te+Le,(Ae-ve)*ee+Ne,(Pe+xe)*te+Le,(Ae-xe)*ee+Ne,(Pe+ve)*te+Le)),ve=be*.4,xe=.4,Ae=.8,Pe=.5;var We=new go.PathFigure(Ae*ee+Ne,(Pe-xe)*te+Le,!0);ue.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+xe)*ee+Ne,Pe*te+Le,(Ae+ve)*ee+Ne,(Pe-xe)*te+Le,(Ae+xe)*ee+Ne,(Pe-ve)*te+Le)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe+xe)*te+Le,(Ae+xe)*ee+Ne,(Pe+ve)*te+Le,(Ae+ve)*ee+Ne,(Pe+xe)*te+Le)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+xe-ve*.5)*ee+Ne,Pe*te+Le,Ae*ee+Ne,(Pe+xe)*te+Le,(Ae+xe-ve*.5)*ee+Ne,(Pe+ve)*te+Le)),We.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe-xe)*te+Le,(Ae+xe-ve*.5)*ee+Ne,(Pe-ve)*te+Le,Ae*ee+Ne,(Pe-xe)*te+Le).close()),ve=be*.8,xe=.8,Ae=1,Pe=.5;var bt=new go.PathFigure(Ae*ee+Ne,(Pe-xe)*te+Le,!0);return ue.add(bt),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+xe)*ee+Ne,Pe*te+Le,(Ae+ve)*ee+Ne,(Pe-xe)*te+Le,(Ae+xe)*ee+Ne,(Pe-ve)*te+Le)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe+xe)*te+Le,(Ae+xe)*ee+Ne,(Pe+ve)*te+Le,(Ae+ve)*ee+Ne,(Pe+xe)*te+Le)),bt.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+xe-ve*.5)*ee+Ne,Pe*te+Le,Ae*ee+Ne,(Pe+xe)*te+Le,(Ae+xe-ve*.5)*ee+Ne,(Pe+ve)*te+Le)),bt.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee+Ne,(Pe-xe)*te+Le,(Ae+xe-ve*.5)*ee+Ne,(Pe-ve)*te+Le,Ae*ee+Ne,(Pe-xe)*te+Le).close()),ue}),go.Shape.defineFigureGenerator("Email",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.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,oe=new go.PathFigure(.35*ee,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.65*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.4*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.4*te)),oe.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 xe=new go.PathFigure(0,.5*te,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.4*te)),xe.add(new go.PathSegment(go.PathSegment.Move,.75*ee,.5*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.6*te)),xe.add(new go.PathSegment(go.PathSegment.Move,.25*ee,.5*te)),xe.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,oe=be*.4,de=.4,ve=.5,xe=.5,Ae=ge(),Pe=ge(),Ne=ge(),Le=ge();ot(ve,xe-de,ve+oe,xe-de,ve+de,xe-oe,ve+de,xe,.5,Ae,Ae,Pe,Ne,Le);var Re=he(Pe.x,Pe.y),je=new go.PathFigure(Pe.x*ee,Pe.y*te,!0);ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,xe*te,Ne.x*ee,Ne.y*te,Le.x*ee,Le.y*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,xe*te,(ve-oe)*ee,(xe+de)*te,(ve-de)*ee,(xe+oe)*te)),ot(ve-de,xe,ve-de,xe-oe,ve-oe,xe-de,ve,xe-de,.5,Ne,Le,Pe,Ae,Ae),je.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*ee,Pe.y*te,Ne.x*ee,Ne.y*te,Le.x*ee,Le.y*te)),oe=be*.3,de=.3,ot(ve-de,xe,ve-de,xe-oe,ve-oe,xe-de,ve,xe-de,.5,Ne,Le,Pe,Ae,Ae),je.add(new go.PathSegment(go.PathSegment.Line,Pe.x*ee,Pe.y*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ve-de)*ee,xe*te,Le.x*ee,Le.y*te,Ne.x*ee,Ne.y*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+de)*te,(ve-de)*ee,(xe+oe)*te,(ve-oe)*ee,(xe+de)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ve+de)*ee,xe*te,(ve+oe)*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),ot(ve,xe-de,ve+oe,xe-de,ve+de,xe-oe,ve+de,xe,.5,Ae,Ae,Pe,Ne,Le),je.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*ee,Pe.y*te,Le.x*ee,Le.y*te,Ne.x*ee,Ne.y*te).close());var je=new go.PathFigure(.45*ee,0,!0);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.5*te)),je.add(new go.PathSegment(go.PathSegment.Line,.55*ee,.5*te)),je.add(new go.PathSegment(go.PathSegment.Line,.55*ee,0).close()),Ie(Ae),Ie(Pe),Ie(Ne),Ie(Le),Ie(Re),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,oe=new go.PathFigure(0,te/2,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Arc,180,360,ee/2,te/2,ee/2,te/2));function de(ve,xe,Ae){ve.add(new go.PathSegment(go.PathSegment.Move,(.3+xe)*ee,(.8+Ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,(.5+xe)*ee,(.5+Ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,(.1+xe)*ee,(.5+Ae)*te)),ve.add(new go.PathSegment(go.PathSegment.Line,(.3+xe)*ee,(.8+Ae)*te).close())}return de(oe,0,0),de(oe,.4,0),de(oe,.2,-.3),ue}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(.2*ee,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.3*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.7*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.5*te)),oe.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,oe=new go.PathFigure(.37*ee,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.11*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.77*ee,.04*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.49*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.37*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.63*ee,.86*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.77*ee,.91*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.34*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.34*ee,.78*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.44*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.56*te)),oe.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,oe=new go.PathFigure(.1*ee,te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.29*ee,0,-.25*ee,.63*te,.45*ee,.44*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.51*ee,.42*te,.48*ee,.17*te,.54*ee,.35*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.59*ee,.18*te,.59*ee,.29*te,.58*ee,.28*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.75*ee,.6*te,.8*ee,.34*te,.88*ee,.43*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.88*ee,.31*te,.87*ee,.48*te,.88*ee,.43*te)),oe.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,oe=.5,de=0,ve=0,xe=oe*be,Ae=.4*Math.SQRT2/2+.5,Pe=.5-.5*Math.SQRT2/2,Ne=1,Le=.5,Re=.5,je=0,Ge=new go.PathFigure(Ae*ee,(1-Pe)*te,!1);return ue.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,Le*te,Ne*ee,.7*te,Ne*ee,Le*te)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Re+de)*ee,(je+de)*te,(.5+oe+de)*ee,(.5-xe+de)*te,(.5+xe+de)*ee,(.5-oe+de)*te)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(.5-oe+de)*ee,(.5+ve)*te,(.5-xe+de)*ee,(.5-oe+ve)*te,(.5-oe+de)*ee,(.5-xe+ve)*te)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(.35+de)*ee,.9*te,(.5-oe+de)*ee,(.5+xe+ve)*te,(.5-xe+de)*ee,.9*te)),Ge.add(new go.PathSegment(go.PathSegment.Move,(.25+de)*ee,.8*te)),Ge.add(new go.PathSegment(go.PathSegment.Line,(.35+de)*ee,.9*te)),Ge.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,oe=new go.PathFigure(0,0,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Move,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ue}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Move,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),ue}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!1);ue.add(oe);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,oe=new go.PathFigure(0,.5*te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),oe.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,oe=new go.PathFigure(0,.2*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.8*te).close());var oe=new go.PathFigure(0,.2*te,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te)),ue}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(.7*ee,te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,0,.6*ee,.5*te,0,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,0)),oe.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,oe=new go.PathFigure(0,0,!1);ue.add(oe);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,xe=.5,Ae=ve,Pe=Math.PI/4,Ne=4*(1-Math.cos(Pe))/(3*Math.sin(Pe)),Le=Ne*.5,Re=ve,je=ve,Ge=Ne*Re,We=Ne*je;de.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Re)*ee,Ae*te,(xe-(Ge+Re)/2)*ee,(Ae+(je+We)/2)*te,(xe-Re)*ee,(Ae+We)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,xe*ee,(Ae-je)*te,(xe-Re)*ee,(Ae-We)*te,(xe-Ge)*ee,(Ae-je)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Re)*ee,Ae*te,(xe+Ge)*ee,(Ae-je)*te,(xe+Re)*ee,(Ae-We)*te)),de.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ee,(1-.595)*te,(xe+Re)*ee,(Ae+We)*te,(xe+(Ge+Re)/2)*ee,(Ae+(je+We)/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 bt=new go.PathFigure(.2*ee,te,!1);ue.add(bt),bt.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.8*te));var Qe=new go.PathFigure(.8*ee,te,!1);return ue.add(Qe),Qe.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,oe=new go.PathFigure(.1*ee,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.9*ee,te)),oe.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,oe=new go.PathFigure(0,te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.33*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.66*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.66*ee,te)),oe.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,oe=new go.PathFigure(0,0,!1);ue.add(oe);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,oe=new go.PathFigure(.05*ee,te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,.8*te,0,te,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.1*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.55*ee,.1*te,.5*ee,0,.5*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.95*ee,.9*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,te,ee,te,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.05*ee,te));var de=.05;return oe.add(new go.PathSegment(go.PathSegment.Move,(.5-de)*ee,.875*te)),oe.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ee,.875*te,de*ee,de*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.75*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.325*te,.575*ee,.725*te,.625*ee,.375*te)),oe.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,oe=new go.PathFigure(.45*ee,.95*te,!1);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.95*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.185*ee,.85*te,.17*ee,.95*te,.15*ee,.9*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.235*ee,.75*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*ee,.625*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.65*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.275*ee,.45*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.05*ee,.45*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.05*ee,.575*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ee,.95*te,0,.675*te,0,.7*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.45*ee,.95*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.775*te)),oe.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,oe=.5,de=be*.5,ve=new go.PathFigure(ee,oe*te,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,oe*ee,te,ee,(oe+de)*te,(oe+de)*ee,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*te,(oe-de)*ee,te,0,(oe+de)*te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,oe*ee,0,0,(oe-de)*te,(oe-de)*ee,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee,oe*te,(oe+de)*ee,0,ee,(oe-de)*te));var xe=new go.PathFigure(oe*ee,0,!1);return ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,oe*ee,.15*te)),xe.add(new go.PathSegment(go.PathSegment.Move,oe*ee,te)),xe.add(new go.PathSegment(go.PathSegment.Line,oe*ee,.85*te)),xe.add(new go.PathSegment(go.PathSegment.Move,0,oe*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.15*ee,oe*te)),xe.add(new go.PathSegment(go.PathSegment.Move,ee,oe*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*ee,oe*te)),xe.add(new go.PathSegment(go.PathSegment.Move,oe*ee,oe*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.58*ee,.1*te)),xe.add(new go.PathSegment(go.PathSegment.Move,oe*ee,oe*te)),xe.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,oe=new go.PathFigure(0,.15*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.15*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.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,oe=new go.PathFigure(0,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.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,oe=new go.PathFigure(ee,te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*ee,te)),oe.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,oe=new go.PathFigure(.15*ee,.6*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),oe.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,oe=new go.PathFigure(ee,te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.66*ee,.33*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.66*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.33*ee,.33*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.33*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te).close()),ue}),go.Shape.defineFigureGenerator("Workcell",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.65*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.65*ee,.4*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.35*ee,.4*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.35*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),ue}),go.Shape.defineFigureGenerator("Supermarket",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.33*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),oe.add(new go.PathSegment(go.PathSegment.Move,ee,.33*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.66*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.66*te)),oe.add(new go.PathSegment(go.PathSegment.Move,ee,.66*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),ue}),go.Shape.defineFigureGenerator("TruckShipment",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),oe.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,xe=be*.1,Ae=.2,Pe=.9,Ne=new go.PathFigure((Ae-ve)*ee,Pe*te,!0);ue.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe-ve)*te,(Ae-ve)*ee,(Pe-xe)*te,(Ae-xe)*ee,(Pe-ve)*te)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ve)*ee,Pe*te,(Ae+xe)*ee,(Pe-ve)*te,(Ae+ve)*ee,(Pe-xe)*te)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe+ve)*te,(Ae+ve)*ee,(Pe+xe)*te,(Ae+xe)*ee,(Pe+ve)*te)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ve)*ee,Pe*te,(Ae-xe)*ee,(Pe+ve)*te,(Ae-ve)*ee,(Pe+xe)*te).close()),ve=.1,xe=be*.1,Ae=.8,Pe=.9;var Le=new go.PathFigure((Ae-ve)*ee,Pe*te,!0);return ue.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe-ve)*te,(Ae-ve)*ee,(Pe-xe)*te,(Ae-xe)*ee,(Pe-ve)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae+ve)*ee,Pe*te,(Ae+xe)*ee,(Pe-ve)*te,(Ae+ve)*ee,(Pe-xe)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ae*ee,(Pe+ve)*te,(Ae+ve)*ee,(Pe+xe)*te,(Ae+xe)*ee,(Pe+ve)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ae-ve)*ee,Pe*te,(Ae-xe)*ee,(Pe+ve)*te,(Ae-ve)*ee,(Pe+xe)*te).close()),ue}),go.Shape.defineFigureGenerator("KanbanPost",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(.2*ee,0,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,te)),ue}),go.Shape.defineFigureGenerator("Forklift",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),oe.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 xe=new go.PathFigure(.5*ee,.7*te,!1);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ee,.7*te));var Ae=.1,Pe=be*.1,Ne=.1,Le=.9,Re=new go.PathFigure((Ne-Ae)*ee,Le*te,!0);ue.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,(Le-Ae)*te,(Ne-Ae)*ee,(Le-Pe)*te,(Ne-Pe)*ee,(Le-Ae)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ne+Ae)*ee,Le*te,(Ne+Pe)*ee,(Le-Ae)*te,(Ne+Ae)*ee,(Le-Pe)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,(Le+Ae)*te,(Ne+Ae)*ee,(Le+Pe)*te,(Ne+Pe)*ee,(Le+Ae)*te)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Ne-Ae)*ee,Le*te,(Ne-Pe)*ee,(Le+Ae)*te,(Ne-Ae)*ee,(Le+Pe)*te)),Ae=.1,Pe=be*.1,Ne=.4,Le=.9;var je=new go.PathFigure((Ne-Ae)*ee,Le*te,!0);return ue.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,(Le-Ae)*te,(Ne-Ae)*ee,(Le-Pe)*te,(Ne-Pe)*ee,(Le-Ae)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ne+Ae)*ee,Le*te,(Ne+Pe)*ee,(Le-Ae)*te,(Ne+Ae)*ee,(Le-Pe)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,Ne*ee,(Le+Ae)*te,(Ne+Ae)*ee,(Le+Pe)*te,(Ne+Pe)*ee,(Le+Ae)*te)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Ne-Ae)*ee,Le*te,(Ne-Pe)*ee,(Le+Ae)*te,(Ne-Ae)*ee,(Le+Pe)*te)),ue}),go.Shape.defineFigureGenerator("RailShipment",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(.1*ee,.4*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.4*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.45*ee,.9*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.9*te)),oe.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 Ne=.05,Le=be*.05,Re=.175,je=.95,xe=new go.PathFigure((Re-Ne)*ee,je*te,!0);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Re*ee,(je-Ne)*te,(Re-Ne)*ee,(je-Le)*te,(Re-Le)*ee,(je-Ne)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Re+Ne)*ee,je*te,(Re+Le)*ee,(je-Ne)*te,(Re+Ne)*ee,(je-Le)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,Re*ee,(je+Ne)*te,(Re+Ne)*ee,(je+Le)*te,(Re+Le)*ee,(je+Ne)*te)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Re-Ne)*ee,je*te,(Re-Le)*ee,(je+Ne)*te,(Re-Ne)*ee,(je+Le)*te));var Ne=.05,Le=be*.05,Re=.375,je=.95,Ae=new go.PathFigure((Re-Ne)*ee,je*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Re*ee,(je-Ne)*te,(Re-Ne)*ee,(je-Le)*te,(Re-Le)*ee,(je-Ne)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Re+Ne)*ee,je*te,(Re+Le)*ee,(je-Ne)*te,(Re+Ne)*ee,(je-Le)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Re*ee,(je+Ne)*te,(Re+Ne)*ee,(je+Le)*te,(Re+Le)*ee,(je+Ne)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Re-Ne)*ee,je*te,(Re-Le)*ee,(je+Ne)*te,(Re-Ne)*ee,(je+Le)*te));var Ne=.05,Le=be*.05,Re=.625,je=.95,Pe=new go.PathFigure((Re-Ne)*ee,je*te,!0);ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Re*ee,(je-Ne)*te,(Re-Ne)*ee,(je-Le)*te,(Re-Le)*ee,(je-Ne)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Re+Ne)*ee,je*te,(Re+Le)*ee,(je-Ne)*te,(Re+Ne)*ee,(je-Le)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Re*ee,(je+Ne)*te,(Re+Ne)*ee,(je+Le)*te,(Re+Le)*ee,(je+Ne)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Re-Ne)*ee,je*te,(Re-Le)*ee,(je+Ne)*te,(Re-Ne)*ee,(je+Le)*te));var Ne=.05,Le=be*.05,Re=.825,je=.95,Ge=new go.PathFigure((Re-Ne)*ee,je*te,!0);ue.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Re*ee,(je-Ne)*te,(Re-Ne)*ee,(je-Le)*te,(Re-Le)*ee,(je-Ne)*te)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Re+Ne)*ee,je*te,(Re+Le)*ee,(je-Ne)*te,(Re+Ne)*ee,(je-Le)*te)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,Re*ee,(je+Ne)*te,(Re+Ne)*ee,(je+Le)*te,(Re+Le)*ee,(je+Ne)*te)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(Re-Ne)*ee,je*te,(Re-Le)*ee,(je+Ne)*te,(Re-Ne)*ee,(je+Le)*te).close());var We=new go.PathFigure(0,te,!1);return ue.add(We),We.add(new go.PathSegment(go.PathSegment.Line,ee,te).close()),ue}),go.Shape.defineFigureGenerator("Warehouse",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.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 xe=.05,Ae=be*.05,Pe=.35,Ne=.775,Le=new go.PathFigure((Pe-xe)*ee,Ne*te,!0);return ue.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ee,(Ne-xe)*te,(Pe-xe)*ee,(Ne-Ae)*te,(Pe-Ae)*ee,(Ne-xe)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+xe)*ee,Ne*te,(Pe+Ae)*ee,(Ne-xe)*te,(Pe+xe)*ee,(Ne-Ae)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Pe*ee,(Ne+xe)*te,(Pe+xe)*ee,(Ne+Ae)*te,(Pe+Ae)*ee,(Ne+xe)*te)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-xe)*ee,Ne*te,(Pe-Ae)*ee,(Ne+xe)*te,(Pe-xe)*ee,(Ne+Ae)*te).close()),ue}),go.Shape.defineFigureGenerator("ControlCenter",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.1*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.9*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Move,.1*ee,.8*te)),oe.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,oe=new go.PathFigure(0,.75*te,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.25*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.75*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),ue}),go.Shape.defineFigureGenerator("Bookmark",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*te)),oe.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,oe=new go.PathFigure(0,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.2*ee,.4*te)),oe.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,oe=new go.PathFigure(.5*ee,0,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee,.5*te,.75*ee,0,ee,.25*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,ee,.75*te,.75*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.25*ee,te,0,.75*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,0,.25*te,.25*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,te,.15*ee,.25*te,.15*ee,.75*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.85*ee,.75*te,.85*ee,.25*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.1675*ee,.15*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ee,.15*te,.35*ee,.3*te,.65*ee,.3*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.1675*ee,.85*te)),oe.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,oe=new go.PathFigure(0,.25*te,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.25*te,.1*ee,0,.2*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,.25*te,.425*ee,.5*te,.575*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee,.25*te,.8*ee,0,.9*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.75*te)),oe.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.75*te,.1*ee,.5*te,.2*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.7*ee,.75*te,.425*ee,te,.575*ee,te)),oe.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,oe=.3,de=be*.3,ve=.5,xe=.7,Ae=new go.PathFigure((ve-oe)*ee,xe*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+oe)*ee,xe*te,(ve+de)*ee,(xe-oe)*te,(ve+oe)*ee,(xe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-oe)*ee,xe*te,(ve-de)*ee,(xe+oe)*te,(ve-oe)*ee,(xe+de)*te));var Pe=new go.PathFigure(0,.7*te,!1);return ue.add(Pe),Pe.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,oe=new go.PathFigure(.5*ee,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*te,.65*ee,.3*te,.65*ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,0,.35*ee,.5*te,.35*ee,.3*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.65*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.3*ee,.6*te,.1*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.65*te,.2*ee,te,.35*ee,.95*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.65*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee,te,.7*ee,.6*te,.9*ee,.8*te)),oe.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,oe=new go.PathFigure(ee,0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,0,.075*te,0,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*ee,te,0,te,.4*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*ee,.4*te,.8*ee,te,.85*ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.4*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,0)),ue}),go.Shape.defineFigureGenerator("Battery",function(Ee,ee,te){var ue=new go.Geometry,oe=new go.PathFigure(0,te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.1*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Move,.4*ee,.1*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*ee,0)),oe.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,oe=.5,de=be*.5,ve=.5,xe=.5,Ae=new go.PathFigure((ve-oe)*ee,xe*te,!0);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+oe)*ee,xe*te,(ve+de)*ee,(xe-oe)*te,(ve+oe)*ee,(xe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-oe)*ee,xe*te,(ve-de)*ee,(xe+oe)*te,(ve-oe)*ee,(xe+de)*te));var Pe=new go.PathFigure(.15*ee,.5*te,!1);return ue.add(Pe),Pe.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,oe=new go.PathFigure(0,.1*te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Move,0,.1*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.1*te,.15*ee,0,.35*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,ee,.1*te,.65*ee,.2*te,.85*ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.5*te,.85*ee,.6*te,.65*ee,.6*te)),oe.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,oe=.5,de=be*.5,ve=.5,xe=.5,Ae=new go.PathFigure((ve-oe)*ee,xe*te,!1);ue.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+oe)*ee,xe*te,(ve+de)*ee,(xe-oe)*te,(ve+oe)*ee,(xe-de)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-oe)*ee,xe*te,(ve-de)*ee,(xe+oe)*te,(ve-oe)*ee,(xe+de)*te).close()),oe=.05,de=be*.05,ve=.5,xe=.8;var Pe=new go.PathFigure((ve-oe)*ee,xe*te,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe-oe)*te,(ve-oe)*ee,(xe-de)*te,(ve-de)*ee,(xe-oe)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+oe)*ee,xe*te,(ve+de)*ee,(xe-oe)*te,(ve+oe)*ee,(xe-de)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*ee,(xe+oe)*te,(ve+oe)*ee,(xe+de)*te,(ve+de)*ee,(xe+oe)*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-oe)*ee,xe*te,(ve-de)*ee,(xe+oe)*te,(ve-oe)*ee,(xe+de)*te).close()),Pe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.7*te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.5*te)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*ee,.2*te,.75*ee,.475*te,.75*ee,.225*te)),Pe.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,oe=new go.PathFigure(0,.5*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.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,oe=new go.PathFigure(0,.5*te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.5*te)),oe.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,oe=new go.PathFigure(0,.5*te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.1*ee,.3*te,0,.375*te,.05*ee,.325*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.45*ee,.075*te,.3*ee,.225*te,.4*ee,.175*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.525*ee,.075*te,.46*ee,.05*te,.525*ee,.05*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*ee,.4*te,.525*ee,.275*te,.475*ee,.325*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.9*ee,.4*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.55*te,ee,.4*te,ee,.55*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.425*ee,.55*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.55*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.6*ee,.7*te,.675*ee,.55*te,.675*ee,.7*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.7*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.575*ee,.7*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.575*ee,.85*te,.65*ee,.7*te,.65*ee,.85*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.85*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.525*ee,.85*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.535*ee,te,.61*ee,.85*te,.61*ee,te)),oe.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,oe=new go.PathFigure(0,.2*te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.25*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.25*ee,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*ee,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*ee,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te)),oe.add(new go.PathSegment(go.PathSegment.Move,.75*ee,0)),oe.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,oe=new go.PathFigure(0,te,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te*.7)),oe.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,oe=new go.PathFigure(ee*1,te*1,!1);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te*.85)),oe.add(new go.PathSegment(go.PathSegment.Line,.046*ee,te*.85)),oe.add(new go.PathSegment(go.PathSegment.Line,.046*ee,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,.046*ee,te*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,te*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,ee,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ee,te*.85)),oe.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 xe=new go.PathFigure(.678*ee,.85*te,!1);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,.678*ee,.45*te)),xe.add(new go.PathSegment(go.PathSegment.Line,.874*ee,.45*te)),xe.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,oe=new go.PathFigure(0,te*1,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.2,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.2,te*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.4,te*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.4,te*.6)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*.6)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*.4)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*.4)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*.2)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.2)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.15)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.15)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.35)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.35)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.55)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.35,te*.55)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.35,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.15,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.15,te*.95)),oe.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,oe=new go.PathFigure(0,te*1,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.184,te*1)),oe.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 xe=new go.PathFigure(ee*.612,te,!0);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.612,te*(1-.184*3))),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.796,te*(1-.184*4))),xe.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,oe=new go.PathFigure(0,0,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.3,te*1)),oe.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 xe=new go.PathFigure(ee*.055,.18*te,!0);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.245,te*.18)),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.245,te*.21)),xe.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,oe=new go.PathFigure(.55*ee,te,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.5*ee,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.7*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.1*ee,.475*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.35*ee,.525*te,0,.4*te,.225*ee,.45*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*ee,.475*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*ee,.35*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*ee,.325*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.325*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*ee,.1*te)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.9*ee,.2*te,.975*ee,0,ee,.08*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*ee,.45*te)),oe.add(new go.PathSegment(go.PathSegment.Line,.6*ee,.95*te)),oe.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,oe=new go.PathFigure(ee*1,te*.5,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.9,.4*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.4*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.35*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.45,.35*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.3,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.15,.2*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.35*te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.65*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.15,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.3,.8*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.45,.65*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.65*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.5,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.6,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.65,.55*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.7,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.75,.55*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.8,.6*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.85,.575*te)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.9,.6*te).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.17*ee,.425*te)),oe.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,oe=new go.PathFigure(0,0,!1);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Arc,270,180,ee*0,ee*.3,ee*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.08,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.08,te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*1),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*1),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*2),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*2),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*3),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*3),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*4),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*4),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*5),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*5),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*6),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*6),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*7),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*7),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*8),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*8),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*9),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*9),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*10),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*10),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*11),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*11),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*12),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*12),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*13),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*13),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*14),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*14),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*15),te*.95)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(.08+.056*15),te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1)),oe.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 xe=new go.PathFigure(ee*(.11+.24133333*1+.028*1),te*.1,!1);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*1),te*.1)),xe.add(new go.PathSegment(go.PathSegment.Line,ee*(.11+.24133333*2+.028*1),te*.8)),xe.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,oe=8,de=oe*be,ve=new go.PathFigure(oe,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-oe)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee-oe,te,ee,te-de,ee-de,te)),ve.add(new go.PathSegment(go.PathSegment.Line,oe,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,te-oe,de,te,0,te-de)),ve.add(new go.PathSegment(go.PathSegment.Line,0,oe)),ve.add(new go.PathSegment(go.PathSegment.Bezier,oe,0,0,de,de,0).close());var xe=new go.PathFigure(ee*.83,0,!1);ue.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.83,te*.3)),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.17,te*.3)),xe.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 Pe=new go.PathFigure(ee*.78,te*.05,!1);return ue.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.05)),Pe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.25)),Pe.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 oe=ue*be,de=te*.8,ve=new go.Geometry,xe=new go.PathFigure(ue,0,!0);return ve.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,ee-ue,0)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee,ue,ee-oe,0,ee,oe)),xe.add(new go.PathSegment(go.PathSegment.Line,ee,de-ue)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee-ue,de,ee,de-oe,ee-oe,de)),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.7,de)),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.7,te)),xe.add(new go.PathSegment(go.PathSegment.Line,ee*.55,de)),xe.add(new go.PathSegment(go.PathSegment.Line,ue,de)),xe.add(new go.PathSegment(go.PathSegment.Bezier,0,de-ue,oe,de,0,de-oe)),xe.add(new go.PathSegment(go.PathSegment.Line,0,ue)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ue,0,0,oe,oe,0).close()),oe>1?(ve.spot1=new go.Spot(0,0,oe,oe),ve.spot2=new go.Spot(1,.8,-oe,-oe)):(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,oe=new go.PathFigure(ee*0,te*.45,!0);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.3,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.3,te*.9)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.6,te*.9)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.65,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.2,te*1)),oe.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,oe=new go.PathFigure(ee*0,te*.1,!1);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.9)),oe.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,oe=15,de=oe*be,ve=new go.PathFigure(ee*.62,te*.475,!0);return ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,ee,te-oe)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ee-oe,te,ee,te-de,ee-de,te)),ve.add(new go.PathSegment(go.PathSegment.Line,oe,te)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,te-oe,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,oe=new go.PathFigure(ee*0,te*1,!0);ue.add(oe);var de=.1/.3;oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.755,te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.93,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.64,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.61,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.39,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.36,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.07,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),te*0)),oe.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,oe=new go.PathFigure(ee*0,te*1,!0);ue.add(oe);var de=.1/.3;return oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.755,te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.93,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.64,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.61,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.39,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.36,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.07,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),te*0)),oe.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,oe=new go.PathFigure(ee*0,te*1,!0);ue.add(oe);var de=.1/.3;oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.8,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.66,te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.755,te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.93,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.64,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.61,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.39,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.36,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.07,te*(1-de))),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.755),te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*.055)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.66),te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*(1-.8),te*0)),oe.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,oe=new go.PathFigure(ee*.15,te*0,!1);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.85,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.7,te*1)),oe.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,oe=new go.PathFigure(ee*.15,te*0,!1);ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.85,te*0)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.7,te*1)),oe.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,oe=new go.PathFigure(ee*.5,te*0,!0);return ue.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.65,te*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.35)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*1,te*.5)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.65)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.75,te*.55)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.55)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.55,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.65,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.5,te*1)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.35,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.75)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.55)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*.55)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*.65)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*0,te*.5)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*.35)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.25,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.45)),oe.add(new go.PathSegment(go.PathSegment.Line,ee*.45,te*.25)),oe.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 fn={},jt="5.0",he={},ge=null,Ie=!1,Ke=!1,ot=null,He=!1,it=null,be=null,yt=0;yt<arguments.length;yt++){var ct=arguments[yt];if(ct!==null)switch(typeof ct){case"number":jt=ct.toFixed(1);break;case"string":ct.match(new RegExp("^[0-9]\\.[0-9]+$"))?jt=ct:ot=ct;break;case"object":typeof ct.is3D!="undefined"?ge=ct:he=ct;break;case"boolean":Ie=ct,Ke=!0;break}}ge===null&&(ge={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&&!Ke&&(Ie=!0)),ot!==null&&he.id===void 0&&(he.id=ot);var Xe="",et="",Je=!1,Ue=null,Ee=null,ee=null,te=!1,ue=null,oe=null,de=null,ve=null,xe=null;he.height!==void 0&&(he.height=Math.round(he.height)),he.width!==void 0&&(he.width=Math.round(he.width));var Ae=function(Ct){return parseFloat(Ct)>4?parseFloat(Ct):5};fn.setHTML5Codebase=function(Ct,Nt){be=Ct,Mt(Ct,Nt)},fn.setJavaCodebase=fn.setJavaCodebaseVersion=fn.isCompiledInstalled=fn.setPreCompiledScriptPath=fn.setPreCompiledResourcePath=function(){},fn.setHTML5CodebaseVersion=function(Ct,Nt){var sn=parseFloat(Ct);if(sn!==NaN&&sn<5){console.log("The GeoGebra HTML5 codebase version "+sn+" is deprecated. Using version latest instead.");return}it=Ct,Ze(Ct,Nt)},fn.getHTML5CodebaseVersion=function(){return Ee},fn.getParameters=function(){return he},fn.setFontsCSSURL=function(Ct){ve=Ct},fn.setGiacJSURL=function(Ct){},fn.setJNLPFile=function(Ct){Xe=Ct},fn.setJNLPBaseDir=function(Ct){},fn.inject=function(){function Ct(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Nt="auto",sn=he.id,Nn,hn=!1,Xn=0;Xn<arguments.length;Xn++){var Ft=arguments[Xn];typeof Ft=="string"?(Ft=Ft.toLowerCase(),Ft.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Nt=Ft:sn=arguments[Xn]):typeof Ft=="boolean"?hn=Ft:Ft instanceof HTMLElement&&(Nn=Ft)}Un();function Un(){if(!He){setTimeout(Un,200);return}Nt=Jt(Nt);var Kn=Nn||document.getElementById(sn);if(!Kn){console.log("possibly bug on ajax loading? ");return}if(fn.removeExistingApplet(Kn,!1),he.width===void 0&&Kn.clientWidth&&(he.width=Kn.clientWidth),he.height===void 0&&Kn.clientHeight&&(he.height=Kn.clientHeight),!(he.width&&he.height)&&Nt==="html5"&&(delete he.width,delete he.height),Ue=Nt,Nt==="screenshot")Qe(Kn,he);else{var ti=!1;he.hasOwnProperty("playButton")&&he.playButton||he.hasOwnProperty("clickToLoad")&&he.clickToLoad?ti=!0:he.hasOwnProperty("playButtonAutoDecide")&&he.playButtonAutoDecide&&(ti=(!Pe()||Ct())&&Ne()),ti?(Ue="screenshot",vt(Kn,he,hn,Nt)):bt(Kn,he,hn)}}};function Pe(){try{return window.self!==window.top}catch(Ct){return!0}}function Ne(){return he.hasOwnProperty("screenshotGenerator")&&he.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}fn.getViews=function(){return ge},fn.isJavaInstalled=function(){return!1};var Le=function(Ct){var Nt=function(Xn){var Ft=JSON.parse(Xn),Un=function(Fn){return Fn.type=="G"||Fn.type=="E"},Kn=Ft.elements?Ft.elements.filter(Un)[0]:Ft;if(!Kn||!Kn.url){sn();return}he.fileName=Kn.url,Re(Kn.settings||{}),ge.is3D=!0;var ti="https://www.geogebra.org/images/";fn.setPreviewImage(ue||Kn.previewUrl,ti+"GeoGebra_loading.png",ti+"applet_play.png"),Ct()},sn=function(){he.onError&&he.onError(),Yt("Error: Fetching material (id "+he.material_id+") failed.",he)},Nn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",hn="/materials/"+he.material_id+"?scope=basic";je("https://"+Nn+"/api/proxy.php?path="+encodeURIComponent(hn),Nt,sn)};function Re(Ct){var Nt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(sn){Ct[sn]=!!Ct[sn]}),Nt.forEach(function(sn){he[sn]===void 0&&Ct[sn]!==void 0&&(he[sn]=Ct[sn])}),he.showToolBarHelp===void 0&&(he.showToolBarHelp=he.showToolBar)}function je(Ct,Nt,sn){var Nn=new XMLHttpRequest;Nn.open("GET",Ct),Nn.onload=function(){Nt(Nn.responseText)},Nn.onerror=sn,Nn.send()}fn.isHTML5Installed=function(){return!0},fn.getLoadedAppletType=function(){return Ue},fn.setPreviewImage=function(Ct,Nt,sn){ue=Ct,oe=Nt,de=sn},fn.removeExistingApplet=function(Ct,Nt){var sn;typeof Ct=="string"&&(Ct=document.getElementById(Ct)),Ue=null;var Nn=null;for(sn=0;sn<Ct.childNodes.length;sn++){var hn=Ct.childNodes[sn],Xn=hn.className;Xn==="applet_screenshot"?Nt?(hn.style.display="block",Ue="screenshot"):hn.style.display="none":Xn!=="applet_scaler prerender"&&(Ct.removeChild(hn),Nn=Xn&&Xn.indexOf("appletParameters")!=-1?hn.id:null,sn--)}var Ft=he.id!==void 0?he.id:Nn,Un=window[Ft];Un&&typeof Un.getBase64=="function"&&(Un.remove(),window[Ft]=null)},fn.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ct=fn.getAppletObject();return Ct&&typeof Ct.recalculateEnvironments=="function"?(Ct.recalculateEnvironments(),!0):!1},fn.startAnimation=function(){var Ct=fn.getAppletObject();return Ct&&typeof Ct.startAnimation=="function"?(Ct.startAnimation(),!0):!1},fn.stopAnimation=function(){var Ct=fn.getAppletObject();return Ct&&typeof Ct.stopAnimation=="function"?(Ct.stopAnimation(),!0):!1},fn.getAppletObject=function(){var Ct=he.id!==void 0?he.id:"ggbApplet";return window[Ct]},fn.resize=function(){};var Ge=function(Ct,Nt,sn){var Nn=document.createElement("param");Nn.setAttribute("name",Nt),Nn.setAttribute("value",sn),Ct.appendChild(Nn)},We=function(Ct){return Ct&&Ct!=="false"},bt=function(Ct,Nt,sn){Ae(Ee)<=4.2&&(sn=!0);var Nn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ee||ggbHTML5LoadedCodebaseIsWebSimple&&!te)&&(Nn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var hn=document.createElement("div");hn.classList.add("appletParameters","notranslate");var Xn=Nt.width,Ft=Nt.height;if(Nt.disableAutoScale=Nt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Nt.disableAutoScale,Nt.width!==void 0)if(Ae(Ee)<=4.4)We(Nt.showToolBar)&&(Nt.height-=7),We(Nt.showAlgebraInput)&&(Nt.height-=37),Nt.width<605&&We(Nt.showToolBar)&&(Nt.width=605,Xn=605);else{var Un=100;(We(Nt.showToolBar)||We(Nt.showMenuBar))&&(Nt.hasOwnProperty("customToolBar")&&(Nt.customToolbar=Nt.customToolBar),Un=We(Nt.showMenuBar)?245:155),Xn<Un&&(Nt.width=Un,Xn=Un)}hn.style.border="none",hn.style.display="inline-block";for(var Kn in Nt)Nt.hasOwnProperty(Kn)&&Kn!=="appletOnLoad"&&hn.setAttribute("data-param-"+Kn,Nt[Kn]);ve&&hn.setAttribute("data-param-fontscssurl",ve),fn.resize=function(){GGBAppletUtils.responsiveResize(Ct,Nt)},window.addEventListener("resize",function(ye){fn.resize()});var ti=typeof Nt.appletOnLoad=="function"?Nt.appletOnLoad:function(){};if(!sn&&Nt.width!==void 0){Nt.hasOwnProperty("showSplash")||hn.setAttribute("data-param-showSplash","false");var Fn=Ct.querySelector(".applet_scaler.prerender"),Zt=Fn!==null;if(Zt)var Xt=Fn.querySelector(".ggb_preview");else{var Xt=Rt(Xn,Ft,Nt.borderColor,!1);Fn=document.createElement("div"),Fn.className="applet_scaler",Fn.style.position="relative",Fn.style.display="block",Fn.style.width=Xn+"px",Fn.style.height=Ft+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Fn,"66%"),Ae(Ee)>=5?(Nt.appletOnLoad=function(ye){var ke=Ct.querySelector(".ggb_preview");ke&&ke.parentNode.removeChild(ke),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Fn),window.GGBT_wsf_view&&$(window).trigger("resize"),ti(ye)},Zt||Fn.appendChild(Xt)):hn.appendChild(Xt),Fn.appendChild(hn),Zt||Ct.appendChild(Fn),setTimeout(function(){fn.resize()},1)}else{var mt=document.createElement("div");mt.className="applet_scaler",mt.style.position="relative",mt.style.display="block",mt.appendChild(hn),Ct.appendChild(mt),Nt.appletOnLoad=function(ye){fn.resize(),ti(ye)}}function tt(ye,ke){ke&&typeof ke.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ye,ke.appletOnLoad):renderGGBElement(ye),Yt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ke)}function Wt(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(Ve){tt(Ve.article,Ve.params)}),html5AppletsToProcess=null)},Ae(Ee)<5&&(ye.className+=" geogebraweb")):tt(ye,ke)}if(Nn){scriptLoadStarted=!0;for(var Lt=0;Lt<hn.childNodes.length;Lt++){var pt=hn.childNodes[Lt].tagName;pt==="TABLE"&&(hn.removeChild(hn.childNodes[Lt]),Lt--)}if(ggbHTML5LoadedScript!==null){var nt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');nt!=null&&nt.parentNode.removeChild(nt)}var Oe=document.createElement("script"),we=function(){Wt(hn,Nt)};Oe.src=et+ee,ggbHTML5LoadedCodebaseIsWebSimple=te,ggbHTML5LoadedCodebaseVersion=Ee,ggbHTML5LoadedScript=Oe.src,Yt("GeoGebra HTML5 codebase loaded: '"+et+"'.",Nt),!be&&(!it||it=="5.0")?(te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),we()):et.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,Ct.appendChild(Oe))}else Wt(hn,Nt);Nt.height=Ft,Nt.width=Xn},Qe=function(Ct,Nt,sn){var Nn=Rt(Nt.width,Nt.height,Nt.borderColor,sn),hn=document.createElement("div");hn.style.position="relative",hn.style.display="block",hn.style.width=Nt.width+"px",hn.style.height=Nt.height+"px",hn.className="applet_screenshot applet_scaler"+(sn?" applet_screenshot_play":""),hn.appendChild(Nn);var Xn=GGBAppletUtils.getScale(Nt,Ct,sn);sn?(Ct.appendChild(kt()),window.GGBT_wsf_view||(Ct.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(hn,"66%"),Ct.appendChild(hn),Xn!==1&&!isNaN(Xn)&&(GGBAppletUtils.scaleElement(hn,Xn),hn.style.width=Nt.width+"px",hn.style.height=Nt.height+"px",hn.parentNode.style.width=Nt.width*Xn+"px",hn.parentNode.style.height=Nt.height*Xn+"px"),fn.resize=function(){Dt(Ct,Nn,hn,sn)},window.addEventListener("resize",function(Ft){fn.resize()}),fn.resize()};function Dt(Ct,Nt,sn,Nn){if(Ct.contains(Nt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ct.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ct)}var hn=GGBAppletUtils.getScale(he,Ct,Nn);sn.parentNode!==null&&(!isNaN(hn)&&hn!==1?(GGBAppletUtils.scaleElement(sn,hn),sn.parentNode.style.width=he.width*hn+"px",sn.parentNode.style.height=he.height*hn+"px"):(GGBAppletUtils.scaleElement(sn,1),sn.parentNode.style.width=he.width+"px",sn.parentNode.style.height=he.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ct),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}fn.onExitFullscreen=function(Ct,Nt){Nt.appendChild(Ct)};var vt=function(Ct,Nt,sn,Nn){Qe(Ct,Nt,!0);for(var hn=function(){var Un=[];for(Ft=0;Ft<Ct.childNodes.length;Ft++)Un.push(Ct.childNodes[Ft]);if(window.GGBT_wsf_view){var Kn=window.GGBT_wsf_view.renderFullScreen(Ct,Nt.id),ti=document.getElementById("fullscreencontainer"),Fn=jQuery(Ct).find(".fullscreencontent");Fn.length>0?(Kn.remove(),Fn.attr("id","fullscreencontent").show(),jQuery(ti).append(Fn),window.dispatchEvent(new Event("resize"))):bt(Kn,Nt,!1),window.GGBT_wsf_view.launchFullScreen(ti)}else Ue=Nn,bt(Ct,Nt,!1);if(!window.GGBT_wsf_view)for(Ft=0;Ft<Un.length;Ft++)Ct.removeChild(Un[Ft])},Xn=Ct.getElementsByClassName("ggb_preview_play"),Ft=0;Ft<Xn.length;Ft++)Xn[Ft].addEventListener("click",hn,!1),Xn[Ft].addEventListener("ontouchstart",hn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ct),Ne()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},kt=function(){var Ct=document.createElement("div");if(Ct.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Nt='.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");}',sn=document.createElement("style");sn.styleSheet?sn.styleSheet.cssText=Nt:sn.appendChild(document.createTextNode(Nt)),document.getElementsByTagName("head")[0].appendChild(sn)}return Ct},Rt=function(Ct,Nt,sn,Nn){var hn=document.createElement("div");hn.className="ggb_preview",hn.style.position="absolute",hn.style.zIndex="90",hn.style.width=Ct-2+"px",hn.style.height=Nt-2+"px",hn.style.top="0px",hn.style.left="0px",hn.style.overflow="hidden",hn.style.backgroundColor="white";var Xn="lightgrey";sn!==void 0&&(sn==="none"?Xn="transparent":Xn=sn),hn.style.border="1px solid "+Xn;var Ft=document.createElement("img");if(Ft.style.position="relative",Ft.style.zIndex="1000",Ft.style.top="-1px",Ft.style.left="-1px",ue!==null&&Ft.setAttribute("src",ue),Ft.style.opacity=.7,oe!==null){var Un,Kn,ti;if(!Nn){Un=document.createElement("img"),Un.style.position="absolute",Un.style.zIndex="1001",Un.style.opacity=1,Ft.style.opacity=.3,Kn=360,Kn>Ct/4*3&&(Kn=Ct/4*3),ti=Kn/5.8,Un.setAttribute("src",oe),Un.setAttribute("width",Kn),Un.setAttribute("height",ti);var Fn=(Ct-Kn)/2,Zt=(Nt-ti)/2;Un.style.left=Fn+"px",Un.style.top=Zt+"px",hn.appendChild(Un)}}return hn.appendChild(Ft),hn},Jt=function(Ct){return Ct=Ct.toLowerCase(),Ct==="html5"||Ct==="screenshot"?Ct:"html5"},at=["web","webSimple","web3d","tablet","tablet3d","phone"],Ze=function(Ct,Nt){if(Ee=Ct,Nt){Mt(Ee,!0);return}var sn=!Ie;if(sn){var Nn=Ae(Ee);!isNaN(Nn)&&Nn<4.4&&(sn=!1)}var hn,Xn;window.location.protocol.substr(0,4)==="http"?hn=window.location.protocol:hn="http:";var Ft=Ee.indexOf("//");Ft>0?Xn=Ee:Ft===0?Xn=hn+Ee:Xn="https://www.geogebra.org/apps/5.2.814.0/";for(var Un in at)if(Ee.slice(at[Un].length*-1)===at[Un]||Ee.slice((at[Un].length+1)*-1)===at[Un]+"/"){Mt(Xn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&sn&&!ge.is3D&&!ge.AV&&!ge.SV&&!ge.CV&&!ge.EV2&&!ge.CP&&!ge.PC&&!ge.DA&&!ge.FI&&!ge.PV&&!We(he.showToolBar)&&!We(he.showMenuBar)&&!We(he.showAlgebraInput)&&!We(he.enableRightClick)&&(!he.appName||he.appName=="classic")?Xn+="webSimple/":Xn+="web3d/",Mt(Xn,!1)},Mt=function(Ct,Nt){if(Ct.requirejs){et=Ct;return}Ct.slice(-1)!=="/"&&(Ct+="/"),et=Ct,Nt===null&&(Nt=Ct.indexOf("http")===-1),Je=Nt,ee="web.nocache.js",te=!1;var sn=et.split("/");sn.length>1&&(!Nt&&sn[sn.length-2]==="webSimple"?(ee="webSimple.nocache.js",te=!0):at.indexOf(sn[sn.length-2])>=0&&(ee=sn[sn.length-2]+".nocache.js")),sn=Ct.split("/"),Ee=sn[sn.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 Nn=parseFloat(Ee);Nn!==NaN&&Nn<5&&Ct.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nn+" is deprecated. Using version latest instead."),Ze("5.0",Nt))},Yt=function(Ct,Nt){window.console&&window.console.log&&(!Nt||typeof Nt.showLogging=="undefined"||Nt.showLogging&&Nt.showLogging!=="false")&&console.log(Ct)};he.material_id!==void 0?Le(Vt):Vt();function Vt(){var Ct=jt;it!==null?Ct=it:parseFloat(Ct)<5&&(Ct="5.0"),Ze(Ct,!1),be!==null&&Mt(be,Je),He=!0}return fn},GGBAppletUtils=function(){"use strict";function fn(){return window.GGBT_wsf_edit!==void 0}function jt(He,it){it!=1?(He.style.transformOrigin="0% 0% 0px",He.style.webkitTransformOrigin="0% 0% 0px",He.style.transform="scale("+it+","+it+")",He.style.webkitTransform="scale("+it+","+it+")",He.style.maxWidth="initial",He.querySelector(".ggb_preview")!==null&&(He.querySelector(".ggb_preview").style.maxWidth="initial"),He.querySelectorAll(".ggb_preview img")[0]!==void 0&&(He.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),He.querySelectorAll(".ggb_preview img")[1]!==void 0&&(He.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(He.style.transform="none",He.style.webkitTransform="none")}function he(He,it,be,yt,ct,Xe){var et=null;if(Xe!=null&&Xe!="")for(var Je=He.parentNode;Je!=null;)if((" "+Je.className+" ").indexOf(" "+Xe+" ")>-1){et=Je;break}else Je=Je.parentNode;var Ue=0,Ee=0,ee=0,te=0,ue=0,oe=0,de=0;if(et)Ue=et.offsetWidth,Ee=Math.max(yt?et.offsetWidth:0,et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ue=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),ee=Ue):(Ue=window.innerWidth,Ee=window.innerHeight,ee=window.innerWidth),He){var ve=He.getBoundingClientRect();ve.left>0&&ve.left<=Ue&&(ct===void 0||!ct)&&(document.dir==="rtl"?(ue=Ue-ve.width-ve.left,oe=ee<=480?10:30):(oe=ve.left,ue=ee<=480?10:30),te=oe+ue)}if(He&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xe=He.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te=40,de=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te=0,de=40)}}return He&&((be===void 0||!be)&&it>0&&it+te<Ue?Ue=it:Ue-=te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(be===void 0||!be)&&(Ee-=de)),{width:Ue,height:Ee}}function ge(He,it,be,yt,ct){if(He.isScreenshoGenerator)return 1;var Xe=yt!==void 0&&yt,et=He.noScaleMargin!=null&&He.noScaleMargin,Je=function(xe){return xe&&xe!=="false"},Ue=Je(He.autoHeight),Ee=he(it,He.width,be,Ue,Xe&&window.GGBT_wsf_view||et,ct),ee=parseInt(Ee.width),te=He.width,ue=He.height;if(te===void 0){var oe=it.querySelector(".appletParameters");oe&&(te=oe.offsetWidth,ue=oe.offsetHeight)}var de=ee/te,ve=Xe?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(He,it,be){var yt=1,ct,Xe=!1;if(He.hasOwnProperty("allowUpscale")&&(Xe=He.allowUpscale),He.hasOwnProperty("scale")&&(yt=parseFloat(He.scale),(isNaN(yt)||yt===null||yt===0)&&(yt=1),yt>1&&(Xe=!0)),it&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Xe=!0),!(He.hasOwnProperty("disableAutoScale")&&He.disableAutoScale))ct=ge(He,it,Xe,be,He.scaleContainerClass);else return yt;return Xe&&(!He.hasOwnProperty("scale")||yt===1)?ct:Math.min(yt,ct)}function Ke(He){var it=Math.min(window.innerWidth,document.documentElement.clientWidth),be=Math.min(window.innerHeight,document.documentElement.clientHeight),yt=He.getBoundingClientRect(),ct=(it-yt.width)/2,Xe=(be-yt.height)/2;Xe<0&&(Xe=0),He.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ct<40?He.style.left="40px":He.style.left=ct+"px",He.style.top=Xe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Xe<40?He.style.top="40px":He.style.top=Xe+"px",He.style.left=ct+"px")}function ot(He,it){var be=He.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(He)}if(be.parentElement&&/fullscreen/.test(be.parentElement.className))return;var yt=Ie(it,He);fn()&&be.setAttribute("data-param-scale",yt);for(var ct=null,Xe=0;Xe<He.childNodes.length;Xe++)if(He.childNodes[Xe].className!==void 0&&He.childNodes[Xe].className.match(/^applet_scaler/)){ct=He.childNodes[Xe];break}if(ct!==null&&ct.querySelector(".noscale")!==null)return;var et=it.id!==void 0?it.id:"ggbApplet",Je=window[et];(Je==null||!Je.recalculateEnvironments)&&ct!==null&&!ct.className.match(/fullscreen/)&&(ct.parentNode.style.transform="",!isNaN(yt)&&yt!==1?(ct.parentNode.style.width=it.width*yt+"px",ct.parentNode.style.height=it.height*yt+"px",jt(ct,yt)):(jt(ct,1),ct.parentNode.style.width=it.width+"px",ct.parentNode.style.height=it.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(He),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(be).parents(".content-added-content"))}}return{responsiveResize:ot,isFlexibleWorksheetEditor:fn,positionCenter:Ke,getScale:Ie,scaleElement:jt}}();__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 fn=n.location.search;return fn.indexOf(J)!=-1||fn.indexOf(K)!=-1}function q(fn,jt){}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(fn){var jt=s[L].bindings;s[L].bindings=function(){for(var he=jt?jt():{},ge=fn[webModule.__softPermutationId],Ie=O;Ie<ge.length;Ie++){var Ke=ge[Ie];he[Ke[O]]=Ke[P]}return he}};var t;function u(){return v(),t}function v(){if(!t){var fn=o.createElement(Q);if(fn.id=L,fn.style.cssText=R+S,fn.tabIndex=-1,o.body.appendChild(fn),t=fn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var jt=document.compatMode==U?V:W;t.write(jt+X),t.close()}}}function w(fn){function jt(ge){function Ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=Ie();if(Ke){ge();return}function ot(){if(!Ke){if(!Ie())return;Ke=!0,ge(),o.removeEventListener&&o.removeEventListener(Z,ot,!1),He&&clearInterval(He)}}o.addEventListener&&o.addEventListener(Z,ot,!1);var He=setInterval(function(){ot()},$)}function he(ge){var Ie=u(),Ke=Ie.body,ot=Ie.createElement(_);ot.language=ab,ot.crossOrigin=W,ot.src=ge,webModule.__errFn&&(ot.onerror=function(){webModule.__errFn(L,new Error(bb+ge))}),Ke.appendChild(ot)}jt(function(){he(fn)})}webModule.__startLoadingFragment=function(fn){return C(fn)},webModule.__installRunAsyncCode=function(fn){var jt=u(),he=jt.body,ge=jt.createElement(_);ge.language=ab,ge.text=fn,he.appendChild(ge),he.removeChild(ge)};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(fn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(fn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(fn){var jt=c[fn];return jt==null?null:jt},r=d,webModule.__errFn=e}function B(){function fn(He){var it=He.lastIndexOf(rb);it==-1&&(it=He.length);var be=He.indexOf(sb);be==-1&&(be=He.length);var yt=He.lastIndexOf(tb,Math.min(be,it));return yt>=O?He.substring(O,yt+P):W}function jt(He){if(!He.match(/^\w+:\/\//)){var it=o.createElement(ub);it.src=He+vb,He=fn(it.src)}return He}function he(){var He=__gwt_getMetaProperty(wb);return He!=null?He:W}function ge(){for(var He=o.getElementsByTagName(_),it=O;it<He.length;++it)if(He[it].src.indexOf(xb)!=-1)return fn(He[it].src);return W}function Ie(){var He=o.getElementsByTagName(yb);return He.length>O?He[He.length-P].href:W}function Ke(){var He=o.location;return He.href==He.protocol+zb+He.host+He.pathname+He.search+He.hash}var ot=he();return ot==W&&(ot=ge()),ot==W&&(ot=Ie()),ot==W&&Ke()&&(ot=fn(o.location.href)),ot=jt(ot),ot}function C(fn){return fn.match(/^\//)||fn.match(/^[a-zA-Z]+:\/\//)?fn:webModule.__moduleBase+fn}function D(){var fn=[],jt=O,he=[],ge=[];function Ie(He){var it=ge[He](),be=he[He];if(it in be)return it;var yt=[];for(var ct in be)yt[be[ct]]=ct;throw r&&r(He,yt,it),null}if(__gwt_isKnownPropertyValue=function(He,it){return it in he[He]},webModule.__getPropMap=function(){var He={};for(var it in he)he.hasOwnProperty(it)&&(He[it]=Ie(it));return He},webModule.__computePropValue=Ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var ot=Ke.indexOf(Db);ot!=-1&&(jt=parseInt(Ke.substring(ot+P),$),Ke=Ke.substring(O,ot))}catch(He){}return webModule.__softPermutationId=jt,C(Ke+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(fn,jt,he){"use strict";he.d(jt,{Ax:function(){return ot},Ds:function(){return He},KI:function(){return be},SI:function(){return Ke},f1:function(){return Ie}});var ge=he(10148);function Ie(yt){let ct=!0;if(yt.length>0){for(let Xe=0;Xe<yt.length;Xe++)if(yt[Xe].compile_success==0||!yt[Xe].compile_success){ct=!1;break}}else ct=!1;return ct}function Ke(yt,ct=""){let Xe=[];for(let et=0;et<yt.length;et++){let Je=yt[et],Ue=ct?`${ct}/${Je.name}`:`${Je.name}`;Xe.push({title:Je.name,type:Je.type,isLeaf:Je.type!=="tree",key:Ue})}return Xe}function ot(yt,ct,Xe){for(let et=0;et<yt.length;et++){let Je=yt[et];if(Je.key===ct){Je.children=Xe;break}Je.children&&ot(Je.children,ct,Xe)}return yt}function He(yt,ct,Xe){let et;return function(){let Je=this,Ue=arguments,Ee=function(){et=null,Xe||yt.apply(Je,Ue)},ee=Xe&&!et;clearTimeout(et),et=setTimeout(Ee,ct),ee&&yt.apply(Je,Ue)}}const it=!0,be=ge.Z.API_SERVER},38333:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ue}});var ge=he(59301),Ie=he(8591),Ke=he(92832),ot={codeBox:"codeBox___WpkVl"},He=he(92310),it=he.n(He),be=Object.defineProperty,yt=(Ee,ee,te)=>ee in Ee?be(Ee,ee,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ee[ee]=te,ct=(Ee,ee,te)=>yt(Ee,typeof ee!="symbol"?ee+"":ee,te),Xe=(Ee,ee,te)=>new Promise((ue,oe)=>{var de=Ae=>{try{xe(te.next(Ae))}catch(Pe){oe(Pe)}},ve=Ae=>{try{xe(te.throw(Ae))}catch(Pe){oe(Pe)}},xe=Ae=>Ae.done?ue(Ae.value):Promise.resolve(Ae.value).then(de,ve);xe((te=te.apply(Ee,ee)).next())});class et extends ge.Component{constructor(ee){super(ee),ct(this,"canvas"),ct(this,"randomNum",(te,ue)=>Math.floor(Math.random()*(ue-te)+te)),ct(this,"drawPic",()=>{this.randomCode()}),ct(this,"reloadPic",()=>{this.drawPic()}),ct(this,"changeCode",te=>{console.log(te.target.value,222),this.setState({value:te.target.value,showError:!1})}),ct(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=ge.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),oe=this.randomNum(ee,te),de=this.randomNum(ee,te);return`rgb(${ue}, ${oe}, ${de})`}drawText(ee,te,ue){ee.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const oe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);ee.font=oe+"px SimHei";const de=10,ve=(this.state.contentWidth-40)/(this.state.code.length-1);let xe=de;ue>0&&(xe=de+ue*ve);let Ae=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);oe>40&&(Ae=40);const Pe=this.randomNum(-10,10);ee.translate(xe,Ae),ee.rotate(Pe*Math.PI/180),ee.fillText(te,0,0),ee.rotate(-Pe*Math.PI/180),ee.translate(-xe,-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 oe=Math.floor(Math.random()*57);ee+=te[oe]}this.setState({code:ee},()=>{const oe=this.canvas.current.getContext("2d");oe.textBaseline="bottom",oe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),oe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let de=0;de<this.state.code.length;de++)this.drawText(oe,this.state.code[de],de);this.drawLine(oe),this.drawDot(oe)})}render(){const{className:ee,width:te=300}=this.props;return ge.createElement("div",{className:it()(ot.codeBox,ee),style:{width:te}},ge.createElement("aside",null,ge.createElement(Ke.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),ge.createElement("div",null,ge.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),ge.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Je=(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(et,{ref:ue=>te=ue})),onOk:()=>Xe(void 0,null,function*(){if(te.onVerify())return Promise.reject();Ee()})})};var Ue=et},72194:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return it}});var ge=he(60324),Ie={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Ke=he(32637),ot=he(59301),it=({type:be,style:yt})=>{const ct=ot.createElement("div",{className:Ie.wrap,onClick:Xe=>{Xe.preventDefault(),Xe.stopPropagation()}},ot.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",ot.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"),ot.createElement("div",{className:Ie.contact},ot.createElement("div",{className:Ie.img},ot.createElement("img",{src:Ke,width:"124px",height:"124px"})),ot.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return ot.createElement(ge.Z,{content:ct},ot.createElement("span",{className:Ie.text,style:yt},"\u9AD8\u6D88\u8017"))}},65983:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return nt}});var ge=he(59301),Ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=he(92310),ot=he.n(Ke),He=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 Ve in ke)Object.prototype.hasOwnProperty.call(ke,Ve)&&(ye[Ve]=ke[Ve])})(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(Ve,Be){function dt(Et){try{mn(ke.next(Et))}catch(Ot){Be(Ot)}}function on(Et){try{mn(ke.throw(Et))}catch(Ot){Be(Ot)}}function mn(Et){var Ot;Et.done?Ve(Et.value):(Ot=Et.value,Ot instanceof ye?Ot:new ye(function(yn){yn(Ot)})).then(dt,on)}mn((ke=ke.apply(Oe,we||[])).next())})}function ct(Oe,we){var ye,ke,Ve,Be,dt={label:0,sent:function(){if(1&Ve[0])throw Ve[1];return Ve[1]},trys:[],ops:[]};return Be={next:on(0),throw:on(1),return:on(2)},typeof Symbol=="function"&&(Be[Symbol.iterator]=function(){return this}),Be;function on(mn){return function(Et){return function(Ot){if(ye)throw new TypeError("Generator is already executing.");for(;dt;)try{if(ye=1,ke&&(Ve=2&Ot[0]?ke.return:Ot[0]?ke.throw||((Ve=ke.return)&&Ve.call(ke),0):ke.next)&&!(Ve=Ve.call(ke,Ot[1])).done)return Ve;switch(ke=0,Ve&&(Ot=[2&Ot[0],Ve.value]),Ot[0]){case 0:case 1:Ve=Ot;break;case 4:return dt.label++,{value:Ot[1],done:!1};case 5:dt.label++,ke=Ot[1],Ot=[0];continue;case 7:Ot=dt.ops.pop(),dt.trys.pop();continue;default:if(Ve=dt.trys,!((Ve=Ve.length>0&&Ve[Ve.length-1])||Ot[0]!==6&&Ot[0]!==2)){dt=0;continue}if(Ot[0]===3&&(!Ve||Ot[1]>Ve[0]&&Ot[1]<Ve[3])){dt.label=Ot[1];break}if(Ot[0]===6&&dt.label<Ve[1]){dt.label=Ve[1],Ve=Ot;break}if(Ve&&dt.label<Ve[2]){dt.label=Ve[2],dt.ops.push(Ot);break}Ve[2]&&dt.ops.pop(),dt.trys.pop();continue}Ot=we.call(Oe,dt)}catch(yn){Ot=[6,yn],ke=0}finally{ye=Ve=0}if(5&Ot[0])throw Ot[1];return{value:Ot[0]?Ot[1]:void 0,done:!0}}([mn,Et])}}}function Xe(){for(var Oe=0,we=0,ye=arguments.length;we<ye;we++)Oe+=arguments[we].length;var ke=Array(Oe),Ve=0;for(we=0;we<ye;we++)for(var Be=arguments[we],dt=0,on=Be.length;dt<on;dt++,Ve++)ke[Ve]=Be[dt];return ke}var et=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,Ve=ye;ke<Ve.length;ke++){var Be=Ve[ke],dt=Be[0],on=Be[1];we.setAttribute(dt,on)}},Oe.createRect=function(we,ye,ke){var Ve=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ve.setAttribute("width",we.toString()),Ve.setAttribute("height",ye.toString()),ke&&Oe.setAttributes(Ve,ke),Ve},Oe.createLine=function(we,ye,ke,Ve,Be){var dt=document.createElementNS("http://www.w3.org/2000/svg","line");return dt.setAttribute("x1",we.toString()),dt.setAttribute("y1",ye.toString()),dt.setAttribute("x2",ke.toString()),dt.setAttribute("y2",Ve.toString()),Be&&Oe.setAttributes(dt,Be),dt},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 Ve=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ve.setAttribute("cx",(we/2).toString()),Ve.setAttribute("cy",(ye/2).toString()),Ve.setAttribute("rx",(we/2).toString()),Ve.setAttribute("ry",(ye/2).toString()),ke&&Oe.setAttributes(Ve,ke),Ve},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,Ve,Be,dt,on){var mn=document.createElementNS("http://www.w3.org/2000/svg","marker");return Oe.setAttributes(mn,[["id",we],["orient",ye],["markerWidth",ke.toString()],["markerHeight",Ve.toString()],["refX",Be.toString()],["refY",dt.toString()]]),mn.appendChild(on),mn},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}(),Je=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}(),Ue=function(){function Oe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Oe.prototype.rasterize=function(we,ye,ke){var Ve=this;return new Promise(function(Be){var dt=ke!==void 0?ke:document.createElement("canvas");we===null&&(Ve.markersOnly=!0,Ve.naturalSize=!1);var on=document.createElementNS("http://www.w3.org/2000/svg","svg");on.setAttribute("xmlns","http://www.w3.org/2000/svg"),on.setAttribute("width",ye.width.baseVal.valueAsString),on.setAttribute("height",ye.height.baseVal.valueAsString),on.setAttribute("viewBox","0 0 "+ye.viewBox.baseVal.width.toString()+" "+ye.viewBox.baseVal.height.toString()),on.innerHTML=ye.innerHTML,Ve.naturalSize===!0?(on.width.baseVal.value=we.naturalWidth,on.height.baseVal.value=we.naturalHeight):Ve.width!==void 0&&Ve.height!==void 0&&(on.width.baseVal.value=Ve.width,on.height.baseVal.value=Ve.height),dt.width=on.width.baseVal.value,dt.height=on.height.baseVal.value;var mn=on.outerHTML,Et=dt.getContext("2d");Ve.markersOnly!==!0&&Et.drawImage(we,0,0,dt.width,dt.height);var Ot=window.URL,yn=new Image(dt.width,dt.height);yn.setAttribute("crossOrigin","anonymous");var Tn=new Blob([mn],{type:"image/svg+xml"}),qn=Ot.createObjectURL(Tn);yn.onload=function(){Et.drawImage(yn,0,0),Ot.revokeObjectURL(qn);var vi=dt.toDataURL(Ve.imageType,Ve.imageQuality);Be(vi)},yn.src=qn})},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},oe=function(){function Oe(we,ye,ke,Ve,Be){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=we,this.displayMode=ye,this.markerItems=ke,this.uiStyleSettings=Ve,this.styles=Be,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(Be){var dt=document.createElement("div");dt.className=""+ye.toolbarButtonStyleClass.name,dt.setAttribute("data-type-name",Be.typeName),dt.innerHTML=Be.icon,dt.addEventListener("click",function(){ye.markerToolbarButtonClicked(dt,Be)}),ye.buttons.push(dt),ye.markerButtons.push(dt)}),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 Ve=document.createElement("div");Ve.className=this.toolbarBlockStyleClass.name,Ve.style.whiteSpace="nowrap",Ve.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ve),this.addActionButton(Ve,'<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(Ve,'<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 Ve=this,Be=document.createElement("div");switch(Be.className=""+this.toolbarButtonStyleClass.name,Be.innerHTML=ye,Be.setAttribute("data-action",ke),Be.addEventListener("click",function(){Ve.actionToolbarButtonClicked(Be,ke)}),ke){case"select":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Be.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Be.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Be.style.fill=this.uiStyleSettings.closeButtonColor}we.appendChild(Be),this.buttons.push(Be)},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,Ve){this.panels=[],this.panelButtons=[],this.markerjsContainer=we,this.displayMode=ye,this.uiStyleSettings=ke,this.styles=Ve,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,Ve=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(Be){var dt;Be.uiStyleSettings=Ve.uiStyleSettings;var on=document.createElement("div");on.className=Ve.toolboxButtonStyleClass.name+" "+((dt=Ve.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&dt!==void 0?dt:Ve.toolboxButtonStyleColorsClass.name),on.innerHTML=Be.icon,on.title=Be.title,on.addEventListener("click",function(){Ve.panelButtonClick(Be)}),Ve.panelButtons.push(on),Ve.buttonRow.appendChild(on)}),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 Ve=we.getUi();Ve.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ve),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(Be,dt){var on,mn;Be.className=ye.toolboxButtonStyleClass.name+" "+(dt===ke?""+((on=ye.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&on!==void 0?on:ye.toolboxActiveButtonStyleColorsClass.name):""+((mn=ye.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&mn!==void 0?mn:ye.toolboxButtonStyleColorsClass.name))})},Oe}(),ve=function(Oe,we){this.title=Oe,this.icon=we},xe=function(Oe){function we(ye,ke,Ve,Be){var dt=Oe.call(this,ye,Be||'<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 dt.colors=[],dt.addTransparent=!1,dt.colorBoxes=[],dt.colors=ke,dt.currentColor=Ve,dt.setCurrentColor=dt.setCurrentColor.bind(dt),dt.getColorBox=dt.getColorBox.bind(dt),dt}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(Ve){var Be=ye.getColorBox(Ve);ke.appendChild(Be),ye.colorBoxes.push(Be)}),ke},we.prototype.getColorBox=function(ye){var ke=this,Ve=this.uiStyleSettings.toolbarHeight/4,Be=this.uiStyleSettings.toolbarHeight-Ve,dt=document.createElement("div");dt.style.display="inline-block",dt.style.boxSizing="content-box",dt.style.width=Be-2+"px",dt.style.height=Be-2+"px",dt.style.padding="1px",dt.style.marginRight="2px",dt.style.marginBottom="2px",dt.style.borderWidth="2px",dt.style.borderStyle="solid",dt.style.borderRadius=(Be+2)/2+"px",dt.style.borderColor=ye===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",dt.addEventListener("click",function(){ke.setCurrentColor(ye,dt)});var on=document.createElement("div");return on.style.display="inline-block",on.style.width=Be-2+"px",on.style.height=Be-2+"px",on.style.backgroundColor=ye,on.style.borderRadius=Be/2+"px",ye==="transparent"&&(on.style.fill=this.uiStyleSettings.toolboxAccentColor,on.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>`),dt.appendChild(on),dt},we.prototype.setCurrentColor=function(ye,ke){var Ve=this;this.currentColor=ye,this.colorBoxes.forEach(function(Be){Be.style.borderColor=Be===ke?Ve.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}(),Pe=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}(),Ne=function(){function Oe(){this.GRIP_SIZE=10,this.visual=et.createGroup(),this.visual.appendChild(et.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(et.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}(),Le=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}(),Re=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.left=0,Be.top=0,Be.width=0,Be.height=0,Be.defaultSize={x:50,y:20},Be.offsetX=0,Be.offsetY=0,Be.rotationAngle=0,Be.CB_DISTANCE=10,Be._suppressMarkerCreateEvent=!1,Be.container.transform.baseVal.appendItem(et.createTransform()),Be.setupControlBox(),Be}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=et.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 Ve=this.unrotatePoint(ye);if(this.manipulationStartX=Ve.x,this.manipulationStartY=Ve.y,this.offsetX=Ve.x-this.left,this.offsetY=Ve.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 Be=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Be.x-this.width/2,this.top=Be.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var dt=this.container.transform.baseVal.getItem(0);dt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(dt,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,Ve=this.manipulationStartWidth,Be=this.manipulationStartTop,dt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ke=this.manipulationStartLeft+ye.x-this.manipulationStartX,Ve=this.manipulationStartWidth+this.manipulationStartLeft-ke;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ve=this.manipulationStartWidth+ye.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Be=this.manipulationStartTop+ye.y-this.manipulationStartY,dt=this.manipulationStartHeight+this.manipulationStartTop-Be;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:dt=this.manipulationStartHeight+ye.y-this.manipulationStartY}Ve>=0?(this.left=ke,this.width=Ve):(this.left=ke+Ve,this.width=-Ve),dt>=0?(this.top=Be,this.height=dt):(this.top=Be+dt,this.height=-dt),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(),Ve=et.createPoint(ye.x,ye.y);return{x:(Ve=Ve.matrixTransform(ke)).x,y:Ve.y}},we.prototype.unrotatePoint=function(ye){if(this.rotationAngle===0)return ye;var ke=this.container.getCTM();ke=ke.inverse();var Ve=et.createPoint(ye.x,ye.y);return{x:(Ve=Ve.matrixTransform(ke)).x,y:Ve.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=et.createGroup();var ye=et.createTransform();ye.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ye),this.container.appendChild(this.controlBox),this.controlRect=et.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=et.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 Pe,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 Ne;return ye.visual.transform.baseVal.appendItem(et.createTransform()),this.controlBox.appendChild(ye.visual),ye},we.prototype.positionGrips=function(){var ye=this.controlGrips.topLeft.GRIP_SIZE,ke=-ye/2,Ve=ke,Be=(this.width+this.CB_DISTANCE)/2-ye/2,dt=(this.height+this.CB_DISTANCE)/2-ye/2,on=this.height+this.CB_DISTANCE-ye/2,mn=this.width+this.CB_DISTANCE-ye/2;this.positionGrip(this.controlGrips.topLeft.visual,ke,Ve),this.positionGrip(this.controlGrips.topCenter.visual,Be,Ve),this.positionGrip(this.controlGrips.topRight.visual,mn,Ve),this.positionGrip(this.controlGrips.centerLeft.visual,ke,dt),this.positionGrip(this.controlGrips.centerRight.visual,mn,dt),this.positionGrip(this.controlGrips.bottomLeft.visual,ke,on),this.positionGrip(this.controlGrips.bottomCenter.visual,Be,on),this.positionGrip(this.controlGrips.bottomRight.visual,mn,on),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Be,Ve-3*this.CB_DISTANCE)},we.prototype.positionGrip=function(ye,ke,Ve){var Be=ye.transform.baseVal.getItem(0);Be.setTranslate(ke,Ve),ye.transform.baseVal.replaceItem(Be,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:Le.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Le.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(Le.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ke.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Le.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ke.containerTransformMatrix))},we.prototype.scale=function(ye,ke){Oe.prototype.scale.call(this,ye,ke);var Ve=this.rotatePoint({x:this.left,y:this.top}),Be=this.unrotatePoint({x:Ve.x*ye,y:Ve.y*ke});this.left=Be.x,this.top=Be.y,this.width=this.width*ye,this.height=this.height*ke,this.adjustControlBox()},we}(Ae),je=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be}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=et.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),et.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&&et.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ye),this.stateChanged()},we.prototype.setFillColor=function(ye){this.fillColor=ye,this.visual&&et.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},we.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.visual&&et.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.visual&&et.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}(Re),Ge=function(Oe){function we(ye,ke,Ve,Be){var dt=Oe.call(this,ye,Be||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return dt.widths=[],dt.widthBoxes=[],dt.widths=ke,dt.currentWidth=Ve,dt.setCurrentWidth=dt.setCurrentWidth.bind(dt),dt}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(Ve){var Be=document.createElement("div");Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=Ve===ye.currentWidth?ye.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){ye.setCurrentWidth(Ve,Be)}),ke.appendChild(Be);var dt=document.createElement("div");dt.innerText=Ve.toString(),dt.style.marginRight="5px",Be.appendChild(dt);var on=document.createElement("div");on.style.minHeight="20px",on.style.flexGrow="2",on.style.display="flex",on.style.alignItems="center";var mn=document.createElement("hr");mn.style.minWidth="20px",mn.style.border="0px",mn.style.borderTop=Ve+"px solid "+ye.uiStyleSettings.toolboxColor,mn.style.flexGrow="2",on.appendChild(mn),Be.appendChild(on),ye.widthBoxes.push(Be)}),ke},we.prototype.setCurrentWidth=function(ye,ke){var Ve=this;this.currentWidth=ye,this.widthBoxes.forEach(function(Be){Be.style.borderColor=Be===ke?Ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},we}(ve),We=function(Oe){function we(ye,ke,Ve,Be){var dt=Oe.call(this,ye,Be||'<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 dt.styles=[],dt.styleBoxes=[],dt.styles=ke,dt.currentStyle=Ve,dt.setCurrentStyle=dt.setCurrentStyle.bind(dt),dt}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(Ve){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/ye.styles.length-5+"%",Be.style.borderColor=Ve===ye.currentStyle?ye.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){ye.setCurrentStyle(Ve,Be)}),ke.appendChild(Be);var dt=document.createElement("div");dt.style.minHeight="20px",dt.style.flexGrow="2",dt.style.overflow="hidden";var on=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ye.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ve!==""?'stroke-dasharray="'+Ve+'"':"")+` />
|
|
|
</svg>`;dt.innerHTML=on,Be.appendChild(dt),ye.styleBoxes.push(Be)}),ke},we.prototype.setCurrentStyle=function(ye,ke){var Ve=this;this.currentStyle=ye,this.styleBoxes.forEach(function(Be){Be.style.borderColor=Be===ke?Ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},we}(ve),bt=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.strokeColor=Ve.defaultColor,Be.strokeWidth=Ve.defaultStrokeWidth,Be.strokeDasharray=Ve.defaultStrokeDasharray,Be.strokePanel=new xe("Line color",Ve.defaultColorSet,Ve.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new Ge("Line width",Ve.defaultStrokeWidths,Ve.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",Ve.defaultStrokeDasharrays,Ve.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}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}(je),Qe=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"},Dt=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.x1=0,Be.y1=0,Be.x2=0,Be.y2=0,Be.defaultLength=50,Be.manipulationStartX=0,Be.manipulationStartY=0,Be.manipulationStartX1=0,Be.manipulationStartY1=0,Be.manipulationStartX2=0,Be.manipulationStartY2=0,Be.setupControlBox(),Be}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=et.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 Ne;return ye.visual.transform.baseVal.appendItem(et.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,Ve){var Be=ye.transform.baseVal.getItem(0);Be.setTranslate(ke,Ve),ye.transform.baseVal.replaceItem(Be,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),vt=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.strokeColor=Ve.defaultColor,Be.strokeWidth=Ve.defaultStrokeWidth,Be.strokeDasharray=Ve.defaultStrokeDasharray,Be.strokePanel=new xe("Line color",Ve.defaultColorSet,Ve.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new Ge("Line width",Ve.defaultStrokeWidths,Ve.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",Ve.defaultStrokeDasharrays,Ve.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}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=et.createGroup(),this.selectorLine=et.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=et.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()),et.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),et.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),et.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}(Dt),kt=function(Oe){function we(ye,ke,Ve,Be){var dt=Oe.call(this,ye,Be||'<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 dt.fonts=[],dt.fontBoxes=[],dt.fonts=ke,dt.currentFont=Ve,dt.setCurrentFont=dt.setCurrentFont.bind(dt),dt}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(Ve){var Be=document.createElement("div");Be.style.display="inline-block",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.overflow="hidden",Be.style.maxWidth=100/ye.fonts.length-5+"%",Be.style.borderColor=Ve===ye.currentFont?ye.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){ye.setCurrentFont(Ve,Be)}),ke.appendChild(Be);var dt=document.createElement("div");dt.style.display="flex",dt.style.minHeight="20px",dt.style.flexGrow="2",dt.style.fontFamily=Ve,dt.style.overflow="hidden";var on=document.createElement("div");on.style.whiteSpace="nowrap",on.style.overflow="hidden",on.style.textOverflow="ellipsis",on.innerHTML="The quick brown fox jumps over the lazy dog",dt.appendChild(on),Be.appendChild(dt),ye.fontBoxes.push(Be)}),ke},we.prototype.setCurrentFont=function(ye,ke){var Ve=this;this.currentFont=ye,this.fontBoxes.forEach(function(Be){Be.style.borderColor=Be===ke?Ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},we}(ve),Rt=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.color="transparent",Be.padding=5,Be.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Be.text=Be.DEFAULT_TEXT,Be.isMoved=!1,Be.color=Ve.defaultColor,Be.fontFamily=Ve.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setColor=Be.setColor.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.renderText=Be.renderText.bind(Be),Be.sizeText=Be.sizeText.bind(Be),Be.textEditDivClicked=Be.textEditDivClicked.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.setSize=Be.setSize.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.colorPanel=new xe("Color",Ve.defaultColorSet,Ve.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.fontFamilyPanel=new kt("Font",Ve.defaultFontFamilies,Ve.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be}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(Ve){Ve===ye&&(ke=!0)}),ke},we.prototype.createVisual=function(){this.visual=et.createGroup(),this.bgRectangle=et.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=et.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(et.createTransform()),this.textElement.transform.baseVal.appendItem(et.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(et.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 Ve=(1*this.width-this.width*this.padding*2/100)/ye.width,Be=(1*this.height-this.height*this.padding*2/100)/ye.height;ke=Math.min(Ve,Be)}return ke},we.prototype.getTextPosition=function(ye){var ke=this.textElement.getBBox(),Ve=0,Be=0;return ke.width>0&&ke.height>0&&(Ve=(this.width-ke.width*ye)/2,Be=this.height/2-ke.height*ye/2),{x:Ve,y:Be}},we.prototype.sizeText=function(){var ye=this.textElement.getBBox(),ke=this.getTextScale(),Ve=this.getTextPosition(ke);Ve.y-=ye.y*ke,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ve.x+"px, "+Ve.y+"px) scale("+ke+", "+ke+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ve.x,Ve.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&&(et.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),et.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 Ve=ke.clipboardData.getData("text"),Be=window.getSelection();if(!Be.rangeCount)return!1;Be.deleteFromDocument(),Be.getRangeAt(0).insertNode(document.createTextNode(Ve)),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}),Ve=this.textElement.getBBox(),Be={x:Ve.width*ye,y:Ve.height*ye};ke.x-=Be.x/2,ke.y-=Be.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&&et.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&&et.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}(Re),Jt=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.color="transparent",Be.lineWidth=3,Be.drawing=!1,Be.pixelRatio=1,Be.color=Ve.defaultColor,Be.lineWidth=Ve.defaultStrokeWidth,Be.pixelRatio=Ve.freehandPixelRatio,Be.setColor=Be.setColor.bind(Be),Be.addCanvas=Be.addCanvas.bind(Be),Be.finishCreation=Be.finishCreation.bind(Be),Be.setLineWidth=Be.setLineWidth.bind(Be),Be.colorPanel=new xe("Color",Ve.defaultColorSet,Ve.defaultColor),Be.colorPanel.onColorChanged=Be.setColor,Be.lineWidthPanel=new Ge("Line width",Ve.defaultStrokeWidths,Ve.defaultStrokeWidth),Be.lineWidthPanel.onWidthChanged=Be.setLineWidth,Be}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=et.createGroup(),this.drawingImage=et.createImage(),this.visual.appendChild(this.drawingImage);var ye=et.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),et.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),et.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],Ve=ke[0],Be=ke[1],dt=ke[2],on=ke[3],mn=!1,Et=0;Et<this.canvasElement.height;Et++)for(var Ot=0;Ot<this.canvasElement.width;Ot++)ye.data[Et*this.canvasElement.width*4+4*Ot+3]>0&&(mn=!0,Et<Be&&(Be=Et),Ot<Ve&&(Ve=Ot),Et>on&&(on=Et),Ot>dt&&(dt=Ot));if(mn){this.left=Ve/this.pixelRatio,this.top=Be/this.pixelRatio,this.width=(dt-Ve)/this.pixelRatio,this.height=(on-Be)/this.pixelRatio;var yn=document.createElement("canvas");yn.width=dt-Ve,yn.height=on-Be,yn.getContext("2d").putImageData(this.canvasContext.getImageData(Ve,Be,dt-Ve,on-Be),0,0),this.drawingImgUrl=yn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},we.prototype.setDrawingImage=function(){et.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),et.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}(Re),at=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,Ve||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Be.typeBoxes=[],Be.currentType=ke,Be.setCurrentType=Be.setCurrentType.bind(Be),Be}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 Ve=function(on){var mn="both";switch(on){case 0:mn="both";break;case 1:mn="start";break;case 2:mn="end";break;case 3:mn="none"}var Et=document.createElement("div");if(Et.style.display="flex",Et.style.flexGrow="2",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=mn===Be.currentType?Be.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){ye.setCurrentType(mn,Et)}),ke.appendChild(Et),mn==="both"||mn==="start"){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.minHeight="20px",Ot.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="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ot.style.marginLeft="5px",Et.appendChild(Ot)}var yn=document.createElement("div");yn.style.display="flex",yn.style.alignItems="center",yn.style.minHeight="20px",yn.style.flexGrow="2";var Tn=document.createElement("hr");if(Tn.style.minWidth="20px",Tn.style.border="0px",Tn.style.borderTop="3px solid "+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee"),Tn.style.flexGrow="2",yn.appendChild(Tn),Et.appendChild(yn),mn==="both"||mn==="end"){var qn=document.createElement("div");qn.style.display="flex",qn.style.alignItems="center",qn.style.minHeight="20px",qn.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="`+(Be.uiStyleSettings!==void 0?Be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,qn.style.marginRight="5px",Et.appendChild(qn)}Be.typeBoxes.push(Et)},Be=this,dt=0;dt<4;dt++)Ve(dt);return ke},we.prototype.setCurrentType=function(ye,ke){var Ve=this;this.currentType=ye,this.typeBoxes.forEach(function(Be){Be.style.borderColor=Be===ke?Ve.uiStyleSettings!==void 0?Ve.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},we}(ve),Ze=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.arrowType="end",Be.arrowBaseHeight=10,Be.arrowBaseWidth=10,Be.getArrowPoints=Be.getArrowPoints.bind(Be),Be.setArrowType=Be.setArrowType.bind(Be),Be.arrowTypePanel=new at("Arrow type","end"),Be.arrowTypePanel.onArrowTypeChanged=Be.setArrowType,Be}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 Ve=this.arrowBaseWidth+2*this.strokeWidth,Be=this.arrowBaseHeight+2*this.strokeWidth;return ye-Ve/2+","+(ke+Be/2)+" "+ye+","+(ke-Be/2)+" "+(ye+Ve/2)+","+(ke+Be/2)},we.prototype.createTips=function(){this.arrow1=et.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(et.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=et.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(et.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",et.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),et.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 Ve=this.arrow2.transform.baseVal.getItem(0);Ve.setRotate(ye+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ve,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}(vt),Mt=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.fillColor=Ve.defaultFillColor,Be.strokeWidth=0,Be.fillPanel=new xe("Color",Ve.defaultColorSet,Ve.defaultFillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be}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}(je),Yt=function(Oe){function we(ye,ke,Ve,Be){var dt=Oe.call(this,ye,Be||'<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 dt.opacities=[],dt.opacityBoxes=[],dt.opacities=ke,dt.currentOpacity=Ve,dt.setCurrentOpacity=dt.setCurrentOpacity.bind(dt),dt}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(Ve){var Be=document.createElement("div");Be.style.display="flex",Be.style.alignItems="center",Be.style.justifyContent="center",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=Ve===ye.currentOpacity?ye.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){ye.setCurrentOpacity(Ve,Be)}),ke.appendChild(Be);var dt=document.createElement("div");dt.innerText=100*Ve+"%",Be.appendChild(dt),ye.opacityBoxes.push(Be)}),ke},we.prototype.setCurrentOpacity=function(ye,ke){var Ve=this;this.currentOpacity=ye,this.opacityBoxes.forEach(function(Be){Be.style.borderColor=Be===ke?Ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},we}(ve),Vt=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.setOpacity=Be.setOpacity.bind(Be),Be.fillColor=Ve.defaultHighlightColor,Be.strokeWidth=0,Be.opacity=Ve.defaultHighlightOpacity,Be.fillPanel=new xe("Color",Ve.defaultColorSet,Be.fillColor),Be.fillPanel.onColorChanged=Be.setFillColor,Be.opacityPanel=new Yt("Opacity",Ve.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}return be(we,Oe),we.prototype.setOpacity=function(ye){this.opacity=ye,this.visual&&et.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}(Mt),Ct='<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>',Nt='<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>',sn=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.bgColor="transparent",Be.tipPosition={x:0,y:0},Be.tipBase1Position={x:0,y:0},Be.tipBase2Position={x:0,y:0},Be.tipMoving=!1,Be.color=Ve.defaultStrokeColor,Be.bgColor=Ve.defaultFillColor,Be.fontFamily=Ve.defaultFontFamily,Be.defaultSize={x:100,y:30},Be.setBgColor=Be.setBgColor.bind(Be),Be.getTipPoints=Be.getTipPoints.bind(Be),Be.positionTip=Be.positionTip.bind(Be),Be.setTipPoints=Be.setTipPoints.bind(Be),Be.colorPanel=new xe("Text color",Ve.defaultColorSet,Be.color,Ct),Be.colorPanel.onColorChanged=Be.setColor,Be.bgColorPanel=new xe("Fill color",Ve.defaultColorSet,Be.bgColor,Nt),Be.bgColorPanel.onColorChanged=Be.setBgColor,Be.fontFamilyPanel=new kt("Font",Ve.defaultFontFamilies,Ve.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.tipGrip=new Ne,Be.tipGrip.visual.transform.baseVal.appendItem(et.createTransform()),Be.controlBox.appendChild(Be.tipGrip.visual),Be}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(){et.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=et.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&&(et.setAttributes(this.bgRectangle,[["fill",ye]]),et.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),Ve=this.height/5;ye&&(this.tipPosition={x:ke+Ve/2,y:this.height+20});var Be=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ve=this.width/5,ke=Math.min(this.width/2,15),this.tipBase1Position={x:ke,y:0},this.tipBase2Position={x:ke+Ve,y:0}):(this.tipBase1Position={x:0,y:ke},this.tipBase2Position={x:0,y:ke+Ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Be<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ve=this.width/5,ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ke-Ve,y:0},this.tipBase2Position={x:this.width-ke,y:0}):(this.tipBase1Position={x:this.width,y:ke},this.tipBase2Position={x:this.width,y:ke+Ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Be<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ve=this.width/5,ke=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ke-Ve,y:this.height},this.tipBase2Position={x:this.width-ke,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ke-Ve},this.tipBase2Position={x:this.width,y:this.height-ke}):Be<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ve=this.width/5,ke=Math.min(this.width/2,15),this.tipBase1Position={x:ke,y:this.height},this.tipBase2Position={x:ke+Ve,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ke},this.tipBase2Position={x:0,y:this.height-ke-Ve})},we.prototype.resize=function(ye){Oe.prototype.resize.call(this,ye),this.positionTip()},we.prototype.positionTip=function(){et.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}(Rt),Nn=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.opacity=1,Be.strokeColor=Ve.defaultColor,Be.strokeWidth=Ve.defaultStrokeWidth,Be.strokeDasharray=Ve.defaultStrokeDasharray,Be.fillColor=Ve.defaultFillColor,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.setOpacity=Be.setOpacity.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.strokePanel=new xe("Line color",Xe(Ve.defaultColorSet,["transparent"]),Ve.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new xe("Fill color",Xe(Ve.defaultColorSet,["transparent"]),Be.fillColor,Nt),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new Ge("Line width",Ve.defaultStrokeWidths,Ve.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",Ve.defaultStrokeDasharrays,Ve.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.opacityPanel=new Yt("Opacity",Ve.defaultOpacitySteps,Be.opacity),Be.opacityPanel.onOpacityChanged=Be.setOpacity,Be}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=et.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),et.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&&et.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ye),this.stateChanged()},we.prototype.setFillColor=function(ye){this.fillColor=ye,this.visual&&et.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ye),this.stateChanged()},we.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.visual&&et.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.visual&&et.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.setOpacity=function(ye){this.opacity=ye,this.visual&&et.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}(Re),hn=function(Oe){function we(ye,ke,Ve){return Oe.call(this,ye,ke,Ve)||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=et.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(et.createTransform()),this.visual.appendChild(this.tip1),this.tip2=et.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(et.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&&(et.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()]]),et.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 Ve=this.tip2.transform.baseVal.getItem(0);Ve.setRotate(ye+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ve,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}(vt),Xn=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.strokePanel.colors=Ve.defaultColorSet,Be.fillColor="transparent",Be}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}(Nn),Ft=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,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.curveX=0,Be.curveY=0,Be.manipulationStartCurveX=0,Be.manipulationStartCurveY=0,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.positionGrips=Be.positionGrips.bind(Be),Be.addControlGrips=Be.addControlGrips.bind(Be),Be.adjustVisual=Be.adjustVisual.bind(Be),Be.setupControlBox=Be.setupControlBox.bind(Be),Be.resize=Be.resize.bind(Be),Be.strokeColor=Ve.defaultColor,Be.strokeWidth=Ve.defaultStrokeWidth,Be.strokeDasharray=Ve.defaultStrokeDasharray,Be.strokePanel=new xe("Line color",Ve.defaultColorSet,Ve.defaultColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.strokeWidthPanel=new Ge("Line width",Ve.defaultStrokeWidths,Ve.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",Ve.defaultStrokeDasharrays,Ve.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be}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=et.createGroup(),this.selectorCurve=et.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=et.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()),et.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),et.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),et.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setupControlBox=function(){Oe.prototype.setupControlBox.call(this),this.curveControlLine1=et.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=et.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}(Dt),Kn=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,ke,Ve)||this;return Be.fillColor="transparent",Be.strokeColor="transparent",Be.strokeWidth=0,Be.strokeDasharray="",Be.textColor="transparent",Be.fontSize="1rem",Be.isMoved=!1,Be.captionText="Caption",Be.PADDING=5,Be.captionBoxWidth=0,Be.captionBoxHeight=0,Be.strokeColor=Ve.defaultColor,Be.strokeWidth=Ve.defaultStrokeWidth,Be.strokeDasharray=Ve.defaultStrokeDasharray,Be.fillColor=Ve.defaultFillColor,Be.textColor=Ve.defaultStrokeColor,Be.fontFamily=Ve.defaultFontFamily,Be.fontSize=Ve.defaultCaptionFontSize,Be.captionText=Ve.defaultCaptionText,Be.setStrokeColor=Be.setStrokeColor.bind(Be),Be.setFillColor=Be.setFillColor.bind(Be),Be.setStrokeWidth=Be.setStrokeWidth.bind(Be),Be.setStrokeDasharray=Be.setStrokeDasharray.bind(Be),Be.createVisual=Be.createVisual.bind(Be),Be.sizeCaption=Be.sizeCaption.bind(Be),Be.setCaptionText=Be.setCaptionText.bind(Be),Be.showTextEditor=Be.showTextEditor.bind(Be),Be.positionTextEditor=Be.positionTextEditor.bind(Be),Be.finishTextEditing=Be.finishTextEditing.bind(Be),Be.setFont=Be.setFont.bind(Be),Be.setTextColor=Be.setTextColor.bind(Be),Be.strokePanel=new xe("Line color",Xe(Ve.defaultColorSet,["transparent"]),Be.strokeColor),Be.strokePanel.onColorChanged=Be.setStrokeColor,Be.fillPanel=new xe("Fill color",Xe(Ve.defaultColorSet,["transparent"]),Be.fillColor,Nt),Be.fillPanel.onColorChanged=Be.setFillColor,Be.strokeWidthPanel=new Ge("Line width",Ve.defaultStrokeWidths,Ve.defaultStrokeWidth),Be.strokeWidthPanel.onWidthChanged=Be.setStrokeWidth,Be.strokeStylePanel=new We("Line style",Ve.defaultStrokeDasharrays,Ve.defaultStrokeDasharray),Be.strokeStylePanel.onStyleChanged=Be.setStrokeDasharray,Be.fontFamilyPanel=new kt("Font",Ve.defaultFontFamilies,Ve.defaultFontFamily),Be.fontFamilyPanel.onFontChanged=Be.setFont,Be.textColorPanel=new xe("Text color",Ve.defaultColorSet,Be.textColor,Ct),Be.textColorPanel.onColorChanged=Be.setTextColor,Be}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=et.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=et.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=et.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=et.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),et.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')"]]),et.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&&et.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&&et.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),et.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&&et.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ye),this.stateChanged()},we.prototype.setFillColor=function(ye){this.fillColor=ye,this.captionBg&&et.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ye),this.stateChanged()},we.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.frame&&et.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.frame&&et.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}(Re),ti=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}(),Fn=function(Oe){function we(ye,ke,Ve){var Be=Oe.call(this,ye,!1)||this;return Be.dataUrl=ke,Be.state=Ve,Be}return be(we,Oe),we}(ti),Zt=function(Oe){function we(ye,ke,Ve){Ve===void 0&&(Ve=!1);var Be=Oe.call(this,ye,Ve)||this;return Be.marker=ke,Be}return be(we,Oe),we}(ti),Xt=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 Qe,this._isOpen=!1,this.undoRedoManager=new Ft,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 Xt,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[bt,Jt,Ze,Rt,Xn,Nn,Vt,sn,hn,Mt,vt,Un,Kn]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[bt,Jt,Ze,Rt,Nn,Vt,sn]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[bt,Jt,Ze,Rt,Vt]},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 Ve=ye.ALL_MARKER_TYPES.find(function(Be){return Be.typeName===ke});Ve!==void 0&&ye._availableMarkerTypes.push(Ve)}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(),Je.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 ti(we))})},Oe.prototype.render=function(){return yt(this,void 0,void 0,function(){var we;return ct(this,function(ye){switch(ye.label){case 0:return this.setCurrentMarker(),(we=new Ue).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(Ve){var Be=new ti(ye,!0);Ve(Be),Be.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(Ve){return Ve(new ti(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,Ve=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,Ve),this._isResizing=!1},Oe.prototype.scaleMarkers=function(we,ye){var ke,Ve=this;this._currentMarker&&this._currentMarker instanceof Rt?this._currentMarker.scale(we,ye):(ke=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Be){Be!==Ve._currentMarker&&Be.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=et.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 oe(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(Ve){var Be=new Zt(we,we._currentMarker,!0);Ve(Be),Be.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(Ve){return Ve(new Zt(we,ke))})}}},Oe.prototype.clear=function(){var we=this,ye=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(dt){var on=new Zt(we,void 0,!0);dt(on),on.defaultPrevented&&(ye=!0)}),!ye)){this.setCurrentMarker();for(var ke=function(dt){var on=Ve.markers[dt];Ve.setCurrentMarker(Ve.markers[dt]),Ve._currentMarker.dispose(),Ve.markerImage.removeChild(Ve._currentMarker.container),Ve.markers.splice(Ve.markers.indexOf(Ve._currentMarker),1),Ve.eventListeners.markerdelete.forEach(function(mn){return mn(new Zt(we,on))})},Ve=this,Be=this.markers.length-1;Be>=0;Be--)ke(Be);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 Ve=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ye),Ve<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Be){return Be(new ti(we))})}else this.undoRedoManager.replaceLastUndoStep(ye),this.eventListeners.statechange.forEach(function(Be){return Be(new ti(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 ti(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 ti(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 ct(this,function(Ve){switch(Ve.label){case 0:return[4,this.render()];case 1:return we=Ve.sent(),ye=this.getState(),this.eventListeners.render.forEach(function(Be){return Be(new Fn(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 Ve=ye._availableMarkerTypes.find(function(dt){return dt.typeName===ke.typeName});if(Ve!==void 0){var Be=ye.addNewMarker(Ve);Be.restoreState(ke),ye.markers.push(Be)}}),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 ti(ye))})},Oe.prototype.addNewMarker=function(we){var ye=et.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(Ve){return Ve.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(Ve){return Ve(new Zt(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 Jt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Jt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ke){return ke(new Zt(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 Zt(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 Zt(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 Zt(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){Je.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 ti(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 ti(we))}))},Oe.instanceCounter=0,Oe}(),tt=he(70635),Wt=he(58130),Lt=(Oe,we,ye)=>new Promise((ke,Ve)=>{var Be=mn=>{try{on(ye.next(mn))}catch(Et){Ve(Et)}},dt=mn=>{try{on(ye.throw(mn))}catch(Et){Ve(Et)}},on=mn=>mn.done?ke(mn.value):Promise.resolve(mn.value).then(Be,dt);on((ye=ye.apply(Oe,we)).next())}),nt=({data:Oe,className:we,fullWidth:ye,style:ke={},onClose:Ve,onOk:Be,showFullTools:dt,noAssociationId:on})=>{const mn=(0,ge.useRef)(null),Et=(0,ge.useRef)(null),Ot=(0,ge.useRef)(null),yn=(0,ge.useRef)(null),[Tn,qn]=(0,ge.useState)(!1),[vi,gi]=(0,ge.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ge.useEffect)(()=>{Ot.current||(Ot.current=document.createElement("style"),document.head.appendChild(Ot.current)),Oe!=null&&Oe.visible?(document.body.setAttribute("data-custom","y-hidden"),Ot.current.innerHTML=" html { overflow-y: hidden; }",Oe!=null&&Oe.src&&wi()):(document.body.removeAttribute("data-custom"),Ot.current&&(document.head.removeChild(Ot.current),Ot.current=null))},[Oe==null?void 0:Oe.visible]);const wi=()=>Lt(void 0,null,function*(){qn(!0),gi("\u6B63\u5728\u52A0\u8F7D\u4E2D");const fr=yield(0,Wt.ZJ)(Oe==null?void 0:Oe.src);mn.current.src="",mn.current.src=fr,mn.current.onload=function(){ir()},qn(!1),gi("")}),_n=fr=>Lt(void 0,null,function*(){qn(!0),gi("\u6B63\u5728\u4FDD\u5B58\u4E2D");const xr=yield(0,tt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Oe.title,file:fr.dataUrl}});xr!=null&&xr.id&&!on?(yield(0,tt.ZP)(`/api/attachments/${Oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:xr==null?void 0:xr.id,settings:JSON.stringify(fr.state)}})).status===0&&Be():xr!=null&&xr.id&&Be(xr),qn(!1),gi("")}),yr=()=>{const fr=document.querySelector('a[href="https://markerjs.com/"]');fr&&fr.parentNode&&(fr.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(jr=>{const Ki=document.querySelector(jr.name);Ki&&Ki.setAttribute("title",jr.title)})},ir=()=>{Et.current=new mt(mn.current),Et.current.targetRoot=yn.current,Et.current.addEventListener("render",_n),Et.current.addEventListener("beforeclose",Ve),dt&&(Et.current.availableMarkerTypes=Et.current.ALL_MARKER_TYPES,Et.current.uiStyleSettings.redoButtonVisible=!0,Et.current.uiStyleSettings.notesButtonVisible=!0,Et.current.uiStyleSettings.zoomButtonVisible=!0,Et.current.uiStyleSettings.zoomOutButtonVisible=!0,Et.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Et.current.uiStyleSettings,Et.current.show(),Oe!=null&&Oe.snapshotData&&Et.current.restoreState(Oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),yr()},300)};return ge.createElement(ge.Fragment,null,(Oe==null?void 0:Oe.visible)&&ge.createElement(He.Z,{spinning:Tn,tip:vi,style:{position:"absolute"}},ge.createElement("div",{ref:yn,className:ot()(Ie.imageDimensions,we,ye?Ie.fullWidth:""),style:ke},ge.createElement("img",{className:Ie.img,ref:mn}))))}},75890:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(95237),Ke=he(43604),ot=he(99313),He=he(3113),it=he(25711),be=he(93938),yt=he(48136),ct=he(59301);const Xe=(0,ge.forwardRef)(({callback:et,showSaveButton:Je,value:Ue=""},Ee)=>{const ee=(0,ge.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}`}]}]}],oe=xe=>{ee.current.setValue(ee.current.getValue()+" "+xe.value+" ")},de=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ct.createElement(Ie.Z,{className:be.Z.lists,gutter:[10,10]},te.map((xe,Ae)=>ct.createElement(Ke.Z,{flex:"110px",className:be.Z.item},ct.createElement("div",null,ct.createElement(it.Z,{value:`$$${xe.value}$$`}),xe.name),ct.createElement("div",{className:be.Z.children},xe.children.map((Pe,Ne)=>ct.createElement("div",{key:Ne},ct.createElement("h1",null,Pe.name),ct.createElement(Ie.Z,{gutter:[10,10]},Pe.data.map((Le,Re)=>ct.createElement(Ke.Z,{key:Re,onClick:()=>oe(Le),className:be.Z.diamond},ct.createElement(it.Z,{value:"`$$"+Le.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ct.createElement(Ie.Z,{className:be.Z.lists,gutter:[10,10]},ue.map((xe,Ae)=>ct.createElement(Ke.Z,{flex:"110px",className:be.Z.item},ct.createElement("div",null,ct.createElement(it.Z,{value:"`$$"+xe.value+"$$`"}),xe.name),ct.createElement("div",{className:be.Z.children},xe.children.map((Pe,Ne)=>ct.createElement("div",{key:Ne},Pe.name&&ct.createElement("h1",null,Pe.name),ct.createElement(Ie.Z,{gutter:[10,10]},Pe.data.map((Le,Re)=>ct.createElement(Ke.Z,{key:Re,onClick:()=>oe(Le),className:be.Z.diamond},ct.createElement(it.Z,{value:"`$$"+Le.value+"$$`"}))))))))))}],ve=()=>{var xe=document.createElement("div");xe.innerHTML=ee.current.getValue();var Ae=xe.innerText;return et&&et(Ae),Ae};return(0,ge.useImperativeHandle)(Ee,()=>({getData:ve})),ct.createElement("div",{className:be.Z.mathWrap},ct.createElement(ot.default,{defaultActiveKey:"1",items:de}),ct.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}},Ue||""),Je&&ct.createElement("div",{className:be.Z.button},ct.createElement(He.ZP,{size:"large",onClick:ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});jt.Z=Xe},97267:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(93314),Ke=he(3113),ot=Object.defineProperty,He=Object.defineProperties,it=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Xe=(Ee,ee,te)=>ee in Ee?ot(Ee,ee,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ee[ee]=te,et=(Ee,ee)=>{for(var te in ee||(ee={}))yt.call(ee,te)&&Xe(Ee,te,ee[te]);if(be)for(var te of be(ee))ct.call(ee,te)&&Xe(Ee,te,ee[te]);return Ee},Je=(Ee,ee)=>He(Ee,it(ee));const Ue=({img:Ee,buttonProps:ee={},styles:te={},customText:ue,ButtonText:oe,ButtonClick:de,Buttonclass:ve,ButtonTwo:xe,imgStyles:Ae,loading:Pe=!1})=>ge.createElement("section",{className:"tc animated fadeIn",style:et(et({},{color:"#999",margin:"100px auto",visibility:Pe?"hidden":"visible"}),te)},ge.createElement("img",{src:Ee||Ie,style:Je(et({},Ae),{pointerEvents:"none",userSelect:"none"})}),ge.createElement("p",{className:"mt20 font14"},ue||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),oe&&ge.createElement(Ke.ZP,et({className:ve,onClick:de},ee),oe),xe&&xe);jt.Z=Ue},46898:function(fn,jt,he){"use strict";he.d(jt,{Q:function(){return it}});var ge=he(59301),Ie=he(57809),Ke=he(5112),ot=he(88897),He=he(59301),it=(yt=>(yt[yt.Number=1]="Number",yt[yt.Percent=2]="Percent",yt))(it||{});const be=({value:yt,onChange:ct,disabled:Xe,hidePercentOption:et=!1,percentType:Je="select"})=>{const Ue=(0,ge.useMemo)(()=>et?1:2,[et]),[Ee,ee]=(0,ge.useState)(Ue);console.log(Ee);const te=oe=>yt.type===1?`${oe}\u5206`:`${oe}%`,ue=(0,ge.useCallback)(oe=>{if(Ee===1){const de=oe.replace("\u5206","");return isNaN(parseInt(de,10))?0:de}else return oe.replace("%","")},[Ee]);return(0,ge.useEffect)(()=>{ee(yt.type)},[yt]),He.createElement("div",{style:{display:"flex",alignItems:"center"}},Je=="select"&&He.createElement(Ie.default,{size:"large",onChange:oe=>{ee(oe),ct({type:oe,inputValue:oe===1?5:20})},value:Ee||Ue,style:{width:100},options:et?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Xe}),Je=="radio"&&He.createElement(Ke.ZP.Group,{size:"large",onChange:oe=>{const de=oe.target.value;ee(de),ct({type:de,inputValue:de===1?5:20})},value:Ee||Ue,disabled:Xe},!et&&He.createElement(Ke.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),He.createElement(Ke.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Je=="radio"&&He.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"),He.createElement(ot.Z,{size:"large",disabled:Xe,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:oe=>{ct({type:Ee,inputValue:oe})}}),Je=="radio"&&yt.type==2&&He.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};jt.Z=be},79646:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ve}});var ge=he(59301),Ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Ke=he(3113),ot=he(63093),He=he(48551),it=he(6848),be=he(58130),yt=he(79124),ct=he(97267),Xe=he(10148),et=he(63486),Je=he(59301),Ue=Object.defineProperty,Ee=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ue=(xe,Ae,Pe)=>Ae in xe?Ue(xe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):xe[Ae]=Pe,oe=(xe,Ae)=>{for(var Pe in Ae||(Ae={}))ee.call(Ae,Pe)&&ue(xe,Pe,Ae[Pe]);if(Ee)for(var Pe of Ee(Ae))te.call(Ae,Pe)&&ue(xe,Pe,Ae[Pe]);return xe},de=(xe,Ae,Pe)=>new Promise((Ne,Le)=>{var Re=We=>{try{Ge(Pe.next(We))}catch(bt){Le(bt)}},je=We=>{try{Ge(Pe.throw(We))}catch(bt){Le(bt)}},Ge=We=>We.done?Ne(We.value):Promise.resolve(We.value).then(Re,je);Ge((Pe=Pe.apply(xe,Ae)).next())}),ve=({editOffice:xe="view",data:Ae,theme:Pe,type:Ne,filename:Le,monacoEditor:Re,className:je,style:Ge,close:We,onClose:bt,hasMask:Qe,disabledDownload:Dt,onImgDimensions:vt,showNodata:kt,recordInfo:Rt})=>{const[Jt,at]=(0,ge.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ze,Mt]=(0,ge.useState)(""),[Yt,Vt]=(0,ge.useState)(),Ct=window.ENV==="build"?"/react/build":"",Nt=location.host.startsWith("localhost")?Xe.Z.PROXY_SERVER:Xe.Z.API_SERVER,Nn=10*(1024*1024),hn=(0,ge.useRef)();Ae!=null&&Ae.startsWith("/api")&&Ne!=="txt"&&(Ae=Xe.Z.API_SERVER+Ae);const Xn=ti=>ti.substring(ti.lastIndexOf("/")+1).split(".").pop();Le&&Re&&(Re.filename=Le),(0,ge.useEffect)(()=>{var ti,Fn;const Zt=(Fn=(ti=document.cookie)==null?void 0:ti.replace(/\s/g,""))==null?void 0:Fn.split(";");Zt==null||Zt.map(Xt=>{let mt=Xt.split("=");mt[0]==="_educoder_session"&&Mt(mt[1])})},[]),(0,ge.useEffect)(()=>{Ne==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?Vt({url:Ae,fileType:Xn(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):Ft())},[Ne,Ae]);const Ft=()=>de(void 0,null,function*(){console.log("data:",Ae);let ti=Ae;Ae.startsWith("http")||(ti=location.origin+ti);let Fn=new URL(ti).pathname.split("/").pop();const Zt=yield(0,yt.gJ)({attachment_id:Fn});Zt.url=Nt+Zt.url,Vt(Zt)}),Un=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){Kn();return}(0,be.Sv)(Le||"educoder",Ae,Le)},Kn=()=>{Rt&&(0,et.fc)({id:Rt==null?void 0:Rt.id,watch_type:1,course_id:Rt==null?void 0:Rt.course_id}),(0,be.Nd)(Le||"educoder",decodeURIComponent(Ae))};return Je.createElement("div",{style:oe({},Ge||{}),className:`${Qe&&Ie.bgBlack} ${Ne?Ie.wrp:"hide"}`},We&&Je.createElement("div",{className:Ie.close,ref:hn},!!vt&&Je.createElement(it.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>hn.current},Je.createElement("span",{onClick:()=>{bt(),vt()}},Je.createElement("i",{className:"icon-yulanpizhu"}))),!Dt&&Je.createElement(it.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>hn.current},Je.createElement("span",{onClick:Kn},Je.createElement("i",{className:"icon-quxiaozhiding"}))),Je.createElement(it.Z,{title:"\u5173\u95ED",getPopupContainer:()=>hn.current},Je.createElement("span",{className:"",onClick:bt},Je.createElement("i",{className:"icon-guanbi1"})))),Je.createElement("div",{className:`${Ie[je]} ${je} ${Ie.monaco} ${Ne==="txt"?"show":"hide"}`},Ne==="txt"&&Je.createElement(Je.Fragment,null,Je.createElement(He.ZP,oe({},Re)))),Ne==="audio"&&Je.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}),Ne==="video"&&Je.createElement(Je.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?Je.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):Je.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),Ne==="office"&&Yt&&Je.createElement("iframe",{src:`${Ct}/office.html?key=${Yt.key}&url=${btoa(Yt.url)}&callbackUrl=${Nt+(Yt.callbackUrl||"")}&fileType=${Yt.fileType}&title=${Yt.title||""}&model=${xe}&officeServer=${Xe.Z.ONLYOFFICE}&disabledDownload=${!!Dt}`}),Ne==="html"&&Je.createElement("iframe",{src:Ae+"&disposition=inline"}),Ne==="pdf"&&Je.createElement("iframe",{src:`${Ct}/js/pdfview/index.html?filename=${Le||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!Dt}`}),Ne==="image"&&Je.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(Ne==="other"||Ne==="download")&&Je.createElement(Je.Fragment,null,kt?Je.createElement(ct.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Je.createElement(Ke.ZP,{icon:Je.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Un,disabled:Dt},"\u4E0B\u8F7D")}):Je.createElement(Ke.ZP,{type:"primary",size:"middle",onClick:Un,disabled:Dt},Je.createElement(ot.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(fn,jt,he){"use strict";he.d(jt,{z:function(){return Ne},Z:function(){return Le}});var ge=he(59301),Ie=he(1751),Ke=he(31087),ot=he(64018),He=he(37312),it=he(10148),be=he(58130),yt=he(15342),ct=he(1012),Xe=he(79646),et=he(59301),Ue=({html:Re})=>{const je=(0,ge.useRef)(null),Ge=(0,ge.useRef)(null),We=`.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,ge.useEffect)(()=>{const bt=je.current.attachShadow({mode:"open"});Ge.current=document.createElement("div"),Ge.current.className="markdown-body",Ge.current.innerHTML=Re,bt.appendChild(Ge.current);const Qe=document.createElement("style");return Qe.textContent=We,bt.appendChild(Qe),()=>{bt.innerHTML=""}},[]),(0,ge.useEffect)(()=>{Ge.current&&(Ge.current.innerHTML=Re)},[Re]),et.createElement("div",{ref:je})},Ee=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,oe=(Re,je,Ge)=>je in Re?Ee(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Re[je]=Ge,de=(Re,je)=>{for(var Ge in je||(je={}))te.call(je,Ge)&&oe(Re,Ge,je[Ge]);if(ee)for(var Ge of ee(je))ue.call(je,Ge)&&oe(Re,Ge,je[Ge]);return Re};const ve="@\u2581\u2581@",xe="@\u2581@",Ae=/<pre[^>]*>/g;function Pe(Re){let je=document.createElement("div");return je.innerHTML=Re,je.childNodes.length===0?"":je.childNodes[0].nodeValue}const Ne=(Re,je)=>{Re=Re||"";const Ge=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,We=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,bt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return je?Re.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ge,(Dt,vt,kt,Rt,Jt,at,Ze)=>{const Mt=vt||Rt||at,Yt=kt||Jt||Ze||"?";return it.Z.API_SERVER+"/api/attachments/"+Mt+Yt+"&t="+(0,be.Jn)(Mt,Date.now())+(Dt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Re=Re.replace(Qe,(Dt,vt,kt,Rt,Jt,at,Ze)=>{const Mt=vt||Rt||at,Yt=kt||Jt||Ze||"?";return it.Z.API_SERVER+"/attachments/download/"+Mt+Yt+"&t="+(0,be.Jn)(Mt,Date.now())+(Dt.indexOf(")")>-1?")":"&")}).replace(Ge,(Dt,vt,kt,Rt,Jt,at,Ze)=>{const Mt=vt||Rt||at,Yt=kt||Jt||Ze||"?";return it.Z.API_SERVER+"/api/attachments/"+Mt+Yt+"&t="+(0,be.Jn)(Mt,Date.now())+(Dt.indexOf(")")>-1?")":"&")}).replace(We,(Dt,vt,kt,Rt,Jt)=>{const at=vt||Rt,Ze=kt||Jt||"";return'"'+it.Z.API_SERVER+"/api/attachments/"+at+Ze+at+Ze+"&t="+(0,be.Jn)(at,Date.now())}).replace(bt,(Dt,vt,kt,Rt,Jt)=>{const at=vt||Rt,Ze=kt||Jt||"";return"("+it.Z.API_SERVER+"/files/uploads/"+at+Ze+at+Ze+"&t="+(0,be.Jn)(at,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,`
|
|
|
`),Re)};var Le=({value:Re="",className:je,showTextOnly:Ge,showLines:We,style:bt={},stylesPrev:Qe={},highlightKeywords:Dt,showProgramFill:vt,isProgramFill:kt,disabledFill:Rt=!1,programFillValue:Jt,onFillChange:at=Yt=>{},onFillBlur:Ze=()=>{},onFillFocus:Mt=()=>{}})=>{let Yt=String(Re);const[Vt,Ct]=(0,ge.useState)(""),[Nt,sn]=(0,ge.useState)("office"),[Nn,hn]=(0,ge.useState)([]),Xn=(0,ge.useRef)("a"+(0,ct.Z)()),Ft={},Un=(Oe,we,ye)=>{const ke=document.createElement(Oe===xe?"input":"textarea");ke.style.width="100%",ke.style.height=Oe===xe?"40px":"151px",ke.rows=5,ke.spellcheck=!1,ke.name="edu-program-fill",ke.placeholder="\u8BF7\u8F93\u5165",ke.dataset.id=we;const Ve=Object.keys(Ft).length;return Ft[Ve]=ke,`<span class="edu-program-fill-wrap ${Oe===xe?"":"show"}" style="width:${Oe===xe?"400px":"100%"}" title=${ye||""}><span>${ke.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Kn(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 ti=Oe=>Oe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(we,ye){let ke=ye.replace(/(\n|\r)/g,"").split("}"),Ve=[];return ke.map(Be=>{Be!=""&&Ve.push(`.${Xn.current} ${Be}`)}),`<style>${Ve.join("}")}</style>`}),Fn=(0,ge.useMemo)(()=>{try{const ke=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ve=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Be=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,dt=/\(\/attachments\/download\//g;Yt=Yt.replace(dt,"("+it.Z.API_SERVER+"/attachments/download/").replace(ke,"("+it.Z.API_SERVER+"/api/attachments/").replace(Ve,'"'+it.Z.API_SERVER+"/api/attachments/").replace(Be,'"'+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(vt){let ke=-1;return Yt=Yt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ve,Be,dt){var on;return++ke,Un(Ve,ke,(on=Jt==null?void 0:Jt[ke])==null?void 0:on.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ti(Yt||"")}</pre>`}let Oe=ti(Yt);Oe=(0,Ke.ZP)(Oe);const we=(0,Ke.ez)();Yt.match(/\[TOC\]/)&&(Oe=Oe.replace("<p>[TOC]</p>",(0,Ke.Qv)()),(0,Ke.Iy)()),Oe=Oe.replace(/(__special_katext_id_\d+__)/g,(ke,Ve)=>{const{type:Be,expression:dt}=we[Ve];return(0,yt.renderToString)(Pe(dt)||"",{displayMode:Be==="block",throwOnError:!1,output:"html"})}),Oe=Oe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Ke.AL)();const ye=document.createElement("div");if(ye.innerHTML=Oe,Ge)return ye.innerText;if(Dt){const ke=Dt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return tt(ye,ke),ye.innerHTML}return setTimeout(()=>pt(),500),ye.innerHTML},[Yt,Dt]);(0,ge.useEffect)(()=>{Wt.current&&Wt.current.querySelectorAll(["input","textarea"]).forEach(we=>{we.oninput=Zt,we.onblur=Xt,we.onfocus=mt})},[Nn]),(0,ge.useEffect)(()=>{var Oe,we,ye,ke,Ve;if(Jt!=null&&Jt.length)try{const Be=Wt.current.querySelectorAll(".edu-program-fill-score"),dt=Wt.current.querySelectorAll('[name="edu-program-fill"]');for(const[on,mn]of dt.entries())mn.value=((Oe=Jt==null?void 0:Jt[on])==null?void 0:Oe.value)||"",((we=Jt==null?void 0:Jt[on])==null?void 0:we.type)==="warning"?mn.className="program-fill-warning":((ye=Jt==null?void 0:Jt[on])==null?void 0:ye.type)==="success"?mn.className="program-fill-success":mn.className="";for(const[on,mn]of Be.entries())mn.innerHTML=(ke=Jt==null?void 0:Jt[on])!=null&&ke.score?`${(Ve=Jt==null?void 0:Jt[on])==null?void 0:Ve.score}\u5206`:"";hn(Jt)}catch(Be){console.log(Be,"error")}},[Jt]);const Zt=Oe=>{Nn[Oe.target.dataset.id]=Nn[Oe.target.dataset.id]||{},Nn[Oe.target.dataset.id].value=Oe.target.value,hn([...Nn]),at(Nn,Oe.target.dataset.id)},Xt=Oe=>{Nn[Oe.target.dataset.id]=Nn[Oe.target.dataset.id]||{},Nn[Oe.target.dataset.id].value=Oe.target.value,hn([...Nn]),Ze(Nn,Oe.target.dataset.id)},mt=Oe=>{Nn[Oe.target.dataset.id]=Nn[Oe.target.dataset.id]||{},Nn[Oe.target.dataset.id].value=Oe.target.value,hn([...Nn]),Mt(Nn,Oe.target.dataset.id)};function tt(Oe,we){return Oe.childNodes.forEach(ye=>{var ke;if(ye.childNodes.length>0)tt(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 Ve=document.createElement("span");Ve.innerHTML=ye.textContent.replace(new RegExp(we,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),ye.replaceWith(Ve)}})}const Wt=(0,ge.useRef)();Ke.jb.WebkitLineClamp=We,We&&(bt=de(de({},bt),Ke.jb));function Lt(Oe){let we=Oe.target;if(we.tagName.toUpperCase()==="A"){let ye=we.getAttribute("href");if(ye.indexOf("office")>-1)Oe.preventDefault(),Ct(ye),sn("office");else if(ye.indexOf("application/pdf")>-1)Oe.preventDefault(),Ct(ye),sn("pdf");else if(ye.indexOf("text/html")>-1)Oe.preventDefault(),Ct(ye),sn("html");else if(ye.startsWith("#")){Oe.preventDefault();let ke=document.getElementById(ye.replace("#",""));ke&&ke.scrollIntoView(!0)}}}const pt=()=>{var Oe;const we=(Oe=Wt.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(He.ZP.isSupported()){var ke=new He.ZP;ke.loadSource(ye.src),ke.attachMedia(ye)}}})};(0,ge.useEffect)(()=>{if(Wt.current&&Fn&&Fn.match(Ae)&&window.PR.prettyPrint(),Wt.current)return Wt.current.addEventListener("click",Lt),()=>{var Oe;(Oe=Wt.current)==null||Oe.removeEventListener("click",Lt),(0,Ke.AL)(),(0,Ke.Iy)()}},[Fn,Wt.current,Lt]),(0,ge.useEffect)(()=>{var Oe;const we=ye=>{ye.preventDefault(),ye.clipboardData.setData("text",window.getSelection().toString())};return(Oe=Wt.current)==null||Oe.addEventListener("copy",we),()=>{var ye;(ye=Wt.current)==null||ye.removeEventListener("copy",we)}},[Wt.current]);const nt=Oe=>/<style[\s\S]*?>/i.test(Oe||"");return ge.createElement(ge.Fragment,null,Ge&&ge.createElement("div",{ref:Wt},Fn),!Ge&&!nt(Fn)&&ge.createElement("div",{ref:Wt,style:de({},bt),className:`${je||""} ${Rt?"disabled-fill":""} markdown-body ${Xn.current}`,dangerouslySetInnerHTML:{__html:Fn}}),!Ge&&nt(Fn)&&ge.createElement(Ue,{html:Fn}),ge.createElement(Xe.Z,{close:!0,data:Vt,type:Vt!=null&&Vt.length?Nt:"",style:de({},Qe),onClose:()=>Ct("")}))}},44809:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ne}});var ge=he(59301),Ie=he(9221),Ke=Object.defineProperty,ot=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,be=(Le,Re,je)=>Re in Le?Ke(Le,Re,{enumerable:!0,configurable:!0,writable:!0,value:je}):Le[Re]=je,yt=(Le,Re)=>{for(var je in Re||(Re={}))He.call(Re,je)&&be(Le,je,Re[je]);if(ot)for(var je of ot(Re))it.call(Re,je)&&be(Le,je,Re[je]);return Le},ct=(Le,Re)=>{var je={};for(var Ge in Le)He.call(Le,Ge)&&Re.indexOf(Ge)<0&&(je[Ge]=Le[Ge]);if(Le!=null&&ot)for(var Ge of ot(Le))Re.indexOf(Ge)<0&&it.call(Le,Ge)&&(je[Ge]=Le[Ge]);return je};const et={header:{cell:Le=>{var Re=Le,{onResize:je,width:Ge}=Re,We=ct(Re,["onResize","width"]);return Ge?ge.createElement(Ie.Resizable,{width:Ge,height:0,handle:ge.createElement("span",{className:"react-resizable-handle",onClick:bt=>{bt.stopPropagation()}}),onResize:je,draggableOpts:{enableUserSelectHack:!1}},ge.createElement("th",yt({},We))):ge.createElement("th",yt({},We))}}};var Je=he(2595),Ue=Object.defineProperty,Ee=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,de=(Le,Re,je)=>Re in Le?Ue(Le,Re,{enumerable:!0,configurable:!0,writable:!0,value:je}):Le[Re]=je,ve=(Le,Re)=>{for(var je in Re||(Re={}))ue.call(Re,je)&&de(Le,je,Re[je]);if(te)for(var je of te(Re))oe.call(Re,je)&&de(Le,je,Re[je]);return Le},xe=(Le,Re)=>Ee(Le,ee(Re)),Ae=(Le,Re)=>{var je={};for(var Ge in Le)ue.call(Le,Ge)&&Re.indexOf(Ge)<0&&(je[Ge]=Le[Ge]);if(Le!=null&&te)for(var Ge of te(Le))Re.indexOf(Ge)<0&&oe.call(Le,Ge)&&(je[Ge]=Le[Ge]);return je},Ne=Le=>{var Re=Le,{pagination:je,resColumns:Ge,dataSource:We,onRow:bt}=Re,Qe=Ae(Re,["pagination","resColumns","dataSource","onRow"]);const[Dt,vt]=(0,ge.useState)(!1),[kt,Rt]=(0,ge.useState)([{}]),Jt=(0,ge.useRef)(null);(0,ge.useEffect)(()=>{let Ze=Ge;Ze=Ze.map((Mt,Yt)=>xe(ve({},Mt),{onHeaderCell:Vt=>({width:Vt.width,onResize:at(Yt)})})),Rt(Ze)},[]),(0,ge.useEffect)(()=>{Jt.current=kt},[kt]);const at=Ze=>(Mt,{size:Yt})=>{const Vt=[...Jt.current];Vt[Ze]=xe(ve({},Vt[Ze]),{width:Yt.width}),Rt(Vt)};return ge.createElement("div",null,ge.createElement(Je.default,xe(ve({bordered:!0,components:et,columns:kt,dataSource:We,pagination:je,loading:Dt,onRow:bt},Qe),{rowKey:Ze=>Ze.key||Ze.id})))}},2567:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Re},P:function(){return Pe}});var ge=he(59301),Ie=he(78241),Ke=he(43418),ot=he(5112),He=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),ct=Object.defineProperty,Xe=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ee=(je,Ge,We)=>Ge in je?ct(je,Ge,{enumerable:!0,configurable:!0,writable:!0,value:We}):je[Ge]=We,te=(je,Ge)=>{for(var We in Ge||(Ge={}))Ue.call(Ge,We)&&ee(je,We,Ge[We]);if(Je)for(var We of Je(Ge))Ee.call(Ge,We)&&ee(je,We,Ge[We]);return je},ue=(je,Ge)=>Xe(je,et(Ge)),oe=(je,Ge)=>{var We={};for(var bt in je)Ue.call(je,bt)&&Ge.indexOf(bt)<0&&(We[bt]=je[bt]);if(je!=null&&Je)for(var bt of Je(je))Ge.indexOf(bt)<0&&Ee.call(je,bt)&&(We[bt]=je[bt]);return We},de=(je,Ge,We)=>new Promise((bt,Qe)=>{var Dt=Rt=>{try{kt(We.next(Rt))}catch(Jt){Qe(Jt)}},vt=Rt=>{try{kt(We.throw(Rt))}catch(Jt){Qe(Jt)}},kt=Rt=>Rt.done?bt(Rt.value):Promise.resolve(Rt.value).then(Dt,vt);kt((We=We.apply(je,Ge)).next())});const ve=({studentNames:je,total:Ge})=>{const We=["","\u4E00","\u4E24","\u4E09"];return Ge>3?ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:be.orangeColor},je==null?void 0:je.join("\u3001")),"\u7B49",ge.createElement("span",{className:be.orangeColor},Ge),"\u540D\u5B66\u751F"):ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:be.orangeColor},je==null?void 0:je.join("\u3001")),We[Ge],"\u540D\u5B66\u751F")},xe=({used:je,copy:Ge,canNotCopy:We,studentNames:bt,studentCount:Qe,inPaper:Dt,is_random:vt=!1,position:kt=""})=>{const Rt=()=>{if(Ge>0&&We>0)return ge.createElement(ge.Fragment,null,"\u5176\u4E2D",ge.createElement("span",{className:be.orangeColor},Ge),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",ge.createElement("span",{className:be.orangeColor},We),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(Ge>0&&We===0)return ge.createElement(ge.Fragment,null,"\u5176\u4E2D",ge.createElement("span",{className:be.orangeColor},Ge),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(Ge===0&&We>0)return ge.createElement(ge.Fragment,null,"\u5176\u4E2D",ge.createElement("span",{className:be.orangeColor},We),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},Jt=kt||(Dt?"\u8BD5\u5377":"\u8BFE\u7A0B");return ge.createElement("span",null,ge.createElement(ve,{studentNames:bt,total:Qe}),"\u5B66\u4E60\u8FC7",Jt,"\u4E2D\u7684",ge.createElement("span",{className:be.orangeColor},je),"\u4E2A\u9879\u76EE\uFF0C",Rt(),"\u3002\u8BF7\u9009\u62E9",vt?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},Ae=({onCancel:je,onOk:Ge,visible:We,inPaper:bt,renderData:Qe,type:Dt,isMultipleCourse:vt=!1})=>{const[kt]=Ie.default.useForm(),[Rt,Jt]=(0,ge.useState)(1),[at,Ze]=(0,ge.useState)(!1),Mt=(0,ge.useMemo)(()=>(Qe==null?void 0:Qe.total_num)===1&&(Qe==null?void 0:Qe.can_copy_num)===1,[Qe]),Yt=(0,ge.useMemo)(()=>{var Vt;return(Vt=Qe==null?void 0:Qe.course_data_list)==null?void 0:Vt.filter(Ct=>Ct.is_show)},[Qe]);return ge.createElement(ge.Fragment,null,Mt?ge.createElement(Ke.default,{centered:!0,closable:!0,open:We,destroyOnClose:!0,title:"\u63D0\u793A",className:be.antdModal,width:682,confirmLoading:at,onCancel:je,onOk:()=>de(void 0,null,function*(){var Vt;Ze(!0);let Ct=Rt;if(vt){const Nt=te({},kt.getFieldsValue());Ct=(Vt=Qe==null?void 0:Qe.course_data_list)==null?void 0:Vt.map(sn=>Nt[sn.id]!==void 0?ue(te({},sn),{is_copy:Nt[sn.id]}):sn)}yield Ge(Ct),Ze(!1)})},ge.createElement("div",{className:be.content,style:{marginBottom:20}},vt?"\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?":ge.createElement(ge.Fragment,null,ge.createElement(ve,{studentNames:Qe==null?void 0:Qe.student_names,total:Qe==null?void 0:Qe.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")),vt?ge.createElement(Ie.default,{form:kt,preserve:!1},Yt==null?void 0:Yt.map(Vt=>ge.createElement(ge.Fragment,{key:Vt.id},ge.createElement("h3",{className:"ml15 mb5"},Vt.name),ge.createElement(Ie.default.Item,{name:Vt.id,initialValue:1},ge.createElement(ot.ZP.Group,{className:be.content},ge.createElement(ot.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),ge.createElement(ot.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):ge.createElement(ot.ZP.Group,{value:Rt,onChange:Vt=>Jt(Vt.target.value),className:be.content,style:{marginBottom:30}},ge.createElement(ot.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),ge.createElement(ot.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),ge.createElement("div",null,ge.createElement("div",{className:be.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),ge.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"),ge.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"))):ge.createElement(Ke.default,{centered:!0,closable:!0,destroyOnClose:!0,open:We,confirmLoading:at,title:"\u63D0\u793A",width:682,onCancel:je,onOk:()=>de(void 0,null,function*(){var Vt;Ze(!0);let Ct=0;if(vt){const Nt=te({},kt.getFieldsValue());Ct=(Vt=Qe==null?void 0:Qe.course_data_list)==null?void 0:Vt.map(sn=>Nt[sn.id]!==void 0?ue(te({},sn),{is_use:Nt[sn.id]}):sn)}yield Ge(Ct),Ze(!1)})},ge.createElement("div",{className:be.content},ge.createElement(ve,{studentNames:Qe==null?void 0:Qe.student_names,total:Qe==null?void 0:Qe.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",vt?ge.createElement(Ie.default,{form:kt,preserve:!1},ge.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"),Yt==null?void 0:Yt.map(Vt=>ge.createElement(ge.Fragment,{key:Vt.id},ge.createElement("h3",{className:"ml15 mb5"},Vt.name),ge.createElement(Ie.default.Item,{name:Vt.id,initialValue:1},ge.createElement(ot.ZP.Group,{className:be.content},ge.createElement(ot.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),ge.createElement(ot.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):ge.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",ge.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"))))},Pe=function(){const[je,Ge]=(0,ge.useState)(!1),[We,bt]=(0,ge.useState)();return[je,()=>Ge(!1),We,vt=>de(this,null,function*(){var kt;const Rt=vt,{isImportMultipleCourse:Jt=!1}=Rt,at=oe(Rt,["isImportMultipleCourse"]);console.log(vt);const Ze=(vt==null?void 0:vt.result)||(yield(0,yt.Tr)(at));return"status"in Ze?!1:Jt?((kt=Ze==null?void 0:Ze.course_data_list)==null?void 0:kt.some(Yt=>Yt.is_show))?(bt(Ze),Ge(!0),!0):Ze.course_data_list||[]:Ze.student_count===0?!1:(bt(Ze),Ge(!0),!0)})]},Ne=je=>{const[Ge]=Ie.default.useForm(),[We,bt]=(0,ge.useState)(!1),{onCancel:Qe,onOk:Dt,visible:vt,inPaper:kt=!1,renderData:Rt,type:Jt,isMultipleCourse:at=!1,position:Ze}=je;let Mt=(0,ge.useMemo)(()=>kt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:be.tableCell,render(Ct,Nt){return ge.createElement("a",{href:`/shixuns/${Nt.identifier}/challenges`,target:"_blank"},Ct)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Ct,Nt)=>ge.createElement(ge.Fragment,null,ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Nt.stage_shixun_id:Nt.shixun_course_id||Nt.id}`,"is_copy"],initialValue:1},ge.createElement(ot.ZP.Group,null,ge.createElement(ot.ZP,{value:1},"\u662F"),ge.createElement(ot.ZP,{value:0},"\u5426"))),ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Nt==null?void 0:Nt.stage_shixun_id:Nt.shixun_course_id||Nt.id}`,"is_use"],hidden:!0,initialValue:1},ge.createElement(He.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:be.tableCell,render(Ct,Nt){return ge.createElement("a",{href:`/shixuns/${Nt.identifier}/challenges`,target:"_blank"},Ct)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Ct,Nt)=>ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Nt.stage_shixun_id:Nt.shixun_course_id||Nt.id}`,"is_use"],initialValue:1},ge.createElement(ot.ZP.Group,null,ge.createElement(ot.ZP,{value:1},"\u662F"),ge.createElement(ot.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Ct,Nt)=>ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Nt.stage_shixun_id:Nt.shixun_course_id||Nt.id}`,"is_copy"],initialValue:1},ge.createElement(ot.ZP.Group,null,ge.createElement(ot.ZP,{value:1},"\u662F"),ge.createElement(ot.ZP,{value:0},"\u5426")))}],[kt]),Yt=(0,ge.useMemo)(()=>kt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:be.tableCell,align:"center",ellipsis:!0,render:(Ct,Nt)=>ge.createElement(ge.Fragment,null,ge.createElement("a",{href:`/shixuns/${Nt.identifier}/challenges`,target:"_blank"},Ct),ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Nt==null?void 0:Nt.stage_shixun_id:Nt.shixun_course_id||Nt.id}`,"is_copy"],hidden:!0,initialValue:0},ge.createElement(He.default,{type:"hidden"})),ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Nt==null?void 0:Nt.stage_shixun_id:Nt.shixun_course_id||Nt.id}`,"is_use"],hidden:!0,initialValue:1},ge.createElement(He.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:be.tableCell,ellipsis:!0,align:"center",render:(Ct,Nt)=>ge.createElement("a",{href:`/shixuns/${Nt.identifier}/challenges`,target:"_blank"},Ct)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Ct,Nt)=>ge.createElement(ge.Fragment,null,ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Nt==null?void 0:Nt.stage_shixun_id:Nt.shixun_course_id||Nt.id}`,"is_use"],initialValue:0},ge.createElement(ot.ZP.Group,null,ge.createElement(ot.ZP,{value:1},"\u662F"),ge.createElement(ot.ZP,{value:0},"\u5426"))),ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Nt==null?void 0:Nt.stage_shixun_id:Nt.shixun_course_id||Nt.id}`,"is_copy"],hidden:!0,initialValue:0},ge.createElement(He.default,{type:"hidden"})))}],[kt]);if(at){const Ct={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:be.tableCell,render:(Nt,sn)=>ge.createElement("a",{href:`/classrooms/${sn.course_id}`},Nt)};Mt=[Ct,...Mt],Yt=[Ct,...Yt]}const Vt=(0,ge.useMemo)(()=>xe({used:Rt==null?void 0:Rt.repeat_shixun_num,copy:Rt==null?void 0:Rt.can_copy_num,canNotCopy:Rt==null?void 0:Rt.no_copy_num,studentNames:Rt==null?void 0:Rt.student_names,studentCount:Rt==null?void 0:Rt.student_count,is_random:Rt==null?void 0:Rt.is_random,inPaper:kt,position:Ze}),[Rt,kt,Ze]);return ge.createElement(Ke.default,{title:"\u63D0\u793A",centered:!0,open:vt,confirmLoading:We,onOk:()=>de(void 0,null,function*(){bt(!0);const Ct=Ge.getFieldsValue(),Nt=Object.keys(Ct).map(sn=>({id:parseInt(sn.split("_")[0]),course_id:parseInt(sn.split("_")[1]),is_use:Ct[sn].is_use,is_copy:Ct[sn].is_copy}));yield Dt(Nt),bt(!1)}),onCancel:Qe,width:880,okText:"\u786E\u8BA4",className:be.antdModal,destroyOnClose:!0},ge.createElement(Ie.default,{form:Ge,preserve:!1},ge.createElement("div",{className:be.brief},Vt),ge.createElement("div",{style:{marginBottom:30}},ge.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),ge.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"),ge.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")),(Rt==null?void 0:Rt.can_copy_num)>0&&ge.createElement("div",null,ge.createElement("div",{className:be.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),ge.createElement(it.default,{columns:Mt,className:be.antdTable,dataSource:Rt==null?void 0:Rt.can_copy_list,rowKey:Jt==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(Rt==null?void 0:Rt.no_copy_num)>0&&ge.createElement("div",null,ge.createElement("div",{className:be.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),ge.createElement(it.default,{columns:Yt,className:be.antdTable,dataSource:Rt==null?void 0:Rt.no_copy_list,rowKey:Jt==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(Rt==null?void 0:Rt.no_use_list.length)>0&&(Rt==null?void 0:Rt.no_use_list.map(Ct=>ge.createElement("div",{key:Jt==="subject"?Ct.stage_shixun_id:Ct.shixun_course_id||Ct.id},ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Ct==null?void 0:Ct.stage_shixun_id:Ct.shixun_course_id||Ct.id}`,"is_copy"],hidden:!0,initialValue:0},ge.createElement(He.default,{type:"hidden"})),ge.createElement(Ie.default.Item,{name:[`${Jt==="subject"?Ct==null?void 0:Ct.stage_shixun_id:Ct.shixun_course_id||Ct.id}`,"is_use"],hidden:!0,initialValue:1},ge.createElement(He.default,{type:"hidden"})))))))};var Re=je=>{const{modalType:Ge}=je;return Ge==="multiple"?ge.createElement(Ne,te({},je)):ge.createElement(Ae,te({},je))}},83476:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(59301),Ie={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},Ke=he(43418),ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",He="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",it=(ct,Xe,et)=>new Promise((Je,Ue)=>{var Ee=ue=>{try{te(et.next(ue))}catch(oe){Ue(oe)}},ee=ue=>{try{te(et.throw(ue))}catch(oe){Ue(oe)}},te=ue=>ue.done?Je(ue.value):Promise.resolve(ue.value).then(Ee,ee);te((et=et.apply(ct,Xe)).next())}),yt=({type:ct,resdata:Xe,onok:et,oktext:Je,okloading:Ue})=>{const[Ee,ee]=(0,ge.useState)(!1),{can_copy_list:te,can_copy_num:ue,challenge_type:oe,course_data_list:de,no_copy_list:ve,no_copy_num:xe,no_use_list:Ae,no_use_num:Pe,repeat_shixun_num:Ne,student_count:Le,total_num:Re,use_num:je}=Xe;let Ge=ue>0||ct==="exercise";(0,ge.useEffect)(()=>{(Xe==null?void 0:Xe.student_count)>0&&ee(!0)},[Xe]),console.log("---11",Ue),(0,ge.useEffect)(()=>{Ue||ee(!1)},[Ue]);const We=()=>{if(ct==="exercise"&&oe===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:Ie.orangeColor},Le),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:Ie.orangeColor},je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:Ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(ct==="exercise"&&oe===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:Ie.orangeColor},Le),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:Ie.orangeColor},je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:Ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="shixun"&&oe===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:Ie.orangeColor},Le),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:Ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="shixun"&&oe===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:Ie.orangeColor},Le),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:Ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="subject"&&oe===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:Ie.orangeColor},Le),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:Ie.orangeColor},je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:Ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="subject"&&oe===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ge.createElement("span",{className:Ie.orangeColor},Le)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ge.createElement("span",{className:Ie.orangeColor},je)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:Ie.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="exercisepush")return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:Ie.orangeColor},Le),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ge.createElement("span",{className:Ie.orangeColor},je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ge.createElement("span",{className:Ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(ct==="shixunpush"&&oe===1)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:Ie.orangeColor},Le),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ge.createElement("span",{className:Ie.orangeColor},je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:Ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ct==="shixunpush"&&oe===2)return ge.createElement(ge.Fragment,null,"\u8BFE\u5802\u5185\u6709",ge.createElement("span",{className:Ie.orangeColor},Le),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ge.createElement("span",{className:Ie.orangeColor},je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ge.createElement("span",{className:Ie.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},bt=()=>{if(ct==="exercise"||ct==="subject"||ct==="exercisepush"||ct==="shixunpush")return ge.createElement("div",{style:{marginTop:20}},xe>0&&ge.createElement("div",null,ge.createElement("span",{className:Ie.flex},ge.createElement("img",{src:He,style:{width:14}}),ge.createElement("span",{className:Ie.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ge.createElement("div",{className:Ie.statusbody},ct==="exercise"&&ge.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ge.createElement("span",{className:Ie.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(ct==="subject"||ct==="exercisepush")&&ge.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ge&&ge.createElement("span",{className:Ie.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ct==="shixunpush"&&ge.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ge&&ge.createElement("span",{className:Ie.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ge.createElement("div",null,ve==null?void 0:ve.map((Qe,Dt)=>ge.createElement("a",{href:`/shixuns/${Qe.identifier}/challenges`,target:"_blank"},"\u300A",Qe==null?void 0:Qe.name,"\u300B",Dt+1!==xe&&"\u3001"))))),ue>0&&ge.createElement("div",{style:{marginTop:20}},ge.createElement("span",{className:Ie.flex},ge.createElement("img",{src:ot,style:{width:14}}),ge.createElement("span",{className:Ie.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ge.createElement("div",{className:Ie.statusbody},ct==="exercise"&&ge.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(ct==="subject"||ct==="exercisepush")&&ge.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ct==="shixunpush"&&ge.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ge.createElement("div",null,te==null?void 0:te.map((Qe,Dt)=>ge.createElement("a",{href:`/shixuns/${Qe.identifier}/challenges`,target:"_blank"},"\u300A",Qe==null?void 0:Qe.name,"\u300B",Dt+1!==ue&&"\u3001"))))));if(ct==="shixun")return ge.createElement("div",{style:{marginTop:20}},ue>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return ge.createElement(Ke.default,{open:Ee,onCancel:()=>{ee(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ge&&"none"}},zIndex:1003,confirmLoading:Ue,okText:Ge?Je:"\u6211\u77E5\u9053\u4E86",onOk:()=>it(void 0,null,function*(){Ge?yield et([...te,...Ae]):ee(!1)})},ge.createElement("div",{style:{maxHeight:600,overflow:"auto"}},We(),bt()))}},56017:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return He}});var ge=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"},Ke=he(6848),He=({children:it,tips:be,title:yt,style:ct})=>{const Xe=yt||ge.createElement("div",null,ge.createElement("div",null,"\u63D0\u793A\uFF1A"),ge.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"),ge.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?ge.createElement(Ke.Z,{overlayStyle:{maxWidth:"initial"},title:Xe},ge.createElement("span",{className:Ie.disabled,style:ct},it)):it&&!be?ge.createElement(ge.Fragment,null,it):ge.createElement(ge.Fragment,null)}},36866:function(fn,jt,he){"use strict";he.d(jt,{h:function(){return xe},Z:function(){return ve}});var ge=he(59301),Ie=he(57809),Ke=he(78241),ot=he(3113),He=he(89780),it=he.n(He),be=he(79906),yt=Object.defineProperty,ct=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Ee=(Ae,Pe,Ne)=>Pe in Ae?yt(Ae,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Ae[Pe]=Ne,ee=(Ae,Pe)=>{for(var Ne in Pe||(Pe={}))Je.call(Pe,Ne)&&Ee(Ae,Ne,Pe[Ne]);if(et)for(var Ne of et(Pe))Ue.call(Pe,Ne)&&Ee(Ae,Ne,Pe[Ne]);return Ae},te=(Ae,Pe)=>ct(Ae,Xe(Pe));const ue=Ie.default.Option,oe={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:Pe})=>{const[Ne,Le]=(0,ge.useState)("python");function Re(Ge){Le(de[Ge][1])}function je(Ge){Ae(Ge)}return ge.createElement(Ke.default,te(ee({},oe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:je,style:{width:500}}),ge.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ge.createElement(Ie.default,{getPopupContainer:Ge=>Ge.parentNode,onChange:Re},Object.keys(de).map(Ge=>ge.createElement(ue,{key:Ge,value:Ge},de[Ge][0])))),ge.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ge.createElement(xe,{mode:Ne})),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(ot.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(ot.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))};function xe({value:Ae,onChange:Pe,mode:Ne,options:Le={}}){const Re=(0,ge.useRef)(),[je,Ge]=(0,ge.useState)();return(0,ge.useEffect)(()=>{if(je){let We=function(bt){const Qe=bt.getValue();Pe&&Pe(Qe)};return je.on("change",We),()=>{je.off("change",We)}}},[je,Pe]),(0,ge.useEffect)(()=>{je&&je.setOption("mode",Ne)},[je,Ne]),(0,ge.useEffect)(()=>{je&&(Ae!==je.getValue()||Ae==="")&&setTimeout(()=>{je.setValue(Ae||"")},300)},[je,Ae]),(0,ge.useEffect)(()=>{if(Re.current&&!je){const We=it().fromTextArea(Re.current,ee({mode:Ne,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Le));Ge(We)}},[Re.current,je]),ge.createElement("div",{className:"my-codemirror-container"},ge.createElement("textarea",{ref:Re}))}},23469:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ni}});var ge=he(59301),Ie=he(89780),Ke=he.n(Ie),ot=he(76374),He=he(79906),it=he(6313),be=he(25717),yt=he(99498),ct=he(25419),Xe=he(67549),et=he(25711),Je=({value:an="",className:en,showTextOnly:Kt,showLines:Pt,style:Sn={}})=>{const bn=(0,ge.useMemo)(()=>"",[an]);return ge.createElement(ge.Fragment,null,ge.createElement("div",{dangerouslySetInnerHTML:{__html:bn}}))},Ue=he(59301),Ee=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,ve=(an,en,Kt)=>en in an?Ee(an,en,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):an[en]=Kt,xe=(an,en)=>{for(var Kt in en||(en={}))oe.call(en,Kt)&&ve(an,Kt,en[Kt]);if(ue)for(var Kt of ue(en))de.call(en,Kt)&&ve(an,Kt,en[Kt]);return an},Ae=(an,en)=>ee(an,te(en));let Pe=[{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 Ne({onActionCallback:an,title:en,icon:Kt,actionName:Pt,className:Sn="",children:bn}){function zt(){an(Pt)}return Ue.createElement("a",{title:en,className:Sn,onClick:zt},Ue.createElement("i",{className:`${Kt}`}),bn)}var Le=({watch:an,showNullButton:en,showNullProgramButton:Kt,onActionCallback:Pt,fullScreen:Sn,insertTemp:bn,hidetoolBar:zt,extraUse:gt})=>{const xn=[...Pe,{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 Ue.createElement("ul",{className:"markdown-toolbar-container"},!zt&&xn.map((Ln,pi)=>Ue.createElement("li",{key:pi},Ln.actionName?Ue.createElement(Ne,Ae(xe({},Ln),{onActionCallback:Pt})):Ue.createElement("span",{className:"v-line"}))),en?Ue.createElement("li",null,Ue.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Pt},Ue.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Kt?Ue.createElement(Ue.Fragment,null,Ue.createElement("li",null,Ue.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Pt},Ue.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ue.createElement("li",null,Ue.createElement(Ne,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Pt},Ue.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,bn&&Ue.createElement("li",null,Ue.createElement(Ne,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${bn}`,onActionCallback:Pt},Ue.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),gt&&Ue.createElement("li",null,gt),Ue.createElement("li",{className:"btn-full-screen"},Ue.createElement(Ne,{icon:`${Sn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Sn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Pt})))},Re=he(50474),je=he(78241),Ge=he(92832),We=he(3113),bt=Object.defineProperty,Qe=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Jt=(an,en,Kt)=>en in an?bt(an,en,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):an[en]=Kt,at=(an,en)=>{for(var Kt in en||(en={}))kt.call(en,Kt)&&Jt(an,Kt,en[Kt]);if(vt)for(var Kt of vt(en))Rt.call(en,Kt)&&Jt(an,Kt,en[Kt]);return an},Ze=(an,en)=>Qe(an,Dt(en));const Mt={labelCol:{span:4},wrapperCol:{span:20}};var Yt=({callback:an,onCancel:en})=>{function Kt(Pt){an(Pt)}return ge.createElement(je.default,Ze(at({},Mt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Kt,style:{width:500}}),ge.createElement(je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ge.createElement(Ge.default,null)),ge.createElement(je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ge.createElement(Ge.default,null)),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(We.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},Vt=he(36866),Ct=he(56701),Nt=he(43418),sn=he(95237),Nn=he(65983),hn=he(59301),Xn=({callback:an,onCancel:en})=>{const Kt=document.createElement("canvas"),Pt=Kt.getContext("2d");Kt.width=1e3,Kt.height=800,Pt.fillStyle="#ffffff",Pt.fillRect(0,0,Kt.width,Kt.height);const Sn=Kt.toDataURL("image/png");return hn.createElement(Nt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},hn.createElement(sn.Z,{style:{height:"100vh"}},hn.createElement(Nn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Sn,visible:!0,title:String(Date.now())},onOk:bn=>{an({src:bn.url})},onClose:en})))},Ft=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 en=1/0;an.selection.each(function(Kt){Kt instanceof go.Link||(en=Math.min(Kt.position.x,en))}),an.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(en,Kt.position.y))}),an.commitTransaction("aligning left")},Un.prototype.alignRight=function(){var an=this.diagram;an.startTransaction("aligning right");var en=-1/0;an.selection.each(function(Kt){if(!(Kt instanceof go.Link)){var Pt=Kt.actualBounds.x+Kt.actualBounds.width;en=Math.max(Pt,en)}}),an.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(en-Kt.actualBounds.width,Kt.position.y))}),an.commitTransaction("aligning right")},Un.prototype.alignTop=function(){var an=this.diagram;an.startTransaction("alignTop");var en=1/0;an.selection.each(function(Kt){Kt instanceof go.Link||(en=Math.min(Kt.position.y,en))}),an.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(Kt.position.x,en))}),an.commitTransaction("alignTop")},Un.prototype.alignBottom=function(){var an=this.diagram;an.startTransaction("aligning bottom");var en=-1/0;an.selection.each(function(Kt){if(!(Kt instanceof go.Link)){var Pt=Kt.actualBounds.y+Kt.actualBounds.height;en=Math.max(Pt,en)}}),an.selection.each(function(Kt){Kt instanceof go.Link||Kt.move(new go.Point(Kt.actualBounds.x,en-Kt.actualBounds.height))}),an.commitTransaction("aligning bottom")},Un.prototype.alignCenterX=function(){var an=this.diagram,en=an.selection.first();if(en){an.startTransaction("aligning Center X");var Kt=en.actualBounds.x+en.actualBounds.width/2;an.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(Kt-Pt.actualBounds.width/2,Pt.actualBounds.y))}),an.commitTransaction("aligning Center X")}},Un.prototype.alignCenterY=function(){var an=this.diagram,en=an.selection.first();if(en){an.startTransaction("aligning Center Y");var Kt=en.actualBounds.y+en.actualBounds.height/2;an.selection.each(function(Pt){Pt instanceof go.Link||Pt.move(new go.Point(Pt.actualBounds.x,Kt-Pt.actualBounds.height/2))}),an.commitTransaction("aligning Center Y")}},Un.prototype.alignColumn=function(an){var en=this.diagram;en.startTransaction("align Column"),an===void 0&&(an=0),an=parseFloat(an);var Kt=new Array;en.selection.each(function(gt){gt instanceof go.Link||Kt.push(gt)});for(var Pt=0;Pt<Kt.length-1;Pt++){var Sn=Kt[Pt],bn=Sn.actualBounds.y+Sn.actualBounds.height+an,zt=Kt[Pt+1];zt.move(new go.Point(Sn.actualBounds.x,bn))}en.commitTransaction("align Column")},Un.prototype.alignRow=function(an){an===void 0&&(an=0),an=parseFloat(an);var en=this.diagram;en.startTransaction("align Row");var Kt=new Array;en.selection.each(function(gt){gt instanceof go.Link||Kt.push(gt)});for(var Pt=0;Pt<Kt.length-1;Pt++){var Sn=Kt[Pt],bn=Sn.actualBounds.x+Sn.actualBounds.width+an,zt=Kt[Pt+1];zt.move(new go.Point(bn,Sn.actualBounds.y))}en.commitTransaction("align Row")},Un.prototype.canRotate=function(an){var en=this.diagram;return!(en===null||en.isReadOnly||en.isModelReadOnly||en.selection.count<1)},Un.prototype.rotate=function(an){an===void 0&&(an=90);var en=this.diagram;en.startTransaction("rotate "+an.toString());var en=this.diagram;en.selection.each(function(Kt){Kt instanceof go.Link||Kt instanceof go.Group||(Kt.angle+=an)}),en.commitTransaction("rotate "+an.toString())},Un.prototype.pullToFront=function(){var an=this.diagram;an.startTransaction("pullToFront");var en=new go.Map;an.selection.each(function(Kt){en.set(Kt.layer,0)}),en.iteratorKeys.each(function(Kt){var Pt=0;Kt.parts.each(function(Sn){if(!Sn.isSelected){var bn=Sn.zOrder;isNaN(bn)?Sn.zOrder=0:Pt=Math.max(Pt,bn)}}),en.set(Kt,Pt)}),an.selection.each(function(Kt){Un._assignZOrder(Kt,en.get(Kt.layer)+1)}),an.commitTransaction("pullToFront")},Un.prototype.pushToBack=function(){var an=this.diagram;an.startTransaction("pushToBack");var en=new go.Map;an.selection.each(function(Kt){en.set(Kt.layer,0)}),en.iteratorKeys.each(function(Kt){var Pt=0;Kt.parts.each(function(Sn){if(!Sn.isSelected){var bn=Sn.zOrder;isNaN(bn)?Sn.zOrder=0:Pt=Math.min(Pt,bn)}}),en.set(Kt,Pt)}),an.selection.each(function(Kt){Un._assignZOrder(Kt,en.get(Kt.layer)-1-Un._findGroupDepth(Kt))}),an.commitTransaction("pushToBack")},Un._assignZOrder=function(an,en,Kt){Kt===void 0&&(Kt=an),an.layer===Kt.layer&&(an.zOrder=en),an instanceof go.Group&&an.memberParts.each(function(Pt){Un._assignZOrder(Pt,en+1,Kt)})},Un._findGroupDepth=function(an){if(an instanceof go.Group){var en=0;return an.memberParts.each(function(Kt){en=Math.max(en,Un._findGroupDepth(Kt))}),en+1}else return 0},Un.prototype.doKeyDown=function(){var an=this.diagram;if(an!==null){var en=an.lastInput;if(en.key==="Up"||en.key==="Down"||en.key==="Left"||en.key==="Right"){var Kt=this.arrowKeyBehavior;if(Kt==="none")return;if(Kt==="select"){this._arrowKeySelect();return}else if(Kt==="move"){this._arrowKeyMove();return}else if(Kt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Un.prototype._getAllParts=function(){var an=new Array;return this.diagram.nodes.each(function(en){an.push(en)}),this.diagram.parts.each(function(en){an.push(en)}),an},Un.prototype._arrowKeyMove=function(){var an=this.diagram,en=an.lastInput,Kt=0,Pt=0;if(en.control||en.meta)Kt=1,Pt=1;else if(an.grid!==null){var Sn=an.grid.gridCellSize;Pt=Sn.width,Kt=Sn.height}an.startTransaction("arrowKeyMove"),an.selection.each(function(bn){en.key==="Up"?bn.move(new go.Point(bn.actualBounds.x,bn.actualBounds.y-Kt)):en.key==="Down"?bn.move(new go.Point(bn.actualBounds.x,bn.actualBounds.y+Kt)):en.key==="Left"?bn.move(new go.Point(bn.actualBounds.x-Pt,bn.actualBounds.y)):en.key==="Right"&&bn.move(new go.Point(bn.actualBounds.x+Pt,bn.actualBounds.y))}),an.commitTransaction("arrowKeyMove")},Un.prototype._arrowKeySelect=function(){var an=this.diagram,en=an.lastInput,Kt=null;en.key==="Up"?Kt=this._findNearestPartTowards(270):en.key==="Down"?Kt=this._findNearestPartTowards(90):en.key==="Left"?Kt=this._findNearestPartTowards(180):en.key==="Right"&&(Kt=this._findNearestPartTowards(0)),Kt!==null&&(en.shift?Kt.isSelected=!0:en.control||en.meta?Kt.isSelected=!Kt.isSelected:an.select(Kt))},Un.prototype._findNearestPartTowards=function(an){var en=this.diagram.selection.first();if(en===null)return null;for(var Kt=en.actualBounds.center,Pt=this._getAllParts(),Sn=1/0,bn=en,zt=0;zt<Pt.length;zt++){var gt=Pt[zt];if(gt!==en&>.canSelect()){var xn=gt.actualBounds.center,Ln=Kt.directionPoint(xn),pi=this._angleCloseness(Ln,an);if(pi<=45){var Mn=Kt.distanceSquaredPoint(xn);Mn*=1+Math.sin(pi*Math.PI/180),Mn<Sn&&(Sn=Mn,bn=gt)}}}return bn},Un.prototype._angleCloseness=function(an,en){return Math.min(Math.abs(en-an),Math.min(Math.abs(en+360-an),Math.abs(en-360-an)))},Un.prototype._arrowKeyTree=function(){var an=this.diagram,en=an.selection.first();if(en instanceof go.Node){var Kt=an.lastInput;if(Kt.key==="Right"){if(!en.isTreeLeaf)if(!en.isTreeExpanded)an.commandHandler.canExpandTree(en)&&an.commandHandler.expandTree(en);else{var Pt=this._sortTreeChildrenByY(en).first();Pt!==null&&an.select(Pt)}}else if(Kt.key==="Left")if(!en.isTreeLeaf&&en.isTreeExpanded)an.commandHandler.canCollapseTree(en)&&an.commandHandler.collapseTree(en);else{var Sn=en.findTreeParentNode();Sn!==null&&an.select(Sn)}else if(Kt.key==="Up"){var Sn=en.findTreeParentNode();if(Sn!==null){var bn=this._sortTreeChildrenByY(Sn),zt=bn.indexOf(en);if(zt>0){for(var gt=bn.elt(zt-1);gt!==null&>.isTreeExpanded&&!gt.isTreeLeaf;){var xn=this._sortTreeChildrenByY(gt);gt=xn.last()}gt!==null&&an.select(gt)}else an.select(Sn)}}else if(Kt.key==="Down")if(en.isTreeExpanded&&!en.isTreeLeaf){var Pt=this._sortTreeChildrenByY(en).first();Pt!==null&&an.select(Pt)}else for(;en!==null;){var Sn=en.findTreeParentNode();if(Sn===null)break;var bn=this._sortTreeChildrenByY(Sn),zt=bn.indexOf(en);if(zt<bn.length-1){an.select(bn.elt(zt+1));break}else en=Sn}var Ln=an.selection.first();Ln!==null&&an.scrollToRect(Ln.actualBounds)}},Un.prototype._sortTreeChildrenByY=function(an){var en=new go.List().addAll(an.findTreeChildrenNodes());return en.sort(function(Kt,Pt){var Sn=Kt.location,bn=Pt.location;return Sn.y<bn.y?-1:Sn.y>bn.y?1:Sn.x<bn.x?-1:Sn.x>bn.x?1:0}),en},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 Kn=Un,ti=he(37404),Fn=he(43604),Zt=he(70635),Xt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},mt=he(59301),tt=(an,en,Kt)=>new Promise((Pt,Sn)=>{var bn=xn=>{try{gt(Kt.next(xn))}catch(Ln){Sn(Ln)}},zt=xn=>{try{gt(Kt.throw(xn))}catch(Ln){Sn(Ln)}},gt=xn=>xn.done?Pt(xn.value):Promise.resolve(xn.value).then(bn,zt);gt((Kt=Kt.apply(an,en)).next())});function Wt({onCancel:an,callback:en}){let Kt=(0,ge.useRef)(),Pt=(0,ge.useRef)(),Sn=(0,ge.useRef)(),bn=(0,ge.useRef)(!1);const zt=(0,ge.useRef)(!1),[gt,xn]=(0,ge.useState)(0);function Ln(){const Mn=Ft.bx.make,It={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"};Kt.current=new Ft.S0(Pt.current,{padding:20,grid:Mn(Ft.s_,"Grid",Mn(Ft.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Mn(Ft.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:qt=>{var Li=qt.diagram.commandHandler.addTopLevelParts(qt.diagram.selection,!0);Li||qt.diagram.currentTool.doCancel()},commandHandler:Mn(Kn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:qt=>{var Li=qt.subject;Li.location=Li.location.copy().snapToGridPoint(qt.diagram.grid.gridOrigin,qt.diagram.grid.gridCellSize),setTimeout(()=>{qt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:qt=>{var Li=qt.subject;setTimeout(()=>{qt.diagram.commandHandler.editTextBlock()})},LinkRelinked:qt=>{var Li=qt.parameter.part;Li.invalidateConnectedLinks();var Ji=qt.subject;qt.diagram.toolManager.linkingTool.isForwards?Ji.toNode.invalidateConnectedLinks():Ji.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Kt.current.nodeTemplate=Mn(Ft.NB,"Auto",{locationSpot:Ft.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ft.$u(120,60),minSize:new Ft.$u(40,40),resizable:!0,resizeCellSize:new Ft.$u(10,10),rotatable:!0},new Ft.KX("location","loc",Ft.E9.parse).makeTwoWay(Ft.E9.stringify),new Ft.KX("desiredSize","size",Ft.$u.parse).makeTwoWay(Ft.$u.stringify),Mn(Ft.bn,{name:"SHAPE",fill:It.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ft.z6.AllSides,toSpot:Ft.z6.AllSides},new Ft.KX("figure"),new Ft.KX("fill"),new Ft.KX("stroke","borderColor"),new Ft.KX("strokeWidth","thickness"),new Ft.KX("strokeDashArray","dash")),Mn(Ft.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Mn(Ft.al,{margin:1,textAlign:"center",overflow:Ft.al.OverflowEllipsis,editable:!0},new Ft.KX("text").makeTwoWay(),new Ft.KX("stroke","color"))),Kt.current.nodeTemplate.toolTip=Mn("ToolTip",Mn(Ft.s_,"Vertical",{maxSize:new Ft.$u(200,NaN)},Mn(Ft.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ft.KX("text")),Mn(Ft.al,{font:"10pt sans-serif",textAlign:"center"},new Ft.KX("text","details"))));function gn(qt,Li){var Ji=(Ti,bi)=>{Ti.handled=!0,Ti.diagram.model.commit(sr=>{var Nr=bi.part.adornedPart,cr=new Ft.E9().setRectSpot(Nr.actualBounds,qt);cr.subtract(Nr.location),cr.scale(2,2),cr.x+=Math.sign(cr.x)*130,cr.y+=Math.sign(cr.y)*130,cr.add(Nr.location),cr.snapToGridPoint(Ti.diagram.grid.gridOrigin,Ti.diagram.grid.gridCellSize);var Zi=sr.copyNodeData(Nr.data);sr.setGroupKeyForNodeData(Zi,sr.getGroupKeyForNodeData(Nr.data)),sr.addNodeData(Zi);var Jr={from:Nr.key,to:sr.getKeyForNodeData(Zi)};sr.addLinkData(Jr);var On=Ti.diagram.findNodeForData(Zi);On.location=cr,Ti.diagram.select(On),setTimeout(()=>{Ti.diagram.commandHandler.editTextBlock()},20)})};return Mn(Ft.bn,{figure:Li,alignment:qt,alignmentFocus:qt.opposite(),width:qt.equals(Ft.z6.Top)||qt.equals(Ft.z6.Bottom)?25:18,height:qt.equals(Ft.z6.Top)||qt.equals(Ft.z6.Bottom)?18:25,fill:"orange",stroke:It.white,strokeWidth:4,mouseEnter:(Ti,bi)=>bi.fill="dodgerblue",mouseLeave:(Ti,bi)=>bi.fill="orange",isActionable:!0,click:Ji,contextClick:Ji})}function nn(qt){return Mn(Ft.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:(Li,Ji)=>Ji.fill="dodgerblue",mouseLeave:(Li,Ji)=>Ji.fill="orange",click:(Li,Ji)=>{Li.diagram.commandHandler.showContextMenu(Ji.part.adornedPart)}},qt||{})}Kt.current.nodeTemplate.selectionAdornmentTemplate=Mn(Ft.uz,"Spot",Mn(Ft.Vm,{padding:10}),gn(Ft.z6.Top,"TriangleUp"),gn(Ft.z6.Left,"TriangleLeft"),gn(Ft.z6.Right,"TriangleRight"),gn(Ft.z6.Bottom,"TriangleDown"),nn({alignment:new Ft.z6(.75,0)}));function ui(qt,Li){return(Ji,Ti)=>{Ji.handled=!0,Ji.diagram.model.commit(bi=>{bi.set(Ti.part.adornedPart.data,qt,Li)})}}function Qt(qt,Li){return Li||(Li="color"),Mn(Ft.bn,{width:16,height:16,stroke:"lightgray",fill:qt,margin:1,background:"transparent",mouseEnter:(Ji,Ti)=>Ti.stroke="dodgerblue",mouseLeave:(Ji,Ti)=>Ti.stroke="lightgray",click:ui(Li,qt),contextClick:ui(Li,qt)})}function Cn(){return[Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",Qt(It.white,"fill"),Qt(It.beige,"fill"),Qt(It.extralightblue,"fill"),Qt(It.extralightred,"fill"))),Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",Qt(It.lightgray,"fill"),Qt(It.lightgreen,"fill"),Qt(It.lightblue,"fill"),Qt(It.lightred,"fill")))]}function $t(){return[Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",Qt(It.black),Qt(It.green),Qt(It.blue),Qt(It.red))),Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",Qt(It.white),Qt(It.magenta),Qt(It.purple),Qt(It.orange)))]}function vn(qt,Li){return Li||(Li="thickness"),Mn(Ft.bn,"LineH",{width:16,height:16,strokeWidth:qt,margin:1,background:"transparent",mouseEnter:(Ji,Ti)=>Ti.background="dodgerblue",mouseLeave:(Ji,Ti)=>Ti.background="transparent",click:ui(Li,qt),contextClick:ui(Li,qt)})}function En(qt,Li){return Li||(Li="dash"),Mn(Ft.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:qt,margin:1,background:"transparent",mouseEnter:(Ji,Ti)=>Ti.background="dodgerblue",mouseLeave:(Ji,Ti)=>Ti.background="transparent",click:ui(Li,qt),contextClick:ui(Li,qt)})}function Pn(){return[Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",vn(1),vn(2),vn(3),vn(4))),Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",En(null),En([2,4]),En([4,4])))]}function Rn(qt,Li){return Li||(Li="figure"),Mn(Ft.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:qt,margin:1,background:"transparent",mouseEnter:(Ji,Ti)=>Ti.fill="dodgerblue",mouseLeave:(Ji,Ti)=>Ti.fill="lightgray",click:ui(Li,qt),contextClick:ui(Li,qt)})}Kt.current.nodeTemplate.contextMenu=Mn("ContextMenu",Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",Rn("Rectangle"),Rn("RoundedRectangle"),Rn("Ellipse"),Rn("Diamond"))),Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",Rn("Parallelogram2"),Rn("ManualOperation"),Rn("Procedure"),Rn("Cylinder1"))),Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",Rn("Terminator"),Rn("CreateRequest"),Rn("Document"),Rn("TriangleDown"))),Cn(),$t(),Pn()),Kt.current.groupTemplate=Mn(Ft.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ft.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(qt,Li)=>{var Ji=Li.addMembers(Li.diagram.selection,!0);Ji||Li.diagram.currentTool.doCancel()},avoidable:!1},new Ft.KX("location","loc",Ft.E9.parse).makeTwoWay(Ft.E9.stringify),Mn(Ft.s_,"Auto",{name:"BODY"},Mn(Ft.bn,{parameter1:10,fill:It.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ft.z6.AllSides,toSpot:Ft.z6.AllSides},new Ft.KX("fill"),new Ft.KX("stroke","color"),new Ft.KX("strokeWidth","thickness"),new Ft.KX("strokeDashArray","dash")),Mn(Ft.Vm,{background:"transparent",margin:20})),Mn(Ft.al,{alignment:Ft.z6.Top,alignmentFocus:Ft.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ft.KX("text"),new Ft.KX("stroke","color"))),Kt.current.groupTemplate.selectionAdornmentTemplate=Mn(Ft.uz,"Spot",Mn(Ft.s_,"Auto",Mn(Ft.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Mn(Ft.Vm,{margin:1.5})),nn({alignment:Ft.z6.TopRight,alignmentFocus:Ft.z6.BottomRight})),Kt.current.groupTemplate.contextMenu=Mn("ContextMenu",Cn(),$t(),Pn()),Kt.current.linkTemplate=Mn(Ft.rU,{layerName:"Foreground",routing:Ft.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ft.KX("fromSpot","fromSpot",Ft.z6.parse),new Ft.KX("toSpot","toSpot",Ft.z6.parse),new Ft.KX("fromShortLength","dir",qt=>qt>=1?10:0),new Ft.KX("toShortLength","dir",qt=>qt>=1?10:0),new Ft.KX("points").makeTwoWay(),Mn(Ft.bn,{strokeWidth:2},new Ft.KX("stroke","color"),new Ft.KX("strokeWidth","thickness"),new Ft.KX("strokeDashArray","dash")),Mn(Ft.bn,{segmentIndex:0,segmentOffset:new Ft.E9(15,0),segmentOrientation:Ft.rU.OrientAlong,alignmentFocus:Ft.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ft.KX("fill","color"),new Ft.KX("visible","dir",qt=>qt===1)),Mn(Ft.bn,{segmentIndex:-1,segmentOffset:new Ft.E9(-10,6),segmentOrientation:Ft.rU.OrientPlus90,alignmentFocus:Ft.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ft.KX("fill","color"),new Ft.KX("visible","dir",qt=>qt>=1),new Ft.KX("width","thickness",qt=>7+3*qt),new Ft.KX("height","thickness",qt=>7+3*qt),new Ft.KX("segmentOffset","thickness",qt=>new Ft.E9(-15,4+1.5*qt))),Mn(Ft.bn,{segmentIndex:0,segmentOffset:new Ft.E9(15,-6),segmentOrientation:Ft.rU.OrientMinus90,alignmentFocus:Ft.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ft.KX("fill","color"),new Ft.KX("visible","dir",qt=>qt===2),new Ft.KX("width","thickness",qt=>7+3*qt),new Ft.KX("height","thickness",qt=>7+3*qt),new Ft.KX("segmentOffset","thickness",qt=>new Ft.E9(-15,4+1.5*qt))),Mn(Ft.al,{alignmentFocus:new Ft.z6(0,1,-4,0),editable:!0},new Ft.KX("text").makeTwoWay(),new Ft.KX("stroke","color"))),Kt.current.linkTemplate.selectionAdornmentTemplate=Mn(Ft.uz,Mn(Ft.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Yn(2)},new Ft.KX("pathPattern","thickness",Yn)),nn({alignmentFocus:new Ft.z6(0,0,-6,-4)}));function Yn(qt){return Mn(Ft.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(qt+4).toString()+" H3"})}function Zn(qt){var Li="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return qt===0?Li="M0 0 M16 16 M0 8 L16 8":qt===2&&(Li="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Mn(Ft.bn,{geometryString:Li,margin:2,background:"transparent",mouseEnter:(Ji,Ti)=>Ti.background="dodgerblue",mouseLeave:(Ji,Ti)=>Ti.background="transparent",click:ui("dir",qt),contextClick:ui("dir",qt)})}function ri(qt){var Li=(Ji,Ti)=>{Ji.handled=!0,Ji.diagram.model.commit(bi=>{var sr=Ti.part.adornedPart;bi.set(sr.data,qt?"toSpot":"fromSpot",Ft.z6.stringify(Ft.z6.AllSides)),(qt?sr.toNode:sr.fromNode).invalidateConnectedLinks()})};return Mn(Ft.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ji,Ti)=>Ti.background="dodgerblue",mouseLeave:(Ji,Ti)=>Ti.background="transparent",click:Li,contextClick:Li})}function Gn(qt,Li){var Ji=0,Ti=Ft.z6.RightSide;qt.equals(Ft.z6.Top)?(Ji=270,Ti=Ft.z6.TopSide):qt.equals(Ft.z6.Left)?(Ji=180,Ti=Ft.z6.LeftSide):qt.equals(Ft.z6.Bottom)&&(Ji=90,Ti=Ft.z6.BottomSide),Li||(Ji-=180);var bi=(sr,Nr)=>{sr.handled=!0,sr.diagram.model.commit(cr=>{var Zi=Nr.part.adornedPart;cr.set(Zi.data,Li?"toSpot":"fromSpot",Ft.z6.stringify(Ti)),(Li?Zi.toNode:Zi.fromNode).invalidateConnectedLinks()})};return Mn(Ft.bn,{alignment:qt,alignmentFocus:qt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ji,background:"transparent",mouseEnter:(sr,Nr)=>Nr.background="dodgerblue",mouseLeave:(sr,Nr)=>Nr.background="transparent",click:bi,contextClick:bi})}Kt.current.linkTemplate.contextMenu=Mn("ContextMenu",$t(),Pn(),Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",Zn(0),Zn(1),Zn(2))),Mn("ContextMenuButton",Mn(Ft.s_,"Horizontal",Mn(Ft.s_,"Spot",ri(!1),Gn(Ft.z6.Top,!1),Gn(Ft.z6.Left,!1),Gn(Ft.z6.Right,!1),Gn(Ft.z6.Bottom,!1)),Mn(Ft.s_,"Spot",{margin:new Ft.Zt(0,0,0,2)},ri(!0),Gn(Ft.z6.Top,!0),Gn(Ft.z6.Left,!0),Gn(Ft.z6.Right,!0),Gn(Ft.z6.Bottom,!0)))));const di=`{ "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 rr=["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 Dr(qt){return console.log("shapeName:",qt),rr.indexOf(qt)>=0}var ar=new Ft.YI(Sn.current,{maxSelectionCount:1,linkTemplate:Mn(Ft.rU,{locationSpot:Ft.z6.Center,selectionAdornmentTemplate:Mn(Ft.uz,"Link",{locationSpot:Ft.z6.Center},Mn(Ft.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Mn(Ft.bn,{toArrow:"Standard",stroke:null}))},{routing:Ft.rU.AvoidsNodes,curve:Ft.rU.JumpOver,corner:5,toShortLength:4},new Ft.KX("points"),Mn(Ft.bn,{isPanelMain:!0,strokeWidth:2}),Mn(Ft.bn,{toArrow:"Standard",stroke:null})),model:new Ft.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ft.bn.getFigureGenerators().toArray().map(qt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:qt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Kt.current.addDiagramListener("TextEdited",function(qt){var Li;const Ji=qt.subject.part;var Ti=(Li=document.activeElement)==null?void 0:Li.value;typeof Ti=="string"&&Ti.trim()===""&&Kt.current.model.commit(function(bi){bi.set(Ji.data,"text","\u672A\u547D\u540D"),Kt.current.commandHandler.stopCommand()},"increment")}),ar.nodeTemplate=Mn(Ft.NB,"Auto",{locationSpot:Ft.z6.Center},new Ft.KX("location","location",Ft.E9.parse).makeTwoWay(Ft.E9.stringify),Mn(Ft.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 Ft.KX("stroke").makeTwoWay(),new Ft.KX("fill").makeTwoWay(),new Ft.KX("figure")),Mn(Ft.al,{margin:new Ft.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ft.$u(16,16),maxSize:new Ft.$u(10,NaN),textAlign:"center",editable:!0},new Ft.KX("key").makeTwoWay())),setTimeout(()=>{Kt.current.grid=Mn(Ft.s_,"Grid",Mn(Ft.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Mn(Ft.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Kt.current.grid.visible=!0,Kt.current.grid.gridCellStroke="darkgray",Kt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Kt.current,Kt.current}const pi=()=>tt(this,null,function*(){var Mn=Kt.current.makeImage();const It=yield(0,Zt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Mn.src}});en({src:It.url})});return(0,ge.useEffect)(()=>(setTimeout(()=>{Ln()},500),xn(gt+1),()=>{Kt.current=null}),[]),mt.createElement("div",{ref:zt,className:bn.current?`${Xt.maxH60} body-overflow-initial`:"body-overflow-initial"},mt.createElement(Nt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!gt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:mt.createElement(sn.Z,null,mt.createElement(Fn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),mt.createElement(Fn.Z,{onClick:()=>{var Mn,It,gn=Kt.current.selection.first();if(bn.current=!bn.current,document.activeElement&&gn){let nn=(It=(Mn=document.activeElement)==null?void 0:Mn.value)==null?void 0:It.trim();typeof nn=="string"&&Kt.current.model.commit(function(ui){ui.set(gn.data,"text",nn||"\u672A\u547D\u540D"),Kt.current.commandHandler.stopCommand()},"increment")}xn(gt+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:Xt.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:Xt.myPaletteDiv,ref:Sn})),mt.createElement("div",{style:{flex:1,position:"relative"}},mt.createElement("div",{ref:Pt,style:{height:"80vh"}}))),mt.createElement("div",{className:"tr"},mt.createElement(We.ZP,{size:"large",onClick:pi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Lt=Wt,pt=he(5112),nt=he(88897);const Oe=pt.ZP.Group,we={margin:"0 8px"};var ye=({callback:an,onCancel:en})=>{function Kt(Pt){an(Pt)}return ge.createElement(je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Kt},ge.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ge.createElement("span",{style:we},"\u5355\u5143\u683C\u6570\uFF1A"),ge.createElement("span",{style:we},"\u884C\u6570"),ge.createElement(je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ge.createElement(nt.Z,null)),ge.createElement("span",{style:we},"\u5217\u6570"),ge.createElement(je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ge.createElement(nt.Z,null))),ge.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ge.createElement("span",{style:we},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ge.createElement(je.default.Item,{name:"align"},ge.createElement(Oe,null,ge.createElement(pt.ZP,{value:"default"},ge.createElement("i",{className:"fa fa-align-justify"})),ge.createElement(pt.ZP,{value:"left"},ge.createElement("i",{className:"fa fa-align-left"})),ge.createElement(pt.ZP,{value:"center"},ge.createElement("i",{className:"fa fa-align-center"})),ge.createElement(pt.ZP,{value:"right"},ge.createElement("i",{className:"fa fa-align-right"}))))),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(We.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},ke=he(78673),Ve=he(98598),Be=he.n(Ve),on=(0,ge.forwardRef)(({use3d:an,width:en,height:Kt,callback:Pt,showSaveButton:Sn},bn)=>{const zt=(0,ge.useRef)(),gt=(0,ge.useRef)(),[xn,Ln]=(0,ge.useState)(!1),pi=(0,ge.useRef)({id:zt,appName:"graphing",width:en||1e3,height:Kt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ge.useEffect)(()=>{gt.current=new(Be())(pi.current,!0),window.onload=function(){gt.current.inject("applet_container")}},[]);const Mn=()=>{var It=window.ggbApplet.getPNGBase64(1,!0,72);return Pt&&Pt(It),It};return(0,ge.useEffect)(()=>{pi.current.appName=xn?"3D":"graphing",gt.current.inject("applet_container")},[xn]),(0,ge.useEffect)(()=>{Ln(an)},[an]),(0,ge.useImperativeHandle)(bn,()=>({getImgData:Mn})),ge.createElement(ge.Fragment,null,ge.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:zt}),ge.createElement(sn.Z,{align:"middle"},ge.createElement(Fn.Z,{flex:1},ge.createElement(ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:xn,onChange:It=>Ln(It)})),ge.createElement(Fn.Z,null,ge.createElement(We.ZP,{size:"large",onClick:Mn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),mn=he(75890),Et=he(8591);const Ot="link",yn="upload-image",Tn="add-flowchart",qn="draw-image",vi="add-flowchart",gi="code-block",wi="add-table",_n="------------",yr={default:_n,left:`:${_n}`,center:`:${_n}:`,right:`${_n}:`};var ir=he(91300);function fr(){}let xr=0;const jr=1e4,Ki="\u2581",Ir="@\u2581\u2581@",Vi="@\u2581@",Me=`
|
|
|
**\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`,Ai=["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 Xi(an){return/^\d+$/.test(an)?`${an}px`:an}const tr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",uo={[tr+"-B"]:"bold",[tr+"-I"]:"italic"},qr={[Ot]:"\u6DFB\u52A0\u94FE\u63A5",[gi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[yn]:"\u6DFB\u52A0\u56FE\u7247",[qn]:"\u6DFB\u52A0\u753B\u56FE",[Tn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[wi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ni=({defaultValue:an="",onChange:en,width:Kt="100%",height:Pt=400,miniToolbar:Sn=!1,isFocus:bn=!1,watch:zt,insertTemp:gt,mode:xn="markdown",id:Ln="markdown-editor-id",showResizeBar:pi=!1,noStorage:Mn=!1,showNullButton:It=!1,showNullProgramButton:gn=!1,hidetoolBar:nn=!1,fullScreen:ui=!1,onBlur:Qt,onCMBeforeChange:Cn,onFullScreen:$t,className:vn="",disablePaste:En=!1,disabled:Pn=!1,disabledFill:Rn=!1,placeholder:Yn="",values:Zn="",extraUse:ri})=>{const[Gn,di]=(0,ge.useState)(null),[rr,Dr]=(0,ge.useState)(an),[ar,qt]=(0,ge.useState)(zt),[Li,Ji]=(0,ge.useState)(ui),[Ti,bi]=(0,ge.useState)(""),[sr,Nr]=(0,ge.useState)(0),[cr,Zi]=(0,ge.useState)(Pt),[Jr,On]=(0,ge.useState)(!1),[Ho,Dn]=(0,ge.useState)(0),[Rr,ca]=(0,ge.useState)(0),fo=(0,ge.useRef)(),Ha=(0,ge.useRef)(),oa=(0,ge.useRef)(),xt=(0,ge.useRef)();(0,ge.useEffect)(()=>{const lr=window.scrollY||window.pageYOffset;Dr(Zn),Gn==null||Gn.setValue(Zn),window.scrollTo(0,lr)},[Zn]),(0,ge.useEffect)(()=>{$t==null||$t(Li)},[Li]),(0,ge.useEffect)(()=>{if(fo.current){let lr=function(Br,oi){var Ro;if(En){oi.preventDefault();return}const Xo=oi.clipboardData;if(Xo){const ya=Xo.types.toString(),na=Xo.items;if(ya==="Files"||Xo.types.indexOf("Files")>-1){if(oi.preventDefault(),xn=="stex")return;try{let Fa=na[1];((Ro=na[0])==null?void 0:Ro.kind)==="file"&&(Fa=na[0]);const Sa=Fa.getAsFile(),Pa=Sa.name.split(".").pop();(0,Ct.I)(Sa,is=>{var Co,ps,An;is.id?((Co=Sa==null?void 0:Sa.type)==null?void 0:Co.indexOf("image"))>-1?$i.replaceSelection(``):((ps=Sa==null?void 0:Sa.type)==null?void 0:ps.indexOf("video"))>-1?$i.replaceSelection(`<video width="100%" controls src="/api/attachments/${is.id}"></video>`):((An=Sa==null?void 0:Sa.type)==null?void 0:An.indexOf("pdf"))>-1?$i.replaceSelection(`<a href="/api/attachments/${is.id}?type=${Sa.type}&disposition=inline" target="_blank">${Sa.name}</a>`):Ai.includes(Pa)?$i.replaceSelection(`<a href="/api/attachments/${is.id}?type=office&disposition=inline" target="_blank">${Sa.name}</a>`):$i.replaceSelection(`[${Sa.name}](/api/attachments/${is.id}?type=${is.content_type})`):(is==null?void 0:is.status)===401&&(document.location.href="/user/login")})}catch(Fa){Et.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const $i=Ke().fromTextArea(fo.current,{mode:xn,lineNumbers:!Sn,lineWrapping:!0,value:an,autoCloseTags:!0,autoCloseBrackets:!0});return $i.on("keyup",function(Br,oi){oi.keyCode===8&&(Br.getValue()==""?$i.setOption("placeholder",Yn):$i.setOption("placeholder",null))}),$i.on("keydown",function(Br,oi){if(oi.keyCode===8){var Ro=Hn(Br);Ro&&oi.preventDefault()}}),bn&&$i.focus(),$i.on("paste",lr),Pn&&$i.on("beforeChange",function(Br,oi){(oi.origin==="paste"||oi.origin==="+input")&&oi.cancel()}),di($i),()=>{$i.off("paste",lr)}}},[]);const kn=(0,ge.useCallback)(()=>{if(Ha.current)try{}catch(lr){console.log(lr,"---- to set md editor body height")}},[cr,Ha,Li]);(0,ge.useEffect)(()=>{function lr(){let $i=new ot.Z(Br=>{for(let oi of Br)(oi.target.offsetHeight>0||oi.target.offsetWidth>0)&&(kn(),Gn.setSize("100%","100%"),Gn.refresh())});return $i.observe(fo.current.parentElement),$i}if(Gn){const $i=lr();return()=>{var Br,oi;(Br=fo.current)!=null&&Br.parentElement&&$i.unobserve((oi=fo.current)==null?void 0:oi.parentElement)}}},[Gn,kn]),(0,ge.useEffect)(()=>{if(Gn){let lr=[];for(const[$i,Br]of Object.entries(uo)){let oi={[$i]:()=>{Ei(Br)}};lr.push(oi),Gn.addKeyMap(oi)}return()=>{for(let $i of lr)Gn.removeKeyMap($i)}}},[Gn]),(0,ge.useEffect)(()=>{ui!==Li&&Ji(ui)},[ui]),(0,ir.Z)(()=>{if(!Mn&&sr>0){let lr=new Date().getTime(),$i=window.sessionStorage.getItem(Ln);lr>=sr+jr&&(!$i||$i!==rr)&&(window.sessionStorage.setItem(Ln,rr),On(!0))}},jr),(0,ge.useEffect)(()=>{qt(zt)},[Gn,zt]),(0,ge.useEffect)(()=>{Gn&&bn&&Gn.focus()},[Gn,bn]),(0,ge.useEffect)(()=>{if(ar&&Gn){let lr=function(Br){let oi=Br.target;if(xt.current){let Ro=oi.scrollTop/oi.scrollHeight;xt.current.scrollTop=xt.current.scrollHeight*Ro}};const $i=Gn.getScrollerElement();return $i.addEventListener("scroll",lr),()=>{$i.removeEventListener("scroll",lr)}}},[Gn,ar]),(0,ge.useEffect)(()=>{if(Gn&&Cn){let lr=function($i,Br){Cn($i,Br)};return Gn.on("beforeChange",lr),()=>{Gn.off("beforeChange",lr)}}},[Gn,Cn]),(0,ge.useEffect)(()=>{if(Gn&&Qt){let lr=function(){Qt(Gn.getValue())};return Gn.on("blur",lr),()=>{Gn.off("blur",lr)}}},[Gn,Qt]);function Hn(lr,$i){var Br=lr.getDoc(),oi=Br.getCursor(),Ro=Br.getLine(oi.line),Xo=Ro.charAt(oi.ch-1),ya=Ro.lastIndexOf("@\u2581@",oi.ch),na=Ro.lastIndexOf("@\u2581\u2581@",oi.ch),Fa=ya>na?ya:na,Sa=ya>na?3:4;if(Ir.indexOf(Xo)===-1)return null;if(console.log("change1:",$i,lr,Ro,oi,Fa,ya,na,Xo),Fa>=0&&oi.ch-Fa<5){var Pa=Fa+Sa;return Br.replaceRange("",{line:oi.line,ch:Fa},{line:oi.line,ch:Pa}),{line:oi.line,ch:Pa}}return null}(0,ge.useEffect)(()=>{if(Gn){let lr=function($i,Br){const oi=$i.getValue();Dr(oi),Nr(new Date().getTime()),$i.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&(gn?en(oi,Er(oi)):en(oi))};return Gn.on("change",lr),()=>{Gn.off("change",lr)}}},[Gn,en]),(0,ge.useEffect)(()=>{if(Gn)if(an==null)Gn.setValue(""),Dr("");else{const lr=window.scrollY||window.pageYOffset;an!==Gn.getValue()&&(Gn.setValue(an),Dr(an),Gn.setCursor(Pn?1:Gn.lineCount(),0),window.scrollTo(0,lr))}},[Gn,an]);const Ei=(0,ge.useCallback)(lr=>{const $i=Gn.getCursor(),Br=Gn.getSelection();let oi=Br.split(`
|
|
|
`);switch(lr){case"bold":return Gn.replaceSelection("**"+Br+"**"),Br===""&&Gn.setCursor($i.line,$i.ch+2),Gn.focus();case"italic":return Gn.replaceSelection("*"+Br+"*"),Br===""&&Gn.setCursor($i.line,$i.ch+1),Gn.focus();case"code":return Gn.replaceSelection("`"+Br+"`"),Br===""&&Gn.setCursor($i.line,$i.ch+1),Gn.focus();case"inline-latex":return bi("inline-latex"),Gn.focus();case"latex":return Gn.replaceSelection("```latex\n"+Br+"\n```"),Gn.setCursor($i.line+1,Br.length+1),Gn.focus();case"line-break":return Gn.replaceSelection(`<br/>
|
|
|
`),Gn.focus();case"list-ul":return Br===""?Gn.replaceSelection("- "+Br):Gn.replaceSelection(oi.map(Ro=>Ro===""?"":`- ${Ro}`).join(`
|
|
|
`)),Gn.focus();case"list-ol":return Br===""?Gn.replaceSelection("1. "+Br):Gn.replaceSelection(oi.map((Ro,Xo)=>Ro===""?"":`${Xo+1}. ${Ro}`).join(`
|
|
|
`)),Gn.focus();case"add-null-ch":return Br===""&&Gn.setCursor($i.line,$i.ch),Gn.replaceSelection(Ki),Gn.focus();case"add-signal":return Br===""&&Gn.setCursor($i.line,$i.ch),Gn.replaceSelection(Vi),Gn.focus();case"add-multiple":return Br===""&&Gn.setCursor($i.line,$i.ch),Gn.replaceSelection(Ir),Gn.focus();case"inster-template-1":return Br===""&&Gn.setCursor($i.line,$i.ch),Gn.replaceSelection(Me),Gn.focus();case"eraser":return Gn.setValue(""),Gn.focus();case"trigger-watch":return qt(!ar),Gn.focus();case"trigger-full-screen":return Ji(!Li),Gn.focus();case Ot:bi(Ot);return;case gi:bi(gi);return;case yn:bi(yn);return;case qn:bi(qn);return;case"maths-latex":bi("maths-latex");return;case Tn:bi(Tn);return;case wi:bi(wi);return;default:throw new Error}},[Gn,ar,Li]),Si=(0,ge.useCallback)((lr,$i)=>{var Br,oi,Ro,Xo,ya,na;switch(bi(""),Ti){case Ot:const{title:Co,link:ps}=lr;return Gn.replaceSelection(`[${Co}](${ps})`),Gn.focus();case gi:const{language:An,content:Yo}=lr;return Gn.replaceSelection(["```"+An,Yo,"```"].join(`
|
|
|
`)),Gn.focus();case"maths-latex":for(var Fa=atob(lr),Sa=new Uint8Array(Fa.length),Pa=0;Pa<Fa.length;Pa++)Sa[Pa]=Fa.charCodeAt(Pa);var is=new Blob([Sa],{type:"image/png"});(0,Ct.I)(is,Qa=>{Qa.id?Gn.replaceSelection(``):(Qa==null?void 0:Qa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Gn.replaceSelection("`$$"+lr+"$$`");break;case yn:case qn:case vi:const{src:Qs,alt:yl}=lr,Kr=$i,Ao=(Ro=(oi=(Br=Kr==null?void 0:Kr.name)==null?void 0:Br.split("."))==null?void 0:oi.pop)==null?void 0:Ro.call(oi);return((Xo=Kr==null?void 0:Kr.type)==null?void 0:Xo.indexOf("image"))>-1||!(Kr!=null&&Kr.type)?yl?Gn.replaceSelection(``):Gn.replaceSelection(``):((ya=Kr==null?void 0:Kr.type)==null?void 0:ya.indexOf("video"))>-1?Gn.replaceSelection(`<video width="100%" controls src="${Qs}"></video>`):((na=Kr==null?void 0:Kr.type)==null?void 0:na.indexOf("pdf"))>-1?Gn.replaceSelection(`<a href="${Qs}?type=${Kr.type}&disposition=inline" target="_blank">${Kr.name}</a>`):Ai.includes(Ao)?Gn.replaceSelection(`<a href="${Qs}?type=office&disposition=inline" target="_blank">${Kr.name}</a>`):Gn.replaceSelection(`[${Kr.name}](${Qs})`),Gn.focus();case wi:const{row:Ka,col:da,align:vo}=lr;let Qo=`
|
|
|
`;for(let Qa=0;Qa<Ka;Qa++){let to=[],Do=[];for(let Bo=0;Bo<da;Bo++)Qa===1&&Do.push(yr[vo]),to.push(" ");Qa===1&&(Qo+=`| ${Do.join(" | ")} |
|
|
|
`),Qo+=`| ${to.join(da===1?"":" | ")} |
|
|
|
`}return Gn.replaceSelection(Qo+`
|
|
|
`),Gn.focus();default:throw new Error}},[Gn,Ti]),$e=(0,ge.useMemo)(()=>{switch(Ti){case Ot:return ge.createElement(Yt,{callback:Si,onCancel:Fi});case gi:return ge.createElement(Vt.Z,{callback:Si,onCancel:Fi});case yn:return ge.createElement(Ct.Z,{callback:Si,onCancel:Fi});case Tn:return ge.createElement(Lt,{callback:Si,onCancel:Fi});case wi:return ge.createElement(ye,{callback:Si,onCancel:Fi});case"maths-latex":return ge.createElement(on,{showSaveButton:!0,callback:Si});case"inline-latex":return ge.createElement(mn.Z,{showSaveButton:!0,callback:Si});default:return null}},[Ti]);function Fi(){bi("")}(0,ge.useEffect)(()=>{if(oa.current){let lr=function(ya){Ro=!0,Xo=ya.pageY},$i=function(){Ro=!1},Br=function(ya){if(Ro){let na=ya.pageY-Xo;na<0&&(na=0),na>300&&(na=300);let Fa=Pt+na+"px";Zi(Fa)}},oi=oa.current,Ro=!1,Xo=0;return oi.addEventListener("mousedown",lr),document.addEventListener("mousemove",Br),document.addEventListener("mouseup",$i),()=>{oi.removeEventListener("mousedown",lr),document.removeEventListener("mousemove",Br),document.removeEventListener("mouseup",$i)}}},[Gn,oa]),(0,ge.useEffect)(()=>{Zi(Pt)},[Pt]);const eo=Xi(Kt),Qi=Xi(cr),Vr={width:eo,height:Qi},pr=(0,ge.useMemo)(()=>{if(sr){let lr=new Date(sr),$i=lr.getHours(),Br=lr.getMinutes(),oi=lr.getSeconds();return $i=$i<10?"0"+$i:$i,Br=Br<10?"0"+Br:Br,oi=oi<10?"0"+oi:oi,`${$i}:${Br}:${oi}`}return 0},[sr]),Er=lr=>{const $i=[];if(gn){let Br=-1;lr=lr.replace(/(@▁▁@|@▁@)/g,function(oi,Ro,Xo){$i.push({multiLine:oi!==Vi})})}return $i};function oo(){window.sessionStorage.removeItem(Ln),On(!1),Nr(0)}function bo(){On(!1),Nr(0),Gn.setValue(window.sessionStorage.getItem(Ln))}(0,ge.useEffect)(()=>{qr[Ti]&&Ti!==qn&&Ti!==Tn&&setTimeout(()=>{const lr=document.getElementsByClassName("markdown-popup-form")[0],$i=window.innerWidth/2-lr.offsetWidth/2,Br=window.innerHeight/2-lr.offsetHeight/2;Dn($i),ca(Br)},0)},[Ti]);const Ur=lr=>{lr.preventDefault();const $i=lr.clientX-Ho,Br=lr.clientY-Rr;document.body.onmousemove=oi=>{let Ro=oi.clientX-$i,Xo=oi.clientY-Br;const ya=document.getElementsByClassName("markdown-popup-form")[0],na=window.innerWidth-ya.offsetWidth,Fa=window.innerHeight-ya.offsetHeight;Ro=Math.max(0,Math.min(Ro,na)),Xo=Math.max(0,Math.min(Xo,Fa)),Io(oi.clientX,oi.clientY,$i,Br)&&(Dn(Ro),ca(Xo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Io=(lr,$i,Br,oi)=>{const Ro=document.body.clientHeight,Xo=document.body.clientWidth;return lr<20&&Br>lr||lr>Xo-20&&Br<lr||$i<20&&oi>$i||$i>Ro-20&&oi<$i?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ge.createElement(ge.Fragment,null,ge.createElement("div",{className:"markdown-editor-wrapper",ref:Ha},ge.createElement("div",{className:`markdown-editor-container ${vn} ${ar?"on-preview":""} ${Sn?"mini":""} ${Li?"full-screen":""}`,style:Vr},ge.createElement(Le,{insertTemp:gt,watch:ar,fullScreen:Li,showNullButton:It,showNullProgramButton:gn,onActionCallback:Ei,hidetoolBar:nn,extraUse:ri}),ge.createElement("div",{className:"markdown-editor-body"},ge.createElement("div",{className:"codemirror-container"},ge.createElement("textarea",{ref:fo,placeholder:Yn})),ar?ge.createElement("div",{ref:xt,className:"preview-container"},xn==="stex"&&ge.createElement(Je,{value:rr}),xn!=="stex"&&ge.createElement(et.Z,{disabledFill:Rn,showProgramFill:gn,value:rr})):null))),pi?ge.createElement("a",{ref:oa,className:"editor-resize"}):null,Ti===qn&&ge.createElement(Xn,{callback:Si,onCancel:Fi}),Ti===Tn&&ge.createElement(Lt,{callback:Si,onCancel:Fi}),ge.createElement(Re.Z,null,qr[Ti]&&Ti!==qn&&Ti!==Tn?ge.createElement(Nt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ho,top:Rr},title:ge.createElement("div",{style:{cursor:"move"},onMouseDown:Ur},qr[Ti]),open:!0,onCancel:Fi,footer:null,destroyOnClose:!0,width:Ti===Tn?"1200px":null,height:Ti===Tn?"80vh":null,className:"markdown-popup-form"},$e):null))}},56701:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ve},I:function(){return Ae}});var ge=he(78241),Ie=he(8591),Ke=he(92832),ot=he(3113),He=he(58788),it=he(59301),be=he(59301),yt=Object.defineProperty,ct=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Ee=(Pe,Ne,Le)=>Ne in Pe?yt(Pe,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Pe[Ne]=Le,ee=(Pe,Ne)=>{for(var Le in Ne||(Ne={}))Je.call(Ne,Le)&&Ee(Pe,Le,Ne[Le]);if(et)for(var Le of et(Ne))Ue.call(Ne,Le)&&Ee(Pe,Le,Ne[Le]);return Pe},te=(Pe,Ne)=>ct(Pe,Xe(Ne));const{useForm:ue}=ge.default,oe={width:280,marginRight:10},de={labelCol:{span:5},wrapperCol:{span:19}};var ve=({callback:Pe,onCancel:Ne})=>{const[Le]=ue();let Re=(0,it.useRef)();function je(bt){Pe(bt,Re.current)}function Ge(bt,Qe){if(bt.status===-1){Ie.ZP.error(bt.message);return}Le.setFieldsValue({src:`/api/attachments/${bt.id}`,type:Qe.type})}function We(bt){let Qe=bt.target.files[0];Re.current=Qe,Ae(Qe,Ge)}return be.createElement(ge.default,te(ee({form:Le},de),{className:"upload-image-panel",onFinish:je,style:{width:470,overflow:"hidden"}}),be.createElement(ge.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},be.createElement("div",{className:"flex-container"},be.createElement(ge.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},be.createElement(Ke.default,{style:oe})),be.createElement(xe,{onFileChange:We}))),be.createElement(ge.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},be.createElement(Ke.default,{style:{width:264}})),be.createElement(ge.default.Item,{style:{textAlign:"right"}},be.createElement(ot.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),be.createElement(ot.ZP,{type:"default",onClick:Ne},"\u53D6\u6D88")))};function xe({onFileChange:Pe}){return be.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",be.createElement("input",{type:"file",onChange:Pe}))}function Ae(Pe,Ne){if(!Pe)throw new String("\u6CA1\u6709\u6587\u4EF6");let Le=new FormData;Le.append("editormd-image-file",Pe),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var Re=new window.XMLHttpRequest;Re.withCredentials=!0,Re.addEventListener("load",function(je){Ne(JSON.parse(je.target.responseText),Pe)},!1),Re.addEventListener("error",function(je){console.error(je)},!1),Re.open("POST",`${He.KI}/api/attachments.json`),Re.send(Le)}},50474:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ke}});var ge=he(59301),Ie=he(4676);class Ke extends ge.Component{constructor(He){super(He);const it=window.document;this.node=it.createElement("div"),it.body.appendChild(this.node)}render(){const{children:He}=this.props;return(0,Ie.createPortal)(He,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(fn,jt,he){"use strict";he.d(jt,{SV:function(){return Wt},ZP:function(){return tt}});var ge=he(59301),Ie=he(76374);const Ke={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"]},ot={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"]},He={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),ct=he.n(yt),Xe=Object.defineProperty,et=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(Lt,pt,nt)=>pt in Lt?Xe(Lt,pt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Lt[pt]=nt,ue=(Lt,pt)=>{for(var nt in pt||(pt={}))Ee.call(pt,nt)&&te(Lt,nt,pt[nt]);if(Ue)for(var nt of Ue(pt))ee.call(pt,nt)&&te(Lt,nt,pt[nt]);return Lt},oe=(Lt,pt)=>et(Lt,Je(pt)),de=(Lt,pt,nt)=>new Promise((Oe,we)=>{var ye=Be=>{try{Ve(nt.next(Be))}catch(dt){we(dt)}},ke=Be=>{try{Ve(nt.throw(Be))}catch(dt){we(dt)}},Ve=Be=>Be.done?Oe(Be.value):Promise.resolve(Be.value).then(ye,ke);Ve((nt=nt.apply(Lt,pt)).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"]}},xe=(Lt,pt)=>pt.map(nt=>({label:nt,kind:Lt.languages.CompletionItemKind.Keyword,insertText:nt})),Ae=Lt=>Object.keys(ve.tables).map(pt=>({label:pt,kind:Lt.languages.CompletionItemKind.Variable,insertText:pt})),Pe=(Lt,pt)=>{const nt=ve.tables[Lt];return nt?nt.map(Oe=>({label:Oe,kind:pt.languages.CompletionItemKind.Field,insertText:Oe})):[]};function Ne(Lt,pt,nt,Oe,we){let ye=pt.getWordUntilPosition(nt),ke={startLineNumber:nt.lineNumber,endLineNumber:nt.lineNumber,startColumn:ye.startColumn,endColumn:ye.endColumn},Ve=Oe.map(Be=>({label:Be,kind:Lt.languages.CompletionItemKind.Keyword,insertText:Be,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ke}));return we.map(Be=>{Ve.push(oe(ue({},Be),{range:ke}))}),Ve}var Le=Lt=>{ve.languages.map(we=>(Lt.languages.registerDocumentFormattingEditProvider(we,{provideDocumentFormattingEdits(ye,ke,Ve){return de(this,null,function*(){const Be=ct()(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:Be}]})}}),we));const pt=He.quickKey.map(we=>({label:we.label,kind:Lt.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),nt=it.quickKey.map(we=>({label:we.label,kind:Lt.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Oe=ot.quickKey.map(we=>({label:we.label,kind:Lt.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Lt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ve={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Be=we.getLineContent(ye.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...He.keywords.map(dt=>({label:dt,kind:Lt.languages.CompletionItemKind.Function,documentation:dt,insertText:dt,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve})),...He.quickKey.map(dt=>({label:dt.label,kind:Lt.languages.CompletionItemKind.Function,documentation:dt.content,insertText:Be.startsWith("#")?dt.content.replace(/#/,""):dt.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}))]}}}),Lt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ve={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn};return{suggestions:[...Ke.keywords.map(Be=>({label:Be,kind:Lt.languages.CompletionItemKind.Function,documentation:Be,insertText:Be,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}))]}}}),Lt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ve={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Be=we.getLineContent(ye.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...ot.keywords.map(dt=>({label:dt,kind:Lt.languages.CompletionItemKind.Function,documentation:dt,insertText:dt,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve})),...ot.quickKey.map(dt=>({label:dt.label,kind:Lt.languages.CompletionItemKind.Function,documentation:dt.content,insertText:Be.startsWith("#")?dt.content.replace(/#/,""):dt.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}))]}}}),Lt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ve={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Be=we.getLineContent(ye.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...be.keywords.map(dt=>({label:dt,kind:Lt.languages.CompletionItemKind.Function,documentation:dt,insertText:dt,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve})),...be.quickKey.map(dt=>({label:dt.label,kind:Lt.languages.CompletionItemKind.Function,documentation:dt.content,insertText:Be.startsWith("#")?dt.content.replace(/#/,""):dt.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}))]}}}),Lt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(we,ye){var ke=we.getWordUntilPosition(ye),Ve={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:ke.startColumn,endColumn:ke.endColumn},Be=we.getLineContent(ye.lineNumber).substring(ke.startColumn-2,ke.endColumn);return{suggestions:[...it.keywords.map(dt=>({label:dt,kind:Lt.languages.CompletionItemKind.Function,documentation:dt,insertText:dt,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve})),...it.quickKey.map(dt=>({label:dt.label,kind:Lt.languages.CompletionItemKind.Function,documentation:dt.content,insertText:Be.startsWith("#")?dt.content.replace(/#/,""):dt.content,insertTextRules:Lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ve}))]}}})};const Re="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var je=Object.defineProperty,Ge=(Lt,pt,nt)=>pt in Lt?je(Lt,pt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Lt[pt]=nt,We=(Lt,pt,nt)=>Ge(Lt,typeof pt!="symbol"?pt+"":pt,nt);const bt=class wx{constructor(pt,nt,Oe){this.placeholder=pt,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)}};We(bt,"ID","editor.widget.placeholderHint");var Dt=bt,vt=he(96236),kt=he(8591),Rt=he(6848),Jt=he(89392),at=he(86766),Ze=he(56102),Mt=Object.defineProperty,Yt=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,Nn=(Lt,pt,nt)=>pt in Lt?Mt(Lt,pt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Lt[pt]=nt,hn=(Lt,pt)=>{for(var nt in pt||(pt={}))Nt.call(pt,nt)&&Nn(Lt,nt,pt[nt]);if(Ct)for(var nt of Ct(pt))sn.call(pt,nt)&&Nn(Lt,nt,pt[nt]);return Lt},Xn=(Lt,pt)=>Yt(Lt,Vt(pt)),Ft=(Lt,pt)=>{var nt={};for(var Oe in Lt)Nt.call(Lt,Oe)&&pt.indexOf(Oe)<0&&(nt[Oe]=Lt[Oe]);if(Lt!=null&&Ct)for(var Oe of Ct(Lt))pt.indexOf(Oe)<0&&sn.call(Lt,Oe)&&(nt[Oe]=Lt[Oe]);return nt},Un=(Lt,pt,nt)=>new Promise((Oe,we)=>{var ye=Be=>{try{Ve(nt.next(Be))}catch(dt){we(dt)}},ke=Be=>{try{Ve(nt.throw(Be))}catch(dt){we(dt)}},Ve=Be=>Be.done?Oe(Be.value):Promise.resolve(Be.value).then(ye,ke);Ve((nt=nt.apply(Lt,pt)).next())});function Kn(Lt){return/^\d+$/.test(Lt)?`${Lt}px`:Lt}function ti(){}let Fn=!1;const Zt={"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 Xt(Lt=[]){let pt=Lt;if(Array.isArray(Lt)){for(let nt=0;nt<Lt.length;nt++){let Oe=Zt[Lt[nt]];if(Oe)return Oe}return pt[0]}return Zt[pt]||pt}let mt=null;var tt=Lt=>{var pt=Lt,{width:nt="100%",height:Oe="100%",value:we,language:ye="javascript",style:ke={},options:Ve={},overrideServices:Be={},theme:dt="vs-dark",onEditBlur:on,isCopy:mn=!1,onSave:Et,autoHeight:Ot=!1,forbidCopy:yn=!1,onChange:Tn=ti,editorDidMount:qn=ti,onFocus:vi=ti,onBreakPoint:gi=ti,breakPointValue:wi=[],filename:_n="educoder.txt",errorLine:yr,errorContent:ir="",highlightLine:fr,openBreakPoint:xr=!1,placeholder:jr=""}=pt,Ki=Ft(pt,["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 Ir=(0,ge.useRef)(),Vi=(0,ge.useRef)({}),Me=(0,ge.useRef)(),Ai=(0,ge.useRef)(),Xi=(0,ge.useRef)([]),gr=(0,ge.useRef)(!1),tr=(0,ge.useRef)(),uo=(0,ge.useRef)(),qr=(0,ge.useRef)(!1),[Ni,an]=(0,ge.useState)(!1);function en(){let Qt;return Ir.current&&(Qt=new Ie.Z(Cn=>{for(let $t of Cn)($t.target.offsetHeight>0||$t.target.offsetWidth>0)&&Vi.current.instance.layout()}),Qt.observe(Ir.current)),Qt}function Kt(){kt.ZP.warning({content:decodeURIComponent(Re),key:"monaco-editor-tip"})}const Pt=()=>{let Qt=Vi.current.instance;if(we!=null&&Qt&&Ni){const Cn=Qt.getModel();Cn&&we!==Cn.getValue()&&(Fn=!0,Cn.setValue(we),Qt.layout(),Fn=!1)}};(0,ge.useEffect)(()=>{const Qt=at.Z.subscribe("formatDocument",Cn=>{var $t;let vn=Vi.current.instance;($t=vn==null?void 0:vn.getAction)==null||$t.call(vn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{Tn(Cn)},Qt},[]),(0,ge.useEffect)(()=>{var Qt;let Cn=Vi.current.instance;Ai.current&&clearTimeout(Ai.current),Ai.current=setTimeout(()=>{Pt()},500),we&&(we!=null&&we.length)&&((Qt=Cn==null?void 0:Cn.updateOptions)==null||Qt.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(we.split(/\r\n|\r|\n/g).length))+3,5)}))},[we,Ni,Vi.current]),(0,ge.useEffect)(()=>{if(yr&&Vi.current&&Vi.current.instance){let Cn=Vi.current.instance;Cn.changeViewZones(function($t){var vn=document.createElement("div");vn.style.padding="10px 20px",vn.style.width="calc(100% - 20px)",vn.className="my-error-line-wrp",vn.innerHTML=ir,$t.addZone({afterLineNumber:yr||11,heightInLines:3,domNode:vn})});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}};Cn.addOverlayWidget(Qt),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[yr,Vi.current,Ni]);const Sn=(Qt="",Cn)=>{if(!Qt||Qt.trim()==="")return!0;const vn=Vi.current.instance.getModel().getLineTokens(Cn);let En=!1;for(let Pn=0;Pn<2;Pn++)vn.getStandardTokenType(Pn)===1&&(En=!0);return En};(0,ge.useEffect)(()=>{var Qt;const Cn=(Qt=Vi.current)==null?void 0:Qt.instance;if(Cn&&Ni&&yn){const $t=Cn.onDidBlurEditorWidget(()=>{qr.current=!1}),vn=Cn.onDidFocusEditorText(()=>{qr.current=!0});return()=>{$t.dispose(),vn.dispose()}}},[Vi.current,Ni,yn]),(0,ge.useEffect)(()=>{var Qt;if((Qt=Vi.current)!=null&&Qt.instance&&Ni&&xr){let Cn=Vi.current.instance,$t=Cn.getModel();if(!$t)return;(()=>{var ar;let qt=[],Li=[];const Ji=$t.getAllDecorations();for(let bi of Ji)bi.options.className==="highlighted-line"&&(qt.push((ar=bi==null?void 0:bi.range)==null?void 0:ar.startLineNumber),Li.push(bi==null?void 0:bi.id));if(fr===qt[0])return;$t.deltaDecorations(Li,[]);const Ti=$t.getLineCount();fr&&fr<=Ti&&(Cn.deltaDecorations([],[{range:new mt.Range(fr,1,fr,$t.getLineMaxColumn(fr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(fr))})();const En=(ar=!1)=>{var qt;let Li=[],Ji=[];const Ti=$t.getAllDecorations();for(let bi of Ti)bi.options.linesDecorationsClassName==="breakpoints-select"&&(Li.push((qt=bi==null?void 0:bi.range)==null?void 0:qt.startLineNumber),Ji.push(bi==null?void 0:bi.id));if(ar)return{lines:Li,ids:Ji};gi(Li)},Pn=ar=>Un(void 0,null,function*(){let qt={range:new mt.Range(ar,1,ar,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield $t.deltaDecorations([],[qt]),En()}),Rn=ar=>Un(void 0,null,function*(){let qt=[];const Li=Cn.getLineDecorations(ar);for(let Ji of Li)Ji.options.linesDecorationsClassName==="breakpoints-select"&&qt.push(Ji.id);yield $t.deltaDecorations(qt,[]),En()}),Yn=ar=>{let qt=Cn.getLineDecorations(ar);for(let Li of qt)if(Li.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Jt.isEqual)(wi,En(!0).lines)){$t.deltaDecorations(En(!0).ids,[]);const ar=wi.map(qt=>({range:new mt.Range(qt,1,qt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));$t.deltaDecorations([],ar)}const Zn=Cn.onDidChangeModelContent(ar=>{let qt=Cn.getPosition();if(qt){let Li=qt.lineNumber;clearTimeout(uo.current),uo.current=setTimeout(()=>{Sn($t.getLineContent(Li),Li)?Rn(Li):Yn(Li)?(Rn(Li),Pn(Li)):En()},100)}}),ri=Cn.onMouseDown(ar=>{var qt,Li,Ji;if(ar.target.detail&&((Ji=(Li=(qt=ar.target)==null?void 0:qt.element)==null?void 0:Li.className)!=null&&Ji.includes("line-numbers"))){let Ti=ar.target.position.lineNumber;if(Sn($t.getLineContent(Ti),Ti))return;Yn(Ti)?Rn(Ti):Pn(Ti)}}),Gn=ar=>{let qt={range:new mt.Range(ar,1,ar,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Xi.current=Cn.deltaDecorations(Xi.current,[qt])},di=()=>{Xi.current=Cn.deltaDecorations(Xi.current,[])},rr=Cn.onMouseMove(ar=>{var qt,Li,Ji;if(di(),ar.target.detail&&((Ji=(Li=(qt=ar.target)==null?void 0:qt.element)==null?void 0:Li.className)!=null&&Ji.includes("line-numbers"))){let Ti=ar.target.position.lineNumber;if(Sn($t.getLineContent(Ti),Ti))return;Gn(Ti)}}),Dr=Cn.onMouseLeave(()=>{di()});return()=>{Zn.dispose(),ri.dispose(),rr.dispose(),Dr.dispose()}}},[Vi.current,Ni,wi,fr,xr,ye]),(0,ge.useEffect)(()=>{var Qt;(Qt=Vi.current)!=null&&Qt.instance&&xr&&Vi.current.instance.setPosition({lineNumber:0,column:0})},[fr]);function bn(){let Qt=Vi.current.instance;if(Qt){const Cn=Qt.getSelection(),$t=Vi.current.pastePos||{},vn=new mt.Range($t.startLineNumber||Cn.endLineNumber,$t.startColumn||Cn.endColumn,$t.endLineNumber||Cn.endLineNumber,$t.endColumn||Cn.endColumn);setTimeout(()=>{Qt.executeEdits("",[{range:vn,text:""}])},300)}}function zt(Qt){(window.navigator.platform.match("Mac")?Qt.metaKey:Qt.ctrlKey)&&Qt.keyCode==83&&(Qt.preventDefault(),Et())}const gt=()=>{if(Ot&&Vi.current.instance){const Qt=Vi.current.instance.getContentHeight();nn(Qt<Oe?Oe:Qt)}else nn(Oe)};function xn(Qt){var Cn=document.createEvent("MouseEvents");Cn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Qt.dispatchEvent(Cn)}const Ln=Qt=>{if(!qr.current)return;const{keyCode:Cn,ctrlKey:$t,metaKey:vn,target:En,type:Pn}=Qt;return(Pn==="paste"||(Cn===67||Cn===86)&&(vn||$t))&&En.nodeName==="TEXTAREA"&&(Kt(),Qt.preventDefault()),!1};function pi(Qt,Cn){var $t=window.URL||window.webkitURL||window,vn=new Blob([Cn]),En=document.createElementNS("http://www.w3.org/1999/xhtml","a");En.href=$t.createObjectURL(vn),En.download=Qt,xn(En)}(0,ge.useEffect)(()=>{gt()},[gt]),(0,ge.useEffect)(()=>{Ir.current&&!Ni&&Promise.all([he.e(8909),he.e(1810)]).then(he.bind(he,71448)).then(Qt=>{try{mt=Qt,Vi.current.instance=mt.editor.create(Ir.current,{value:we,language:Xt(ye),theme:dt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Be);const Cn=Vi.current.instance;let En=[...vt.BH._menuItems].find(Zn=>Zn[0]._debugName=="EditorContext")[1],Pn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Rn=(Zn,ri)=>{var Gn,di;let rr=Zn._first;do ri.includes((di=(Gn=rr.element)==null?void 0:Gn.command)==null?void 0:di.id)&&Zn._remove(rr);while(rr=rr.next)};if(qn(Cn,mt),setTimeout(()=>{gt(),Vi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{pi(_n||"educoder.txt",Cn.getValue())}})},500),Vi.current.subscription=Cn.onDidChangeModelContent(Zn=>{gr.current?clearTimeout(tr.current):(gt(),Tn(Cn.getValue(),Zn)),tr.current=setTimeout(()=>{gr.current=!1},500)}),window.Monaco||Le(mt,Xt(ye)),yn&&(Rn(En,Pn),Ir.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ln),window.removeEventListener("paste",Ln),window.addEventListener("keydown",Ln),window.addEventListener("paste",Ln)),window.Monaco=mt,on&&Cn.onDidBlurEditorWidget(()=>{on(Cn.getValue())}),vi&&Cn.onDidFocusEditorText(()=>{vi(Cn.getValue())}),yn)try{Cn.onDidPaste(Zn=>{const ri=Cn.getSelection(),Gn=Vi.current.pastePos||{},di=new mt.Range(Gn.startLineNumber||ri.endLineNumber,Gn.startColumn||ri.endColumn,Gn.endLineNumber||ri.endLineNumber,Gn.endColumn||ri.endColumn);Cn.executeEdits("",[{range:Zn.range,text:""}])})}catch(Zn){}let Yn=en();return jr&&typeof jr=="string"&&new Dt(jr,Cn,mt),an(!0),()=>{const Zn=Vi.current.instance;Zn.dispose();const ri=Zn.getModel();ri&&ri.dispose(),Vi.current.subscription&&Vi.current.subscription.dispose(),Yn.unobserve(Ir.current)}}catch(Cn){}})},[]),(0,ge.useEffect)(()=>{if(Vi.current.instance&&Ni)return document.addEventListener("keydown",zt,!1),()=>{document.removeEventListener("keydown",zt)}},[Et,Ni]),(0,ge.useEffect)(()=>{let Qt=Vi.current.instance;if(Qt&&Ni){let Cn=Xt(ye);mt.editor.setModelLanguage(Qt.getModel(),Cn)}},[ye,Ni]),(0,ge.useEffect)(()=>{Vi.current.instance&&Ni&&mt.editor.setTheme(dt)},[dt,Ni]),(0,ge.useEffect)(()=>{let Qt=Vi.current.instance;Me.current=Ve,Qt&&Ni&&(Qt.updateOptions(hn({},Ve)),setTimeout(()=>{Qt.getModel().updateOptions(hn({},Ve))},200))},[JSON.stringify(Ve),Ni]),(0,ge.useEffect)(()=>{let Qt=Vi.current.instance;Qt&&Ni&&Qt.layout()},[nt,Oe,Ni]);const[Mn,It]=(0,ge.useState)(Kn(nt)),[gn,nn]=(0,ge.useState)(Kn(Oe)),ui=Xn(hn({},ke),{width:Mn,height:gn,position:"relative"});return ge.createElement("div",{className:"my-monaco-editor",ref:Ir,style:ui},mn&&ge.createElement(Ze.CopyToClipboard,{text:we,onCopy:()=>kt.ZP.success("\u590D\u5236\u6210\u529F")},ge.createElement(Rt.Z,{title:"\u590D\u5236\u4EE3\u7801"},ge.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ge.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Wt({width:Lt="100%",height:pt="100%",original:nt,modified:Oe,language:we,options:ye={}}){const ke=(0,ge.useRef)(),[Ve,Be]=(0,ge.useState)(null);function dt(Ot){let yn;return ke.current&&(yn=new Ie.Z(Tn=>{for(let qn of Tn)(qn.target.offsetHeight>0||qn.target.offsetWidth>0)&&Ot.layout()}),yn.observe(ke.current)),yn}(0,ge.useEffect)(()=>(ke.current&&Promise.all([he.e(8909),he.e(9404)]).then(he.bind(he,2550)).then(Ot=>{mt=Ot;const yn=mt.editor.createDiffEditor(ke.current,Xn(hn({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ye),{wordWrap:!0}));Be(yn);let Tn=dt(yn);return()=>{yn.dispose();const qn=yn.getModel();qn&&qn.dispose(),Tn.unobserve(ke.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ge.useEffect)(()=>{Ve&&Ve.setModel({original:mt.editor.createModel(nt,we),modified:mt.editor.createModel(Oe,we)})},[nt,Oe,we,Ve]);const on=Kn(Lt),mn=Kn(pt),Et={width:on,height:mn};return ge.createElement("div",{className:"my-diff-editor",ref:ke,style:Et})}},94606:function(fn,jt,he){"use strict";he.d(jt,{jL:function(){return He},w9:function(){return Nt},QD:function(){return Tn},cQ:function(){return Ze},op:function(){return dt},O5:function(){return qr},_b:function(){return yr},t7:function(){return oe},Gi:function(){return Un},YG:function(){return Xn},qp:function(){return et},vr:function(){return gi},qE:function(){return Et},Je:function(){return xe},wb:function(){return vt},cq:function(){return mt},tp:function(){return Ee}});var ge=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"},Ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7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973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",He=({dataSource:Ni=[],img:an,imgWidth:en=346,title:Kt,sunTitle:Pt,bannerExtraContent:Sn})=>ge.createElement("div",{className:Ie.banner},ge.createElement("div",{className:Ie.content},ge.createElement("aside",null,ge.createElement("p",null,ge.createElement("b",null,Kt),ge.createElement("span",null,Pt)),Ni.length>0&&ge.createElement("div",{className:Ie.btns},Ni.map((bn,zt)=>ge.createElement("div",{key:zt,onClick:bn.click},bn.name,bn.sign?ge.createElement("img",{src:Ke,width:39}):null))),Sn),an&&ge.createElement("img",{style:{marginTop:33,marginRight:38},src:an,width:en}))),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),ct=he(89392),et=({dataSource:Ni=[],value:an,onChange:en,onTitleChange:Kt,className:Pt,title:Sn,titleWidth:bn=41,style:zt={},fontColor:gt="#6A7283",showCount:xn})=>{const[Ln,pi]=(0,ge.useState)(0),[Mn,It]=(0,ge.useState)(!1),gn=(0,ge.useRef)(null),nn=(0,ge.useRef)(null);return(0,ge.useEffect)(()=>{var ui;Ni.length!==0&&(((ui=gn==null?void 0:gn.current)==null?void 0:ui.clientHeight)>97?pi(1):pi(0)),Ni.length===0&&pi(0),It(!1)},[Ni]),ge.createElement("div",{className:yt()(it.row,Pt),style:zt},ge.createElement("div",{onClick:(0,ct.throttle)(()=>Kt==null?void 0:Kt(),2e3),style:{width:bn,marginTop:Mn?12:4},className:`${it.title} ${Kt?"current":""}`},Sn),ge.createElement("div",{className:Mn?`${it.tagsWrap} ${it.tagsBorderWrap}`:it.tagsWrap},ge.createElement("div",{className:it.bar,ref:nn,style:Ln>0?{height:Ln===1?97:"auto",overflow:Ln===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ge.createElement("div",{className:it.tag,ref:gn},Ni==null?void 0:Ni.map(ui=>ge.createElement("span",{onClick:()=>en(ui.id),key:ui.id,style:{color:gt},className:an===ui.id?it.active:""},ge.createElement("span",{title:ui.name,className:it.name},ui.name),!!xn&&ge.createElement("span",{className:it.num},ui.count))))),!!Ln&&ge.createElement(ge.Fragment,null,Ln===1?ge.createElement("div",{onClick:()=>{var ui;pi(2),((ui=gn==null?void 0:gn.current)==null?void 0:ui.clientHeight)>245?It(!0):It(!1)},className:it.action},"\u5C55\u5F00",ge.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ge.createElement("div",{onClick:()=>{nn.current.scrollTop=0,pi(1),It(!1)},className:it.action},"\u6536\u8D77",ge.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Je={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:Ni=[],value:an,onChange:en,className:Kt,style:Pt={}})=>ge.createElement("div",{style:Pt,className:yt()(Je.tabs,Kt)},Ni.map(Sn=>ge.createElement("span",{onClick:()=>en(Sn.id),className:an===Sn.id?Je.active:"",key:Sn.id},Sn.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),oe=({dataSource:Ni=[],value:an="",onChange:en,onInputChange:Kt=()=>{},className:Pt,style:Sn={},placeholder:bn,allowClear:zt=!1})=>{var gt;const[xn,Ln]=(0,ge.useState)(""),[pi,Mn]=(0,ge.useState)("");(0,ge.useEffect)(()=>{var nn;let ui=an;(nn=JSON.stringify(an))!=null&&nn.includes("{")&&(Ln(an.id),ui=an.value||"");try{Mn(decodeURIComponent(ui||""))}catch(Qt){Mn(decodeURIComponent(ui||""))}},[an]);const It=()=>{en(encodeURIComponent(pi),xn||null)},gn=nn=>{nn!==xn&&(Ln(nn),en(encodeURIComponent(pi),nn))};return ge.createElement("div",{className:yt()(ee.input,Pt),style:Sn},!!Ni.length&&ge.createElement("div",{className:ee.dropdown},ge.createElement("div",{className:ee.text},(gt=Ni.find(nn=>nn.id===xn))==null?void 0:gt.name,ge.createElement("i",{className:"iconfont icon-zhankai4"}),ge.createElement("b",{className:ee.b1}),ge.createElement("b",{className:ee.b2})),ge.createElement("div",{className:ee.menu},Ni.map((nn,ui)=>ge.createElement("div",{key:ui,onClick:()=>gn(nn.id)},nn.name)))),ge.createElement(te.default,{onPressEnter:It,value:pi,onChange:nn=>{Mn(nn.target.value),Kt(encodeURIComponent(nn.target.value),xn||null)},bordered:!1,placeholder:bn}),ge.createElement("i",{onClick:It,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"},xe=({value:Ni,onChange:an,className:en,total:Kt,pageSize:Pt,style:Sn={}})=>{const bn=Ni<2,zt=Ni>=Math.ceil(Kt/Pt);return Kt<=Pt?ge.createElement(ge.Fragment,null):ge.createElement("div",{className:yt()(de.quickPager,en),style:Sn},ge.createElement("div",{onClick:()=>{bn||an(Ni-1,"prev")},className:bn?de.disabled:""},"\u4E0A\u4E00\u9875"),ge.createElement("div",{onClick:()=>{zt||an(Ni+1,"next")},className:zt?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"},Pe=he(71418),Ne=he(6848),Le=he(39978),Re=he(10148),je=he(58130),Ge=he(96908),We=he(57177),bt=he(81378),Qe=he(97267),vt=({className:Ni,dataSource:an=[],col:en=4,right:Kt,bottom:Pt=23,precision:Sn=0,wrapWidth:bn=1200,trackEventItems:zt,loading:gt})=>{const xn=Math.floor((bn-(en-1)*Kt)/en);return ge.createElement(Pe.Z,{spinning:gt},ge.createElement("div",{className:yt()(Ae.list,Ni)},!!an.length&&an.map((Ln,pi)=>{const{name:Mn,id:It,identifier:gn,power:nn,cover_image_id:ui,pic:Qt}=Ln;return ge.createElement("div",{className:Ae.wrap,key:It,style:{width:xn,marginRight:(1+pi)%en===0?0:Kt+Sn,marginBottom:Pt}},ge.createElement("a",{target:"_blank",href:`/shixuns/${gn}/challenges`,className:Ae.li,onClick:Cn=>{Cn.preventDefault(),zt&&(0,je.L9)([zt]),nn&&(0,je.xg)(`/shixuns/${gn}/challenges`)}},ge.createElement("div",{className:Ae.img},ge.createElement("img",{className:Ae.cover,src:`${Qt}`}),Ln.is_jupyter&&ge.createElement("img",{className:Ae.sign,src:Ge}),Ln.is_jupyter_lab&&ge.createElement("img",{className:Ae.sign,src:We}),Ln.is_unity_3d&&ge.createElement("img",{className:Ae.sign,src:bt})),ge.createElement("div",{className:Ae.name},ge.createElement(Ne.Z,{title:Mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ge.createElement("span",{className:Ae.e},Mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ge.createElement("div",{className:Ae.tags},ge.createElement(Ne.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ge.createElement("span",null,Ln.challenges_count))),!!Ln.myshixuns_count&&ge.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ge.createElement("span",null,Ln.myshixuns_count))),ge.createElement(Ne.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ge.createElement("span",null,ge.createElement("span",null,Ln.level))),ge.createElement("div",{className:Ae.rate},ge.createElement(Le.Z,{allowHalf:!0,disabled:!0,defaultValue:Ln.score_info}),ge.createElement("span",null,"\xA0",Ln.score_info?`${Ln.score_info}\u5206`:"5\u5206")))),!nn&&ge.createElement("div",{className:Ae.lockWrap},ge.createElement("img",{src:`${Re.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ge.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!an.length&&ge.createElement(Qe.Z,null)))},kt={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"},Rt=he(2119),Jt=he(59301),Ze=({className:Ni,dataSource:an=[],col:en=4,right:Kt,bottom:Pt=23,precision:Sn=0,wrapWidth:bn=1200,trackEventItems:zt,loading:gt,onRemove:xn=()=>{},isCurrent:Ln=!0,showAlias:pi=!1})=>{const Mn=Math.floor((bn-(en-1)*Kt)/en),It=[{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 Jt.createElement(Pe.Z,{spinning:gt},Jt.createElement("div",{className:yt()(kt.list,Ni)},!!(an!=null&&an.length)&&(an==null?void 0:an.map((gn,nn)=>{var ui;const{name:Qt,id:Cn,identifier:$t,featured:vn,school_name:En,image_url:Pn,excellent:Rn,is_plan:Yn}=gn;return Jt.createElement("div",{key:Cn,className:kt.wrap,style:{width:Mn,marginRight:(1+nn)%en===0?0:Kt+Sn,marginBottom:Pt}},Jt.createElement("a",{className:kt.li,onClick:Zn=>{Zn.preventDefault(),Zn.stopPropagation(),zt&&(0,je.L9)([zt]),(0,je.xg)(`/paths/${$t}`)}},Jt.createElement("div",{className:kt.img},Jt.createElement("img",{className:kt.cover,src:`${Pn}`}),Ln&&(0,Rt.bg)()&&(gn==null?void 0:gn.studying)&&Jt.createElement("div",{className:`${kt.movebq} user-path-items`,onClick:Zn=>{Zn.stopPropagation(),xn(gn)}},Jt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Jt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ui=gn==null?void 0:gn.subject_tags)==null?void 0:ui.map((Zn,ri)=>{var Gn,di;if(ri===0){const Dr=(Gn=It.find(ar=>ar.name==Zn))==null?void 0:Gn.swimg;return Jt.createElement("img",{className:kt.sign,src:Dr,style:{left:"-4px"}})}const rr=(di=It.find(Dr=>Dr.name==Zn))==null?void 0:di.ptimg;return Jt.createElement("img",{className:kt.sign,src:rr,style:{left:`${48+52*(ri-1)+2*ri}px`}})}),Jt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(gn==null?void 0:gn.excellent)&&Jt.createElement("div",{className:kt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Jt.createElement("div",{className:kt.name},Jt.createElement(Ne.Z,{title:pi&&(gn!=null&&gn.excellent_alias_name)?Jt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Qt}`,Jt.createElement("br",null),Jt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${gn==null?void 0:gn.excellent_alias_name}`)):Qt},Jt.createElement("span",{className:kt.e},pi&&(gn==null?void 0:gn.excellent_alias_name)||Qt))),Jt.createElement(Ne.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${En}`},Jt.createElement("div",{className:kt.unit},Jt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),En)),Jt.createElement("div",{className:kt.tags},Jt.createElement("div",null,Jt.createElement(Ne.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Jt.createElement("span",null,Jt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Jt.createElement("span",null,gn.stages_count))),Jt.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Jt.createElement("span",null,Jt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Jt.createElement("span",null,gn.members_count)))))))})),!an.length&&Jt.createElement(Qe.Z,null)))},Mt={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___Fp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yhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Vt=he(59301),Nt=({className:Ni,dataSource:an=[],col:en=4,right:Kt,bottom:Pt=23,precision:Sn=0,wrapWidth:bn=1200,trackEventItems:zt,loading:gt})=>{const xn=Math.floor((bn-(en-1)*Kt)/en);return Vt.createElement(Pe.Z,{spinning:gt},Vt.createElement("div",{className:yt()(Mt.list,Ni)},!!an.length&&an.map((Ln,pi)=>{const{subject_identifier:Mn,id:It,identifier:gn,power:nn}=Ln,ui=Ln.is_public!=0&&Ln.is_public;return Vt.createElement("div",{className:Mt.wrap,key:It,style:{width:xn,marginRight:(1+pi)%en===0?0:Kt+Sn,marginBottom:Pt}},Vt.createElement("a",{className:Mt.li,onClick:Qt=>{Qt.preventDefault(),zt&&(0,je.L9)([zt]),(0,je.xg)(Ln.first_category_url)}},Vt.createElement("div",{className:Mt.top},Vt.createElement(Ne.Z,{title:Ln.name},Vt.createElement("div",{className:Mt.name},Ln.name)),Vt.createElement("img",{className:Mt.img,src:Re.Z.IMG_SERVER+"/images/"+Ln.avatar_url}),Vt.createElement("div",{className:Mt.text,title:Ln.creator},Ln.creator),Mn&&Vt.createElement("div",{className:Mt.btns},Vt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Vt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ui&&Vt.createElement("div",{className:Mt.sign},"\u516C\u5F00")),Vt.createElement("div",{className:Mt.bottom},Ln.visits>0&&Vt.createElement(Ne.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Vt.createElement("span",null,Vt.createElement("i",{className:"iconfont icon-liulanyan"}),Vt.createElement("span",null,Ln.visits))),Ln.course_members_count>0&&Vt.createElement(Ne.Z,{title:"\u6210\u5458",placement:"bottom"},Vt.createElement("span",null,Vt.createElement("i",{className:"iconfont icon-chengyuan"}),Ln.course_members_count)),Ln.tasks_count>0&&Vt.createElement(Ne.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Vt.createElement("span",null,Vt.createElement("i",{className:"iconfont icon-zuoye"}),Ln.tasks_count)),Ln.is_end?Vt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Vt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ln.is_accessible&&Vt.createElement("div",{className:Mt.lockWrap},Vt.createElement("img",{src:`${Re.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Vt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!an.length&&Vt.createElement(Qe.Z,null)))},sn={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"},Nn=he(42203),Xn=({dataSource:Ni=[],value:an,onChange:en,className:Kt,style:Pt={},tabBarExtraContent:Sn})=>ge.createElement("div",{className:yt()(sn.tabs,Kt),style:Pt},ge.createElement("div",{className:sn.tabsWrap},Ni.map((bn,zt)=>ge.createElement("aside",{className:sn.tab,onClick:()=>{en(bn.id),bn.link&&Nn.history.push(bn.link)},key:zt},ge.createElement("div",{className:an===bn.id?sn.active:""},bn.name),(bn==null?void 0:bn.resetCount)==null&&(bn==null?void 0:bn.total)!==void 0&&ge.createElement("span",null,"\uFF08",bn==null?void 0:bn.total,"\uFF09"),(bn==null?void 0:bn.resetCount)!==void 0&&(bn==null?void 0:bn.total)!==void 0&&ge.createElement(Ne.Z,{title:(bn==null?void 0:bn.tip)!=null?bn==null?void 0:bn.tip:""},ge.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ge.createElement("span",{style:{color:"#000"}},bn==null?void 0:bn.resetCount),"/",ge.createElement("span",null,bn==null?void 0:bn.total),"\uFF09"))))),ge.createElement("div",{className:sn.tabBar},Sn)),Un=({className:Ni,style:an={},children:en})=>ge.createElement("div",{className:yt()(Ni),style:an},en),Kn={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"},ti=he(38854),Fn=he(20834);const Zt=[{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:Ni,dropValue:an,className:en,onSort:Kt,onDrop:Pt,dataSource:Sn=Zt})=>{var bn;return ge.createElement("div",{className:yt()(Kn.orderWrap,en)},ge.createElement(ti.Z,{dropdownRender:()=>ge.createElement(Fn.default,null,Sn.map((zt,gt)=>ge.createElement(Fn.default.Item,{key:gt,onClick:()=>Pt(zt.id)},zt.name)))},ge.createElement("span",{className:Kn.orderTextWrap},(bn=Sn.find(zt=>an===zt.id))==null?void 0:bn.name)),ge.createElement("span",{className:Kn.orderIconWrap},ge.createElement("span",{className:Kn.orderAsc},ge.createElement("i",{className:Ni==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Kn.cursorPointer} ${Kn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Kn.cursorPointer}`,onClick:()=>Kt(Ni==="asc"?"desc":"asc")})),ge.createElement("span",{className:Kn.orderDesc},ge.createElement("i",{className:Ni==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Kn.cursorPointer} ${Kn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Kn.cursorPointer}`,onClick:()=>Kt(Ni==="asc"?"desc":"asc")}))))},tt={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"},Wt=he(3113),Lt=Object.defineProperty,pt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,we=(Ni,an,en)=>an in Ni?Lt(Ni,an,{enumerable:!0,configurable:!0,writable:!0,value:en}):Ni[an]=en,ye=(Ni,an)=>{for(var en in an||(an={}))nt.call(an,en)&&we(Ni,en,an[en]);if(pt)for(var en of pt(an))Oe.call(an,en)&&we(Ni,en,an[en]);return Ni},ke=(Ni,an)=>{var en={};for(var Kt in Ni)nt.call(Ni,Kt)&&an.indexOf(Kt)<0&&(en[Kt]=Ni[Kt]);if(Ni!=null&&pt)for(var Kt of pt(Ni))an.indexOf(Kt)<0&&Oe.call(Ni,Kt)&&(en[Kt]=Ni[Kt]);return en},Ve=(Ni,an,en)=>new Promise((Kt,Pt)=>{var Sn=gt=>{try{zt(en.next(gt))}catch(xn){Pt(xn)}},bn=gt=>{try{zt(en.throw(gt))}catch(xn){Pt(xn)}},zt=gt=>gt.done?Kt(gt.value):Promise.resolve(gt.value).then(Sn,bn);zt((en=en.apply(Ni,an)).next())}),dt=Ni=>{var an=Ni,{className:en,style:Kt,children:Pt,loading:Sn=!1,openLoading:bn,onClick:zt=()=>{},size:gt="middle",shape:xn="round"}=an,Ln=ke(an,["className","style","children","loading","openLoading","onClick","size","shape"]);const[pi,Mn]=(0,ge.useState)(!1);return ge.createElement(Wt.ZP,ye({onClick:(0,ct.throttle)(It=>Ve(void 0,null,function*(){bn&&Mn(!0);try{yield zt(It)}catch(gn){console.log("error",gn)}bn&&Mn(!1)}),2e3,{leading:!0,trailing:!1}),className:yt()(tt.btn,tt[`${gt}-${xn}`],en),style:Kt,size:gt,shape:xn,loading:pi||Sn},Ln),Pt)},on={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"},Et=({className:Ni,style:an,children:en=null,onClick:Kt,title:Pt})=>ge.createElement("div",{className:yt()(on.head,Ni),style:an},ge.createElement("span",{className:"primary-hover",onClick:Kt},ge.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ge.createElement("b",{title:Pt},Pt),ge.createElement("div",{className:on.node},en)),Ot={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"},Tn=({confirmShow:Ni=!0,confirmTitle:an,confirmClick:en,cancelShow:Kt=!0,cancelTitle:Pt,cancelClick:Sn,className:bn,style:zt,confirmLoading:gt=!1})=>ge.createElement("div",{className:yt()(Ot.btns,bn),style:zt},Ni&&ge.createElement(Wt.ZP,{loading:gt,onClick:en,type:"primary",className:Ot.confirm},an),Kt&&ge.createElement(Wt.ZP,{onClick:Sn,className:Ot.cancel},Pt)),qn={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"},gi=({className:Ni,style:an={},LeftContent:en,children:Kt,RightContent:Pt})=>ge.createElement("div",{className:yt()(qn.fixedBottom,Ni),style:an},ge.createElement("div",{className:qn.wrap},ge.createElement("div",{className:qn.left},en),ge.createElement("div",{className:qn.center},Kt),ge.createElement("div",{className:qn.right},Pt))),wi={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"},yr=({className:Ni,style:an={},dataSource:en=[]})=>ge.createElement("div",{className:yt()(wi.crumbs,Ni),style:an},en.map((Kt,Pt)=>Pt<en.length-1?ge.createElement(ge.Fragment,{key:Pt},Kt.path||Kt.onClick?ge.createElement("span",{className:wi.hover,onClick:Kt!=null&&Kt.onClick?Kt.onClick:()=>Nn.history.push(Kt.path)},Kt.name):ge.createElement("span",null,Kt.name),ge.createElement("span",null,"\xA0",">","\xA0")):ge.createElement("span",{key:Pt,style:{color:"#5F6368"}},Kt.name))),ir=he(31797),fr=Object.defineProperty,xr=Object.defineProperties,jr=Object.getOwnPropertyDescriptors,Ki=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,Me=(Ni,an,en)=>an in Ni?fr(Ni,an,{enumerable:!0,configurable:!0,writable:!0,value:en}):Ni[an]=en,Ai=(Ni,an)=>{for(var en in an||(an={}))Ir.call(an,en)&&Me(Ni,en,an[en]);if(Ki)for(var en of Ki(an))Vi.call(an,en)&&Me(Ni,en,an[en]);return Ni},Xi=(Ni,an)=>xr(Ni,jr(an)),gr=(Ni,an)=>{var en={};for(var Kt in Ni)Ir.call(Ni,Kt)&&an.indexOf(Kt)<0&&(en[Kt]=Ni[Kt]);if(Ni!=null&&Ki)for(var Kt of Ki(Ni))an.indexOf(Kt)<0&&Vi.call(Ni,Kt)&&(en[Kt]=Ni[Kt]);return en};const{Countdown:tr}=ir.default;var qr=Ni=>{var an=Ni,{onChange:en}=an,Kt=gr(an,["onChange"]);const[Pt,Sn]=(0,ge.useState)(null);(0,ge.useEffect)(()=>{typeof Pt=="number"&&Pt>=0&&en(Pt)},[Pt]);const bn=zt=>{const gt=Math.floor(zt/1e3);Sn(gt)};return ge.createElement(tr,Xi(Ai({},Kt),{onChange:bn}))}},91300:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ie}});var ge=he(59301);function Ie(Ke,ot){const He=(0,ge.useRef)();(0,ge.useEffect)(()=>{He.current=Ke}),(0,ge.useEffect)(()=>{function it(){He.current()}if(ot!==null){let be=setInterval(it,ot);return()=>clearInterval(be)}},[ot])}},73782:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(43418),Ke=he(70635),ot=he(42203),He=he(59301),it=(yt,ct,Xe)=>new Promise((et,Je)=>{var Ue=te=>{try{ee(Xe.next(te))}catch(ue){Je(ue)}},Ee=te=>{try{ee(Xe.throw(te))}catch(ue){Je(ue)}},ee=te=>te.done?et(te.value):Promise.resolve(te.value).then(Ue,Ee);ee((Xe=Xe.apply(yt,ct)).next())});const be=({exercise:yt,dispatch:ct,init:Xe,haveInit:et=!1})=>{const Je=(0,ot.useParams)(),[Ue,Ee]=(0,ge.useState)(!1);let[ee,te]=(0,ge.useState)();const[ue,oe]=(0,ge.useState)(!1),[de,ve]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{yt.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&xe()},[yt.actionTabs]);function xe(){return it(this,null,function*(){var Ae,Pe;let Ne=yield(0,Ke.ZP)(`/api/courses/${Je==null?void 0:Je.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});if(((Ae=Ne==null?void 0:Ne.cover_exercises)==null?void 0:Ae.length)>0)Ee(!0),te((Pe=Ne==null?void 0:Ne.cover_exercises)==null?void 0:Pe[0]);else{let Le=yield(0,Ke.ZP)(`/api/courses/${Je==null?void 0:Je.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});ct({type:"exercise/setActionTabs",payload:{key:""}}),(Le==null?void 0:Le.status)===0&&(et&&Xe(),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:()=>{ot.history.push("/paperlibrary")}}))}})}return He.createElement("div",null,He.createElement(Ie.default,{open:Ue,centered:!0,onCancel:Ae=>it(void 0,null,function*(){if(Ae.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){oe(!0);let Pe=yield(0,Ke.ZP)(`/api/courses/${Je==null?void 0:Je.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs,update:1}});ct({type:"exercise/setActionTabs",payload:{key:""}}),oe(!1),(Pe==null?void 0:Pe.status)===0&&(et&&Xe(),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:()=>{ot.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,Ke.ZP)(`/api/courses/${Je==null?void 0:Je.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:yt.actionTabs.selectArrs}});ve(!1),(Ae==null?void 0:Ae.status)===0&&(et&&Xe(),ct({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:()=>{ot.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},He.createElement("div",null,He.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"),He.createElement("div",null,He.createElement("div",null,"\u8BD5\u5377\uFF1A",ee==null?void 0:ee.origin_exercise_nam),He.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",He.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))))))};jt.Z=(0,ot.connect)(({exercise:yt})=>({exercise:yt}))(be)},64950:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Le}});var ge=he(59301),Ie=he(43418),Ke=he(95237),ot=he(43604),He=he(57809),it=he(2595),be=he(3113),yt=he(94606),ct=he(70635),Xe={cstuModal:"cstuModal___aIPVR",removeStyle:"removeStyle___wY4gp",bottom:"bottom___a8tK0",yes:"yes___Zhc4z",no:"no___Ngwsa",Onerow:"Onerow___Q59ve",searchMember:"searchMember___Jj460",searchMemberHeader:"searchMemberHeader___SxfUY"},et=he(42203),Je=he(96622),Ue=he(59301),Ee=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,ve=(Re,je,Ge)=>je in Re?Ee(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Re[je]=Ge,xe=(Re,je)=>{for(var Ge in je||(je={}))oe.call(je,Ge)&&ve(Re,Ge,je[Ge]);if(ue)for(var Ge of ue(je))de.call(je,Ge)&&ve(Re,Ge,je[Ge]);return Re},Ae=(Re,je)=>ee(Re,te(je)),Pe=(Re,je,Ge)=>new Promise((We,bt)=>{var Qe=kt=>{try{vt(Ge.next(kt))}catch(Rt){bt(Rt)}},Dt=kt=>{try{vt(Ge.throw(kt))}catch(Rt){bt(Rt)}},vt=kt=>kt.done?We(kt.value):Promise.resolve(kt.value).then(Qe,Dt);vt((Ge=Ge.apply(Re,je)).next())});const Ne=({visible:Re,setVisible:je,onK:Ge,selectKeys:We,selectRows:bt,appointStudent:Qe,modalParams:Dt,courseId:vt})=>{const kt=(0,et.useParams)(),[Rt,Jt]=(0,ge.useState)(!1),[at,Ze]=(0,ge.useState)(!1),[Mt,Yt]=(0,ge.useState)([]),[Vt,Ct]=(0,ge.useState)([]),[Nt,sn]=(0,ge.useState)([]),[Nn,hn]=(0,ge.useState)("all"),[Xn,Ft]=(0,ge.useState)("all");let[Un,Kn]=(0,ge.useState)(!0);const[ti,Fn]=(0,ge.useState)([{value:"all",label:"\u5168\u90E8\u5206\u73ED"}]),[Zt,Xt]=(0,ge.useState)({page:1,limit:1e4,status:null,course_group_id:null,keywords:"",sort_by:null,direction:null}),mt={selectedRowKeys:Vt,columnWidth:40,hideSelectAll:!0,onSelect:(nt,Oe,we)=>{let ye=!0;for(let ke=0;ke<Vt.length;ke++)(nt==null?void 0:nt.user_id)===Vt[ke]&&(Vt==null||Vt.splice(ke,1),Nt==null||Nt.splice(ke,1),ye=!1);ye&&(Vt.push(nt==null?void 0:nt.user_id),Nt.push(nt)),Ct([...Vt]),sn([...Nt])},onSelectAll:(nt,Oe,we)=>{if(nt&&we.length>0){we.forEach(ye=>{Vt.push(ye.user_id),Nt.push(ye)}),Ct([...Vt]),sn([...Nt]);return}if(!nt&&we.length>0){let ye=[],ke=[];const Ve=new Set(we),Be=new Set(Vt),dt=new Set(Nt);ye=[...Be].filter(on=>[...Ve].every(mn=>mn.user_id!==on)),ke=[...dt].filter(on=>[...Ve].every(mn=>mn.user_id!==on.user_id)),Ct([...ye]),sn([...ke])}}};(0,ge.useEffect)(()=>{Re&&We&&(Ct([...We]),sn(bt))},[Re,We]),(0,ge.useEffect)(()=>{Re&&(!Qe&&Dt?Zt.status=Dt:Zt.status=null,Xt(xe({},Zt)),Wt())},[Re,Qe,Dt]);const tt=[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(nt,Oe,we)=>Ue.createElement("span",{style:{color:"#333"}},we+1)},{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(nt,Oe,we)=>Ue.createElement("span",null,nt)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(nt,Oe,we)=>Ue.createElement("span",{style:{color:"#666"}},nt)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(nt,Oe)=>Ue.createElement("span",null,nt)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",sorter:!0,render:(nt,Oe)=>Ue.createElement("span",null,nt||"--")},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(nt,Oe)=>Ue.createElement("span",null,nt)}].filter(nt=>Dt===1||Dt===2?nt.title!=="\u72B6\u6001":!0),Wt=()=>Pe(void 0,null,function*(){var nt,Oe,we;Ze(!0);const ye=yield(0,ct.ZP)(`/api/exercises/${kt.categoryId||vt}/wait_make_up_students.json`,{method:"get",params:Ae(xe({},Zt),{keywords:(nt=Zt==null?void 0:Zt.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(Ve=>({value:Ve==null?void 0:Ve.id,label:Ve==null?void 0:Ve.name})))||[];Fn([{value:"all",label:"\u5168\u90E8\u5206\u73ED"},...ke]),Yt(ye.data)}Ze(!1)}),Lt=()=>{Zt.page=1,Zt.status=null,Zt.course_group_id=null,Zt.keywords="",hn("all"),Ft("all"),Ct([]),sn([]),Xt(xe({},Zt)),Qe&&Ge(Vt==null?void 0:Vt.length,Vt,Nt)},pt=()=>{Zt.page=1,Zt.status=null,Zt.course_group_id=null,Zt.keywords="",Xt(xe({},Zt)),hn("all"),Ft("all"),Ct([]),sn([]),je(!1)};return Ue.createElement(Ie.default,{centered:!0,className:Xe.cstuModal,title:Dt===1?"\u7F3A\u8003\u5B66\u751F":Dt===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:Re,width:1200,footer:null,onCancel:()=>{pt()}},Ue.createElement(Ke.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},Ue.createElement(Ke.Z,null,Ue.createElement(ot.Z,null,Ue.createElement(He.default,{size:"large",value:Nn,style:{width:200,marginRight:20},onChange:nt=>{hn(nt),nt==="all"?Zt.course_group_id=null:Zt.course_group_id=nt,Zt.page=1,Xt(xe({},Zt)),Wt()},options:ti})),Qe&&Ue.createElement(ot.Z,null,Ue.createElement(He.default,{size:"large",value:Xn,style:{width:200},onChange:nt=>{Ft(nt),nt==="all"?Zt.status=null:Zt.status=nt,Zt.page=1,Xt(xe({},Zt)),Wt()},options:[{value:"all",label:"\u5168\u90E8\u72B6\u6001"},{value:"1",label:"\u7F3A\u8003"},{value:"2",label:"\u672A\u53CA\u683C"},{value:"3",label:"\u53CA\u683C"}]}))),Ue.createElement(ot.Z,null,Ue.createElement(yt.t7,{style:{width:300,marginLeft:15},value:Zt.keywords,allowClear:!0,onChange:nt=>{Zt.keywords=nt,Zt.page=1,Xt(xe({},Zt)),Wt()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),Ue.createElement(Ke.Z,{align:"middle",className:"mb30"},Ue.createElement(ot.Z,{span:14},Ue.createElement("div",{className:"flexd-table-header"},Ue.createElement(it.default,{pagination:!1,dataSource:[],columns:tt,rowSelection:Qe?mt:null,rowKey:nt=>nt.user_id})),Ue.createElement("div",null,Ue.createElement(it.default,{rowSelection:Qe?mt:null,columns:tt,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:nt=>nt.user_id,loading:at,dataSource:Mt==null?void 0:Mt.exercise_users,onChange:(nt,Oe,we)=>{Zt.page=nt==null?void 0:nt.current,Zt.limit=nt==null?void 0:nt.pageSize,we!=null&&we.order?(Zt.sort_by=we==null?void 0:we.field,Zt.direction=(we==null?void 0:we.order)==="ascend"?"asc":"desc"):(Zt.sort_by=null,Zt.direction=null),Xt(xe({},Zt)),Wt()},pagination:!1}))),Ue.createElement(ot.Z,{span:1},Ue.createElement("img",{src:Je,style:{marginLeft:10}})),Ue.createElement(ot.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},Ue.createElement("div",{className:Xe.searchMember,style:{width:550}},Ue.createElement(Ke.Z,{className:Xe.searchMemberHeader},Ue.createElement(ot.Z,{className:"ml30",flex:"100px"},"\u59D3\u540D"),Ue.createElement(ot.Z,{flex:"110px"},"\u5B66\u53F7"),Ue.createElement(ot.Z,{flex:"120px",style:{marginLeft:5}},"\u5206\u73ED")),Ue.createElement("div",{style:{overflow:"auto",height:390}},Nt==null?void 0:Nt.map((nt,Oe)=>Ue.createElement(Ke.Z,{key:Oe,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},Ue.createElement(ot.Z,{flex:"100px"},nt.user_name),Ue.createElement(ot.Z,{flex:"110px"},nt.student_id),Ue.createElement(ot.Z,{flex:"120px",style:{marginLeft:5}},nt.user_group_name),Ue.createElement(ot.Z,{style:{marginLeft:10}},Ue.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{sn(Nt.filter(we=>we.user_id!=nt.user_id)),Ct(Vt.filter(we=>we!=nt.user_id))}})))))))),!(Dt===1||Dt===2)&&Ue.createElement("div",{className:Xe.bottom},Ue.createElement(be.ZP,{className:Xe.no,onClick:()=>{pt()}},"\u53D6\u6D88"),Ue.createElement(be.ZP,{loading:Rt,type:"primary",onClick:()=>{Lt()}},"\u786E\u5B9A")))};var Le=(0,et.connect)(({})=>({}))(Ne)},66537:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(78241),Ke=he(8591),ot=he(43418),He=he(71418),it=he(95237),be=he(5112),yt=he(78550),ct=he(24905),Xe=he(61186),et=he.n(Xe),Je=he(70635),Ue=he(58130),Ee=he(42203),ee=he(13021),te=he(95759),ue=Object.defineProperty,oe=Object.defineProperties,de=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Pe=(bt,Qe,Dt)=>Qe in bt?ue(bt,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):bt[Qe]=Dt,Ne=(bt,Qe)=>{for(var Dt in Qe||(Qe={}))xe.call(Qe,Dt)&&Pe(bt,Dt,Qe[Dt]);if(ve)for(var Dt of ve(Qe))Ae.call(Qe,Dt)&&Pe(bt,Dt,Qe[Dt]);return bt},Le=(bt,Qe)=>oe(bt,de(Qe)),Re=(bt,Qe,Dt)=>new Promise((vt,kt)=>{var Rt=Ze=>{try{at(Dt.next(Ze))}catch(Mt){kt(Mt)}},Jt=Ze=>{try{at(Dt.throw(Ze))}catch(Mt){kt(Mt)}},at=Ze=>Ze.done?vt(Ze.value):Promise.resolve(Ze.value).then(Rt,Jt);at((Dt=Dt.apply(bt,Qe)).next())});function je(bt,Qe){const Dt=[];for(let vt=bt;vt<Qe;vt++)Dt.push(vt);return Dt}const Ge=bt=>{let Qe=new Date;const Dt=et()(bt).format("HH");if(et()(bt).isSame(et()(Qe),"day")){const vt=et()(Qe).format("HH"),kt=et()(Qe).format("mm");return{disabledHours:()=>je(0,24).splice(1,vt*1-1),disabledMinutes:()=>et()(bt).isSame(et()(Qe),"hour")&&Dt<=vt?je(0,60).splice(0,kt):je(60,60)}}else if(et()(bt).isSame(et()(),"day")){const vt=et()().format("HH"),kt=et()().format("mm");return{disabledHours:()=>je(0,24).splice(0,vt),disabledMinutes:()=>Dt<=vt?je(0,kt):je(60,60)}}else return!1},We=({exercise:bt,dispatch:Qe})=>{var Dt;const vt=(0,Ee.useParams)(),[kt]=Ie.default.useForm(),[Rt,Jt]=(0,ge.useState)(1),[at,Ze]=(0,ge.useState)([]),[Mt,Yt]=(0,ge.useState)(!0),[Vt,Ct]=(0,ge.useState)([]),[Nt,sn]=(0,ge.useState)(!0),[Nn,hn]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{bt.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&Xn()},[bt.actionTabs]);const Xn=Kn=>Re(void 0,null,function*(){var ti,Fn;Yt(!0);const Zt=yield Qe({type:"exercise/getEndGroups",payload:Le(Ne({},vt),{check_ids:[...((ti=bt.actionTabs.selectArrs)==null?void 0:ti.map(mt=>Number(mt)))||[]]})}),Xt=(Fn=Zt==null?void 0:Zt.course_info)==null?void 0:Fn.map((mt,tt)=>Le(Ne({},mt),{key:mt.course_group_id,title:mt.course_group_name,name:mt.course_group_name,disabled:!!mt.is_published}));Zt&&(Zt!=null&&Zt.course_info)&&(Ze([...Xt]),kt.setFieldsValue({end_time:et()(et()(new Date((0,Ue.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),Yt(!1)}),Ft=()=>Re(void 0,null,function*(){var Kn,ti,Fn,Zt;const Xt=Ne({},kt.getFieldsValue());if((Vt==null?void 0:Vt.length)<=0&&at.length>0&&!((Kn=bt.actionTabs)!=null&&Kn.unified_setting)){Ke.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}hn(!0);const mt={check_ids:[...((ti=bt.actionTabs.selectArrs)==null?void 0:ti.map(Wt=>Number(Wt)))||[]],group_ids:Vt};Nt||(mt.end_time=et()(Xt.end_time).format("YYYY-MM-DD HH:mm")),mt.group_ids=Vt.map(Wt=>Wt.course_group_id),(yield(0,Je.ZP)(`/api/courses/${vt.coursesId}/exercises/end_exercise.json`,{method:"post",body:mt})).status===0&&(Ke.ZP.success("\u64CD\u4F5C\u6210\u529F"),(0,Ue.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),Qe({type:"exercise/setActionTabs",payload:{}}),(Fn=bt==null?void 0:bt.actionTabs)!=null&&Fn.cb?(Zt=bt==null?void 0:bt.actionTabs)==null||Zt.cb():Qe({type:"classroomList/getClassroomExercisesList",payload:Ne({},bt.actionTabs.params)})),hn(!1)}),Un=()=>{Jt(1),Ze([]),Ct([]),sn(!0)};return ge.createElement(ot.default,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",open:bt.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Ft,width:680,confirmLoading:Nn||Mt,onCancel:()=>{Un(),Qe({type:"exercise/setActionTabs",payload:{}})}},ge.createElement(He.Z,{spinning:Mt},at&&ge.createElement(Ie.default,{form:kt},ge.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},ge.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"),ge.createElement(it.Z,{className:"mt20 mb10"},ge.createElement("span",{className:"mr10"},ge.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),ge.createElement(be.ZP.Group,{value:Nt,onChange:Kn=>{sn(Kn.target.value),Ct([])}},ge.createElement(be.ZP,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),ge.createElement(be.ZP,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),ge.createElement(Ie.default.Item,{name:"end_time",style:{marginTop:-3,visibility:Nt?"hidden":"visible"}},ge.createElement(yt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:et()((0,Ue.U6)(),"HH:mm")},disabledDate:Kn=>Kn&&Kn<et()().subtract(0,"days"),disabledTime:Ge,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),at.length>0&&!((Dt=bt.actionTabs)!=null&&Dt.unified_setting)&&ge.createElement(it.Z,{style:{marginBottom:"10px"}},ge.createElement("span",{className:"mr10"},ge.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),ge.createElement("div",null,at.length>0&&ge.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},ge.createElement("span",{style:{flex:1}},ge.createElement(ct.default,{checked:Vt.length===at.length,onChange:Kn=>{Vt.length===at.length?Ct([]):Ct(at)}},"\u5168\u9009")," "),ge.createElement("span",{style:{width:16}}),ge.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Vt.length||0,"\u4E2A\u5206\u73ED")),ge.createElement(te.Z,{data:at,selectedRowKeys:Vt,setSelectedRowKeys:Ct}))))))};jt.Z=(0,Ee.connect)(({exercise:bt})=>({exercise:bt}))(We)},40651:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Mt}});var ge=he(59301),Ie=he(78241),Ke=he(8591),ot=he(43418),He=he(71418),it=he(95237),be=he(5112),yt=he(88897),ct=he(78550),Xe=he(78673),et=he(24905),Je=he(3113),Ue=he(61186),Ee=he.n(Ue),ee=he(70635),te=he(58130),ue=he(42203),oe=he(79124),de=he(13021),ve=he(95759),xe=he(64950),Ae={contentInterval:"contentInterval___wAfD8",numberInput:"numberInput___R9kLf",minorRuleText:"minorRuleText___LjpSg",failedList:"failedList___KYTHd",name:"name___MqNtz",publish:"publish___TPl6Z"},Pe=he(83476),Ne=he(20387),Le=he(59301),Re=Object.defineProperty,je=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Dt=(Yt,Vt,Ct)=>Vt in Yt?Re(Yt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):Yt[Vt]=Ct,vt=(Yt,Vt)=>{for(var Ct in Vt||(Vt={}))bt.call(Vt,Ct)&&Dt(Yt,Ct,Vt[Ct]);if(We)for(var Ct of We(Vt))Qe.call(Vt,Ct)&&Dt(Yt,Ct,Vt[Ct]);return Yt},kt=(Yt,Vt)=>je(Yt,Ge(Vt)),Rt=(Yt,Vt,Ct)=>new Promise((Nt,sn)=>{var Nn=Ft=>{try{Xn(Ct.next(Ft))}catch(Un){sn(Un)}},hn=Ft=>{try{Xn(Ct.throw(Ft))}catch(Un){sn(Un)}},Xn=Ft=>Ft.done?Nt(Ft.value):Promise.resolve(Ft.value).then(Nn,hn);Xn((Ct=Ct.apply(Yt,Vt)).next())});function Jt(Yt,Vt){const Ct=[];for(let Nt=Yt;Nt<Vt;Nt++)Ct.push(Nt);return Ct}const at=Yt=>{let Vt=new Date;const Ct=Ee()(Yt).format("HH");if(Ee()(Yt).isSame(Ee()(Vt),"day")){const Nt=Ee()(Vt).format("HH"),sn=Ee()(Vt).format("mm");return{disabledHours:()=>Jt(0,24).splice(1,Nt*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",Ct,Nt),Ee()(Yt).isSame(Ee()(Vt),"hour")&&Ct<=Nt?Jt(0,60).splice(0,sn):Jt(60,60))}}else if(Ee()(Yt).isSame(Ee()(),"day")){const Nt=Ee()().format("HH"),sn=Ee()().format("mm");return{disabledHours:()=>Jt(0,24).splice(0,Nt),disabledMinutes:()=>Ct<=Nt?Jt(0,sn):Jt(60,60)}}else return!1},Ze=({exercise:Yt,dispatch:Vt})=>{var Ct,Nt,sn,Nn,hn,Xn,Ft,Un,Kn,ti,Fn,Zt,Xt,mt,tt,Wt,Lt,pt,nt,Oe,we,ye;const ke=(0,ue.useParams)(),[Ve]=Ie.default.useForm(),[Be,dt]=(0,ge.useState)(1),[on,mn]=(0,ge.useState)([]),[Et,Ot]=(0,ge.useState)(!0),[yn,Tn]=(0,ge.useState)([]),[qn,vi]=(0,ge.useState)(!0),[gi,wi]=(0,ge.useState)(!1),{workSetting:_n}=Yt,[yr,ir]=(0,ge.useState)(!1),[fr,xr]=(0,ge.useState)([]),[jr,Ki]=(0,ge.useState)([]),[Ir,Vi]=(0,ge.useState)(!1),[Me,Ai]=(0,ge.useState)(!1),[Xi,gr]=(0,ge.useState)(!1),[tr,uo]=(0,ge.useState)(null),[qr,Ni]=(0,ge.useState)(1),[an,en]=(0,ge.useState)({}),[Kt,Pt]=(0,ge.useState)({}),[Sn,bn]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{var gn;if(Yt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(gt(),Mn(),Yt.actionTabs.type===2)){const nn=(gn=Yt.actionTabs)==null?void 0:gn.unified_setting;vi(nn)}},[Yt.actionTabs]),(0,ge.useEffect)(()=>{var gn,nn,ui,Qt,Cn,$t,vn;(gn=_n==null?void 0:_n.exercise)!=null&&gn.publish_time&&Ve.setFieldsValue({publish_time:Ee()((nn=_n==null?void 0:_n.exercise)==null?void 0:nn.publish_time)}),(ui=_n==null?void 0:_n.exercise)!=null&&ui.end_time&&Ve.setFieldsValue({end_time:Ee()((Qt=_n==null?void 0:_n.exercise)==null?void 0:Qt.end_time)}),Ve.setFieldsValue({exercise_type:(Cn=_n==null?void 0:_n.exercise)==null?void 0:Cn.exercise_type,simulate_exercise_num:($t=_n==null?void 0:_n.exercise)==null?void 0:$t.simulate_exercise_num}),Ni((vn=_n==null?void 0:_n.exercise)==null?void 0:vn.exercise_type)},[Yt]);const zt=gn=>{var nn;const ui=Ve.getFieldValue("publish_time");if(!ui||(nn=_n==null?void 0:_n.exercise)!=null&&nn.publish_time)return;let Qt;gn===1?Qt=Ee()(ui).add(120,"minutes"):Qt=Ee()(ui).add(7,"days"),Ve.setFieldsValue({end_time:Qt})},gt=gn=>Rt(void 0,null,function*(){var nn,ui;Ot(!0);const Qt=yield(0,oe.N3)({coursesId:ke.coursesId,check_ids:[...((nn=Yt.actionTabs.selectArrs)==null?void 0:nn.map($t=>Number($t)))||[]]});console.log(Qt,"res");const Cn=((ui=Qt==null?void 0:Qt.course_info)==null?void 0:ui.map(($t,vn)=>kt(vt({},$t),{key:$t.course_group_id,title:$t.course_group_name,name:$t.course_group_name,disabled:!!$t.is_published})))||[];if((Qt==null?void 0:Qt.status)!==-1){mn([...Cn]);const $t=Ee()();Ve.setFieldsValue({publish_time:$t}),(Ve.getFieldValue("exercise_type")||1)===1?Ve.setFieldsValue({end_time:Ee()($t).add(120,"minutes")}):Ve.setFieldsValue({end_time:Ee()($t).add(7,"days")})}Ot(!1)});(0,ge.useEffect)(()=>{var gn,nn,ui,Qt,Cn,$t;if((gn=_n==null?void 0:_n.exercise)!=null&&gn.is_appoint_user){const vn=((ui=(nn=_n==null?void 0:_n.exercise)==null?void 0:nn.all_exercise_users)==null?void 0:ui.map(En=>En.user_id))||[];xr([...vn])}Vi((Qt=_n==null?void 0:_n.exercise)==null?void 0:Qt.is_appoint_user),Ai((Cn=_n==null?void 0:_n.exercise)==null?void 0:Cn.is_miss_exam_user),gr(($t=_n==null?void 0:_n.exercise)==null?void 0:$t.is_no_passing_user)},[_n]),(0,ge.useEffect)(()=>{var gn,nn,ui,Qt,Cn,$t,vn,En;(nn=(gn=Yt==null?void 0:Yt.actionTabs)==null?void 0:gn.selectArrs)!=null&&nn[0]&&Yt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&Vt({type:"exercise/getWorkSetting",payload:{categoryId:(Qt=(ui=Yt==null?void 0:Yt.actionTabs)==null?void 0:ui.selectArrs)==null?void 0:Qt[0],category:($t=(Cn=Yt==null?void 0:Yt.actionTabs)==null?void 0:Cn.selectArrs)==null?void 0:$t[0],coursesId:(En=(vn=Yt==null?void 0:Yt.actionTabs)==null?void 0:vn.params)==null?void 0:En.id}})},[(Ct=Yt==null?void 0:Yt.actionTabs)==null?void 0:Ct.selectArrs]);const xn=()=>Rt(void 0,null,function*(){var gn,nn,ui,Qt,Cn,$t,vn;const En=vt({},Ve.getFieldsValue()),Pn=Ee()(Ee()(En.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),Rn=Ee()(Ee()(En.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(Pn,Pn,33),Rn<=Pn){Ke.ZP.info("\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4");return}if((yn==null?void 0:yn.length)<=0&&!qn&&on.length>0&&!((gn=_n==null?void 0:_n.exercise)!=null&&gn.is_make_up_exercise)){Ke.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}const Yn=on.map(sr=>sr.key),Zn={check_ids:[...((nn=Yt.actionTabs.selectArrs)==null?void 0:nn.map(sr=>Number(sr)))||[]],end_time:Ee()(En.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Ee()(En.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:yn.map(sr=>sr.course_group_id),unified_setting:!yn.length,exercise_type:En.exercise_type,simulate_exercise_num:En.simulate_exercise_num};if(((ui=Yt.actionTabs.selectArrsAll)==null?void 0:ui.length)>0&&Yt.actionTabs.type===1&&(Zn.check_ids=[...((Cn=(Qt=Yt.actionTabs.selectArrsAll)==null?void 0:Qt.filter(sr=>!sr.high_resources_consume||sr.high_resources_consume_permission))==null?void 0:Cn.map(sr=>Number(sr==null?void 0:sr.id)))||[]]),($t=_n==null?void 0:_n.exercise)!=null&&$t.is_make_up_exercise){if(Ir&&fr.length<=0||!Ir&&!(Me||Xi)){Ke.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}Zn.is_appoint_user=Ir,Zn.is_miss_exam_user=Me,Zn.is_no_passing_user=Xi,Ir?Zn.make_up_exercise_users=fr.map(sr=>({user_id:sr})):Zn.make_up_exercise_user=[]}let{is_locked:ri,open_camera:Gn,screen_open:di,login_restrict:rr,ip_bind:Dr,ip_limit:ar,is_random:qt,id:Li,identity_verify:Ji,open_phone_video_recording:Ti}=_n==null?void 0:_n.exercise;if(Yt.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(ri||Gn||di||rr||Dr||ar=="pub"||ar=="inner"||Ji||Ti)&&En.exercise_type==2){if(Vt({type:"exercise/setActionTabs",payload:{}}),Yt.actionTabs.type==2){let sr=ot.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:"\u63D0\u793A",icon:null,content:Le.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",Le.createElement("span",{style:{color:"#FA6400"}}," ",(0,te.hi)(_n==null?void 0:_n.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:()=>Rt(void 0,null,function*(){var Nr;bn(!0);let cr=yield(0,Ne.Tr)({exercise_ids:[...((Nr=Yt.actionTabs.selectArrs)==null?void 0:Nr.map(Zi=>Number(Zi)))||[]],course_id:ke.coursesId,type:"exercise"});if((cr==null?void 0:cr.student_count)===0){if((yield pi(Zn))&&Yt.actionTabs.isRouter){sr.destroy(),ue.history.push(`/classrooms/${ke.coursesId}/exercise/${Li}/detail?random=${qt}&tabs=3&childrenTabs=2`);return}Vt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else Pt(Zn),en(cr)}),onCancel:()=>{sr.destroy(),bn(!1),pi(Zn)}})}else{let sr=ot.default.info({width:580,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",icon:null,content:Le.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:()=>Rt(void 0,null,function*(){var Nr;bn(!0);let cr=yield(0,Ne.Tr)({exercise_ids:[...((Nr=Yt.actionTabs.selectArrs)==null?void 0:Nr.map(Zi=>Number(Zi)))||[]],course_id:ke.coursesId,type:"exercise"});if((cr==null?void 0:cr.student_count)===0){if((yield pi(Zn))&&Yt.actionTabs.isRouter){ue.history.push(`/classrooms/${ke.coursesId}/exercise/${Li}/detail?random=${qt}&tabs=3&childrenTabs=2`);return}Vt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else Pt(Zn),en(cr)})})}return}let bi=yield(0,Ne.Tr)({exercise_ids:[...((vn=Yt.actionTabs.selectArrs)==null?void 0:vn.map(sr=>Number(sr)))||[]],course_id:ke.coursesId,type:"exercise"});(bi==null?void 0:bi.student_count)===0?pi(Zn):(Pt(Zn),en(bi))}),Ln=()=>{var gn;let nn=[...(gn=Yt.actionTabs.selectArrsAll)==null?void 0:gn.filter(ui=>ui.high_resources_consume&&!ui.high_resources_consume_permission)];(nn==null?void 0:nn.length)>0&&Yt.actionTabs.type===1&&ot.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:Le.createElement("div",null,Le.createElement("div",{className:Ae.tipcontent},Le.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",nn==null?void 0:nn.length," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),Le.createElement("div",{className:"mt20 mb20"},nn==null?void 0:nn.map(ui=>Le.createElement("div",{className:Ae.failedList,key:ui.id},Le.createElement("div",{className:Ae.name},ui==null?void 0:ui.exercise_name),Le.createElement("div",{className:Ae.publish,onClick:()=>{(0,te.xg)(`/classrooms/${ke.coursesId}/exercise/${ui.id}/detail?random=${ui.is_random}`)}},"\u53D1\u5E03"))))))})},pi=gn=>Rt(void 0,null,function*(){var nn,ui,Qt;if(Yt.actionTabs.type===1){let vn=[...(nn=Yt.actionTabs.selectArrsAll)==null?void 0:nn.filter(En=>En.high_resources_consume&&!En.high_resources_consume_permission)];if((vn==null?void 0:vn.length)==Yt.actionTabs.selectArrsAll.length){Vt({type:"exercise/setActionTabs",payload:{}}),Ln();return}}let Cn=!1;return wi(!0),(yield(0,ee.ZP)(`/api/courses/${ke.coursesId}/exercises/publish.json`,{method:"post",body:gn})).status===0&&((0,te.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Mn(),Ke.ZP.success("\u53D1\u5E03\u6210\u529F"),Vt({type:"exercise/setActionTabs",payload:{}}),(ui=Yt==null?void 0:Yt.actionTabs)!=null&&ui.cb?(Qt=Yt==null?void 0:Yt.actionTabs)==null||Qt.cb():Vt({type:"classroomList/getClassroomExercisesList",payload:vt({},Yt.actionTabs.params)}),Cn=!0,Yt.actionTabs.type===1&&Ln()),wi(!1),Cn}),Mn=()=>{dt(1),mn([]),Tn([])},It=(gn,nn,ui)=>{gn<=0?Ke.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"):(xr(nn),Ki(ui),ir(!1))};return Le.createElement(ot.default,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",open:Yt.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:660,onOk:xn,confirmLoading:gi||Et,onCancel:()=>{Mn(),Vt({type:"exercise/setActionTabs",payload:{}})}},Le.createElement(He.Z,{spinning:Et},on&&Le.createElement(Ie.default,{form:Ve},!!((Nt=Yt==null?void 0:Yt.actionTabs)!=null&&Nt.disabled)&&Le.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},Le.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"),!((sn=_n==null?void 0:_n.exercise)!=null&&sn.is_make_up_exercise)&&Le.createElement(Le.Fragment,null,Le.createElement(it.Z,null,Le.createElement("span",{className:"mr10",style:{lineHeight:"32px"}},Le.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u6A21\u5F0F"),Le.createElement(Ie.default.Item,{name:"exercise_type"},Le.createElement(be.ZP.Group,{disabled:((Nn=_n==null?void 0:_n.exercise)==null?void 0:Nn.exercise_status)>1,onChange:gn=>{Ni(gn.target.value),zt(gn.target.value)}},Le.createElement(be.ZP,{value:1},"\u6B63\u5F0F\u8003\u8BD5"),Le.createElement(be.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")))),qr==2&&Le.createElement(it.Z,{className:`${Ae.contentInterval}`},Le.createElement("span",{className:`${Ae.minorRuleText}`,style:{marginLeft:50}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),Le.createElement(Ie.default.Item,{name:"simulate_exercise_num"},Le.createElement(yt.Z,{className:Ae.numberInput,style:{width:145},precision:0,size:"middle",disabled:((hn=_n==null?void 0:_n.exercise)==null?void 0:hn.exercise_status)>1,min:1,max:999})),Le.createElement("span",null,"\u6B21",Le.createElement("span",{style:{color:"#999999"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),Le.createElement(it.Z,null,Le.createElement("span",{className:"mr10 mt5"},Le.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),Le.createElement(Ie.default.Item,{name:"publish_time"},Le.createElement(ct.default,{style:{width:170},disabledDate:gn=>gn&&gn<=Ee()().subtract(0,"days"),disabledTime:at,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})),Le.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),Le.createElement(Ie.default.Item,{name:"end_time"},Le.createElement(ct.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ee()((0,te.U6)(),"HH:mm")},disabledDate:gn=>gn&&gn<Ee()().subtract(0,"days"),disabledTime:at,format:"YYYY-MM-DD HH:mm",allowClear:!1}))),((Xn=_n==null?void 0:_n.exercise)==null?void 0:Xn.is_make_up_exercise)&&Le.createElement(Le.Fragment,null,Le.createElement(it.Z,null,Le.createElement("span",{style:{marginRight:"20px",fontSize:"14px",color:"3333",fontWeight:600}},"\u5F85\u8865\u8003\u5B66\u751F"),Le.createElement(Xe.Z,{checked:Ir,onChange:(gn,nn)=>{var ui,Qt,Cn,$t,vn;if(Vi(gn),gn)if((ui=_n==null?void 0:_n.exercise)!=null&&ui.is_appoint_user){const En=(Cn=(Qt=_n==null?void 0:_n.exercise)==null?void 0:Qt.all_exercise_users)==null?void 0:Cn.map(Pn=>Pn.user_id);xr([...En])}else xr([]),Ai(!1),gr(!1);else Ai(($t=_n==null?void 0:_n.exercise)==null?void 0:$t.is_miss_exam_user),gr((vn=_n==null?void 0:_n.exercise)==null?void 0:vn.is_no_passing_user)},disabled:((Ft=_n==null?void 0:_n.exercise)==null?void 0:Ft.exercise_status)!==1}),Le.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!Ir&&Le.createElement(it.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},Le.createElement(et.default,{checked:Me,disabled:((Un=_n==null?void 0:_n.exercise)==null?void 0:Un.exercise_status)!==1||((Kn=_n==null?void 0:_n.exercise)==null?void 0:Kn.miss_exam_count)<=0,onChange:gn=>{Ai(gn.target.checked)}},Le.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),Le.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{uo(1),Vi(!1),ir(!0)}},"\uFF08",`${(ti=_n==null?void 0:_n.exercise)==null?void 0:ti.miss_exam_count}\u4EBA`,"\uFF09"),Le.createElement(et.default,{checked:Xi,disabled:((Fn=_n==null?void 0:_n.exercise)==null?void 0:Fn.exercise_status)!==1||((Zt=_n==null?void 0:_n.exercise)==null?void 0:Zt.no_passing_count)<=0,onChange:gn=>{gr(gn.target.checked)}},Le.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),Le.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{uo(2),Vi(!1),ir(!0)}},"\uFF08",`${(Xt=_n==null?void 0:_n.exercise)==null?void 0:Xt.no_passing_count}\u4EBA`,"\uFF09")),Ir&&Le.createElement(it.Z,{className:"mt20",style:{paddingLeft:"90px"}},Le.createElement(Je.ZP,{type:"primary",ghost:!0,disabled:((mt=_n==null?void 0:_n.exercise)==null?void 0:mt.exercise_status)!==1,onClick:()=>{ir(!0),uo(void 0)}},Le.createElement("span",null,Le.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),Le.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),Le.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${fr.length||0} \u4EBA`,"\uFF09"))),Yt.actionTabs.type===2&&!((tt=_n==null?void 0:_n.exercise)!=null&&tt.is_make_up_exercise)&&Le.createElement(it.Z,{style:{marginBottom:"10px"}},Le.createElement("span",{className:"mr10"},Le.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7"),Le.createElement(be.ZP.Group,{value:qn,onChange:gn=>{vi(gn.target.value),Tn([])}},Le.createElement(be.ZP,{disabled:!!((Wt=Yt==null?void 0:Yt.actionTabs)!=null&&Wt.disabled)||on.some(gn=>gn==null?void 0:gn.is_published)||!((Lt=Yt==null?void 0:Yt.actionTabs)!=null&&Lt.manage_all_group),value:!0},"\u7EDF\u4E00\u53D1\u5E03"),Le.createElement(be.ZP,{disabled:on.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),on.length<=0&&Yt.actionTabs.type===2&&!((pt=_n==null?void 0:_n.exercise)!=null&&pt.is_make_up_exercise)&&Le.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"'),(Yt.actionTabs.type===1||!qn)&&!((nt=_n==null?void 0:_n.exercise)!=null&&nt.is_make_up_exercise)&&on.length>0&&Le.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},Le.createElement("span",{style:{flex:1}},Le.createElement(et.default,{checked:yn.length===on.length,onChange:gn=>{yn.length===on.length?Tn([]):Tn(on)}},"\u5168\u9009")),Le.createElement("span",{style:{width:16}}),Le.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",yn.length||0,"\u4E2A\u5206\u73ED")),(Yt.actionTabs.type===1||!qn)&&!((Oe=_n==null?void 0:_n.exercise)!=null&&Oe.is_make_up_exercise)&&on.length>0&&Le.createElement(ve.Z,{data:on,selectedRowKeys:yn,setSelectedRowKeys:Tn})),Le.createElement(xe.Z,{visible:yr,setVisible:ir,onK:It,selectKeys:fr,selectRows:jr,appointStudent:Ir,modalParams:tr,courseId:ke.categoryId||((ye=(we=Yt==null?void 0:Yt.actionTabs)==null?void 0:we.selectArrs)==null?void 0:ye[0])})),Le.createElement(Pe.Z,{resdata:an,type:"exercisepush",okloading:gi,oktext:(an==null?void 0:an.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:gn=>Rt(void 0,null,function*(){var nn,ui,Qt;wi(!0);let Cn=yield(0,ee.ZP)(`/api/courses/${ke.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[...((nn=Yt.actionTabs.selectArrs)==null?void 0:nn.map($t=>Number($t)))||[]]}});if(wi(!1),(Cn==null?void 0:Cn.status)===0)if(Sn){let $t=yield pi(Kt);if(ot.default.destroyAll(),$t&&Yt.actionTabs.isRouter){ue.history.push(`/classrooms/${ke.coursesId}/exercise/${(ui=_n==null?void 0:_n.exercise)==null?void 0:ui.id}/detail?random=${(Qt=_n==null?void 0:_n.exercise)==null?void 0:Qt.is_random}&tabs=3&childrenTabs=2`);return}Vt({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else pi(Kt)})}))};var Mt=(0,ue.connect)(({exercise:Yt})=>({exercise:Yt}))(Ze)},95759:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Xe}});var ge=he(59301),Ie=he(92832),Ke=he(24905),ot=he(95237),He={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=(et,Je,Ue)=>new Promise((Ee,ee)=>{var te=de=>{try{oe(Ue.next(de))}catch(ve){ee(ve)}},ue=de=>{try{oe(Ue.throw(de))}catch(ve){ee(ve)}},oe=de=>de.done?Ee(de.value):Promise.resolve(de.value).then(te,ue);oe((Ue=Ue.apply(et,Je)).next())}),Xe=({data:et,value:Je=[],handleChangePage:Ue,setSelectedRowKeys:Ee,selectedRowKeys:ee,onChange:te=()=>{}})=>{const[ue,oe]=(0,ge.useState)([]),[de,ve]=(0,ge.useState)([]),[xe,Ae]=(0,ge.useState)([]);let[Pe,Ne]=(0,ge.useState)(1),[Le,Re]=(0,ge.useState)();return(0,ge.useEffect)(()=>{oe(et),ve([]),Ae([])},[et]),(0,ge.useEffect)(()=>{Ee&&(ve(ee),Ae(ee))},[ee]),ge.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ge.createElement("div",{className:He.leftdiv},ge.createElement(Ie.default.Search,{size:"middle",onChange:je=>yt(void 0,null,function*(){oe(et.filter(Ge=>{var We;return(We=Ge==null?void 0:Ge.name)==null?void 0:We.includes(je.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ue.length===0&&ge.createElement(be.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),ge.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},ge.createElement(Ke.default.Group,{value:de.map(je=>`${je.course_group_id}`),onChange:je=>{Ee(ue.filter(Ge=>je.includes(`${Ge.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ue.map((je,Ge)=>ge.createElement(ot.Z,{key:je.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},ge.createElement(Ke.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:je.is_published,value:`${je.course_group_id}`},ge.createElement("div",{className:He.listClass},ge.createElement("span",{className:He.spantitle,style:{width:je.is_published?"108px":"170px"}},je.name),je.is_published&&ge.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),ge.createElement("div",{className:He.rightdiv},ge.createElement(Ie.default.Search,{onChange:je=>{Ae(de.filter(Ge=>Ge.name.includes(je.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),xe.length===0&&ge.createElement(be.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),xe.length>0&&ge.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},ge.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},xe.map((je,Ge)=>ge.createElement(ot.Z,{justify:"space-between",style:{marginTop:"10px"},key:je.course_group_id},ge.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},je.name),ge.createElement("img",{src:it,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{Ee(de.filter(We=>`${We.course_group_name}`!=`${je.course_group_name}`))}})))))))}},98445:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(31797),Ke=he(88897),ot=he(78241),He=he(43418),it=he(71418),be=he(2595),yt=he(92832),ct=he(95237),Xe=he(43604),et=he(3113),Je=he(79124),Ue=he(61186),Ee=he.n(Ue),ee=he(42203),te=he(58130),ue=he(77066),oe=he(2119),de=he(35427),ve=he(59301),xe=(Le,Re,je)=>new Promise((Ge,We)=>{var bt=vt=>{try{Dt(je.next(vt))}catch(kt){We(kt)}},Qe=vt=>{try{Dt(je.throw(vt))}catch(kt){We(kt)}},Dt=vt=>vt.done?Ge(vt.value):Promise.resolve(vt.value).then(bt,Qe);Dt((je=je.apply(Le,Re)).next())});const{Countdown:Ae}=Ie.default,Pe=({value:Le,onChange:Re,MaxMinutes:je})=>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(Ke.Z,{value:Le,onChange:Re,min:0,precision:0,max:je,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${je}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),Ne=({exercise:Le,successCb:Re,dispatch:je})=>{var Ge,We,bt,Qe;const Dt=(0,ee.useParams)(),[vt]=ot.default.useForm(),kt=ot.default.useWatch("time",vt),[Rt,Jt]=(0,ge.useState)(!1),at=(0,ge.useRef)(),{actionTabs:Ze}=Le,[Mt,Yt]=(0,ge.useState)(),[,Vt,Ct,Nt]=(0,de.U)(Je.n7,{id:Dt.categoryId}),[,sn,Nn]=(0,de.U)(Je.Cd,{});(0,ge.useEffect)(()=>{Le.actionTabs.key==="student-unlock"&&(Jt(!1),vt.resetFields())},[Le.actionTabs.key]);const hn=()=>new Promise(mt=>xe(void 0,null,function*(){var tt,Wt;return at.current=yield(0,ue.y)({ip_limit:(tt=Ze==null?void 0:Ze.exerciseParams)==null?void 0:tt.ip_limit,ip_bind:(Wt=Ze==null?void 0:Ze.exerciseParams)==null?void 0:Wt.ip_bind_type}),mt()})),Xn=()=>xe(void 0,null,function*(){var mt,tt,Wt,Lt,pt;yield vt.validateFields();const nt=vt.getFieldsValue();if(Jt(!0),(((mt=Ze==null?void 0:Ze.exerciseParams)==null?void 0:mt.ip_limit)!=="no"||(tt=Ze==null?void 0:Ze.exerciseParams)!=null&&tt.ip_bind_type)&&(yield hn()),(yield(0,Je.ZD)((Wt=Ze==null?void 0:Ze.exerciseParams)==null?void 0:Wt.id,{exercise_user_id:(Lt=Ze==null?void 0:Ze.exerciseParams)==null?void 0:Lt.exercise_user_id,unlock_key:nt.unlock_key,time:nt.time,ip:at.current})).status===0){if(Re){je({type:"exercise/setActionTabs",payload:{}}),Re();return}const we=Ze==null?void 0:Ze.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:Dt.coursesId,login:(pt=(0,oe.eY)())==null?void 0:pt.login,history,identity_verify:we.identity_verify,open_phone_video_recording:we.open_phone_video_recording,current_status:we.current_status}),je({type:"exercise/setActionTabs",payload:{}})}Jt(!1)}),Ft=[{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=((Ge=Ze==null?void 0:Ze.exerciseParams)==null?void 0:Ge.errorMessage)&&typeof((We=Ze==null?void 0:Ze.exerciseParams)==null?void 0:We.errorMessage)=="object";(0,ge.useEffect)(()=>{Le.actionTabs.key==="student-unlock"&&xe(void 0,null,function*(){const mt=yield Nn(Dt);yield Ct({}),mt.status||Yt(mt)})},[Le.actionTabs.key]);const{time:Kn,end_time:ti}=(Mt==null?void 0:Mt.exercise)||{},Fn=Nt!=null&&Nt.user_end_time?Ee()(Nt==null?void 0:Nt.user_end_time).add(1,"minutes"):Ee()(),Zt=Ee()(Nt==null?void 0:Nt.user_total_end_time)>Fn?Math.round(Ee().duration(Ee()(Nt==null?void 0:Nt.user_total_end_time).diff(Fn.startOf("minute"))).asMinutes()):0,Xt=((Nt==null?void 0:Nt.student_left_minutes)||0)+(kt||0);return ve.createElement(ve.Fragment,null,ve.createElement(He.default,{width:514,centered:!0,closable:!!((bt=Ze==null?void 0:Ze.exerciseParams)!=null&&bt.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"\u63D0\u793A",open:Le.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{je({type:"exercise/setActionTabs",payload:{}})}},ve.createElement(it.Z,{spinning:Vt||sn},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:[((Qe=Ze==null?void 0:Ze.exerciseParams)==null?void 0:Qe.errorMessage)||{}],columns:Ft}),ve.createElement("div",{className:""},ve.createElement(ot.default,{form:vt,layout:"vertical",autoComplete:"off"},ve.createElement(ot.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})),Kn!==-1?ve.createElement(ve.Fragment,null,ve.createElement(ot.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()(Nt==null?void 0:Nt.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},ve.createElement(Pe,{MaxMinutes:Zt})),ve.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",ve.createElement("span",{className:"ml5"},Vt||sn?"--":Xt),"\u5206\u949F",Xt!==0&&(Nt==null?void 0:Nt.user_end_time)&&ve.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",ve.createElement("span",{className:"ml5"},Ee()(Nt==null?void 0:Nt.user_end_time).add(kt||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()(ti).format("YYYY-MM-DD HH:mm")))),ve.createElement(ct.Z,{justify:"space-between",align:"middle"},ve.createElement(Xe.Z,null),ve.createElement(Xe.Z,null,ve.createElement(et.ZP,{loading:Rt,onClick:Xn},"\u8FDB\u5165\u8003\u8BD5"))))))};jt.Z=(0,ee.connect)(({exercise:Le})=>({exercise:Le}))(Ne)},80814:function(fn,jt,he){"use strict";he.d(jt,{w:function(){return it}});var ge=he(70635),Ie=he(43418),Ke=he(42203),ot=he(59301),He=(be,yt,ct)=>new Promise((Xe,et)=>{var Je=ee=>{try{Ee(ct.next(ee))}catch(te){et(te)}},Ue=ee=>{try{Ee(ct.throw(ee))}catch(te){et(te)}},Ee=ee=>ee.done?Xe(ee.value):Promise.resolve(ee.value).then(Je,Ue);Ee((ct=ct.apply(be,yt)).next())});const it=(be,yt,ct="\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E...",Xe=1,et=2)=>He(void 0,null,function*(){Xe===1&&(0,Ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:Xe===1?ct:"\u6B63\u5728\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}});const Je=yield(0,ge.ZP)(`/api/exercises/${yt}/user_appraise_status.json`,{method:"get",params:{appraise_type:Xe}});if((Je==null?void 0:Je.status)===-1)return(0,Ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}}),Promise.reject();let Ue={status:0};if((Je==null?void 0:Je.type)===2&&(Ue=yield(0,ge.ZP)(`/api/exercises/${yt}/create_appraise_students.json`,{method:"get"})),(0,Ke.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(Ue==null?void 0:Ue.status)===-1)return Promise.reject();if((Je==null?void 0:Je.type)===2){const Ee=()=>{Ke.history.replace(`/classrooms/${be}/exercise/${yt}/centralizeReview/${Ue==null?void 0:Ue.login}`)};if(Ie.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",keyboard:!1,onOk:Ee,onCancel:()=>{et===1&&Ke.history.replace(`/classrooms/${be}/exercise/${yt}/detail`)},content:ot.createElement("div",null,ot.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",ot.createElement("span",{onClick:Ee,className:"ml5 mr5 c-light-primary current"},"\u96C6\u4E2D\u9605\u5377"),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),ot.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"))}),et!==3)return Promise.reject()}if((Je==null?void 0:Je.type)===3&&(Ie.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",keyboard:!1,title:"\u63D0\u793A",onOk:()=>{et===1&&Ke.history.replace(`/classrooms/${be}/exercise/${yt}/detail`)},content:ot.createElement("div",null,(Je==null?void 0:Je.message)||"")}),et!==3)||(Je==null?void 0:Je.type)===4&&(Ie.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",title:"\u63D0\u793A",keyboard:!1,onOk:()=>{et===1&&Ke.history.replace(`/classrooms/${be}/exercise/${yt}/detail`)},content:ot.createElement("div",null,(Je==null?void 0:Je.message)||"")}),et!==3))return Promise.reject()})},9477:function(fn,jt,he){"use strict";he.r(jt),he.d(jt,{default:function(){return oa}});var ge=he(59301),Ie=he(42203),Ke=he(43418),ot=he(20834),He=he(8591),it=he(78485),be=he(25700),yt=he(81228),ct=he(3113),Xe=he(24905),et=he(61186),Je=he.n(et),Ue=he(2119),Ee=he(58130),ee=he(97267),te=he(70635),ue=he(99313),oe=he(78241),de=he(6848),ve=he(88897),xe=he(57809),Ae=he(92832),Pe=he(26724),Ne=he.n(Pe),Le=he(44809),Re=he(74809),je=he(18032),Ge=he(2567),We=he(66674),bt=he(72194),Qe=he(83476),Dt=he(20387),vt=he(59301),kt=Object.defineProperty,Rt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Yt=(xt,kn,Hn)=>kn in xt?kt(xt,kn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):xt[kn]=Hn,Vt=(xt,kn)=>{for(var Hn in kn||(kn={}))Ze.call(kn,Hn)&&Yt(xt,Hn,kn[Hn]);if(at)for(var Hn of at(kn))Mt.call(kn,Hn)&&Yt(xt,Hn,kn[Hn]);return xt},Ct=(xt,kn)=>Rt(xt,Jt(kn)),Nt=(xt,kn,Hn)=>new Promise((Ei,Si)=>{var $e=Qi=>{try{eo(Hn.next(Qi))}catch(Vr){Si(Vr)}},Fi=Qi=>{try{eo(Hn.throw(Qi))}catch(Vr){Si(Vr)}},eo=Qi=>Qi.done?Ei(Qi.value):Promise.resolve(Qi.value).then($e,Fi);eo((Hn=Hn.apply(xt,kn)).next())});const{TabPane:sn}=ue.default,Nn=({classroomList:xt,exercise:kn,loading:Hn,dispatch:Ei})=>{var Si;const $e=(0,Ie.useParams)(),Fi=(0,Ie.useLocation)(),[eo]=oe.default.useForm(),{brankList:Qi}=kn;let[Vr,pr]=(0,ge.useState)(!0),[Er,oo]=(0,ge.useState)(!1);const[bo,Ur]=(0,ge.useState)("myself");let[Io,lr]=(0,ge.useState)([]),[$i,Br]=(0,ge.useState)([]),[oi,Ro]=(0,ge.useState)(),[Xo,ya]=(0,ge.useState)([]);const na=(0,ge.useRef)(null),[Fa,Sa]=(0,ge.useState)(!1),[Pa,is]=(0,ge.useState)(""),[Co,ps]=(0,ge.useState)(""),[An,Yo]=(0,ge.useState)(!1),[Qs,yl]=(0,ge.useState)({}),Kr=[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0,align:"left",render:(Pr,fa,Mi)=>vt.createElement("div",{style:{display:"flex",alignItems:"center"}},vt.createElement(de.Z,{title:Pr},vt.createElement("div",{title:Pr,className:Re.Z.name},Pr)),(fa==null?void 0:fa.high_resources_consume)&&vt.createElement(bt.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"course_list_name",width:180,ellipsis:!0,align:"left",render:Pr=>vt.createElement(de.Z,{title:Pr},vt.createElement("span",null,Pr))},{title:"\u7C7B\u578B",dataIndex:"is_random",width:90,align:"left",render:Pr=>Pr?"\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:(Pr,fa)=>vt.createElement("a",{href:Pr?`/randompaper/detail/${fa.id}`:`/paperlibrary/see/${fa.id}?defaultActiveKey=1`,target:"_blank>"},"\u9884\u89C8")}],[Ao,Ka]=(0,ge.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,ge.useEffect)(()=>{kn.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&(Qo(),ya([]),da())},[kn.actionTabs.key]);const da=()=>Nt(void 0,null,function*(){const Pr=yield Ei({type:"paperlibrary/getTeachGroupData"});Br(Pr)}),vo=Pr=>{const fa=parseInt(Pr);return isNaN(fa)?"":fa},Qo=()=>Nt(void 0,null,function*(){var Pr,fa;if(Vr){++Ao.page,pr(!1);const Mi=yield Ei({type:"exercise/getBrankList",payload:Ct(Vt({},Ao),{search:(Pr=Ao.search)==null?void 0:Pr.trim()})});Io=Mi!=null&&Mi.object_list?[...Io.concat(Mi==null?void 0:Mi.object_list)]:Io,Ao.filter==="public"?Ro(Mi.is_teacher):Ro(!0),((fa=Mi.object_list)==null?void 0:fa.length)<Ao.limit?pr(!1):pr(!0),lr([...Io])}}),Qa=Pr=>{na.current.scrollTop=0,Io=[],Ao.page=0,Ao.group_id=Pr,Vr=!0,ya([]),Ka(Vt({},Ao)),Qo()},to={selectedRowKeys:Xo,onChange:Pr=>{ya(Pr)},type:"radio"},Do=()=>{Ka(Vt({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),lr([]),pr(!0),Ur("myself"),Ei({type:"exercise/setActionTabs",payload:{}}),oo(!1)},[Bo,Yi,ba,or]=(0,Ge.P)(),Xr=Pr=>Nt(void 0,null,function*(){let fa=!1;Io.forEach(rs=>{Xo.includes(rs.id)&&(fa=rs.is_random)});const Mi=Pr.map(rs=>({shixun_id:rs.id,is_use:rs.is_use,is_copy:rs.is_copy}));if(!fa){Yo(!0);const rs=yield Ei({type:"exercise/saveBanks",payload:{course_id:$e.coursesId,category_id:($e==null?void 0:$e.categoryId)||null,object_type:"examination_bank",bank_id:Xo,shixuns_info:Mi}});Yo(!1),(rs==null?void 0:rs.status)===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),Ei({type:"classroomList/getClassroomExercisesList",payload:Vt({},kn.actionTabs.params)}),Ei({type:"classroomList/getClassroomLeftMenus",payload:{id:$e.coursesId}}),is(`/classrooms/${$e.coursesId}/exercise/${rs.exercise_id}/detail?random=${rs.is_random}&tabs=3`),ps(`/classrooms/${$e.coursesId}/exercise/add/${rs.exercise_id}?random=${rs.is_random}&type=2`),Sa(!0),He.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F"),Yi(),Do());return}Yo(!0),setTimeout(()=>{Yo(!1)},500),Ei({type:"exercise/setActionTabs",payload:{}});let ga=1,Ua=Ke.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:vt.createElement("div",{className:Re.Z.modalColumn},vt.createElement("div",{className:Re.Z.modalRow},vt.createElement("sup",{className:Re.Z.sup},"*"),vt.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),vt.createElement(ve.Z,{parser:vo,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:ga,onChange:rs=>{ga=rs;const Sl=document.getElementById("model_error");ga<1||ga>50?Sl.style.display="block":Sl.style.display="none"}})),vt.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:Do,onOk:()=>Nt(void 0,null,function*(){if(ga<1||ga>50){const Sl=document.getElementById("model_error");return Sl.style.display="block",Promise.reject()}Ua.update({cancelButtonProps:{disabled:!0}});const rs=yield Ei({type:"exercise/saveBanks",payload:{course_id:$e.coursesId,object_type:"examination_bank",bank_id:Xo,shixuns_info:Mi,num:ga}});Ua.update({cancelButtonProps:{disabled:!1}}),rs&&rs.status===0?((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),Ke.default.destroyAll(),Ei({type:"classroomList/getClassroomExercisesList",payload:Vt({},kn.actionTabs.params)}),Do(),Yi(),He.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F")):(Do(),Yi())})})});return vt.createElement(vt.Fragment,null,vt.createElement(Ke.default,{centered:!0,width:1012,title:"\u9009\u62E9\u8BD5\u5377",maskClosable:!1,destroyOnClose:!0,open:kn.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Er,bodyStyle:{minHeight:200},wrapClassName:Re.Z.warpModal,onOk:()=>Nt(void 0,null,function*(){var Pr;if(!Xo.length){He.ZP.error("\u8BF7\u9009\u62E9\u8BD5\u5377");return}oo(!0);let fa=!1,Mi=!1;if(Io.forEach(Ua=>{Xo.includes(Ua.id)&&Ua.need_authorize&&(fa=Ua.need_authorize),Xo.includes(Ua.id)&&(Mi=Ua.is_random)}),fa){(0,je.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}let ga=yield(0,Dt.Tr)({id:`${Xo[0]}`,course_id:(Pr=xt.detailTopBanner)==null?void 0:Pr.course_id,type:"examination_bank"});oo(!1),(ga==null?void 0:ga.student_count)===0?Xr([]):yl(ga)}),onCancel:Do},vt.createElement(ue.default,{activeKey:bo,onTabClick:Pr=>Nt(void 0,null,function*(){na.current.scrollTop=0,Io=[],bo!==Pr&&ya([]),Ur(Pr),Ao.page=0,Ao.filter=Pr,Ao.group_id=null,Vr=!0,Qo()})},vt.createElement(sn,{tab:vt.createElement("span",null,"\u6211\u7684\u8BD5\u5377\u5E93"),key:"myself"}),vt.createElement(sn,{tab:vt.createElement("span",null,"\u6559\u7814\u5171\u4EAB"),key:"teacher"}),vt.createElement(sn,{tab:vt.createElement("span",null,"\u516C\u5171\u8BD5\u5377\u5E93"),key:"public"})),vt.createElement("div",{className:Re.Z.tabSearch},bo==="teacher"&&vt.createElement(xe.default,{value:Ao.group_id,onChange:Qa,size:"middle",style:{width:200,marginRight:30}},vt.createElement(xe.default.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),(Si=$i==null?void 0:$i.groups)==null?void 0:Si.map(Pr=>vt.createElement(xe.default.Option,{key:Pr==null?void 0:Pr.group_id,value:Pr==null?void 0:Pr.group_id},Pr==null?void 0:Pr.name))),vt.createElement(Ae.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:Ao.search,onChange:Pr=>{Ao.search=Pr.target.value,Ka(Vt({},Ao))},onSearch:Pr=>{na.current.scrollTop=0,Io=[],Ao.page=0,Vr=!0,ya([]),Pr&&(0,We.tk)({name:Pr,copywriting:Pr,position:"Exercise"}),Qo()}})),vt.createElement("div",{ref:na,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!oi&&bo==="public"&&vt.createElement("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"}},vt.createElement("span",null,"\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u624D\u80FD\u8BBF\u95EE\u516C\u5171\u8BD5\u5377\u5E93\u8D44\u6E90"),vt.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")),vt.createElement(Ne(),{initialLoad:!1,pageStart:0,loadMore:()=>{Qo()},hasMore:Vr,useWindow:!1},kn.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&oi&&vt.createElement(Le.Z,{className:Re.Z.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:Io,onRow:Pr=>({onClick:()=>{ya([Pr==null?void 0:Pr.id])}}),resColumns:Kr,rowSelection:to})))),vt.createElement(Ke.default,{title:"\u63D0\u793A",open:Fa,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:vt.createElement("div",null,vt.createElement(ct.ZP,{onClick:()=>{Sa(!1),Ie.history.push(Co)}},"\u4FEE\u6539\u8BD5\u5377"),vt.createElement(ct.ZP,{type:"primary",onClick:()=>{Ie.history.push(Pa),Sa(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Sa(!1)}},vt.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")),vt.createElement(Qe.Z,{resdata:Qs,type:"exercise",okloading:An,oktext:(Qs==null?void 0:Qs.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Pr=>{Xr(Pr)}}),vt.createElement(Ge.Z,{inPaper:!0,visible:Bo,onCancel:Yi,onOk:Xr,renderData:ba,modalType:"multiple",type:"examination_bank"}))};var hn=(0,Ie.connect)(({exercise:xt,loading:kn,classroomList:Hn})=>({exercise:xt,loading:kn,classroomList:Hn}))(Nn),Xn=he(40651),Ft=he(66537),Un=Object.defineProperty,Kn=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,Zt=(xt,kn,Hn)=>kn in xt?Un(xt,kn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):xt[kn]=Hn,Xt=(xt,kn)=>{for(var Hn in kn||(kn={}))ti.call(kn,Hn)&&Zt(xt,Hn,kn[Hn]);if(Kn)for(var Hn of Kn(kn))Fn.call(kn,Hn)&&Zt(xt,Hn,kn[Hn]);return xt},mt=(xt,kn,Hn)=>new Promise((Ei,Si)=>{var $e=Qi=>{try{eo(Hn.next(Qi))}catch(Vr){Si(Vr)}},Fi=Qi=>{try{eo(Hn.throw(Qi))}catch(Vr){Si(Vr)}},eo=Qi=>Qi.done?Ei(Qi.value):Promise.resolve(Qi.value).then($e,Fi);eo((Hn=Hn.apply(xt,kn)).next())});const tt=({exercise:xt,dispatch:kn})=>{const Hn=(0,Ie.useParams)();return ge.createElement(Ke.default,{centered:!0,title:"\u63D0\u793A",open:xt.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>mt(void 0,null,function*(){(yield(0,te.ZP)(`/api/courses/${Hn.coursesId}/exercises/set_public.json`,{method:"post",body:{check_ids:[...xt.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BBE\u4E3A\u516C\u5F00"]),He.ZP.success("\u64CD\u4F5C\u6210\u529F"),kn({type:"exercise/setActionTabs",payload:{}}),kn({type:"classroomList/getClassroomExercisesList",payload:Xt({},xt.actionTabs.params)}))}),onCancel:()=>{kn({type:"exercise/setActionTabs",payload:{}})}},ge.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",ge.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var Wt=(0,Ie.connect)(({exercise:xt})=>({exercise:xt}))(tt),Lt=he(38333),pt=Object.defineProperty,nt=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ye=(xt,kn,Hn)=>kn in xt?pt(xt,kn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):xt[kn]=Hn,ke=(xt,kn)=>{for(var Hn in kn||(kn={}))Oe.call(kn,Hn)&&ye(xt,Hn,kn[Hn]);if(nt)for(var Hn of nt(kn))we.call(kn,Hn)&&ye(xt,Hn,kn[Hn]);return xt},Ve=(xt,kn)=>{var Hn={};for(var Ei in xt)Oe.call(xt,Ei)&&kn.indexOf(Ei)<0&&(Hn[Ei]=xt[Ei]);if(xt!=null&&nt)for(var Ei of nt(xt))kn.indexOf(Ei)<0&&we.call(xt,Ei)&&(Hn[Ei]=xt[Ei]);return Hn},Be=(xt,kn,Hn)=>new Promise((Ei,Si)=>{var $e=Qi=>{try{eo(Hn.next(Qi))}catch(Vr){Si(Vr)}},Fi=Qi=>{try{eo(Hn.throw(Qi))}catch(Vr){Si(Vr)}},eo=Qi=>Qi.done?Ei(Qi.value):Promise.resolve(Qi.value).then($e,Fi);eo((Hn=Hn.apply(xt,kn)).next())});const dt=xt=>{var kn=xt,{exercise:Hn,dispatch:Ei,user:Si}=kn,$e=Ve(kn,["exercise","dispatch","user"]),Fi,eo;const Qi=(0,Ie.useParams)(),[Vr,pr]=(0,ge.useState)(!1),[Er,oo]=(0,ge.useState)(!1),bo=(0,ge.useRef)(null);(0,ge.useEffect)(()=>{var Io,lr;if(Hn.actionTabs.key==="\u6279\u91CF\u5220\u9664"){if((0,Ue.j5)()){oo(!0);return}const $i={hasNum:0,noHasNum:0};(lr=(Io=Hn==null?void 0:Hn.actionTabs)==null?void 0:Io.selectArrsAll)==null||lr.map(Br=>{var oi;Br.author_login===((oi=Si.userInfo)==null?void 0:oi.login)?++$i.hasNum:++$i.noHasNum}),$i.noHasNum>0?Ke.default.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:ge.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",ge.createElement("span",{className:"c-blue"},$i.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",ge.createElement("span",{className:"c-red"},$i.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",ge.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:()=>{Ur()}}):oo(!0)}else oo(!1)},[Hn.actionTabs.key]);const Ur=()=>{Ei({type:"exercise/setActionTabs",payload:{}})};return ge.createElement(Ke.default,{centered:!0,title:"\u63D0\u793A",open:Er,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Vr,destroyOnClose:!0,onOk:()=>Be(void 0,null,function*(){var Io;if((Io=bo.current)!=null&&Io.onVerify())return;pr(!0);const lr=yield(0,te.ZP)(`/api/courses/${Qi.coursesId}/exercises/destroys.json`,{method:"post",body:{check_ids:[...Hn.actionTabs.selectArrs]}});pr(!1),lr.status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u5220\u9664"]),He.ZP.success("\u5220\u9664\u6210\u529F"),Ei({type:"exercise/setActionTabs",payload:{}}),Ei({type:"classroomList/getClassroomExercisesList",payload:ke({},Hn.actionTabs.params)}),Ei({type:"classroomList/getClassroomLeftMenus",payload:ke({},Hn.actionTabs.params)}))}),onCancel:()=>{Ei({type:"exercise/setActionTabs",payload:{}})}},!((Fi=Hn==null?void 0:Hn.actionTabs)!=null&&Fi.status)||!["\u672A\u5F00\u59CB"].includes((eo=Hn==null?void 0:Hn.actionTabs)==null?void 0:eo.status)?ge.createElement(ge.Fragment,null,ge.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"),ge.createElement(Lt.Z,{ref:Io=>bo.current=Io})):ge.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 on=(0,Ie.connect)(({exercise:xt,user:kn})=>({exercise:xt,user:kn}))(dt),mn=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,yn=(xt,kn)=>{var Hn={};for(var Ei in xt)Et.call(xt,Ei)&&kn.indexOf(Ei)<0&&(Hn[Ei]=xt[Ei]);if(xt!=null&&mn)for(var Ei of mn(xt))kn.indexOf(Ei)<0&&Ot.call(xt,Ei)&&(Hn[Ei]=xt[Ei]);return Hn},Tn=(xt,kn,Hn)=>new Promise((Ei,Si)=>{var $e=Qi=>{try{eo(Hn.next(Qi))}catch(Vr){Si(Vr)}},Fi=Qi=>{try{eo(Hn.throw(Qi))}catch(Vr){Si(Vr)}},eo=Qi=>Qi.done?Ei(Qi.value):Promise.resolve(Qi.value).then($e,Fi);eo((Hn=Hn.apply(xt,kn)).next())});const qn=xt=>{var kn=xt,{exercise:Hn,dispatch:Ei}=kn,Si=yn(kn,["exercise","dispatch"]);const $e=(0,Ie.useParams)();return $e.id=$e.coursesId,(0,ge.useEffect)(()=>{Hn.actionTabs.key==="\u52A0\u5165\u8BD5\u5377\u5E93"&&new Promise(()=>Tn(void 0,null,function*(){(yield(0,te.ZP)(`/api/courses/${$e.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...Hn.actionTabs.selectArrs]}})).status===0&&((0,Ee.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u52A0\u5165\u8BD5\u5377\u5E93"]),He.ZP.success("\u5DF2\u52A0\u5165\u4E2A\u4EBA\u8BD5\u5377\u5E93\uFF0C\u8BD5\u9898\u540C\u6B65\u52A0\u5165\u81F3\u4E2A\u4EBA\u9898\u5E93")),Ei({type:"exercise/setActionTabs",payload:{}})}))},[Hn.actionTabs.key]),ge.createElement(ge.Fragment,null)};var vi=(0,Ie.connect)(({exercise:xt})=>({exercise:xt}))(qn),gi=he(60324),wi=he(2595),_n={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"},yr=Object.defineProperty,ir=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,jr=(xt,kn,Hn)=>kn in xt?yr(xt,kn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):xt[kn]=Hn,Ki=(xt,kn)=>{for(var Hn in kn||(kn={}))fr.call(kn,Hn)&&jr(xt,Hn,kn[Hn]);if(ir)for(var Hn of ir(kn))xr.call(kn,Hn)&&jr(xt,Hn,kn[Hn]);return xt};const Ir=xt=>React.createElement("svg",Ki({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},xt),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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My44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiLz48L2c+PC9nPjwvc3ZnPg==",Me=Object.defineProperty,Ai=Object.getOwnPropertySymbols,Xi=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable,tr=(xt,kn,Hn)=>kn in xt?Me(xt,kn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):xt[kn]=Hn,uo=(xt,kn)=>{for(var Hn in kn||(kn={}))Xi.call(kn,Hn)&&tr(xt,Hn,kn[Hn]);if(Ai)for(var Hn of Ai(kn))gr.call(kn,Hn)&&tr(xt,Hn,kn[Hn]);return xt};const qr=xt=>React.createElement("svg",uo({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},xt),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 Ni="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBmaWxsPSIjMjI5QkZGIiBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiIGZpbGw9IiMwMTUyZDkiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiIGZpbGw9IiMwMTUyZDkiLz48L2c+PC9nPjwvc3ZnPg==",an=he(41727),en=he(12971),Kt=he(56017),Pt=he(80814),Sn=he(98445),bn=he(69429),zt=Object.defineProperty,gt=Object.getOwnPropertySymbols,xn=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,pi=(xt,kn,Hn)=>kn in xt?zt(xt,kn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):xt[kn]=Hn,Mn=(xt,kn)=>{for(var Hn in kn||(kn={}))xn.call(kn,Hn)&&pi(xt,Hn,kn[Hn]);if(gt)for(var Hn of gt(kn))Ln.call(kn,Hn)&&pi(xt,Hn,kn[Hn]);return xt};const It=xt=>React.createElement("svg",Mn({width:18,height:13,xmlns:"http://www.w3.org/2000/svg"},xt),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 gn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi4yODggNC45NSA1LjQ1NiAxLjcyNSAzLjA4NS0xLjAxNmMuMTc2LS4wNTguMTc2LjAzOS4wMTMuMTY3LS42ODYuNTQ0LTEuMjg2IDEuMjQtMS42MTMgMi4wNzZhNC42NzkgNC42NzkgMCAwIDAgMi40MTQgMi41NDJsLTEuMzEzIDEuMzExLTIuNzQ4Ljg2My01LjI5NC0xLjc2M1Y0Ljk1Wk03LjY2M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wnPropertyDescriptors,$t=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,Pn=(xt,kn,Hn)=>kn in xt?ui(xt,kn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):xt[kn]=Hn,Rn=(xt,kn)=>{for(var Hn in kn||(kn={}))vn.call(kn,Hn)&&Pn(xt,Hn,kn[Hn]);if($t)for(var Hn of $t(kn))En.call(kn,Hn)&&Pn(xt,Hn,kn[Hn]);return xt},Yn=(xt,kn)=>Qt(xt,Cn(kn)),Zn=(xt,kn,Hn)=>new Promise((Ei,Si)=>{var $e=Qi=>{try{eo(Hn.next(Qi))}catch(Vr){Si(Vr)}},Fi=Qi=>{try{eo(Hn.throw(Qi))}catch(Vr){Si(Vr)}},eo=Qi=>Qi.done?Ei(Qi.value):Promise.resolve(Qi.value).then($e,Fi);eo((Hn=Hn.apply(xt,kn)).next())});const ri=({v:xt,k:kn,match:Hn,selectArrs:Ei,setSelectArrs:Si,dispatch:$e,params:Fi,classroomList:eo,batchStatus:Qi,manageAllGroup:Vr,user:pr})=>{var Er,oo,bo,Ur,Io,lr,$i,Br,oi,Ro,Xo,ya,na,Fa,Sa,Pa,is,Co;const[ps,An]=(0,ge.useState)([]),[Yo,Qs]=(0,ge.useState)(!1),yl=(0,ge.useRef)(),Kr=(0,ge.useRef)();var Ao=!1;const Ka="YYYY-MM-DD",da=Je()("2020-11-15",Ka);function vo(){return Zn(this,null,function*(){console.log(Fi,222);let or=yield(0,te.ZP)(`/api/courses/${Fi==null?void 0:Fi.coursesId}/exercises/group_use_list.json`,{method:"get",params:Yn(Rn({},Fi),{id:xt.id})});An((or==null?void 0:or.groups)||[])})}const Qo=()=>Ke.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:nn.createElement(nn.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")});xt!=null&&xt.appraise_label&&(Ao=!0);const Qa=(or,Xr=!1)=>{var Pr;Ie.history.push(`/classrooms/${Fi.coursesId}/exercisenotice/${or.id}/users/${(Pr=(0,Ue.eY)())==null?void 0:Pr.login}`)},to=[{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:(or,Xr)=>Xr.exercise_status===or,render:(or,Xr)=>nn.createElement("div",null,or===1&&nn.createElement("span",null,nn.createElement("i",{className:_n.dot,style:{background:"#C3C3C3"}}),"\u672A\u5F00\u59CB"),or===2&&nn.createElement("span",null,nn.createElement("i",{className:_n.dot,style:{background:"#4EACFF"}}),"\u8003\u8BD5\u4E2D"),or===3&&nn.createElement("span",null,nn.createElement("i",{className:_n.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:Fi.order_by==="publish_time"?Fi.sort_direction==="desc"?"descend":"ascend":null},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:Fi.order_by==="end_time"?Fi.sort_direction==="desc"?"descend":"ascend":null},{title:"\u63D0\u4EA4\u4EBA\u6570",dataIndex:"exercise_answer",key:"exercise_answer",align:"center",width:80,render:(or,Xr)=>Xr.exercise_status===1?"-":nn.createElement("span",null,or,"/",Xr.exercise_users)},{title:"\u5F85\u8BC4\u9605\u8BD5\u5377",dataIndex:"unreview_count",key:"unreview_count",align:"center",width:90,render:(or,Xr)=>Xr.exercise_status===1?"-":or===0?nn.createElement("span",{style:{cursor:"no-drop",color:"#999999"}},or):nn.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${Fi==null?void 0:Fi.coursesId}/exercise/${xt==null?void 0:xt.id}/detail?random=false&exercise_group_id=${Xr.course_group_id}`)},or)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",key:"action",width:60,render:(or,Xr)=>Xr.exercise_status===1?nn.createElement("img",{style:{cursor:"not-allowed"},src:Vi}):nn.createElement(de.Z,{title:"\u8BC4\u9605"},nn.createElement("a",{onClick:()=>(0,Ee.xg)(`/classrooms/${Fi==null?void 0:Fi.coursesId}/exercise/${xt==null?void 0:xt.id}/detail?random=false&exercise_group_id=${Xr.course_group_id}`)},nn.createElement("img",{src:Ni})))}],Do=or=>{if(Ao)return nn.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style mr10"},"\u96C6\u4E2D\u9605\u5377");if(or!=null&&or.includes("\u672A\u5F00\u59CB"))return nn.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style mr10"},"\u672A\u5F00\u59CB");if(or!=null&&or.includes("\u8003\u8BD5\u4E2D"))return nn.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style mr10"},"\u8003\u8BD5\u4E2D");if(or!=null&&or.includes("\u5DF2\u622A\u6B62"))return nn.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style mr10"},"\u5DF2\u622A\u6B62");if(or!=null&&or.includes("\u5BFC\u5165"))return nn.createElement("span",{className:"export mr10"},"\u5BFC\u5165")},Bo=()=>{const or=(xt==null?void 0:xt.simulate_exercise_num)-(xt==null?void 0:xt.user_simulate_num);return or>=0?or:0},Yi=(or=xt)=>{var Xr,Pr,fa;if(or!=null&&or.is_encrypt){$e({type:"classroomList/setActionTabs",payload:{open:"\u89E3\u5C01",id:or==null?void 0:or.id,phone:(Xr=pr==null?void 0:pr.userInfo)==null?void 0:Xr.phone,login:(Pr=pr==null?void 0:pr.userInfo)==null?void 0:Pr.login}});return}(fa=pr==null?void 0:pr.userInfo)!=null&&fa.phone?$e({type:"classroomList/setActionTabs",payload:{open:"\u8BD5\u5377\u5C01\u5B58",id:or==null?void 0:or.id}}):$e({type:"classroomList/setActionTabs",payload:{open:"\u624B\u673A\u53F7\u7ED1\u5B9A"}})},ba=or=>{var Xr,Pr,fa;if(((Xr=pr==null?void 0:pr.userInfo)==null?void 0:Xr.login)!==(xt==null?void 0:xt.author_login)){He.ZP.warning("\u8BD5\u5377\u5DF2\u5C01\u5B58\uFF0C\u8BF7\u8054\u7CFB\u8BD5\u5377\u6240\u6709\u8005\u8FDB\u884C\u89E3\u5C01~");return}$e({type:"classroomList/setActionTabs",payload:{open:"\u63D0\u793A",id:xt==null?void 0:xt.id,phone:(Pr=pr==null?void 0:pr.userInfo)==null?void 0:Pr.phone,login:(fa=pr==null?void 0:pr.userInfo)==null?void 0:fa.login,onFinish:or}})};return nn.createElement("div",{className:_n.listItem,onClick:or=>{const Xr=()=>{(!(0,Ue.GJ)()||(0,Ue.GJ)()&&Kr.current&&!Kr.current.contains(or.target))&&(0,Ee.xg)(`/classrooms/${Fi.coursesId}/exercise/${xt.id}/detail?random=${xt.is_random}`)};if(xt!=null&&xt.is_encrypt){ba(Xr);return}Xr()}},(0,Ue.GJ)()&&nn.createElement("span",{ref:Kr},nn.createElement(Xe.default,{checked:Ei.includes(xt.id),value:xt.id,style:{padding:"10px"},onClick:or=>{or.stopPropagation()},disabled:(xt==null?void 0:xt.is_encrypt)||(xt==null?void 0:xt.is_make_up_exercise),onChange:or=>{let Xr=Ei.indexOf(xt.id);Ei.indexOf(xt.id)>-1?Si(Ei.filter(Pr=>Pr!==xt.id)):Si(Ei.concat(xt.id))}})),nn.createElement("div",{className:_n.info},nn.createElement("div",{className:_n.title},nn.createElement("div",{className:_n.titleLeft,style:{marginRight:15}},Do(xt==null?void 0:xt.exercise_tips),(xt==null?void 0:xt.is_make_up_exercise)&&nn.createElement("img",{src:an,width:44,height:24,style:{marginRight:10}}),nn.createElement(de.Z,{title:xt.exercise_name},nn.createElement("span",{className:_n.name},xt.exercise_name)),(xt==null?void 0:xt.high_resources_consume)&&!(xt!=null&&xt.high_resources_consume_permission)&&nn.createElement(bt.Z,{type:"exercise",style:{marginLeft:10}}),(xt==null?void 0:xt.high_resources_consume)&&(xt==null?void 0:xt.high_resources_consume_permission)&&nn.createElement("span",{className:_n.authorized},"\u5DF2\u6388\u6743"),((Er=xt==null?void 0:xt.exercise_tips)==null?void 0:Er.includes("\u5DF2\u622A\u6B62"))&&((oo=eo==null?void 0:eo.detailTopBanner)==null?void 0:oo.forbid_end_exercise)&&nn.createElement(de.Z,{title:"\u5DF2\u5BF9\u5B66\u751F\u9690\u85CF"},nn.createElement("img",{src:gn,width:20,className:"ml10"})),!xt.is_public&&(0,Ue.GJ)()&&nn.createElement(de.Z,{title:"\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"},nn.createElement("span",{className:"iconfont icon-suo1 ml10 mr10 c-light-black font12"})),(xt==null?void 0:xt.exercise_type)==2&&nn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex",alignItems:"center"},className:_n.moni},nn.createElement("img",{src:en,width:18,height:14}),"\u6A21\u62DF\u8003\u8BD5"),((bo=xt==null?void 0:xt.exercise_tips)==null?void 0:bo.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"))&&nn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex"},className:"tag-style-fzb iconfont icon-fangzuobi"},"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"),((Ur=xt==null?void 0:xt.exercise_tips)==null?void 0:Ur.includes("\u5DF2\u622A\u6B62"))&&((Io=xt==null?void 0:xt.exercise_tips)==null?void 0:Io.includes("\u672A\u63D0\u4EA4"))&&nn.createElement("span",{style:{flexShrink:0,backgroundColor:"#B8B8B8"},className:"tag-style ml10"},"\u672A\u63D0\u4EA4"),(xt==null?void 0:xt.is_encrypt)&&nn.createElement(de.Z,{title:"\u8BD5\u5377\u5DF2\u52A0\u5BC6"}," ",nn.createElement("img",{src:bn,width:21,className:"ml10",style:{marginTop:"-8px"}})," ")),nn.createElement("div",{className:_n.titleRight,onClick:or=>{or.stopPropagation(),or.preventDefault()}},(xt==null?void 0:xt.appraise_setting)&&nn.createElement("span",{className:_n.flexBox,style:{marginRight:"16px"},onClick:()=>Zn(void 0,null,function*(){const or=()=>Zn(void 0,null,function*(){$e({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E..."}});const Xr=yield(0,te.ZP)(`/api/exercises/${xt.id}/create_appraise_students.json`,{method:"get"});$e({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(0,Ee.xg)(`/classrooms/${Fi==null?void 0:Fi.coursesId}/exercise/${xt.id}/centralizeReview/${Xr==null?void 0:Xr.login}`)});if(xt!=null&&xt.is_encrypt){ba(or);return}or()})},nn.createElement("i",{className:"iconfont icon-jizhongyuejuan"}),nn.createElement("div",null,"\u96C6\u4E2D\u9605\u5377")),!(xt!=null&&xt.exercise_tips.includes("\u5BFC\u5165"))&&(0,Ue.GJ)()&&(!(xt!=null&&xt.is_make_up_exercise)||(xt==null?void 0:xt.is_make_up_exercise)&&(xt==null?void 0:xt.exercise_status)===1&&(xt==null?void 0:xt.allow_create_make_up))&&nn.createElement(Kt.Z,{tips:xt==null?void 0:xt.open_appraise},nn.createElement("span",{className:_n.flexBox,style:{marginRight:"16px"},onClick:()=>{const or=()=>{var Xr,Pr,fa;if(((Xr=pr==null?void 0:pr.userInfo)==null?void 0:Xr.user_status)===2){(0,je.Rd)();return}if((0,Ue.Rm)()&&!((fa=(Pr=eo==null?void 0:eo.AssistantObject)==null?void 0:Pr.exercise)!=null&&fa.can_publish)){He.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((xt==null?void 0:xt.exercise_question_count)===0){He.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}let Mi=()=>{$e({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[xt.id],unified_setting:xt.unified_setting,params:Fi,disabled:xt.exercise_status!==1,type:2,manage_all_group:Vr,isRouter:!0}})};xt!=null&&xt.high_resources_consume&&!(xt!=null&&xt.high_resources_consume_permission)?$e({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Fi.coursesId,type:"exercise",type_id:xt.id,name:xt.exercise_name,fn:()=>{$e({type:"classroomList/getClassroomExercisesList",payload:Rn({},Fi)}),Mi()}}}):Mi()};if(xt!=null&&xt.is_encrypt){ba(or);return}or()}},nn.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),nn.createElement("div",null,"\u53D1\u5E03"))),!(xt!=null&&xt.exercise_tips.includes("\u5BFC\u5165"))&&(0,Ue.GJ)()&&!(0,Ee._m)()&&xt.assistant_auth&&nn.createElement("span",{className:_n.flexBox,style:{marginRight:"16px"},onClick:or=>{or.stopPropagation();const Xr=()=>{var Pr,fa;if((0,Ue.Rm)()&&!((fa=(Pr=eo==null?void 0:eo.AssistantObject)==null?void 0:Pr.exercise)!=null&&fa.can_preview)){He.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 Mi=Je()(xt.created_at,Ka);Je()(da).diff(Je()(Mi),"days")>0&&(xt!=null&&xt.is_random)?Qo():xt!=null&&xt.is_random?(0,Ee.xg)(`/classrooms/${Fi.coursesId}/exercise/${xt.id}/random/preview?random=${xt.is_random}`):(0,Ee.xg)(`/classrooms/${Fi.coursesId}/exercise/${xt.id}/detail?random=${xt.is_random}&tabs=2`)};if(xt!=null&&xt.is_encrypt){ba(Xr);return}Xr()}},nn.createElement("i",{className:"iconfont icon-yulan3"}),nn.createElement("div",null,"\u9884\u89C8")),(0,Ue.RV)()&&nn.createElement("span",{className:_n.flexBox,style:{marginRight:"16px"},onClick:()=>{const or=()=>{(0,Ee.xg)(`/classrooms/${Fi.coursesId}/exercise/${xt.id}/detail?random=${xt.is_random}`)};if(xt!=null&&xt.is_encrypt){ba(or);return}or()}},nn.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),nn.createElement("div",null,"\u8BE6\u60C5")),(0,Ue.GJ)()&&!(0,Ee._m)()&&nn.createElement(gi.Z,{placement:"bottom",content:nn.createElement("div",{className:_n.popover},!(xt!=null&&xt.exercise_tips.includes("\u5BFC\u5165"))&&nn.createElement("p",{onClick:or=>Zn(void 0,null,function*(){const Xr=()=>{(0,Ee.xg)(`/classrooms/${Fi.coursesId}/exercise/${xt.id}/detail?random=${xt.is_random}&tabs=3`)};if(xt!=null&&xt.is_encrypt){ba(Xr);return}Xr()})},"\u89C4\u5219\u8BBE\u7F6E"),(xt==null?void 0:xt.exercise_tips.includes("\u5BFC\u5165"))&&nn.createElement("p",{onClick:or=>Zn(void 0,null,function*(){const Xr=()=>{$e({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:xt==null?void 0:xt.exercise_name,id:xt==null?void 0:xt.id,type:"hack"}})};if(xt!=null&&xt.is_encrypt){ba(Xr);return}Xr()})},"\u8865\u5145\u6210\u7EE9"),!(xt!=null&&xt.exercise_tips.includes("\u5BFC\u5165"))&&(0,Ue.GJ)()&&xt.is_random&&xt.assistant_auth&&nn.createElement("p",{onClick:or=>{or.stopPropagation();const Xr=()=>{const Pr=Je()(xt.created_at,Ka);Je()(da).diff(Je()(Pr),"days")>0&&(xt!=null&&xt.is_random)?Qo():(0,Ee.xg)(`/classrooms/${Fi.coursesId}/exercise/${xt.id}/random/edit?type=settings`)};if(xt!=null&&xt.is_encrypt){ba(Xr);return}Xr()}},"\u7F16\u8F91\u8003\u8BD5"),nn.createElement("p",{onClick:or=>Zn(void 0,null,function*(){const Xr=()=>{var Pr;$e({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u5220\u9664",selectArrs:[xt.id],selectArrsAll:[xt],params:Fi,status:(Pr=xt==null?void 0:xt.exercise_tips)==null?void 0:Pr[0]}})};if(xt!=null&&xt.is_encrypt){ba(Xr);return}Xr()})},"\u5220\u9664\u8BD5\u5377"),!(xt!=null&&xt.exercise_tips.includes("\u5BFC\u5165"))&&nn.createElement("p",{onClick:()=>{const or=()=>{$e({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[xt.id],params:Fi}})};if(xt!=null&&xt.is_encrypt){ba(or);return}or()}},"\u52A0\u5165\u8BD5\u5377\u5E93"),((lr=xt==null?void 0:xt.exercise_tips)==null?void 0:lr.includes("\u672A\u5F00\u59CB"))&&(xt==null?void 0:xt.author_login)===(($i=pr==null?void 0:pr.userInfo)==null?void 0:$i.login)&&nn.createElement("p",{onClick:or=>Zn(void 0,null,function*(){Yi(xt)})}," ",xt!=null&&xt.is_encrypt?"\u89E3\u5C01":"\u52A0\u5BC6\u5C01\u5B58"),!(xt!=null&&xt.exercise_tips.includes("\u5BFC\u5165"))&&((0,Ue.GJ)()||((oi=(Br=eo==null?void 0:eo.AssistantObject)==null?void 0:Br.exercise)==null?void 0:oi.can_stop))&&![1,3].includes(xt==null?void 0:xt.exercise_status)&&nn.createElement("p",{onClick:or=>Zn(void 0,null,function*(){const Xr=()=>{var Pr,fa;if((0,Ue.Rm)()&&!((fa=(Pr=eo==null?void 0:eo.AssistantObject)==null?void 0:Pr.exercise)!=null&&fa.can_stop)){He.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}$e({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[xt.id],params:Fi,unified_setting:xt.unified_setting}})};if(xt!=null&&xt.is_encrypt){ba(Xr);return}Xr()})},"\u7ED3\u675F\u8003\u8BD5"))},nn.createElement("span",{onClick:or=>or.stopPropagation(),className:_n.flexBox,style:{cursor:"default"}},nn.createElement("i",{className:"iconfont icon-gengduo4"}),nn.createElement("div",null,"\u66F4\u591A"))),(0,Ue.dE)()&&nn.createElement(nn.Fragment,null,!!xt.off_limits&&nn.createElement(de.Z,{title:`\u8FDF\u5230\u8D85\u8FC7${xt==null?void 0:xt.last_times}\u5206\u949F\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`},nn.createElement("b",{className:"font16 c-grey-999"},"\u8FDF\u5230\u7981\u6B62\u7B54\u9898")),(xt==null?void 0:xt.exercise_type)==1&&!xt.off_limits&&xt.current_status===0&&xt.exercise_status>1&&!((Ro=xt.exercise_tips)!=null&&Ro.includes("\u5DF2\u622A\u6B62"))&&nn.createElement("a",{className:_n.flexBox,style:{marginRight:"16px"},onClick:or=>{or.stopPropagation(),or.preventDefault(),Qa(xt,!0)},href:""},nn.createElement("i",{className:"iconfont icon-jixukaoshi"}),nn.createElement("div",null,(xt==null?void 0:xt.screen_used_num)>(xt==null?void 0:xt.screen_total_num)&&"\u7533\u8BF7"," \u7EE7\u7EED\u8003\u8BD5")),!((Xo=xt.exercise_tips)!=null&&Xo.includes("\u5DF2\u622A\u6B62"))&&(xt==null?void 0:xt.screen_used_num)>(xt==null?void 0:xt.screen_total_num)&&nn.createElement("a",{className:_n.flexBox,style:{marginRight:"16px"},onClick:or=>{or.stopPropagation(),or.preventDefault(),Qa(xt,!0)},href:""},nn.createElement("i",{className:"iconfont icon-jixukaoshi"}),nn.createElement("div",null,"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5")),!xt.off_limits&&xt.current_status===1&&(xt==null?void 0:xt.screen_used_num)<(xt==null?void 0:xt.screen_total_num)&&xt.exercise_status>1&&document.domain!="kepukehuan.educoder.net"&&!((xt==null?void 0:xt.exercise_type)==2&&(xt==null?void 0:xt.exercise_status)!=3)&&nn.createElement("span",{className:_n.flexBox,style:{marginRight:"16px"},onClick:or=>Zn(void 0,null,function*(){var Xr;if(or.stopPropagation(),!(xt!=null&&xt.answered_open)){He.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,Pt.w)(Fi.coursesId,xt.id,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,Ee.xg)(`/classrooms/${Fi.coursesId}/exercise/${xt.id}/users/${(Xr=(0,Ue.eY)())==null?void 0:Xr.login}?check=true`)})},nn.createElement("i",{className:"iconfont icon-chakankaoshi"}),nn.createElement("div",null,"\u67E5\u770B\u8003\u8BD5")),(xt==null?void 0:xt.exercise_type)==1&&!xt.off_limits&&xt.current_status===2&&xt.exercise_status>1&&!((ya=xt.exercise_tips)!=null&&ya.includes("\u5DF2\u622A\u6B62"))&&nn.createElement("a",{className:_n.flexBox,style:{marginRight:"16px",color:(xt==null?void 0:xt.is_redo)===1&&"red"},onClick:or=>{or.stopPropagation(),or.preventDefault(),Qa(xt)},href:""},nn.createElement("i",{className:"iconfont icon-a-kaishijixudajuan"}),nn.createElement("div",null,(xt==null?void 0:xt.is_redo)===0?"\u5F00\u59CB\u8003\u8BD5":"\u91CD\u65B0\u8003\u8BD5")),(xt==null?void 0:xt.exercise_type)==2&&!xt.off_limits&&xt.exercise_status>1&&!((na=xt.exercise_tips)!=null&&na.includes("\u5DF2\u622A\u6B62"))&&nn.createElement(de.Z,{title:nn.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",xt==null?void 0:xt.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",Bo(),"\u6B21")},nn.createElement("a",{className:_n.flexBox,onClick:or=>{Bo()==0&&(xt==null?void 0:xt.current_status)!=0||(or.stopPropagation(),or.preventDefault(),Qa(xt))},href:""},nn.createElement("i",{className:`iconfont ${(xt==null?void 0:xt.current_status)!=0?"icon-a-kaishijixudajuan":"icon-jixukaoshi"}`}),nn.createElement("div",null,(xt==null?void 0:xt.current_status)!=0?"\u5F00\u59CB\u8003\u8BD5":"\u7EE7\u7EED\u8003\u8BD5")))))),(0,Ue.GJ)()&&nn.createElement("p",{style:{display:"flex"}},nn.createElement("span",{className:"c-grey-666",style:{display:"inline-block",maxWidth:"90px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},title:xt.author},xt.author),nn.createElement("span",{className:"ml30 c-grey-666"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",Je()(xt.created_at).format("YYYY-MM-DD HH:mm:ss")),((Fa=xt==null?void 0:xt.exercise_tips)==null?void 0:Fa.includes("\u672A\u5F00\u59CB"))&&xt.publish_time&&nn.createElement("span",{className:"ml30 c-grey-666"},"\u5F00\u59CB\u65F6\u95F4\uFF1A",Je()(xt.publish_time).format("YYYY-MM-DD HH:mm:ss")),nn.createElement("span",{className:"ml30 c-grey-666"},"\u7B54\u9898\u65F6\u957F\uFF1A",xt.time===null?"\u4E0D\u9650":`${xt.time}\u5206\u949F`),nn.createElement("span",{className:"ml30 c-grey-666"},"\u7C7B\u578B\uFF1A",xt.is_random?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"),!((Sa=xt==null?void 0:xt.exercise_tips)!=null&&Sa.includes("\u672A\u5F00\u59CB"))&&!(xt!=null&&xt.is_make_up_exercise)&&!(xt!=null&&xt.exercise_tips.includes("\u5BFC\u5165"))&&nn.createElement("span",{className:_n.iconV,style:{marginLeft:"auto",textAlign:"end"},onClick:or=>Zn(void 0,null,function*(){or.stopPropagation(),or.preventDefault(),Yo||vo(),Qs(!Yo)})},nn.createElement(de.Z,{title:`${Yo?"\u6536\u8D77":"\u5C55\u5F00"}`},nn.createElement("i",{className:`iconfont icon-${Yo?"shouqi":"xiala2"}`})))),(0,Ue.dE)()&&nn.createElement("p",{style:{display:"flex"}},nn.createElement("span",{className:"c-grey-333"},xt.author),nn.createElement("span",{className:"ml30 c-grey-999 mr20"},"\u7B54\u9898\u65F6\u957F\uFF1A",xt.time===null?"\u4E0D\u9650":`${xt.time}\u5206\u949F`),!!(xt!=null&&xt.exercise_left_time)&&nn.createElement("span",{className:"ml15 c-grey-999"},"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",xt==null?void 0:xt.exercise_left_time),!!(xt!=null&&xt.before_start)&&nn.createElement("span",{className:"ml15 c-grey-999"},"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u65F6\u95F4\uFF1A",xt==null?void 0:xt.before_start)),(0,Ue.GJ)()&&!((Pa=xt==null?void 0:xt.exercise_tips)!=null&&Pa.includes("\u672A\u5F00\u59CB"))&&nn.createElement("p",null,nn.createElement("span",{style:{letterSpacing:2},className:"c-grey-333 mr15"},"\u63D0\u4EA4\u72B6\u6001\uFF1A"),nn.createElement("span",{className:"c-grey-333 mr20"},"\u672A\u5F00\u59CB ",nn.createElement("span",null,xt==null?void 0:xt.unanswer_users)),nn.createElement("span",{className:"c-grey-333 mr20"},"\u8003\u8BD5\u4E2D ",nn.createElement("span",{style:{color:"rgb(90, 184, 145)"}},xt==null?void 0:xt.answering_users)),nn.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u4EA4\u5377 ",nn.createElement("span",{style:{color:"#FC2D6B"}},xt==null?void 0:xt.answer_users)),nn.createElement("span",{className:"c-grey-333"},"\u5DF2\u4EA4\u5377/\u672A\u7B54 ",nn.createElement("span",{style:{color:"#FC2D6B"}},xt==null?void 0:xt.commit_with_no_answers_users))),(0,Ue.GJ)()&&!((is=xt==null?void 0:xt.exercise_tips)!=null&&is.includes("\u672A\u5F00\u59CB"))&&Yo&&ps.length>5&&nn.createElement(wi.default,{scroll:{y:240},pagination:!1,dataSource:ps,onRow:or=>({onClick:Xr=>{Xr.stopPropagation(),Xr.preventDefault()}}),onHeaderRow:(or,Xr)=>({onClick:Pr=>{Pr.stopPropagation(),Pr.preventDefault()}}),rowKey:"course_group_id",style:{marginTop:"10px"},onChange:(or,Xr,Pr)=>{Pr.field&&(Fi.order_by=Pr.field),Pr.order||(Fi.sort_direction="asc"),Pr.order==="ascend"&&(Fi.sort_direction="asc"),Pr.order==="descend"&&(Fi.sort_direction="desc"),Pr.order||(Fi.sort_direction="asc"),vo()},columns:to}),(0,Ue.GJ)()&&!((Co=xt==null?void 0:xt.exercise_tips)!=null&&Co.includes("\u672A\u5F00\u59CB"))&&Yo&&ps.length<6&&ps.length>0&&nn.createElement(wi.default,{rowKey:"course_group_id",pagination:!1,onRow:or=>({onClick:Xr=>{Xr.stopPropagation(),Xr.preventDefault()}}),onHeaderRow:(or,Xr)=>({onClick:Pr=>{Pr.stopPropagation(),Pr.preventDefault()}}),dataSource:ps,style:{marginTop:"10px"},onChange:(or,Xr,Pr)=>{Pr.field&&(Fi.order_by=Pr.field),Pr.order||(Fi.sort_direction="asc"),Pr.order==="ascend"&&(Fi.sort_direction="asc"),Pr.order==="descend"&&(Fi.sort_direction="desc"),Pr.order||(Fi.sort_direction="asc"),vo()},columns:to}),(xt==null?void 0:xt.total)!==void 0&&nn.createElement("p",null,nn.createElement("span",{className:"c-grey-333 mr15"},"\u96C6\u4E2D\u9605\u5377\u603B\u8FDB\u5EA6\uFF1A"),nn.createElement("span",{className:"c-grey-333 mr20"},"\u603B\u8BC4\u6570",nn.createElement("span",null,xt==null?void 0:xt.total)),nn.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u8BC4\u9605 ",nn.createElement("span",{style:{color:"#4EACFF"}},xt==null?void 0:xt.finish_total)),nn.createElement("span",{className:"c-grey-333"},"\u5F85\u8BC4\u9605 ",nn.createElement("span",{style:{color:"#FC2D6B"}},xt==null?void 0:xt.unfinished_total)))),nn.createElement(Sn.Z,{closable:!0,successCb:()=>Qa(yl.current)}))};var Gn=(0,Ie.connect)(({classroomList:xt})=>({classroomList:xt}))(ri),di=he(68906),rr=he(23770),Dr=he(47598),ar=he(73782),qt=he(80205),Li=he(73601),Ji=he(68641),Ti=he(40389),bi=he(59301),sr=Object.defineProperty,Nr=Object.defineProperties,cr=Object.getOwnPropertyDescriptors,Zi=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Ho=(xt,kn,Hn)=>kn in xt?sr(xt,kn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):xt[kn]=Hn,Dn=(xt,kn)=>{for(var Hn in kn||(kn={}))Jr.call(kn,Hn)&&Ho(xt,Hn,kn[Hn]);if(Zi)for(var Hn of Zi(kn))On.call(kn,Hn)&&Ho(xt,Hn,kn[Hn]);return xt},Rr=(xt,kn)=>Nr(xt,cr(kn)),ca=(xt,kn)=>{var Hn={};for(var Ei in xt)Jr.call(xt,Ei)&&kn.indexOf(Ei)<0&&(Hn[Ei]=xt[Ei]);if(xt!=null&&Zi)for(var Ei of Zi(xt))kn.indexOf(Ei)<0&&On.call(xt,Ei)&&(Hn[Ei]=xt[Ei]);return Hn},fo=(xt,kn,Hn)=>new Promise((Ei,Si)=>{var $e=Qi=>{try{eo(Hn.next(Qi))}catch(Vr){Si(Vr)}},Fi=Qi=>{try{eo(Hn.throw(Qi))}catch(Vr){Si(Vr)}},eo=Qi=>Qi.done?Ei(Qi.value):Promise.resolve(Qi.value).then($e,Fi);eo((Hn=Hn.apply(xt,kn)).next())});const Ha=xt=>{var kn=xt,{user:Hn,classroomList:Ei,globalSetting:Si,loading:$e,dispatch:Fi,match:eo}=kn,Qi=ca(kn,["user","classroomList","globalSetting","loading","dispatch","match"]),Vr,pr,Er,oo,bo,Ur,Io,lr,$i,Br,oi,Ro,Xo,ya,na,Fa,Sa;const Pa=(0,Ie.useParams)(),[is]=(0,Ie.useSearchParams)(),[Co,ps]=(0,ge.useState)(()=>Rr(Dn({},Pa),{limit:20})),An=(0,Ie.useLocation)(),{detailExerciseList:Yo,detailTopBanner:Qs,detailLeftMenus:yl}=Ei,[Kr,Ao]=(0,ge.useState)([]),[Ka,da]=(0,ge.useState)(!1),[vo,Qo]=(0,ge.useState)([]),[Qa,to]=(0,ge.useState)(!1),[Do,Bo]=(0,ge.useState)(!1),[Yi,ba]=(0,ge.useState)(!1),[or,Xr]=(0,ge.useState)(!1),[Pr,fa]=(0,ge.useState)("\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"),Mi=[{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"}];Co.type=is.get("tabs")==="all"?"":is.get("tabs")||"",Co.id=Co.coursesId,(0,ge.useEffect)(()=>{var co,Ba,Ms;if((co=Hn==null?void 0:Hn.userInfo)!=null&&co.login){if((0,Ue.GJ)()){const zs=Ee.cX.getItem(`${(Ba=Hn==null?void 0:Hn.userInfo)==null?void 0:Ba.login}Teacher`,"Exercise");zs&&(Co.sort_by=zs==null?void 0:zs.type,Co.sort_direction=zs==null?void 0:zs.direction,fa(zs==null?void 0:zs.name))}Fi({type:"classroomList/getClassroomExercisesList",payload:Dn(Dn({},Co),Pa)})}else(Ms=Hn==null?void 0:Hn.userInfo)!=null&&Ms.username&&Fi({type:"classroomList/getClassroomExercisesList",payload:Dn(Dn({},Co),Pa)});da(!1)},[(Vr=Hn==null?void 0:Hn.userInfo)==null?void 0:Vr.login,An.pathname]),(0,ge.useEffect)(()=>{Ei.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&Fi({type:"classroomList/getClassroomExercisesList",payload:Dn(Dn({},Co),Pa)})},[Ei.actionTabs.key]),(0,ge.useEffect)(()=>{Ei.actionTabs.key==="\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"&&(to(!0),Bo(Qs==null?void 0:Qs.show_unstart_exercise),ba(Qs==null?void 0:Qs.forbid_end_exercise))},[Ei.actionTabs.key]),(0,ge.useEffect)(()=>{Ao([])},[Yo]);const ga=(co,Ba)=>{Ao([]),Co.page=co,Co.limit=Ba,Fi({type:"classroomList/getClassroomExercisesList",payload:Dn(Dn({},Co),Pa)})},Ua=co=>{Co.type=co.key==="all"?"":co.key,Co.page=1,Ie.history.replace(`${An.pathname}?tabs=${co.key}`),Xr(!1),Fi({type:"classroomList/getClassroomExercisesList",payload:Dn(Dn({},Co),Pa)})};(0,ge.useEffect)(()=>{is.get("tabs")==="all"&&(Co.type="",Co.page=1)},[is.get("tabs")]),(0,ge.useEffect)(()=>{(0,Ue.Rm)()&&Fi({type:"classroomList/getAssistantPermissions",payload:{course_id:Co.coursesId}})},[(pr=Hn==null?void 0:Hn.userInfo)==null?void 0:pr.username]),(0,ge.useEffect)(()=>{const co=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),Ke.default.info({title:"\u63D0\u793A",centered:!0,width:600,content:bi.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",bi.createElement("br",null),"1\u3001\u5728",bi.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",bi.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",bi.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",bi.createElement("br",null),"2\u3001\u5728",bi.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",bi.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",bi.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",bi.createElement("br",null),co==="allowRouter"&&bi.createElement(bi.Fragment,null,"3\u3001",bi.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:"\u77E5\u9053\u4E86"}))},[]);const rs=[{name:"\u5168\u90E8",id:"all",total:(Er=Yo.exercises_counts)==null?void 0:Er.exercises_total_counts},{name:"\u672A\u5F00\u59CB",id:1,total:(oo=Yo.exercises_counts)==null?void 0:oo.unstart_counts},{name:"\u8003\u8BD5\u4E2D",id:2,total:(bo=Yo.exercises_counts)==null?void 0:bo.publish_counts},{name:"\u96C6\u4E2D\u9605\u5377",id:4,total:(Ur=Yo.exercises_counts)==null?void 0:Ur.appraise_exercise_count},{name:"\u5DF2\u622A\u6B62",id:3,total:(Io=Yo.exercises_counts)==null?void 0:Io.end_counts}],Sl=[{name:"\u6279\u91CF\u53D1\u5E03",icon:bi.createElement("i",{className:"iconfont icon-fabu5"})},{name:"\u6279\u91CF\u7ED3\u675F",icon:bi.createElement("i",{className:"iconfont icon-piliangjiezhi2"})},{name:"\u6279\u91CF\u5220\u9664",icon:bi.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:bi.createElement("i",{className:"iconfont icon-sheweigongkai2"})},{name:"\u52A0\u5165\u8BD5\u5377\u5E93",icon:bi.createElement("i",{className:"iconfont icon-piliangjiaru font14"})}].filter(co=>(0,Ue.GJ)()?!0:co.name!=="\u6279\u91CF\u5220\u9664").filter(co=>Qs.is_public?!0:co.name!=="\u8BBE\u4E3A\u516C\u5F00"),Kl=()=>Ke.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:bi.createElement(bi.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")}),yo="YYYY-MM-DD",Vu=Je()("2020-11-15",yo),Ll=co=>{var Ba;Co.sort_by=co.type,Co.sort_direction=co.direction,(0,Ue.GJ)()&&Ee.cX.setItem(`${(Ba=Hn==null?void 0:Hn.userInfo)==null?void 0:Ba.login}Teacher`,co,"Exercise"),Co.page=1,Fi({type:"classroomList/getClassroomExercisesList",payload:Dn({},Co)}),fa(co.name)},Dl=()=>bi.createElement(ot.default,null,bi.createElement(ot.default.Item,{key:1,onClick:()=>{var co,Ba;if((0,Ue.Rm)()&&!((Ba=(co=Ei==null?void 0:Ei.AssistantObject)==null?void 0:co.exercise)!=null&&Ba.can_create)){He.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}Fi({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:Co}})}},"\u5FEB\u901F\u9009\u62E9\u8BD5\u5377"),bi.createElement(ot.default.Item,{key:2,onClick:()=>{var co,Ba;if((0,Ue.Rm)()&&!((Ba=(co=Ei==null?void 0:Ei.AssistantObject)==null?void 0:co.exercise)!=null&&Ba.can_create)){He.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/${Co.coursesId}/exercise/add?catalogue=${(Pa==null?void 0:Pa.categoryId)||""}`)}},"\u521B\u5EFA\u65B0\u8BD5\u5377"),bi.createElement(ot.default.Item,{key:3,onClick:()=>{var co,Ba;if((0,Ue.Rm)()&&!((Ba=(co=Ei.AssistantObject)==null?void 0:co.practice)!=null&&Ba.can_create)){He.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}Fi({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"exercise"}})}},"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9")),xl=co=>fo(void 0,null,function*(){var Ba,Ms,zs,Yu,uc,Uu,Ac,Xu;const Vl=co.name;if(((Ba=Hn==null?void 0:Hn.userInfo)==null?void 0:Ba.user_status)===2&&co.name==="\u6279\u91CF\u53D1\u5E03"){(0,je.Rd)();return}const Bl=[];if((Ms=Yo.exercises)==null||Ms.map(os=>{if(Kr.includes(os.id)&&os.is_random){const Au=Je()(os.created_at,yo);Je()(Vu).diff(Je()(Au),"days")>0&&(os!=null&&os.is_random)&&Bl.push(os)}}),Kr==""){let os="\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1";Vl==="\u52A0\u5165\u8BD5\u5377\u5E93"&&(os="\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u8BD5\u5377\u5E93\u7684\u8BD5\u5377"),He.ZP.error(os)}else if(Bl.length)Kl();else{if(Vl==="\u6279\u91CF\u53D1\u5E03"){if((0,Ue.Rm)()&&!((Yu=(zs=Ei==null?void 0:Ei.AssistantObject)==null?void 0:zs.exercise)!=null&&Yu.can_publish)){He.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 os=!1;Yo.exercises.forEach($s=>{Kr.includes($s.id)&&$s.total_num===0&&$s.is_random&&(os=!0)});let Au;if(Au=(Uu=(uc=Yo.exercises.filter($s=>Kr.includes($s==null?void 0:$s.id)).filter($s=>($s==null?void 0:$s.exercise_question_count)===0))==null?void 0:uc[0])==null?void 0:Uu.exercise_name,(Au==null?void 0:Au.length)>0){He.ZP.warning(`${Au}\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5`);return}if(os){He.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 _u=!1;if(Yo.exercises.forEach($s=>{Kr.includes($s.id)&&$s.exercise_status!==1&&(_u=!0)}),_u){He.ZP.warning("\u8BD5\u5377\u5DF2\u53D1\u5E03\u8003\u8BD5\u4E0D\u53EF\u6279\u91CF\u53D1\u5E03\u3002");return}}if(Vl==="\u52A0\u5165\u8BD5\u5377\u5E93"){const os=yield(0,te.ZP)(`/api/courses/${Co.id}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:[...Kr]}});if(((Ac=os==null?void 0:os.cover_exercises)==null?void 0:Ac.length)>0){Qo(os==null?void 0:os.cover_exercises);return}}Fi({type:"exercise/setActionTabs",payload:{key:Vl,selectArrs:Kr,selectArrsAll:(Xu=Yo.exercises)==null?void 0:Xu.filter(os=>Kr.includes(os.id)),params:Co,type:1}})}});return bi.createElement("section",{className:"minH500"},bi.createElement(di.Z,{isLoading:$e["classroomList/getClassroomExercisesList"],tabDataSource:rs,isAdmin:(0,Ue.GJ)(),dispatch:Fi,type:Yo==null?void 0:Yo.main_category_name,isExercise:!0,user:Hn,getDropdownMenu:Dl,onTabMenuClick:Ua,classroomList:Ei,defaultSelectedKeys:[Co.type||"all"]}),bi.createElement(rr.Z,{dataSource:Yo.exercises||[],isAdmin:(0,Ue.GJ)(),batchStatus:or,SortMenuName:Pr,setSortMenuName:fa,SortMenus:Mi,onSearch:co=>{Co.search=co.trim(),Co.page=1,Fi({type:"classroomList/getClassroomExercisesList",payload:Dn({},Co)})},isShowMode:!0,onModeChange:co=>{Co.is_normal=co,Co.page=1,Fi({type:"classroomList/getClassroomExercisesList",payload:Dn({},Co)})},onSort:Ll,onBatch:co=>Xr(co)}),bi.createElement(it.Z,{loading:$e["classroomList/getClassroomExercisesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},(lr=Yo.exercises_counts)!=null&&lr.exercises_all_counts?Yo.exercises.map(function(co,Ba){return bi.createElement(Gn,{key:Ba,v:co,k:Ba,match:eo,batchStatus:or,selectArrs:Kr,setSelectArrs:Ao,dispatch:Fi,params:Co,user:Hn,manageAllGroup:Yo.manage_all_group})}):bi.createElement(ee.Z,null),bi.createElement("aside",{className:"tc mb50 mt30"},(($i=Yo.exercises_counts)==null?void 0:$i.exercises_all_counts)>0&&bi.createElement(be.Z,{showTotal:co=>{var Ba;return`\u5171 ${(Ba=Yo==null?void 0:Yo.exercises_counts)==null?void 0:Ba.exercises_all_counts} \u6761`},showSizeChanger:!0,onChange:ga,defaultCurrent:Co.page,current:Co.page||1,pageSize:Co.limit||20,total:Yo.exercises_counts&&Yo.exercises_counts.exercises_all_counts}))),Kr.length>0&&(0,Ue.GJ)()&&bi.createElement(yt.Z,{offsetBottom:0},bi.createElement(Dr.Z,{buttonDataSource:Sl,onButtonClick:xl,useBatchStatus:Xr,setSeleArr:Ao,catalogue:((oi=(Br=yl==null?void 0:yl.course_modules)==null?void 0:Br.find(co=>co.type==="exercise"))==null?void 0:oi.second_category)||[],addCatalogue:co=>{co.preventDefault(),Fi({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:Co,selectArrs:{category_id:Yo==null?void 0:Yo.main_category_id,type:"exercise"}}})},allSelect:Kr.length?Kr.length===((Xo=(Ro=Yo.exercises)==null?void 0:Ro.filter(co=>!co.is_make_up_exercise))==null?void 0:Xo.length):!1,setAllSelect:co=>{var Ba;co.target.checked?Ao((Ba=Yo==null?void 0:Yo.exercises)==null?void 0:Ba.filter(Ms=>!Ms.is_make_up_exercise).map(Ms=>Ms.id)):Ao([])},selectArrs:Kr,onMenuClick:co=>fo(void 0,[co],function*({key:Ba}){if(Kr=="")return He.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,te.ZP)(`/api/courses/${Co.id}/exercises/move_to_category.json`,{method:"post",body:{exercise_ids:Kr,new_category_id:Ba}})).status===0&&(He.ZP.success("\u64CD\u4F5C\u6210\u529F"),Fi({type:"classroomList/getClassroomExercisesList",payload:Dn({},Pa)}))})})),bi.createElement(Xn.Z,null),bi.createElement(Ft.Z,null),bi.createElement(on,null),bi.createElement(Wt,null),bi.createElement(Li.Z,{onOk:()=>{Fi({type:"classroomList/getClassroomExercisesList",payload:Dn({},Pa)})}}),bi.createElement(Ji.Z,{onOk:()=>{}}),bi.createElement(hn,{cb:()=>Ao([])}),bi.createElement(vi,null),bi.createElement(Sn.Z,null),bi.createElement(Ke.default,{title:bi.createElement("span",null,bi.createElement(qt.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"),open:vo.length>0,footer:!1,onCancel:()=>{Qo([])}},bi.createElement("div",{style:{height:300,overflow:"auto"}},bi.createElement("div",null,"\u6709",vo==null?void 0:vo.length,"\u5F20\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),vo==null?void 0:vo.map(co=>bi.createElement("div",{style:{marginTop:25}},bi.createElement("div",null,"\u8BD5\u5377\uFF1A",co==null?void 0:co.origin_exercise_nam),bi.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",bi.createElement("a",{href:`/paperlibrary/see/${co==null?void 0:co.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},co==null?void 0:co.examination_bank_name))))),bi.createElement("div",{style:{textAlign:"end"}},bi.createElement(ct.ZP,{style:{height:30},onClick:()=>fo(void 0,null,function*(){const co=yield(0,te.ZP)(`/api/courses/${Co.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...Kr],update:1}});(co==null?void 0:co.status)===0&&(He.ZP.info("\u8986\u76D6\u6210\u529F"),Qo([]))})},"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"),bi.createElement(ct.ZP,{type:"primary",onClick:()=>fo(void 0,null,function*(){const co=yield(0,te.ZP)(`/api/courses/${Co.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...Kr]}});(co==null?void 0:co.status)===0&&(He.ZP.info("\u5F62\u6210\u6210\u529F"),Qo([]))}),style:{marginLeft:10,height:30}},"\u5F62\u6210\u65B0\u8BD5\u5377"))),bi.createElement(Ke.default,{title:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E",open:Qa,centered:!0,onOk:()=>fo(void 0,null,function*(){let co=yield(0,te.ZP)(`/api/courses/${Co.coursesId}/update_show_unstart_exercise`,{method:"put",body:{show_unstart_exercise:Do,forbid_end_exercise:Yi}});(co==null?void 0:co.status)===0&&(to(!1),Fi({type:"classroomList/setActionTabs",payload:{key:""}}),Fi({type:"classroomList/getClassroomTopBanner",payload:{id:Co.coursesId}}),He.ZP.info("\u64CD\u4F5C\u6210\u529F"))}),onCancel:()=>{to(!1),Fi({type:"classroomList/setActionTabs",payload:{key:""}})}},bi.createElement(Xe.default,{checked:Do,onChange:co=>{Bo(co.target.checked)}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5DF2\u53D1\u5E03\u4F46\u672A\u5F00\u59CB\u7684\u8003\u8BD5",bi.createElement("span",{style:{color:"#666666"}},"\uFF08\u8003\u8BD5\u5F00\u59CB\u4E4B\u540E\u5B66\u751F\u624D\u80FD\u4F5C\u7B54\uFF09")),bi.createElement(Xe.default,{className:"mt20",checked:Yi,onChange:co=>{ba(co.target.checked)}},"\u7981\u6B62\u5B66\u751F\u67E5\u770B\u5DF2\u622A\u6B62\u7684\u8003\u8BD5")),bi.createElement(ar.Z,null),bi.createElement(bi.Fragment,null,bi.createElement(Ti.T$,{onCancel:()=>{Fi({type:"classroomList/setActionTabs",payload:Rr(Dn({},Ei==null?void 0:Ei.actionTabs),{open:""})})},open:((ya=Ei==null?void 0:Ei.actionTabs)==null?void 0:ya.open)==="\u624B\u673A\u53F7\u7ED1\u5B9A"}),bi.createElement(Ti.$i,{onCancel:()=>{Fi({type:"classroomList/setActionTabs",payload:Rr(Dn({},Ei==null?void 0:Ei.actionTabs),{open:""})})},onFinish:()=>{Fi({type:"classroomList/getClassroomExercisesList",payload:Dn(Dn({},Co),Pa)})},open:((na=Ei==null?void 0:Ei.actionTabs)==null?void 0:na.open)==="\u8BD5\u5377\u5C01\u5B58",Data:Rr(Dn({},Ei==null?void 0:Ei.actionTabs),{type:"exercise"})}),bi.createElement(Ti.K1,{onCancel:()=>{Fi({type:"classroomList/setActionTabs",payload:Rr(Dn({},Ei==null?void 0:Ei.actionTabs),{open:""})})},onFinish:()=>{Fi({type:"classroomList/getClassroomExercisesList",payload:Dn(Dn({},Co),Pa)})},open:((Fa=Ei==null?void 0:Ei.actionTabs)==null?void 0:Fa.open)==="\u89E3\u5C01",Data:Rr(Dn({},Ei==null?void 0:Ei.actionTabs),{type:"exercise"})}),bi.createElement(Ti.O7,{onCancel:()=>{Fi({type:"classroomList/setActionTabs",payload:Rr(Dn({},Ei==null?void 0:Ei.actionTabs),{open:""})})},onFinish:()=>{Fi({type:"classroomList/getClassroomExercisesList",payload:Dn(Dn({},Co),Pa)})},open:((Sa=Ei==null?void 0:Ei.actionTabs)==null?void 0:Sa.open)==="\u63D0\u793A",Data:Rr(Dn({},Ei==null?void 0:Ei.actionTabs),{type:"exercise"})})))};var oa=(0,Ie.connect)(({user:xt,classroomList:kn,loading:Hn,globalSetting:Ei})=>({user:xt,classroomList:kn,globalSetting:Ei,loading:Hn.effects}))(Ha)},66539:function(fn,jt,he){"use strict";he.d(jt,{Q8:function(){return Ze},d0:function(){return Mt},w6:function(){return at}});var ge=he(59301),Ie=he(78550),Ke=he(57809),ot=he(8591),He=he(43418),it=he(5112),be=he(95237),yt=he(43604),ct=he(6848),Xe=he(24905),et=he(3113),Je=he(61186),Ue=he.n(Je),Ee=he(2119),ee=he(70635),te=he(89392),ue=he.n(te),oe=he(58130),de=he(57534),ve=he(42203),xe=he(46898),Ae=he(18032),Pe=he(30738),Ne=he(83476),Le=he(20387),Re=he(59301),je=Object.defineProperty,Ge=Object.defineProperties,We=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,vt=(Nt,sn,Nn)=>sn in Nt?je(Nt,sn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):Nt[sn]=Nn,kt=(Nt,sn)=>{for(var Nn in sn||(sn={}))Qe.call(sn,Nn)&&vt(Nt,Nn,sn[Nn]);if(bt)for(var Nn of bt(sn))Dt.call(sn,Nn)&&vt(Nt,Nn,sn[Nn]);return Nt},Rt=(Nt,sn)=>Ge(Nt,We(sn)),Jt=(Nt,sn,Nn)=>new Promise((hn,Xn)=>{var Ft=ti=>{try{Kn(Nn.next(ti))}catch(Fn){Xn(Fn)}},Un=ti=>{try{Kn(Nn.throw(ti))}catch(Fn){Xn(Fn)}},Kn=ti=>ti.done?hn(ti.value):Promise.resolve(ti.value).then(Ft,Un);Kn((Nn=Nn.apply(Nt,sn)).next())});function at(Nt,sn){const Nn=[];for(let hn=Nt;hn<sn;hn++)Nn.push(hn);return Nn}const Ze=(Nt,sn,Nn)=>{const hn=Nt<Ue()().startOf("day"),Xn=Nt>Ue()(sn).endOf("day"),Ft=Nt<Ue()(Nn).startOf("day");return sn?Nn?Ue()()<=Ue()(Nn)?Ft||Xn:hn||Xn:Nt&&hn||Xn:Nn&&Ue()()<=Ue()(Nn)?Ft:hn},Mt=(Nt,sn)=>{const Nn=parseInt(Ue()(Nt).format("HH")),hn=parseInt(Ue()().format("HH")),Xn=parseInt(Ue()().format("mm"));if(!Nt)return{disabledHours:()=>at(0,hn),disabledMinutes:()=>at(0,Xn)};if(sn){const Ft=parseInt(Ue()(sn).format("HH")),Un=parseInt(Ue()(sn).format("mm"));return Ue()(Nt).isSame(Ue()(sn),"day")?{disabledHours:()=>at(0,Ft),disabledMinutes:()=>Nn<=Ft?at(0,Un):[]}:void 0}if(Ue()(Nt).isSame(Ue()(),"day"))return{disabledHours:()=>at(0,hn),disabledMinutes:()=>Ue()(Nt).isSame(Ue()(),"hour")&&Nn<=hn?at(0,Xn):[]}},{RangePicker:Yt}=Ie.default,{Option:Vt}=Ke.default,Ct=({shixunHomeworks:Nt,loading:sn,dispatch:Nn,classroomList:hn,user:Xn})=>{var Ft,Un,Kn,ti,Fn,Zt,Xt,mt,tt;const Wt=(0,ve.useParams)(),{workSetting:Lt,workList:pt,shixunWorkList:nt,headerInfo:Oe,changeData:we}=Nt,[ye,ke]=(0,ge.useState)(!1),[Ve,Be]=(0,ge.useState)(!1);let[dt,on]=(0,ge.useState)([]),[mn,Et]=(0,ge.useState)([]),[Ot,yn]=(0,ge.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:xe.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[Tn,qn]=(0,ge.useState)({}),[vi,gi]=(0,ge.useState)({});(0,ge.useEffect)(()=>()=>{on([])},[]),(0,ge.useEffect)(()=>{ke(!(0,Ee.GJ)())},[(0,Ee.GJ)()]);const wi=()=>{Nn({type:"shixunHomeworks/getWorkSetting",payload:kt({},Wt)})};(0,ge.useEffect)(()=>{if(!(Lt!=null&&Lt.course_id))return;Object.keys(Ot).map(function(Ai){Ot[Ai]=Lt[Ai]}),(!Ot.allow_late||!Ot.unified_late)&&(Ot.late_penalty=20,Ot.penalty_type=xe.Q.Percent),Ot.unified_setting||(Ot.unified_late=!1,Ot.unified_anonymous_comment=!1,Ot.unified_anonymous_appeal=!1),dt=JSON.parse(JSON.stringify(Lt.group_settings.map(Ai=>Rt(kt({},Ai),{group_name:[Ai.group_name]})).filter(Ai=>Ai.publish_time!==null))),mn=JSON.parse(JSON.stringify(Lt.allow_late_settings.map(Ai=>Rt(kt({},Ai),{group_name:[Ai.group_name]})).filter(Ai=>Ai.late_time!==null))),yn(kt({},Ot));const Me=(0,oe.QE)((dt==null?void 0:dt.length)>0?dt:[]);on([...Me]),(mn==null?void 0:mn.length)<=0?Et([{penalty_type:xe.Q.Percent,late_penalty:20}]):Et([...mn])},[Lt]);const _n=()=>Jt(void 0,null,function*(){var Me,Ai;if(((Me=Xn==null?void 0:Xn.userInfo)==null?void 0:Me.user_status)===2){(0,Ae.Rd)();return}const Xi=JSON.parse(JSON.stringify(Ot));if(Xi.challenge_settings.filter(tr=>!tr.hide),Xi.categoryId=Wt.categoryId,(Ai=Xi.challenge_settings)!=null&&Ai.every(tr=>!tr.checked)){ot.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(dt),!Ot.unified_setting)dt=dt==null?void 0:dt.map(tr=>{var uo;if(!tr.publish_time||!tr.end_time)throw ot.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(!tr.group_name)throw ot.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return tr.group_name=typeof(tr==null?void 0:tr.group_name)=="string"?[tr==null?void 0:tr.group_name]:tr==null?void 0:tr.group_name,tr.group_id=(uo=Lt.group_settings)==null?void 0:uo.filter(qr=>{var Ni;return(Ni=tr==null?void 0:tr.group_name)==null?void 0:Ni.includes(qr.group_name)}).map(qr=>qr.group_id||qr.id).toString().split(","),tr});else if(!Ot.publish_time||!Ot.end_time)throw ot.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(Xi.group_settings=dt,Ot.allow_late)if(Ot.unified_late){if(Ot.late_penalty===null||Ot.late_penalty===void 0||Ot.late_penalty<0||Ot.late_penalty>100)throw ot.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(!Ot.late_time)throw ot.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 mn=mn==null?void 0:mn.map(tr=>{var uo,qr;if(tr.late_penalty===null||tr.late_penalty===void 0||tr.late_penalty<0||tr.late_penalty>100)throw ot.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(!tr.late_time)throw ot.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(!tr.group_name)throw ot.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return tr.group_name=typeof(tr==null?void 0:tr.group_name)=="string"?[tr==null?void 0:tr.group_name]:tr==null?void 0:tr.group_name,tr.group_id=(qr=(uo=tr==null?void 0:tr.group_name)==null?void 0:uo.map(Ni=>{var an,en;let Kt=(en=(an=Lt.group_settings)==null?void 0:an.filter(Pt=>(Pt==null?void 0:Pt.group_name)===Ni))==null?void 0:en[0];return Kt==null?void 0:Kt.group_id}))==null?void 0:qr.toString().split(","),tr}),Xi.allow_late_settings=mn;let gr=yield(0,Le.Tr)({homework_common_ids:[parseInt(Wt.categoryId)],course_id:Wt.coursesId,type:"homework_common"});(gr==null?void 0:gr.student_count)===0?yr(Xi):(gi(Xi),qn(gr))}),yr=Me=>{var Ai;if(Me.total_score===null){ot.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Me!=null&&Me.work_efficiency&&Me.eff_score===null){ot.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const Xi=Me.challenge_settings.reduce((uo,qr)=>uo+Number(qr.challenge_score),0);if((Xi==null?void 0:Xi.toFixed(10))!==((Ai=Me.total_score-Me.eff_score)==null?void 0:Ai.toFixed(10))){ot.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Me.total_score}\u5206`);return}const gr={shixun_evaluation:Me.shixun_evaluation,challenge_settings:Me.challenge_settings};let tr=()=>{var uo;const qr=()=>Jt(void 0,null,function*(){Be(!0),(yield(0,ee.ZP)(`/api/homework_commons/${Wt.categoryId}/publish_setting.json`,{method:"post",body:kt({},Me)})).status===0&&(ot.ZP.success("\u66F4\u65B0\u6210\u529F"),wi(),Nn({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:kt({},Wt)})),Be(!1)});!(0,te.isEqual)(we,gr)&&!((uo=Oe==null?void 0:Oe.homework_status)!=null&&uo.includes("\u672A\u53D1\u5E03"))?He.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:qr}):qr()};Lt!=null&&Lt.high_resources_consume&&!(Lt!=null&&Lt.high_resources_consume_permission)?Nn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Wt.coursesId,type:"shixun",type_id:Wt.categoryId,name:Lt.homework_name,fn:()=>{tr()}}}):tr()},ir=(Me,Ai,Xi="group_id")=>{var gr;return Ai?Ai.find(tr=>tr[Xi]===Me):(gr=Lt==null?void 0:Lt.group_settings)==null?void 0:gr.find(tr=>tr.group_id[0]===Me)},fr=(Lt==null?void 0:Lt.allow_late)||(Lt==null?void 0:Lt.anonymous_comment),xr=Me=>{var Ai,Xi;const gr=ir(Me,Lt==null?void 0:Lt.allow_late_settings,"id"),tr=ir(Me,Lt==null?void 0:Lt.anonymous_comment_settings),uo=ir(Me);return(Lt==null?void 0:Lt.allow_late)&&gr&&Ue()(gr==null?void 0:gr.late_time)<=Ue()()||(Lt==null?void 0:Lt.anonymous_comment)&&tr&&(tr==null?void 0:tr.evaluation_start)!==null||((Xi=(Ue()(uo==null?void 0:uo.end_time)<=Ue()()&&((Ai=Lt==null?void 0:Lt.allow_late_settings)==null?void 0:Ai.filter(qr=>qr.group_id.includes(Me))))[0])==null?void 0:Xi.late_time)!=null},jr=(0,ge.useMemo)(()=>(Lt==null?void 0:Lt.allow_late)||(Lt==null?void 0:Lt.all_group_late),[Lt,Oe]),Ki=Lt==null?void 0:Lt.anonymous_comment,Ir=Me=>{if(!Me)return!1;const Ai=ir(Me,Lt==null?void 0:Lt.anonymous_comment_settings);return(Lt==null?void 0:Lt.anonymous_comment)&&Ai&&(Ai==null?void 0:Ai.evaluation_start)!==null},Vi=(Me,Ai)=>{var Xi,gr,tr;Nn({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Me,index:Ai,rangePickerDisabled:ye||(Ue()()<=Ue()((gr=ir((Xi=Me==null?void 0:Me.group_id)==null?void 0:Xi[0]))==null?void 0:gr.publish_time)?!1:[!0,xr((tr=Me==null?void 0:Me.group_id)==null?void 0:tr[0])]),disabledDate:Lt==null?void 0:Lt.course_end_date}})};return Re.createElement("section",{className:de.Z.form},Re.createElement("div",{className:de.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Re.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")),Re.createElement("div",null,Re.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Re.createElement(it.ZP.Group,{disabled:ye||!((Ft=Oe==null?void 0:Oe.homework_status)!=null&&Ft.includes("\u672A\u53D1\u5E03"))||(0,Ee.Rm)()&&!((Un=hn.AssistantObject.practice)!=null&&Un.can_publish),value:Ot.unified_setting,onChange:Me=>{var Ai;if(!((Ai=Oe==null?void 0:Oe.homework_status)!=null&&Ai.includes("\u672A\u53D1\u5E03"))){ot.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Ot.unified_setting=!Ot.unified_setting,Ot.unified_setting||(Ot.unified_late=!1,Et([{late_penalty:5}])),yn(Object.assign({},Ot)),Ot.unified_setting===!1&&dt==""){on(dt.concat({}));return}Ot.unified_setting&&(on([]),Et([{late_penalty:5}]))}},Re.createElement(it.ZP,{value:!0,disabled:ye||!(Lt!=null&&Lt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Re.createElement(it.ZP,{disabled:ye||!((Kn=Lt==null?void 0:Lt.group_settings)!=null&&Kn.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((ti=Lt==null?void 0:Lt.group_settings)==null?void 0:ti.length)===0&&Re.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")),Ot.unified_setting&&Re.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Re.createElement(be.Z,{align:"middle"},Re.createElement(yt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Re.createElement(yt.Z,{className:"ml10"},Re.createElement(Ie.default,{size:"large",disabled:ye||!((Fn=Oe==null?void 0:Oe.homework_status)!=null&&Fn.includes("\u672A\u53D1\u5E03")||(Zt=Oe==null?void 0:Oe.homework_status)!=null&&Zt.includes("\u672A\u5F00\u59CB"))||(0,Ee.Rm)()&&!((Xt=hn.AssistantObject.practice)!=null&&Xt.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:Me=>Ze(Me,Lt==null?void 0:Lt.course_end_date),disabledTime:Me=>Mt(Me),value:Ot.publish_time?Ue()(Ot.publish_time):"",onChange:(Me,Ai)=>{Ot.publish_time=Ai,(Ot.end_time==""||!Ot.end_time)&&Ot.unified_setting&&(Ot.end_time=Ue()(Me).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),yn(Object.assign({},Ot))}}))),Re.createElement(be.Z,{align:"middle",className:"pl30"},Re.createElement(yt.Z,null,"\u622A\u6B62\u65F6\u95F4"),Re.createElement(yt.Z,{className:"ml10"},Re.createElement(Ie.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ue()((0,oe.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Lt==null?void 0:Lt.allow_late)&&(Lt==null?void 0:Lt.homework_status.includes("\u5DF2\u622A\u6B62"))||ye||(Lt==null?void 0:Lt.allow_late)&&Ue()()>=Ue()(Lt==null?void 0:Lt.end_time)||(0,Ee.Rm)()&&!((mt=hn.AssistantObject.practice)!=null&&mt.can_publish),disabledDate:Me=>Ze(Me,Lt==null?void 0:Lt.course_end_date,Ot.publish_time),disabledTime:Me=>Mt(Me,Ot.publish_time),value:Ot.end_time?Ue()(Ot.end_time):"",onChange:(Me,Ai)=>{Ot.end_time=Ai,yn(Object.assign({},Ot))}})))),!Ot.unified_setting&&(dt==null?void 0:dt.length)>0&&Re.createElement(be.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},dt&&dt.map(function(Me,Ai){var Xi,gr,tr,uo,qr,Ni,an;return Re.createElement(yt.Z,{span:24,key:Ai},Re.createElement(be.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ai==(dt==null?void 0:dt.length)-1?"0px":"10px"}},Re.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Ai+1),Re.createElement(Ke.default,{disabled:ye||((Xi=Oe==null?void 0:Oe.homework_status)!=null&&Xi.includes("\u672A\u53D1\u5E03")&&Me.id||Ue()()<Ue()(Me==null?void 0:Me.publish_time)?!1:!!(Me!=null&&Me.publish_time))||(0,Ee.Rm)()&&!((gr=hn.AssistantObject.practice)!=null&&gr.can_publish),mode:"multiple",className:de.Z.multiple_select,style:{width:"250px"},value:Me.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:en=>{var Kt;if((0,Ee.Rm)()&&!((Kt=hn.AssistantObject.practice)!=null&&Kt.can_publish)){ot.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}dt[Ai].group_name=en,dt[Ai].group_id=Me.group_id;const Pt=(0,te.flattenDeep)(dt.map(bn=>bn.group_name)),Sn=mn.map(bn=>{let zt=(bn==null?void 0:bn.group_name)||[];return Rt(kt({},bn),{group_name:(0,te.remove)(zt,gt=>Pt.includes(gt))})});Et(Sn),on(dt.slice())},maxTagCount:4,maxTagPlaceholder:en=>Re.createElement("div",{style:{cursor:"pointer"},onClick:()=>Vi(Me,Ai)},"+",en==null?void 0:en.length)},Lt.group_settings&&Lt.group_settings.map(function(en){if(!dt.map(Pt=>Pt.group_name).flat().includes(en.group_name))return Re.createElement(Vt,{value:en.group_name,key:en.id},en.group_name)})),Re.createElement("div",{className:"ml20"},Re.createElement(Yt,{size:"large",ranges:{\u6B64\u523B:[Me.publish_time?Ue()(Me.publish_time):Ue()(),Ue()()]},allowClear:!1,disabled:ye||(Ue()()<=Ue()((uo=ir((tr=Me==null?void 0:Me.group_id)==null?void 0:tr[0]))==null?void 0:uo.publish_time)?!1:[!0,xr((qr=Me==null?void 0:Me.group_id)==null?void 0:qr[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:en=>Ze(en,Lt==null?void 0:Lt.course_end_date),disabledTime:en=>Mt(en),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ue()((0,oe.U6)(),"HH:mm"),Ue()((0,oe.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Me.publish_time&&[Ue()(Me.publish_time),Me.end_time?Ue()(Me.end_time):void 0],onChange:(en,Kt)=>{var Pt;if((0,Ee.Rm)()&&!((Pt=hn.AssistantObject.practice)!=null&&Pt.can_publish)){ot.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}dt[Ai].publish_time=Kt[0],!Me.end_time&&Kt[0]?dt[Ai].end_time=Ue()(Kt[0]).add(7,"days"):dt[Ai].end_time=Kt[1],on([...dt])},onCalendarChange:(en,Kt,Pt)=>{if(Kt!=null&&Kt[0]&&!Kt[1]){const Sn=Ue()(Kt[0]).add(7,"days");dt[Ai].publish_time=Kt[0],dt[Ai].end_time=Sn,on([...dt])}}})),!ye&&Re.createElement("div",{style:{display:"flex",width:"50px"}},((Ni=Me==null?void 0:Me.group_id)==null?void 0:Ni.length)>1&&Re.createElement(ct.Z,{title:"\u89C4\u5219\u62C6\u5206"},Re.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Vi(Me,Ai)})),dt.length<((an=Lt==null?void 0:Lt.group_settings)==null?void 0:an.length)&&Re.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var en;if((0,Ee.Rm)()&&!((en=hn.AssistantObject.practice)!=null&&en.can_publish)){ot.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}on(dt.concat({}))}}),((Me==null?void 0:Me.publish_time)&&Ue()()<Ue()(Me==null?void 0:Me.publish_time)||!(Me!=null&&Me.publish_time))&&Ai!=0&&Re.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const en=(0,te.cloneDeep)(mn);en.forEach((Kt,Pt)=>{Kt.group_name&&(Kt.group_name=Kt.group_name.filter(Sn=>{var bn;return!((bn=dt[Ai].group_name)!=null&&bn.includes(Sn))}))}),dt=dt.filter((Kt,Pt)=>Ai!==Pt),Et(en),on(dt.slice()),setTimeout(()=>on(dt.slice()),10)}}))))}))),Re.createElement(be.Z,null,Re.createElement(yt.Z,null,Re.createElement("div",{className:de.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Re.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"))),Re.createElement(yt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Re.createElement(Xe.default,{checked:Ot.allow_late,disabled:ye||jr,onChange:Me=>{var Ai;if((0,Ee.Rm)()&&!((Ai=hn.AssistantObject.practice)!=null&&Ai.can_late)){ot.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}Me.target.checked&&He.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Re.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Re.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"),Re.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Re.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"))}),Ot.allow_late=!Ot.allow_late,mn==""&&Et([{late_penalty:5}]),yn(Object.assign({},Ot))}},Re.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Ot==null?void 0:Ot.allow_late)&&Re.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Re.createElement("div",{style:{display:"flex"}},Re.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Re.createElement(it.ZP.Group,{style:{marginLeft:"20px"},disabled:ye||(Lt==null?void 0:Lt.anonymous_comment)||(Lt==null?void 0:Lt.allow_late),value:Ot.unified_late,onChange:Me=>{var Ai;if((0,Ee.Rm)()&&!((Ai=hn.AssistantObject.practice)!=null&&Ai.can_late)){ot.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}Ot.unified_late=Me.target.value,mn==""&&!Me.target.value&&Et([{penalty_type:xe.Q.Percent,late_penalty:20}]),yn(kt({},Ot))}},(Ot==null?void 0:Ot.unified_setting)&&Re.createElement(it.ZP,{value:!0,disabled:!(Lt!=null&&Lt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((tt=Lt==null?void 0:Lt.group_settings)==null?void 0:tt.length)>0&&Re.createElement(it.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Ot!=null&&Ot.unified_late?Re.createElement(Re.Fragment,null,Re.createElement(be.Z,{align:"middle",style:{marginTop:"10px"}},Re.createElement(yt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Re.createElement(yt.Z,{className:"ml20"},Re.createElement(xe.Z,{disabled:ye||Ki,value:{type:Ot.penalty_type,inputValue:Ot.late_penalty},onChange:Me=>{var Ai;if((0,Ee.Rm)()&&!((Ai=hn.AssistantObject.practice)!=null&&Ai.can_late)){ot.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}yn(Rt(kt({},Ot),{late_penalty:Me.inputValue,penalty_type:Me.type}))}})),Re.createElement(yt.Z,{flex:"1",className:"ml5"},Re.createElement("span",{className:"c-grey-c ml10"},Ot.penalty_type===xe.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)"))),Re.createElement(be.Z,{align:"middle",style:{marginTop:"15px"}},Re.createElement(yt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Re.createElement(yt.Z,{className:"ml20"},Re.createElement(Ie.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ue()((0,oe.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ye||Ki,value:Ot.late_time?Ue()(Ot.late_time):"",disabledDate:Me=>Ze(Me,Lt==null?void 0:Lt.course_end_date),onChange:(Me,Ai)=>{var Xi;if((0,Ee.Rm)()&&!((Xi=hn.AssistantObject.practice)!=null&&Xi.can_late)){ot.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}Ot.late_time=Ai,yn(Object.assign({},Ot))}})))):mn.map(function(Me,Ai){var Xi;return Re.createElement(yt.Z,{span:24,key:Ai},Re.createElement(be.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Re.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Ai+1),Re.createElement(Ke.default,{disabled:ye||!((Xi=Oe==null?void 0:Oe.homework_status)!=null&&Xi.includes("\u672A\u53D1\u5E03"))&&Me.id||(Lt==null?void 0:Lt.anonymous_comment),mode:"multiple",className:de.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Me.group_name=="string"?[Me.group_name]:Me.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:gr=>{var tr;if((0,Ee.Rm)()&&!((tr=hn.AssistantObject.practice)!=null&&tr.can_late)){ot.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}mn[Ai].group_name=gr,mn[Ai].group_id=Me.group_id,Et(mn.slice())}},Lt.group_settings&&Lt.group_settings.map(function(gr){const tr=mn.map(qr=>qr.group_name).flat(),uo=dt.map(qr=>qr.group_name).flat();if(Ot!=null&&Ot.unified_setting){if(!tr.includes(gr.group_name))return Re.createElement(Vt,{value:gr.group_name,key:gr.id},gr.group_name)}else if(uo.includes(gr.group_name)&&!tr.includes(gr.group_name))return Re.createElement(Vt,{value:gr.group_name,key:gr.id},gr.group_name)})),Re.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Re.createElement(xe.Z,{disabled:ye||Ir(Me.id),value:{type:Me.penalty_type,inputValue:Me.late_penalty},onChange:gr=>{var tr;if((0,Ee.Rm)()&&!((tr=hn.AssistantObject.practice)!=null&&tr.can_late)){ot.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}mn[Ai].late_penalty=gr.inputValue,mn[Ai].penalty_type=gr.type,Et([...mn])}}),Re.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Re.createElement(Ie.default,{size:"large",disabled:ye||Ir(Me.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Ue()((0,oe.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:gr=>Ze(gr,Lt==null?void 0:Lt.course_end_date),format:"YYYY-MM-DD HH:mm",value:Me!=null&&Me.late_time?Ue()(Me.late_time):void 0,onChange:(gr,tr)=>{var uo;if((0,Ee.Rm)()&&!((uo=hn.AssistantObject.practice)!=null&&uo.can_late)){ot.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}mn[Ai].late_time=tr,Et([...mn])}}),!ye&&Re.createElement("div",{style:{display:"flex",width:"50px"}},Re.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var gr;if((0,Ee.Rm)()&&!((gr=hn.AssistantObject.practice)!=null&&gr.can_late)){ot.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Et(mn.concat({penalty_type:xe.Q.Percent,late_penalty:20}))}}),Ai>0&&!Me.id&&Re.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var gr;if((0,Ee.Rm)()&&!((gr=hn.AssistantObject.practice)!=null&&gr.can_late)){ot.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}mn=mn.filter((tr,uo)=>Ai!==uo),Et(mn.slice()),setTimeout(()=>Et(mn.slice()),10)}}))))})),!ye&&Re.createElement(Re.Fragment,null,Re.createElement(et.ZP,{type:"primary",size:"large",loading:Ve,style:{width:"138px",marginTop:"30px"},onClick:()=>_n()},"\u4FDD\u5B58")),Re.createElement(Pe.Z,{onConfirm:(Me,Ai)=>{dt.splice(Me,0,...Ai),dt.splice(Me+Ai.length,1);const Xi=(0,oe.QE)([...dt]);on([...Xi])}}),Re.createElement(Ne.Z,{resdata:Tn,type:"shixun",okloading:Ve,oktext:(Tn==null?void 0:Tn.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Me=>Jt(void 0,null,function*(){Be(!0);let Ai=yield(0,ee.ZP)(`/api/courses/${Wt.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Wt.categoryId)]}});Be(!1),(Ai==null?void 0:Ai.status)===0&&yr(vi)})}))};jt.ZP=(0,ve.connect)(({shixunHomeworks:Nt,classroomList:sn,loading:Nn,user:hn})=>({shixunHomeworks:Nt,classroomList:sn,loading:Nn.effects,user:hn}))(Ct)},68641:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(24645),Ke=he(78241),ot=he(43418),He=he(8591),it=he(2595),be=he(42203),yt=he(10148),ct=he(63593),Xe=he(70635),et=he(61186),Je=he.n(et),Ue=he(58130),Ee=he(59301),ee=Object.defineProperty,te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,de=(Ne,Le,Re)=>Le in Ne?ee(Ne,Le,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ne[Le]=Re,ve=(Ne,Le)=>{for(var Re in Le||(Le={}))ue.call(Le,Re)&&de(Ne,Re,Le[Re]);if(te)for(var Re of te(Le))oe.call(Le,Re)&&de(Ne,Re,Le[Re]);return Ne},xe=(Ne,Le,Re)=>new Promise((je,Ge)=>{var We=Dt=>{try{Qe(Re.next(Dt))}catch(vt){Ge(vt)}},bt=Dt=>{try{Qe(Re.throw(Dt))}catch(vt){Ge(vt)}},Qe=Dt=>Dt.done?je(Dt.value):Promise.resolve(Dt.value).then(We,bt);Qe((Re=Re.apply(Ne,Le)).next())});const{Dragger:Ae}=Ie.default,Pe=({classroomList:Ne,dispatch:Le,onOk:Re})=>{const je=(0,be.useParams)(),[Ge]=Ke.default.useForm(),[We,bt]=(0,ge.useState)(),[Qe,Dt]=(0,ge.useState)(!1),vt={height:100,onRemove:()=>{bt("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:kt=>xe(void 0,null,function*(){return bt(kt),!1})};return(0,ge.useEffect)(()=>{Ge.setFieldsValue({publish_time:Je()(Je()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Je()(Je()(new Date((0,Ue.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),Ee.createElement(ot.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:Ne.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Qe},onOk:()=>xe(void 0,null,function*(){Ge.submit()}),onCancel:()=>{Ge.resetFields(),Le({type:"classroomList/setActionTabs",payload:{}})}},Ee.createElement(Ke.default,{form:Ge,onFinish:kt=>xe(void 0,null,function*(){var Rt,Jt,at;if(!(We!=null&&We.size)){He.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Dt(!0);let Ze=new FormData;Ze.append("type",Ne.actionTabs.type),Ze.append("file",We);let Mt;window.location.href.indexOf("exercise")>-1?Mt=`/api/exercises/${Ne.actionTabs.id}/supplement_score.json`:Mt=`/api/homework_commons/${Ne.actionTabs.id}/supplement_score.json`;let Yt=yield(0,Xe.ZP)(Mt,{method:"post",body:Ze},!0);Dt(!1),(Yt==null?void 0:Yt.status)===0&&(Re(),Ge.resetFields(),Le({type:"classroomList/setActionTabs",payload:{}}),((Jt=(Rt=Yt==null?void 0:Yt.data)==null?void 0:Rt.fail)==null?void 0:Jt.length)>0&&ot.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:Ee.createElement(it.default,{pagination:!1,dataSource:(at=Yt==null?void 0:Yt.data)==null?void 0:at.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,Ue.FH)("",yt.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${Ne.actionTabs.type}`)}}))})},Ee.createElement(Ke.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},Ne.actionTabs.name),Ee.createElement(Ke.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:ct.Z.downloadbutton,href:yt.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Ne.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(Ke.default.Item,{style:{marginBottom:0}},Ee.createElement(Ae,ve({},vt),Ee.createElement("a",{className:ct.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"))))))};jt.Z=(0,be.connect)(({classroomList:Ne})=>({classroomList:Ne}))(Pe)},73601:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(24645),Ke=he(78241),ot=he(43418),He=he(8591),it=he(2595),be=he(92832),yt=he(95237),ct=he(43604),Xe=he(88897),et=he(78550),Je=he(42203),Ue=he(23469),Ee=he(10148),ee=he(63593),te=he(70635),ue=he(66539),oe=he(61186),de=he.n(oe),ve=he(58130),xe=he(59301),Ae=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Re=(Qe,Dt,vt)=>Dt in Qe?Ae(Qe,Dt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Qe[Dt]=vt,je=(Qe,Dt)=>{for(var vt in Dt||(Dt={}))Ne.call(Dt,vt)&&Re(Qe,vt,Dt[vt]);if(Pe)for(var vt of Pe(Dt))Le.call(Dt,vt)&&Re(Qe,vt,Dt[vt]);return Qe},Ge=(Qe,Dt,vt)=>new Promise((kt,Rt)=>{var Jt=Mt=>{try{Ze(vt.next(Mt))}catch(Yt){Rt(Yt)}},at=Mt=>{try{Ze(vt.throw(Mt))}catch(Yt){Rt(Yt)}},Ze=Mt=>Mt.done?kt(Mt.value):Promise.resolve(Mt.value).then(Jt,at);Ze((vt=vt.apply(Qe,Dt)).next())});const{Dragger:We}=Ie.default,bt=({classroomList:Qe,dispatch:Dt,onOk:vt})=>{const kt=(0,Je.useParams)(),[Rt]=Ke.default.useForm(),[Jt,at]=(0,ge.useState)(),[Ze,Mt]=(0,ge.useState)(!1),Yt={height:100,onRemove:()=>{at("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:Vt=>Ge(void 0,null,function*(){return at(Vt),!1})};return(0,ge.useEffect)(()=>{Rt.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"))})},[Qe.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"]),xe.createElement(ot.default,{centered:!0,title:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",open:Qe.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ze},onOk:()=>Ge(void 0,null,function*(){Rt.submit()}),onCancel:()=>{Rt.resetFields(),Dt({type:"classroomList/setActionTabs",payload:{}})}},xe.createElement(Ke.default,{form:Rt,colon:!1,onFinish:Vt=>Ge(void 0,null,function*(){var Ct,Nt,sn;if(!(Jt!=null&&Jt.size)){He.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Mt(!0);let Nn=new FormData;Nn.append("name",Vt.name),Nn.append("type",Qe.actionTabs.type),Nn.append("category_id",(kt==null?void 0:kt.categoryId)||null),Qe.actionTabs.type==="exercise"?(Nn.append("time",Vt.time||""),Nn.append("total_score",Vt.total_score)):Nn.append("description",Vt.description||""),Nn.append("publish_time",de()(Vt.publish_time).format("YYYY-MM-DD HH:mm")),Nn.append("end_time",de()(Vt.end_time).format("YYYY-MM-DD HH:mm")),Nn.append("file",Jt);let hn=yield(0,te.ZP)(`/api/courses/${kt.coursesId}/export_external_score_homework.json`,{method:"post",body:Nn},!0);Mt(!1),(hn==null?void 0:hn.status)===0&&(Rt.resetFields(),Dt({type:"classroomList/setActionTabs",payload:{}}),vt(),((Nt=(Ct=hn==null?void 0:hn.data)==null?void 0:Ct.fail)==null?void 0:Nt.length)>0&&ot.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:xe.createElement(it.default,{pagination:!1,dataSource:(sn=hn==null?void 0:hn.data)==null?void 0:sn.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=${Qe.actionTabs.type}`)}}))})},xe.createElement(Ke.default.Item,{label:Qe.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377\u540D\u79F0",labelCol:{span:3},name:"name",rules:[{required:!0,message:`\u8BF7\u8F93\u5165${Qe.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`}]},xe.createElement(be.default,{showCount:!0,placeholder:`\u8BF7\u8F93\u5165${Qe.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`,maxLength:60})),Qe.actionTabs.type!=="exercise"&&xe.createElement(Ke.default.Item,{label:"\u4F5C\u4E1A\u63CF\u8FF0",labelCol:{span:3},name:"description"},xe.createElement(Ue.Z,{watch:!0})),Qe.actionTabs.type==="exercise"&&xe.createElement(yt.Z,{style:{marginLeft:6}},xe.createElement(ct.Z,{span:12},xe.createElement(Ke.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"}]},xe.createElement(be.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u603B\u5206",style:{width:256},addonAfter:"\u5206"}))),xe.createElement(ct.Z,{span:12},xe.createElement(Ke.default.Item,{label:"\u7B54\u9898\u65F6\u957F",labelCol:{span:6},name:"time"},xe.createElement(Xe.Z,{style:{width:"100%"},addonAfter:"\u5206\u949F",placeholder:"\u8BF7\u8F93\u5165\u7B54\u9898\u65F6\u957F"})))),xe.createElement(yt.Z,{style:{marginLeft:6,marginBottom:12}},xe.createElement(ct.Z,{span:12},xe.createElement(Ke.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},xe.createElement(et.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:256},disabledDate:Vt=>(0,ue.Q8)(Vt),disabledTime:Vt=>(0,ue.d0)(Vt),allowClear:!1,format:"YYYY-MM-DD HH:mm"}))),xe.createElement(ct.Z,{span:12},xe.createElement(Ke.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},xe.createElement(et.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:Vt=>(0,ue.Q8)(Vt,"",Rt.getFieldValue("publish_time")),disabledTime:Vt=>(0,ue.d0)(Vt,Rt.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})))),xe.createElement(Ke.default.Item,{style:{marginBottom:0},label:xe.createElement("div",null,xe.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),xe.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},xe.createElement("div",null,xe.createElement("a",{download:"\u6A21\u7248.xlsx",className:ee.Z.downloadbutton,href:Ee.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${Qe.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),xe.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),xe.createElement(Ke.default.Item,{style:{marginBottom:0}},xe.createElement(We,je({},Yt),xe.createElement("a",{className:ee.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),xe.createElement("br",null),xe.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"))))))};jt.Z=(0,Je.connect)(({classroomList:Qe})=>({classroomList:Qe}))(bt)},47598:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return et}});var ge=he(59301),Ie=he(20834),Ke=he(92832),ot=he(24905),He=he(3113),it=he(38854),be={bottomControlContainer:"bottomControlContainer___woAeo",buttonWrap:"buttonWrap___iRw4K",moveCategory:"moveCategory___oiQqw"},yt=he(2119),ct=he(18290),et=({buttonDataSource:Je,onButtonClick:Ue,useBatchStatus:Ee,allSelect:ee,setAllSelect:te,selectArrs:ue,onMenuClick:oe,setSeleArr:de,catalogue:ve,addCatalogue:xe})=>{const[Ae,Pe]=(0,ge.useState)(!1),[Ne,Le]=(0,ge.useState)("");console.log("---",ve);const Re=ge.createElement("div",{className:be.moveCategory,onMouseLeave:je=>Pe(!1)},ge.createElement(Ie.default,{onClick:oe,style:{maxHeight:300,width:240,overflow:"auto"}},ge.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},ge.createElement(Ke.default,{onChange:je=>{Le(je.target.value)}})),ve==null?void 0:ve.map(function(je,Ge){var We;if(!(Ne!==""&&je.category_name.indexOf(Ne)<0))return ge.createElement(ge.Fragment,null,ge.createElement(Ie.default.Item,{className:"multi-llipsis1e",key:je.category_id,title:je.category_name},je.category_name),(We=je==null?void 0:je.third_category)==null?void 0:We.map(bt=>ge.createElement(Ie.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:bt.category_id,title:bt.category_name},bt.category_name)))}),xe&&ge.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:xe},"\u65B0\u5EFA\u5B50\u76EE\u5F55...")));return ge.createElement("div",{className:be.bottomControlContainer},ge.createElement("div",null,ge.createElement("div",null,ge.createElement(ot.default,{checked:ee,onChange:te},"\u5168\u9009\u672C\u9875\uFF08",ue.length,"\uFF09")),(0,yt.GJ)()&&Je.map(je=>ge.createElement("div",{key:je.name},ge.createElement(He.ZP,{type:"primary",icon:je.icon,className:be.buttonWrap,onClick:()=>Ue(je)},je.name))),(0,yt.GJ)()&&(xe||ve)&&ge.createElement("div",null,ge.createElement(it.Z,{open:Ae,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>Re,getPopupContainer:je=>je.parentNode},ge.createElement("span",{className:"ant-dropdown-link",onMouseEnter:je=>Pe(!0)},ge.createElement(He.ZP,{type:"primary",className:be.buttonWrap,icon:ge.createElement("i",{className:"iconfont icon-yidongmulu"})},ge.createElement("span",null,"\u79FB\u52A8\u5230\u76EE\u5F55 ",ge.createElement(ct.Z,null))))))),ge.createElement("div",null,ge.createElement(He.ZP,{type:"primary",ghost:!0,onClick:()=>{Ee(!1),de([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},30738:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return te}});var ge=he(59301),Ie=he(42203),Ke=he(78550),ot=he(43418),He=he(92832),it=he(95237),be=he(43604),yt={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},ct=he(61186),Xe=he.n(ct),et=he(58130),Je=he(97267),Ue=he(59301);const{RangePicker:Ee}=Ke.default,ee=({dispatch:ue,classroomList:oe,onConfirm:de})=>{const[ve,xe]=(0,ge.useState)([]),[Ae,Pe]=(0,ge.useState)([]),[Ne,Le]=(0,ge.useState)("");(0,ge.useEffect)(()=>{var Ge;if(oe.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let We=oe.actionTabs.data;console.log("data",We);let bt=(Ge=We==null?void 0:We.group_name)==null?void 0:Ge.map((Qe,Dt)=>{var vt;return{group_id:We==null?void 0:We.group_id[Dt],group_name:We==null?void 0:We.group_name[Dt],is_admin:We==null?void 0:We.is_admin,end_time:We==null?void 0:We.end_time,publish_time:Array.isArray(We==null?void 0:We.publish_time)?(vt=We==null?void 0:We.publish_time)==null?void 0:vt[0]:We==null?void 0:We.publish_time}});bt&&(xe([...bt]),Pe([...bt]))}},[oe.actionTabs]);const Re=()=>{ue({type:"classroomList/setActionTabs",payload:{}}),Le("")},je=Ge=>{if(Ge){const We=Ae==null?void 0:Ae.filter(bt=>{var Qe,Dt;return(Dt=(Qe=bt==null?void 0:bt.group_name)==null?void 0:Qe.toLowerCase())==null?void 0:Dt.includes(Ge==null?void 0:Ge.toLowerCase())});xe(We)}else xe(Ae)};return Ue.createElement(ot.default,{width:980,title:Ue.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Ue.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Ue.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")),Ue.createElement(He.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:Ne,onChange:Ge=>{Le(Ge.target.value.trim()),je(Ge.target.value.trim())}})),centered:!0,maskClosable:!1,open:oe.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>Re(),onOk:()=>{var Ge;de((Ge=oe.actionTabs)==null?void 0:Ge.index,Ae),Re()}},Ue.createElement("div",{className:yt.modal_con},Ue.createElement(it.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ve==null?void 0:ve.length)>0?ve.map(function(Ge,We){var bt,Qe;return Ue.createElement(be.Z,{span:24,key:We},Ue.createElement(it.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:We==(ve==null?void 0:ve.length)-1?"0px":"10px"}},Ue.createElement("div",{className:yt.multiple_select,title:Ge.group_name},Ge.group_name),Ue.createElement("div",{className:"ml20"},Ue.createElement(Ee,{size:"large",ranges:{\u6B64\u523B:[Ge.publish_time?Xe()(Ge.publish_time):Xe()(),Xe()()]},allowClear:!1,disabled:(bt=oe.actionTabs)==null?void 0:bt.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:Dt=>{var vt;return(0,et.Q8)(Dt,(vt=oe.actionTabs)==null?void 0:vt.disabledDate)},disabledTime:Dt=>(0,et.d0)(Dt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Xe()((0,et.U6)(),"HH:mm"),Xe()((0,et.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Ge.publish_time&&[Xe()(Ge.publish_time),Ge.end_time?Xe()(Ge.end_time):void 0],onChange:(Dt,vt)=>{ve[We].publish_time=vt[0],ve[We].end_time=vt[1],xe([...ve]),Ae.forEach(kt=>{kt.group_id===Ge.group_id&&(kt.publish_time=vt[0],kt.end_time=vt[1])}),Pe([...Ae])}})),(Qe=oe.actionTabs)!=null&&Qe.rangePickerDisabled?Ue.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Ue.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ve.splice(We,1),xe([...ve]),Ae.forEach((Dt,vt)=>{Dt.group_id===Ge.group_id&&Ae.splice(vt,1)}),Pe([...Ae])}})))}):Ue.createElement(Je.Z,null))))};var te=(0,Ie.connect)(({classroomList:ue})=>({classroomList:ue}))(ee)},23770:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return oe}});var ge=he(59301),Ie=he(20834),Ke=he(24905),ot=he(3113),He=he(38854),it=he(6848),be=he(57809),yt=he(92832),ct={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},Xe=he(2119),et=he(88551),Je=he(18290),Ue=he(26724),Ee=he.n(Ue),ee=he(42203),te=(de,ve,xe)=>new Promise((Ae,Pe)=>{var Ne=je=>{try{Re(xe.next(je))}catch(Ge){Pe(Ge)}},Le=je=>{try{Re(xe.throw(je))}catch(Ge){Pe(Ge)}},Re=je=>je.done?Ae(je.value):Promise.resolve(je.value).then(Ne,Le);Re((xe=xe.apply(de,ve)).next())}),oe=({isAdmin:de,dataSource:ve,batchStatus:xe,SortMenuName:Ae,setSortMenuName:Pe,detailCourseGroupsList:Ne,onSearch:Le,onBoard:Re,onSort:je,isboard:Ge,dispatch:We,onBatch:bt,SortMenus:Qe,isShowMode:Dt=!1,onModeChange:vt})=>{const[kt,Rt]=(0,ge.useState)(!1),[Jt,at]=(0,ge.useState)([]),[Ze,Mt]=(0,ge.useState)(!0);let[Yt,Vt]=(0,ge.useState)([]);const[Ct,Nt]=(0,ge.useState)(1),[sn,Nn]=(0,ge.useState)(!1),hn=(0,ee.useParams)(),Xn=ti=>{Pe(ti.name),je(ti)};(0,ge.useEffect)(()=>{Ge&&Ft()},[Ge]);const Ft=()=>te(void 0,null,function*(){var ti;if(Ze&&!sn){Nn(!0),Nt(Ct+1);const Fn=yield We({type:"classroomList/getCourseGroupsList",payload:{page:Ct,id:hn.coursesId,limit:20,nonenavigate:!0}});let Zt=[...(Fn==null?void 0:Fn.course_groups)||[]];((ti=Fn==null?void 0:Fn.course_groups)==null?void 0:ti.length)<20&&(Mt(!1),Zt.push({id:0,name:"\u672A\u5206\u73ED"})),Nn(!1),Vt([...Yt,...Zt])}}),Un=ge.createElement("section",{className:ct.dropmenu},ge.createElement("div",{style:{maxHeight:200,overflow:"auto"}},ge.createElement(Ee(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:ti=>{Ft()},hasMore:Ze,useWindow:!1},ge.createElement(Ie.default,{style:{width:240,zIndex:10}},(Ne==null?void 0:Ne.group_count)>0&&(Yt==null?void 0:Yt.filter(ti=>ti.edit_auth||ti.name==="\u672A\u5206\u73ED").map(function(ti,Fn){return ge.createElement(Ie.default.Item,{key:ti.id},ge.createElement(Ke.default,{checked:Jt.includes(ti.id),value:ti.id,onChange:Zt=>{let Xt=Jt.indexOf(ti.id);Jt.indexOf(ti.id)>-1?at(Jt.filter(mt=>mt!==ti.id)):at(Jt.concat(ti.id))}},ti.name))}))))),ge.createElement("aside",{style:{background:"#fff"}},ge.createElement("div",null,ge.createElement(ot.ZP,{type:"link",onClick:()=>{Re(Jt)}},"\u786E\u5B9A"),ge.createElement(ot.ZP,{type:"link",onClick:()=>{at([])}},"\u91CD\u7F6E")))),Kn=Ae==="\u9ED8\u8BA4\u6392\u5E8F";return ge.createElement("div",{className:ct.searchSortControllerContainer},!!(Qe!=null&&Qe.length)&&ge.createElement("div",null,ge.createElement(He.Z,{dropdownRender:()=>ge.createElement(Ie.default,{selectedKeys:[Ae]},Qe.map(ti=>ge.createElement(Ie.default.Item,{key:ti.name,onClick:()=>Xn(ti)},ti.name)))},ge.createElement("div",null,ge.createElement("span",{className:`${ct.btn} ${Kn?ct.btnSort:""}`},ge.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),Ae)))),Kn&&ge.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"},ge.createElement("span",{className:ct.tips},ge.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),Dt&&ge.createElement(be.default,{defaultValue:"",onChange:vt,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"}]}),ge.createElement(yt.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onSearch:Le,style:{width:220,marginLeft:Dt?"":"auto"}}),(0,Xe.eB)()&&Ge&&ge.createElement(He.Z,{dropdownRender:()=>Un,open:kt,onOpenChange:ti=>{Rt(ti)}},ge.createElement("a",null,"\u5206\u73ED",kt?ge.createElement(et.Z,{style:{marginLeft:6}}):ge.createElement(Je.Z,{style:{marginLeft:6}}))))}},68906:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Je}});var ge=he(59301),Ie=he(95237),Ke=he(43604),ot=he(20834),He=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"},ct=he(42203),Xe=he(2119),Je=({isLoading:Ue,addText:Ee,tabDataSource:ee,isAdmin:te,dispatch:ue,classroomList:oe,type:de,isExercise:ve,defaultSelectedKeys:xe,onTabMenuClick:Ae,getDropdownMenu:Pe,showControlButton:Ne,buttonText:Le,buttonIcon:Re="icon-tianjiadaohang",extraNode:je,user:Ge,onButtonClick:We,isModelUser:bt})=>{var Qe,Dt,vt,kt,Rt;const Jt=(0,ct.useParams)();return ge.createElement("div",{className:yt.tabMenuContainer},ge.createElement(Ie.Z,null,ge.createElement(Ke.Z,{flex:"1"},ge.createElement(ot.default,{onSelect:at=>Ue?{}:Ae(at),mode:"horizontal",selectedKeys:xe},ee.map(at=>ge.createElement(ot.default.Item,{key:typeof at.index=="number"?at.index:at.id},ge.createElement("span",{className:"c-grey-666"},at.name),at.total!==void 0&&te&&ge.createElement("span",{className:"c-grey-999 ml20"},at.total||0))))),te&&ve&&ge.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&&ge.createElement(Ke.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},ve&&ge.createElement(He.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>ge.createElement(ot.default,null,ge.createElement(ot.default.Item,{key:1,onClick:()=>{var at;if((0,Xe.Rm)()&&!((at=oe.AssistantObject.exercise)!=null&&at.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:Jt.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),ge.createElement(ot.default.Item,{key:3,onClick:()=>{var at;if((0,Xe.Rm)()&&!((at=oe.AssistantObject.exercise)!=null&&at.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}ct.history.push(`/classrooms/${Jt==null?void 0:Jt.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},ge.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},ge.createElement("span",{style:{color:"#666666",cursor:"pointer"}},ge.createElement("i",{className:"iconfont icon-xiazai6"})))),ge.createElement("div",{className:yt.control},ge.createElement("div",{className:yt.extra},je),Ne&&(Le=="\u6DFB\u52A0\u76F4\u64AD"?ge.createElement(He.Z,{menu:{items:(Dt=(Qe=[{label:ge.createElement("div",{onClick:()=>{We("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},bt&&{label:ge.createElement("div",{onClick:()=>{We("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Qe.filter(at=>at==null?void 0:at.show))==null?void 0:Dt.map(at=>({label:at==null?void 0:at.label,key:at==null?void 0:at.key}))}},ge.createElement("span",{className:yt.selectBtn},ge.createElement("span",null,ge.createElement("i",{className:`iconfont ${Re}`})),ge.createElement("span",null,Le))):ge.createElement("span",{onClick:We,style:{cursor:"pointer"},className:yt.selectBtn},ge.createElement("span",null,ge.createElement("i",{className:`iconfont ${Re}`})),ge.createElement("span",null,Le))),!!Pe&&ge.createElement(He.Z,{disabled:((vt=Ge==null?void 0:Ge.userInfo)==null?void 0:vt.user_status)===2,className:"ml10",dropdownRender:Pe},ge.createElement("span",{className:((kt=Ge==null?void 0:Ge.userInfo)==null?void 0:kt.user_status)===2?yt.selectBtn1:yt.selectBtn},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-tianjiadaohang"})),ge.createElement(be.Z,{title:((Rt=Ge==null?void 0:Ge.userInfo)==null?void 0:Rt.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"},ge.createElement("span",null,Ee||"\u521B\u5EFA\u8BD5\u5377"))))))))}},40389:function(fn,jt,he){"use strict";he.d(jt,{$i:function(){return je},K1:function(){return We},O7:function(){return bt},T$:function(){return Re}});var ge=he(94606),Ie=he(81349),Ke=he(79124),ot=he(3129),He=he(35427),it=he(43418),be=he(78241),yt=he(8591),ct=he(92832),Xe=he(95237),et=he(43604),Je=he(59301),Ue=he(42203),Ee=he(28209),ee=he.n(Ee),te=he(58130),ue=he(59301),oe=Object.defineProperty,de=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ae=(Qe,Dt,vt)=>Dt in Qe?oe(Qe,Dt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Qe[Dt]=vt,Pe=(Qe,Dt)=>{for(var vt in Dt||(Dt={}))ve.call(Dt,vt)&&Ae(Qe,vt,Dt[vt]);if(de)for(var vt of de(Dt))xe.call(Dt,vt)&&Ae(Qe,vt,Dt[vt]);return Qe},Ne=(Qe,Dt,vt)=>new Promise((kt,Rt)=>{var Jt=Mt=>{try{Ze(vt.next(Mt))}catch(Yt){Rt(Yt)}},at=Mt=>{try{Ze(vt.throw(Mt))}catch(Yt){Rt(Yt)}},Ze=Mt=>Mt.done?kt(Mt.value):Promise.resolve(Mt.value).then(Jt,at);Ze((vt=vt.apply(Qe,Dt)).next())});const Le=Qe=>{const Dt=ee().enc.Utf8.parse("c03f36595bd5610b");return ee().AES.encrypt(Qe||"",Dt,{iv:Dt,mode:ee().mode.CBC}).toString()},Re=({onCancel:Qe,open:Dt})=>ue.createElement(it.default,{title:"\u63D0\u793A",width:619,centered:!0,open:Dt,destroyOnClose:!0,okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",onCancel:Qe,onOk:()=>{Ue.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")),je=({onCancel:Qe,onFinish:Dt,open:vt,Data:kt})=>{const[Rt]=be.default.useForm(),[,Jt,at]=(0,He.U)((kt==null?void 0:kt.type)=="exercise"?Ke.yE:Ie.yE,{id:kt==null?void 0:kt.id});return(0,Je.useEffect)(()=>{vt||Rt.resetFields()},[vt]),ue.createElement(it.default,{title:"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58",width:619,centered:!0,open:vt,destroyOnClose:!0,confirmLoading:Jt,onCancel:Qe,onOk:()=>{Rt==null||Rt.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:Rt,className:"mt-20px",size:"large",colon:!1,onFinish:Ze=>Ne(void 0,null,function*(){const Mt=yield at({id:kt==null?void 0:kt.id,is_encrypt:!0,pwd:Le(Ze.pwd),pwd_confirm:Le(Ze.pwd_confirm)});Mt.status===0?(yt.ZP.success("\u52A0\u5BC6\u6210\u529F"),Dt==null||Dt(Mt),Qe()):Rt.setFields([{name:"pwd",errors:[Mt==null?void 0:Mt.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(ct.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:Ze})=>({validator(Mt,Yt){return!Yt||Ze("pwd")===Yt?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},ue.createElement(ct.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"}))))},Ge=({onCancel:Qe,open:Dt,Data:vt})=>{var kt;const[Rt]=be.default.useForm(),[Jt]=be.default.useForm(),[at,Ze]=(0,Je.useState)(!1),[Mt,Yt]=(0,Je.useState)(0),[,,Vt]=(0,He.U)(ot.o1,{type:(vt==null?void 0:vt.type)=="exercise"?12:11}),[,Ct,Nt]=(0,He.U)((vt==null?void 0:vt.type)=="exercise"?Ke.dp:Ie.dp,{id:vt==null?void 0:vt.id}),[,sn,Nn]=(0,He.U)((vt==null?void 0:vt.type)=="exercise"?Ke.Qc:Ie.Qc,{id:vt==null?void 0:vt.id});return(0,Je.useEffect)(()=>{var hn;vt!=null&&vt.phone&&Rt.setFieldsValue({login:(hn=vt==null?void 0:vt.phone)==null?void 0:hn.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")})},[vt==null?void 0:vt.phone]),(0,Je.useEffect)(()=>{Mt>0&&setTimeout(()=>{Yt(Mt-1)},1e3)},[Mt]),(0,Je.useEffect)(()=>{Dt||(Rt.resetFields(),Jt.resetFields())},[Dt]),ue.createElement(ue.Fragment,null,ue.createElement(it.default,{title:"\u624B\u673A\u53F7\u7801\u6821\u9A8C",width:619,centered:!0,open:Dt,destroyOnClose:!0,confirmLoading:Ct,onCancel:Qe,onOk:()=>{Rt==null||Rt.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:(kt=vt==null?void 0:vt.phone)==null?void 0:kt.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},form:Rt,size:"large",colon:!1,onFinish:hn=>Ne(void 0,null,function*(){console.log("allValue",hn);const Xn=yield Nt({code:hn==null?void 0:hn.code,login:vt==null?void 0:vt.phone,id:vt==null?void 0:vt.id});Xn.status===0?(yt.ZP.success("\u6821\u9A8C\u6210\u529F"),Qe==null||Qe(),Ze(!0)):Rt.setFields([{name:"code",errors:[Xn==null?void 0:Xn.message]}])})},ue.createElement(be.default.Item,{label:"\u624B\u673A\u53F7",name:"login",required:!0},ue.createElement(ct.default,{placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",disabled:!0})),ue.createElement(Xe.Z,{wrap:!1,gutter:20},ue.createElement(et.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(ct.default,{placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}))),ue.createElement(et.Z,null,ue.createElement(ge.op,{openLoading:!0,size:"large",disabled:Mt>0,style:{borderRadius:"4px"},onClick:()=>Ne(void 0,null,function*(){const hn=yield Vt({type:(vt==null?void 0:vt.type)=="exercise"?12:11,login:vt==null?void 0:vt.phone,smscode:(0,te.M)(vt==null?void 0:vt.phone)});(hn==null?void 0:hn.status)===1&&(yt.ZP.success("\u53D1\u9001\u6210\u529F"),Yt(60))})},Mt===0?"\u83B7\u53D6\u9A8C\u8BC1\u7801":`(${Mt})\u79D2\u53EF\u91CD\u65B0\u83B7\u53D6`))))),ue.createElement(it.default,{title:"\u91CD\u7F6E\u5C01\u5B58\u5BC6\u7801",width:619,centered:!0,open:at,destroyOnClose:!0,confirmLoading:sn,onCancel:()=>{Ze(!1)},onOk:()=>{Jt==null||Jt.submit()}},ue.createElement(be.default,{className:"mt20",form:Jt,size:"large",colon:!1,onFinish:hn=>Ne(void 0,null,function*(){console.log("allValue",hn),(yield Nn(Pe({id:vt==null?void 0:vt.id},hn))).status===0&&(yt.ZP.success("\u91CD\u7F6E\u6210\u529F"),Ze(!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(ct.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:hn})=>({validator(Xn,Ft){return!Ft||hn("pwd")===Ft?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},ue.createElement(ct.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"})))))},We=({onCancel:Qe,onFinish:Dt,open:vt,Data:kt})=>{const[Rt]=be.default.useForm(),[Jt,at]=(0,Je.useState)(!1),[,Ze,Mt]=(0,He.U)((kt==null?void 0:kt.type)=="exercise"?Ke.yE:Ie.yE,{id:kt==null?void 0:kt.id});return(0,Je.useEffect)(()=>{vt||Rt.resetFields()},[vt]),ue.createElement(ue.Fragment,null,ue.createElement(it.default,{title:"\u8BD5\u5377\u89E3\u5C01",width:619,centered:!0,open:vt,destroyOnClose:!0,confirmLoading:Ze,onCancel:Qe,onOk:()=>{Rt==null||Rt.submit()}},ue.createElement(Xe.Z,{wrap:!1,align:"top",gutter:16},ue.createElement(et.Z,{flex:1},ue.createElement(be.default,{form:Rt,size:"large",colon:!1,onFinish:Yt=>Ne(void 0,null,function*(){const Vt=yield Mt({id:kt==null?void 0:kt.id,is_encrypt:!1,pwd:Le(Yt.pwd)});(Vt==null?void 0:Vt.status)===0?(yt.ZP.success("\u89E3\u5C01\u6210\u529F"),Dt==null||Dt(Vt),Qe==null||Qe()):Rt.setFields([{name:"pwd",errors:[Vt==null?void 0:Vt.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(ct.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"})))),ue.createElement(et.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{at(!0),Qe==null||Qe()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F")))),ue.createElement(Ge,{onCancel:()=>{at(!1)},open:Jt,Data:Pe({},kt)}))},bt=({onCancel:Qe,onFinish:Dt,open:vt,Data:kt})=>{const[Rt]=be.default.useForm(),[Jt,at]=(0,Je.useState)(!1),[,Ze,Mt]=(0,He.U)((kt==null?void 0:kt.type)=="exercise"?Ke.yE:Ie.yE,{id:kt==null?void 0:kt.id});return(0,Je.useEffect)(()=>{vt||Rt.resetFields()},[vt]),ue.createElement(ue.Fragment,null,ue.createElement(it.default,{title:"\u63D0\u793A",width:619,centered:!0,open:vt,destroyOnClose:!0,confirmLoading:Ze,onCancel:Qe,onOk:()=>{Rt==null||Rt.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:Rt,className:"mt-20px",size:"large",colon:!1,onFinish:Yt=>Ne(void 0,null,function*(){const Vt=yield Mt({id:kt==null?void 0:kt.id,is_encrypt:!1,pwd:Le(Yt.pwd)});(Vt==null?void 0:Vt.status)===0?(yt.ZP.success("\u89E3\u5C01\u6210\u529F"),Dt==null||Dt(Vt),Qe==null||Qe()):Rt.setFields([{name:"pwd",errors:[Vt==null?void 0:Vt.message]}])})},ue.createElement(Xe.Z,{wrap:!1,gutter:20},ue.createElement(et.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(ct.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}))),ue.createElement(et.Z,null,ue.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{at(!0),Qe==null||Qe()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F"))))),ue.createElement(Ge,{onCancel:()=>{at(!1)},open:Jt,Data:Pe({},kt)}))}},35427:function(fn,jt,he){"use strict";he.d(jt,{U:function(){return ct}});var ge=he(59301),Ie=Object.defineProperty,Ke=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,it=(Xe,et,Je)=>et in Xe?Ie(Xe,et,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Xe[et]=Je,be=(Xe,et)=>{for(var Je in et||(et={}))ot.call(et,Je)&&it(Xe,Je,et[Je]);if(Ke)for(var Je of Ke(et))He.call(et,Je)&&it(Xe,Je,et[Je]);return Xe},yt=(Xe,et,Je)=>new Promise((Ue,Ee)=>{var ee=oe=>{try{ue(Je.next(oe))}catch(de){Ee(de)}},te=oe=>{try{ue(Je.throw(oe))}catch(de){Ee(de)}},ue=oe=>oe.done?Ue(oe.value):Promise.resolve(oe.value).then(ee,te);ue((Je=Je.apply(Xe,et)).next())});function ct(Xe,et){const[Je,Ue]=(0,ge.useState)(et),[Ee,ee]=(0,ge.useState)(!1),[te,ue]=(0,ge.useState)();return[Je,Ee,(de,ve=!1)=>yt(this,null,function*(){const xe=ve?et:be(be({},Je),de);ee(!0),Ue(xe);const Ae=yield Xe(xe);return ee(!1),ue(Ae),Ae}),te]}},31087:function(fn,jt,he){"use strict";he.d(jt,{AL:function(){return xe},Iy:function(){return et},Qv:function(){return Ee},ez:function(){return ve},jb:function(){return Je}});var ge=he(32834),Ie=he.n(ge),Ke=he(11690),ot=he.n(Ke);let He=1;function it(Re,je){const Ge=Re.match(/^(\s+)(?:```)/);if(Ge===null)return je;const We=Ge[1];return je.split(`
|
|
|
`).map(bt=>{const Qe=bt.match(/^\s+/);if(Qe===null)return bt;const[Dt]=Qe;return Dt.length>=We.length?bt.slice(We.length):bt}).join(`
|
|
|
`)}let be=[],yt=["<ul>"];const ct=new(Ie()).Renderer,Xe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function et(){be.length=0,yt=["<ul>"]}const Je={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ue(Re,je,Ge,We){if(je>=Re.length||Re[je].level<=Ge)return je;var bt=Re[je];We.push("<li><a href='#"+He+bt.anchor+"'>"+bt.text+"</a>"),je++;var Qe=[];return je=Ue(Re,je,bt.level,Qe),Qe.length>0&&(We.push("<ul>"),Qe.forEach(function(Dt){We.push(Dt)}),We.push("</ul>")),We.push("</li>"),je=Ue(Re,je,Ge,We),je}function Ee(){return Ue(be,0,0,yt),yt.push("</ul>"),yt.join("")}const ee={heading(Re){const je=Xe.exec(Re);if(He+=1,je)return{type:"heading",raw:je[0],depth:je[1].length,text:je[2]}},fences(Re){const je=this.rules.block.fences.exec(Re);if(je){const Ge=je[0];let We=it(Ge,je[3]||"");const bt=je[2]?je[2].trim():je[2];if(["latex","katex","math"].indexOf(bt)>=0){const Qe=oe(),Dt=We;We=Qe,de[Qe]={type:"block",expression:Dt}}return{type:"code",raw:Ge,lang:bt,text:We}}}},te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ue=0;const oe=()=>`__special_katext_id_${ue++}__`;let de={};function ve(){return de}function xe(){ue=0,de={}}function Ae(Re){return Re=Re.replace(te,(je,Ge)=>{const We=oe();return de[We]={type:"inline",expression:Ge},We}),Re}const Pe=ct.listitem;ct.listitem=function(Re){return Pe(Ae(Re))};const Ne=ct.paragraph;ct.paragraph=function(Re){return Ne(Ae(Re))};const Le=ct.tablecell;ct.tablecell=function(Re,je){return Le(Ae(Re),je)},ct.code=function(Re,je,Ge){const We=(je||"").match(/\S*/)[0];return We?["latex","katex","math"].indexOf(We)>=0?`<p class='editormd-tex'>${Re}</p>`:`<pre class="prettyprint linenums"><code class="language-${je}">${Ge?Re:(0,Ke.escape)(Re,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Ge?Re:(0,Ke.escape)(Re,!0))+"</code></pre>"},ct.heading=function(Re,je,Ge){let We=this.options.headerPrefix+Ge.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return be.push({anchor:We,level:je,text:Re}),"<h"+je+' id="'+He+We+'">'+Re+"</h"+je+">"},Ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ie().use({tokenizer:ee,renderer:ct}),jt.ZP=Ie()},18032:function(fn,jt,he){"use strict";he.d(jt,{rX:function(){return xe},pW:function(){return Ae},gy:function(){return Pe},xY:function(){return ve},O5:function(){return de},tJ:function(){return Ee},o1:function(){return ee},Rd:function(){return oe}});var ge=he(42203),Ie=he(43418),Ke=he(28103),ot=he(8591),He=he(2119),it=he(58130),be=he(80205),yt=he(25510),ct="data:image/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We=Dt=>{try{Qe(Re.next(Dt))}catch(vt){Ge(vt)}},bt=Dt=>{try{Qe(Re.throw(Dt))}catch(vt){Ge(vt)}},Qe=Dt=>Dt.done?je(Dt.value):Promise.resolve(Dt.value).then(We,bt);Qe((Re=Re.apply(Ne,Le)).next())});const Ee=(Ne,Le=!1)=>!!(ee(Ne)&&te(Le)),ee=Ne=>(0,He.bg)()?!0:(Ne({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),te=(Ne=!1)=>{var Le;const{user:Re}=(0,ge.getDvaApp)()._store.getState();return(Le=Re.userInfo)!=null&&Le.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()}})},oe=()=>{Ie.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Je.createElement("div",{style:{textAlign:"center"}},Je.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"),Je.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:et}),Je.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 Ne;const{user:Le}=(0,ge.getDvaApp)()._store.getState();return(Ne=Le.userInfo)!=null&&Ne.professional_certification?!0:(Ie.default.confirm({title:"\u63D0\u793A",centered:!0,content:Je.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,He.V9)()?!0:(Ie.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Je.createElement("div",{className:"tc",style:{marginLeft:-38}},Je.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Je.createElement("img",{src:Xe,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),xe=(Ne,Le)=>Ne?!0:(Ie.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Je.createElement("div",null,Je.createElement("p",null,Le||"\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"),Je.createElement("div",{style:{marginLeft:"110px"}},Je.createElement("img",{src:ct,width:200}),Je.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=Ne=>{Ie.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Je.createElement("div",null,Je.createElement("div",null,Je.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"),Je.createElement(Ke.Z,null),Je.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Je.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 ",Je.createElement("a",null,Ne),"\u5929\u3002"),Je.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Je.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")),Je.createElement("div",{style:{textAlign:"center",marginTop:30}},Je.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:yt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Pe=(Ne,Le="")=>{const{shixunsDetail:{detail:Re}}=(0,ge.getDvaApp)()._store.getState();if((Re==null?void 0:Re.public)===2||(Re==null?void 0:Re.public)===1||(Re==null?void 0:Re.shixun_status)===3){let je="";return(Re==null?void 0:Re.public)===2&&(je="\u5DF2\u516C\u5F00"),(Re==null?void 0:Re.public)===1&&(je="\u5F85\u5BA1\u6838"),(Re==null?void 0:Re.shixun_status)===3&&(je="\u5DF2\u5173\u95ED"),Ie.default.info({centered:!0,icon:Je.createElement(be.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Je.createElement("div",{className:"tc",style:{marginLeft:-38}},Je.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Je.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",je,"\uFF0C",Le,"\u3002"),Je.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Je.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:yt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Re==null?void 0:Re.shixun_status)===2?(Ie.default.confirm({centered:!0,icon:Je.createElement(be.Z,null),title:"\u63D0\u793A",content:Je.createElement("div",null,Je.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Le,"\u3002"),Je.createElement("br",null),Je.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:Je.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:()=>Ue(void 0,null,function*(){(yield Ne({type:"shixunsDetail/cancelRelease",payload:{id:Re==null?void 0:Re.identifier}})).status!==401&&(ot.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ne({type:"shixunsDetail/getShixunsDetail",payload:{id:Re==null?void 0:Re.identifier}}),Ne({type:"practiceSetting/getCommonData",payload:{id:Re==null?void 0:Re.identifier}}))})})}}),!0):!1}},50371:function(fn,jt){"use strict";function he(){const ge=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ie=1;Ie<arguments.length;Ie++){const Ke=Ie<0||arguments.length<=Ie?void 0:arguments[Ie];Ke&&Object.keys(Ke).forEach(ot=>{const He=Ke[ot];He!==void 0&&(ge[ot]=He)})}return ge}jt.Z=he},77578:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ge}});const ge=Ie=>Ie?typeof Ie=="function"?Ie():Ie:null},13845:function(fn,jt,he){"use strict";he.d(jt,{F:function(){return ge},Z:function(){return Ie}});function ge(Ke){return Ke!=null&&Ke===Ke.window}function Ie(Ke,ot){var He,it;if(typeof window=="undefined")return 0;const be=ot?"scrollTop":"scrollLeft";let yt=0;return ge(Ke)?yt=Ke[ot?"pageYOffset":"pageXOffset"]:Ke instanceof Document?yt=Ke.documentElement[be]:(Ke instanceof HTMLElement||Ke)&&(yt=Ke[be]),Ke&&!ge(Ke)&&typeof yt!="number"&&(yt=(it=((He=Ke.ownerDocument)!==null&&He!==void 0?He:Ke).documentElement)===null||it===void 0?void 0:it[be]),yt}},56762:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ie}});var ge=he(59301);function Ie(){const[,Ke]=ge.useReducer(ot=>ot+1,0);return Ke}},68031:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ot}});var ge=he(23073);function Ie(He,it,be,yt){const ct=be-it;return He/=yt/2,He<1?ct/2*He*He*He+it:ct/2*((He-=2)*He*He+2)+it}var Ke=he(13845);function ot(He){let it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:be=()=>window,callback:yt,duration:ct=450}=it,Xe=be(),et=(0,Ke.Z)(Xe,!0),Je=Date.now(),Ue=()=>{const ee=Date.now()-Je,te=Ie(ee>ct?ct:ee,et,He,ct);(0,Ke.F)(Xe)?Xe.scrollTo(window.pageXOffset,te):Xe instanceof Document||Xe.constructor.name==="HTMLDocument"?Xe.documentElement.scrollTop=te:Xe.scrollTop=te,ee<ct?(0,ge.Z)(Ue):typeof yt=="function"&&yt()};(0,ge.Z)(Ue)}},27666:function(fn,jt,he){"use strict";var ge=he(26390),Ie=he(23073);function Ke(ot){let He;const it=yt=>()=>{He=null,ot.apply(void 0,(0,ge.Z)(yt))},be=function(){if(He==null){for(var yt=arguments.length,ct=new Array(yt),Xe=0;Xe<yt;Xe++)ct[Xe]=arguments[Xe];He=(0,Ie.Z)(it(ct))}};return be.cancel=()=>{Ie.Z.cancel(He),He=null},be}jt.Z=Ke},81228:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ne}});var ge=he(79545),Ie=he(68550),Ke=he(17928),ot=he(7711),He=he(59301),it=he(92310),be=he.n(it),yt=he(29301),ct=he(64002),Xe=he(27666),et=he(36355),Je=he(83116),Ue=he(37613);const Ee=Le=>{const{componentCls:Re}=Le;return{[Re]:{position:"fixed",zIndex:Le.zIndexPopup}}};var ee=(0,Je.Z)("Affix",Le=>{const Re=(0,Ue.TS)(Le,{zIndexPopup:Le.zIndexBase+10});return[Ee(Re)]});function te(Le){return Le!==window?Le.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ue(Le,Re,je){if(je!==void 0&&Re.top>Le.top-je)return je+Re.top}function oe(Le,Re,je){if(je!==void 0&&Re.bottom<Le.bottom+je){const Ge=window.innerHeight-Re.bottom;return je+Ge}}const de=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function ve(){return typeof window!="undefined"?window:null}var xe;(function(Le){Le[Le.None=0]="None",Le[Le.Prepare=1]="Prepare"})(xe||(xe={}));let Ae=function(Le){(0,Ke.Z)(je,Le);var Re=(0,ot.Z)(je);function je(){var Ge;return(0,ge.Z)(this,je),Ge=Re.apply(this,arguments),Ge.state={status:xe.None,lastAffix:!1,prevTarget:null},Ge.placeholderNodeRef=(0,He.createRef)(),Ge.fixedNodeRef=(0,He.createRef)(),Ge.addListeners=()=>{const We=Ge.getTargetFunc(),bt=We==null?void 0:We(),{prevTarget:Qe}=Ge.state;Qe!==bt&&(de.forEach(Dt=>{Qe==null||Qe.removeEventListener(Dt,Ge.lazyUpdatePosition),bt==null||bt.addEventListener(Dt,Ge.lazyUpdatePosition)}),Ge.updatePosition(),Ge.setState({prevTarget:bt}))},Ge.removeListeners=()=>{Ge.timer&&(clearTimeout(Ge.timer),Ge.timer=null);const{prevTarget:We}=Ge.state,bt=Ge.getTargetFunc(),Qe=bt==null?void 0:bt();de.forEach(Dt=>{Qe==null||Qe.removeEventListener(Dt,Ge.lazyUpdatePosition),We==null||We.removeEventListener(Dt,Ge.lazyUpdatePosition)}),Ge.updatePosition.cancel(),Ge.lazyUpdatePosition.cancel()},Ge.getOffsetTop=()=>{const{offsetBottom:We,offsetTop:bt}=Ge.props;return We===void 0&&bt===void 0?0:bt},Ge.getOffsetBottom=()=>Ge.props.offsetBottom,Ge.measure=()=>{const{status:We,lastAffix:bt}=Ge.state,{onChange:Qe}=Ge.props,Dt=Ge.getTargetFunc();if(We!==xe.Prepare||!Ge.fixedNodeRef.current||!Ge.placeholderNodeRef.current||!Dt)return;const vt=Ge.getOffsetTop(),kt=Ge.getOffsetBottom(),Rt=Dt();if(Rt){const Jt={status:xe.None},at=te(Ge.placeholderNodeRef.current);if(at.top===0&&at.left===0&&at.width===0&&at.height===0)return;const Ze=te(Rt),Mt=ue(at,Ze,vt),Yt=oe(at,Ze,kt);Mt!==void 0?(Jt.affixStyle={position:"fixed",top:Mt,width:at.width,height:at.height},Jt.placeholderStyle={width:at.width,height:at.height}):Yt!==void 0&&(Jt.affixStyle={position:"fixed",bottom:Yt,width:at.width,height:at.height},Jt.placeholderStyle={width:at.width,height:at.height}),Jt.lastAffix=!!Jt.affixStyle,Qe&&bt!==Jt.lastAffix&&Qe(Jt.lastAffix),Ge.setState(Jt)}},Ge.prepareMeasure=()=>{Ge.setState({status:xe.Prepare,affixStyle:void 0,placeholderStyle:void 0})},Ge.updatePosition=(0,Xe.Z)(()=>{Ge.prepareMeasure()}),Ge.lazyUpdatePosition=(0,Xe.Z)(()=>{const We=Ge.getTargetFunc(),{affixStyle:bt}=Ge.state;if(We&&bt){const Qe=Ge.getOffsetTop(),Dt=Ge.getOffsetBottom(),vt=We();if(vt&&Ge.placeholderNodeRef.current){const kt=te(vt),Rt=te(Ge.placeholderNodeRef.current),Jt=ue(Rt,kt,Qe),at=oe(Rt,kt,Dt);if(Jt!==void 0&&bt.top===Jt||at!==void 0&&bt.bottom===at)return}}Ge.prepareMeasure()}),Ge}return(0,Ie.Z)(je,[{key:"getTargetFunc",value:function(){const{getTargetContainer:We}=this.context,{target:bt}=this.props;return bt!==void 0?bt:We!=null?We:ve}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(We){this.addListeners(),(We.offsetTop!==this.props.offsetTop||We.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:We,placeholderStyle:bt}=this.state,{affixPrefixCls:Qe,rootClassName:Dt,children:vt}=this.props,kt=be()(We&&Dt,{[Qe]:!!We});let Rt=(0,ct.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return He.createElement(yt.Z,{onResize:this.updatePosition},He.createElement("div",Object.assign({},Rt,{ref:this.placeholderNodeRef}),We&&He.createElement("div",{style:bt,"aria-hidden":"true"}),He.createElement("div",{className:kt,ref:this.fixedNodeRef,style:We},He.createElement(yt.Z,{onResize:this.updatePosition},vt))))}}]),je}(He.Component);Ae.contextType=et.E_;var Ne=(0,He.forwardRef)((Le,Re)=>{const{prefixCls:je,rootClassName:Ge}=Le,{getPrefixCls:We}=(0,He.useContext)(et.E_),bt=We("affix",je),[Qe,Dt]=ee(bt),vt=Object.assign(Object.assign({},Le),{affixPrefixCls:bt,rootClassName:be()(Ge,Dt)});return Qe(He.createElement(Ae,Object.assign({},vt,{ref:Re})))})},24905:function(fn,jt,he){"use strict";he.d(jt,{default:function(){return Ne}});var ge=he(92310),Ie=he.n(ge),Ke=he(5630),ot=he(59301),He=he(36355),it=he(1684),be=he(32441),ct=ot.createContext(null),Xe=he(98447),et=he(14088),Je=he(4572),Ue=function(Le,Re){var je={};for(var Ge in Le)Object.prototype.hasOwnProperty.call(Le,Ge)&&Re.indexOf(Ge)<0&&(je[Ge]=Le[Ge]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ge=Object.getOwnPropertySymbols(Le);We<Ge.length;We++)Re.indexOf(Ge[We])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ge[We])&&(je[Ge[We]]=Le[Ge[We]]);return je};const Ee=(Le,Re)=>{var je;const{prefixCls:Ge,className:We,rootClassName:bt,children:Qe,indeterminate:Dt=!1,style:vt,onMouseEnter:kt,onMouseLeave:Rt,skipGroup:Jt=!1,disabled:at}=Le,Ze=Ue(Le,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Mt,direction:Yt,checkbox:Vt}=ot.useContext(He.E_),Ct=ot.useContext(ct),{isFormItemInput:Nt}=ot.useContext(be.aM),sn=ot.useContext(it.Z),Nn=(je=(Ct==null?void 0:Ct.disabled)||at)!==null&&je!==void 0?je:sn,hn=ot.useRef(Ze.value);ot.useEffect(()=>{Ct==null||Ct.registerValue(Ze.value)},[]),ot.useEffect(()=>{if(!Jt)return Ze.value!==hn.current&&(Ct==null||Ct.cancelValue(hn.current),Ct==null||Ct.registerValue(Ze.value),hn.current=Ze.value),()=>Ct==null?void 0:Ct.cancelValue(Ze.value)},[Ze.value]);const Xn=Mt("checkbox",Ge),[Ft,Un]=(0,Xe.ZP)(Xn),Kn=Object.assign({},Ze);Ct&&!Jt&&(Kn.onChange=function(){Ze.onChange&&Ze.onChange.apply(Ze,arguments),Ct.toggleOption&&Ct.toggleOption({label:Qe,value:Ze.value})},Kn.name=Ct.name,Kn.checked=Ct.value.includes(Ze.value));const ti=Ie()(`${Xn}-wrapper`,{[`${Xn}-rtl`]:Yt==="rtl",[`${Xn}-wrapper-checked`]:Kn.checked,[`${Xn}-wrapper-disabled`]:Nn,[`${Xn}-wrapper-in-form-item`]:Nt},Vt==null?void 0:Vt.className,We,bt,Un),Fn=Ie()({[`${Xn}-indeterminate`]:Dt},Je.A,Un),Zt=Dt?"mixed":void 0;return Ft(ot.createElement(et.Z,{component:"Checkbox",disabled:Nn},ot.createElement("label",{className:ti,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),vt),onMouseEnter:kt,onMouseLeave:Rt},ot.createElement(Ke.Z,Object.assign({"aria-checked":Zt},Kn,{prefixCls:Xn,className:Fn,disabled:Nn,ref:Re})),Qe!==void 0&&ot.createElement("span",null,Qe))))};var te=ot.forwardRef(Ee),ue=he(26390),oe=he(64002),de=function(Le,Re){var je={};for(var Ge in Le)Object.prototype.hasOwnProperty.call(Le,Ge)&&Re.indexOf(Ge)<0&&(je[Ge]=Le[Ge]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ge=Object.getOwnPropertySymbols(Le);We<Ge.length;We++)Re.indexOf(Ge[We])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ge[We])&&(je[Ge[We]]=Le[Ge[We]]);return je};const ve=(Le,Re)=>{const{defaultValue:je,children:Ge,options:We=[],prefixCls:bt,className:Qe,rootClassName:Dt,style:vt,onChange:kt}=Le,Rt=de(Le,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Jt,direction:at}=ot.useContext(He.E_),[Ze,Mt]=ot.useState(Rt.value||je||[]),[Yt,Vt]=ot.useState([]);ot.useEffect(()=>{"value"in Rt&&Mt(Rt.value||[])},[Rt.value]);const Ct=ot.useMemo(()=>We.map(Xt=>typeof Xt=="string"||typeof Xt=="number"?{label:Xt,value:Xt}:Xt),[We]),Nt=Xt=>{Vt(mt=>mt.filter(tt=>tt!==Xt))},sn=Xt=>{Vt(mt=>[].concat((0,ue.Z)(mt),[Xt]))},Nn=Xt=>{const mt=Ze.indexOf(Xt.value),tt=(0,ue.Z)(Ze);mt===-1?tt.push(Xt.value):tt.splice(mt,1),"value"in Rt||Mt(tt),kt==null||kt(tt.filter(Wt=>Yt.includes(Wt)).sort((Wt,Lt)=>{const pt=Ct.findIndex(Oe=>Oe.value===Wt),nt=Ct.findIndex(Oe=>Oe.value===Lt);return pt-nt}))},hn=Jt("checkbox",bt),Xn=`${hn}-group`,[Ft,Un]=(0,Xe.ZP)(hn),Kn=(0,oe.Z)(Rt,["value","disabled"]),ti=We.length?Ct.map(Xt=>ot.createElement(te,{prefixCls:hn,key:Xt.value.toString(),disabled:"disabled"in Xt?Xt.disabled:Rt.disabled,value:Xt.value,checked:Ze.includes(Xt.value),onChange:Xt.onChange,className:`${Xn}-item`,style:Xt.style,title:Xt.title},Xt.label)):Ge,Fn={toggleOption:Nn,value:Ze,disabled:Rt.disabled,name:Rt.name,registerValue:sn,cancelValue:Nt},Zt=Ie()(Xn,{[`${Xn}-rtl`]:at==="rtl"},Qe,Dt,Un);return Ft(ot.createElement("div",Object.assign({className:Zt,style:vt},Kn,{ref:Re}),ot.createElement(ct.Provider,{value:Fn},ti)))},xe=ot.forwardRef(ve);var Ae=ot.memo(xe);const Pe=te;Pe.Group=Ae,Pe.__ANT_CHECKBOX=!0;var Ne=Pe},98447:function(fn,jt,he){"use strict";he.d(jt,{C2:function(){return He}});var ge=he(17313),Ie=he(37613),Ke=he(83116);const ot=it=>{const{checkboxCls:be}=it,yt=`${be}-wrapper`;return[{[`${be}-group`]:Object.assign(Object.assign({},(0,ge.Wf)(it)),{display:"inline-flex",flexWrap:"wrap",columnGap:it.marginXS,[`> ${it.antCls}-row`]:{flex:1}}),[yt]:Object.assign(Object.assign({},(0,ge.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,ge.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,ge.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 He(it,be){const yt=(0,Ie.TS)(be,{checkboxCls:`.${it}`,checkboxSize:be.controlInteractiveSize});return[ot(yt)]}jt.ZP=(0,Ke.Z)("Checkbox",(it,be)=>{let{prefixCls:yt}=be;return[He(yt,it)]})},93891:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(36355),Ke=he(64165);const ot=He=>{const{componentName:it}=He,{getPrefixCls:be}=(0,ge.useContext)(Ie.E_),yt=be("empty");switch(it){case"Table":case"List":return ge.createElement(Ke.Z,{image:Ke.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(Ke.Z,{image:Ke.Z.PRESENTED_IMAGE_SIMPLE,className:`${yt}-small`});default:return ge.createElement(Ke.Z,null)}};jt.Z=ot},78550:function(fn,jt,he){"use strict";he.d(jt,{default:function(){return ol}});var ge=he(61186),Ie=he.n(ge),Ke=he(51395),ot=he(90111),He=he.n(ot),it=he(58319),be=he.n(it),yt=he(23250),ct=he.n(yt),Xe=he(74959),et=he.n(Xe),Je=he(10238),Ue=he.n(Je),Ee=he(33656),ee=he.n(Ee);Ie().extend(ee()),Ie().extend(Ue()),Ie().extend(He()),Ie().extend(be()),Ie().extend(ct()),Ie().extend(et()),Ie().extend(function(Ye,rt){var ft=rt.prototype,rn=ft.format;ft.format=function(Bn){var In=(Bn||"").replace("Wo","wo");return rn.bind(this)(In)}});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 ft=te[rt];return ft||rt.split("_")[0]},oe=function(){(0,Ke.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 ft=rt.locale("en");return ft.weekday()+ft.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,ft){return rt.add(ft,"year")},addMonth:function(rt,ft){return rt.add(ft,"month")},addDate:function(rt,ft){return rt.add(ft,"day")},setYear:function(rt,ft){return rt.year(ft)},setMonth:function(rt,ft){return rt.month(ft)},setDate:function(rt,ft){return rt.date(ft)},setHour:function(rt,ft){return rt.hour(ft)},setMinute:function(rt,ft){return rt.minute(ft)},setSecond:function(rt,ft){return rt.second(ft)},isAfter:function(rt,ft){return rt.isAfter(ft)},isValidate:function(rt){return rt.isValid()},locale:{getWeekFirstDay:function(rt){return Ie()().locale(ue(rt)).localeData().firstDayOfWeek()},getWeekFirstDate:function(rt,ft){return ft.locale(ue(rt)).weekday(0)},getWeek:function(rt,ft){return ft.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,ft,rn){return ft.locale(ue(rt)).format(rn)},parse:function(rt,ft,rn){for(var ln=ue(rt),Bn=0;Bn<rn.length;Bn+=1){var In=rn[Bn],ni=ft;if(In.includes("wo")||In.includes("Wo")){for(var ai=ni.split("-")[0],xi=ni.split("-")[1],_i=Ie()(ai,"YYYY").startOf("year").locale(ln),yi=0;yi<=52;yi+=1){var zi=_i.add(yi,"week");if(zi.format("Wo")===xi)return zi}return oe(),null}var mi=Ie()(ni,In,!0).locale(ln);if(mi.isValid())return mi}return ft&&oe(),null}}},ve=de,xe=he(53487),Ae=he(5891),Pe=he(59301),Ne={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"},Le=Ne,Re=he(88853),je=function(rt,ft){return Pe.createElement(Re.Z,(0,Ae.Z)({},rt,{ref:ft,icon:Le}))},Ge=Pe.forwardRef(je),We=Ge,bt={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"},Qe=bt,Dt=function(rt,ft){return Pe.createElement(Re.Z,(0,Ae.Z)({},rt,{ref:ft,icon:Qe}))},vt=Pe.forwardRef(Dt),kt=vt,Rt=he(33130),Jt={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"},at=Jt,Ze=function(rt,ft){return Pe.createElement(Re.Z,(0,Ae.Z)({},rt,{ref:ft,icon:at}))},Mt=Pe.forwardRef(Ze),Yt=Mt,Vt=he(92310),Ct=he.n(Vt),Nt=he(79545),sn=he(68550),Nn=he(21882),hn=he(17928),Xn=he(7711),Ft=he(80962),Un=he(57259),Kn=he(29043),ti=he(35788),Fn=he(36994),Zt=he(79722),Xt=he(51346),mt=10,tt=mt*10,Wt=7;function Lt(Ye,rt){if(!Ye&&!rt)return!0;if(!Ye||!rt)return!1}function pt(Ye,rt,ft){var rn=Lt(rt,ft);if(typeof rn=="boolean")return rn;var ln=Math.floor(Ye.getYear(rt)/10),Bn=Math.floor(Ye.getYear(ft)/10);return ln===Bn}function nt(Ye,rt,ft){var rn=Lt(rt,ft);return typeof rn=="boolean"?rn:Ye.getYear(rt)===Ye.getYear(ft)}function Oe(Ye,rt){var ft=Math.floor(Ye.getMonth(rt)/3);return ft+1}function we(Ye,rt,ft){var rn=Lt(rt,ft);return typeof rn=="boolean"?rn:nt(Ye,rt,ft)&&Oe(Ye,rt)===Oe(Ye,ft)}function ye(Ye,rt,ft){var rn=Lt(rt,ft);return typeof rn=="boolean"?rn:nt(Ye,rt,ft)&&Ye.getMonth(rt)===Ye.getMonth(ft)}function ke(Ye,rt,ft){var rn=Lt(rt,ft);return typeof rn=="boolean"?rn:Ye.getYear(rt)===Ye.getYear(ft)&&Ye.getMonth(rt)===Ye.getMonth(ft)&&Ye.getDate(rt)===Ye.getDate(ft)}function Ve(Ye,rt,ft){var rn=Lt(rt,ft);return typeof rn=="boolean"?rn:Ye.getHour(rt)===Ye.getHour(ft)&&Ye.getMinute(rt)===Ye.getMinute(ft)&&Ye.getSecond(rt)===Ye.getSecond(ft)}function Be(Ye,rt,ft,rn){var ln=Lt(ft,rn);return typeof ln=="boolean"?ln:nt(Ye,ft,rn)&&Ye.locale.getWeek(rt,ft)===Ye.locale.getWeek(rt,rn)}function dt(Ye,rt,ft){return ke(Ye,rt,ft)&&Ve(Ye,rt,ft)}function on(Ye,rt,ft,rn){return!rt||!ft||!rn?!1:!ke(Ye,rt,rn)&&!ke(Ye,ft,rn)&&Ye.isAfter(rn,rt)&&Ye.isAfter(ft,rn)}function mn(Ye,rt,ft){var rn=rt.locale.getWeekFirstDay(Ye),ln=rt.setDate(ft,1),Bn=rt.getWeekDay(ln),In=rt.addDate(ln,rn-Bn);return rt.getMonth(In)===rt.getMonth(ft)&&rt.getDate(In)>1&&(In=rt.addDate(In,-7)),In}function Et(Ye,rt,ft){var rn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(rt){case"year":return ft.addYear(Ye,rn*10);case"quarter":case"month":return ft.addYear(Ye,rn);default:return ft.addMonth(Ye,rn)}}function Ot(Ye,rt){var ft=rt.generateConfig,rn=rt.locale,ln=rt.format;return typeof ln=="function"?ln(Ye):ft.locale.format(rn.locale,Ye,ln)}function yn(Ye,rt){var ft=rt.generateConfig,rn=rt.locale,ln=rt.formatList;return!Ye||typeof ln[0]=="function"?null:ft.locale.parse(rn.locale,Ye,ln)}function Tn(Ye){var rt=Ye.cellDate,ft=Ye.mode,rn=Ye.disabledDate,ln=Ye.generateConfig;if(!rn)return!1;var Bn=function(dr,Qn,ji){for(var hr=Qn;hr<=ji;){var no=void 0;switch(dr){case"date":{if(no=ln.setDate(rt,hr),!rn(no))return!1;break}case"month":{if(no=ln.setMonth(rt,hr),!Tn({cellDate:no,mode:"month",generateConfig:ln,disabledDate:rn}))return!1;break}case"year":{if(no=ln.setYear(rt,hr),!Tn({cellDate:no,mode:"year",generateConfig:ln,disabledDate:rn}))return!1;break}}hr+=1}return!0};switch(ft){case"date":case"week":return rn(rt);case"month":{var In=1,ni=ln.getDate(ln.getEndDate(rt));return Bn("date",In,ni)}case"quarter":{var ai=Math.floor(ln.getMonth(rt)/3)*3,xi=ai+2;return Bn("month",ai,xi)}case"year":return Bn("month",0,11);case"decade":{var _i=ln.getYear(rt),yi=Math.floor(_i/mt)*mt,zi=yi+mt-1;return Bn("year",yi,zi)}}}function qn(Ye,rt){var ft=rt.formatList,rn=rt.generateConfig,ln=rt.locale;return(0,Zt.Z)(function(){if(!Ye)return[[""],""];for(var Bn="",In=[],ni=0;ni<ft.length;ni+=1){var ai=ft[ni],xi=Ot(Ye,{generateConfig:rn,locale:ln,format:ai});In.push(xi),ni===0&&(Bn=xi)}return[In,Bn]},[Ye,ft,ln],function(Bn,In){return!dt(rn,Bn[0],In[0])||!(0,Xt.Z)(Bn[1],In[1],!0)||!(0,Xt.Z)(Bn[2],In[2],!0)})}function vi(Ye,rt){var ft=rt.formatList,rn=rt.generateConfig,ln=rt.locale,Bn=(0,Pe.useState)(null),In=(0,Kn.Z)(Bn,2),ni=In[0],ai=In[1],xi=(0,Pe.useRef)(null);function _i(ji){var hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(xi.current),hr){ai(ji);return}xi.current=requestAnimationFrame(function(){ai(ji)})}var yi=qn(ni,{formatList:ft,generateConfig:rn,locale:ln}),zi=(0,Kn.Z)(yi,2),mi=zi[1];function dr(ji){_i(ji)}function Qn(){var ji=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;_i(null,ji)}return(0,Pe.useEffect)(function(){Qn(!0)},[Ye]),(0,Pe.useEffect)(function(){return function(){return cancelAnimationFrame(xi.current)}},[]),[mi,dr,Qn]}var gi=he(85108),wi=he(23073),_n=he(26390),yr=he(48886),ir=new Map;function fr(Ye,rt){var ft;function rn(){(0,yr.Z)(Ye)?rt():ft=(0,wi.Z)(function(){rn()})}return rn(),function(){wi.Z.cancel(ft)}}function xr(Ye,rt,ft){if(ir.get(Ye)&&cancelAnimationFrame(ir.get(Ye)),ft<=0){ir.set(Ye,requestAnimationFrame(function(){Ye.scrollTop=rt}));return}var rn=rt-Ye.scrollTop,ln=rn/ft*10;ir.set(Ye,requestAnimationFrame(function(){Ye.scrollTop+=ln,Ye.scrollTop!==rt&&xr(Ye,rt,ft-10)}))}function jr(Ye,rt){var ft=rt.onLeftRight,rn=rt.onCtrlLeftRight,ln=rt.onUpDown,Bn=rt.onPageUpDown,In=rt.onEnter,ni=Ye.which,ai=Ye.ctrlKey,xi=Ye.metaKey;switch(ni){case gi.Z.LEFT:if(ai||xi){if(rn)return rn(-1),!0}else if(ft)return ft(-1),!0;break;case gi.Z.RIGHT:if(ai||xi){if(rn)return rn(1),!0}else if(ft)return ft(1),!0;break;case gi.Z.UP:if(ln)return ln(-1),!0;break;case gi.Z.DOWN:if(ln)return ln(1),!0;break;case gi.Z.PAGE_UP:if(Bn)return Bn(-1),!0;break;case gi.Z.PAGE_DOWN:if(Bn)return Bn(1),!0;break;case gi.Z.ENTER:if(In)return In(),!0;break}return!1}function Ki(Ye,rt,ft,rn){var ln=Ye;if(!ln)switch(rt){case"time":ln=rn?"hh:mm:ss a":"HH:mm:ss";break;case"week":ln="gggg-wo";break;case"month":ln="YYYY-MM";break;case"quarter":ln="YYYY-[Q]Q";break;case"year":ln="YYYY";break;default:ln=ft?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return ln}function Ir(Ye,rt,ft){var rn=Ye==="time"?8:10,ln=typeof rt=="function"?rt(ft.getNow()).length:rt.length;return Math.max(rn,ln)+2}var Vi=null,Me=new Set;function Ai(Ye){return!Vi&&typeof window!="undefined"&&window.addEventListener&&(Vi=function(ft){(0,_n.Z)(Me).forEach(function(rn){rn(ft)})},window.addEventListener("mousedown",Vi)),Me.add(Ye),function(){Me.delete(Ye),Me.size===0&&(window.removeEventListener("mousedown",Vi),Vi=null)}}function Xi(Ye){var rt=Ye.target;if(Ye.composed&&rt.shadowRoot){var ft;return((ft=Ye.composedPath)===null||ft===void 0?void 0:ft.call(Ye)[0])||rt}return rt}var gr=function(rt){return rt==="month"||rt==="date"?"year":rt},tr=function(rt){return rt==="date"?"month":rt},uo=function(rt){return rt==="month"||rt==="date"?"quarter":rt},qr=function(rt){return rt==="date"?"week":rt},Ni={year:gr,month:tr,quarter:uo,week:qr,time:null,date:null};function an(Ye,rt){return Ye.some(function(ft){return ft&&ft.contains(rt)})}function en(Ye){var rt=Ye.open,ft=Ye.value,rn=Ye.isClickOutside,ln=Ye.triggerOpen,Bn=Ye.forwardKeyDown,In=Ye.onKeyDown,ni=Ye.blurToCancel,ai=Ye.onSubmit,xi=Ye.onCancel,_i=Ye.onFocus,yi=Ye.onBlur,zi=Ye.changeOnBlur,mi=(0,Pe.useState)(!1),dr=(0,Kn.Z)(mi,2),Qn=dr[0],ji=dr[1],hr=(0,Pe.useState)(!1),no=(0,Kn.Z)(hr,2),Zr=no[0],ao=no[1],so=(0,Pe.useRef)(!1),io=(0,Pe.useRef)(!1),qi=(0,Pe.useRef)(!1),aa={onMouseDown:function(){ji(!0),ln(!0)},onKeyDown:function(ma){var Va=function(){qi.current=!0};if(In(ma,Va),!qi.current){switch(ma.which){case gi.Z.ENTER:{rt?ai()!==!1&&ji(!0):ln(!0),ma.preventDefault();return}case gi.Z.TAB:{Qn&&rt&&!ma.shiftKey?(ji(!1),ma.preventDefault()):!Qn&&rt&&!Bn(ma)&&ma.shiftKey&&(ji(!0),ma.preventDefault());return}case gi.Z.ESC:{ji(!0),xi();return}}!rt&&![gi.Z.SHIFT].includes(ma.which)?ln(!0):Qn||Bn(ma)}},onFocus:function(ma){ji(!0),ao(!0),_i&&_i(ma)},onBlur:function(ma){if(so.current||!rn(document.activeElement)){so.current=!1;return}ni?setTimeout(function(){for(var Va=document,Wa=Va.activeElement;Wa&&Wa.shadowRoot;)Wa=Wa.shadowRoot.activeElement;rn(Wa)&&xi()},0):rt&&(ln(!1),io.current&&ai()),ao(!1),yi==null||yi(ma)}};return(0,Pe.useEffect)(function(){io.current=!1},[rt]),(0,Pe.useEffect)(function(){io.current=!0},[ft]),(0,Pe.useEffect)(function(){return Ai(function($o){var ma=Xi($o),Va=rn(ma);rt&&(Va?!zi&&(!Zr||Va)&&ln(!1):(so.current=!0,(0,wi.Z)(function(){so.current=!1})))})}),[aa,{focused:Zr,typing:Qn}]}function Kt(Ye,rt){return Pe.useMemo(function(){return Ye||(rt?((0,Ke.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(rt).map(function(ft){var rn=(0,Kn.Z)(ft,2),ln=rn[0],Bn=rn[1];return{label:ln,value:Bn}})):[])},[Ye,rt])}var Pt=he(28800);function Sn(Ye){var rt=Ye.valueTexts,ft=Ye.onTextChange,rn=Pe.useState(""),ln=(0,Kn.Z)(rn,2),Bn=ln[0],In=ln[1],ni=Pe.useRef([]);ni.current=rt;function ai(_i){In(_i),ft(_i)}function xi(){In(ni.current[0])}return(0,Pt.Z)(function(){rt.every(function(_i){return _i!==Bn})&&xi()},[rt.join("||")]),[Bn,ai,xi]}var bn=Pe.createContext({}),zt=bn,gt=he(80665);function xn(Ye){var rt=Ye.cellRender,ft=Ye.monthCellRender,rn=Ye.dateRender,ln=Pe.useMemo(function(){if(rt)return rt;if(!(!ft&&!rn))return function(Bn,In){var ni=Bn;return rn&&In.type==="date"?rn(ni,In.today):ft&&In.type==="month"?ft(ni,In.locale):In.originNode}},[rt,ft,rn]);return ln}function Ln(Ye,rt){for(var ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",rn=String(Ye);rn.length<rt;)rn="".concat(ft).concat(Ye);return rn}var pi=function(){for(var rt=arguments.length,ft=new Array(rt),rn=0;rn<rt;rn++)ft[rn]=arguments[rn];return ft};function Mn(Ye){return Ye==null?[]:Array.isArray(Ye)?Ye:[Ye]}function It(Ye,rt){return Ye?Ye[rt]:null}function gn(Ye,rt,ft){var rn=[It(Ye,0),It(Ye,1)];return rn[ft]=typeof rt=="function"?rt(rn[ft]):rt,!rn[0]&&!rn[1]?null:rn}function nn(Ye){return typeof Ye=="function"?Ye():Ye}function ui(Ye){var rt=Ye.cellPrefixCls,ft=Ye.generateConfig,rn=Ye.rangedValue,ln=Ye.hoverRangedValue,Bn=Ye.isInView,In=Ye.isSameCell,ni=Ye.offsetCell,ai=Ye.today,xi=Ye.value;function _i(yi){var zi,mi=ni(yi,-1),dr=ni(yi,1),Qn=It(rn,0),ji=It(rn,1),hr=It(ln,0),no=It(ln,1),Zr=on(ft,hr,no,yi);function ao(ma){return In(Qn,ma)}function so(ma){return In(ji,ma)}var io=In(hr,yi),qi=In(no,yi),aa=(Zr||qi)&&(!Bn(mi)||so(mi)),$o=(Zr||io)&&(!Bn(dr)||ao(dr));return zi={},(0,Ft.Z)(zi,"".concat(rt,"-in-view"),Bn(yi)),(0,Ft.Z)(zi,"".concat(rt,"-in-range"),on(ft,Qn,ji,yi)),(0,Ft.Z)(zi,"".concat(rt,"-range-start"),ao(yi)),(0,Ft.Z)(zi,"".concat(rt,"-range-end"),so(yi)),(0,Ft.Z)(zi,"".concat(rt,"-range-start-single"),ao(yi)&&!ji),(0,Ft.Z)(zi,"".concat(rt,"-range-end-single"),so(yi)&&!Qn),(0,Ft.Z)(zi,"".concat(rt,"-range-start-near-hover"),ao(yi)&&(In(mi,hr)||on(ft,hr,no,mi))),(0,Ft.Z)(zi,"".concat(rt,"-range-end-near-hover"),so(yi)&&(In(dr,no)||on(ft,hr,no,dr))),(0,Ft.Z)(zi,"".concat(rt,"-range-hover"),Zr),(0,Ft.Z)(zi,"".concat(rt,"-range-hover-start"),io),(0,Ft.Z)(zi,"".concat(rt,"-range-hover-end"),qi),(0,Ft.Z)(zi,"".concat(rt,"-range-hover-edge-start"),aa),(0,Ft.Z)(zi,"".concat(rt,"-range-hover-edge-end"),$o),(0,Ft.Z)(zi,"".concat(rt,"-range-hover-edge-start-near-range"),aa&&In(mi,ji)),(0,Ft.Z)(zi,"".concat(rt,"-range-hover-edge-end-near-range"),$o&&In(dr,Qn)),(0,Ft.Z)(zi,"".concat(rt,"-today"),In(ai,yi)),(0,Ft.Z)(zi,"".concat(rt,"-selected"),In(xi,yi)),zi}return _i}var Qt=Pe.createContext({}),Cn=Qt;function $t(Ye,rt,ft,rn,ln){var Bn=Ye.setHour(rt,ft);return Bn=Ye.setMinute(Bn,rn),Bn=Ye.setSecond(Bn,ln),Bn}function vn(Ye,rt,ft){if(!ft)return rt;var rn=rt;return rn=Ye.setHour(rn,Ye.getHour(ft)),rn=Ye.setMinute(rn,Ye.getMinute(ft)),rn=Ye.setSecond(rn,Ye.getSecond(ft)),rn}function En(Ye,rt,ft,rn,ln,Bn){var In=Math.floor(Ye/rn)*rn;if(In<Ye)return[In,60-ln,60-Bn];var ni=Math.floor(rt/ln)*ln;if(ni<rt)return[In,ni,60-Bn];var ai=Math.floor(ft/Bn)*Bn;return[In,ni,ai]}function Pn(Ye,rt){var ft=Ye.getYear(rt),rn=Ye.getMonth(rt)+1,ln=Ye.getEndDate(Ye.getFixedDate("".concat(ft,"-").concat(rn,"-01"))),Bn=Ye.getDate(ln),In=rn<10?"0".concat(rn):"".concat(rn);return"".concat(ft,"-").concat(In,"-").concat(Bn)}function Rn(Ye){for(var rt=Ye.prefixCls,ft=Ye.disabledDate,rn=Ye.onSelect,ln=Ye.picker,Bn=Ye.rowNum,In=Ye.colNum,ni=Ye.prefixColumn,ai=Ye.rowClassName,xi=Ye.baseDate,_i=Ye.getCellClassName,yi=Ye.getCellText,zi=Ye.getCellNode,mi=Ye.getCellDate,dr=Ye.generateConfig,Qn=Ye.titleCell,ji=Ye.headerCells,hr=Pe.useContext(zt),no=hr.onDateMouseEnter,Zr=hr.onDateMouseLeave,ao=hr.mode,so="".concat(rt,"-cell"),io=[],qi=0;qi<Bn;qi+=1){for(var aa=[],$o=void 0,ma=function(){var ka,vs=qi*In+Va,La=mi(xi,vs),wa=Tn({cellDate:La,mode:ao,disabledDate:ft,generateConfig:dr});Va===0&&($o=La,ni&&aa.push(ni($o)));var Ta=Qn&&Qn(La),us=Pe.createElement("div",{className:"".concat(so,"-inner")},yi(La));aa.push(Pe.createElement("td",{key:Va,title:Ta,className:Ct()(so,(0,Un.Z)((ka={},(0,Ft.Z)(ka,"".concat(so,"-disabled"),wa),(0,Ft.Z)(ka,"".concat(so,"-start"),yi(La)===1||ln==="year"&&Number(Ta)%10===0),(0,Ft.Z)(ka,"".concat(so,"-end"),Ta===Pn(dr,La)||ln==="year"&&Number(Ta)%10===9),ka),_i(La))),onClick:function(){wa||rn(La)},onMouseEnter:function(){!wa&&no&&no(La)},onMouseLeave:function(){!wa&&Zr&&Zr(La)}},zi?zi(La,us):us))},Va=0;Va<In;Va+=1)ma();io.push(Pe.createElement("tr",{key:qi,className:ai&&ai($o)},aa))}return Pe.createElement("div",{className:"".concat(rt,"-body")},Pe.createElement("table",{className:"".concat(rt,"-content")},ji&&Pe.createElement("thead",null,Pe.createElement("tr",null,ji)),Pe.createElement("tbody",null,io)))}function Yn(Ye){var rt=Ye.prefixCls,ft=Ye.generateConfig,rn=Ye.prefixColumn,ln=Ye.locale,Bn=Ye.rowCount,In=Ye.viewDate,ni=Ye.value,ai=Ye.cellRender,xi=Ye.isSameCell,_i=Pe.useContext(Cn),yi=_i.rangedValue,zi=_i.hoverRangedValue,mi=mn(ln.locale,ft,In),dr="".concat(rt,"-cell"),Qn=ft.locale.getWeekFirstDay(ln.locale),ji=ft.getNow(),hr=[],no=ln.shortWeekDays||(ft.locale.getShortWeekDays?ft.locale.getShortWeekDays(ln.locale):[]);rn&&hr.push(Pe.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Zr=0;Zr<Wt;Zr+=1)hr.push(Pe.createElement("th",{key:Zr},no[(Zr+Qn)%Wt]));var ao=ui({cellPrefixCls:dr,today:ji,value:ni,generateConfig:ft,rangedValue:rn?null:yi,hoverRangedValue:rn?null:zi,isSameCell:xi||function(io,qi){return ke(ft,io,qi)},isInView:function(qi){return ye(ft,qi,In)},offsetCell:function(qi,aa){return ft.addDate(qi,aa)}}),so=ai?function(io,qi){return ai(io,{originNode:qi,today:ji,type:"date",locale:ln})}:void 0;return Pe.createElement(Rn,(0,Ae.Z)({},Ye,{rowNum:Bn,colNum:Wt,baseDate:mi,getCellNode:so,getCellText:ft.getDate,getCellClassName:ao,getCellDate:ft.addDate,titleCell:function(qi){return Ot(qi,{locale:ln,format:"YYYY-MM-DD",generateConfig:ft})},headerCells:hr}))}var Zn=Yn,ri={visibility:"hidden"};function Gn(Ye){var rt=Ye.prefixCls,ft=Ye.prevIcon,rn=ft===void 0?"\u2039":ft,ln=Ye.nextIcon,Bn=ln===void 0?"\u203A":ln,In=Ye.superPrevIcon,ni=In===void 0?"\xAB":In,ai=Ye.superNextIcon,xi=ai===void 0?"\xBB":ai,_i=Ye.onSuperPrev,yi=Ye.onSuperNext,zi=Ye.onPrev,mi=Ye.onNext,dr=Ye.children,Qn=Pe.useContext(zt),ji=Qn.hideNextBtn,hr=Qn.hidePrevBtn;return Pe.createElement("div",{className:rt},_i&&Pe.createElement("button",{type:"button",onClick:_i,tabIndex:-1,className:"".concat(rt,"-super-prev-btn"),style:hr?ri:{}},ni),zi&&Pe.createElement("button",{type:"button",onClick:zi,tabIndex:-1,className:"".concat(rt,"-prev-btn"),style:hr?ri:{}},rn),Pe.createElement("div",{className:"".concat(rt,"-view")},dr),mi&&Pe.createElement("button",{type:"button",onClick:mi,tabIndex:-1,className:"".concat(rt,"-next-btn"),style:ji?ri:{}},Bn),yi&&Pe.createElement("button",{type:"button",onClick:yi,tabIndex:-1,className:"".concat(rt,"-super-next-btn"),style:ji?ri:{}},xi))}var di=Gn;function rr(Ye){var rt=Ye.prefixCls,ft=Ye.generateConfig,rn=Ye.locale,ln=Ye.viewDate,Bn=Ye.onNextMonth,In=Ye.onPrevMonth,ni=Ye.onNextYear,ai=Ye.onPrevYear,xi=Ye.onYearClick,_i=Ye.onMonthClick,yi=Pe.useContext(zt),zi=yi.hideHeader;if(zi)return null;var mi="".concat(rt,"-header"),dr=rn.shortMonths||(ft.locale.getShortMonths?ft.locale.getShortMonths(rn.locale):[]),Qn=ft.getMonth(ln),ji=Pe.createElement("button",{type:"button",key:"year",onClick:xi,tabIndex:-1,className:"".concat(rt,"-year-btn")},Ot(ln,{locale:rn,format:rn.yearFormat,generateConfig:ft})),hr=Pe.createElement("button",{type:"button",key:"month",onClick:_i,tabIndex:-1,className:"".concat(rt,"-month-btn")},rn.monthFormat?Ot(ln,{locale:rn,format:rn.monthFormat,generateConfig:ft}):dr[Qn]),no=rn.monthBeforeYear?[hr,ji]:[ji,hr];return Pe.createElement(di,(0,Ae.Z)({},Ye,{prefixCls:mi,onSuperPrev:ai,onPrev:In,onNext:Bn,onSuperNext:ni}),no)}var Dr=rr,ar=6;function qt(Ye){var rt=Ye.prefixCls,ft=Ye.panelName,rn=ft===void 0?"date":ft,ln=Ye.keyboardConfig,Bn=Ye.active,In=Ye.operationRef,ni=Ye.generateConfig,ai=Ye.value,xi=Ye.viewDate,_i=Ye.onViewDateChange,yi=Ye.onPanelChange,zi=Ye.onSelect,mi="".concat(rt,"-").concat(rn,"-panel");In.current={onKeyDown:function(hr){return jr(hr,(0,Un.Z)({onLeftRight:function(Zr){zi(ni.addDate(ai||xi,Zr),"key")},onCtrlLeftRight:function(Zr){zi(ni.addYear(ai||xi,Zr),"key")},onUpDown:function(Zr){zi(ni.addDate(ai||xi,Zr*Wt),"key")},onPageUpDown:function(Zr){zi(ni.addMonth(ai||xi,Zr),"key")}},ln))}};var dr=function(hr){var no=ni.addYear(xi,hr);_i(no),yi(null,no)},Qn=function(hr){var no=ni.addMonth(xi,hr);_i(no),yi(null,no)};return Pe.createElement("div",{className:Ct()(mi,(0,Ft.Z)({},"".concat(mi,"-active"),Bn))},Pe.createElement(Dr,(0,Ae.Z)({},Ye,{prefixCls:rt,value:ai,viewDate:xi,onPrevYear:function(){dr(-1)},onNextYear:function(){dr(1)},onPrevMonth:function(){Qn(-1)},onNextMonth:function(){Qn(1)},onMonthClick:function(){yi("month",xi)},onYearClick:function(){yi("year",xi)}})),Pe.createElement(Zn,(0,Ae.Z)({},Ye,{onSelect:function(hr){return zi(hr,"mouse")},prefixCls:rt,value:ai,viewDate:xi,rowCount:ar})))}var Li=qt;function Ji(Ye){var rt=Pe.useContext(zt),ft=rt.hideHeader;if(ft)return null;var rn=Ye.prefixCls,ln=Ye.generateConfig,Bn=Ye.locale,In=Ye.value,ni=Ye.format,ai="".concat(rn,"-header");return Pe.createElement(di,{prefixCls:ai},In?Ot(In,{locale:Bn,format:ni,generateConfig:ln}):"\xA0")}var Ti=Ji;function bi(Ye){var rt=Ye.value,ft=Ye.generateConfig,rn=Ye.disabledMinutes,ln=Ye.disabledSeconds,Bn=Ye.minutes,In=Ye.seconds,ni=Ye.use12Hours,ai=function(_i,yi,zi,mi){var dr=ft.getNow(),Qn=rt||dr,ji=yi<0?ft.getHour(dr):yi,hr=zi<0?ft.getMinute(dr):zi,no=mi<0?ft.getSecond(dr):mi,Zr=rn&&rn(ji);if(Zr!=null&&Zr.includes(hr)){var ao=Bn.find(function(qi){return!Zr.includes(qi.value)});if(ao)hr=ao.value;else return null}var so=ln&&ln(ji,hr);if(so!=null&&so.includes(no)){var io=In.find(function(qi){return!so.includes(qi.value)});if(io)no=io.value;else return null}return Qn=$t(ft,Qn,!ni||!_i?ji:ji+12,hr,no),Qn};return ai}function sr(Ye){var rt=Ye.prefixCls,ft=Ye.units,rn=Ye.onSelect,ln=Ye.value,Bn=Ye.active,In=Ye.hideDisabledOptions,ni=Ye.info,ai=Ye.type,xi="".concat(rt,"-cell"),_i=Pe.useContext(zt),yi=_i.open,zi=(0,Pe.useRef)(null),mi=(0,Pe.useRef)(new Map),dr=(0,Pe.useRef)();return(0,Pe.useLayoutEffect)(function(){var Qn=mi.current.get(ln);Qn&&yi!==!1&&xr(zi.current,Qn.offsetTop,120)},[ln]),(0,Pe.useLayoutEffect)(function(){if(yi){var Qn=mi.current.get(ln);Qn&&(dr.current=fr(Qn,function(){xr(zi.current,Qn.offsetTop,0)}))}return function(){var ji;(ji=dr.current)===null||ji===void 0||ji.call(dr)}},[yi]),Pe.createElement("ul",{className:Ct()("".concat(rt,"-column"),(0,Ft.Z)({},"".concat(rt,"-column-active"),Bn)),ref:zi,style:{position:"relative"}},ft.map(function(Qn){var ji;return In&&Qn.disabled?null:Pe.createElement("li",{key:Qn.value,ref:function(no){mi.current.set(Qn.value,no)},className:Ct()(xi,(ji={},(0,Ft.Z)(ji,"".concat(xi,"-disabled"),Qn.disabled),(0,Ft.Z)(ji,"".concat(xi,"-selected"),ln===Qn.value),ji)),onClick:function(){Qn.disabled||rn(Qn.value)}},ni.cellRender?ni.cellRender(Qn.value,{today:ni.today,locale:ni.locale,originNode:Pe.createElement("div",{className:"".concat(xi,"-inner")},Qn.label),type:"time",subType:ai}):Pe.createElement("div",{className:"".concat(xi,"-inner")},Qn.label))}))}var Nr=sr;function cr(Ye,rt){if(Ye.length!==rt.length)return!0;for(var ft=0;ft<Ye.length;ft+=1)if(Ye[ft].disabled!==rt[ft].disabled)return!0;return!1}function Zi(Ye,rt,ft,rn){for(var ln=[],Bn=ft>=1?ft|0:1,In=Ye;In<=rt;In+=Bn)ln.push({label:Ln(In,2),value:In,disabled:(rn||[]).includes(In)});return ln}function Jr(Ye){var rt=Ye.generateConfig,ft=Ye.prefixCls,rn=Ye.operationRef,ln=Ye.activeColumnIndex,Bn=Ye.value,In=Ye.showHour,ni=Ye.showMinute,ai=Ye.showSecond,xi=Ye.use12Hours,_i=Ye.hourStep,yi=_i===void 0?1:_i,zi=Ye.minuteStep,mi=zi===void 0?1:zi,dr=Ye.secondStep,Qn=dr===void 0?1:dr,ji=Ye.disabledHours,hr=Ye.disabledMinutes,no=Ye.disabledSeconds,Zr=Ye.disabledTime,ao=Ye.hideDisabledOptions,so=Ye.onSelect,io=Ye.cellRender,qi=Ye.locale,aa=[],$o="".concat(ft,"-content"),ma="".concat(ft,"-time-panel"),Va,Wa=Bn?rt.getHour(Bn):-1,ka=Wa,vs=Bn?rt.getMinute(Bn):-1,La=Bn?rt.getSecond(Bn):-1,wa=rt.getNow(),Ta=Pe.useMemo(function(){if(Zr){var $n=Zr(wa);return[$n.disabledHours,$n.disabledMinutes,$n.disabledSeconds]}return[ji,hr,no]},[ji,hr,no,Zr,wa]),us=(0,Kn.Z)(Ta,3),ys=us[0],$a=us[1],Oa=us[2],Hs=Zi(0,23,yi,ys&&ys()),dl=(0,Zt.Z)(function(){return Hs},Hs,cr);xi&&(Va=ka>=12,ka%=12);var st=Pe.useMemo(function(){if(!xi)return[!1,!1];var $n=[!0,!0];return dl.forEach(function(ci){var Ri=ci.disabled,Oi=ci.value;Ri||(Oi>=12?$n[1]=!1:$n[0]=!1)}),$n},[xi,dl]),St=(0,Kn.Z)(st,2),_t=St[0],tn=St[1],pn=Pe.useMemo(function(){return xi?dl.filter(Va?function($n){return $n.value>=12}:function($n){return $n.value<12}).map(function($n){var ci=$n.value%12,Ri=ci===0?"12":Ln(ci,2);return(0,Un.Z)((0,Un.Z)({},$n),{},{label:Ri,value:ci})}):dl},[xi,Va,dl]),un=Zi(0,59,mi,$a&&$a(Wa)),Wn=Zi(0,59,Qn,Oa&&Oa(Wa,vs)),jn=bi({value:Bn,generateConfig:rt,disabledMinutes:$a,disabledSeconds:Oa,minutes:un,seconds:Wn,use12Hours:xi});rn.current={onUpDown:function(ci){var Ri=aa[ln];if(Ri)for(var Oi=Ri.units.findIndex(function(Sr){return Sr.value===Ri.value}),Di=Ri.units.length,ur=1;ur<Di;ur+=1){var ki=Ri.units[(Oi+ci*ur+Di)%Di];if(ki.disabled!==!0){Ri.onSelect(ki.value);break}}}};function zn($n,ci,Ri,Oi,Di){$n!==!1&&aa.push({node:Pe.cloneElement(ci,{prefixCls:ma,value:Ri,active:ln===aa.length,onSelect:Di,units:Oi,hideDisabledOptions:ao}),onSelect:Di,value:Ri,units:Oi})}zn(In,Pe.createElement(Nr,{key:"hour",type:"hour",info:{today:wa,locale:qi,cellRender:io}}),ka,pn,function($n){so(jn(Va,$n,vs,La),"mouse")}),zn(ni,Pe.createElement(Nr,{key:"minute",type:"minute",info:{today:wa,locale:qi,cellRender:io}}),vs,un,function($n){so(jn(Va,ka,$n,La),"mouse")}),zn(ai,Pe.createElement(Nr,{key:"second",type:"second",info:{today:wa,locale:qi,cellRender:io}}),La,Wn,function($n){so(jn(Va,ka,vs,$n),"mouse")});var fi=-1;return typeof Va=="boolean"&&(fi=Va?1:0),zn(xi===!0,Pe.createElement(Nr,{key:"meridiem",type:"meridiem",info:{today:wa,locale:qi,cellRender:io}}),fi,[{label:"AM",value:0,disabled:_t},{label:"PM",value:1,disabled:tn}],function($n){so(jn(!!$n,ka,vs,La),"mouse")}),Pe.createElement("div",{className:$o},aa.map(function($n){var ci=$n.node;return ci}))}var On=Jr,Ho=function(rt){return rt.filter(function(ft){return ft!==!1}).length};function Dn(Ye){var rt=Ye.generateConfig,ft=Ye.format,rn=ft===void 0?"HH:mm:ss":ft,ln=Ye.prefixCls,Bn=Ye.active,In=Ye.operationRef,ni=Ye.showHour,ai=Ye.showMinute,xi=Ye.showSecond,_i=Ye.use12Hours,yi=_i===void 0?!1:_i,zi=Ye.onSelect,mi=Ye.value,dr="".concat(ln,"-time-panel"),Qn=Pe.useRef(),ji=Pe.useState(-1),hr=(0,Kn.Z)(ji,2),no=hr[0],Zr=hr[1],ao=Ho([ni,ai,xi,yi]);return In.current={onKeyDown:function(io){return jr(io,{onLeftRight:function(aa){Zr((no+aa+ao)%ao)},onUpDown:function(aa){no===-1?Zr(0):Qn.current&&Qn.current.onUpDown(aa)},onEnter:function(){zi(mi||rt.getNow(),"key"),Zr(-1)}})},onBlur:function(){Zr(-1)}},Pe.createElement("div",{className:Ct()(dr,(0,Ft.Z)({},"".concat(dr,"-active"),Bn))},Pe.createElement(Ti,(0,Ae.Z)({},Ye,{format:rn,prefixCls:ln})),Pe.createElement(On,(0,Ae.Z)({},Ye,{prefixCls:ln,activeColumnIndex:no,operationRef:Qn})))}var Rr=Dn,ca=pi("date","time");function fo(Ye){var rt=Ye.prefixCls,ft=Ye.operationRef,rn=Ye.generateConfig,ln=Ye.value,Bn=Ye.defaultValue,In=Ye.disabledTime,ni=Ye.showTime,ai=Ye.onSelect,xi=Ye.cellRender,_i="".concat(rt,"-datetime-panel"),yi=Pe.useState(null),zi=(0,Kn.Z)(yi,2),mi=zi[0],dr=zi[1],Qn=Pe.useRef({}),ji=Pe.useRef({}),hr=(0,gt.Z)(ni)==="object"?(0,Un.Z)({},ni):{};function no(io){var qi=ca.indexOf(mi)+io,aa=ca[qi]||null;return aa}var Zr=function(qi){ji.current.onBlur&&ji.current.onBlur(qi),dr(null)};ft.current={onKeyDown:function(qi){if(qi.which===gi.Z.TAB){var aa=no(qi.shiftKey?-1:1);return dr(aa),aa&&qi.preventDefault(),!0}if(mi){var $o=mi==="date"?Qn:ji;return $o.current&&$o.current.onKeyDown&&$o.current.onKeyDown(qi),!0}return[gi.Z.LEFT,gi.Z.RIGHT,gi.Z.UP,gi.Z.DOWN].includes(qi.which)?(dr("date"),!0):!1},onBlur:Zr,onClose:Zr};var ao=function(qi,aa){var $o=qi;aa==="date"&&!ln&&hr.defaultValue?($o=rn.setHour($o,rn.getHour(hr.defaultValue)),$o=rn.setMinute($o,rn.getMinute(hr.defaultValue)),$o=rn.setSecond($o,rn.getSecond(hr.defaultValue))):aa==="time"&&!ln&&Bn&&($o=rn.setYear($o,rn.getYear(Bn)),$o=rn.setMonth($o,rn.getMonth(Bn)),$o=rn.setDate($o,rn.getDate(Bn))),ai&&ai($o,"mouse")},so=In?In(ln||null):{};return Pe.createElement("div",{className:Ct()(_i,(0,Ft.Z)({},"".concat(_i,"-active"),mi))},Pe.createElement(Li,(0,Ae.Z)({},Ye,{cellRender:xi,operationRef:Qn,active:mi==="date",onSelect:function(qi){ao(vn(rn,qi,!ln&&(0,gt.Z)(ni)==="object"?ni.defaultValue:null),"date")}})),Pe.createElement(Rr,(0,Ae.Z)({},Ye,{cellRender:xi?function(io,qi){return xi(io,(0,Un.Z)((0,Un.Z)({},qi),{},{type:"time"}))}:void 0,format:void 0},hr,so,{disabledTime:null,defaultValue:void 0,operationRef:ji,active:mi==="time",onSelect:function(qi){ao(qi,"time")}})))}var Ha=fo;function oa(Ye){var rt=Ye.prefixCls,ft=Ye.generateConfig,rn=Ye.viewDate,ln=Ye.onPrevDecades,Bn=Ye.onNextDecades,In=Pe.useContext(zt),ni=In.hideHeader;if(ni)return null;var ai="".concat(rt,"-header"),xi=ft.getYear(rn),_i=Math.floor(xi/tt)*tt,yi=_i+tt-1;return Pe.createElement(di,(0,Ae.Z)({},Ye,{prefixCls:ai,onSuperPrev:ln,onSuperNext:Bn}),_i,"-",yi)}var xt=oa,kn=3,Hn=4;function Ei(Ye){var rt=mt-1,ft=Ye.prefixCls,rn=Ye.viewDate,ln=Ye.generateConfig,Bn=Ye.cellRender,In=Ye.locale,ni="".concat(ft,"-cell"),ai=ln.getYear(rn),xi=Math.floor(ai/mt)*mt,_i=Math.floor(ai/tt)*tt,yi=_i+tt-1,zi=ln.setYear(rn,_i-Math.ceil((kn*Hn*mt-tt)/2)),mi=function(ji){var hr,no=ln.getYear(ji),Zr=no+rt;return hr={},(0,Ft.Z)(hr,"".concat(ni,"-in-view"),_i<=no&&Zr<=yi),(0,Ft.Z)(hr,"".concat(ni,"-selected"),no===xi),hr},dr=Bn?function(Qn,ji){return Bn(Qn,{originNode:ji,today:ln.getNow(),type:"decade",locale:In})}:void 0;return Pe.createElement(Rn,(0,Ae.Z)({},Ye,{rowNum:Hn,colNum:kn,baseDate:zi,getCellNode:dr,getCellText:function(ji){var hr=ln.getYear(ji);return"".concat(hr,"-").concat(hr+rt)},getCellClassName:mi,getCellDate:function(ji,hr){return ln.addYear(ji,hr*mt)}}))}var Si=Ei;function $e(Ye){var rt=Ye.prefixCls,ft=Ye.onViewDateChange,rn=Ye.generateConfig,ln=Ye.viewDate,Bn=Ye.operationRef,In=Ye.onSelect,ni=Ye.onPanelChange,ai="".concat(rt,"-decade-panel");Bn.current={onKeyDown:function(zi){return jr(zi,{onLeftRight:function(dr){In(rn.addYear(ln,dr*mt),"key")},onCtrlLeftRight:function(dr){In(rn.addYear(ln,dr*tt),"key")},onUpDown:function(dr){In(rn.addYear(ln,dr*mt*kn),"key")},onEnter:function(){ni("year",ln)}})}};var xi=function(zi){var mi=rn.addYear(ln,zi*tt);ft(mi),ni(null,mi)},_i=function(zi){In(zi,"mouse"),ni("year",zi)};return Pe.createElement("div",{className:ai},Pe.createElement(xt,(0,Ae.Z)({},Ye,{prefixCls:rt,onPrevDecades:function(){xi(-1)},onNextDecades:function(){xi(1)}})),Pe.createElement(Si,(0,Ae.Z)({},Ye,{prefixCls:rt,onSelect:_i})))}var Fi=$e;function eo(Ye){var rt=Ye.prefixCls,ft=Ye.generateConfig,rn=Ye.locale,ln=Ye.viewDate,Bn=Ye.onNextYear,In=Ye.onPrevYear,ni=Ye.onYearClick,ai=Pe.useContext(zt),xi=ai.hideHeader;if(xi)return null;var _i="".concat(rt,"-header");return Pe.createElement(di,(0,Ae.Z)({},Ye,{prefixCls:_i,onSuperPrev:In,onSuperNext:Bn}),Pe.createElement("button",{type:"button",onClick:ni,className:"".concat(rt,"-year-btn")},Ot(ln,{locale:rn,format:rn.yearFormat,generateConfig:ft})))}var Qi=eo,Vr=3,pr=4;function Er(Ye){var rt=Ye.prefixCls,ft=Ye.locale,rn=Ye.value,ln=Ye.viewDate,Bn=Ye.generateConfig,In=Ye.cellRender,ni=Pe.useContext(Cn),ai=ni.rangedValue,xi=ni.hoverRangedValue,_i="".concat(rt,"-cell"),yi=ui({cellPrefixCls:_i,value:rn,generateConfig:Bn,rangedValue:ai,hoverRangedValue:xi,isSameCell:function(ji,hr){return ye(Bn,ji,hr)},isInView:function(){return!0},offsetCell:function(ji,hr){return Bn.addMonth(ji,hr)}}),zi=ft.shortMonths||(Bn.locale.getShortMonths?Bn.locale.getShortMonths(ft.locale):[]),mi=Bn.setMonth(ln,0),dr=In?function(Qn,ji){return In(Qn,{originNode:ji,locale:ft,today:Bn.getNow(),type:"month"})}:void 0;return Pe.createElement(Rn,(0,Ae.Z)({},Ye,{rowNum:pr,colNum:Vr,baseDate:mi,getCellNode:dr,getCellText:function(ji){return ft.monthFormat?Ot(ji,{locale:ft,format:ft.monthFormat,generateConfig:Bn}):zi[Bn.getMonth(ji)]},getCellClassName:yi,getCellDate:Bn.addMonth,titleCell:function(ji){return Ot(ji,{locale:ft,format:"YYYY-MM",generateConfig:Bn})}}))}var oo=Er;function bo(Ye){var rt=Ye.prefixCls,ft=Ye.operationRef,rn=Ye.onViewDateChange,ln=Ye.generateConfig,Bn=Ye.value,In=Ye.viewDate,ni=Ye.onPanelChange,ai=Ye.onSelect,xi="".concat(rt,"-month-panel");ft.current={onKeyDown:function(zi){return jr(zi,{onLeftRight:function(dr){ai(ln.addMonth(Bn||In,dr),"key")},onCtrlLeftRight:function(dr){ai(ln.addYear(Bn||In,dr),"key")},onUpDown:function(dr){ai(ln.addMonth(Bn||In,dr*Vr),"key")},onEnter:function(){ni("date",Bn||In)}})}};var _i=function(zi){var mi=ln.addYear(In,zi);rn(mi),ni(null,mi)};return Pe.createElement("div",{className:xi},Pe.createElement(Qi,(0,Ae.Z)({},Ye,{prefixCls:rt,onPrevYear:function(){_i(-1)},onNextYear:function(){_i(1)},onYearClick:function(){ni("year",In)}})),Pe.createElement(oo,(0,Ae.Z)({},Ye,{prefixCls:rt,onSelect:function(zi){ai(zi,"mouse"),ni("date",zi)}})))}var Ur=bo;function Io(Ye){var rt=Ye.prefixCls,ft=Ye.generateConfig,rn=Ye.locale,ln=Ye.viewDate,Bn=Ye.onNextYear,In=Ye.onPrevYear,ni=Ye.onYearClick,ai=Pe.useContext(zt),xi=ai.hideHeader;if(xi)return null;var _i="".concat(rt,"-header");return Pe.createElement(di,(0,Ae.Z)({},Ye,{prefixCls:_i,onSuperPrev:In,onSuperNext:Bn}),Pe.createElement("button",{type:"button",onClick:ni,className:"".concat(rt,"-year-btn")},Ot(ln,{locale:rn,format:rn.yearFormat,generateConfig:ft})))}var lr=Io,$i=4,Br=1;function oi(Ye){var rt=Ye.prefixCls,ft=Ye.locale,rn=Ye.value,ln=Ye.viewDate,Bn=Ye.generateConfig,In=Ye.cellRender,ni=Pe.useContext(Cn),ai=ni.rangedValue,xi=ni.hoverRangedValue,_i="".concat(rt,"-cell"),yi=ui({cellPrefixCls:_i,value:rn,generateConfig:Bn,rangedValue:ai,hoverRangedValue:xi,isSameCell:function(Qn,ji){return we(Bn,Qn,ji)},isInView:function(){return!0},offsetCell:function(Qn,ji){return Bn.addMonth(Qn,ji*3)}}),zi=Bn.setDate(Bn.setMonth(ln,0),1),mi=In?function(dr,Qn){return In(dr,{originNode:Qn,locale:ft,today:Bn.getNow(),type:"quarter"})}:void 0;return Pe.createElement(Rn,(0,Ae.Z)({},Ye,{rowNum:Br,colNum:$i,baseDate:zi,getCellNode:mi,getCellText:function(Qn){return Ot(Qn,{locale:ft,format:ft.quarterFormat||"[Q]Q",generateConfig:Bn})},getCellClassName:yi,getCellDate:function(Qn,ji){return Bn.addMonth(Qn,ji*3)},titleCell:function(Qn){return Ot(Qn,{locale:ft,format:"YYYY-[Q]Q",generateConfig:Bn})}}))}var Ro=oi;function Xo(Ye){var rt=Ye.prefixCls,ft=Ye.operationRef,rn=Ye.onViewDateChange,ln=Ye.generateConfig,Bn=Ye.value,In=Ye.viewDate,ni=Ye.onPanelChange,ai=Ye.onSelect,xi="".concat(rt,"-quarter-panel");ft.current={onKeyDown:function(zi){return jr(zi,{onLeftRight:function(dr){ai(ln.addMonth(Bn||In,dr*3),"key")},onCtrlLeftRight:function(dr){ai(ln.addYear(Bn||In,dr),"key")},onUpDown:function(dr){ai(ln.addYear(Bn||In,dr),"key")}})}};var _i=function(zi){var mi=ln.addYear(In,zi);rn(mi),ni(null,mi)};return Pe.createElement("div",{className:xi},Pe.createElement(lr,(0,Ae.Z)({},Ye,{prefixCls:rt,onPrevYear:function(){_i(-1)},onNextYear:function(){_i(1)},onYearClick:function(){ni("year",In)}})),Pe.createElement(Ro,(0,Ae.Z)({},Ye,{prefixCls:rt,onSelect:function(zi){ai(zi,"mouse")}})))}var ya=Xo;function na(Ye){var rt=Ye.prefixCls,ft=Ye.generateConfig,rn=Ye.locale,ln=Ye.value,Bn=Ye.disabledDate,In=Ye.onSelect,ni=Pe.useContext(Cn),ai=ni.rangedValue,xi=ni.hoverRangedValue,_i=Pe.useContext(zt),yi=_i.onDateMouseEnter,zi=_i.onDateMouseLeave,mi=(xi==null?void 0:xi[0])||(ai==null?void 0:ai[0]),dr=(xi==null?void 0:xi[1])||(ai==null?void 0:ai[1]),Qn="".concat(rt,"-cell"),ji=function(ao){var so=Tn({cellDate:ao,mode:"week",disabledDate:Bn,generateConfig:ft});return Pe.createElement("td",{key:"week",className:Ct()(Qn,"".concat(Qn,"-week")),onClick:function(){so||In(ao,"mouse")},onMouseEnter:function(){!so&&yi&&yi(ao)},onMouseLeave:function(){!so&&zi&&zi(ao)}},Pe.createElement("div",{className:"".concat(Qn,"-inner")},ft.locale.getWeek(rn.locale,ao)))},hr="".concat(rt,"-week-panel-row"),no=function(ao){var so,io=Be(ft,rn.locale,mi,ao),qi=Be(ft,rn.locale,dr,ao);return Ct()(hr,(so={},(0,Ft.Z)(so,"".concat(hr,"-selected"),!ai&&Be(ft,rn.locale,ln,ao)),(0,Ft.Z)(so,"".concat(hr,"-range-start"),io),(0,Ft.Z)(so,"".concat(hr,"-range-end"),qi),(0,Ft.Z)(so,"".concat(hr,"-range-hover"),!io&&!qi&&on(ft,mi,dr,ao)),so))};return Pe.createElement(Li,(0,Ae.Z)({},Ye,{panelName:"week",prefixColumn:ji,rowClassName:no,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Fa=na,Sa=10;function Pa(Ye){var rt=Ye.prefixCls,ft=Ye.generateConfig,rn=Ye.viewDate,ln=Ye.onPrevDecade,Bn=Ye.onNextDecade,In=Ye.onDecadeClick,ni=Pe.useContext(zt),ai=ni.hideHeader;if(ai)return null;var xi="".concat(rt,"-header"),_i=ft.getYear(rn),yi=Math.floor(_i/Sa)*Sa,zi=yi+Sa-1;return Pe.createElement(di,(0,Ae.Z)({},Ye,{prefixCls:xi,onSuperPrev:ln,onSuperNext:Bn}),Pe.createElement("button",{type:"button",onClick:In,className:"".concat(rt,"-decade-btn")},yi,"-",zi))}var is=Pa,Co=3,ps=4;function An(Ye){var rt=Ye.prefixCls,ft=Ye.value,rn=Ye.viewDate,ln=Ye.locale,Bn=Ye.generateConfig,In=Ye.cellRender,ni=Pe.useContext(Cn),ai=ni.rangedValue,xi=ni.hoverRangedValue,_i="".concat(rt,"-cell"),yi=Bn.getYear(rn),zi=Math.floor(yi/Sa)*Sa,mi=zi+Sa-1,dr=Bn.setYear(rn,zi-Math.ceil((Co*ps-Sa)/2)),Qn=Bn.getNow(),ji=function(ao){var so=Bn.getYear(ao);return zi<=so&&so<=mi},hr=ui({cellPrefixCls:_i,value:ft,generateConfig:Bn,rangedValue:ai,hoverRangedValue:xi,isSameCell:function(ao,so){return nt(Bn,ao,so)},isInView:ji,offsetCell:function(ao,so){return Bn.addYear(ao,so)}}),no=In?function(Zr,ao){return In(Zr,{originNode:ao,today:Qn,type:"year",locale:ln})}:void 0;return Pe.createElement(Rn,(0,Ae.Z)({},Ye,{rowNum:ps,colNum:Co,baseDate:dr,getCellNode:no,getCellText:Bn.getYear,getCellClassName:hr,getCellDate:Bn.addYear,titleCell:function(ao){return Ot(ao,{locale:ln,format:"YYYY",generateConfig:Bn})}}))}var Yo=An;function Qs(Ye){var rt=Ye.prefixCls,ft=Ye.operationRef,rn=Ye.onViewDateChange,ln=Ye.generateConfig,Bn=Ye.value,In=Ye.viewDate,ni=Ye.sourceMode,ai=Ye.onSelect,xi=Ye.onPanelChange,_i="".concat(rt,"-year-panel");ft.current={onKeyDown:function(mi){return jr(mi,{onLeftRight:function(Qn){ai(ln.addYear(Bn||In,Qn),"key")},onCtrlLeftRight:function(Qn){ai(ln.addYear(Bn||In,Qn*Sa),"key")},onUpDown:function(Qn){ai(ln.addYear(Bn||In,Qn*Co),"key")},onEnter:function(){xi(ni==="date"?"date":"month",Bn||In)}})}};var yi=function(mi){var dr=ln.addYear(In,mi*10);rn(dr),xi(null,dr)};return Pe.createElement("div",{className:_i},Pe.createElement(is,(0,Ae.Z)({},Ye,{prefixCls:rt,onPrevDecade:function(){yi(-1)},onNextDecade:function(){yi(1)},onDecadeClick:function(){xi("decade",In)}})),Pe.createElement(Yo,(0,Ae.Z)({},Ye,{prefixCls:rt,onSelect:function(mi){xi(ni==="date"?"date":"month",mi),ai(mi,"mouse")}})))}var yl=Qs;function Kr(Ye,rt,ft){return ft?Pe.createElement("div",{className:"".concat(Ye,"-footer-extra")},ft(rt)):null}function Ao(Ye){var rt=Ye.prefixCls,ft=Ye.components,rn=ft===void 0?{}:ft,ln=Ye.needConfirmButton,Bn=Ye.onNow,In=Ye.onOk,ni=Ye.okDisabled,ai=Ye.showNow,xi=Ye.locale,_i,yi;if(ln){var zi=rn.button||"button";Bn&&ai!==!1&&(_i=Pe.createElement("li",{className:"".concat(rt,"-now")},Pe.createElement("a",{className:"".concat(rt,"-now-btn"),onClick:Bn},xi.now))),yi=ln&&Pe.createElement("li",{className:"".concat(rt,"-ok")},Pe.createElement(zi,{disabled:ni,onClick:In},xi.ok))}return!_i&&!yi?null:Pe.createElement("ul",{className:"".concat(rt,"-ranges")},_i,yi)}var Ka=["date","month"];function da(Ye){var rt,ft=Ye,rn=ft.prefixCls,ln=rn===void 0?"rc-picker":rn,Bn=ft.className,In=ft.style,ni=ft.locale,ai=ft.generateConfig,xi=ft.value,_i=ft.defaultValue,yi=ft.pickerValue,zi=ft.defaultPickerValue,mi=ft.disabledDate,dr=ft.mode,Qn=ft.picker,ji=Qn===void 0?"date":Qn,hr=ft.tabIndex,no=hr===void 0?0:hr,Zr=ft.showNow,ao=ft.showTime,so=ft.showToday,io=ft.renderExtraFooter,qi=ft.hideHeader,aa=ft.onSelect,$o=ft.onChange,ma=ft.onPanelChange,Va=ft.onMouseDown,Wa=ft.onPickerValueChange,ka=ft.onOk,vs=ft.components,La=ft.direction,wa=ft.hourStep,Ta=wa===void 0?1:wa,us=ft.minuteStep,ys=us===void 0?1:us,$a=ft.secondStep,Oa=$a===void 0?1:$a,Hs=ft.dateRender,dl=ft.monthCellRender,st=ft.cellRender,St=ji==="date"&&!!ao||ji==="time",_t=24%Ta===0,tn=60%ys===0,pn=60%Oa===0,un=Pe.useContext(zt),Wn=un.operationRef,jn=un.onSelect,zn=un.hideRanges,fi=un.defaultOpenValue,$n=Pe.useContext(Cn),ci=$n.inRange,Ri=$n.panelPosition,Oi=$n.rangedValue,Di=$n.hoverRangedValue,ur=Pe.useRef({}),ki=Pe.useRef(!0),Sr=(0,ti.Z)(null,{value:xi,defaultValue:_i,postState:function(Hi){return!Hi&&fi&&ji==="time"?fi:Hi}}),mr=(0,Kn.Z)(Sr,2),br=mr[0],lo=mr[1],Po=(0,ti.Z)(null,{value:yi,defaultValue:zi||br,postState:function(Hi){var kr=ai.getNow();if(!Hi)return kr;if(!br&&ao){var Vo=(0,gt.Z)(ao)==="object"?ao.defaultValue:_i;return vn(ai,Array.isArray(Hi)?Hi[0]:Hi,Vo||kr)}return Array.isArray(Hi)?Hi[0]:Hi}}),Mr=(0,Kn.Z)(Po,2),Wr=Mr[0],Wo=Mr[1],Ar=function(Hi){Wo(Hi),Wa&&Wa(Hi)},_r=function(Hi){var kr=Ni[ji];return kr?kr(Hi):Hi},Lr=(0,ti.Z)(function(){return ji==="time"?"time":_r("date")},{value:dr}),nr=(0,Kn.Z)(Lr,2),wr=nr[0],Qr=nr[1];Pe.useEffect(function(){Qr(ji)},[ji]);var wo=Pe.useState(function(){return wr}),Eo=(0,Kn.Z)(wo,2),Cr=Eo[0],Zo=Eo[1],Jo=function(Hi,kr){var Vo=_r(Hi||wr);Zo(wr),Qr(Vo),ma&&(wr!==Vo||dt(ai,Wr,Wr))&&ma(kr,Vo)},ea=function(Hi,kr){var Vo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(wr===ji||Vo)&&(lo(Hi),aa&&aa(Hi),jn&&jn(Hi,kr),$o&&!dt(ai,Hi,br)&&!(mi!=null&&mi(Hi))&&$o(Hi))},qo=function(Hi){if(Ka.includes(wr)){var kr,Vo,sa=wr==="date";switch(Hi===gi.Z.PAGE_UP||Hi===gi.Z.PAGE_DOWN?Vo=sa?ai.addMonth:ai.addYear:Vo=sa?ai.addDate:ai.addMonth,Hi){case gi.Z.LEFT:case gi.Z.PAGE_UP:kr=Vo(Wr,-1);break;case gi.Z.RIGHT:case gi.Z.PAGE_DOWN:kr=Vo(Wr,1);break;case gi.Z.UP:case gi.Z.DOWN:kr=Vo(Wr,Number("".concat(Hi===gi.Z.UP?"-":"").concat(sa?Wt:Vr)));break}if(kr)return!(mi!=null&&mi(kr))}return!0},qa=function(Hi){if(ur.current&&ur.current.onKeyDown){var kr=!0,Vo=Hi.which;if([gi.Z.LEFT,gi.Z.RIGHT,gi.Z.UP,gi.Z.DOWN,gi.Z.PAGE_UP,gi.Z.PAGE_DOWN,gi.Z.ENTER].includes(Vo)&&(Hi.preventDefault(),Vo!==gi.Z.ENTER&&no===0&&(kr=qo(Vo))),kr)return ur.current.onKeyDown(Hi)}return(0,Ke.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},ha=function(Hi){ur.current&&ur.current.onBlur&&ur.current.onBlur(Hi)};Wn&&Ri!=="right"&&(Wn.current={onKeyDown:qa,onClose:function(){ur.current&&ur.current.onClose&&ur.current.onClose()}}),Pe.useEffect(function(){xi&&!ki.current&&Wo(xi)},[xi]),Pe.useEffect(function(){ki.current=!1},[]);var zo,po=xn({cellRender:st,monthCellRender:dl,dateRender:Hs}),Lo=(0,Un.Z)((0,Un.Z)({},Ye),{},{cellRender:po,operationRef:ur,prefixCls:ln,viewDate:Wr,value:br,onViewDateChange:Ar,sourceMode:Cr,onPanelChange:Jo,disabledDate:mi});switch(delete Lo.onChange,delete Lo.onSelect,wr){case"decade":zo=Pe.createElement(Fi,(0,Ae.Z)({},Lo,{onSelect:function(Hi,kr){Ar(Hi),ea(Hi,kr)}}));break;case"year":zo=Pe.createElement(yl,(0,Ae.Z)({},Lo,{onSelect:function(Hi,kr){Ar(Hi),ea(Hi,kr)}}));break;case"month":zo=Pe.createElement(Ur,(0,Ae.Z)({},Lo,{onSelect:function(Hi,kr){Ar(Hi),ea(Hi,kr)}}));break;case"quarter":zo=Pe.createElement(ya,(0,Ae.Z)({},Lo,{onSelect:function(Hi,kr){Ar(Hi),ea(Hi,kr)}}));break;case"week":zo=Pe.createElement(Fa,(0,Ae.Z)({},Lo,{onSelect:function(Hi,kr){Ar(Hi),ea(Hi,kr)}}));break;case"time":delete Lo.showTime,zo=Pe.createElement(Rr,(0,Ae.Z)({},Lo,(0,gt.Z)(ao)==="object"?ao:null,{onSelect:function(Hi,kr){Ar(Hi),ea(Hi,kr)}}));break;default:ao?zo=Pe.createElement(Ha,(0,Ae.Z)({},Lo,{onSelect:function(Hi,kr){Ar(Hi),ea(Hi,kr)}})):zo=Pe.createElement(Li,(0,Ae.Z)({},Lo,{onSelect:function(Hi,kr){Ar(Hi),ea(Hi,kr)}}))}var Xa,Ia,as=function(){var Hi=ai.getNow(),kr=En(ai.getHour(Hi),ai.getMinute(Hi),ai.getSecond(Hi),_t?Ta:1,tn?ys:1,pn?Oa:1),Vo=$t(ai,Hi,kr[0],kr[1],kr[2]);ea(Vo,"submit")};zn||(Xa=Kr(ln,wr,io),ao&&wr!=="date"?Ia=null:Ia=Ao({prefixCls:ln,components:vs,needConfirmButton:St,okDisabled:!br||mi&&mi(br),locale:ni,showNow:Zr,onNow:St&&as,onOk:function(){br&&(ea(br,"submit",!0),ka&&ka(br))}}));var ko;if(so&&wr==="date"&&ji==="date"&&!ao){var So=ai.getNow(),jo="".concat(ln,"-today-btn"),ho=mi&&mi(So);ko=Pe.createElement("a",{className:Ct()(jo,ho&&"".concat(jo,"-disabled")),"aria-disabled":ho,onClick:function(){ho||ea(So,"mouse",!0)}},ni.today)}return Pe.createElement(zt.Provider,{value:(0,Un.Z)((0,Un.Z)({},un),{},{mode:wr,hideHeader:"hideHeader"in Ye?qi:un.hideHeader,hidePrevBtn:ci&&Ri==="right",hideNextBtn:ci&&Ri==="left"})},Pe.createElement("div",{tabIndex:no,className:Ct()("".concat(ln,"-panel"),Bn,(rt={},(0,Ft.Z)(rt,"".concat(ln,"-panel-has-range"),Oi&&Oi[0]&&Oi[1]),(0,Ft.Z)(rt,"".concat(ln,"-panel-has-range-hover"),Di&&Di[0]&&Di[1]),(0,Ft.Z)(rt,"".concat(ln,"-panel-rtl"),La==="rtl"),rt)),style:In,onKeyDown:qa,onBlur:ha,onMouseDown:Va},zo,Xa||Ia||ko?Pe.createElement("div",{className:"".concat(ln,"-footer")},Xa,Ia,ko):null))}var vo=da,Qo=he(35593),Qa={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function to(Ye){var rt,ft=Ye.prefixCls,rn=Ye.popupElement,ln=Ye.popupStyle,Bn=Ye.visible,In=Ye.dropdownClassName,ni=Ye.dropdownAlign,ai=Ye.transitionName,xi=Ye.getPopupContainer,_i=Ye.children,yi=Ye.range,zi=Ye.popupPlacement,mi=Ye.direction,dr="".concat(ft,"-dropdown"),Qn=function(){return zi!==void 0?zi:mi==="rtl"?"bottomRight":"bottomLeft"};return Pe.createElement(Qo.Z,{showAction:[],hideAction:[],popupPlacement:Qn(),builtinPlacements:Qa,prefixCls:dr,popupTransitionName:ai,popup:rn,popupAlign:ni,popupVisible:Bn,popupClassName:Ct()(In,(rt={},(0,Ft.Z)(rt,"".concat(dr,"-range"),yi),(0,Ft.Z)(rt,"".concat(dr,"-rtl"),mi==="rtl"),rt)),popupStyle:ln,getPopupContainer:xi},_i)}var Do=to;function Bo(Ye){var rt=Ye.prefixCls,ft=Ye.presets,rn=Ye.onClick,ln=Ye.onHover;return ft.length?Pe.createElement("div",{className:"".concat(rt,"-presets")},Pe.createElement("ul",null,ft.map(function(Bn,In){var ni=Bn.label,ai=Bn.value;return Pe.createElement("li",{key:In,onClick:function(){return rn==null?void 0:rn(nn(ai))},onMouseEnter:function(){return ln==null?void 0:ln(nn(ai))},onMouseLeave:function(){return ln==null?void 0:ln(null)}},ni)}))):null}function Yi(Ye){var rt=Ye.picker,ft=Ye.disabledHours,rn=Ye.disabledMinutes,ln=Ye.disabledSeconds;rt==="time"&&(ft||rn||ln)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function ba(Ye,rt,ft){var rn=(0,gt.Z)(rt)==="object"?rt.clearIcon:ft;return rn||Pe.createElement("span",{className:"".concat(Ye,"-clear-btn")})}function or(Ye){var rt,ft=Ye,rn=ft.prefixCls,ln=rn===void 0?"rc-picker":rn,Bn=ft.id,In=ft.name,ni=ft.tabIndex,ai=ft.style,xi=ft.className,_i=ft.dropdownClassName,yi=ft.dropdownAlign,zi=ft.popupStyle,mi=ft.transitionName,dr=ft.generateConfig,Qn=ft.locale,ji=ft.inputReadOnly,hr=ft.allowClear,no=ft.autoFocus,Zr=ft.showTime,ao=ft.picker,so=ao===void 0?"date":ao,io=ft.format,qi=ft.use12Hours,aa=ft.value,$o=ft.defaultValue,ma=ft.presets,Va=ft.open,Wa=ft.defaultOpen,ka=ft.defaultOpenValue,vs=ft.suffixIcon,La=ft.clearIcon,wa=ft.disabled,Ta=ft.disabledDate,us=ft.placeholder,ys=ft.getPopupContainer,$a=ft.pickerRef,Oa=ft.panelRender,Hs=ft.onChange,dl=ft.onOpenChange,st=ft.onFocus,St=ft.onBlur,_t=ft.onMouseDown,tn=ft.onMouseUp,pn=ft.onMouseEnter,un=ft.onMouseLeave,Wn=ft.onContextMenu,jn=ft.onClick,zn=ft.onKeyDown,fi=ft.onSelect,$n=ft.direction,ci=ft.autoComplete,Ri=ci===void 0?"off":ci,Oi=ft.inputRender,Di=ft.changeOnBlur,ur=Pe.useRef(null),ki=so==="date"&&!!Zr||so==="time",Sr=Kt(ma),mr=Mn(Ki(io,so,Zr,qi)),br=Pe.useRef(null),lo=Pe.useRef(null),Po=Pe.useRef(null),Mr=(0,ti.Z)(null,{value:aa,defaultValue:$o}),Wr=(0,Kn.Z)(Mr,2),Wo=Wr[0],Ar=Wr[1],_r=Pe.useState(Wo),Lr=(0,Kn.Z)(_r,2),nr=Lr[0],wr=Lr[1],Qr=Pe.useRef(null),wo=(0,ti.Z)(!1,{value:Va,defaultValue:Wa,postState:function(To){return wa?!1:To},onChange:function(To){dl&&dl(To),!To&&Qr.current&&Qr.current.onClose&&Qr.current.onClose()}}),Eo=(0,Kn.Z)(wo,2),Cr=Eo[0],Zo=Eo[1],Jo=qn(nr,{formatList:mr,generateConfig:dr,locale:Qn}),ea=(0,Kn.Z)(Jo,2),qo=ea[0],qa=ea[1],ha=Sn({valueTexts:qo,onTextChange:function(To){var Ds=yn(To,{locale:Qn,formatList:mr,generateConfig:dr});Ds&&(!Ta||!Ta(Ds))&&wr(Ds)}}),zo=(0,Kn.Z)(ha,3),po=zo[0],Lo=zo[1],Xa=zo[2],Ia=function(To){wr(To),Ar(To),Hs&&!dt(dr,Wo,To)&&Hs(To,To?Ot(To,{generateConfig:dr,locale:Qn,format:mr[0]}):"")},as=function(To){wa&&To||Zo(To)},ko=function(To){return Cr&&Qr.current&&Qr.current.onKeyDown?Qr.current.onKeyDown(To):((0,Ke.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},So=function(){for(var To=arguments.length,Ds=new Array(To),Xs=0;Xs<To;Xs++)Ds[Xs]=arguments[Xs];jn==null||jn.apply(void 0,Ds),ur.current&&(ur.current.focus(),as(!0))},jo=function(To){Di&&Ia(nr),St==null||St(To)},ho=en({blurToCancel:ki,open:Cr,value:po,triggerOpen:as,forwardKeyDown:ko,isClickOutside:function(To){return!an([br.current,lo.current,Po.current],To)},onSubmit:function(){return!nr||Ta&&Ta(nr)?!1:(Ia(nr),as(!1),Xa(),!0)},onCancel:function(){as(!1),wr(Wo),Xa()},onKeyDown:function(To,Ds){zn==null||zn(To,Ds)},onFocus:st,onBlur:jo,changeOnBlur:Di}),Yr=(0,Kn.Z)(ho,2),Hi=Yr[0],kr=Yr[1],Vo=kr.focused,sa=kr.typing;Pe.useEffect(function(){Cr||(wr(Wo),!qo.length||qo[0]===""?Lo(""):qa!==po&&Xa())},[Cr,qo]),Pe.useEffect(function(){Cr||Xa()},[so]),Pe.useEffect(function(){wr(Wo)},[Wo]),$a&&($a.current={focus:function(){var To;(To=ur.current)===null||To===void 0||To.focus()},blur:function(){var To;(To=ur.current)===null||To===void 0||To.blur()}});var al=vi(po,{formatList:mr,generateConfig:dr,locale:Qn}),Ws=(0,Kn.Z)(al,3),Pl=Ws[0],Na=Ws[1],_a=Ws[2],Fo=(0,Un.Z)((0,Un.Z)({},Ye),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Ys=Pe.createElement("div",{className:"".concat(ln,"-panel-layout")},Pe.createElement(Bo,{prefixCls:ln,presets:Sr,onClick:function(To){Ia(To),as(!1)}}),Pe.createElement(vo,(0,Ae.Z)({},Fo,{generateConfig:dr,className:Ct()((0,Ft.Z)({},"".concat(ln,"-panel-focused"),!sa)),value:nr,locale:Qn,tabIndex:-1,onSelect:function(To){fi==null||fi(To),wr(To)},direction:$n,onPanelChange:function(To,Ds){var Xs=Ye.onPanelChange;_a(!0),Xs==null||Xs(To,Ds)}})));Oa&&(Ys=Oa(Ys));var wl=Pe.createElement("div",{className:"".concat(ln,"-panel-container"),ref:br,onMouseDown:function(To){To.preventDefault()}},Ys),Za;vs&&(Za=Pe.createElement("span",{className:"".concat(ln,"-suffix"),onMouseDown:function(To){To.preventDefault()}},vs));var es=ba(ln,hr,La),ss=Pe.createElement("span",{onMouseDown:function(To){To.preventDefault(),To.stopPropagation()},onMouseUp:function(To){To.preventDefault(),To.stopPropagation(),Ia(null),as(!1)},className:"".concat(ln,"-clear"),role:"button"},es),bs=!!hr&&Wo&&!wa,Us=(0,Un.Z)((0,Un.Z)((0,Un.Z)({id:Bn,tabIndex:ni,disabled:wa,readOnly:ji||typeof mr[0]=="function"||!sa,value:Pl||po,onChange:function(To){Lo(To.target.value)},autoFocus:no,placeholder:us,ref:ur,title:po},Hi),{},{size:Ir(so,mr[0],dr),name:In},(0,Fn.Z)(Ye,{aria:!0,data:!0})),{},{autoComplete:Ri}),va=Oi?Oi(Us):Pe.createElement("input",Us),cs=function(To,Ds){(Ds==="submit"||Ds!=="key"&&!ki)&&(Ia(To),as(!1))},qs=$n==="rtl"?"bottomRight":"bottomLeft";return Pe.createElement(zt.Provider,{value:{operationRef:Qr,hideHeader:so==="time",onSelect:cs,open:Cr,defaultOpenValue:ka,onDateMouseEnter:Na,onDateMouseLeave:_a}},Pe.createElement(Do,{visible:Cr,popupElement:wl,popupStyle:zi,prefixCls:ln,dropdownClassName:_i,dropdownAlign:yi,getPopupContainer:ys,transitionName:mi,popupPlacement:qs,direction:$n},Pe.createElement("div",{ref:Po,className:Ct()(ln,xi,(rt={},(0,Ft.Z)(rt,"".concat(ln,"-disabled"),wa),(0,Ft.Z)(rt,"".concat(ln,"-focused"),Vo),(0,Ft.Z)(rt,"".concat(ln,"-rtl"),$n==="rtl"),rt)),style:ai,onMouseDown:_t,onMouseUp:tn,onMouseEnter:pn,onMouseLeave:un,onContextMenu:Wn,onClick:So},Pe.createElement("div",{className:Ct()("".concat(ln,"-input"),(0,Ft.Z)({},"".concat(ln,"-input-placeholder"),!!Pl)),ref:lo},va,Za,bs&&ss))))}var Xr=function(Ye){(0,hn.Z)(ft,Ye);var rt=(0,Xn.Z)(ft);function ft(){var rn;(0,Nt.Z)(this,ft);for(var ln=arguments.length,Bn=new Array(ln),In=0;In<ln;In++)Bn[In]=arguments[In];return rn=rt.call.apply(rt,[this].concat(Bn)),(0,Ft.Z)((0,Nn.Z)(rn),"pickerRef",Pe.createRef()),(0,Ft.Z)((0,Nn.Z)(rn),"focus",function(){rn.pickerRef.current&&rn.pickerRef.current.focus()}),(0,Ft.Z)((0,Nn.Z)(rn),"blur",function(){rn.pickerRef.current&&rn.pickerRef.current.blur()}),rn}return(0,sn.Z)(ft,[{key:"render",value:function(){return Pe.createElement(or,(0,Ae.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),ft}(Pe.Component),Pr=Xr;function fa(Ye,rt){var ft=Ye.picker,rn=Ye.locale,ln=Ye.selectedValue,Bn=Ye.disabledDate,In=Ye.disabled,ni=Ye.generateConfig,ai=It(ln,0),xi=It(ln,1);function _i(Qn){return ni.locale.getWeekFirstDate(rn.locale,Qn)}function yi(Qn){var ji=ni.getYear(Qn),hr=ni.getMonth(Qn);return ji*100+hr}function zi(Qn){var ji=ni.getYear(Qn),hr=Oe(ni,Qn);return ji*10+hr}var mi=Pe.useCallback(function(Qn){if(In[0]||Bn&&Bn(Qn))return!0;if(In[1]&&xi)return!ke(ni,Qn,xi)&&ni.isAfter(Qn,xi);if(!rt&&xi)switch(ft){case"quarter":return zi(Qn)>zi(xi);case"month":return yi(Qn)>yi(xi);case"week":return _i(Qn)>_i(xi);default:return!ke(ni,Qn,xi)&&ni.isAfter(Qn,xi)}return!1},[Bn,In[1],xi,rt]),dr=Pe.useCallback(function(Qn){if(In[1]||Bn&&Bn(Qn))return!0;if(In[0]&&ai)return!ke(ni,Qn,xi)&&ni.isAfter(ai,Qn);if(!rt&&ai)switch(ft){case"quarter":return zi(Qn)<zi(ai);case"month":return yi(Qn)<yi(ai);case"week":return _i(Qn)<_i(ai);default:return!ke(ni,Qn,ai)&&ni.isAfter(ai,Qn)}return!1},[Bn,In[0],ai,rt]);return[mi,dr]}var Mi=he(80764),ga=he(8107);function Ua(Ye,rt,ft,rn,ln,Bn,In,ni,ai,xi){var _i=Pe.useState(!1),yi=(0,Kn.Z)(_i,2),zi=yi[0],mi=yi[1],dr=(0,Mi.useMergedState)(Ye||!1,{value:rt}),Qn=(0,Kn.Z)(dr,2),ji=Qn[0],hr=Qn[1],no=(0,Mi.useMergedState)(Ye||!1,{value:rt,onChange:function(Ta){xi==null||xi(Ta)}}),Zr=(0,Kn.Z)(no,2),ao=Zr[0],so=Zr[1],io=(0,Mi.useMergedState)(0,{value:ft}),qi=(0,Kn.Z)(io,2),aa=qi[0],$o=qi[1],ma=Pe.useState(null),Va=(0,Kn.Z)(ma,2),Wa=Va[0],ka=Va[1];Pe.useEffect(function(){ao&&mi(!0)},[ao]);var vs=function(Ta){return Ta===0?1:0},La=(0,ga.Z)(function(wa,Ta,us){if(Ta===!1)so(wa);else if(wa){$o(Ta),so(wa);var ys=vs(Ta);!ao||![In,ni][ys]?ka(ys):(mi(!1),Wa!==null&&ka(null))}else if(us==="confirm"||us==="blur"&&rn){var $a=ji?vs(Ta):Wa;$a!==null&&(mi(!1),$o($a)),ka(null),$a!==null&&!ai[$a]?(0,wi.Z)(function(){var Oa,Hs=[ln,Bn][$a];(Oa=Hs.current)===null||Oa===void 0||Oa.focus()}):so(!1)}else so(!1),hr(!1)});return[ao,aa,zi,La]}function rs(Ye,rt,ft,rn){var ln=Et(Ye,ft,rn,1);function Bn(In){return In(Ye,rt)?"same":In(ln,rt)?"closing":"far"}switch(ft){case"year":return Bn(function(In,ni){return pt(rn,In,ni)});case"quarter":case"month":return Bn(function(In,ni){return nt(rn,In,ni)});default:return Bn(function(In,ni){return ye(rn,In,ni)})}}function Sl(Ye,rt,ft,rn){var ln=It(Ye,0),Bn=It(Ye,1);if(rt===0)return ln;if(ln&&Bn){var In=rs(ln,Bn,ft,rn);switch(In){case"same":return ln;case"closing":return ln;default:return Et(Bn,ft,rn,-1)}}return ln}function Kl(Ye){var rt=Ye.values,ft=Ye.picker,rn=Ye.defaultDates,ln=Ye.generateConfig,Bn=Pe.useState(function(){return[It(rn,0),It(rn,1)]}),In=(0,Kn.Z)(Bn,2),ni=In[0],ai=In[1],xi=Pe.useState(null),_i=(0,Kn.Z)(xi,2),yi=_i[0],zi=_i[1],mi=It(rt,0),dr=It(rt,1);function Qn(hr){return ni[hr]?ni[hr]:It(yi,hr)||Sl(rt,hr,ft,ln)||mi||dr||ln.getNow()}function ji(hr,no){if(hr){var Zr=gn(yi,hr,no);ai(gn(ni,null,no)||[null,null]);var ao=(no+1)%2;It(rt,ao)||(Zr=gn(Zr,hr,ao)),zi(Zr)}else(mi||dr)&&zi(null)}return[Qn,ji]}function yo(Ye,rt){return Ye&&Ye[0]&&Ye[1]&&rt.isAfter(Ye[0],Ye[1])?[Ye[1],Ye[0]]:Ye}function Vu(Ye,rt,ft,rn){return!!(Ye||rn&&rn[rt]||ft[(rt+1)%2])}function Ll(Ye){var rt,ft,rn,ln=Ye,Bn=ln.prefixCls,In=Bn===void 0?"rc-picker":Bn,ni=ln.id,ai=ln.style,xi=ln.className,_i=ln.popupStyle,yi=ln.dropdownClassName,zi=ln.transitionName,mi=ln.dropdownAlign,dr=ln.getPopupContainer,Qn=ln.generateConfig,ji=ln.locale,hr=ln.placeholder,no=ln.autoFocus,Zr=ln.disabled,ao=ln.format,so=ln.picker,io=so===void 0?"date":so,qi=ln.showTime,aa=ln.use12Hours,$o=ln.separator,ma=$o===void 0?"~":$o,Va=ln.value,Wa=ln.defaultValue,ka=ln.defaultPickerValue,vs=ln.open,La=ln.defaultOpen,wa=ln.disabledDate,Ta=ln.disabledTime,us=ln.dateRender,ys=ln.monthCellRender,$a=ln.cellRender,Oa=ln.panelRender,Hs=ln.presets,dl=ln.ranges,st=ln.allowEmpty,St=ln.allowClear,_t=ln.suffixIcon,tn=ln.clearIcon,pn=ln.pickerRef,un=ln.inputReadOnly,Wn=ln.mode,jn=ln.renderExtraFooter,zn=ln.onChange,fi=ln.onOpenChange,$n=ln.onPanelChange,ci=ln.onCalendarChange,Ri=ln.onFocus,Oi=ln.onBlur,Di=ln.onMouseDown,ur=ln.onMouseUp,ki=ln.onMouseEnter,Sr=ln.onMouseLeave,mr=ln.onClick,br=ln.onOk,lo=ln.onKeyDown,Po=ln.components,Mr=ln.order,Wr=ln.direction,Wo=ln.activePickerIndex,Ar=ln.autoComplete,_r=Ar===void 0?"off":Ar,Lr=ln.changeOnBlur,nr=io==="date"&&!!qi||io==="time",wr=(0,Pe.useRef)(null),Qr=(0,Pe.useRef)(null),wo=(0,Pe.useRef)(null),Eo=(0,Pe.useRef)(null),Cr=(0,Pe.useRef)(null),Zo=(0,Pe.useRef)(null),Jo=(0,Pe.useRef)(null),ea=(0,Pe.useRef)(null),qo=Mn(Ki(ao,io,qi,aa)),qa=(0,Pe.useRef)(null),ha=Pe.useMemo(function(){return Array.isArray(Zr)?Zr:[Zr||!1,Zr||!1]},[Zr]),zo=(0,ti.Z)(null,{value:Va,defaultValue:Wa,postState:function(Go){return io==="time"&&!Mr?Go:yo(Go,Qn)}}),po=(0,Kn.Z)(zo,2),Lo=po[0],Xa=po[1],Ia=Kl({values:Lo,picker:io,defaultDates:ka,generateConfig:Qn}),as=(0,Kn.Z)(Ia,2),ko=as[0],So=as[1],jo=(0,ti.Z)(Lo,{postState:function(Go){var la=Go;if(ha[0]&&ha[1])return la;for(var ls=0;ls<2;ls+=1)ha[ls]&&!la&&!It(la,ls)&&!It(st,ls)&&(la=gn(la,Qn.getNow(),ls));return la}}),ho=(0,Kn.Z)(jo,2),Yr=ho[0],Hi=ho[1],kr=(0,ti.Z)([io,io],{value:Wn}),Vo=(0,Kn.Z)(kr,2),sa=Vo[0],al=Vo[1];(0,Pe.useEffect)(function(){al([io,io])},[io]);var Ws=function(Go,la){al(Go),$n&&$n(la,Go)},Pl=Ua(La,vs,Wo,Lr,Zo,Jo,It(Yr,0),It(Yr,1),ha,fi),Na=(0,Kn.Z)(Pl,4),_a=Na[0],Fo=Na[1],Ys=Na[2],wl=Na[3],Za=_a&&Fo===0,es=_a&&Fo===1,ss=fa({picker:io,selectedValue:Yr,locale:ji,disabled:ha,disabledDate:wa,generateConfig:Qn},!_a||Ys),bs=(0,Kn.Z)(ss,2),Us=bs[0],va=bs[1],cs=(0,Pe.useState)(0),qs=(0,Kn.Z)(cs,2),Ja=qs[0],To=qs[1];(0,Pe.useEffect)(function(){!_a&&wr.current&&To(wr.current.offsetWidth)},[_a]);function Ds(hs){wl(!0,hs,"open"),(0,wi.Z)(function(){var Go,la=[Zo,Jo][hs];(Go=la.current)===null||Go===void 0||Go.focus()},0)}function Xs(hs,Go){var la=hs,ls=It(la,0),ll=It(la,1);ls&&ll&&Qn.isAfter(ls,ll)&&(io==="week"&&!Be(Qn,ji.locale,ls,ll)||io==="quarter"&&!we(Qn,ls,ll)||io!=="week"&&io!=="quarter"&&io!=="time"&&!ke(Qn,ls,ll)?Go===0?(la=[ls,null],ll=null):(ls=null,la=[null,ll]):(io!=="time"||Mr!==!1)&&(la=yo(la,Qn))),Hi(la);var ld=la&&la[0]?Ot(la[0],{generateConfig:Qn,locale:ji,format:qo[0]}):"",Xl=la&&la[1]?Ot(la[1],{generateConfig:Qn,locale:ji,format:qo[0]}):"";if(ci){var Vc={range:Go===0?"start":"end"};ci(la,[ld,Xl],Vc)}var mc=Vu(ls,0,ha,st),hh=Vu(ll,1,ha,st),Yc=la===null||mc&&hh;Yc&&(Xa(la),zn&&(!dt(Qn,It(Lo,0),ls)||!dt(Qn,It(Lo,1),ll))&&zn(la,[ld,Xl]))}var Fu=function(Go){return _a&&qa.current&&qa.current.onKeyDown?qa.current.onKeyDown(Go):((0,Ke.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},su={formatList:qo,generateConfig:Qn,locale:ji},ts=qn(It(Yr,0),su),Cl=(0,Kn.Z)(ts,2),Cs=Cl[0],Ss=Cl[1],mu=qn(It(Yr,1),su),fc=(0,Kn.Z)(mu,2),Yl=fc[0],Ju=fc[1],Qu=function(Go,la){var ls=yn(Go,{locale:ji,formatList:qo,generateConfig:Qn}),ll=la===0?Us:va;ls&&!ll(ls)&&(Hi(gn(Yr,ls,la)),So(ls,la))},lu=Sn({valueTexts:Cs,onTextChange:function(Go){return Qu(Go,0)}}),Ra=(0,Kn.Z)(lu,3),ds=Ra[0],el=Ra[1],xs=Ra[2],za=Sn({valueTexts:Yl,onTextChange:function(Go){return Qu(Go,1)}}),tl=(0,Kn.Z)(za,3),kl=tl[0],Mu=tl[1],ah=tl[2],cn=(0,Pe.useState)(null),Mc=(0,Kn.Z)(cn,2),gc=Mc[0],Rh=Mc[1],vd=(0,Pe.useState)(null),Wc=(0,Kn.Z)(vd,2),Lc=Wc[0],ff=Wc[1],Al=vi(ds,{formatList:qo,generateConfig:Qn,locale:ji}),od=(0,Kn.Z)(Al,3),Od=od[0],Id=od[1],Rd=od[2],gf=vi(kl,{formatList:qo,generateConfig:Qn,locale:ji}),zd=(0,Kn.Z)(gf,3),jd=zd[0],vu=zd[1],Zc=zd[2],zh=function(Go){ff(gn(Yr,Go,Fo)),Fo===0?Id(Go):vu(Go)},$u=function(){ff(gn(Yr,null,Fo)),Fo===0?Rd():Zc()},Gc=Pe.useState(_a),ad=(0,Kn.Z)(Gc,2),sd=ad[0],Ul=ad[1];Pe.useEffect(function(){Ul(_a)},[_a]);var sh=function(Go){if(Lr&&sd){var la=It(Yr,Fo);la&&Xs(Yr,Fo)}return Oi==null?void 0:Oi(Go)},Hd=function(Go,la){return{blurToCancel:!Lr&&nr,forwardKeyDown:Fu,onBlur:sh,isClickOutside:function(ll){return!an([Qr.current,wo.current,Eo.current,wr.current],ll)},onFocus:function(ll){Ri&&Ri(ll)},triggerOpen:function(ll){ll?wl(ll,Go,"open"):wl(ll,It(Yr,Go)?Go:!1,"blur")},onSubmit:function(){if(!Yr||wa&&wa(Yr[Go]))return!1;Xs(Yr,Go),la(),wl(!1,Fo,"confirm")},onCancel:function(){wl(!1,Go,"cancel"),Hi(Lo),la()}}},uu={onKeyDown:function(Go,la){lo==null||lo(Go,la)},changeOnBlur:Lr},yd=en((0,Un.Z)((0,Un.Z)({},Hd(0,xs)),{},{open:Za,value:ds},uu)),Wd=(0,Kn.Z)(yd,2),lh=Wd[0],Dc=Wd[1],Tl=Dc.focused,Zd=Dc.typing,sl=en((0,Un.Z)((0,Un.Z)({},Hd(1,ah)),{},{open:es,value:kl},uu)),Ya=(0,Kn.Z)(sl,2),As=Ya[0],Fl=Ya[1],yu=Fl.focused,Su=Fl.typing,uh=function(Go){mr&&mr(Go),!_a&&!Zo.current.contains(Go.target)&&!Jo.current.contains(Go.target)&&(ha[0]?ha[1]||Ds(1):Ds(0))},Kc=function(Go){Di&&Di(Go),_a&&(Tl||yu)&&!Zo.current.contains(Go.target)&&!Jo.current.contains(Go.target)&&Go.preventDefault()},Gd=Lo&&Lo[0]?Ot(Lo[0],{locale:ji,format:"YYYYMMDDHHmmss",generateConfig:Qn}):"",Iu=Lo&&Lo[1]?Ot(Lo[1],{locale:ji,format:"YYYYMMDDHHmmss",generateConfig:Qn}):"";(0,Pe.useEffect)(function(){_a||(Hi(Lo),!Cs.length||Cs[0]===""?el(""):Ss!==ds&&xs(),!Yl.length||Yl[0]===""?Mu(""):Ju!==kl&&ah())},[_a,Cs,Yl]),(0,Pe.useEffect)(function(){Hi(Lo)},[Gd,Iu]);var qu=xn({cellRender:$a,monthCellRender:ys,dateRender:us}),pf=Pe.useMemo(function(){if(qu)return function(hs,Go){return qu(hs,(0,Un.Z)((0,Un.Z)({},Go),{},{range:Fo?"end":"start"}))}},[Fo,qu]);pn&&(pn.current={focus:function(){Zo.current&&Zo.current.focus()},blur:function(){Zo.current&&Zo.current.blur(),Jo.current&&Jo.current.blur()}});var mf=Kt(Hs,dl);function ch(){var hs=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},la=null;_a&&Lc&&Lc[0]&&Lc[1]&&Qn.isAfter(Lc[1],Lc[0])&&(la=Lc);var ls=qi;if(qi&&(0,gt.Z)(qi)==="object"&&qi.defaultValue){var ll=qi.defaultValue;ls=(0,Un.Z)((0,Un.Z)({},qi),{},{defaultValue:It(ll,Fo)||void 0})}return Pe.createElement(Cn.Provider,{value:{inRange:!0,panelPosition:hs,rangedValue:gc||Yr,hoverRangedValue:la}},Pe.createElement(vo,(0,Ae.Z)({},Ye,Go,{cellRender:pf,showTime:ls,mode:sa[Fo],generateConfig:Qn,style:void 0,direction:Wr,disabledDate:Fo===0?Us:va,disabledTime:function(Xl){return Ta?Ta(Xl,Fo===0?"start":"end"):!1},className:Ct()((0,Ft.Z)({},"".concat(In,"-panel-focused"),Fo===0?!Zd:!Su)),value:It(Yr,Fo),locale:ji,tabIndex:-1,onPanelChange:function(Xl,Vc){Fo===0&&Rd(!0),Fo===1&&Zc(!0),Ws(gn(sa,Vc,Fo),gn(Yr,Xl,Fo));var mc=Xl;hs==="right"&&sa[Fo]===Vc&&(mc=Et(mc,Vc,Qn,-1)),So(mc,Fo)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Fo===0?It(Yr,1):It(Yr,0)})))}var Ru=0,vf=0;if(Fo&&wo.current&&Cr.current&&Qr.current&&ea.current){Ru=wo.current.offsetWidth+Cr.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-(Wr==="rtl"?0:Zf)&&(vf=Ru)}var xg=Wr==="rtl"?{right:Ru}:{left:Ru};function Gf(){var hs,Go=Kr(In,sa[Fo],jn),la=Ao({prefixCls:In,components:Po,needConfirmButton:nr,okDisabled:!It(Yr,Fo)||wa&&wa(Yr[Fo]),locale:ji,onOk:function(){var vc=It(Yr,Fo);vc&&(Xs(Yr,Fo),br==null||br(Yr),wl(!1,Fo,"confirm"))}});if(io!=="time"&&!qi){var ls=ko(Fo),ll=Et(ls,io,Qn),ld=sa[Fo],Xl=ld===io,Vc=ch(Xl?"left":!1,{pickerValue:ls,onPickerValueChange:function(vc){So(vc,Fo)}}),mc=ch("right",{pickerValue:ll,onPickerValueChange:function(vc){So(Et(vc,io,Qn,-1),Fo)}});Wr==="rtl"?hs=Pe.createElement(Pe.Fragment,null,mc,Xl&&Vc):hs=Pe.createElement(Pe.Fragment,null,Vc,Xl&&mc)}else hs=ch();var hh=Pe.createElement("div",{className:"".concat(In,"-panel-layout")},Pe.createElement(Bo,{prefixCls:In,presets:mf,onClick:function(vc){Xs(vc,null),wl(!1,Fo,"preset")},onHover:function(vc){Rh(vc)}}),Pe.createElement("div",null,Pe.createElement("div",{className:"".concat(In,"-panels")},hs),(Go||la)&&Pe.createElement("div",{className:"".concat(In,"-footer")},Go,la)));return Oa&&(hh=Oa(hh)),Pe.createElement("div",{className:"".concat(In,"-panel-container"),style:{marginLeft:vf},ref:Qr,onMouseDown:function(vc){vc.preventDefault()}},hh)}var dh=Pe.createElement("div",{className:Ct()("".concat(In,"-range-wrapper"),"".concat(In,"-").concat(io,"-range-wrapper")),style:{minWidth:Ja}},Pe.createElement("div",{ref:ea,className:"".concat(In,"-range-arrow"),style:xg}),Gf()),Sd;_t&&(Sd=Pe.createElement("span",{className:"".concat(In,"-suffix"),onMouseDown:function(Go){Go.preventDefault()}},_t));var Kf=ba(In,St,tn),Bc=Pe.createElement("span",{onMouseDown:function(Go){Go.preventDefault(),Go.stopPropagation()},onMouseUp:function(Go){Go.preventDefault(),Go.stopPropagation();var la=Lo;ha[0]||(la=gn(la,null,0)),ha[1]||(la=gn(la,null,1)),Xs(la,null),wl(!1,Fo,"clear")},className:"".concat(In,"-clear"),role:"button"},Kf),Vf=St&&(It(Lo,0)&&!ha[0]||It(Lo,1)&&!ha[1]),jh={size:Ir(io,qo[0],Qn)},Sf=0,Hh=0;wo.current&&Eo.current&&Cr.current&&(Fo===0?Hh=wo.current.offsetWidth:(Sf=Ru,Hh=Eo.current.offsetWidth));var Yf=Wr==="rtl"?{right:Sf}:{left:Sf},lp=function(Go,la){var ls=gn(Yr,Go,Fo);if(la==="submit"||la!=="key"&&!nr){Xs(ls,Fo),Fo===0?Rd():Zc();var ll=Fo===0?1:0;ha[ll]?wl(!1,!1,"confirm"):wl(!1,Fo,"confirm")}else Hi(ls)};return Pe.createElement(zt.Provider,{value:{operationRef:qa,hideHeader:io==="time",onDateMouseEnter:zh,onDateMouseLeave:$u,hideRanges:!0,onSelect:lp,open:_a}},Pe.createElement(Do,{visible:_a,popupElement:dh,popupStyle:_i,prefixCls:In,dropdownClassName:yi,dropdownAlign:mi,getPopupContainer:dr,transitionName:zi,range:!0,direction:Wr},Pe.createElement("div",(0,Ae.Z)({ref:wr,className:Ct()(In,"".concat(In,"-range"),xi,(rt={},(0,Ft.Z)(rt,"".concat(In,"-disabled"),ha[0]&&ha[1]),(0,Ft.Z)(rt,"".concat(In,"-focused"),Fo===0?Tl:yu),(0,Ft.Z)(rt,"".concat(In,"-rtl"),Wr==="rtl"),rt)),style:ai,onClick:uh,onMouseEnter:ki,onMouseLeave:Sr,onMouseDown:Kc,onMouseUp:ur},(0,Fn.Z)(Ye,{aria:!0,data:!0})),Pe.createElement("div",{className:Ct()("".concat(In,"-input"),(ft={},(0,Ft.Z)(ft,"".concat(In,"-input-active"),Fo===0),(0,Ft.Z)(ft,"".concat(In,"-input-placeholder"),!!Od),ft)),ref:wo},Pe.createElement("input",(0,Ae.Z)({id:ni,disabled:ha[0],readOnly:un||typeof qo[0]=="function"||!Zd,value:Od||ds,onChange:function(Go){el(Go.target.value)},autoFocus:no,placeholder:It(hr,0)||"",ref:Zo},lh,jh,{autoComplete:_r}))),Pe.createElement("div",{className:"".concat(In,"-range-separator"),ref:Cr},ma),Pe.createElement("div",{className:Ct()("".concat(In,"-input"),(rn={},(0,Ft.Z)(rn,"".concat(In,"-input-active"),Fo===1),(0,Ft.Z)(rn,"".concat(In,"-input-placeholder"),!!jd),rn)),ref:Eo},Pe.createElement("input",(0,Ae.Z)({disabled:ha[1],readOnly:un||typeof qo[0]=="function"||!Su,value:jd||kl,onChange:function(Go){Mu(Go.target.value)},placeholder:It(hr,1)||"",ref:Jo},As,jh,{autoComplete:_r}))),Pe.createElement("div",{className:"".concat(In,"-active-bar"),style:(0,Un.Z)((0,Un.Z)({},Yf),{},{width:Hh,position:"absolute"})}),Sd,Vf&&Bc)))}var Dl=function(Ye){(0,hn.Z)(ft,Ye);var rt=(0,Xn.Z)(ft);function ft(){var rn;(0,Nt.Z)(this,ft);for(var ln=arguments.length,Bn=new Array(ln),In=0;In<ln;In++)Bn[In]=arguments[In];return rn=rt.call.apply(rt,[this].concat(Bn)),(0,Ft.Z)((0,Nn.Z)(rn),"pickerRef",Pe.createRef()),(0,Ft.Z)((0,Nn.Z)(rn),"focus",function(){rn.pickerRef.current&&rn.pickerRef.current.focus()}),(0,Ft.Z)((0,Nn.Z)(rn),"blur",function(){rn.pickerRef.current&&rn.pickerRef.current.blur()}),rn}return(0,sn.Z)(ft,[{key:"render",value:function(){return Pe.createElement(Ll,(0,Ae.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),ft}(Pe.Component),xl=Dl,co=Pr,Ba=he(19080),Ms=he(36355),zs=he(1684),Yu=he(19716),uc=he(32441),Uu=he(9763),Ac=he(33234),Xu=he(48183),Vl=he(64993),Bl=he(9937),os=he(17313),Au=he(47585),_u=he(74207),$s=he(13826),_o=he(92899),Ma=he(37613),bl=he(83116);const Ts=(Ye,rt,ft,rn)=>{const{lineHeight:ln}=Ye,Bn=Math.floor(ft*ln)+2,In=Math.max((rt-Bn)/2,0),ni=Math.max(rt-Bn-In,0);return{padding:`${In}px ${rn}px ${ni}px`}},Os=Ye=>{const{componentCls:rt,pickerCellCls:ft,pickerCellInnerCls:rn,cellHeight:ln,motionDurationSlow:Bn,borderRadiusSM:In,motionDurationMid:ni,cellHoverBg:ai,lineWidth:xi,lineType:_i,colorPrimary:yi,cellActiveWithRangeBg:zi,colorTextLightSolid:mi,controlHeightSM:dr,cellRangeBorderColor:Qn,pickerCellBorderGap:ji,cellHoverWithRangeBg:hr,cellWidth:no,colorTextDisabled:Zr,cellBgDisabled:ao}=Ye;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:ln,transform:"translateY(-50%)",transition:`all ${Bn}`,content:'""'},[rn]:{position:"relative",zIndex:2,display:"inline-block",minWidth:ln,height:ln,lineHeight:`${ln}px`,borderRadius:In,transition:`background ${ni}, border ${ni}`},"&-range-hover-start, &-range-hover-end":{[rn]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${ft}-in-view),
|
|
|
&:hover:not(${ft}-selected):not(${ft}-range-start):not(${ft}-range-end):not(${ft}-range-hover-start):not(${ft}-range-hover-end)`]:{[rn]:{background:ai}},[`&-in-view${ft}-today ${rn}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${xi}px ${_i} ${yi}`,borderRadius:In,content:'""'}},[`&-in-view${ft}-in-range`]:{position:"relative","&::before":{background:zi}},[`&-in-view${ft}-selected ${rn},
|
|
|
&-in-view${ft}-range-start ${rn},
|
|
|
&-in-view${ft}-range-end ${rn}`]:{color:mi,background:yi},[`&-in-view${ft}-range-start:not(${ft}-range-start-single),
|
|
|
&-in-view${ft}-range-end:not(${ft}-range-end-single)`]:{"&::before":{background:zi}},[`&-in-view${ft}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${ft}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${ft}-range-hover-start:not(${ft}-in-range):not(${ft}-range-start):not(${ft}-range-end),
|
|
|
&-in-view${ft}-range-hover-end:not(${ft}-in-range):not(${ft}-range-start):not(${ft}-range-end),
|
|
|
&-in-view${ft}-range-hover-start${ft}-range-start-single,
|
|
|
&-in-view${ft}-range-hover-start${ft}-range-start${ft}-range-end${ft}-range-end-near-hover,
|
|
|
&-in-view${ft}-range-hover-end${ft}-range-start${ft}-range-end${ft}-range-start-near-hover,
|
|
|
&-in-view${ft}-range-hover-end${ft}-range-end-single,
|
|
|
&-in-view${ft}-range-hover:not(${ft}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:dr,borderTop:`${xi}px dashed ${Qn}`,borderBottom:`${xi}px dashed ${Qn}`,transform:"translateY(-50%)",transition:`all ${Bn}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:ji},[`&-in-view${ft}-in-range${ft}-range-hover::before,
|
|
|
&-in-view${ft}-in-range${ft}-range-hover-start::before,
|
|
|
&-in-view${ft}-in-range${ft}-range-hover-end::before,
|
|
|
&-in-view${ft}-range-start${ft}-range-hover::before,
|
|
|
&-in-view${ft}-range-end${ft}-range-hover::before,
|
|
|
&-in-view${ft}-range-start:not(${ft}-range-start-single)${ft}-range-hover-start::before,
|
|
|
&-in-view${ft}-range-end:not(${ft}-range-end-single)${ft}-range-hover-end::before,
|
|
|
${rt}-panel
|
|
|
> :not(${rt}-date-panel)
|
|
|
&-in-view${ft}-in-range${ft}-range-hover-start::before,
|
|
|
${rt}-panel
|
|
|
> :not(${rt}-date-panel)
|
|
|
&-in-view${ft}-in-range${ft}-range-hover-end::before`]:{background:hr},[`&-in-view${ft}-range-start:not(${ft}-range-start-single):not(${ft}-range-end) ${rn}`]:{borderStartStartRadius:In,borderEndStartRadius:In,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${ft}-range-end:not(${ft}-range-end-single):not(${ft}-range-start) ${rn}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:In,borderEndEndRadius:In},[`&-range-hover${ft}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${ft}-range-hover:first-child::after,
|
|
|
tr > &-in-view${ft}-range-hover-end:first-child::after,
|
|
|
&-in-view${ft}-start${ft}-range-hover-edge-start${ft}-range-hover-edge-start-near-range::after,
|
|
|
&-in-view${ft}-range-hover-edge-start:not(${ft}-range-hover-edge-start-near-range)::after,
|
|
|
&-in-view${ft}-range-hover-start::after`]:{insetInlineStart:(no-ln)/2,borderInlineStart:`${xi}px dashed ${Qn}`,borderStartStartRadius:In,borderEndStartRadius:In},[`tr > &-in-view${ft}-range-hover:last-child::after,
|
|
|
tr > &-in-view${ft}-range-hover-start:last-child::after,
|
|
|
&-in-view${ft}-end${ft}-range-hover-edge-end${ft}-range-hover-edge-end-near-range::after,
|
|
|
&-in-view${ft}-range-hover-edge-end:not(${ft}-range-hover-edge-end-near-range)::after,
|
|
|
&-in-view${ft}-range-hover-end::after`]:{insetInlineEnd:(no-ln)/2,borderInlineEnd:`${xi}px dashed ${Qn}`,borderStartEndRadius:In,borderEndEndRadius:In},"&-disabled":{color:Zr,pointerEvents:"none",[rn]:{background:"transparent"},"&::before":{background:ao}},[`&-disabled${ft}-today ${rn}::before`]:{borderColor:Zr}}},ms=Ye=>{const{componentCls:rt,pickerCellCls:ft,pickerCellInnerCls:rn,pickerYearMonthCellWidth:ln,pickerControlIconSize:Bn,cellWidth:In,paddingSM:ni,paddingXS:ai,paddingXXS:xi,colorBgContainer:_i,lineWidth:yi,lineType:zi,borderRadiusLG:mi,colorPrimary:dr,colorTextHeading:Qn,colorSplit:ji,pickerControlIconBorderWidth:hr,colorIcon:no,textHeight:Zr,motionDurationMid:ao,colorIconHover:so,fontWeightStrong:io,cellHeight:qi,pickerCellPaddingVertical:aa,colorTextDisabled:$o,colorText:ma,fontSize:Va,cellHoverWithRangeBg:Wa,motionDurationSlow:ka,withoutTimeCellHeight:vs,pickerQuarterPanelContentHeight:La,colorLink:wa,colorLinkActive:Ta,colorLinkHover:us,cellRangeBorderColor:ys,borderRadiusSM:$a,colorTextLightSolid:Oa,cellHoverBg:Hs,timeColumnHeight:dl,timeColumnWidth:st,timeCellHeight:St,controlItemBgActive:_t,marginXXS:tn,pickerDatePanelPaddingHorizontal:pn}=Ye,un=In*7+pn*2,Wn=(un-ai*2)/3-ln-ni,jn=(un-ai*2)/4-ln;return{[rt]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:_i,border:`${yi}px ${zi} ${ji}`,borderRadius:mi,outline:"none","&-focused":{borderColor:dr},"&-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 ${ai}px`,color:Qn,borderBottom:`${yi}px ${zi} ${ji}`,"> *":{flex:"none"},button:{padding:0,color:no,lineHeight:`${Zr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${ao}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Va,"&:hover":{color:so}},"&-view":{flex:"auto",fontWeight:io,lineHeight:`${Zr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:ai},"&:hover":{color:dr}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:Bn,height:Bn,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:Bn,height:Bn,border:"0 solid currentcolor",borderBlockStartWidth:hr,borderBlockEndWidth:0,borderInlineStartWidth:hr,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(Bn/2),insetInlineStart:Math.ceil(Bn/2),display:"inline-block",width:Bn,height:Bn,border:"0 solid currentcolor",borderBlockStartWidth:hr,borderBlockEndWidth:0,borderInlineStartWidth:hr,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:qi,fontWeight:"normal"},th:{height:qi+aa*2,color:ma,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${aa}px 0`,color:$o,cursor:"pointer","&-in-view":{color:ma}},Os(Ye)),[`&-date-panel ${rt}-cell-in-view${rt}-cell-in-range${rt}-cell-range-hover-start ${rn},
|
|
|
&-date-panel ${rt}-cell-in-view${rt}-cell-in-range${rt}-cell-range-hover-end ${rn}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Wa,transition:`all ${ka}`,content:'""'}},[`&-date-panel
|
|
|
${rt}-cell-in-view${rt}-cell-in-range${rt}-cell-range-hover-start
|
|
|
${rn}::after`]:{insetInlineEnd:-(In-qi)/2,insetInlineStart:0},[`&-date-panel ${rt}-cell-in-view${rt}-cell-in-range${rt}-cell-range-hover-end ${rn}::after`]:{insetInlineEnd:0,insetInlineStart:-(In-qi)/2},[`&-range-hover${rt}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${rt}-content`]:{height:vs*4},[rn]:{padding:`0 ${ai}px`}},"&-quarter-panel":{[`${rt}-content`]:{height:La},[`${rt}-cell-range-hover-start::after`]:{insetInlineStart:jn,borderInlineStart:`${yi}px dashed ${ys}`,[`${rt}-panel-rtl &`]:{insetInlineEnd:jn,borderInlineEnd:`${yi}px dashed ${ys}`}},[`${rt}-cell-range-hover-end::after`]:{insetInlineEnd:jn,borderInlineEnd:`${yi}px dashed ${ys}`,[`${rt}-panel-rtl &`]:{insetInlineStart:jn,borderInlineStart:`${yi}px dashed ${ys}`}}},[`&-panel ${rt}-footer`]:{borderTop:`${yi}px ${zi} ${ji}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Zr-2*yi}px`,textAlign:"center","&-extra":{padding:`0 ${ni}px`,lineHeight:`${Zr-2*yi}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${yi}px ${zi} ${ji}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:wa,"&:hover":{color:us},"&:active":{color:Ta},[`&${rt}-today-btn-disabled`]:{color:$o,cursor:"not-allowed"}},"&-decade-panel":{[rn]:{padding:`0 ${ai/2}px`},[`${rt}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${rt}-body`]:{padding:`0 ${ai}px`},[rn]:{width:ln},[`${rt}-cell-range-hover-start::after`]:{borderStartStartRadius:$a,borderEndStartRadius:$a,borderStartEndRadius:0,borderEndEndRadius:0,[`${rt}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:$a,borderEndEndRadius:$a}},[`${rt}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:$a,borderEndEndRadius:$a,[`${rt}-panel-rtl &`]:{borderStartStartRadius:$a,borderEndStartRadius:$a,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${rt}-cell-range-hover-start::after`]:{insetInlineStart:Wn,borderInlineStart:`${yi}px dashed ${ys}`,[`${rt}-panel-rtl &`]:{insetInlineEnd:Wn,borderInlineEnd:`${yi}px dashed ${ys}`}},[`${rt}-cell-range-hover-end::after`]:{insetInlineEnd:Wn,borderInlineEnd:`${yi}px dashed ${ys}`,[`${rt}-panel-rtl &`]:{insetInlineStart:Wn,borderInlineStart:`${yi}px dashed ${ys}`}}},"&-week-panel":{[`${rt}-body`]:{padding:`${ai}px ${ni}px`},[`${rt}-cell`]:{[`&:hover ${rn},
|
|
|
&-selected ${rn},
|
|
|
${rn}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${ao}`},"&:first-child:before":{borderStartStartRadius:$a,borderEndStartRadius:$a},"&:last-child:before":{borderStartEndRadius:$a,borderEndEndRadius:$a}},"&:hover td":{"&:before":{background:Hs}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${ft}`]:{"&:before":{background:dr},[`&${rt}-cell-week`]:{color:new Vl.C(Oa).setAlpha(.5).toHexString()},[rn]:{color:Oa}}},"&-range-hover td:before":{background:_t}}},"&-date-panel":{[`${rt}-body`]:{padding:`${ai}px ${pn}px`},[`${rt}-content`]:{width:In*7,th:{width:In,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${rt}-time-panel`]:{borderInlineStart:`${yi}px ${zi} ${ji}`},[`${rt}-date-panel,
|
|
|
${rt}-time-panel`]:{transition:`opacity ${ka}`},"&-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:dl},"&-column":{flex:"1 0 auto",width:st,margin:`${xi}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${ao}`,overflowX:"hidden","&::after":{display:"block",height:dl-St,content:'""'},"&:not(:first-child)":{borderInlineStart:`${yi}px ${zi} ${ji}`},"&-active":{background:new Vl.C(_t).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${rt}-time-panel-cell`]:{marginInline:tn,[`${rt}-time-panel-cell-inner`]:{display:"block",width:st-2*tn,height:St,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(st-St)/2,color:ma,lineHeight:`${St}px`,borderRadius:$a,cursor:"pointer",transition:`background ${ao}`,"&:hover":{background:Hs}},"&-selected":{[`${rt}-time-panel-cell-inner`]:{background:_t}},"&-disabled":{[`${rt}-time-panel-cell-inner`]:{color:$o,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${rt}-time-panel-column:after`]:{height:dl-St+xi*2}}}},Es=Ye=>{const{componentCls:rt,colorBgContainer:ft,colorError:rn,errorActiveShadow:ln,colorWarning:Bn,warningActiveShadow:In}=Ye;return{[`${rt}:not(${rt}-disabled)`]:{[`&${rt}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:ft,borderColor:rn},[`&${rt}-focused, &:focus`]:Object.assign({},(0,Bl.M1)((0,Ma.TS)(Ye,{activeBorderColor:rn,activeShadow:ln}))),[`${rt}-active-bar`]:{background:rn}},[`&${rt}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:ft,borderColor:Bn},[`&${rt}-focused, &:focus`]:Object.assign({},(0,Bl.M1)((0,Ma.TS)(Ye,{activeBorderColor:Bn,activeShadow:In}))),[`${rt}-active-bar`]:{background:Bn}}}}},js=Ye=>{const{componentCls:rt,antCls:ft,controlHeight:rn,fontSize:ln,paddingInline:Bn,colorBgContainer:In,lineWidth:ni,lineType:ai,colorBorder:xi,borderRadius:_i,motionDurationMid:yi,colorBgContainerDisabled:zi,colorTextDisabled:mi,colorTextPlaceholder:dr,controlHeightLG:Qn,fontSizeLG:ji,controlHeightSM:hr,paddingInlineSM:no,paddingXS:Zr,marginXS:ao,colorTextDescription:so,lineWidthBold:io,lineHeight:qi,colorPrimary:aa,motionDurationSlow:$o,zIndexPopup:ma,paddingXXS:Va,paddingSM:Wa,textHeight:ka,cellActiveWithRangeBg:vs,colorPrimaryBorder:La,sizePopupArrow:wa,borderRadiusXS:Ta,borderRadiusOuter:us,colorBgElevated:ys,borderRadiusLG:$a,boxShadowSecondary:Oa,borderRadiusSM:Hs,colorSplit:dl,cellHoverBg:st,presetsWidth:St,presetsMaxWidth:_t,boxShadowPopoverArrow:tn,colorTextQuaternary:pn}=Ye;return[{[rt]:Object.assign(Object.assign(Object.assign({},(0,os.Wf)(Ye)),Ts(Ye,rn,ln,Bn)),{position:"relative",display:"inline-flex",alignItems:"center",background:In,lineHeight:1,border:`${ni}px ${ai} ${xi}`,borderRadius:_i,transition:`border ${yi}, box-shadow ${yi}`,"&:hover, &-focused":Object.assign({},(0,Bl.pU)(Ye)),"&-focused":Object.assign({},(0,Bl.M1)(Ye)),[`&${rt}-disabled`]:{background:zi,borderColor:xi,cursor:"not-allowed",[`${rt}-suffix`]:{color:pn}},[`&${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,Bl.ik)(Ye)),{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:dr}}},"&-large":Object.assign(Object.assign({},Ts(Ye,Qn,ji,Bn)),{[`${rt}-input > input`]:{fontSize:ji}}),"&-small":Object.assign({},Ts(Ye,hr,ln,no)),[`${rt}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Zr/2,color:mi,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:ao}}},[`${rt}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:mi,lineHeight:1,background:In,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${yi}, color ${yi}`,"> *":{verticalAlign:"top"},"&:hover":{color:so}},[`${rt}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:ji,color:mi,fontSize:ji,verticalAlign:"top",cursor:"default",[`${rt}-focused &`]:{color:so},[`${rt}-range-separator &`]:{[`${rt}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${rt}-clear`]:{insetInlineEnd:Bn},"&:hover":{[`${rt}-clear`]:{opacity:1}},[`${rt}-active-bar`]:{bottom:-ni,height:io,marginInlineStart:Bn,background:aa,opacity:0,transition:`all ${$o} ease-out`,pointerEvents:"none"},[`&${rt}-focused`]:{[`${rt}-active-bar`]:{opacity:1}},[`${rt}-range-separator`]:{alignItems:"center",padding:`0 ${Zr}px`,lineHeight:1},[`&${rt}-small`]:{[`${rt}-clear`]:{insetInlineEnd:no},[`${rt}-active-bar`]:{marginInlineStart:no}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,os.Wf)(Ye)),ms(Ye)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ma,[`&${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)"}},[`&${ft}-slide-up-enter${ft}-slide-up-enter-active${rt}-dropdown-placement-topLeft,
|
|
|
&${ft}-slide-up-enter${ft}-slide-up-enter-active${rt}-dropdown-placement-topRight,
|
|
|
&${ft}-slide-up-appear${ft}-slide-up-appear-active${rt}-dropdown-placement-topLeft,
|
|
|
&${ft}-slide-up-appear${ft}-slide-up-appear-active${rt}-dropdown-placement-topRight`]:{animationName:$s.Qt},[`&${ft}-slide-up-enter${ft}-slide-up-enter-active${rt}-dropdown-placement-bottomLeft,
|
|
|
&${ft}-slide-up-enter${ft}-slide-up-enter-active${rt}-dropdown-placement-bottomRight,
|
|
|
&${ft}-slide-up-appear${ft}-slide-up-appear-active${rt}-dropdown-placement-bottomLeft,
|
|
|
&${ft}-slide-up-appear${ft}-slide-up-appear-active${rt}-dropdown-placement-bottomRight`]:{animationName:$s.fJ},[`&${ft}-slide-up-leave${ft}-slide-up-leave-active${rt}-dropdown-placement-topLeft,
|
|
|
&${ft}-slide-up-leave${ft}-slide-up-leave-active${rt}-dropdown-placement-topRight`]:{animationName:$s.ly},[`&${ft}-slide-up-leave${ft}-slide-up-leave-active${rt}-dropdown-placement-bottomLeft,
|
|
|
&${ft}-slide-up-leave${ft}-slide-up-leave-active${rt}-dropdown-placement-bottomRight`]:{animationName:$s.Uw},[`${rt}-panel > ${rt}-time-panel`]:{paddingTop:Va},[`${rt}-ranges`]:{marginBottom:0,padding:`${Va}px ${Wa}px`,overflow:"hidden",lineHeight:`${ka-2*ni-Zr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${rt}-preset > ${ft}-tag-blue`]:{color:aa,background:vs,borderColor:La,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:Bn*1.5,transition:`left ${$o} ease-out`},(0,Au.r)(wa,Ta,us,ys,tn)),[`${rt}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:ys,borderRadius:$a,boxShadow:Oa,transition:`margin ${$o}`,[`${rt}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${rt}-presets`]:{display:"flex",flexDirection:"column",minWidth:St,maxWidth:_t,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Zr,borderInlineEnd:`${ni}px ${ai} ${dl}`,li:Object.assign(Object.assign({},os.vS),{borderRadius:Hs,paddingInline:Zr,paddingBlock:(hr-Math.round(ln*qi))/2,cursor:"pointer",transition:`all ${$o}`,"+ li":{marginTop:ao},"&:hover":{background:st}})}},[`${rt}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${rt}-panel`]:{borderWidth:`0 0 ${ni}px`},"&:last-child":{[`${rt}-panel`]:{borderWidth:0}}},[`${rt}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${rt}-content,
|
|
|
table`]:{textAlign:"center"},"&-focused":{borderColor:xi}}}}),"&-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,$s.oN)(Ye,"slide-up"),(0,$s.oN)(Ye,"slide-down"),(0,_o.Fm)(Ye,"move-up"),(0,_o.Fm)(Ye,"move-down")]},Is=Ye=>{const{componentCls:rt,controlHeightLG:ft,paddingXXS:rn,padding:ln}=Ye;return{pickerCellCls:`${rt}-cell`,pickerCellInnerCls:`${rt}-cell-inner`,pickerYearMonthCellWidth:ft*1.5,pickerQuarterPanelContentHeight:ft*1.4,pickerCellPaddingVertical:rn+rn/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:ln+rn/2}},cc=Ye=>({cellHoverBg:Ye.controlItemBgHover,cellActiveWithRangeBg:Ye.controlItemBgActive,cellHoverWithRangeBg:new Vl.C(Ye.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Vl.C(Ye.colorPrimary).lighten(20).toHexString(),cellBgDisabled:Ye.colorBgContainerDisabled,timeColumnWidth:Ye.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:Ye.controlHeightSM*1.5,cellHeight:Ye.controlHeightSM,textHeight:Ye.controlHeightLG,withoutTimeCellHeight:Ye.controlHeightLG*1.65});var au=(0,bl.Z)("DatePicker",Ye=>{const rt=(0,Ma.TS)((0,Bl.e5)(Ye),Is(Ye));return[js(rt),Es(rt),(0,_u.c)(Ye,{focusElCls:`${Ye.componentCls}-focused`})]},Ye=>Object.assign(Object.assign(Object.assign({},(0,Bl.TM)(Ye)),cc(Ye)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:Ye.zIndexPopupBase+50}));function Ls(Ye,rt,ft){return ft!==void 0?ft:rt==="year"&&Ye.lang.yearPlaceholder?Ye.lang.yearPlaceholder:rt==="quarter"&&Ye.lang.quarterPlaceholder?Ye.lang.quarterPlaceholder:rt==="month"&&Ye.lang.monthPlaceholder?Ye.lang.monthPlaceholder:rt==="week"&&Ye.lang.weekPlaceholder?Ye.lang.weekPlaceholder:rt==="time"&&Ye.timePickerLocale.placeholder?Ye.timePickerLocale.placeholder:Ye.lang.placeholder}function ih(Ye,rt,ft){return ft!==void 0?ft:rt==="year"&&Ye.lang.yearPlaceholder?Ye.lang.rangeYearPlaceholder:rt==="quarter"&&Ye.lang.quarterPlaceholder?Ye.lang.rangeQuarterPlaceholder:rt==="month"&&Ye.lang.monthPlaceholder?Ye.lang.rangeMonthPlaceholder:rt==="week"&&Ye.lang.weekPlaceholder?Ye.lang.rangeWeekPlaceholder:rt==="time"&&Ye.timePickerLocale.placeholder?Ye.timePickerLocale.rangePlaceholder:Ye.lang.rangePlaceholder}function md(Ye,rt){const ft={adjustX:1,adjustY:1};switch(rt){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:ft};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:ft};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:ft};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:ft};default:return{points:Ye==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:ft}}}function id(Ye){return Ye?Array.isArray(Ye)?Ye:[Ye]:[]}function Hr(Ye){const{format:rt,picker:ft,showHour:rn,showMinute:ln,showSecond:Bn,use12Hours:In}=Ye,ni=id(rt)[0],ai=Object.assign({},Ye);return rt&&Array.isArray(rt)&&(ai.format=ni),ni&&typeof ni=="string"&&(!ni.includes("s")&&Bn===void 0&&(ai.showSecond=!1),!ni.includes("m")&&ln===void 0&&(ai.showMinute=!1),!ni.includes("H")&&!ni.includes("h")&&!ni.includes("K")&&!ni.includes("k")&&rn===void 0&&(ai.showHour=!1),(ni.includes("a")||ni.includes("A"))&&In===void 0&&(ai.use12Hours=!0)),ft==="time"?ai:(typeof ni=="function"&&delete ai.format,{showTime:ai})}function rd(Ye,rt,ft){if(Ye===!1)return!1;const rn={clearIcon:rt!=null?rt:ft};return typeof Ye=="object"?Object.assign(Object.assign({},rn),Ye):rn}var Ut=he(3113);function hi(Ye){return Pe.createElement(Ut.ZP,Object.assign({size:"small",type:"primary"},Ye))}var rh={button:hi},dc=function(Ye,rt){var ft={};for(var rn in Ye)Object.prototype.hasOwnProperty.call(Ye,rn)&&rt.indexOf(rn)<0&&(ft[rn]=Ye[rn]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ln=0,rn=Object.getOwnPropertySymbols(Ye);ln<rn.length;ln++)rt.indexOf(rn[ln])<0&&Object.prototype.propertyIsEnumerable.call(Ye,rn[ln])&&(ft[rn[ln]]=Ye[rn[ln]]);return ft};function hc(Ye){return(0,Pe.forwardRef)((ft,rn)=>{const{prefixCls:ln,getPopupContainer:Bn,className:In,placement:ni,size:ai,disabled:xi,bordered:_i=!0,placeholder:yi,popupClassName:zi,dropdownClassName:mi,status:dr,clearIcon:Qn,allowClear:ji,rootClassName:hr}=ft,no=dc(ft,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Zr=Pe.useRef(null),{getPrefixCls:ao,direction:so,getPopupContainer:io}=(0,Pe.useContext)(Ms.E_),qi=ao("picker",ln),{compactSize:aa,compactItemClassnames:$o}=(0,Ac.ri)(qi,so),{format:ma,showTime:Va,picker:Wa}=ft,ka=ao(),[vs,La]=au(qi),wa=Object.assign(Object.assign({},Va?Hr(Object.assign({format:ma,picker:Wa},Va)):{}),Wa==="time"?Hr(Object.assign(Object.assign({format:ma},ft),{picker:Wa})):{}),Ta=(0,Yu.Z)(tn=>{var pn;return(pn=ai!=null?ai:aa)!==null&&pn!==void 0?pn:tn}),us=Pe.useContext(zs.Z),ys=xi!=null?xi:us,$a=(0,Pe.useContext)(uc.aM),{hasFeedback:Oa,status:Hs,feedbackIcon:dl}=$a,st=Pe.createElement(Pe.Fragment,null,Wa==="time"?Pe.createElement(kt,null):Pe.createElement(We,null),Oa&&dl);(0,Pe.useImperativeHandle)(rn,()=>({focus:()=>{var tn;return(tn=Zr.current)===null||tn===void 0?void 0:tn.focus()},blur:()=>{var tn;return(tn=Zr.current)===null||tn===void 0?void 0:tn.blur()}}));const[St]=(0,Uu.Z)("Calendar",Xu.Z),_t=Object.assign(Object.assign({},St),ft.locale);return vs(Pe.createElement(xl,Object.assign({separator:Pe.createElement("span",{"aria-label":"to",className:`${qi}-separator`},Pe.createElement(Yt,null)),disabled:ys,ref:Zr,dropdownAlign:md(so,ni),placeholder:ih(_t,Wa,yi),suffixIcon:st,prevIcon:Pe.createElement("span",{className:`${qi}-prev-icon`}),nextIcon:Pe.createElement("span",{className:`${qi}-next-icon`}),superPrevIcon:Pe.createElement("span",{className:`${qi}-super-prev-icon`}),superNextIcon:Pe.createElement("span",{className:`${qi}-super-next-icon`}),transitionName:`${ka}-slide-up`},no,wa,{className:Ct()({[`${qi}-${Ta}`]:Ta,[`${qi}-borderless`]:!_i},(0,Ba.Z)(qi,(0,Ba.F)(Hs,dr),Oa),La,$o,In,hr),locale:_t.lang,prefixCls:qi,getPopupContainer:Bn||io,generateConfig:Ye,components:rh,direction:so,dropdownClassName:Ct()(La,zi||mi,hr),allowClear:rd(ji,Qn,Pe.createElement(Rt.Z,null))})))})}var Fc=function(Ye,rt){var ft={};for(var rn in Ye)Object.prototype.hasOwnProperty.call(Ye,rn)&&rt.indexOf(rn)<0&&(ft[rn]=Ye[rn]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ln=0,rn=Object.getOwnPropertySymbols(Ye);ln<rn.length;ln++)rt.indexOf(rn[ln])<0&&Object.prototype.propertyIsEnumerable.call(Ye,rn[ln])&&(ft[rn[ln]]=Ye[rn[ln]]);return ft};function oh(Ye){function rt(ai,xi){const _i=xi==="TimePicker"?"timePicker":"datePicker",yi=(0,Pe.forwardRef)((zi,mi)=>{const{prefixCls:dr,getPopupContainer:Qn,style:ji,className:hr,rootClassName:no,size:Zr,bordered:ao=!0,placement:so,placeholder:io,popupClassName:qi,dropdownClassName:aa,disabled:$o,status:ma,clearIcon:Va,allowClear:Wa}=zi,ka=Fc(zi,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:vs,direction:La,getPopupContainer:wa,[_i]:Ta}=(0,Pe.useContext)(Ms.E_),us=vs("picker",dr),{compactSize:ys,compactItemClassnames:$a}=(0,Ac.ri)(us,La),Oa=Pe.useRef(null),{format:Hs,showTime:dl}=zi,[st,St]=au(us);(0,Pe.useImperativeHandle)(mi,()=>({focus:()=>{var ki;return(ki=Oa.current)===null||ki===void 0?void 0:ki.focus()},blur:()=>{var ki;return(ki=Oa.current)===null||ki===void 0?void 0:ki.blur()}}));const _t={showToday:!0};let tn={};ai&&(tn.picker=ai);const pn=ai||zi.picker;tn=Object.assign(Object.assign(Object.assign({},tn),dl?Hr(Object.assign({format:Hs,picker:pn},dl)):{}),pn==="time"?Hr(Object.assign(Object.assign({format:Hs},zi),{picker:pn})):{});const un=vs(),Wn=(0,Yu.Z)(ki=>{var Sr;return(Sr=Zr!=null?Zr:ys)!==null&&Sr!==void 0?Sr:ki}),jn=Pe.useContext(zs.Z),zn=$o!=null?$o:jn,fi=(0,Pe.useContext)(uc.aM),{hasFeedback:$n,status:ci,feedbackIcon:Ri}=fi,Oi=Pe.createElement(Pe.Fragment,null,pn==="time"?Pe.createElement(kt,null):Pe.createElement(We,null),$n&&Ri),[Di]=(0,Uu.Z)("DatePicker",Xu.Z),ur=Object.assign(Object.assign({},Di),zi.locale);return st(Pe.createElement(co,Object.assign({ref:Oa,placeholder:Ls(ur,pn,io),suffixIcon:Oi,dropdownAlign:md(La,so),prevIcon:Pe.createElement("span",{className:`${us}-prev-icon`}),nextIcon:Pe.createElement("span",{className:`${us}-next-icon`}),superPrevIcon:Pe.createElement("span",{className:`${us}-super-prev-icon`}),superNextIcon:Pe.createElement("span",{className:`${us}-super-next-icon`}),transitionName:`${un}-slide-up`},_t,ka,tn,{locale:ur.lang,className:Ct()({[`${us}-${Wn}`]:Wn,[`${us}-borderless`]:!ao},(0,Ba.Z)(us,(0,Ba.F)(ci,ma),$n),St,$a,Ta==null?void 0:Ta.className,hr,no),style:Object.assign(Object.assign({},Ta==null?void 0:Ta.style),ji),prefixCls:us,getPopupContainer:Qn||wa,generateConfig:Ye,components:rh,direction:La,disabled:zn,dropdownClassName:Ct()(St,no,qi||aa),allowClear:rd(Wa,Va,Pe.createElement(Rt.Z,null))})))});return xi&&(yi.displayName=xi),yi}const ft=rt(),rn=rt("week","WeekPicker"),ln=rt("month","MonthPicker"),Bn=rt("year","YearPicker"),In=rt("time","TimePicker"),ni=rt("quarter","QuarterPicker");return{DatePicker:ft,WeekPicker:rn,MonthPicker:ln,YearPicker:Bn,TimePicker:In,QuarterPicker:ni}}const Td=null;function Rs(Ye){const{DatePicker:rt,WeekPicker:ft,MonthPicker:rn,YearPicker:ln,TimePicker:Bn,QuarterPicker:In}=oh(Ye),ni=hc(Ye),ai=rt;return ai.WeekPicker=ft,ai.MonthPicker=rn,ai.YearPicker=ln,ai.RangePicker=ni,ai.TimePicker=Bn,ai.QuarterPicker=In,ai}var No=Rs;const gl=No(ve);function Nl(Ye){const rt=md(Ye.direction,Ye.placement);return rt.overflow.adjustY=!1,rt.overflow.adjustX=!1,Object.assign(Object.assign({},Ye),{dropdownAlign:rt})}const ws=(0,xe.Z)(gl,"picker",null,Nl);gl._InternalPanelDoNotUseOrYouWillBeFired=ws;const pa=(0,xe.Z)(gl.RangePicker,"picker",null,Nl);gl._InternalRangePanelDoNotUseOrYouWillBeFired=pa,gl.generatePicker=No;var ol=gl},28103:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Je}});var ge=he(92310),Ie=he.n(ge),Ke=he(59301),ot=he(36355),He=he(17313),it=he(83116),be=he(37613);const yt=Ue=>{const{componentCls:Ee,sizePaddingEdgeHorizontal:ee,colorSplit:te,lineWidth:ue,textPaddingInline:oe,orientationMargin:de,verticalMarginInline:ve}=Ue;return{[Ee]:Object.assign(Object.assign({},(0,He.Wf)(Ue)),{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:`${Ue.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ee}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ue.dividerHorizontalWithTextGutterMargin}px 0`,color:Ue.colorTextHeading,fontWeight:500,fontSize:Ue.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:oe},"&-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:Ue.colorText,fontWeight:"normal",fontSize:Ue.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 ct=(0,it.Z)("Divider",Ue=>{const Ee=(0,be.TS)(Ue,{dividerHorizontalWithTextGutterMargin:Ue.margin,dividerHorizontalGutterMargin:Ue.marginLG,sizePaddingEdgeHorizontal:0});return[yt(Ee)]},Ue=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ue.marginXS})),Xe=function(Ue,Ee){var ee={};for(var te in Ue)Object.prototype.hasOwnProperty.call(Ue,te)&&Ee.indexOf(te)<0&&(ee[te]=Ue[te]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,te=Object.getOwnPropertySymbols(Ue);ue<te.length;ue++)Ee.indexOf(te[ue])<0&&Object.prototype.propertyIsEnumerable.call(Ue,te[ue])&&(ee[te[ue]]=Ue[te[ue]]);return ee},Je=Ue=>{const{getPrefixCls:Ee,direction:ee,divider:te}=Ke.useContext(ot.E_),{prefixCls:ue,type:oe="horizontal",orientation:de="center",orientationMargin:ve,className:xe,rootClassName:Ae,children:Pe,dashed:Ne,plain:Le,style:Re}=Ue,je=Xe(Ue,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ge=Ee("divider",ue),[We,bt]=ct(Ge),Qe=de.length>0?`-${de}`:de,Dt=!!Pe,vt=de==="left"&&ve!=null,kt=de==="right"&&ve!=null,Rt=Ie()(Ge,te==null?void 0:te.className,bt,`${Ge}-${oe}`,{[`${Ge}-with-text`]:Dt,[`${Ge}-with-text${Qe}`]:Dt,[`${Ge}-dashed`]:!!Ne,[`${Ge}-plain`]:!!Le,[`${Ge}-rtl`]:ee==="rtl",[`${Ge}-no-default-orientation-margin-left`]:vt,[`${Ge}-no-default-orientation-margin-right`]:kt},xe,Ae),Jt=Ke.useMemo(()=>typeof ve=="number"?ve:/^\d+$/.test(ve)?Number(ve):ve,[ve]),at=Object.assign(Object.assign({},vt&&{marginLeft:Jt}),kt&&{marginRight:Jt});return We(Ke.createElement("div",Object.assign({className:Rt,style:Object.assign(Object.assign({},te==null?void 0:te.style),Re)},je,{role:"separator"}),Pe&&oe!=="vertical"&&Ke.createElement("span",{className:`${Ge}-inner-text`,style:at},Pe)))}},91857:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(53878),Ke=he(92310),ot=he.n(Ke),He=he(31561),it=he(80764),be=he(35788),yt=he(64002),ct=he(79676),Xe=he(53487),et=he(92343),Je=he(36355),Ue=he(20834),Ee=he(40875),ee=he(88088),te=he(47211);const ue=null,oe=Ae=>{const{menu:Pe,arrow:Ne,prefixCls:Le,children:Re,trigger:je,disabled:Ge,dropdownRender:We,getPopupContainer:bt,overlayClassName:Qe,rootClassName:Dt,open:vt,onOpenChange:kt,visible:Rt,onVisibleChange:Jt,mouseEnterDelay:at=.15,mouseLeaveDelay:Ze=.1,autoAdjustOverflow:Mt=!0,placement:Yt="",overlay:Vt,transitionName:Ct}=Ae,{getPopupContainer:Nt,getPrefixCls:sn,direction:Nn}=ge.useContext(Je.E_),hn=ge.useMemo(()=>{const ye=sn();return Ct!==void 0?Ct:Yt.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[sn,Yt,Ct]),Xn=ge.useMemo(()=>Yt?Yt.includes("Center")?Yt.slice(0,Yt.indexOf("Center")):Yt:Nn==="rtl"?"bottomRight":"bottomLeft",[Yt,Nn]),Ft=sn("dropdown",Le),[Un,Kn]=(0,te.Z)(Ft),[,ti]=(0,ee.Z)(),Fn=ge.Children.only(Re),Zt=(0,et.Tm)(Fn,{className:ot()(`${Ft}-trigger`,{[`${Ft}-rtl`]:Nn==="rtl"},Fn.props.className),disabled:Ge}),Xt=Ge?[]:je;let mt;Xt&&Xt.includes("contextMenu")&&(mt=!0);const[tt,Wt]=(0,be.Z)(!1,{value:vt!=null?vt:Rt}),Lt=(0,it.useEvent)(ye=>{kt==null||kt(ye),Jt==null||Jt(ye),Wt(ye)}),pt=ot()(Qe,Dt,Kn,{[`${Ft}-rtl`]:Nn==="rtl"}),nt=(0,ct.Z)({arrowPointAtCenter:typeof Ne=="object"&&Ne.pointAtCenter,autoAdjustOverflow:Mt,offset:ti.marginXXS,arrowWidth:Ne?ti.sizePopupArrow:0,borderRadius:ti.borderRadius}),Oe=ge.useCallback(()=>{Wt(!1)},[]),we=()=>{let ye;return Pe!=null&&Pe.items?ye=ge.createElement(Ue.default,Object.assign({},Pe)):typeof Vt=="function"?ye=Vt():ye=Vt,We&&(ye=We(ye)),ye=ge.Children.only(typeof ye=="string"?ge.createElement("span",null,ye):ye),ge.createElement(Ee.J,{prefixCls:`${Ft}-menu`,expandIcon:ge.createElement("span",{className:`${Ft}-menu-submenu-arrow`},ge.createElement(Ie.Z,{className:`${Ft}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Oe,validator:ke=>{let{mode:Ve}=ke}},ye)};return Un(ge.createElement(He.Z,Object.assign({alignPoint:mt},(0,yt.Z)(Ae,["rootClassName"]),{mouseEnterDelay:at,mouseLeaveDelay:Ze,visible:tt,builtinPlacements:nt,arrow:!!Ne,overlayClassName:pt,prefixCls:Ft,getPopupContainer:bt||Nt,transitionName:hn,trigger:Xt,overlay:we,placement:Xn,onVisibleChange:Lt}),Zt))};function de(Ae){return Object.assign(Object.assign({},Ae),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ve=(0,Xe.Z)(oe,"dropdown",Ae=>Ae,de),xe=Ae=>ge.createElement(ve,Object.assign({},Ae),ge.createElement("span",null));oe._InternalPanelDoNotUseOrYouWillBeFired=xe,jt.Z=oe},38854:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ee}});var ge=he(91857),Ie=he(92310),Ke=he.n(Ie),ot=he(59301),He=he(19362),it=he(3113),be=he(36355),yt=he(81327),ct=he(33234),Xe=he(47211),et=function(te,ue){var oe={};for(var de in te)Object.prototype.hasOwnProperty.call(te,de)&&ue.indexOf(de)<0&&(oe[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])&&(oe[de[ve]]=te[de[ve]]);return oe};const Je=te=>{const{getPopupContainer:ue,getPrefixCls:oe,direction:de}=ot.useContext(be.E_),{prefixCls:ve,type:xe="default",danger:Ae,disabled:Pe,loading:Ne,onClick:Le,htmlType:Re,children:je,className:Ge,menu:We,arrow:bt,autoFocus:Qe,overlay:Dt,trigger:vt,align:kt,open:Rt,onOpenChange:Jt,placement:at,getPopupContainer:Ze,href:Mt,icon:Yt=ot.createElement(He.Z,null),title:Vt,buttonsRender:Ct=we=>we,mouseEnterDelay:Nt,mouseLeaveDelay:sn,overlayClassName:Nn,overlayStyle:hn,destroyPopupOnHide:Xn,dropdownRender:Ft}=te,Un=et(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"]),Kn=oe("dropdown",ve),ti=`${Kn}-button`,[Fn,Zt]=(0,Xe.Z)(Kn),Xt={menu:We,arrow:bt,autoFocus:Qe,align:kt,disabled:Pe,trigger:Pe?[]:vt,onOpenChange:Jt,getPopupContainer:Ze||ue,mouseEnterDelay:Nt,mouseLeaveDelay:sn,overlayClassName:Nn,overlayStyle:hn,destroyPopupOnHide:Xn,dropdownRender:Ft},{compactSize:mt,compactItemClassnames:tt}=(0,ct.ri)(Kn,de),Wt=Ke()(ti,tt,Ge,Zt);"overlay"in te&&(Xt.overlay=Dt),"open"in te&&(Xt.open=Rt),"placement"in te?Xt.placement=at:Xt.placement=de==="rtl"?"bottomLeft":"bottomRight";const Lt=ot.createElement(it.ZP,{type:xe,danger:Ae,disabled:Pe,loading:Ne,onClick:Le,htmlType:Re,href:Mt,title:Vt},je),pt=ot.createElement(it.ZP,{type:xe,danger:Ae,icon:Yt}),[nt,Oe]=Ct([Lt,pt]);return Fn(ot.createElement(yt.Z.Compact,Object.assign({className:Wt,size:mt,block:!0},Un),nt,ot.createElement(ge.Z,Object.assign({},Xt),Oe)))};Je.__ANT_BUTTON=!0;var Ue=Je;const Ee=ge.Z;Ee.Button=Ue;var ee=Ee},47211:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return et}});var ge=he(17313),Ie=he(13826),Ke=he(92899),ot=he(29878),He=he(19447),it=he(83116),be=he(37613),ct=Je=>{const{componentCls:Ue,menuCls:Ee,colorError:ee,colorTextLightSolid:te}=Je,ue=`${Ee}-item`;return{[`${Ue}, ${Ue}-menu-submenu`]:{[`${Ee} ${ue}`]:{[`&${ue}-danger:not(${ue}-disabled)`]:{color:ee,"&:hover":{color:te,backgroundColor:ee}}}}}};const Xe=Je=>{const{componentCls:Ue,menuCls:Ee,zIndexPopup:ee,dropdownArrowDistance:te,sizePopupArrow:ue,antCls:oe,iconCls:de,motionDurationMid:ve,dropdownPaddingVertical:xe,fontSize:Ae,dropdownEdgeChildPadding:Pe,colorTextDisabled:Ne,fontSizeIcon:Le,controlPaddingHorizontal:Re,colorBgElevated:je}=Je;return[{[Ue]:Object.assign(Object.assign({},(0,ge.Wf)(Je)),{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${oe}-btn`]:{[`& > ${de}-down, & > ${oe}-btn-icon > ${de}-down`]:{fontSize:Le}},[`${Ue}-wrap`]:{position:"relative",[`${oe}-btn > ${de}-down`]:{fontSize:Le},[`${de}-down::before`]:{transition:`transform ${ve}`}},[`${Ue}-wrap-open`]:{[`${de}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${oe}-slide-down-enter${oe}-slide-down-enter-active${Ue}-placement-bottomLeft,
|
|
|
&${oe}-slide-down-appear${oe}-slide-down-appear-active${Ue}-placement-bottomLeft,
|
|
|
&${oe}-slide-down-enter${oe}-slide-down-enter-active${Ue}-placement-bottom,
|
|
|
&${oe}-slide-down-appear${oe}-slide-down-appear-active${Ue}-placement-bottom,
|
|
|
&${oe}-slide-down-enter${oe}-slide-down-enter-active${Ue}-placement-bottomRight,
|
|
|
&${oe}-slide-down-appear${oe}-slide-down-appear-active${Ue}-placement-bottomRight`]:{animationName:Ie.fJ},[`&${oe}-slide-up-enter${oe}-slide-up-enter-active${Ue}-placement-topLeft,
|
|
|
&${oe}-slide-up-appear${oe}-slide-up-appear-active${Ue}-placement-topLeft,
|
|
|
&${oe}-slide-up-enter${oe}-slide-up-enter-active${Ue}-placement-top,
|
|
|
&${oe}-slide-up-appear${oe}-slide-up-appear-active${Ue}-placement-top,
|
|
|
&${oe}-slide-up-enter${oe}-slide-up-enter-active${Ue}-placement-topRight,
|
|
|
&${oe}-slide-up-appear${oe}-slide-up-appear-active${Ue}-placement-topRight`]:{animationName:Ie.Qt},[`&${oe}-slide-down-leave${oe}-slide-down-leave-active${Ue}-placement-bottomLeft,
|
|
|
&${oe}-slide-down-leave${oe}-slide-down-leave-active${Ue}-placement-bottom,
|
|
|
&${oe}-slide-down-leave${oe}-slide-down-leave-active${Ue}-placement-bottomRight`]:{animationName:Ie.Uw},[`&${oe}-slide-up-leave${oe}-slide-up-leave-active${Ue}-placement-topLeft,
|
|
|
&${oe}-slide-up-leave${oe}-slide-up-leave-active${Ue}-placement-top,
|
|
|
&${oe}-slide-up-leave${oe}-slide-up-leave-active${Ue}-placement-topRight`]:{animationName:Ie.ly}})},(0,He.ZP)(Je,{colorBg:je,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ue} ${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}},[`${Ue}, ${Ue}-menu-submenu`]:{[Ee]:Object.assign(Object.assign({padding:Pe,listStyleType:"none",backgroundColor:je,backgroundClip:"padding-box",borderRadius:Je.borderRadiusLG,outline:"none",boxShadow:Je.boxShadowSecondary},(0,ge.Qy)(Je)),{[`${Ee}-item-group-title`]:{padding:`${xe}px ${Re}px`,color:Je.colorTextDescription,transition:`all ${ve}`},[`${Ee}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ee}-item-icon`]:{minWidth:Ae,marginInlineEnd:Je.marginXS,fontSize:Je.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:`${xe}px ${Re}px`,color:Je.colorText,fontWeight:"normal",fontSize:Ae,lineHeight:Je.lineHeight,cursor:"pointer",transition:`all ${ve}`,borderRadius:Je.borderRadiusSM,"&:hover, &-active":{backgroundColor:Je.controlItemBgHover}},(0,ge.Qy)(Je)),{"&-selected":{color:Je.colorPrimary,backgroundColor:Je.controlItemBgActive,"&:hover, &-active":{backgroundColor:Je.controlItemBgActiveHover}},"&-disabled":{color:Ne,cursor:"not-allowed","&:hover":{color:Ne,backgroundColor:je,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Je.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Je.colorSplit},[`${Ue}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Je.paddingXS,[`${Ue}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Je.colorTextDescription,fontSize:Le,fontStyle:"normal"}}}),[`${Ee}-item-group-list`]:{margin:`0 ${Je.marginXS}px`,padding:0,listStyle:"none"},[`${Ee}-submenu-title`]:{paddingInlineEnd:Re+Je.fontSizeSM},[`${Ee}-submenu-vertical`]:{position:"relative"},[`${Ee}-submenu${Ee}-submenu-disabled ${Ue}-menu-submenu-title`]:{[`&, ${Ue}-menu-submenu-arrow-icon`]:{color:Ne,backgroundColor:je,cursor:"not-allowed"}},[`${Ee}-submenu-selected ${Ue}-menu-submenu-title`]:{color:Je.colorPrimary}})}},[(0,Ie.oN)(Je,"slide-up"),(0,Ie.oN)(Je,"slide-down"),(0,Ke.Fm)(Je,"move-up"),(0,Ke.Fm)(Je,"move-down"),(0,ot._y)(Je,"zoom-big")]]};var et=(0,it.Z)("Dropdown",(Je,Ue)=>{let{rootPrefixCls:Ee}=Ue;const{marginXXS:ee,sizePopupArrow:te,controlHeight:ue,fontSize:oe,lineHeight:de,paddingXXS:ve,componentCls:xe,borderRadiusLG:Ae}=Je,Pe=(ue-oe*de)/2,{dropdownArrowOffset:Ne}=(0,He.fS)({contentRadius:Ae}),Le=(0,be.TS)(Je,{menuCls:`${xe}-menu`,rootPrefixCls:Ee,dropdownArrowDistance:te/2+ee,dropdownArrowOffset:Ne,dropdownPaddingVertical:Pe,dropdownEdgeChildPadding:ve});return[Xe(Le),ct(Le)]},Je=>({zIndexPopup:Je.zIndexPopupBase+50}))},64165:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ve}});var ge=he(92310),Ie=he.n(ge),Ke=he(59301),ot=he(36355),He=he(9763),it=he(64993),be=he(88088),ct=()=>{const[,xe]=(0,be.Z)(),Pe=new it.C(xe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Ke.createElement("svg",{style:Pe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ke.createElement("g",{fill:"none",fillRule:"evenodd"},Ke.createElement("g",{transform:"translate(24 31.67)"},Ke.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Ke.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"}),Ke.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)"}),Ke.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"}),Ke.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"})),Ke.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"}),Ke.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Ke.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Ke.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},et=()=>{const[,xe]=(0,be.Z)(),{colorFill:Ae,colorFillTertiary:Pe,colorFillQuaternary:Ne,colorBgContainer:Le}=xe,{borderColor:Re,shadowColor:je,contentColor:Ge}=(0,Ke.useMemo)(()=>({borderColor:new it.C(Ae).onBackground(Le).toHexShortString(),shadowColor:new it.C(Pe).onBackground(Le).toHexShortString(),contentColor:new it.C(Ne).onBackground(Le).toHexShortString()}),[Ae,Pe,Ne,Le]);return Ke.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ke.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ke.createElement("ellipse",{fill:je,cx:"32",cy:"33",rx:"32",ry:"7"}),Ke.createElement("g",{fillRule:"nonzero",stroke:Re},Ke.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"}),Ke.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:Ge}))))},Je=he(83116),Ue=he(37613);const Ee=xe=>{const{componentCls:Ae,margin:Pe,marginXS:Ne,marginXL:Le,fontSize:Re,lineHeight:je}=xe;return{[Ae]:{marginInline:Ne,fontSize:Re,lineHeight:je,textAlign:"center",[`${Ae}-image`]:{height:xe.emptyImgHeight,marginBottom:Ne,opacity:xe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ae}-description`]:{color:xe.colorText},[`${Ae}-footer`]:{marginTop:Pe},"&-normal":{marginBlock:Le,color:xe.colorTextDisabled,[`${Ae}-description`]:{color:xe.colorTextDisabled},[`${Ae}-image`]:{height:xe.emptyImgHeightMD}},"&-small":{marginBlock:Ne,color:xe.colorTextDisabled,[`${Ae}-image`]:{height:xe.emptyImgHeightSM}}}}};var ee=(0,Je.Z)("Empty",xe=>{const{componentCls:Ae,controlHeightLG:Pe}=xe,Ne=(0,Ue.TS)(xe,{emptyImgCls:`${Ae}-img`,emptyImgHeight:Pe*2.5,emptyImgHeightMD:Pe,emptyImgHeightSM:Pe*.875});return[Ee(Ne)]}),te=function(xe,Ae){var Pe={};for(var Ne in xe)Object.prototype.hasOwnProperty.call(xe,Ne)&&Ae.indexOf(Ne)<0&&(Pe[Ne]=xe[Ne]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Ne=Object.getOwnPropertySymbols(xe);Le<Ne.length;Le++)Ae.indexOf(Ne[Le])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ne[Le])&&(Pe[Ne[Le]]=xe[Ne[Le]]);return Pe};const ue=Ke.createElement(ct,null),oe=Ke.createElement(et,null),de=xe=>{var{className:Ae,rootClassName:Pe,prefixCls:Ne,image:Le=ue,description:Re,children:je,imageStyle:Ge,style:We}=xe,bt=te(xe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Qe,direction:Dt,empty:vt}=Ke.useContext(ot.E_),kt=Qe("empty",Ne),[Rt,Jt]=ee(kt),[at]=(0,He.Z)("Empty"),Ze=typeof Re!="undefined"?Re:at==null?void 0:at.description,Mt=typeof Ze=="string"?Ze:"empty";let Yt=null;return typeof Le=="string"?Yt=Ke.createElement("img",{alt:Mt,src:Le}):Yt=Le,Rt(Ke.createElement("div",Object.assign({className:Ie()(Jt,kt,vt==null?void 0:vt.className,{[`${kt}-normal`]:Le===oe,[`${kt}-rtl`]:Dt==="rtl"},Ae,Pe),style:Object.assign(Object.assign({},vt==null?void 0:vt.style),We)},bt),Ke.createElement("div",{className:`${kt}-image`,style:Ge},Yt),Ze&&Ke.createElement("div",{className:`${kt}-description`},Ze),je&&Ke.createElement("div",{className:`${kt}-footer`},je)))};de.PRESENTED_IMAGE_DEFAULT=ue,de.PRESENTED_IMAGE_SIMPLE=oe;var ve=de},78241:function(fn,jt,he){"use strict";he.d(jt,{default:function(){return Kt}});var ge=he(26390),Ie=he(92310),Ke=he.n(Ie),ot=he(43469),He=he(59301),it=he(62892),be=he(32441);function yt(Pt){const[Sn,bn]=He.useState(Pt);return He.useEffect(()=>{const zt=setTimeout(()=>{bn(Pt)},Pt.length?0:10);return()=>{clearTimeout(zt)}},[Pt]),Sn}var ct=he(17313),Xe=he(29878),et=he(8378),Je=he(37613),Ue=he(83116),ee=Pt=>{const{componentCls:Sn}=Pt,bn=`${Sn}-show-help`,zt=`${Sn}-show-help-item`;return{[bn]:{transition:`opacity ${Pt.motionDurationSlow} ${Pt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[zt]:{overflow:"hidden",transition:`height ${Pt.motionDurationSlow} ${Pt.motionEaseInOut},
|
|
|
opacity ${Pt.motionDurationSlow} ${Pt.motionEaseInOut},
|
|
|
transform ${Pt.motionDurationSlow} ${Pt.motionEaseInOut} !important`,[`&${zt}-appear, &${zt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${zt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const te=Pt=>({legend:{display:"block",width:"100%",marginBottom:Pt.marginLG,padding:0,color:Pt.colorTextDescription,fontSize:Pt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Pt.lineWidth}px ${Pt.lineType} ${Pt.colorBorder}`},label:{fontSize:Pt.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 ${Pt.controlOutlineWidth}px ${Pt.controlOutline}`},output:{display:"block",paddingTop:15,color:Pt.colorText,fontSize:Pt.fontSize,lineHeight:Pt.lineHeight}}),ue=(Pt,Sn)=>{const{formItemCls:bn}=Pt;return{[bn]:{[`${bn}-label > label`]:{height:Sn},[`${bn}-control-input`]:{minHeight:Sn}}}},oe=Pt=>{const{componentCls:Sn}=Pt;return{[Pt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(Pt)),te(Pt)),{[`${Sn}-text`]:{display:"inline-block",paddingInlineEnd:Pt.paddingSM},"&-small":Object.assign({},ue(Pt,Pt.controlHeightSM)),"&-large":Object.assign({},ue(Pt,Pt.controlHeightLG))})}},de=Pt=>{const{formItemCls:Sn,iconCls:bn,componentCls:zt,rootPrefixCls:gt,labelRequiredMarkColor:xn,labelColor:Ln,labelFontSize:pi,labelHeight:Mn,labelColonMarginInlineStart:It,labelColonMarginInlineEnd:gn,itemMarginBottom:nn}=Pt;return{[Sn]:Object.assign(Object.assign({},(0,ct.Wf)(Pt)),{marginBottom:nn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${gt}-row`]:{display:"none"},"&-has-warning":{[`${Sn}-split`]:{color:Pt.colorError}},"&-has-error":{[`${Sn}-split`]:{color:Pt.colorWarning}},[`${Sn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Pt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Mn,color:Ln,fontSize:pi,[`> ${bn}`]:{fontSize:Pt.fontSize,verticalAlign:"top"},[`&${Sn}-required:not(${Sn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Pt.marginXXS,color:xn,fontSize:Pt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${zt}-hide-required-mark &`]:{display:"none"}},[`${Sn}-optional`]:{display:"inline-block",marginInlineStart:Pt.marginXXS,color:Pt.colorTextDescription,[`${zt}-hide-required-mark &`]:{display:"none"}},[`${Sn}-tooltip`]:{color:Pt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Pt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:It,marginInlineEnd:gn},[`&${Sn}-no-colon::after`]:{content:'"\\a0"'}}},[`${Sn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${gt}-col-'"]):not([class*="' ${gt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Pt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Sn]:{"&-explain, &-extra":{clear:"both",color:Pt.colorTextDescription,fontSize:Pt.fontSize,lineHeight:Pt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Pt.controlHeightSM,transition:`color ${Pt.motionDurationMid} ${Pt.motionEaseOut}`},"&-explain":{"&-error":{color:Pt.colorError},"&-warning":{color:Pt.colorWarning}}},[`&-with-help ${Sn}-explain`]:{height:"auto",opacity:1},[`${Sn}-feedback-icon`]:{fontSize:Pt.fontSize,textAlign:"center",visibility:"visible",animationName:Xe.kr,animationDuration:Pt.motionDurationMid,animationTimingFunction:Pt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Pt.colorSuccess},"&-error":{color:Pt.colorError},"&-warning":{color:Pt.colorWarning},"&-validating":{color:Pt.colorPrimary}}})}},ve=Pt=>{const{componentCls:Sn,formItemCls:bn}=Pt;return{[`${Sn}-horizontal`]:{[`${bn}-label`]:{flexGrow:0},[`${bn}-control`]:{flex:"1 1 0",minWidth:0},[`${bn}-label[class$='-24'], ${bn}-label[class*='-24 ']`]:{[`& + ${bn}-control`]:{minWidth:"unset"}}}}},xe=Pt=>{const{componentCls:Sn,formItemCls:bn}=Pt;return{[`${Sn}-inline`]:{display:"flex",flexWrap:"wrap",[bn]:{flex:"none",marginInlineEnd:Pt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${bn}-label,
|
|
|
> ${bn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${bn}-label`]:{flex:"none"},[`${Sn}-text`]:{display:"inline-block"},[`${bn}-has-feedback`]:{display:"inline-block"}}}}},Ae=Pt=>({padding:Pt.verticalLabelPadding,margin:Pt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pe=Pt=>{const{componentCls:Sn,formItemCls:bn,rootPrefixCls:zt}=Pt;return{[`${bn} ${bn}-label`]:Ae(Pt),[Sn]:{[bn]:{flexWrap:"wrap",[`${bn}-label, ${bn}-control`]:{[`&:not([class*=" ${zt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ne=Pt=>{const{componentCls:Sn,formItemCls:bn,rootPrefixCls:zt}=Pt;return{[`${Sn}-vertical`]:{[bn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Sn}-item-control`]:{width:"100%"}}},[`${Sn}-vertical ${bn}-label,
|
|
|
.${zt}-col-24${bn}-label,
|
|
|
.${zt}-col-xl-24${bn}-label`]:Ae(Pt),[`@media (max-width: ${Pt.screenXSMax}px)`]:[Pe(Pt),{[Sn]:{[`.${zt}-col-xs-24${bn}-label`]:Ae(Pt)}}],[`@media (max-width: ${Pt.screenSMMax}px)`]:{[Sn]:{[`.${zt}-col-sm-24${bn}-label`]:Ae(Pt)}},[`@media (max-width: ${Pt.screenMDMax}px)`]:{[Sn]:{[`.${zt}-col-md-24${bn}-label`]:Ae(Pt)}},[`@media (max-width: ${Pt.screenLGMax}px)`]:{[Sn]:{[`.${zt}-col-lg-24${bn}-label`]:Ae(Pt)}}}},Le=(Pt,Sn)=>(0,Je.TS)(Pt,{formItemCls:`${Pt.componentCls}-item`,rootPrefixCls:Sn});var Re=(0,Ue.Z)("Form",(Pt,Sn)=>{let{rootPrefixCls:bn}=Sn;const zt=Le(Pt,bn);return[oe(zt),de(zt),ee(zt),ve(zt),xe(zt),Ne(zt),(0,et.Z)(zt),Xe.kr]},Pt=>({labelRequiredMarkColor:Pt.colorError,labelColor:Pt.colorTextHeading,labelFontSize:Pt.fontSize,labelHeight:Pt.controlHeight,labelColonMarginInlineStart:Pt.marginXXS/2,labelColonMarginInlineEnd:Pt.marginXS,itemMarginBottom:Pt.marginLG,verticalLabelPadding:`0 0 ${Pt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const je=[];function Ge(Pt,Sn,bn){let zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Pt=="string"?Pt:`${Sn}-${zt}`,error:Pt,errorStatus:bn}}var bt=Pt=>{let{help:Sn,helpStatus:bn,errors:zt=je,warnings:gt=je,className:xn,fieldId:Ln,onVisibleChanged:pi}=Pt;const{prefixCls:Mn}=He.useContext(be.Rk),It=`${Mn}-item-explain`,[,gn]=Re(Mn),nn=(0,He.useMemo)(()=>(0,it.Z)(Mn),[Mn]),ui=yt(zt),Qt=yt(gt),Cn=He.useMemo(()=>Sn!=null?[Ge(Sn,"help",bn)]:[].concat((0,ge.Z)(ui.map((vn,En)=>Ge(vn,"error","error",En))),(0,ge.Z)(Qt.map((vn,En)=>Ge(vn,"warning","warning",En)))),[Sn,bn,ui,Qt]),$t={};return Ln&&($t.id=`${Ln}_help`),He.createElement(ot.default,{motionDeadline:nn.motionDeadline,motionName:`${Mn}-show-help`,visible:!!Cn.length,onVisibleChanged:pi},vn=>{const{className:En,style:Pn}=vn;return He.createElement("div",Object.assign({},$t,{className:Ke()(It,En,xn,gn),style:Pn,role:"alert"}),He.createElement(ot.CSSMotionList,Object.assign({keys:Cn},(0,it.Z)(Mn),{motionName:`${Mn}-show-help-item`,component:!1}),Rn=>{const{key:Yn,error:Zn,errorStatus:ri,className:Gn,style:di}=Rn;return He.createElement("div",{key:Yn,className:Ke()(Gn,{[`${It}-${ri}`]:ri}),style:di},Zn)}))})},Qe=he(95013),Dt=he(36355),vt=he(1684),kt=he(52946),Rt=he(19716),Jt=he(16722);const at=["parentNode"],Ze="form_item";function Mt(Pt){return Pt===void 0||Pt===!1?[]:Array.isArray(Pt)?Pt:[Pt]}function Yt(Pt,Sn){if(!Pt.length)return;const bn=Pt.join("_");return Sn?`${Sn}_${bn}`:at.includes(bn)?`${Ze}_${bn}`:bn}function Vt(Pt,Sn,bn,zt,gt,xn){let Ln=zt;return xn!==void 0?Ln=xn:bn.validating?Ln="validating":Pt.length?Ln="error":Sn.length?Ln="warning":(bn.touched||gt&&bn.validated)&&(Ln="success"),Ln}function Ct(Pt){return Mt(Pt).join("_")}function Nt(Pt){const[Sn]=(0,Qe.useForm)(),bn=He.useRef({}),zt=He.useMemo(()=>Pt!=null?Pt:Object.assign(Object.assign({},Sn),{__INTERNAL__:{itemRef:gt=>xn=>{const Ln=Ct(gt);xn?bn.current[Ln]=xn:delete bn.current[Ln]}},scrollToField:function(gt){let xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Ln=Mt(gt),pi=Yt(Ln,zt.__INTERNAL__.name),Mn=pi?document.getElementById(pi):null;Mn&&(0,Jt.Z)(Mn,Object.assign({scrollMode:"if-needed",block:"nearest"},xn))},getFieldInstance:gt=>{const xn=Ct(gt);return bn.current[xn]}}),[Pt,Sn]);return[zt]}var sn=he(28726),Nn=function(Pt,Sn){var bn={};for(var zt in Pt)Object.prototype.hasOwnProperty.call(Pt,zt)&&Sn.indexOf(zt)<0&&(bn[zt]=Pt[zt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,zt=Object.getOwnPropertySymbols(Pt);gt<zt.length;gt++)Sn.indexOf(zt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,zt[gt])&&(bn[zt[gt]]=Pt[zt[gt]]);return bn};const hn=(Pt,Sn)=>{const bn=He.useContext(vt.Z),{getPrefixCls:zt,direction:gt,form:xn}=He.useContext(Dt.E_),{prefixCls:Ln,className:pi,rootClassName:Mn,size:It,disabled:gn=bn,form:nn,colon:ui,labelAlign:Qt,labelWrap:Cn,labelCol:$t,wrapperCol:vn,hideRequiredMark:En,layout:Pn="horizontal",scrollToFirstError:Rn,requiredMark:Yn,onFinishFailed:Zn,name:ri,style:Gn,feedbackIcons:di}=Pt,rr=Nn(Pt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Dr=(0,Rt.Z)(It),ar=He.useContext(sn.Z),qt=(0,He.useMemo)(()=>Yn!==void 0?Yn:xn&&xn.requiredMark!==void 0?xn.requiredMark:!En,[En,Yn,xn]),Li=ui!=null?ui:xn==null?void 0:xn.colon,Ji=zt("form",Ln),[Ti,bi]=Re(Ji),sr=Ke()(Ji,`${Ji}-${Pn}`,{[`${Ji}-hide-required-mark`]:qt===!1,[`${Ji}-rtl`]:gt==="rtl",[`${Ji}-${Dr}`]:Dr},bi,xn==null?void 0:xn.className,pi,Mn),[Nr]=Nt(nn),{__INTERNAL__:cr}=Nr;cr.name=ri;const Zi=(0,He.useMemo)(()=>({name:ri,labelAlign:Qt,labelCol:$t,labelWrap:Cn,wrapperCol:vn,vertical:Pn==="vertical",colon:Li,requiredMark:qt,itemRef:cr.itemRef,form:Nr,feedbackIcons:di}),[ri,Qt,$t,vn,Pn,Li,qt,Nr,di]);He.useImperativeHandle(Sn,()=>Nr);const Jr=(Ho,Dn)=>{if(Ho){let Rr={block:"nearest"};typeof Ho=="object"&&(Rr=Ho),Nr.scrollToField(Dn,Rr)}},On=Ho=>{if(Zn==null||Zn(Ho),Ho.errorFields.length){const Dn=Ho.errorFields[0].name;if(Rn!==void 0){Jr(Rn,Dn);return}xn&&xn.scrollToFirstError!==void 0&&Jr(xn.scrollToFirstError,Dn)}};return Ti(He.createElement(vt.n,{disabled:gn},He.createElement(kt.q,{size:Dr},He.createElement(be.RV,Object.assign({},{validateMessages:ar}),He.createElement(be.q3.Provider,{value:Zi},He.createElement(Qe.default,Object.assign({id:ri},rr,{name:ri,onFinishFailed:On,form:Nr,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),Gn),className:sr})))))))};var Ft=He.forwardRef(hn),Un=he(12383),Kn=he(20475),ti=he(92343),Fn=he(38298);function Zt(Pt){if(typeof Pt=="function")return Pt;const Sn=(0,Fn.Z)(Pt);return Sn.length<=1?Sn[0]:Sn}const Xt=()=>{const{status:Pt,errors:Sn=[],warnings:bn=[]}=(0,He.useContext)(be.aM);return{status:Pt,errors:Sn,warnings:bn}};Xt.Context=be.aM;var mt=Xt,tt=he(23073);function Wt(Pt){const[Sn,bn]=He.useState(Pt),zt=(0,He.useRef)(null),gt=(0,He.useRef)([]),xn=(0,He.useRef)(!1);He.useEffect(()=>(xn.current=!1,()=>{xn.current=!0,tt.Z.cancel(zt.current),zt.current=null}),[]);function Ln(pi){xn.current||(zt.current===null&&(gt.current=[],zt.current=(0,tt.Z)(()=>{zt.current=null,bn(Mn=>{let It=Mn;return gt.current.forEach(gn=>{It=gn(It)}),It})})),gt.current.push(pi))}return[Sn,Ln]}function Lt(){const{itemRef:Pt}=He.useContext(be.q3),Sn=He.useRef({});function bn(zt,gt){const xn=gt&&typeof gt=="object"&>.ref,Ln=zt.join("_");return(Sn.current.name!==Ln||Sn.current.originRef!==xn)&&(Sn.current.name=Ln,Sn.current.originRef=xn,Sn.current.ref=(0,Kn.sQ)(Pt(zt),xn)),Sn.current.ref}return bn}var pt=he(48886),nt=he(28800),Oe=he(64002),we=he(27382),ye=he(37028);const ke=Pt=>{const{formItemCls:Sn}=Pt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Sn}-control`]:{display:"flex"}}}};var Ve=(0,Ue.b)(["Form","item-item"],(Pt,Sn)=>{let{rootPrefixCls:bn}=Sn;const zt=Le(Pt,bn);return[ke(zt)]}),dt=Pt=>{const{prefixCls:Sn,status:bn,wrapperCol:zt,children:gt,errors:xn,warnings:Ln,_internalItemRender:pi,extra:Mn,help:It,fieldId:gn,marginBottom:nn,onErrorVisibleChanged:ui}=Pt,Qt=`${Sn}-item`,Cn=He.useContext(be.q3),$t=zt||Cn.wrapperCol||{},vn=Ke()(`${Qt}-control`,$t.className),En=He.useMemo(()=>Object.assign({},Cn),[Cn]);delete En.labelCol,delete En.wrapperCol;const Pn=He.createElement("div",{className:`${Qt}-control-input`},He.createElement("div",{className:`${Qt}-control-input-content`},gt)),Rn=He.useMemo(()=>({prefixCls:Sn,status:bn}),[Sn,bn]),Yn=nn!==null||xn.length||Ln.length?He.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},He.createElement(be.Rk.Provider,{value:Rn},He.createElement(bt,{fieldId:gn,errors:xn,warnings:Ln,help:It,helpStatus:bn,className:`${Qt}-explain-connected`,onVisibleChanged:ui})),!!nn&&He.createElement("div",{style:{width:0,height:nn}})):null,Zn={};gn&&(Zn.id=`${gn}_extra`);const ri=Mn?He.createElement("div",Object.assign({},Zn,{className:`${Qt}-extra`}),Mn):null,Gn=pi&&pi.mark==="pro_table_render"&&pi.render?pi.render(Pt,{input:Pn,errorList:Yn,extra:ri}):He.createElement(He.Fragment,null,Pn,Yn,ri);return He.createElement(be.q3.Provider,{value:En},He.createElement(ye.Z,Object.assign({},$t,{className:vn}),Gn),He.createElement(Ve,{prefixCls:Sn}))},on=he(86902),mn=he(31724),Et=he(9763),Ot=he(6848),yn=function(Pt,Sn){var bn={};for(var zt in Pt)Object.prototype.hasOwnProperty.call(Pt,zt)&&Sn.indexOf(zt)<0&&(bn[zt]=Pt[zt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,zt=Object.getOwnPropertySymbols(Pt);gt<zt.length;gt++)Sn.indexOf(zt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,zt[gt])&&(bn[zt[gt]]=Pt[zt[gt]]);return bn};function Tn(Pt){return Pt?typeof Pt=="object"&&!He.isValidElement(Pt)?Pt:{title:Pt}:null}var vi=Pt=>{let{prefixCls:Sn,label:bn,htmlFor:zt,labelCol:gt,labelAlign:xn,colon:Ln,required:pi,requiredMark:Mn,tooltip:It}=Pt;var gn;const[nn]=(0,Et.Z)("Form"),{vertical:ui,labelAlign:Qt,labelCol:Cn,labelWrap:$t,colon:vn}=He.useContext(be.q3);if(!bn)return null;const En=gt||Cn||{},Pn=xn||Qt,Rn=`${Sn}-item-label`,Yn=Ke()(Rn,Pn==="left"&&`${Rn}-left`,En.className,{[`${Rn}-wrap`]:!!$t});let Zn=bn;const ri=Ln===!0||vn!==!1&&Ln!==!1;ri&&!ui&&typeof bn=="string"&&bn.trim()!==""&&(Zn=bn.replace(/[:|:]\s*$/,""));const di=Tn(It);if(di){const{icon:qt=He.createElement(on.Z,null)}=di,Li=yn(di,["icon"]),Ji=He.createElement(Ot.Z,Object.assign({},Li),He.cloneElement(qt,{className:`${Sn}-item-tooltip`,title:""}));Zn=He.createElement(He.Fragment,null,Zn,Ji)}const rr=Mn==="optional",Dr=typeof Mn=="function";Dr?Zn=Mn(Zn,{required:!!pi}):rr&&!pi&&(Zn=He.createElement(He.Fragment,null,Zn,He.createElement("span",{className:`${Sn}-item-optional`,title:""},(nn==null?void 0:nn.optional)||((gn=mn.Z.Form)===null||gn===void 0?void 0:gn.optional))));const ar=Ke()({[`${Sn}-item-required`]:pi,[`${Sn}-item-required-mark-optional`]:rr||Dr,[`${Sn}-item-no-colon`]:!ri});return He.createElement(ye.Z,Object.assign({},En,{className:Yn}),He.createElement("label",{htmlFor:zt,className:ar,title:typeof bn=="string"?bn:""},Zn))},gi=he(79999),wi=he(33130),_n=he(85404),yr=he(50023);const ir={success:gi.Z,warning:_n.Z,error:wi.Z,validating:yr.Z};function fr(Pt){let{children:Sn,errors:bn,warnings:zt,hasFeedback:gt,validateStatus:xn,prefixCls:Ln,meta:pi,noStyle:Mn}=Pt;const It=`${Ln}-item`,{feedbackIcons:gn}=He.useContext(be.q3),nn=Vt(bn,zt,pi,null,!!gt,xn),{isFormItemInput:ui,status:Qt}=He.useContext(be.aM),Cn=He.useMemo(()=>{var $t;let vn;if(gt){const Rn=gt!==!0&>.icons||gn,Yn=nn&&(($t=Rn==null?void 0:Rn({status:nn,errors:bn,warnings:zt}))===null||$t===void 0?void 0:$t[nn]),Zn=nn&&ir[nn];vn=Yn!==!1&&Zn?He.createElement("span",{className:Ke()(`${It}-feedback-icon`,`${It}-feedback-icon-${nn}`)},Yn||He.createElement(Zn,null)):null}let En=!0,Pn=nn||"";return Mn&&(En=ui,Pn=(nn!=null?nn:Qt)||""),{status:Pn,errors:bn,warnings:zt,hasFeedback:!!gt,feedbackIcon:vn,isFormItemInput:En}},[nn,gt,Mn,ui,Qt]);return He.createElement(be.aM.Provider,{value:Cn},Sn)}var xr=function(Pt,Sn){var bn={};for(var zt in Pt)Object.prototype.hasOwnProperty.call(Pt,zt)&&Sn.indexOf(zt)<0&&(bn[zt]=Pt[zt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,zt=Object.getOwnPropertySymbols(Pt);gt<zt.length;gt++)Sn.indexOf(zt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,zt[gt])&&(bn[zt[gt]]=Pt[zt[gt]]);return bn};function jr(Pt){const{prefixCls:Sn,className:bn,rootClassName:zt,style:gt,help:xn,errors:Ln,warnings:pi,validateStatus:Mn,meta:It,hasFeedback:gn,hidden:nn,children:ui,fieldId:Qt,required:Cn,isRequired:$t,onSubItemMetaChange:vn}=Pt,En=xr(Pt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Pn=`${Sn}-item`,{requiredMark:Rn}=He.useContext(be.q3),Yn=He.useRef(null),Zn=yt(Ln),ri=yt(pi),Gn=xn!=null,di=!!(Gn||Ln.length||pi.length),rr=!!Yn.current&&(0,pt.Z)(Yn.current),[Dr,ar]=He.useState(null);(0,nt.Z)(()=>{if(di&&Yn.current){const bi=getComputedStyle(Yn.current);ar(parseInt(bi.marginBottom,10))}},[di,rr]);const qt=bi=>{bi||ar(null)},Ji=function(){let bi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const sr=bi?Zn:It.errors,Nr=bi?ri:It.warnings;return Vt(sr,Nr,It,"",!!gn,Mn)}(),Ti=Ke()(Pn,bn,zt,{[`${Pn}-with-help`]:Gn||Zn.length||ri.length,[`${Pn}-has-feedback`]:Ji&&gn,[`${Pn}-has-success`]:Ji==="success",[`${Pn}-has-warning`]:Ji==="warning",[`${Pn}-has-error`]:Ji==="error",[`${Pn}-is-validating`]:Ji==="validating",[`${Pn}-hidden`]:nn});return He.createElement("div",{className:Ti,style:gt,ref:Yn},He.createElement(we.Z,Object.assign({className:`${Pn}-row`},(0,Oe.Z)(En,["_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"])),He.createElement(vi,Object.assign({htmlFor:Qt},Pt,{requiredMark:Rn,required:Cn!=null?Cn:$t,prefixCls:Sn})),He.createElement(dt,Object.assign({},Pt,It,{errors:Zn,warnings:ri,prefixCls:Sn,status:Ji,help:xn,marginBottom:Dr,onErrorVisibleChanged:qt}),He.createElement(be.qI.Provider,{value:vn},He.createElement(fr,{prefixCls:Sn,meta:It,errors:It.errors,warnings:It.warnings,hasFeedback:gn,validateStatus:Ji},ui)))),!!Dr&&He.createElement("div",{className:`${Pn}-margin-offset`,style:{marginBottom:-Dr}}))}const Ki="__SPLIT__",Ir=null,Vi=He.memo(Pt=>{let{children:Sn}=Pt;return Sn},(Pt,Sn)=>Pt.value===Sn.value&&Pt.update===Sn.update&&Pt.childProps.length===Sn.childProps.length&&Pt.childProps.every((bn,zt)=>bn===Sn.childProps[zt]));function Me(Pt){return Pt!=null}function Ai(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Xi(Pt){const{name:Sn,noStyle:bn,className:zt,dependencies:gt,prefixCls:xn,shouldUpdate:Ln,rules:pi,children:Mn,required:It,label:gn,messageVariables:nn,trigger:ui="onChange",validateTrigger:Qt,hidden:Cn,help:$t}=Pt,{getPrefixCls:vn}=He.useContext(Dt.E_),{name:En}=He.useContext(be.q3),Pn=Zt(Mn),Rn=typeof Pn=="function",Yn=He.useContext(be.qI),{validateTrigger:Zn}=He.useContext(Qe.FieldContext),ri=Qt!==void 0?Qt:Zn,Gn=Me(Sn),di=vn("form",xn),[rr,Dr]=Re(di),ar=He.useContext(Qe.ListContext),qt=He.useRef(),[Li,Ji]=Wt({}),[Ti,bi]=(0,Un.Z)(()=>Ai()),sr=Dn=>{const Rr=ar==null?void 0:ar.getKey(Dn.name);if(bi(Dn.destroy?Ai():Dn,!0),bn&&$t!==!1&&Yn){let ca=Dn.name;if(Dn.destroy)ca=qt.current||ca;else if(Rr!==void 0){const[fo,Ha]=Rr;ca=[fo].concat((0,ge.Z)(Ha)),qt.current=ca}Yn(Dn,ca)}},Nr=(Dn,Rr)=>{Ji(ca=>{const fo=Object.assign({},ca),oa=[].concat((0,ge.Z)(Dn.name.slice(0,-1)),(0,ge.Z)(Rr)).join(Ki);return Dn.destroy?delete fo[oa]:fo[oa]=Dn,fo})},[cr,Zi]=He.useMemo(()=>{const Dn=(0,ge.Z)(Ti.errors),Rr=(0,ge.Z)(Ti.warnings);return Object.values(Li).forEach(ca=>{Dn.push.apply(Dn,(0,ge.Z)(ca.errors||[])),Rr.push.apply(Rr,(0,ge.Z)(ca.warnings||[]))}),[Dn,Rr]},[Li,Ti.errors,Ti.warnings]),Jr=Lt();function On(Dn,Rr,ca){return bn&&!Cn?He.createElement(fr,{prefixCls:di,hasFeedback:Pt.hasFeedback,validateStatus:Pt.validateStatus,meta:Ti,errors:cr,warnings:Zi,noStyle:!0},Dn):He.createElement(jr,Object.assign({key:"row"},Pt,{className:Ke()(zt,Dr),prefixCls:di,fieldId:Rr,isRequired:ca,errors:cr,warnings:Zi,meta:Ti,onSubItemMetaChange:Nr}),Dn)}if(!Gn&&!Rn&&!gt)return rr(On(Pn));let Ho={};return typeof gn=="string"?Ho.label=gn:Sn&&(Ho.label=String(Sn)),nn&&(Ho=Object.assign(Object.assign({},Ho),nn)),rr(He.createElement(Qe.Field,Object.assign({},Pt,{messageVariables:Ho,trigger:ui,validateTrigger:ri,onMetaChange:sr}),(Dn,Rr,ca)=>{const fo=Mt(Sn).length&&Rr?Rr.name:[],Ha=Yt(fo,En),oa=It!==void 0?It:!!(pi&&pi.some(Hn=>{if(Hn&&typeof Hn=="object"&&Hn.required&&!Hn.warningOnly)return!0;if(typeof Hn=="function"){const Ei=Hn(ca);return Ei&&Ei.required&&!Ei.warningOnly}return!1})),xt=Object.assign({},Dn);let kn=null;if(Array.isArray(Pn)&&Gn)kn=Pn;else if(!(Rn&&(!(Ln||gt)||Gn))){if(!(gt&&!Rn&&!Gn))if((0,ti.l$)(Pn)){const Hn=Object.assign(Object.assign({},Pn.props),xt);if(Hn.id||(Hn.id=Ha),$t||cr.length>0||Zi.length>0||Pt.extra){const $e=[];($t||cr.length>0)&&$e.push(`${Ha}_help`),Pt.extra&&$e.push(`${Ha}_extra`),Hn["aria-describedby"]=$e.join(" ")}cr.length>0&&(Hn["aria-invalid"]="true"),oa&&(Hn["aria-required"]="true"),(0,Kn.Yr)(Pn)&&(Hn.ref=Jr(fo,Pn)),new Set([].concat((0,ge.Z)(Mt(ui)),(0,ge.Z)(Mt(ri)))).forEach($e=>{Hn[$e]=function(){for(var Fi,eo,Qi,Vr,pr,Er=arguments.length,oo=new Array(Er),bo=0;bo<Er;bo++)oo[bo]=arguments[bo];(Qi=xt[$e])===null||Qi===void 0||(Fi=Qi).call.apply(Fi,[xt].concat(oo)),(pr=(Vr=Pn.props)[$e])===null||pr===void 0||(eo=pr).call.apply(eo,[Vr].concat(oo))}});const Si=[Hn["aria-required"],Hn["aria-invalid"],Hn["aria-describedby"]];kn=He.createElement(Vi,{value:xt[Pt.valuePropName||"value"],update:Pn,childProps:Si},(0,ti.Tm)(Pn,Hn))}else Rn&&(Ln||gt)&&!Gn?kn=Pn(ca):kn=Pn}return On(kn,Ha,oa)}))}const gr=Xi;gr.useStatus=mt;var tr=gr,uo=function(Pt,Sn){var bn={};for(var zt in Pt)Object.prototype.hasOwnProperty.call(Pt,zt)&&Sn.indexOf(zt)<0&&(bn[zt]=Pt[zt]);if(Pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,zt=Object.getOwnPropertySymbols(Pt);gt<zt.length;gt++)Sn.indexOf(zt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pt,zt[gt])&&(bn[zt[gt]]=Pt[zt[gt]]);return bn},Ni=Pt=>{var{prefixCls:Sn,children:bn}=Pt,zt=uo(Pt,["prefixCls","children"]);const{getPrefixCls:gt}=He.useContext(Dt.E_),xn=gt("form",Sn),Ln=He.useMemo(()=>({prefixCls:xn,status:"error"}),[xn]);return He.createElement(Qe.List,Object.assign({},zt),(pi,Mn,It)=>He.createElement(be.Rk.Provider,{value:Ln},bn(pi.map(gn=>Object.assign(Object.assign({},gn),{fieldKey:gn.key})),Mn,{errors:It.errors,warnings:It.warnings})))};function an(){const{form:Pt}=(0,He.useContext)(be.q3);return Pt}const en=Ft;en.Item=tr,en.List=Ni,en.ErrorList=bt,en.useForm=Nt,en.useFormInstance=an,en.useWatch=Qe.useWatch,en.Provider=be.RV,en.create=()=>{};var Kt=en},8628:function(fn,jt,he){"use strict";var ge=he(59301),Ie=he(28800),Ke=he(56762),ot=he(69507);function He(){let it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const be=(0,ge.useRef)({}),yt=(0,Ke.Z)(),ct=(0,ot.ZP)();return(0,Ie.Z)(()=>{const Xe=ct.subscribe(et=>{be.current=et,it&&yt()});return()=>ct.unsubscribe(Xe)},[]),be.current}jt.Z=He},9432:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return de},n:function(){return ue}});var ge=he(33130),Ie=he(92310),Ke=he.n(Ie),ot=he(93681),He=he(20475),it=he(59301),be=he(19080),yt=he(36355),ct=he(1684),Xe=he(19716),et=he(32441),Je=he(33234),Ue=he(59412),Ee=he(9937);function ee(ve){return!!(ve.prefix||ve.suffix||ve.allowClear)}var te=function(ve,xe){var Ae={};for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&xe.indexOf(Pe)<0&&(Ae[Pe]=ve[Pe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Pe=Object.getOwnPropertySymbols(ve);Ne<Pe.length;Ne++)xe.indexOf(Pe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ve,Pe[Ne])&&(Ae[Pe[Ne]]=ve[Pe[Ne]]);return Ae};function ue(ve,xe){if(!ve)return;ve.focus(xe);const{cursor:Ae}=xe||{};if(Ae){const Pe=ve.value.length;switch(Ae){case"start":ve.setSelectionRange(0,0);break;case"end":ve.setSelectionRange(Pe,Pe);break;default:ve.setSelectionRange(0,Pe);break}}}var de=(0,it.forwardRef)((ve,xe)=>{var Ae;const{prefixCls:Pe,bordered:Ne=!0,status:Le,size:Re,disabled:je,onBlur:Ge,onFocus:We,suffix:bt,allowClear:Qe,addonAfter:Dt,addonBefore:vt,className:kt,style:Rt,styles:Jt,rootClassName:at,onChange:Ze,classNames:Mt}=ve,Yt=te(ve,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Vt,direction:Ct,input:Nt}=it.useContext(yt.E_),sn=Vt("input",Pe),Nn=(0,it.useRef)(null),[hn,Xn]=(0,Ee.ZP)(sn),{compactSize:Ft,compactItemClassnames:Un}=(0,Je.ri)(sn,Ct),Kn=(0,Xe.Z)(Ve=>{var Be;return(Be=Re!=null?Re:Ft)!==null&&Be!==void 0?Be:Ve}),ti=it.useContext(ct.Z),Fn=je!=null?je:ti,{status:Zt,hasFeedback:Xt,feedbackIcon:mt}=(0,it.useContext)(et.aM),tt=(0,be.F)(Zt,Le),Wt=ee(ve)||!!Xt,Lt=(0,it.useRef)(Wt);(0,it.useEffect)(()=>{var Ve;Wt&&Lt.current,Lt.current=Wt},[Wt]);const pt=(0,Ue.Z)(Nn,!0),nt=Ve=>{pt(),Ge==null||Ge(Ve)},Oe=Ve=>{pt(),We==null||We(Ve)},we=Ve=>{pt(),Ze==null||Ze(Ve)},ye=(Xt||bt)&&it.createElement(it.Fragment,null,bt,Xt&&mt);let ke;return typeof Qe=="object"&&(Qe!=null&&Qe.clearIcon)?ke=Qe:Qe&&(ke={clearIcon:it.createElement(ge.Z,null)}),hn(it.createElement(ot.default,Object.assign({ref:(0,He.sQ)(xe,Nn),prefixCls:sn,autoComplete:Nt==null?void 0:Nt.autoComplete},Yt,{disabled:Fn,onBlur:nt,onFocus:Oe,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),Rt),styles:Object.assign(Object.assign({},Nt==null?void 0:Nt.styles),Jt),suffix:ye,allowClear:ke,className:Ke()(kt,at,Un,Nt==null?void 0:Nt.className),onChange:we,addonAfter:Dt&&it.createElement(Je.BR,null,it.createElement(et.Ux,{override:!0,status:!0},Dt)),addonBefore:vt&&it.createElement(Je.BR,null,it.createElement(et.Ux,{override:!0,status:!0},vt)),classNames:Object.assign(Object.assign(Object.assign({},Mt),Nt==null?void 0:Nt.classNames),{input:Ke()({[`${sn}-sm`]:Kn==="small",[`${sn}-lg`]:Kn==="large",[`${sn}-rtl`]:Ct==="rtl",[`${sn}-borderless`]:!Ne},!Wt&&(0,be.Z)(sn,tt),Mt==null?void 0:Mt.input,(Ae=Nt==null?void 0:Nt.classNames)===null||Ae===void 0?void 0:Ae.input,Xn)}),classes:{affixWrapper:Ke()({[`${sn}-affix-wrapper-sm`]:Kn==="small",[`${sn}-affix-wrapper-lg`]:Kn==="large",[`${sn}-affix-wrapper-rtl`]:Ct==="rtl",[`${sn}-affix-wrapper-borderless`]:!Ne},(0,be.Z)(`${sn}-affix-wrapper`,tt,Xt),Xn),wrapper:Ke()({[`${sn}-group-rtl`]:Ct==="rtl"},Xn),group:Ke()({[`${sn}-group-wrapper-sm`]:Kn==="small",[`${sn}-group-wrapper-lg`]:Kn==="large",[`${sn}-group-wrapper-rtl`]:Ct==="rtl",[`${sn}-group-wrapper-disabled`]:Fn},(0,be.Z)(`${sn}-group-wrapper`,tt,Xt),Xn)}})))})},1643:function(fn,jt,he){"use strict";var ge=he(33130),Ie=he(92310),Ke=he.n(Ie),ot=he(9296),He=he(59301),it=he(19080),be=he(36355),yt=he(1684),ct=he(19716),Xe=he(32441),et=he(9432),Je=he(9937),Ue=function(ee,te){var ue={};for(var oe in ee)Object.prototype.hasOwnProperty.call(ee,oe)&&te.indexOf(oe)<0&&(ue[oe]=ee[oe]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,oe=Object.getOwnPropertySymbols(ee);de<oe.length;de++)te.indexOf(oe[de])<0&&Object.prototype.propertyIsEnumerable.call(ee,oe[de])&&(ue[oe[de]]=ee[oe[de]]);return ue};const Ee=(0,He.forwardRef)((ee,te)=>{const{prefixCls:ue,bordered:oe=!0,size:de,disabled:ve,status:xe,allowClear:Ae,showCount:Pe,classNames:Ne,rootClassName:Le,className:Re}=ee,je=Ue(ee,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ge,direction:We}=He.useContext(be.E_),bt=(0,ct.Z)(de),Qe=He.useContext(yt.Z),Dt=ve!=null?ve:Qe,{status:vt,hasFeedback:kt,feedbackIcon:Rt}=He.useContext(Xe.aM),Jt=(0,it.F)(vt,xe),at=He.useRef(null);He.useImperativeHandle(te,()=>{var Ct;return{resizableTextArea:(Ct=at.current)===null||Ct===void 0?void 0:Ct.resizableTextArea,focus:Nt=>{var sn,Nn;(0,et.n)((Nn=(sn=at.current)===null||sn===void 0?void 0:sn.resizableTextArea)===null||Nn===void 0?void 0:Nn.textArea,Nt)},blur:()=>{var Nt;return(Nt=at.current)===null||Nt===void 0?void 0:Nt.blur()}}});const Ze=Ge("input",ue);let Mt;typeof Ae=="object"&&(Ae!=null&&Ae.clearIcon)?Mt=Ae:Ae&&(Mt={clearIcon:He.createElement(ge.Z,null)});const[Yt,Vt]=(0,Je.ZP)(Ze);return Yt(He.createElement(ot.default,Object.assign({},je,{disabled:Dt,allowClear:Mt,className:Ke()(Re,Le),classes:{affixWrapper:Ke()(`${Ze}-textarea-affix-wrapper`,{[`${Ze}-affix-wrapper-rtl`]:We==="rtl",[`${Ze}-affix-wrapper-borderless`]:!oe,[`${Ze}-affix-wrapper-sm`]:bt==="small",[`${Ze}-affix-wrapper-lg`]:bt==="large",[`${Ze}-textarea-show-count`]:Pe},(0,it.Z)(`${Ze}-affix-wrapper`,Jt),Vt)},classNames:Object.assign(Object.assign({},Ne),{textarea:Ke()({[`${Ze}-borderless`]:!oe,[`${Ze}-sm`]:bt==="small",[`${Ze}-lg`]:bt==="large"},(0,it.Z)(Ze,Jt),Vt,Ne==null?void 0:Ne.textarea)}),prefixCls:Ze,suffix:kt&&He.createElement("span",{className:`${Ze}-textarea-suffix`},Rt),showCount:Pe,ref:at})))});jt.Z=Ee},59412:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ie}});var ge=he(59301);function Ie(Ke,ot){const He=(0,ge.useRef)([]),it=()=>{He.current.push(setTimeout(()=>{var be,yt,ct,Xe;!((be=Ke.current)===null||be===void 0)&&be.input&&((yt=Ke.current)===null||yt===void 0?void 0:yt.input.getAttribute("type"))==="password"&&(!((ct=Ke.current)===null||ct===void 0)&&ct.input.hasAttribute("value"))&&((Xe=Ke.current)===null||Xe===void 0||Xe.input.removeAttribute("value"))}))};return(0,ge.useEffect)(()=>(ot&&it(),()=>He.current.forEach(be=>{be&&clearTimeout(be)})),[]),it}},92832:function(fn,jt,he){"use strict";he.d(jt,{default:function(){return bt}});var ge=he(92310),Ie=he.n(ge),Ke=he(59301),ot=he(36355),He=he(32441),it=he(9937),yt=Qe=>{const{getPrefixCls:Dt,direction:vt}=(0,Ke.useContext)(ot.E_),{prefixCls:kt,className:Rt}=Qe,Jt=Dt("input-group",kt),at=Dt("input"),[Ze,Mt]=(0,it.ZP)(at),Yt=Ie()(Jt,{[`${Jt}-lg`]:Qe.size==="large",[`${Jt}-sm`]:Qe.size==="small",[`${Jt}-compact`]:Qe.compact,[`${Jt}-rtl`]:vt==="rtl"},Mt,Rt),Vt=(0,Ke.useContext)(He.aM),Ct=(0,Ke.useMemo)(()=>Object.assign(Object.assign({},Vt),{isFormItemInput:!1}),[Vt]);return Ze(Ke.createElement("span",{className:Yt,style:Qe.style,onMouseEnter:Qe.onMouseEnter,onMouseLeave:Qe.onMouseLeave,onFocus:Qe.onFocus,onBlur:Qe.onBlur},Ke.createElement(He.aM.Provider,{value:Ct},Qe.children)))},ct=he(9432),Xe=he(61441),et=he(30631),Je=he(64002),Ue=he(20475),Ee=he(59412),ee=function(Qe,Dt){var vt={};for(var kt in Qe)Object.prototype.hasOwnProperty.call(Qe,kt)&&Dt.indexOf(kt)<0&&(vt[kt]=Qe[kt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,kt=Object.getOwnPropertySymbols(Qe);Rt<kt.length;Rt++)Dt.indexOf(kt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,kt[Rt])&&(vt[kt[Rt]]=Qe[kt[Rt]]);return vt};const te=Qe=>Qe?Ke.createElement(et.Z,null):Ke.createElement(Xe.Z,null),ue={click:"onClick",hover:"onMouseOver"};var de=Ke.forwardRef((Qe,Dt)=>{const{visibilityToggle:vt=!0}=Qe,kt=typeof vt=="object"&&vt.visible!==void 0,[Rt,Jt]=(0,Ke.useState)(()=>kt?vt.visible:!1),at=(0,Ke.useRef)(null);Ke.useEffect(()=>{kt&&Jt(vt.visible)},[kt,vt]);const Ze=(0,Ee.Z)(at),Mt=()=>{const{disabled:Fn}=Qe;Fn||(Rt&&Ze(),Jt(Zt=>{var Xt;const mt=!Zt;return typeof vt=="object"&&((Xt=vt.onVisibleChange)===null||Xt===void 0||Xt.call(vt,mt)),mt}))},Yt=Fn=>{const{action:Zt="click",iconRender:Xt=te}=Qe,mt=ue[Zt]||"",tt=Xt(Rt),Wt={[mt]:Mt,className:`${Fn}-icon`,key:"passwordIcon",onMouseDown:Lt=>{Lt.preventDefault()},onMouseUp:Lt=>{Lt.preventDefault()}};return Ke.cloneElement(Ke.isValidElement(tt)?tt:Ke.createElement("span",null,tt),Wt)},{className:Vt,prefixCls:Ct,inputPrefixCls:Nt,size:sn}=Qe,Nn=ee(Qe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:hn}=Ke.useContext(ot.E_),Xn=hn("input",Nt),Ft=hn("input-password",Ct),Un=vt&&Yt(Ft),Kn=Ie()(Ft,Vt,{[`${Ft}-${sn}`]:!!sn}),ti=Object.assign(Object.assign({},(0,Je.Z)(Nn,["suffix","iconRender","visibilityToggle"])),{type:Rt?"text":"password",className:Kn,prefixCls:Xn,suffix:Un});return sn&&(ti.size=sn),Ke.createElement(ct.Z,Object.assign({ref:(0,Ue.sQ)(Dt,at)},ti))}),ve=he(21970),xe=he(92343),Ae=he(3113),Pe=he(19716),Ne=he(33234),Le=function(Qe,Dt){var vt={};for(var kt in Qe)Object.prototype.hasOwnProperty.call(Qe,kt)&&Dt.indexOf(kt)<0&&(vt[kt]=Qe[kt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,kt=Object.getOwnPropertySymbols(Qe);Rt<kt.length;Rt++)Dt.indexOf(kt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,kt[Rt])&&(vt[kt[Rt]]=Qe[kt[Rt]]);return vt},je=Ke.forwardRef((Qe,Dt)=>{const{prefixCls:vt,inputPrefixCls:kt,className:Rt,size:Jt,suffix:at,enterButton:Ze=!1,addonAfter:Mt,loading:Yt,disabled:Vt,onSearch:Ct,onChange:Nt,onCompositionStart:sn,onCompositionEnd:Nn}=Qe,hn=Le(Qe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Xn,direction:Ft}=Ke.useContext(ot.E_),Un=Ke.useRef(!1),Kn=Xn("input-search",vt),ti=Xn("input",kt),{compactSize:Fn}=(0,Ne.ri)(Kn,Ft),Zt=(0,Pe.Z)(dt=>{var on;return(on=Jt!=null?Jt:Fn)!==null&&on!==void 0?on:dt}),Xt=Ke.useRef(null),mt=dt=>{dt&&dt.target&&dt.type==="click"&&Ct&&Ct(dt.target.value,dt,{source:"clear"}),Nt&&Nt(dt)},tt=dt=>{var on;document.activeElement===((on=Xt.current)===null||on===void 0?void 0:on.input)&&dt.preventDefault()},Wt=dt=>{var on,mn;Ct&&Ct((mn=(on=Xt.current)===null||on===void 0?void 0:on.input)===null||mn===void 0?void 0:mn.value,dt,{source:"input"})},Lt=dt=>{Un.current||Yt||Wt(dt)},pt=typeof Ze=="boolean"?Ke.createElement(ve.Z,null):null,nt=`${Kn}-button`;let Oe;const we=Ze||{},ye=we.type&&we.type.__ANT_BUTTON===!0;ye||we.type==="button"?Oe=(0,xe.Tm)(we,Object.assign({onMouseDown:tt,onClick:dt=>{var on,mn;(mn=(on=we==null?void 0:we.props)===null||on===void 0?void 0:on.onClick)===null||mn===void 0||mn.call(on,dt),Wt(dt)},key:"enterButton"},ye?{className:nt,size:Zt}:{})):Oe=Ke.createElement(Ae.ZP,{className:nt,type:Ze?"primary":void 0,size:Zt,disabled:Vt,key:"enterButton",onMouseDown:tt,onClick:Wt,loading:Yt,icon:pt},Ze),Mt&&(Oe=[Oe,(0,xe.Tm)(Mt,{key:"addonAfter"})]);const ke=Ie()(Kn,{[`${Kn}-rtl`]:Ft==="rtl",[`${Kn}-${Zt}`]:!!Zt,[`${Kn}-with-button`]:!!Ze},Rt),Ve=dt=>{Un.current=!0,sn==null||sn(dt)},Be=dt=>{Un.current=!1,Nn==null||Nn(dt)};return Ke.createElement(ct.Z,Object.assign({ref:(0,Ue.sQ)(Xt,Dt),onPressEnter:Lt},hn,{size:Zt,onCompositionStart:Ve,onCompositionEnd:Be,prefixCls:ti,addonAfter:Oe,suffix:at,onChange:mt,className:ke,disabled:Vt}))}),Ge=he(1643);const We=ct.Z;We.Group=yt,We.Search=je,We.TextArea=Ge.Z,We.Password=de;var bt=We},99580:function(fn,jt,he){"use strict";he.d(jt,{D:function(){return ve},Z:function(){return Pe}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Le,Re){return Ie.createElement(He.Z,(0,ge.Z)({},Le,{ref:Re,icon:ot}))},be=Ie.forwardRef(it),yt=be,ct=he(16537),Xe=he(53878),et=he(92310),Je=he.n(et),Ue=he(64002),ee=Ne=>!isNaN(parseFloat(Ne))&&isFinite(Ne),te=he(36355),ue=he(84966),oe=function(Ne,Le){var Re={};for(var je in Ne)Object.prototype.hasOwnProperty.call(Ne,je)&&Le.indexOf(je)<0&&(Re[je]=Ne[je]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,je=Object.getOwnPropertySymbols(Ne);Ge<je.length;Ge++)Le.indexOf(je[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ne,je[Ge])&&(Re[je[Ge]]=Ne[je[Ge]]);return Re};const de={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ve=Ie.createContext({}),xe=(()=>{let Ne=0;return function(){let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ne+=1,`${Le}${Ne}`}})();var Pe=Ie.forwardRef((Ne,Le)=>{const{prefixCls:Re,className:je,trigger:Ge,children:We,defaultCollapsed:bt=!1,theme:Qe="dark",style:Dt={},collapsible:vt=!1,reverseArrow:kt=!1,width:Rt=200,collapsedWidth:Jt=80,zeroWidthTriggerStyle:at,breakpoint:Ze,onCollapse:Mt,onBreakpoint:Yt}=Ne,Vt=oe(Ne,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ct}=(0,Ie.useContext)(ue.Gs),[Nt,sn]=(0,Ie.useState)("collapsed"in Ne?Ne.collapsed:bt),[Nn,hn]=(0,Ie.useState)(!1);(0,Ie.useEffect)(()=>{"collapsed"in Ne&&sn(Ne.collapsed)},[Ne.collapsed]);const Xn=(Zt,Xt)=>{"collapsed"in Ne||sn(Zt),Mt==null||Mt(Zt,Xt)},Ft=(0,Ie.useRef)();Ft.current=Zt=>{hn(Zt.matches),Yt==null||Yt(Zt.matches),Nt!==Zt.matches&&Xn(Zt.matches,"responsive")},(0,Ie.useEffect)(()=>{function Zt(mt){return Ft.current(mt)}let Xt;if(typeof window!="undefined"){const{matchMedia:mt}=window;if(mt&&Ze&&Ze in de){Xt=mt(`(max-width: ${de[Ze]})`);try{Xt.addEventListener("change",Zt)}catch(tt){Xt.addListener(Zt)}Zt(Xt)}}return()=>{try{Xt==null||Xt.removeEventListener("change",Zt)}catch(mt){Xt==null||Xt.removeListener(Zt)}}},[Ze]),(0,Ie.useEffect)(()=>{const Zt=xe("ant-sider-");return Ct.addSider(Zt),()=>Ct.removeSider(Zt)},[]);const Un=()=>{Xn(!Nt,"clickTrigger")},{getPrefixCls:Kn}=(0,Ie.useContext)(te.E_),ti=()=>{const Zt=Kn("layout-sider",Re),Xt=(0,Ue.Z)(Vt,["collapsed"]),mt=Nt?Jt:Rt,tt=ee(mt)?`${mt}px`:String(mt),Wt=parseFloat(String(Jt||0))===0?Ie.createElement("span",{onClick:Un,className:Je()(`${Zt}-zero-width-trigger`,`${Zt}-zero-width-trigger-${kt?"right":"left"}`),style:at},Ge||Ie.createElement(yt,null)):null,nt={expanded:kt?Ie.createElement(Xe.Z,null):Ie.createElement(ct.Z,null),collapsed:kt?Ie.createElement(ct.Z,null):Ie.createElement(Xe.Z,null)}[Nt?"collapsed":"expanded"],Oe=Ge!==null?Wt||Ie.createElement("div",{className:`${Zt}-trigger`,onClick:Un,style:{width:tt}},Ge||nt):null,we=Object.assign(Object.assign({},Dt),{flex:`0 0 ${tt}`,maxWidth:tt,minWidth:tt,width:tt}),ye=Je()(Zt,`${Zt}-${Qe}`,{[`${Zt}-collapsed`]:!!Nt,[`${Zt}-has-trigger`]:vt&&Ge!==null&&!Wt,[`${Zt}-below`]:!!Nn,[`${Zt}-zero-width`]:parseFloat(tt)===0},je);return Ie.createElement("aside",Object.assign({className:ye},Xt,{style:we,ref:Le}),Ie.createElement("div",{className:`${Zt}-children`},We),vt||Nn&&Wt?Oe:null)},Fn=Ie.useMemo(()=>({siderCollapsed:Nt}),[Nt]);return Ie.createElement(ve.Provider,{value:Fn},ti())})},84966:function(fn,jt,he){"use strict";he.d(jt,{VY:function(){return ve},$_:function(){return de},h4:function(){return oe},Gs:function(){return Ue},ZP:function(){return xe}});var ge=he(26390),Ie=he(92310),Ke=he.n(Ie),ot=he(64002),He=he(59301),it=he(36355),be=he(83116),ct=Ae=>{const{componentCls:Pe,bodyBg:Ne,lightSiderBg:Le,lightTriggerBg:Re,lightTriggerColor:je}=Ae;return{[`${Pe}-sider-light`]:{background:Le,[`${Pe}-sider-trigger`]:{color:je,background:Re},[`${Pe}-sider-zero-width-trigger`]:{color:je,background:Re,border:`1px solid ${Ne}`,borderInlineStart:0}}}};const Xe=Ae=>{const{antCls:Pe,componentCls:Ne,colorText:Le,triggerColor:Re,footerBg:je,triggerBg:Ge,headerHeight:We,headerPadding:bt,headerColor:Qe,footerPadding:Dt,triggerHeight:vt,zeroTriggerHeight:kt,zeroTriggerWidth:Rt,motionDurationMid:Jt,motionDurationSlow:at,fontSize:Ze,borderRadius:Mt,bodyBg:Yt,headerBg:Vt,siderBg:Ct}=Ae;return{[Ne]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Yt,"&, *":{boxSizing:"border-box"},[`&${Ne}-has-sider`]:{flexDirection:"row",[`> ${Ne}, > ${Ne}-content`]:{width:0}},[`${Ne}-header, &${Ne}-footer`]:{flex:"0 0 auto"},[`${Ne}-sider`]:{position:"relative",minWidth:0,background:Ct,transition:`all ${Jt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Pe}-menu${Pe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:vt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:vt,color:Re,lineHeight:`${vt}px`,textAlign:"center",background:Ge,cursor:"pointer",transition:`all ${Jt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:We,insetInlineEnd:-Rt,zIndex:1,width:Rt,height:kt,color:Re,fontSize:Ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ct,borderStartStartRadius:0,borderStartEndRadius:Mt,borderEndEndRadius:Mt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${at} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${at}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Rt,borderStartStartRadius:Mt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Mt}}}}},ct(Ae)),{"&-rtl":{direction:"rtl"}}),[`${Ne}-header`]:{height:We,padding:bt,color:Qe,lineHeight:`${We}px`,background:Vt,[`${Pe}-menu`]:{lineHeight:"inherit"}},[`${Ne}-footer`]:{padding:Dt,color:Le,fontSize:Ze,background:je},[`${Ne}-content`]:{flex:"auto",minHeight:0}}};var et=(0,be.Z)("Layout",Ae=>[Xe(Ae)],Ae=>{const{colorBgLayout:Pe,controlHeight:Ne,controlHeightLG:Le,colorText:Re,controlHeightSM:je,marginXXS:Ge,colorTextLightSolid:We,colorBgContainer:bt}=Ae,Qe=Le*1.25;return{colorBgHeader:"#001529",colorBgBody:Pe,colorBgTrigger:"#002140",bodyBg:Pe,headerBg:"#001529",headerHeight:Ne*2,headerPadding:`0 ${Qe}px`,headerColor:Re,footerPadding:`${je}px ${Qe}px`,footerBg:Pe,siderBg:"#001529",triggerHeight:Le+Ge*2,triggerBg:"#002140",triggerColor:We,zeroTriggerWidth:Le,zeroTriggerHeight:Le,lightSiderBg:bt,lightTriggerBg:bt,lightTriggerColor:Re}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Je=function(Ae,Pe){var Ne={};for(var Le in Ae)Object.prototype.hasOwnProperty.call(Ae,Le)&&Pe.indexOf(Le)<0&&(Ne[Le]=Ae[Le]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Le=Object.getOwnPropertySymbols(Ae);Re<Le.length;Re++)Pe.indexOf(Le[Re])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Le[Re])&&(Ne[Le[Re]]=Ae[Le[Re]]);return Ne};const Ue=He.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ee(Ae){let{suffixCls:Pe,tagName:Ne,displayName:Le}=Ae;return Re=>He.forwardRef((Ge,We)=>He.createElement(Re,Object.assign({ref:We,suffixCls:Pe,tagName:Ne},Ge)))}const ee=He.forwardRef((Ae,Pe)=>{const{prefixCls:Ne,suffixCls:Le,className:Re,tagName:je}=Ae,Ge=Je(Ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:We}=He.useContext(it.E_),bt=We("layout",Ne),[Qe,Dt]=et(bt),vt=Le?`${bt}-${Le}`:bt;return Qe(He.createElement(je,Object.assign({className:Ke()(Ne||vt,Re,Dt),ref:Pe},Ge)))}),te=He.forwardRef((Ae,Pe)=>{const{direction:Ne}=He.useContext(it.E_),[Le,Re]=He.useState([]),{prefixCls:je,className:Ge,rootClassName:We,children:bt,hasSider:Qe,tagName:Dt,style:vt}=Ae,kt=Je(Ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Rt=(0,ot.Z)(kt,["suffixCls"]),{getPrefixCls:Jt,layout:at}=He.useContext(it.E_),Ze=Jt("layout",je),[Mt,Yt]=et(Ze),Vt=Ke()(Ze,{[`${Ze}-has-sider`]:typeof Qe=="boolean"?Qe:Le.length>0,[`${Ze}-rtl`]:Ne==="rtl"},at==null?void 0:at.className,Ge,We,Yt),Ct=He.useMemo(()=>({siderHook:{addSider:Nt=>{Re(sn=>[].concat((0,ge.Z)(sn),[Nt]))},removeSider:Nt=>{Re(sn=>sn.filter(Nn=>Nn!==Nt))}}}),[]);return Mt(He.createElement(Ue.Provider,{value:Ct},He.createElement(Dt,Object.assign({ref:Pe,className:Vt,style:Object.assign(Object.assign({},at==null?void 0:at.style),vt)},Rt),bt)))}),ue=Ee({tagName:"div",displayName:"Layout"})(te),oe=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 xe=ue},40875:function(fn,jt,he){"use strict";he.d(jt,{J:function(){return it}});var ge=he(59301),Ie=he(33234),Ke=he(80764),ot=function(be,yt){var ct={};for(var Xe in be)Object.prototype.hasOwnProperty.call(be,Xe)&&yt.indexOf(Xe)<0&&(ct[Xe]=be[Xe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Xe=Object.getOwnPropertySymbols(be);et<Xe.length;et++)yt.indexOf(Xe[et])<0&&Object.prototype.propertyIsEnumerable.call(be,Xe[et])&&(ct[Xe[et]]=be[Xe[et]]);return ct};const He=ge.createContext(null),it=ge.forwardRef((be,yt)=>{const{children:ct}=be,Xe=ot(be,["children"]),et=ge.useContext(He),Je=ge.useMemo(()=>Object.assign(Object.assign({},et),Xe),[et,Xe.prefixCls,Xe.mode,Xe.selectable]);return ge.createElement(He.Provider,{value:Je},ge.createElement(Ie.BR,null,(0,Ke.supportNodeRef)(ct)?ge.cloneElement(ct,{ref:yt}):ct))});jt.Z=He},20834:function(fn,jt,he){"use strict";he.d(jt,{default:function(){return Fn}});var ge=he(22798),Ie=he(59301),Ke=he(99580),ot=he(92310),He=he.n(ot),it=he(36355),be=function(Zt,Xt){var mt={};for(var tt in Zt)Object.prototype.hasOwnProperty.call(Zt,tt)&&Xt.indexOf(tt)<0&&(mt[tt]=Zt[tt]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,tt=Object.getOwnPropertySymbols(Zt);Wt<tt.length;Wt++)Xt.indexOf(tt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(Zt,tt[Wt])&&(mt[tt[Wt]]=Zt[tt[Wt]]);return mt},ct=Zt=>{const{prefixCls:Xt,className:mt,dashed:tt}=Zt,Wt=be(Zt,["prefixCls","className","dashed"]),{getPrefixCls:Lt}=Ie.useContext(it.E_),pt=Lt("menu",Xt),nt=He()({[`${pt}-item-divider-dashed`]:!!tt},mt);return Ie.createElement(ge.iz,Object.assign({className:nt},Wt))},Xe=he(38298),et=he(64002),Je=he(6848),Ue=he(92343),ee=(0,Ie.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ue=Zt=>{var Xt;const{className:mt,children:tt,icon:Wt,title:Lt,danger:pt}=Zt,{prefixCls:nt,firstLevel:Oe,direction:we,disableMenuItemTitleTooltip:ye,inlineCollapsed:ke}=Ie.useContext(ee),Ve=Ot=>{const yn=Ie.createElement("span",{className:`${nt}-title-content`},tt);return(!Wt||(0,Ue.l$)(tt)&&tt.type==="span")&&tt&&Ot&&Oe&&typeof tt=="string"?Ie.createElement("div",{className:`${nt}-inline-collapsed-noicon`},tt.charAt(0)):yn},{siderCollapsed:Be}=Ie.useContext(Ke.D);let dt=Lt;typeof Lt=="undefined"?dt=Oe?tt:"":Lt===!1&&(dt="");const on={title:dt};!Be&&!ke&&(on.title=null,on.open=!1);const mn=(0,Xe.Z)(tt).length;let Et=Ie.createElement(ge.ck,Object.assign({},(0,et.Z)(Zt,["title","icon","danger"]),{className:He()({[`${nt}-item-danger`]:pt,[`${nt}-item-only-child`]:(Wt?mn+1:mn)===1},mt),title:typeof Lt=="string"?Lt:void 0}),(0,Ue.Tm)(Wt,{className:He()((0,Ue.l$)(Wt)?(Xt=Wt.props)===null||Xt===void 0?void 0:Xt.className:"",`${nt}-item-icon`)}),Ve(ke));return ye||(Et=Ie.createElement(Je.Z,Object.assign({},on,{placement:we==="rtl"?"left":"right",overlayClassName:`${nt}-inline-collapsed-tooltip`}),Et)),Et},de=Zt=>{var Xt;const{popupClassName:mt,icon:tt,title:Wt,theme:Lt}=Zt,pt=Ie.useContext(ee),{prefixCls:nt,inlineCollapsed:Oe,theme:we}=pt,ye=(0,ge.Xl)();let ke;if(!tt)ke=Oe&&!ye.length&&Wt&&typeof Wt=="string"?Ie.createElement("div",{className:`${nt}-inline-collapsed-noicon`},Wt.charAt(0)):Ie.createElement("span",{className:`${nt}-title-content`},Wt);else{const Be=(0,Ue.l$)(Wt)&&Wt.type==="span";ke=Ie.createElement(Ie.Fragment,null,(0,Ue.Tm)(tt,{className:He()((0,Ue.l$)(tt)?(Xt=tt.props)===null||Xt===void 0?void 0:Xt.className:"",`${nt}-item-icon`)}),Be?Wt:Ie.createElement("span",{className:`${nt}-title-content`},Wt))}const Ve=Ie.useMemo(()=>Object.assign(Object.assign({},pt),{firstLevel:!1}),[pt]);return Ie.createElement(ee.Provider,{value:Ve},Ie.createElement(ge.Wd,Object.assign({},(0,et.Z)(Zt,["icon"]),{title:ke,popupClassName:He()(nt,mt,`${nt}-${Lt||we}`)})))},ve=he(19362),xe=he(80764),Ae=he(62892),Pe=he(40875),Ne=function(Zt,Xt){var mt={};for(var tt in Zt)Object.prototype.hasOwnProperty.call(Zt,tt)&&Xt.indexOf(tt)<0&&(mt[tt]=Zt[tt]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,tt=Object.getOwnPropertySymbols(Zt);Wt<tt.length;Wt++)Xt.indexOf(tt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(Zt,tt[Wt])&&(mt[tt[Wt]]=Zt[tt[Wt]]);return mt};function Le(Zt){return(Zt||[]).map((Xt,mt)=>{if(Xt&&typeof Xt=="object"){const tt=Xt,{label:Wt,children:Lt,key:pt,type:nt}=tt,Oe=Ne(tt,["label","children","key","type"]),we=pt!=null?pt:`tmp-${mt}`;return Lt||nt==="group"?nt==="group"?Ie.createElement(ge.BW,Object.assign({key:we},Oe,{title:Wt}),Le(Lt)):Ie.createElement(de,Object.assign({key:we},Oe,{title:Wt}),Le(Lt)):nt==="divider"?Ie.createElement(ct,Object.assign({key:we},Oe)):Ie.createElement(ue,Object.assign({key:we},Oe),Wt)}return null}).filter(Xt=>Xt)}function Re(Zt){return Ie.useMemo(()=>Zt&&Le(Zt),[Zt])}var je=he(64993),Ge=he(17313),We=he(8378),bt=he(13826),Qe=he(29878),Dt=he(83116),vt=he(37613),Rt=Zt=>{const{componentCls:Xt,motionDurationSlow:mt,horizontalLineHeight:tt,colorSplit:Wt,lineWidth:Lt,lineType:pt,itemPaddingInline:nt}=Zt;return{[`${Xt}-horizontal`]:{lineHeight:tt,border:0,borderBottom:`${Lt}px ${pt} ${Wt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Xt}-item, ${Xt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:nt},[`> ${Xt}-item:hover,
|
|
|
> ${Xt}-item-active,
|
|
|
> ${Xt}-submenu ${Xt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Xt}-item, ${Xt}-submenu-title`]:{transition:[`border-color ${mt}`,`background ${mt}`].join(",")},[`${Xt}-submenu-arrow`]:{display:"none"}}}},at=Zt=>{let{componentCls:Xt,menuArrowOffset:mt}=Zt;return{[`${Xt}-rtl`]:{direction:"rtl"},[`${Xt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Xt}-rtl${Xt}-vertical,
|
|
|
${Xt}-submenu-rtl ${Xt}-vertical`]:{[`${Xt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${mt})`},"&::after":{transform:`rotate(45deg) translateY(${mt})`}}}}};const Ze=Zt=>Object.assign({},(0,Ge.oN)(Zt));var Yt=(Zt,Xt)=>{const{componentCls:mt,itemColor:tt,itemSelectedColor:Wt,groupTitleColor:Lt,itemBg:pt,subMenuItemBg:nt,itemSelectedBg:Oe,activeBarHeight:we,activeBarWidth:ye,activeBarBorderWidth:ke,motionDurationSlow:Ve,motionEaseInOut:Be,motionEaseOut:dt,itemPaddingInline:on,motionDurationMid:mn,itemHoverColor:Et,lineType:Ot,colorSplit:yn,itemDisabledColor:Tn,dangerItemColor:qn,dangerItemHoverColor:vi,dangerItemSelectedColor:gi,dangerItemActiveBg:wi,dangerItemSelectedBg:_n,itemHoverBg:yr,itemActiveBg:ir,menuSubMenuBg:fr,horizontalItemSelectedColor:xr,horizontalItemSelectedBg:jr,horizontalItemBorderRadius:Ki,horizontalItemHoverBg:Ir,popupBg:Vi}=Zt;return{[`${mt}-${Xt}, ${mt}-${Xt} > ${mt}`]:{color:tt,background:pt,[`&${mt}-root:focus-visible`]:Object.assign({},Ze(Zt)),[`${mt}-item-group-title`]:{color:Lt},[`${mt}-submenu-selected`]:{[`> ${mt}-submenu-title`]:{color:Wt}},[`${mt}-item-disabled, ${mt}-submenu-disabled`]:{color:`${Tn} !important`},[`${mt}-item:not(${mt}-item-selected):not(${mt}-submenu-selected)`]:{[`&:hover, > ${mt}-submenu-title:hover`]:{color:Et}},[`&:not(${mt}-horizontal)`]:{[`${mt}-item:not(${mt}-item-selected)`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:ir}},[`${mt}-submenu-title`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:ir}}},[`${mt}-item-danger`]:{color:qn,[`&${mt}-item:hover`]:{[`&:not(${mt}-item-selected):not(${mt}-submenu-selected)`]:{color:vi}},[`&${mt}-item:active`]:{background:wi}},[`${mt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${mt}-item-selected`]:{color:Wt,[`&${mt}-item-danger`]:{color:gi},"a, a:hover":{color:"inherit"}},[`& ${mt}-item-selected`]:{backgroundColor:Oe,[`&${mt}-item-danger`]:{backgroundColor:_n}},[`${mt}-item, ${mt}-submenu-title`]:{[`&:not(${mt}-item-disabled):focus-visible`]:Object.assign({},Ze(Zt))},[`&${mt}-submenu > ${mt}`]:{backgroundColor:fr},[`&${mt}-popup > ${mt}`]:{backgroundColor:Vi},[`&${mt}-horizontal`]:Object.assign(Object.assign({},Xt==="dark"?{borderBottom:0}:{}),{[`> ${mt}-item, > ${mt}-submenu`]:{top:ke,marginTop:-ke,marginBottom:0,borderRadius:Ki,"&::after":{position:"absolute",insetInline:on,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${Ve} ${Be}`,content:'""'},"&:hover, &-active, &-open":{background:Ir,"&::after":{borderBottomWidth:we,borderBottomColor:xr}},"&-selected":{color:xr,backgroundColor:jr,"&:hover":{backgroundColor:jr},"&::after":{borderBottomWidth:we,borderBottomColor:xr}}}}),[`&${mt}-root`]:{[`&${mt}-inline, &${mt}-vertical`]:{borderInlineEnd:`${ke}px ${Ot} ${yn}`}},[`&${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 ${Wt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${mn} ${dt}`,`opacity ${mn} ${dt}`].join(","),content:'""'},[`&${mt}-item-danger`]:{"&::after":{borderInlineEndColor:gi}}},[`${mt}-selected, ${mt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${mn} ${Be}`,`opacity ${mn} ${Be}`].join(",")}}}}}};const Vt=Zt=>{const{componentCls:Xt,itemHeight:mt,itemMarginInline:tt,padding:Wt,menuArrowSize:Lt,marginXS:pt,itemMarginBlock:nt}=Zt,Oe=Wt+Lt+pt;return{[`${Xt}-item`]:{position:"relative",overflow:"hidden"},[`${Xt}-item, ${Xt}-submenu-title`]:{height:mt,lineHeight:`${mt}px`,paddingInline:Wt,overflow:"hidden",textOverflow:"ellipsis",marginInline:tt,marginBlock:nt,width:`calc(100% - ${tt*2}px)`},[`> ${Xt}-item,
|
|
|
> ${Xt}-submenu > ${Xt}-submenu-title`]:{height:mt,lineHeight:`${mt}px`},[`${Xt}-item-group-list ${Xt}-submenu-title,
|
|
|
${Xt}-submenu-title`]:{paddingInlineEnd:Oe}}};var Nt=Zt=>{const{componentCls:Xt,iconCls:mt,itemHeight:tt,colorTextLightSolid:Wt,dropdownWidth:Lt,controlHeightLG:pt,motionDurationMid:nt,motionEaseOut:Oe,paddingXL:we,itemMarginInline:ye,fontSizeLG:ke,motionDurationSlow:Ve,paddingXS:Be,boxShadowSecondary:dt,collapsedWidth:on,collapsedIconSize:mn}=Zt,Et={height:tt,lineHeight:`${tt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Xt]:{"&-inline, &-vertical":Object.assign({[`&${Xt}-root`]:{boxShadow:"none"}},Vt(Zt))},[`${Xt}-submenu-popup`]:{[`${Xt}-vertical`]:Object.assign(Object.assign({},Vt(Zt)),{boxShadow:dt})}},{[`${Xt}-submenu-popup ${Xt}-vertical${Xt}-sub`]:{minWidth:Lt,maxHeight:`calc(100vh - ${pt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Xt}-inline`]:{width:"100%",[`&${Xt}-root`]:{[`${Xt}-item, ${Xt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ve}`,`background ${Ve}`,`padding ${nt} ${Oe}`].join(","),[`> ${Xt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Xt}-sub${Xt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Xt}-submenu > ${Xt}-submenu-title`]:Et,[`& ${Xt}-item-group-title`]:{paddingInlineStart:we}},[`${Xt}-item`]:Et}},{[`${Xt}-inline-collapsed`]:{width:on,[`&${Xt}-root`]:{[`${Xt}-item, ${Xt}-submenu ${Xt}-submenu-title`]:{[`> ${Xt}-inline-collapsed-noicon`]:{fontSize:ke,textAlign:"center"}}},[`> ${Xt}-item,
|
|
|
> ${Xt}-item-group > ${Xt}-item-group-list > ${Xt}-item,
|
|
|
> ${Xt}-item-group > ${Xt}-item-group-list > ${Xt}-submenu > ${Xt}-submenu-title,
|
|
|
> ${Xt}-submenu > ${Xt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ke/2}px - ${ye}px)`,textOverflow:"clip",[`
|
|
|
${Xt}-submenu-arrow,
|
|
|
${Xt}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Xt}-item-icon, ${mt}`]:{margin:0,fontSize:mn,lineHeight:`${tt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Xt}-item-icon, ${mt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Xt}-item-icon, ${mt}`]:{display:"none"},"a, a:hover":{color:Wt}},[`${Xt}-item-group-title`]:Object.assign(Object.assign({},Ge.vS),{paddingInline:Be})}}]};const sn=Zt=>{const{componentCls:Xt,motionDurationSlow:mt,motionDurationMid:tt,motionEaseInOut:Wt,motionEaseOut:Lt,iconCls:pt,iconSize:nt,iconMarginInlineEnd:Oe}=Zt;return{[`${Xt}-item, ${Xt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${mt}`,`background ${mt}`,`padding ${mt} ${Wt}`].join(","),[`${Xt}-item-icon, ${pt}`]:{minWidth:nt,fontSize:nt,transition:[`font-size ${tt} ${Lt}`,`margin ${mt} ${Wt}`,`color ${mt}`].join(","),"+ span":{marginInlineStart:Oe,opacity:1,transition:[`opacity ${mt} ${Wt}`,`margin ${mt}`,`color ${mt}`].join(",")}},[`${Xt}-item-icon`]:Object.assign({},(0,Ge.Ro)()),[`&${Xt}-item-only-child`]:{[`> ${pt}, > ${Xt}-item-icon`]:{marginInlineEnd:0}}},[`${Xt}-item-disabled, ${Xt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Xt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Nn=Zt=>{const{componentCls:Xt,motionDurationSlow:mt,motionEaseInOut:tt,borderRadius:Wt,menuArrowSize:Lt,menuArrowOffset:pt}=Zt;return{[`${Xt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Zt.margin,width:Lt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${mt} ${tt}, opacity ${mt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Lt*.6,height:Lt*.15,backgroundColor:"currentcolor",borderRadius:Wt,transition:[`background ${mt} ${tt}`,`transform ${mt} ${tt}`,`top ${mt} ${tt}`,`color ${mt} ${tt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${pt})`},"&::after":{transform:`rotate(-45deg) translateY(${pt})`}}}}},hn=Zt=>{const{antCls:Xt,componentCls:mt,fontSize:tt,motionDurationSlow:Wt,motionDurationMid:Lt,motionEaseInOut:pt,paddingXS:nt,padding:Oe,colorSplit:we,lineWidth:ye,zIndexPopup:ke,borderRadiusLG:Ve,subMenuItemBorderRadius:Be,menuArrowSize:dt,menuArrowOffset:on,lineType:mn,menuPanelMaskInset:Et,groupTitleLineHeight:Ot,groupTitleFontSize:yn}=Zt;return[{"":{[`${mt}`]:Object.assign(Object.assign({},(0,Ge.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,Ge.Wf)(Zt)),(0,Ge.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:tt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Wt} 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:Zt.itemBorderRadius},[`${mt}-item-group-title`]:{padding:`${nt}px ${Oe}px`,fontSize:yn,lineHeight:Ot,transition:`all ${Wt}`},[`&-horizontal ${mt}-submenu`]:{transition:[`border-color ${Wt} ${pt}`,`background ${Wt} ${pt}`].join(",")},[`${mt}-submenu, ${mt}-submenu-inline`]:{transition:[`border-color ${Wt} ${pt}`,`background ${Wt} ${pt}`,`padding ${Lt} ${pt}`].join(",")},[`${mt}-submenu ${mt}-sub`]:{cursor:"initial",transition:[`background ${Wt} ${pt}`,`padding ${Wt} ${pt}`].join(",")},[`${mt}-title-content`]:{transition:`color ${Wt}`},[`${mt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${mt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:mn,borderWidth:0,borderTopWidth:ye,marginBlock:ye,padding:0,"&-dashed":{borderStyle:"dashed"}}}),sn(Zt)),{[`${mt}-item-group`]:{[`${mt}-item-group-list`]:{margin:0,padding:0,[`${mt}-item, ${mt}-submenu-title`]:{paddingInline:`${tt*2}px ${Oe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ke,borderRadius:Ve,boxShadow:"none",transformOrigin:"0 0",[`&${mt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Et}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Et},"\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:Zt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Zt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Zt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Zt.paddingXS},[`> ${mt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ve},sn(Zt)),Nn(Zt)),{[`${mt}-item, ${mt}-submenu > ${mt}-submenu-title`]:{borderRadius:Be},[`${mt}-submenu-title::after`]:{transition:`transform ${Wt} ${pt}`}})}}),Nn(Zt)),{[`&-inline-collapsed ${mt}-submenu-arrow,
|
|
|
&-inline ${mt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${on})`},"&::after":{transform:`rotate(45deg) translateX(-${on})`}},[`${mt}-submenu-open${mt}-submenu-inline > ${mt}-submenu-title > ${mt}-submenu-arrow`]:{transform:`translateY(-${dt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${on})`},"&::before":{transform:`rotate(45deg) translateX(${on})`}}})},{[`${Xt}-layout-header`]:{[mt]:{lineHeight:"inherit"}}}]};var Xn=(Zt,Xt)=>(0,Dt.Z)("Menu",tt=>{if(Xt===!1)return[];const{colorBgElevated:Wt,colorPrimary:Lt,colorTextLightSolid:pt,controlHeightLG:nt,fontSize:Oe,darkItemColor:we,darkDangerItemColor:ye,darkItemBg:ke,darkSubMenuItemBg:Ve,darkItemSelectedColor:Be,darkItemSelectedBg:dt,darkDangerItemSelectedBg:on,darkItemHoverBg:mn,darkGroupTitleColor:Et,darkItemHoverColor:Ot,darkItemDisabledColor:yn,darkDangerItemHoverColor:Tn,darkDangerItemSelectedColor:qn,darkDangerItemActiveBg:vi}=tt,gi=Oe/7*5,wi=(0,vt.TS)(tt,{menuArrowSize:gi,menuHorizontalHeight:nt*1.15,menuArrowOffset:`${gi*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Wt}),_n=(0,vt.TS)(wi,{itemColor:we,itemHoverColor:Ot,groupTitleColor:Et,itemSelectedColor:Be,itemBg:ke,popupBg:ke,subMenuItemBg:Ve,itemActiveBg:"transparent",itemSelectedBg:dt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:mn,itemDisabledColor:yn,dangerItemColor:ye,dangerItemHoverColor:Tn,dangerItemSelectedColor:qn,dangerItemActiveBg:vi,dangerItemSelectedBg:on,menuSubMenuBg:Ve,horizontalItemSelectedColor:pt,horizontalItemSelectedBg:Lt});return[hn(wi),Rt(wi),Nt(wi),Yt(wi,"light"),Yt(_n,"dark"),at(wi),(0,We.Z)(wi),(0,bt.oN)(wi,"slide-up"),(0,bt.oN)(wi,"slide-down"),(0,Qe._y)(wi,"zoom-big")]},tt=>{const{colorPrimary:Wt,colorError:Lt,colorTextDisabled:pt,colorErrorBg:nt,colorText:Oe,colorTextDescription:we,colorBgContainer:ye,colorFillAlter:ke,colorFillContent:Ve,lineWidth:Be,lineWidthBold:dt,controlItemBgActive:on,colorBgTextHover:mn,controlHeightLG:Et,lineHeight:Ot,colorBgElevated:yn,marginXXS:Tn,padding:qn,fontSize:vi,controlHeightSM:gi,fontSizeLG:wi,colorTextLightSolid:_n,colorErrorHover:yr}=tt,ir=new je.C(_n).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:tt.zIndexPopupBase+50,radiusItem:tt.borderRadiusLG,itemBorderRadius:tt.borderRadiusLG,radiusSubMenuItem:tt.borderRadiusSM,subMenuItemBorderRadius:tt.borderRadiusSM,colorItemText:Oe,itemColor:Oe,colorItemTextHover:Oe,itemHoverColor:Oe,colorItemTextHoverHorizontal:Wt,horizontalItemHoverColor:Wt,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Wt,itemSelectedColor:Wt,colorItemTextSelectedHorizontal:Wt,horizontalItemSelectedColor:Wt,colorItemBg:ye,itemBg:ye,colorItemBgHover:mn,itemHoverBg:mn,colorItemBgActive:Ve,itemActiveBg:on,colorSubItemBg:ke,subMenuItemBg:ke,colorItemBgSelected:on,itemSelectedBg:on,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:dt,activeBarHeight:dt,colorActiveBarBorderSize:Be,activeBarBorderWidth:Be,colorItemTextDisabled:pt,itemDisabledColor:pt,colorDangerItemText:Lt,dangerItemColor:Lt,colorDangerItemTextHover:Lt,dangerItemHoverColor:Lt,colorDangerItemTextSelected:Lt,dangerItemSelectedColor:Lt,colorDangerItemBgActive:nt,dangerItemActiveBg:nt,colorDangerItemBgSelected:nt,dangerItemSelectedBg:nt,itemMarginInline:tt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Et,groupTitleLineHeight:Ot,collapsedWidth:Et*2,popupBg:yn,itemMarginBlock:Tn,itemPaddingInline:qn,horizontalLineHeight:`${Et*1.15}px`,iconSize:vi,iconMarginInlineEnd:gi-vi,collapsedIconSize:wi,groupTitleFontSize:vi,darkItemDisabledColor:new je.C(_n).setAlpha(.25).toRgbString(),darkItemColor:ir,darkDangerItemColor:Lt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_n,darkItemSelectedBg:Wt,darkDangerItemSelectedBg:Lt,darkItemHoverBg:"transparent",darkGroupTitleColor:ir,darkItemHoverColor:_n,darkDangerItemHoverColor:yr,darkDangerItemSelectedColor:_n,darkDangerItemActiveBg:Lt}},{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"]]})(Zt),Ft=function(Zt,Xt){var mt={};for(var tt in Zt)Object.prototype.hasOwnProperty.call(Zt,tt)&&Xt.indexOf(tt)<0&&(mt[tt]=Zt[tt]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,tt=Object.getOwnPropertySymbols(Zt);Wt<tt.length;Wt++)Xt.indexOf(tt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(Zt,tt[Wt])&&(mt[tt[Wt]]=Zt[tt[Wt]]);return mt},Kn=(0,Ie.forwardRef)((Zt,Xt)=>{var mt,tt;const Wt=Ie.useContext(Pe.Z),Lt=Wt||{},{getPrefixCls:pt,getPopupContainer:nt,direction:Oe,menu:we}=Ie.useContext(it.E_),ye=pt(),{prefixCls:ke,className:Ve,style:Be,theme:dt="light",expandIcon:on,_internalDisableMenuItemTitleTooltip:mn,inlineCollapsed:Et,siderCollapsed:Ot,items:yn,children:Tn,rootClassName:qn,mode:vi,selectable:gi,onClick:wi,overflowedIndicatorPopupClassName:_n}=Zt,yr=Ft(Zt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ir=(0,et.Z)(yr,["collapsedWidth"]),fr=Re(yn)||Tn;(mt=Lt.validator)===null||mt===void 0||mt.call(Lt,{mode:vi});const xr=(0,xe.useEvent)(function(){var qr;wi==null||wi.apply(void 0,arguments),(qr=Lt.onClick)===null||qr===void 0||qr.call(Lt)}),jr=Lt.mode||vi,Ki=gi!=null?gi:Lt.selectable,Ir=Ie.useMemo(()=>Ot!==void 0?Ot:Et,[Et,Ot]),Vi={horizontal:{motionName:`${ye}-slide-up`},inline:(0,Ae.Z)(ye),other:{motionName:`${ye}-zoom-big`}},Me=pt("menu",ke||Lt.prefixCls),[Ai,Xi]=Xn(Me,!Wt),gr=He()(`${Me}-${dt}`,we==null?void 0:we.className,Ve);let tr;if(typeof on=="function")tr=on;else if(on===null||on===!1)tr=null;else if(Lt.expandIcon===null||Lt.expandIcon===!1)tr=null;else{const qr=on!=null?on:Lt.expandIcon;tr=(0,Ue.Tm)(qr,{className:He()(`${Me}-submenu-expand-icon`,(0,Ue.l$)(qr)?(tt=qr.props)===null||tt===void 0?void 0:tt.className:"")})}const uo=Ie.useMemo(()=>({prefixCls:Me,inlineCollapsed:Ir||!1,direction:Oe,firstLevel:!0,theme:dt,mode:jr,disableMenuItemTitleTooltip:mn}),[Me,Ir,Oe,mn,dt]);return Ai(Ie.createElement(Pe.Z.Provider,{value:null},Ie.createElement(ee.Provider,{value:uo},Ie.createElement(ge.ZP,Object.assign({getPopupContainer:nt,overflowedIndicator:Ie.createElement(ve.Z,null),overflowedIndicatorPopupClassName:He()(Me,`${Me}-${dt}`,_n),mode:jr,selectable:Ki,onClick:xr},ir,{inlineCollapsed:Ir,style:Object.assign(Object.assign({},we==null?void 0:we.style),Be),className:gr,prefixCls:Me,direction:Oe,defaultMotions:Vi,expandIcon:tr,ref:Xt,rootClassName:He()(qn,Xi)}),fr))))});const ti=(0,Ie.forwardRef)((Zt,Xt)=>{const mt=(0,Ie.useRef)(null),tt=Ie.useContext(Ke.D);return(0,Ie.useImperativeHandle)(Xt,()=>({menu:mt.current,focus:Wt=>{var Lt;(Lt=mt.current)===null||Lt===void 0||Lt.focus(Wt)}})),Ie.createElement(Kn,Object.assign({ref:mt},Zt,tt))});ti.Item=ue,ti.SubMenu=de,ti.Divider=ct,ti.ItemGroup=ge.BW;var Fn=ti},25700:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Lt}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(nt,Oe){return Ie.createElement(He.Z,(0,ge.Z)({},nt,{ref:Oe,icon:ot}))},be=Ie.forwardRef(it),yt=be,ct=he(93343),Xe=he(16537),et=he(53878),Je=he(92310),Ue=he.n(Je),Ee=he(80962),ee=he(57259),te=he(79545),ue=he(68550),oe=he(17928),de=he(7711),ve=he(36994),xe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ae=xe,Pe=he(91735),Ne=function(pt){(0,oe.Z)(Oe,pt);var nt=(0,de.Z)(Oe);function Oe(){var we;(0,te.Z)(this,Oe);for(var ye=arguments.length,ke=new Array(ye),Ve=0;Ve<ye;Ve++)ke[Ve]=arguments[Ve];return we=nt.call.apply(nt,[this].concat(ke)),we.state={goInputText:""},we.getValidValue=function(){var Be=we.state.goInputText;return!Be||Number.isNaN(Be)?void 0:Number(Be)},we.buildOptionText=function(Be){return"".concat(Be," ").concat(we.props.locale.items_per_page)},we.changeSize=function(Be){we.props.changeSize(Number(Be))},we.handleChange=function(Be){we.setState({goInputText:Be.target.value})},we.handleBlur=function(Be){var dt=we.props,on=dt.goButton,mn=dt.quickGo,Et=dt.rootPrefixCls,Ot=we.state.goInputText;on||Ot===""||(we.setState({goInputText:""}),!(Be.relatedTarget&&(Be.relatedTarget.className.indexOf("".concat(Et,"-item-link"))>=0||Be.relatedTarget.className.indexOf("".concat(Et,"-item"))>=0))&&mn(we.getValidValue()))},we.go=function(Be){var dt=we.state.goInputText;dt!==""&&(Be.keyCode===Ae.ENTER||Be.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,Ve=ye.pageSizeOptions;return Ve.some(function(Be){return Be.toString()===ke.toString()})?Ve:Ve.concat([ke.toString()]).sort(function(Be,dt){var on=Number.isNaN(Number(Be))?0:Number(Be),mn=Number.isNaN(Number(dt))?0:Number(dt);return on-mn})}},{key:"render",value:function(){var ye=this,ke=this.props,Ve=ke.pageSize,Be=ke.locale,dt=ke.rootPrefixCls,on=ke.changeSize,mn=ke.quickGo,Et=ke.goButton,Ot=ke.selectComponentClass,yn=ke.buildOptionText,Tn=ke.selectPrefixCls,qn=ke.disabled,vi=this.state.goInputText,gi="".concat(dt,"-options"),wi=Ot,_n=null,yr=null,ir=null;if(!on&&!mn)return null;var fr=this.getPageSizeOptions();if(on&&wi){var xr=fr.map(function(jr,Ki){return Ie.createElement(wi.Option,{key:Ki,value:jr.toString()},(yn||ye.buildOptionText)(jr))});_n=Ie.createElement(wi,{disabled:qn,prefixCls:Tn,showSearch:!1,className:"".concat(gi,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ve||fr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ki){return Ki.parentNode},"aria-label":Be.page_size,defaultOpen:!1},xr)}return mn&&(Et&&(ir=typeof Et=="boolean"?Ie.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:qn,className:"".concat(gi,"-quick-jumper-button")},Be.jump_to_confirm):Ie.createElement("span",{onClick:this.go,onKeyUp:this.go},Et)),yr=Ie.createElement("div",{className:"".concat(gi,"-quick-jumper")},Be.jump_to,Ie.createElement("input",{disabled:qn,type:"text",value:vi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Be.page}),Be.page,ir)),Ie.createElement("li",{className:"".concat(gi)},_n,yr)}}]),Oe}(Ie.Component);Ne.defaultProps={pageSizeOptions:["10","20","50","100"]};var Le=Ne,Re=function(nt){var Oe,we=nt.rootPrefixCls,ye=nt.page,ke=nt.active,Ve=nt.className,Be=nt.showTitle,dt=nt.onClick,on=nt.onKeyPress,mn=nt.itemRender,Et="".concat(we,"-item"),Ot=Ue()(Et,"".concat(Et,"-").concat(ye),(Oe={},(0,Ee.Z)(Oe,"".concat(Et,"-active"),ke),(0,Ee.Z)(Oe,"".concat(Et,"-disabled"),!ye),(0,Ee.Z)(Oe,nt.className,Ve),Oe)),yn=function(){dt(ye)},Tn=function(gi){on(gi,dt,ye)},qn=mn(ye,"page",Ie.createElement("a",{rel:"nofollow"},ye));return qn?Ie.createElement("li",{title:Be?ye.toString():null,className:Ot,onClick:yn,onKeyPress:Tn,tabIndex:0},qn):null},je=Re;function Ge(){}function We(pt){var nt=Number(pt);return typeof nt=="number"&&!Number.isNaN(nt)&&isFinite(nt)&&Math.floor(nt)===nt}var bt=function(nt,Oe,we){return we};function Qe(pt,nt,Oe){var we=typeof pt=="undefined"?nt.pageSize:pt;return Math.floor((Oe.total-1)/we)+1}var Dt=function(pt){(0,oe.Z)(Oe,pt);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(Qe(void 0,ye.state,ye.props),ye.state.current+(ye.props.showLessItems?3:5))},ye.getItemIcon=function(on,mn){var Et=ye.props.prefixCls,Ot=on||Ie.createElement("button",{type:"button","aria-label":mn,className:"".concat(Et,"-item-link")});return typeof on=="function"&&(Ot=Ie.createElement(on,(0,ee.Z)({},ye.props))),Ot},ye.isValid=function(on){var mn=ye.props.total;return We(on)&&on!==ye.state.current&&We(mn)&&mn>0},ye.shouldDisplayQuickJumper=function(){var on=ye.props,mn=on.showQuickJumper,Et=on.total,Ot=ye.state.pageSize;return Et<=Ot?!1:mn},ye.handleKeyDown=function(on){(on.keyCode===Ae.ARROW_UP||on.keyCode===Ae.ARROW_DOWN)&&on.preventDefault()},ye.handleKeyUp=function(on){var mn=ye.getValidValue(on),Et=ye.state.currentInputValue;mn!==Et&&ye.setState({currentInputValue:mn}),on.keyCode===Ae.ENTER?ye.handleChange(mn):on.keyCode===Ae.ARROW_UP?ye.handleChange(mn-1):on.keyCode===Ae.ARROW_DOWN&&ye.handleChange(mn+1)},ye.handleBlur=function(on){var mn=ye.getValidValue(on);ye.handleChange(mn)},ye.changePageSize=function(on){var mn=ye.state.current,Et=Qe(on,ye.state,ye.props);mn=mn>Et?Et:mn,Et===0&&(mn=ye.state.current),typeof on=="number"&&("pageSize"in ye.props||ye.setState({pageSize:on}),"current"in ye.props||ye.setState({current:mn,currentInputValue:mn})),ye.props.onShowSizeChange(mn,on),"onChange"in ye.props&&ye.props.onChange&&ye.props.onChange(mn,on)},ye.handleChange=function(on){var mn=ye.props,Et=mn.disabled,Ot=mn.onChange,yn=ye.state,Tn=yn.pageSize,qn=yn.current,vi=yn.currentInputValue;if(ye.isValid(on)&&!Et){var gi=Qe(void 0,ye.state,ye.props),wi=on;return on>gi?wi=gi:on<1&&(wi=1),"current"in ye.props||ye.setState({current:wi}),wi!==vi&&ye.setState({currentInputValue:wi}),Ot(wi,Tn),wi}return qn},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<Qe(void 0,ye.state,ye.props)},ye.runIfEnter=function(on,mn){if(on.key==="Enter"||on.charCode===13){for(var Et=arguments.length,Ot=new Array(Et>2?Et-2:0),yn=2;yn<Et;yn++)Ot[yn-2]=arguments[yn];mn.apply(void 0,Ot)}},ye.runIfEnterPrev=function(on){ye.runIfEnter(on,ye.prev)},ye.runIfEnterNext=function(on){ye.runIfEnter(on,ye.next)},ye.runIfEnterJumpPrev=function(on){ye.runIfEnter(on,ye.jumpPrev)},ye.runIfEnterJumpNext=function(on){ye.runIfEnter(on,ye.jumpNext)},ye.handleGoTO=function(on){(on.keyCode===Ae.ENTER||on.type==="click")&&ye.handleChange(ye.state.currentInputValue)},ye.renderPrev=function(on){var mn=ye.props,Et=mn.prevIcon,Ot=mn.itemRender,yn=Ot(on,"prev",ye.getItemIcon(Et,"prev page")),Tn=!ye.hasPrev();return(0,Ie.isValidElement)(yn)?(0,Ie.cloneElement)(yn,{disabled:Tn}):yn},ye.renderNext=function(on){var mn=ye.props,Et=mn.nextIcon,Ot=mn.itemRender,yn=Ot(on,"next",ye.getItemIcon(Et,"next page")),Tn=!ye.hasNext();return(0,Ie.isValidElement)(yn)?(0,Ie.cloneElement)(yn,{disabled:Tn}):yn};var ke=we.onChange!==Ge,Ve="current"in we;Ve&&!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 Be=we.defaultCurrent;"current"in we&&(Be=we.current);var dt=we.defaultPageSize;return"pageSize"in we&&(dt=we.pageSize),Be=Math.min(Be,Qe(dt,void 0,we)),ye.state={current:Be,currentInputValue:Be,pageSize:dt},ye}return(0,ue.Z)(Oe,[{key:"componentDidUpdate",value:function(ye,ke){var Ve=this.props.prefixCls;if(ke.current!==this.state.current&&this.paginationNode.current){var Be=this.paginationNode.current.querySelector(".".concat(Ve,"-item-").concat(ke.current));if(Be&&document.activeElement===Be){var dt;Be==null||(dt=Be.blur)===null||dt===void 0||dt.call(Be)}}}},{key:"getValidValue",value:function(ye){var ke=ye.target.value,Ve=Qe(void 0,this.state,this.props),Be=this.state.currentInputValue,dt;return ke===""?dt=ke:Number.isNaN(Number(ke))?dt=Be:ke>=Ve?dt=Ve:dt=Number(ke),dt}},{key:"getShowSizeChanger",value:function(){var ye=this.props,ke=ye.showSizeChanger,Ve=ye.total,Be=ye.totalBoundaryShowSizeChanger;return typeof ke!="undefined"?ke:Ve>Be}},{key:"render",value:function(){var ye=this.props,ke=ye.prefixCls,Ve=ye.className,Be=ye.style,dt=ye.disabled,on=ye.hideOnSinglePage,mn=ye.total,Et=ye.locale,Ot=ye.showQuickJumper,yn=ye.showLessItems,Tn=ye.showTitle,qn=ye.showTotal,vi=ye.simple,gi=ye.itemRender,wi=ye.showPrevNextJumpers,_n=ye.jumpPrevIcon,yr=ye.jumpNextIcon,ir=ye.selectComponentClass,fr=ye.selectPrefixCls,xr=ye.pageSizeOptions,jr=this.state,Ki=jr.current,Ir=jr.pageSize,Vi=jr.currentInputValue;if(on===!0&&mn<=Ir)return null;var Me=Qe(void 0,this.state,this.props),Ai=[],Xi=null,gr=null,tr=null,uo=null,qr=null,Ni=Ot&&Ot.goButton,an=yn?1:2,en=Ki-1>0?Ki-1:0,Kt=Ki+1<Me?Ki+1:Me,Pt=(0,ve.Z)(this.props,{aria:!0,data:!0}),Sn=qn&&Ie.createElement("li",{className:"".concat(ke,"-total-text")},qn(mn,[mn===0?0:(Ki-1)*Ir+1,Ki*Ir>mn?mn:Ki*Ir]));if(vi){Ni&&(typeof Ni=="boolean"?qr=Ie.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Et.jump_to_confirm):qr=Ie.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ni),qr=Ie.createElement("li",{title:Tn?"".concat(Et.jump_to).concat(Ki,"/").concat(Me):null,className:"".concat(ke,"-simple-pager")},qr));var bn=this.renderPrev(en);return Ie.createElement("ul",(0,ge.Z)({className:Ue()(ke,"".concat(ke,"-simple"),(0,Ee.Z)({},"".concat(ke,"-disabled"),dt),Ve),style:Be,ref:this.paginationNode},Pt),Sn,bn?Ie.createElement("li",{title:Tn?Et.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ue()("".concat(ke,"-prev"),(0,Ee.Z)({},"".concat(ke,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},bn):null,Ie.createElement("li",{title:Tn?"".concat(Ki,"/").concat(Me):null,className:"".concat(ke,"-simple-pager")},Ie.createElement("input",{type:"text",value:Vi,disabled:dt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ie.createElement("span",{className:"".concat(ke,"-slash")},"/"),Me),Ie.createElement("li",{title:Tn?Et.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ue()("".concat(ke,"-next"),(0,Ee.Z)({},"".concat(ke,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Kt)),qr)}if(Me<=3+an*2){var zt={locale:Et,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Tn,itemRender:gi};Me||Ai.push(Ie.createElement(je,(0,ge.Z)({},zt,{key:"noPager",page:1,className:"".concat(ke,"-item-disabled")})));for(var gt=1;gt<=Me;gt+=1){var xn=Ki===gt;Ai.push(Ie.createElement(je,(0,ge.Z)({},zt,{key:gt,page:gt,active:xn})))}}else{var Ln=yn?Et.prev_3:Et.prev_5,pi=yn?Et.next_3:Et.next_5,Mn=gi(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(_n,"prev page")),It=gi(this.getJumpNextPage(),"jump-next",this.getItemIcon(yr,"next page"));wi&&(Xi=Mn?Ie.createElement("li",{title:Tn?Ln:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ue()("".concat(ke,"-jump-prev"),(0,Ee.Z)({},"".concat(ke,"-jump-prev-custom-icon"),!!_n))},Mn):null,gr=It?Ie.createElement("li",{title:Tn?pi:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ue()("".concat(ke,"-jump-next"),(0,Ee.Z)({},"".concat(ke,"-jump-next-custom-icon"),!!yr))},It):null),uo=Ie.createElement(je,{locale:Et,last:!0,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Me,page:Me,active:!1,showTitle:Tn,itemRender:gi}),tr=Ie.createElement(je,{locale:Et,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Tn,itemRender:gi});var gn=Math.max(1,Ki-an),nn=Math.min(Ki+an,Me);Ki-1<=an&&(nn=1+an*2),Me-Ki<=an&&(gn=Me-an*2);for(var ui=gn;ui<=nn;ui+=1){var Qt=Ki===ui;Ai.push(Ie.createElement(je,{locale:Et,rootPrefixCls:ke,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ui,page:ui,active:Qt,showTitle:Tn,itemRender:gi}))}Ki-1>=an*2&&Ki!==3&&(Ai[0]=(0,Ie.cloneElement)(Ai[0],{className:"".concat(ke,"-item-after-jump-prev")}),Ai.unshift(Xi)),Me-Ki>=an*2&&Ki!==Me-2&&(Ai[Ai.length-1]=(0,Ie.cloneElement)(Ai[Ai.length-1],{className:"".concat(ke,"-item-before-jump-next")}),Ai.push(gr)),gn!==1&&Ai.unshift(tr),nn!==Me&&Ai.push(uo)}var Cn=!this.hasPrev()||!Me,$t=!this.hasNext()||!Me,vn=this.renderPrev(en),En=this.renderNext(Kt);return Ie.createElement("ul",(0,ge.Z)({className:Ue()(ke,Ve,(0,Ee.Z)({},"".concat(ke,"-disabled"),dt)),style:Be,ref:this.paginationNode},Pt),Sn,vn?Ie.createElement("li",{title:Tn?Et.prev_page:null,onClick:this.prev,tabIndex:Cn?null:0,onKeyPress:this.runIfEnterPrev,className:Ue()("".concat(ke,"-prev"),(0,Ee.Z)({},"".concat(ke,"-disabled"),Cn)),"aria-disabled":Cn},vn):null,Ai,En?Ie.createElement("li",{title:Tn?Et.next_page:null,onClick:this.next,tabIndex:$t?null:0,onKeyPress:this.runIfEnterNext,className:Ue()("".concat(ke,"-next"),(0,Ee.Z)({},"".concat(ke,"-disabled"),$t)),"aria-disabled":$t},En):null,Ie.createElement(Le,{disabled:dt,locale:Et,rootPrefixCls:ke,selectComponentClass:ir,selectPrefixCls:fr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ki,pageSize:Ir,pageSizeOptions:xr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ni}))}}],[{key:"getDerivedStateFromProps",value:function(ye,ke){var Ve={};if("current"in ye&&(Ve.current=ye.current,ye.current!==ke.current&&(Ve.currentInputValue=Ve.current)),"pageSize"in ye&&ye.pageSize!==ke.pageSize){var Be=ke.current,dt=Qe(ye.pageSize,ke,ye);Be=Be>dt?dt:Be,"current"in ye||(Ve.current=Be,Ve.currentInputValue=Be),Ve.pageSize=ye.pageSize}return Ve}}]),Oe}(Ie.Component);Dt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ge,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ge,locale:Pe.Z,style:{},itemRender:bt,totalBoundaryShowSizeChanger:50};var vt=Dt,kt=he(22075),Rt=he(36355),Jt=he(19716),at=he(8628),Ze=he(9763),Mt=he(57809);const Yt=pt=>Ie.createElement(Mt.default,Object.assign({},pt,{showSearch:!0,size:"small"})),Vt=pt=>Ie.createElement(Mt.default,Object.assign({},pt,{showSearch:!0,size:"middle"}));Yt.Option=Mt.default.Option,Vt.Option=Mt.default.Option;var Ct=he(9937),Nt=he(17313),sn=he(83116),Nn=he(37613);const hn=pt=>{const{componentCls:nt}=pt;return{[`${nt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${nt}-item-link`]:{color:pt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${nt}-item-link`]:{color:pt.colorTextDisabled,cursor:"not-allowed"}}},[`&${nt}-disabled`]:{cursor:"not-allowed",[`${nt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:pt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:pt.colorBorder,backgroundColor:pt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:pt.itemActiveBgDisabled},a:{color:pt.itemActiveColorDisabled}}},[`${nt}-item-link`]:{color:pt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${nt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${nt}-simple-pager`]:{color:pt.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"}}}}}},Xn=pt=>{const{componentCls:nt}=pt;return{[`&${nt}-mini ${nt}-total-text, &${nt}-mini ${nt}-simple-pager`]:{height:pt.itemSizeSM,lineHeight:`${pt.itemSizeSM}px`},[`&${nt}-mini ${nt}-item`]:{minWidth:pt.itemSizeSM,height:pt.itemSizeSM,margin:0,lineHeight:`${pt.itemSizeSM-2}px`},[`&${nt}-mini:not(${nt}-disabled) ${nt}-item:not(${nt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:pt.colorBgTextHover},"&:active":{backgroundColor:pt.colorBgTextActive}},[`&${nt}-mini ${nt}-prev, &${nt}-mini ${nt}-next`]:{minWidth:pt.itemSizeSM,height:pt.itemSizeSM,margin:0,lineHeight:`${pt.itemSizeSM}px`},[`&${nt}-mini:not(${nt}-disabled)`]:{[`${nt}-prev, ${nt}-next`]:{[`&:hover ${nt}-item-link`]:{backgroundColor:pt.colorBgTextHover},[`&:active ${nt}-item-link`]:{backgroundColor:pt.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:pt.itemSizeSM,lineHeight:`${pt.itemSizeSM}px`}},[`&${nt}-mini ${nt}-jump-prev, &${nt}-mini ${nt}-jump-next`]:{height:pt.itemSizeSM,marginInlineEnd:0,lineHeight:`${pt.itemSizeSM}px`},[`&${nt}-mini ${nt}-options`]:{marginInlineStart:pt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:pt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:pt.itemSizeSM,lineHeight:`${pt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ct.x0)(pt)),{width:pt.paginationMiniQuickJumperInputWidth,height:pt.controlHeightSM})}}}},Ft=pt=>{const{componentCls:nt}=pt;return{[`
|
|
|
&${nt}-simple ${nt}-prev,
|
|
|
&${nt}-simple ${nt}-next
|
|
|
`]:{height:pt.itemSizeSM,lineHeight:`${pt.itemSizeSM}px`,verticalAlign:"top",[`${nt}-item-link`]:{height:pt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:pt.colorBgTextHover},"&:active":{backgroundColor:pt.colorBgTextActive},"&::after":{height:pt.itemSizeSM,lineHeight:`${pt.itemSizeSM}px`}}},[`&${nt}-simple ${nt}-simple-pager`]:{display:"inline-block",height:pt.itemSizeSM,marginInlineEnd:pt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:pt.marginXS,padding:`0 ${pt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:pt.itemInputBg,border:`${pt.lineWidth}px ${pt.lineType} ${pt.colorBorder}`,borderRadius:pt.borderRadius,outline:"none",transition:`border-color ${pt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:pt.colorPrimary},"&:focus":{borderColor:pt.colorPrimaryHover,boxShadow:`${pt.inputOutlineOffset}px 0 ${pt.controlOutlineWidth}px ${pt.controlOutline}`},"&[disabled]":{color:pt.colorTextDisabled,backgroundColor:pt.colorBgContainerDisabled,borderColor:pt.colorBorder,cursor:"not-allowed"}}}}},Un=pt=>{const{componentCls:nt}=pt;return{[`${nt}-jump-prev, ${nt}-jump-next`]:{outline:0,[`${nt}-item-container`]:{position:"relative",[`${nt}-item-link-icon`]:{color:pt.colorPrimary,fontSize:pt.fontSizeSM,opacity:0,transition:`all ${pt.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:pt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:pt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:pt.paginationEllipsisTextIndent,opacity:1,transition:`all ${pt.motionDurationMid}`}},"&:hover":{[`${nt}-item-link-icon`]:{opacity:1},[`${nt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${nt}-prev,
|
|
|
${nt}-jump-prev,
|
|
|
${nt}-jump-next
|
|
|
`]:{marginInlineEnd:pt.marginXS},[`
|
|
|
${nt}-prev,
|
|
|
${nt}-next,
|
|
|
${nt}-jump-prev,
|
|
|
${nt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:pt.itemSize,height:pt.itemSize,color:pt.colorText,fontFamily:pt.fontFamily,lineHeight:`${pt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:pt.borderRadius,cursor:"pointer",transition:`all ${pt.motionDurationMid}`},[`${nt}-prev, ${nt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:pt.colorText,cursor:"pointer",userSelect:"none"},[`${nt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:pt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${pt.lineWidth}px ${pt.lineType} transparent`,borderRadius:pt.borderRadius,outline:"none",transition:`all ${pt.motionDurationMid}`},[`&:hover ${nt}-item-link`]:{backgroundColor:pt.colorBgTextHover},[`&:active ${nt}-item-link`]:{backgroundColor:pt.colorBgTextActive},[`&${nt}-disabled:hover`]:{[`${nt}-item-link`]:{backgroundColor:"transparent"}}},[`${nt}-slash`]:{marginInlineEnd:pt.paginationSlashMarginInlineEnd,marginInlineStart:pt.paginationSlashMarginInlineStart},[`${nt}-options`]:{display:"inline-block",marginInlineStart:pt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:pt.controlHeight,marginInlineStart:pt.marginXS,lineHeight:`${pt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ct.ik)(pt)),{width:pt.controlHeightLG*1.25,height:pt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:pt.marginXS,marginInlineEnd:pt.marginXS})}}}},Kn=pt=>{const{componentCls:nt}=pt;return{[`${nt}-item`]:{display:"inline-block",minWidth:pt.itemSize,height:pt.itemSize,marginInlineEnd:pt.marginXS,fontFamily:pt.fontFamily,lineHeight:`${pt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${pt.lineWidth}px ${pt.lineType} transparent`,borderRadius:pt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${pt.paginationItemPaddingInline}px`,color:pt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${nt}-item-active)`]:{"&:hover":{transition:`all ${pt.motionDurationMid}`,backgroundColor:pt.colorBgTextHover},"&:active":{backgroundColor:pt.colorBgTextActive}},"&-active":{fontWeight:pt.fontWeightStrong,backgroundColor:pt.itemActiveBg,borderColor:pt.colorPrimary,a:{color:pt.colorPrimary},"&:hover":{borderColor:pt.colorPrimaryHover},"&:hover a":{color:pt.colorPrimaryHover}}}}},ti=pt=>{const{componentCls:nt}=pt;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nt.Wf)(pt)),{"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:pt.itemSize,marginInlineEnd:pt.marginXS,lineHeight:`${pt.itemSize-2}px`,verticalAlign:"middle"}}),Kn(pt)),Un(pt)),Ft(pt)),Xn(pt)),hn(pt)),{[`@media only screen and (max-width: ${pt.screenLG}px)`]:{[`${nt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${pt.screenSM}px)`]:{[`${nt}-options`]:{display:"none"}}}),[`&${pt.componentCls}-rtl`]:{direction:"rtl"}}},Fn=pt=>{const{componentCls:nt}=pt;return{[`${nt}${nt}-disabled:not(${nt}-mini)`]:{"&, &:hover":{[`${nt}-item-link`]:{borderColor:pt.colorBorder}},"&:focus-visible":{[`${nt}-item-link`]:{borderColor:pt.colorBorder}},[`${nt}-item, ${nt}-item-link`]:{backgroundColor:pt.colorBgContainerDisabled,borderColor:pt.colorBorder,[`&:hover:not(${nt}-item-active)`]:{backgroundColor:pt.colorBgContainerDisabled,borderColor:pt.colorBorder,a:{color:pt.colorTextDisabled}},[`&${nt}-item-active`]:{backgroundColor:pt.itemActiveBgDisabled}},[`${nt}-prev, ${nt}-next`]:{"&:hover button":{backgroundColor:pt.colorBgContainerDisabled,borderColor:pt.colorBorder,color:pt.colorTextDisabled},[`${nt}-item-link`]:{backgroundColor:pt.colorBgContainerDisabled,borderColor:pt.colorBorder}}},[`${nt}:not(${nt}-mini)`]:{[`${nt}-prev, ${nt}-next`]:{"&:hover button":{borderColor:pt.colorPrimaryHover,backgroundColor:pt.itemBg},[`${nt}-item-link`]:{backgroundColor:pt.itemLinkBg,borderColor:pt.colorBorder},[`&:hover ${nt}-item-link`]:{borderColor:pt.colorPrimary,backgroundColor:pt.itemBg,color:pt.colorPrimary},[`&${nt}-disabled`]:{[`${nt}-item-link`]:{borderColor:pt.colorBorder,color:pt.colorTextDisabled}}},[`${nt}-item`]:{backgroundColor:pt.itemBg,border:`${pt.lineWidth}px ${pt.lineType} ${pt.colorBorder}`,[`&:hover:not(${nt}-item-active)`]:{borderColor:pt.colorPrimary,backgroundColor:pt.itemBg,a:{color:pt.colorPrimary}},"&-active":{borderColor:pt.colorPrimary}}}}},Zt=pt=>{const{componentCls:nt}=pt;return{[`${nt}:not(${nt}-disabled)`]:{[`${nt}-item`]:Object.assign({},(0,Nt.Qy)(pt)),[`${nt}-jump-prev, ${nt}-jump-next`]:{"&:focus-visible":Object.assign({[`${nt}-item-link-icon`]:{opacity:1},[`${nt}-item-ellipsis`]:{opacity:0}},(0,Nt.oN)(pt))},[`${nt}-prev, ${nt}-next`]:{[`&:focus-visible ${nt}-item-link`]:Object.assign({},(0,Nt.oN)(pt))}}}};var Xt=(0,sn.Z)("Pagination",pt=>{const nt=(0,Nn.TS)(pt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:pt.marginXXS/2,paginationMiniQuickJumperInputWidth:pt.controlHeightLG*1.1,paginationItemPaddingInline:pt.marginXXS*1.5,paginationEllipsisLetterSpacing:pt.marginXXS/2,paginationSlashMarginInlineStart:pt.marginXXS,paginationSlashMarginInlineEnd:pt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ct.e5)(pt),(0,Ct.TM)(pt));return[ti(nt),Zt(nt),pt.wireframe&&Fn(nt)]},pt=>({itemBg:pt.colorBgContainer,itemSize:pt.controlHeight,itemSizeSM:pt.controlHeightSM,itemActiveBg:pt.colorBgContainer,itemLinkBg:pt.colorBgContainer,itemActiveColorDisabled:pt.colorTextDisabled,itemActiveBgDisabled:pt.controlItemBgActiveDisabled,itemInputBg:pt.colorBgContainer,miniOptionsSizeChangerTop:0})),mt=function(pt,nt){var Oe={};for(var we in pt)Object.prototype.hasOwnProperty.call(pt,we)&&nt.indexOf(we)<0&&(Oe[we]=pt[we]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,we=Object.getOwnPropertySymbols(pt);ye<we.length;ye++)nt.indexOf(we[ye])<0&&Object.prototype.propertyIsEnumerable.call(pt,we[ye])&&(Oe[we[ye]]=pt[we[ye]]);return Oe},Wt=pt=>{const{prefixCls:nt,selectPrefixCls:Oe,className:we,rootClassName:ye,style:ke,size:Ve,locale:Be,selectComponentClass:dt,responsive:on,showSizeChanger:mn}=pt,Et=mt(pt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Ot}=(0,at.Z)(on),{getPrefixCls:yn,direction:Tn,pagination:qn={}}=Ie.useContext(Rt.E_),vi=yn("pagination",nt),[gi,wi]=Xt(vi),_n=mn!=null?mn:qn.showSizeChanger,yr=Ie.useMemo(()=>{const Me=Ie.createElement("span",{className:`${vi}-item-ellipsis`},"\u2022\u2022\u2022"),Ai=Ie.createElement("button",{className:`${vi}-item-link`,type:"button",tabIndex:-1},Tn==="rtl"?Ie.createElement(et.Z,null):Ie.createElement(Xe.Z,null)),Xi=Ie.createElement("button",{className:`${vi}-item-link`,type:"button",tabIndex:-1},Tn==="rtl"?Ie.createElement(Xe.Z,null):Ie.createElement(et.Z,null)),gr=Ie.createElement("a",{className:`${vi}-item-link`},Ie.createElement("div",{className:`${vi}-item-container`},Tn==="rtl"?Ie.createElement(ct.Z,{className:`${vi}-item-link-icon`}):Ie.createElement(yt,{className:`${vi}-item-link-icon`}),Me)),tr=Ie.createElement("a",{className:`${vi}-item-link`},Ie.createElement("div",{className:`${vi}-item-container`},Tn==="rtl"?Ie.createElement(yt,{className:`${vi}-item-link-icon`}):Ie.createElement(ct.Z,{className:`${vi}-item-link-icon`}),Me));return{prevIcon:Ai,nextIcon:Xi,jumpPrevIcon:gr,jumpNextIcon:tr}},[Tn,vi]),[ir]=(0,Ze.Z)("Pagination",kt.Z),fr=Object.assign(Object.assign({},ir),Be),xr=(0,Jt.Z)(Ve),jr=xr==="small"||!!(Ot&&!xr&&on),Ki=yn("select",Oe),Ir=Ue()({[`${vi}-mini`]:jr,[`${vi}-rtl`]:Tn==="rtl"},qn==null?void 0:qn.className,we,ye,wi),Vi=Object.assign(Object.assign({},qn==null?void 0:qn.style),ke);return gi(Ie.createElement(vt,Object.assign({},yr,Et,{style:Vi,prefixCls:vi,selectPrefixCls:Ki,className:Ir,selectComponentClass:dt||(jr?Yt:Vt),locale:fr,showSizeChanger:_n})))},Lt=Wt},39722:function(fn,jt,he){"use strict";he.d(jt,{t5:function(){return Xe}});var ge=he(92310),Ie=he.n(ge),Ke=he(55477),ot=he(59301),He=he(36355),it=he(77578),be=he(17356),yt=function(Je,Ue){var Ee={};for(var ee in Je)Object.prototype.hasOwnProperty.call(Je,ee)&&Ue.indexOf(ee)<0&&(Ee[ee]=Je[ee]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,ee=Object.getOwnPropertySymbols(Je);te<ee.length;te++)Ue.indexOf(ee[te])<0&&Object.prototype.propertyIsEnumerable.call(Je,ee[te])&&(Ee[ee[te]]=Je[ee[te]]);return Ee};const ct=(Je,Ue,Ee)=>{if(!(!Ue&&!Ee))return ot.createElement(ot.Fragment,null,Ue&&ot.createElement("div",{className:`${Je}-title`},(0,it.Z)(Ue)),ot.createElement("div",{className:`${Je}-inner-content`},(0,it.Z)(Ee)))},Xe=Je=>{const{hashId:Ue,prefixCls:Ee,className:ee,style:te,placement:ue="top",title:oe,content:de,children:ve}=Je;return ot.createElement("div",{className:Ie()(Ue,Ee,`${Ee}-pure`,`${Ee}-placement-${ue}`,ee),style:te},ot.createElement("div",{className:`${Ee}-arrow`}),ot.createElement(Ke.G,Object.assign({},Je,{className:Ue,prefixCls:Ee}),ve||ct(Ee,oe,de)))},et=Je=>{const{prefixCls:Ue}=Je,Ee=yt(Je,["prefixCls"]),{getPrefixCls:ee}=ot.useContext(He.E_),te=ee("popover",Ue),[ue,oe]=(0,be.Z)(te);return ue(ot.createElement(Xe,Object.assign({},Ee,{prefixCls:te,hashId:oe})))};jt.ZP=et},60324:function(fn,jt,he){"use strict";var ge=he(92310),Ie=he.n(ge),Ke=he(59301),ot=he(77578),He=he(62892),it=he(36355),be=he(6848),yt=he(39722),ct=he(17356),Xe=function(Ue,Ee){var ee={};for(var te in Ue)Object.prototype.hasOwnProperty.call(Ue,te)&&Ee.indexOf(te)<0&&(ee[te]=Ue[te]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,te=Object.getOwnPropertySymbols(Ue);ue<te.length;ue++)Ee.indexOf(te[ue])<0&&Object.prototype.propertyIsEnumerable.call(Ue,te[ue])&&(ee[te[ue]]=Ue[te[ue]]);return ee};const et=Ue=>{let{title:Ee,content:ee,prefixCls:te}=Ue;return Ke.createElement(Ke.Fragment,null,Ee&&Ke.createElement("div",{className:`${te}-title`},(0,ot.Z)(Ee)),Ke.createElement("div",{className:`${te}-inner-content`},(0,ot.Z)(ee)))},Je=Ke.forwardRef((Ue,Ee)=>{const{prefixCls:ee,title:te,content:ue,overlayClassName:oe,placement:de="top",trigger:ve="hover",mouseEnterDelay:xe=.1,mouseLeaveDelay:Ae=.1,overlayStyle:Pe={}}=Ue,Ne=Xe(Ue,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Le}=Ke.useContext(it.E_),Re=Le("popover",ee),[je,Ge]=(0,ct.Z)(Re),We=Le(),bt=Ie()(oe,Ge);return je(Ke.createElement(be.Z,Object.assign({placement:de,trigger:ve,mouseEnterDelay:xe,mouseLeaveDelay:Ae,overlayStyle:Pe},Ne,{prefixCls:Re,overlayClassName:bt,ref:Ee,overlay:te||ue?Ke.createElement(et,{prefixCls:Re,title:te,content:ue}):null,transitionName:(0,He.m)(We,"zoom-big",Ne.transitionName),"data-popover-inject":!0})))});Je._InternalPanelDoNotUseOrYouWillBeFired=yt.ZP,jt.Z=Je},17356:function(fn,jt,he){"use strict";var ge=he(17313),Ie=he(29878),Ke=he(19447),ot=he(33166),He=he(83116),it=he(37613);const be=Xe=>{const{componentCls:et,popoverColor:Je,minWidth:Ue,fontWeightStrong:Ee,popoverPadding:ee,boxShadowSecondary:te,colorTextHeading:ue,borderRadiusLG:oe,zIndexPopup:de,marginXS:ve,colorBgElevated:xe,popoverBg:Ae}=Xe;return[{[et]:Object.assign(Object.assign({},(0,ge.Wf)(Xe)),{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":xe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${et}-content`]:{position:"relative"},[`${et}-inner`]:{backgroundColor:Ae,backgroundClip:"padding-box",borderRadius:oe,boxShadow:te,padding:ee},[`${et}-title`]:{minWidth:Ue,marginBottom:ve,color:ue,fontWeight:Ee},[`${et}-inner-content`]:{color:Je}})},(0,Ke.ZP)(Xe,{colorBg:"var(--antd-arrow-background-color)"}),{[`${et}-pure`]:{position:"relative",maxWidth:"none",margin:Xe.sizePopupArrow,display:"inline-block",[`${et}-content`]:{display:"inline-block"}}}]},yt=Xe=>{const{componentCls:et}=Xe;return{[et]:ot.i.map(Je=>{const Ue=Xe[`${Je}6`];return{[`&${et}-${Je}`]:{"--antd-arrow-background-color":Ue,[`${et}-inner`]:{backgroundColor:Ue},[`${et}-arrow`]:{background:"transparent"}}}})}},ct=Xe=>{const{componentCls:et,lineWidth:Je,lineType:Ue,colorSplit:Ee,paddingSM:ee,controlHeight:te,fontSize:ue,lineHeight:oe,padding:de}=Xe,ve=te-Math.round(ue*oe),xe=ve/2,Ae=ve/2-Je,Pe=de;return{[et]:{[`${et}-inner`]:{padding:0},[`${et}-title`]:{margin:0,padding:`${xe}px ${Pe}px ${Ae}px`,borderBottom:`${Je}px ${Ue} ${Ee}`},[`${et}-inner-content`]:{padding:`${ee}px ${Pe}px`}}}};jt.Z=(0,He.Z)("Popover",Xe=>{const{colorBgElevated:et,colorText:Je,wireframe:Ue}=Xe,Ee=(0,it.TS)(Xe,{popoverPadding:12,popoverBg:et,popoverColor:Je});return[be(Ee),yt(Ee),Ue&&ct(Ee),(0,Ie._y)(Ee,"zoom-big")]},Xe=>({width:177,minWidth:177,zIndexPopup:Xe.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return mn}});var ge=he(59301),Ie=he(79999),Ke=he(10402),ot=he(33130),He=he(72119),it=he(92310),be=he.n(it),yt=he(64002),ct=he(36355),Xe=he(5891),et=he(57259),Je=he(19149),Ue={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ee=function(){var Ot=(0,ge.useRef)([]),yn=(0,ge.useRef)(null);return(0,ge.useEffect)(function(){var Tn=Date.now(),qn=!1;Ot.current.forEach(function(vi){if(vi){qn=!0;var gi=vi.style;gi.transitionDuration=".3s, .3s, .3s, .06s",yn.current&&Tn-yn.current<100&&(gi.transitionDuration="0s, 0s")}}),qn&&(yn.current=Date.now())}),Ot.current},ee=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],te=function(Ot){var yn=(0,et.Z)((0,et.Z)({},Ue),Ot),Tn=yn.className,qn=yn.percent,vi=yn.prefixCls,gi=yn.strokeColor,wi=yn.strokeLinecap,_n=yn.strokeWidth,yr=yn.style,ir=yn.trailColor,fr=yn.trailWidth,xr=yn.transition,jr=(0,Je.Z)(yn,ee);delete jr.gapPosition;var Ki=Array.isArray(qn)?qn:[qn],Ir=Array.isArray(gi)?gi:[gi],Vi=Ee(),Me=_n/2,Ai=100-_n/2,Xi="M ".concat(wi==="round"?Me:0,",").concat(Me,`
|
|
|
L `).concat(wi==="round"?Ai:100,",").concat(Me),gr="0 0 100 ".concat(_n),tr=0;return ge.createElement("svg",(0,Xe.Z)({className:be()("".concat(vi,"-line"),Tn),viewBox:gr,preserveAspectRatio:"none",style:yr},jr),ge.createElement("path",{className:"".concat(vi,"-line-trail"),d:Xi,strokeLinecap:wi,stroke:ir,strokeWidth:fr||_n,fillOpacity:"0"}),Ki.map(function(uo,qr){var Ni=1;switch(wi){case"round":Ni=1-_n/100;break;case"square":Ni=1-_n/2/100;break;default:Ni=1;break}var an={strokeDasharray:"".concat(uo*Ni,"px, 100px"),strokeDashoffset:"-".concat(tr,"px"),transition:xr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},en=Ir[qr]||Ir[Ir.length-1];return tr+=uo,ge.createElement("path",{key:qr,className:"".concat(vi,"-line-path"),d:Xi,strokeLinecap:wi,stroke:en,strokeWidth:_n,fillOpacity:"0",ref:function(Pt){Vi[qr]=Pt},style:an})}))},ue=te,oe=he(80665),de=he(29043),ve=he(87746),xe=0,Ae=(0,ve.Z)();function Pe(){var Et;return Ae?(Et=xe,xe+=1):Et="TEST_OR_SSR",Et}var Ne=function(Et){var Ot=ge.useState(),yn=(0,de.Z)(Ot,2),Tn=yn[0],qn=yn[1];return ge.useEffect(function(){qn("rc_progress_".concat(Pe()))},[]),Et||Tn},Le=function(Ot){var yn=Ot.bg,Tn=Ot.children;return ge.createElement("div",{style:{width:"100%",height:"100%",background:yn}},Tn)};function Re(Et,Ot){return Object.keys(Et).map(function(yn){var Tn=parseFloat(yn),qn="".concat(Math.floor(Tn*Ot),"%");return"".concat(Et[yn]," ").concat(qn)})}var je=ge.forwardRef(function(Et,Ot){var yn=Et.prefixCls,Tn=Et.color,qn=Et.gradientId,vi=Et.radius,gi=Et.style,wi=Et.ptg,_n=Et.strokeLinecap,yr=Et.strokeWidth,ir=Et.size,fr=Et.gapDegree,xr=Tn&&(0,oe.Z)(Tn)==="object",jr=xr?"#FFF":void 0,Ki=ir/2,Ir=ge.createElement("circle",{className:"".concat(yn,"-circle-path"),r:vi,cx:Ki,cy:Ki,stroke:jr,strokeLinecap:_n,strokeWidth:yr,opacity:wi===0?0:1,style:gi,ref:Ot});if(!xr)return Ir;var Vi="".concat(qn,"-conic"),Me=fr?"".concat(180+fr/2,"deg"):"0deg",Ai=Re(Tn,(360-fr)/360),Xi=Re(Tn,1),gr="conic-gradient(from ".concat(Me,", ").concat(Ai.join(", "),")"),tr="linear-gradient(to ".concat(fr?"bottom":"top",", ").concat(Xi.join(", "),")");return ge.createElement(ge.Fragment,null,ge.createElement("mask",{id:Vi},Ir),ge.createElement("foreignObject",{x:0,y:0,width:ir,height:ir,mask:"url(#".concat(Vi,")")},ge.createElement(Le,{bg:tr},ge.createElement(Le,{bg:gr}))))}),Ge=je,We=100,bt=function(Ot,yn,Tn,qn,vi,gi,wi,_n,yr,ir){var fr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,xr=Tn/100*360*((360-gi)/360),jr=gi===0?0:{bottom:0,top:180,left:90,right:-90}[wi],Ki=(100-qn)/100*yn;yr==="round"&&qn!==100&&(Ki+=ir/2,Ki>=yn&&(Ki=yn-.01));var Ir=We/2;return{stroke:typeof _n=="string"?_n:void 0,strokeDasharray:"".concat(yn,"px ").concat(Ot),strokeDashoffset:Ki+fr,transform:"rotate(".concat(vi+xr+jr,"deg)"),transformOrigin:"".concat(Ir,"px ").concat(Ir,"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}},Qe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Dt(Et){var Ot=Et!=null?Et:[];return Array.isArray(Ot)?Ot:[Ot]}var vt=function(Ot){var yn=(0,et.Z)((0,et.Z)({},Ue),Ot),Tn=yn.id,qn=yn.prefixCls,vi=yn.steps,gi=yn.strokeWidth,wi=yn.trailWidth,_n=yn.gapDegree,yr=_n===void 0?0:_n,ir=yn.gapPosition,fr=yn.trailColor,xr=yn.strokeLinecap,jr=yn.style,Ki=yn.className,Ir=yn.strokeColor,Vi=yn.percent,Me=(0,Je.Z)(yn,Qe),Ai=We/2,Xi=Ne(Tn),gr="".concat(Xi,"-gradient"),tr=Ai-gi/2,uo=Math.PI*2*tr,qr=yr>0?90+yr/2:-90,Ni=uo*((360-yr)/360),an=(0,oe.Z)(vi)==="object"?vi:{count:vi,space:2},en=an.count,Kt=an.space,Pt=Dt(Vi),Sn=Dt(Ir),bn=Sn.find(function(It){return It&&(0,oe.Z)(It)==="object"}),zt=bn&&(0,oe.Z)(bn)==="object",gt=zt?"butt":xr,xn=bt(uo,Ni,0,100,qr,yr,ir,fr,gt,gi),Ln=Ee(),pi=function(){var gn=0;return Pt.map(function(nn,ui){var Qt=Sn[ui]||Sn[Sn.length-1],Cn=bt(uo,Ni,gn,nn,qr,yr,ir,Qt,gt,gi);return gn+=nn,ge.createElement(Ge,{key:ui,color:Qt,ptg:nn,radius:tr,prefixCls:qn,gradientId:gr,style:Cn,strokeLinecap:gt,strokeWidth:gi,gapDegree:yr,ref:function(vn){Ln[ui]=vn},size:We})}).reverse()},Mn=function(){var gn=Math.round(en*(Pt[0]/100)),nn=100/en,ui=0;return new Array(en).fill(null).map(function(Qt,Cn){var $t=Cn<=gn-1?Sn[0]:fr,vn=$t&&(0,oe.Z)($t)==="object"?"url(#".concat(gr,")"):void 0,En=bt(uo,Ni,ui,nn,qr,yr,ir,$t,"butt",gi,Kt);return ui+=(Ni-En.strokeDashoffset+Kt)*100/Ni,ge.createElement("circle",{key:Cn,className:"".concat(qn,"-circle-path"),r:tr,cx:Ai,cy:Ai,stroke:vn,strokeWidth:gi,opacity:1,style:En,ref:function(Rn){Ln[Cn]=Rn}})})};return ge.createElement("svg",(0,Xe.Z)({className:be()("".concat(qn,"-circle"),Ki),viewBox:"0 0 ".concat(We," ").concat(We),style:jr,id:Tn,role:"presentation"},Me),!en&&ge.createElement("circle",{className:"".concat(qn,"-circle-trail"),r:tr,cx:Ai,cy:Ai,stroke:fr,strokeLinecap:gt,strokeWidth:wi||gi,style:xn}),en?Mn():pi())},kt=vt,Rt={Line:ue,Circle:kt},Jt=he(6848),at=he(93398);function Ze(Et){return!Et||Et<0?0:Et>100?100:Et}function Mt(Et){let{success:Ot,successPercent:yn}=Et,Tn=yn;return Ot&&"progress"in Ot&&(Tn=Ot.progress),Ot&&"percent"in Ot&&(Tn=Ot.percent),Tn}const Yt=Et=>{let{percent:Ot,success:yn,successPercent:Tn}=Et;const qn=Ze(Mt({success:yn,successPercent:Tn}));return[qn,Ze(Ze(Ot)-qn)]},Vt=Et=>{let{success:Ot={},strokeColor:yn}=Et;const{strokeColor:Tn}=Ot;return[Tn||at.presetPrimaryColors.green,yn||null]},Ct=(Et,Ot,yn)=>{var Tn,qn,vi,gi;let wi=-1,_n=-1;if(Ot==="step"){const yr=yn.steps,ir=yn.strokeWidth;typeof Et=="string"||typeof Et=="undefined"?(wi=Et==="small"?2:14,_n=ir!=null?ir:8):typeof Et=="number"?[wi,_n]=[Et,Et]:[wi=14,_n=8]=Et,wi*=yr}else if(Ot==="line"){const yr=yn==null?void 0:yn.strokeWidth;typeof Et=="string"||typeof Et=="undefined"?_n=yr||(Et==="small"?6:8):typeof Et=="number"?[wi,_n]=[Et,Et]:[wi=-1,_n=8]=Et}else(Ot==="circle"||Ot==="dashboard")&&(typeof Et=="string"||typeof Et=="undefined"?[wi,_n]=Et==="small"?[60,60]:[120,120]:typeof Et=="number"?[wi,_n]=[Et,Et]:(wi=(qn=(Tn=Et[0])!==null&&Tn!==void 0?Tn:Et[1])!==null&&qn!==void 0?qn:120,_n=(gi=(vi=Et[0])!==null&&vi!==void 0?vi:Et[1])!==null&&gi!==void 0?gi:120));return[wi,_n]},Nt=3,sn=Et=>Nt/Et*100;var hn=Et=>{const{prefixCls:Ot,trailColor:yn=null,strokeLinecap:Tn="round",gapPosition:qn,gapDegree:vi,width:gi=120,type:wi,children:_n,success:yr,size:ir=gi}=Et,[fr,xr]=Ct(ir,"circle");let{strokeWidth:jr}=Et;jr===void 0&&(jr=Math.max(sn(fr),6));const Ki={width:fr,height:xr,fontSize:fr*.15+6},Ir=ge.useMemo(()=>{if(vi||vi===0)return vi;if(wi==="dashboard")return 75},[vi,wi]),Vi=qn||wi==="dashboard"&&"bottom"||void 0,Me=Object.prototype.toString.call(Et.strokeColor)==="[object Object]",Ai=Vt({success:yr,strokeColor:Et.strokeColor}),Xi=be()(`${Ot}-inner`,{[`${Ot}-circle-gradient`]:Me}),gr=ge.createElement(kt,{percent:Yt(Et),strokeWidth:jr,trailWidth:jr,strokeColor:Ai,strokeLinecap:Tn,trailColor:yn,prefixCls:Ot,gapDegree:Ir,gapPosition:Vi});return ge.createElement("div",{className:Xi,style:Ki},fr<=20?ge.createElement(Jt.Z,{title:_n},ge.createElement("span",null,gr)):ge.createElement(ge.Fragment,null,gr,_n))},Xn=function(Et,Ot){var yn={};for(var Tn in Et)Object.prototype.hasOwnProperty.call(Et,Tn)&&Ot.indexOf(Tn)<0&&(yn[Tn]=Et[Tn]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qn=0,Tn=Object.getOwnPropertySymbols(Et);qn<Tn.length;qn++)Ot.indexOf(Tn[qn])<0&&Object.prototype.propertyIsEnumerable.call(Et,Tn[qn])&&(yn[Tn[qn]]=Et[Tn[qn]]);return yn};const Ft=Et=>{let Ot=[];return Object.keys(Et).forEach(yn=>{const Tn=parseFloat(yn.replace(/%/g,""));isNaN(Tn)||Ot.push({key:Tn,value:Et[yn]})}),Ot=Ot.sort((yn,Tn)=>yn.key-Tn.key),Ot.map(yn=>{let{key:Tn,value:qn}=yn;return`${qn} ${Tn}%`}).join(", ")},Un=(Et,Ot)=>{const{from:yn=at.presetPrimaryColors.blue,to:Tn=at.presetPrimaryColors.blue,direction:qn=Ot==="rtl"?"to left":"to right"}=Et,vi=Xn(Et,["from","to","direction"]);if(Object.keys(vi).length!==0){const gi=Ft(vi);return{backgroundImage:`linear-gradient(${qn}, ${gi})`}}return{backgroundImage:`linear-gradient(${qn}, ${yn}, ${Tn})`}};var ti=Et=>{const{prefixCls:Ot,direction:yn,percent:Tn,size:qn,strokeWidth:vi,strokeColor:gi,strokeLinecap:wi="round",children:_n,trailColor:yr=null,success:ir}=Et,fr=gi&&typeof gi!="string"?Un(gi,yn):{backgroundColor:gi},xr=wi==="square"||wi==="butt"?0:void 0,jr={backgroundColor:yr||void 0,borderRadius:xr},Ki=qn!=null?qn:[-1,vi||(qn==="small"?6:8)],[Ir,Vi]=Ct(Ki,"line",{strokeWidth:vi}),Me=Object.assign({width:`${Ze(Tn)}%`,height:Vi,borderRadius:xr},fr),Ai=Mt(Et),Xi={width:`${Ze(Ai)}%`,height:Vi,borderRadius:xr,backgroundColor:ir==null?void 0:ir.strokeColor},gr={width:Ir<0?"100%":Ir,height:Vi};return ge.createElement(ge.Fragment,null,ge.createElement("div",{className:`${Ot}-outer`,style:gr},ge.createElement("div",{className:`${Ot}-inner`,style:jr},ge.createElement("div",{className:`${Ot}-bg`,style:Me}),Ai!==void 0?ge.createElement("div",{className:`${Ot}-success-bg`,style:Xi}):null)),_n)},Zt=Et=>{const{size:Ot,steps:yn,percent:Tn=0,strokeWidth:qn=8,strokeColor:vi,trailColor:gi=null,prefixCls:wi,children:_n}=Et,yr=Math.round(yn*(Tn/100)),ir=Ot==="small"?2:14,fr=Ot!=null?Ot:[ir,qn],[xr,jr]=Ct(fr,"step",{steps:yn,strokeWidth:qn}),Ki=xr/yn,Ir=new Array(yn);for(let Vi=0;Vi<yn;Vi++){const Me=Array.isArray(vi)?vi[Vi]:vi;Ir[Vi]=ge.createElement("div",{key:Vi,className:be()(`${wi}-steps-item`,{[`${wi}-steps-item-active`]:Vi<=yr-1}),style:{backgroundColor:Vi<=yr-1?Me:gi,width:Ki,height:jr}})}return ge.createElement("div",{className:`${wi}-steps-outer`},Ir,_n)},Xt=he(9792),mt=he(17313),tt=he(83116),Wt=he(37613);const Lt=Et=>{const Ot=Et?"100%":"-100%";return new Xt.Keyframes(`antProgress${Et?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ot}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ot}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},pt=Et=>{const{componentCls:Ot,iconCls:yn}=Et;return{[Ot]:Object.assign(Object.assign({},(0,mt.Wf)(Et)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Et.fontSize,marginInlineEnd:Et.marginXS,marginBottom:Et.marginXS},[`${Ot}-outer`]:{display:"inline-block",width:"100%"},[`&${Ot}-show-info`]:{[`${Ot}-outer`]:{marginInlineEnd:`calc(-2em - ${Et.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Et.paddingXS}px)`}},[`${Ot}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Et.remainingColor,borderRadius:Et.lineBorderRadius},[`${Ot}-inner:not(${Ot}-circle-gradient)`]:{[`${Ot}-circle-path`]:{stroke:Et.defaultColor}},[`${Ot}-success-bg, ${Ot}-bg`]:{position:"relative",backgroundColor:Et.defaultColor,borderRadius:Et.lineBorderRadius,transition:`all ${Et.motionDurationSlow} ${Et.motionEaseInOutCirc}`},[`${Ot}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Et.colorSuccess},[`${Ot}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Et.marginXS,color:Et.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[yn]:{fontSize:Et.fontSize}},[`&${Ot}-status-active`]:{[`${Ot}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Et.colorBgContainer,borderRadius:Et.lineBorderRadius,opacity:0,animationName:Lt(),animationDuration:Et.progressActiveMotionDuration,animationTimingFunction:Et.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ot}-rtl${Ot}-status-active`]:{[`${Ot}-bg::before`]:{animationName:Lt(!0)}},[`&${Ot}-status-exception`]:{[`${Ot}-bg`]:{backgroundColor:Et.colorError},[`${Ot}-text`]:{color:Et.colorError}},[`&${Ot}-status-exception ${Ot}-inner:not(${Ot}-circle-gradient)`]:{[`${Ot}-circle-path`]:{stroke:Et.colorError}},[`&${Ot}-status-success`]:{[`${Ot}-bg`]:{backgroundColor:Et.colorSuccess},[`${Ot}-text`]:{color:Et.colorSuccess}},[`&${Ot}-status-success ${Ot}-inner:not(${Ot}-circle-gradient)`]:{[`${Ot}-circle-path`]:{stroke:Et.colorSuccess}}})}},nt=Et=>{const{componentCls:Ot,iconCls:yn}=Et;return{[Ot]:{[`${Ot}-circle-trail`]:{stroke:Et.remainingColor},[`&${Ot}-circle ${Ot}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ot}-circle ${Ot}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Et.circleTextColor,fontSize:Et.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[yn]:{fontSize:`${Et.fontSize/Et.fontSizeSM}em`}},[`${Ot}-circle&-status-exception`]:{[`${Ot}-text`]:{color:Et.colorError}},[`${Ot}-circle&-status-success`]:{[`${Ot}-text`]:{color:Et.colorSuccess}}},[`${Ot}-inline-circle`]:{lineHeight:1,[`${Ot}-inner`]:{verticalAlign:"bottom"}}}},Oe=Et=>{const{componentCls:Ot}=Et;return{[Ot]:{[`${Ot}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Et.progressStepMinWidth,marginInlineEnd:Et.progressStepMarginInlineEnd,backgroundColor:Et.remainingColor,transition:`all ${Et.motionDurationSlow}`,"&-active":{backgroundColor:Et.defaultColor}}}}}},we=Et=>{const{componentCls:Ot,iconCls:yn}=Et;return{[Ot]:{[`${Ot}-small&-line, ${Ot}-small&-line ${Ot}-text ${yn}`]:{fontSize:Et.fontSizeSM}}}};var ye=(0,tt.Z)("Progress",Et=>{const Ot=Et.marginXXS/2,yn=(0,Wt.TS)(Et,{progressStepMarginInlineEnd:Ot,progressStepMinWidth:Ot,progressActiveMotionDuration:"2.4s"});return[pt(yn),nt(yn),Oe(yn),we(yn)]},Et=>({circleTextColor:Et.colorText,defaultColor:Et.colorInfo,remainingColor:Et.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ke=function(Et,Ot){var yn={};for(var Tn in Et)Object.prototype.hasOwnProperty.call(Et,Tn)&&Ot.indexOf(Tn)<0&&(yn[Tn]=Et[Tn]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qn=0,Tn=Object.getOwnPropertySymbols(Et);qn<Tn.length;qn++)Ot.indexOf(Tn[qn])<0&&Object.prototype.propertyIsEnumerable.call(Et,Tn[qn])&&(yn[Tn[qn]]=Et[Tn[qn]]);return yn};const Ve=null,Be=["normal","exception","active","success"];var on=ge.forwardRef((Et,Ot)=>{const{prefixCls:yn,className:Tn,rootClassName:qn,steps:vi,strokeColor:gi,percent:wi=0,size:_n="default",showInfo:yr=!0,type:ir="line",status:fr,format:xr,style:jr}=Et,Ki=ke(Et,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Ir=ge.useMemo(()=>{var Pt,Sn;const bn=Mt(Et);return parseInt(bn!==void 0?(Pt=bn!=null?bn:0)===null||Pt===void 0?void 0:Pt.toString():(Sn=wi!=null?wi:0)===null||Sn===void 0?void 0:Sn.toString(),10)},[wi,Et.success,Et.successPercent]),Vi=ge.useMemo(()=>!Be.includes(fr)&&Ir>=100?"success":fr||"normal",[fr,Ir]),{getPrefixCls:Me,direction:Ai,progress:Xi}=ge.useContext(ct.E_),gr=Me("progress",yn),[tr,uo]=ye(gr),qr=ge.useMemo(()=>{if(!yr)return null;const Pt=Mt(Et);let Sn;const bn=xr||(gt=>`${gt}%`),zt=ir==="line";return xr||Vi!=="exception"&&Vi!=="success"?Sn=bn(Ze(wi),Ze(Pt)):Vi==="exception"?Sn=zt?ge.createElement(ot.Z,null):ge.createElement(He.Z,null):Vi==="success"&&(Sn=zt?ge.createElement(Ie.Z,null):ge.createElement(Ke.Z,null)),ge.createElement("span",{className:`${gr}-text`,title:typeof Sn=="string"?Sn:void 0},Sn)},[yr,wi,Ir,Vi,ir,gr,xr]),Ni=Array.isArray(gi)?gi[0]:gi,an=typeof gi=="string"||Array.isArray(gi)?gi:void 0;let en;ir==="line"?en=vi?ge.createElement(Zt,Object.assign({},Et,{strokeColor:an,prefixCls:gr,steps:vi}),qr):ge.createElement(ti,Object.assign({},Et,{strokeColor:Ni,prefixCls:gr,direction:Ai}),qr):(ir==="circle"||ir==="dashboard")&&(en=ge.createElement(hn,Object.assign({},Et,{strokeColor:Ni,prefixCls:gr,progressStatus:Vi}),qr));const Kt=be()(gr,`${gr}-status-${Vi}`,`${gr}-${ir==="dashboard"&&"circle"||vi&&"steps"||ir}`,{[`${gr}-inline-circle`]:ir==="circle"&&Ct(_n,"circle")[0]<=20,[`${gr}-show-info`]:yr,[`${gr}-${_n}`]:typeof _n=="string",[`${gr}-rtl`]:Ai==="rtl"},Xi==null?void 0:Xi.className,Tn,qn,uo);return tr(ge.createElement("div",Object.assign({ref:Ot,style:Object.assign(Object.assign({},Xi==null?void 0:Xi.style),jr),className:Kt,role:"progressbar","aria-valuenow":Ir},(0,yt.Z)(Ki,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),en))}),mn=on},39978:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ze}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(Yt,Vt){return Ie.createElement(He.Z,(0,ge.Z)({},Yt,{ref:Vt,icon:ot}))},be=Ie.forwardRef(it),yt=be,ct=he(92310),Xe=he.n(ct),et=he(80962),Je=he(29043),Ue=he(19149),Ee=he(35788),ee=he(85108),te=he(36994);function ue(Mt,Yt){var Vt=Mt.disabled,Ct=Mt.prefixCls,Nt=Mt.character,sn=Mt.characterRender,Nn=Mt.index,hn=Mt.count,Xn=Mt.value,Ft=Mt.allowHalf,Un=Mt.focused,Kn=Mt.onHover,ti=Mt.onClick,Fn=function(nt){Kn(nt,Nn)},Zt=function(nt){ti(nt,Nn)},Xt=function(nt){nt.keyCode===ee.Z.ENTER&&ti(nt,Nn)},mt=Nn+1,tt=new Set([Ct]);Xn===0&&Nn===0&&Un?tt.add("".concat(Ct,"-focused")):Ft&&Xn+.5>=mt&&Xn<mt?(tt.add("".concat(Ct,"-half")),tt.add("".concat(Ct,"-active")),Un&&tt.add("".concat(Ct,"-focused"))):(mt<=Xn?tt.add("".concat(Ct,"-full")):tt.add("".concat(Ct,"-zero")),mt===Xn&&Un&&tt.add("".concat(Ct,"-focused")));var Wt=typeof Nt=="function"?Nt(Mt):Nt,Lt=Ie.createElement("li",{className:Xe()(Array.from(tt)),ref:Yt},Ie.createElement("div",{onClick:Vt?null:Zt,onKeyDown:Vt?null:Xt,onMouseMove:Vt?null:Fn,role:"radio","aria-checked":Xn>Nn?"true":"false","aria-posinset":Nn+1,"aria-setsize":hn,tabIndex:Vt?-1:0},Ie.createElement("div",{className:"".concat(Ct,"-first")},Wt),Ie.createElement("div",{className:"".concat(Ct,"-second")},Wt)));return sn&&(Lt=sn(Lt,Mt)),Lt}var oe=Ie.forwardRef(ue);function de(){var Mt=Ie.useRef({});function Yt(Ct){return Mt.current[Ct]}function Vt(Ct){return function(Nt){Mt.current[Ct]=Nt}}return[Yt,Vt]}function ve(Mt){var Yt=Mt.pageXOffset,Vt="scrollLeft";if(typeof Yt!="number"){var Ct=Mt.document;Yt=Ct.documentElement[Vt],typeof Yt!="number"&&(Yt=Ct.body[Vt])}return Yt}function xe(Mt){var Yt,Vt,Ct=Mt.ownerDocument,Nt=Ct.body,sn=Ct&&Ct.documentElement,Nn=Mt.getBoundingClientRect();return Yt=Nn.left,Vt=Nn.top,Yt-=sn.clientLeft||Nt.clientLeft||0,Vt-=sn.clientTop||Nt.clientTop||0,{left:Yt,top:Vt}}function Ae(Mt){var Yt=xe(Mt),Vt=Mt.ownerDocument,Ct=Vt.defaultView||Vt.parentWindow;return Yt.left+=ve(Ct),Yt.left}var Pe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ne(Mt,Yt){var Vt,Ct=Mt.prefixCls,Nt=Ct===void 0?"rc-rate":Ct,sn=Mt.className,Nn=Mt.defaultValue,hn=Mt.value,Xn=Mt.count,Ft=Xn===void 0?5:Xn,Un=Mt.allowHalf,Kn=Un===void 0?!1:Un,ti=Mt.allowClear,Fn=ti===void 0?!0:ti,Zt=Mt.character,Xt=Zt===void 0?"\u2605":Zt,mt=Mt.characterRender,tt=Mt.disabled,Wt=Mt.direction,Lt=Wt===void 0?"ltr":Wt,pt=Mt.tabIndex,nt=pt===void 0?0:pt,Oe=Mt.autoFocus,we=Mt.onHoverChange,ye=Mt.onChange,ke=Mt.onFocus,Ve=Mt.onBlur,Be=Mt.onKeyDown,dt=Mt.onMouseLeave,on=(0,Ue.Z)(Mt,Pe),mn=de(),Et=(0,Je.Z)(mn,2),Ot=Et[0],yn=Et[1],Tn=Ie.useRef(null),qn=function(){if(!tt){var gt;(gt=Tn.current)===null||gt===void 0||gt.focus()}};Ie.useImperativeHandle(Yt,function(){return{focus:qn,blur:function(){if(!tt){var gt;(gt=Tn.current)===null||gt===void 0||gt.blur()}}}});var vi=(0,Ee.Z)(Nn||0,{value:hn}),gi=(0,Je.Z)(vi,2),wi=gi[0],_n=gi[1],yr=(0,Ee.Z)(null),ir=(0,Je.Z)(yr,2),fr=ir[0],xr=ir[1],jr=function(gt,xn){var Ln=Lt==="rtl",pi=gt+1;if(Kn){var Mn=Ot(gt),It=Ae(Mn),gn=Mn.clientWidth;(Ln&&xn-It>gn/2||!Ln&&xn-It<gn/2)&&(pi-=.5)}return pi},Ki=function(gt){_n(gt),ye==null||ye(gt)},Ir=Ie.useState(!1),Vi=(0,Je.Z)(Ir,2),Me=Vi[0],Ai=Vi[1],Xi=function(){Ai(!0),ke==null||ke()},gr=function(){Ai(!1),Ve==null||Ve()},tr=Ie.useState(null),uo=(0,Je.Z)(tr,2),qr=uo[0],Ni=uo[1],an=function(gt,xn){var Ln=jr(xn,gt.pageX);Ln!==fr&&(Ni(Ln),xr(null)),we==null||we(Ln)},en=function(gt){tt||(Ni(null),xr(null),we==null||we(void 0)),gt&&(dt==null||dt(gt))},Kt=function(gt,xn){var Ln=jr(xn,gt.pageX),pi=!1;Fn&&(pi=Ln===wi),en(),Ki(pi?0:Ln),xr(pi?Ln:null)},Pt=function(gt){var xn=gt.keyCode,Ln=Lt==="rtl",pi=wi;xn===ee.Z.RIGHT&&pi<Ft&&!Ln?(Kn?pi+=.5:pi+=1,Ki(pi),gt.preventDefault()):xn===ee.Z.LEFT&&pi>0&&!Ln||xn===ee.Z.RIGHT&&pi>0&&Ln?(Kn?pi-=.5:pi-=1,Ki(pi),gt.preventDefault()):xn===ee.Z.LEFT&&pi<Ft&&Ln&&(Kn?pi+=.5:pi+=1,Ki(pi),gt.preventDefault()),Be==null||Be(gt)};Ie.useEffect(function(){Oe&&!tt&&qn()},[]);var Sn=new Array(Ft).fill(0).map(function(zt,gt){return Ie.createElement(oe,{ref:yn(gt),index:gt,count:Ft,disabled:tt,prefixCls:"".concat(Nt,"-star"),allowHalf:Kn,value:qr===null?wi:qr,onClick:Kt,onHover:an,key:zt||gt,character:Xt,characterRender:mt,focused:Me})}),bn=Xe()(Nt,sn,(Vt={},(0,et.Z)(Vt,"".concat(Nt,"-disabled"),tt),(0,et.Z)(Vt,"".concat(Nt,"-rtl"),Lt==="rtl"),Vt));return Ie.createElement("ul",(0,ge.Z)({className:bn,onMouseLeave:en,tabIndex:tt?-1:nt,onFocus:tt?null:Xi,onBlur:tt?null:gr,onKeyDown:tt?null:Pt,ref:Tn,role:"radiogroup"},(0,te.Z)(on,{aria:!0,data:!0,attr:!0})),Sn)}var Le=Ie.forwardRef(Ne),Re=Le,je=he(36355),Ge=he(6848),We=he(17313),bt=he(83116),Qe=he(37613);const Dt=Mt=>{const{componentCls:Yt}=Mt;return{[`${Yt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Mt.marginXS},"> div":{transition:`all ${Mt.motionDurationMid}, outline 0s`,"&:hover":{transform:Mt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Mt.lineWidth}px dashed ${Mt.starColor}`,transform:Mt.starHoverScale}},"&-first, &-second":{color:Mt.starBg,transition:`all ${Mt.motionDurationMid}`,userSelect:"none",[Mt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Yt}-star-first, &-half ${Yt}-star-second`]:{opacity:1},[`&-half ${Yt}-star-first, &-full ${Yt}-star-second`]:{color:"inherit"}}}},vt=Mt=>({[`&-rtl${Mt.componentCls}`]:{direction:"rtl"}}),kt=Mt=>{const{componentCls:Yt}=Mt;return{[Yt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,We.Wf)(Mt)),{display:"inline-block",margin:0,padding:0,color:Mt.starColor,fontSize:Mt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Yt} ${Yt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Dt(Mt)),{[`+ ${Yt}-text`]:{display:"inline-block",marginInlineStart:Mt.marginXS,fontSize:Mt.fontSize}}),vt(Mt))}};var Rt=(0,bt.Z)("Rate",Mt=>{const Yt=(0,Qe.TS)(Mt,{});return[kt(Yt)]},Mt=>({starColor:Mt.yellow6,starSize:Mt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Mt.colorFillContent})),Jt=function(Mt,Yt){var Vt={};for(var Ct in Mt)Object.prototype.hasOwnProperty.call(Mt,Ct)&&Yt.indexOf(Ct)<0&&(Vt[Ct]=Mt[Ct]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Ct=Object.getOwnPropertySymbols(Mt);Nt<Ct.length;Nt++)Yt.indexOf(Ct[Nt])<0&&Object.prototype.propertyIsEnumerable.call(Mt,Ct[Nt])&&(Vt[Ct[Nt]]=Mt[Ct[Nt]]);return Vt},Ze=Ie.forwardRef((Mt,Yt)=>{const{prefixCls:Vt,className:Ct,rootClassName:Nt,style:sn,tooltips:Nn,character:hn=Ie.createElement(yt,null)}=Mt,Xn=Jt(Mt,["prefixCls","className","rootClassName","style","tooltips","character"]),Ft=(tt,Wt)=>{let{index:Lt}=Wt;return Nn?Ie.createElement(Ge.Z,{title:Nn[Lt]},tt):tt},{getPrefixCls:Un,direction:Kn,rate:ti}=Ie.useContext(je.E_),Fn=Un("rate",Vt),[Zt,Xt]=Rt(Fn),mt=Object.assign(Object.assign({},ti==null?void 0:ti.style),sn);return Zt(Ie.createElement(Re,Object.assign({ref:Yt,character:hn,characterRender:Ft},Xn,{className:Xe()(Ct,Nt,Xt,ti==null?void 0:ti.className),style:mt,prefixCls:Fn,direction:Kn})))})},57809:function(fn,jt,he){"use strict";var ge=he(92310),Ie=he.n(ge),Ke=he(77861),ot=he(64002),He=he(59301),it=he(53487),be=he(62892),yt=he(19080),ct=he(36355),Xe=he(1684),et=he(93891),Je=he(19716),Ue=he(32441),Ee=he(33234),ee=he(14154),te=he(58582),ue=he(84443),oe=he(66339),de=function(Ne,Le){var Re={};for(var je in Ne)Object.prototype.hasOwnProperty.call(Ne,je)&&Le.indexOf(je)<0&&(Re[je]=Ne[je]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,je=Object.getOwnPropertySymbols(Ne);Ge<je.length;Ge++)Le.indexOf(je[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ne,je[Ge])&&(Re[je[Ge]]=Ne[je[Ge]]);return Re};const ve="SECRET_COMBOBOX_MODE_DO_NOT_USE",xe=(Ne,Le)=>{var Re,{prefixCls:je,bordered:Ge=!0,className:We,rootClassName:bt,getPopupContainer:Qe,popupClassName:Dt,dropdownClassName:vt,listHeight:kt=256,placement:Rt,listItemHeight:Jt=24,size:at,disabled:Ze,notFoundContent:Mt,status:Yt,builtinPlacements:Vt,dropdownMatchSelectWidth:Ct,popupMatchSelectWidth:Nt,direction:sn,style:Nn,allowClear:hn}=Ne,Xn=de(Ne,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ft,getPrefixCls:Un,renderEmpty:Kn,direction:ti,virtual:Fn,popupMatchSelectWidth:Zt,popupOverflow:Xt,select:mt}=He.useContext(ct.E_),tt=Un("select",je),Wt=Un(),Lt=sn!=null?sn:ti,{compactSize:pt,compactItemClassnames:nt}=(0,Ee.ri)(tt,Lt),[Oe,we]=(0,ee.Z)(tt),ye=He.useMemo(()=>{const{mode:Vi}=Xn;if(Vi!=="combobox")return Vi===ve?"combobox":Vi},[Xn.mode]),ke=ye==="multiple"||ye==="tags",Ve=(0,ue.Z)(Xn.suffixIcon,Xn.showArrow),Be=(Re=Nt!=null?Nt:Ct)!==null&&Re!==void 0?Re:Zt,{status:dt,hasFeedback:on,isFormItemInput:mn,feedbackIcon:Et}=He.useContext(Ue.aM),Ot=(0,yt.F)(dt,Yt);let yn;Mt!==void 0?yn=Mt:ye==="combobox"?yn=null:yn=(Kn==null?void 0:Kn("Select"))||He.createElement(et.Z,{componentName:"Select"});const{suffixIcon:Tn,itemIcon:qn,removeIcon:vi,clearIcon:gi}=(0,oe.Z)(Object.assign(Object.assign({},Xn),{multiple:ke,hasFeedback:on,feedbackIcon:Et,showSuffixIcon:Ve,prefixCls:tt,showArrow:Xn.showArrow,componentName:"Select"})),wi=hn===!0?{clearIcon:gi}:hn,_n=(0,ot.Z)(Xn,["suffixIcon","itemIcon"]),yr=Ie()(Dt||vt,{[`${tt}-dropdown-${Lt}`]:Lt==="rtl"},bt,we),ir=(0,Je.Z)(Vi=>{var Me;return(Me=at!=null?at:pt)!==null&&Me!==void 0?Me:Vi}),fr=He.useContext(Xe.Z),xr=Ze!=null?Ze:fr,jr=Ie()({[`${tt}-lg`]:ir==="large",[`${tt}-sm`]:ir==="small",[`${tt}-rtl`]:Lt==="rtl",[`${tt}-borderless`]:!Ge,[`${tt}-in-form-item`]:mn},(0,yt.Z)(tt,Ot,on),nt,mt==null?void 0:mt.className,We,bt,we),Ki=He.useMemo(()=>Rt!==void 0?Rt:Lt==="rtl"?"bottomRight":"bottomLeft",[Rt,Lt]),Ir=(0,te.Z)(Vt,Xt);return Oe(He.createElement(Ke.ZP,Object.assign({ref:Le,virtual:Fn,showSearch:mt==null?void 0:mt.showSearch},_n,{style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Nn),dropdownMatchSelectWidth:Be,builtinPlacements:Ir,transitionName:(0,be.m)(Wt,"slide-up",Xn.transitionName),listHeight:kt,listItemHeight:Jt,mode:ye,prefixCls:tt,placement:Ki,direction:Lt,suffixIcon:Tn,menuItemSelectedIcon:qn,removeIcon:vi,allowClear:wi,notFoundContent:yn,className:jr,getPopupContainer:Qe||Ft,dropdownClassName:yr,disabled:xr})))},Ae=He.forwardRef(xe),Pe=(0,it.Z)(Ae);Ae.SECRET_COMBOBOX_MODE_DO_NOT_USE=ve,Ae.Option=Ke.Wx,Ae.OptGroup=Ke.Xo,Ae._InternalPanelDoNotUseOrYouWillBeFired=Pe,jt.default=Ae},14154:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ae}});var ge=he(17313),Ie=he(74207),Ke=he(37613),ot=he(83116),He=he(13826),it=he(92899);const be=Pe=>{const{optionHeight:Ne,optionFontSize:Le,optionLineHeight:Re,optionPadding:je}=Pe;return{position:"relative",display:"block",minHeight:Ne,padding:je,color:Pe.colorText,fontWeight:"normal",fontSize:Le,lineHeight:Re,boxSizing:"border-box"}};var ct=Pe=>{const{antCls:Ne,componentCls:Le}=Pe,Re=`${Le}-item`,je=`&${Ne}-slide-up-enter${Ne}-slide-up-enter-active`,Ge=`&${Ne}-slide-up-appear${Ne}-slide-up-appear-active`,We=`&${Ne}-slide-up-leave${Ne}-slide-up-leave-active`,bt=`${Le}-dropdown-placement-`;return[{[`${Le}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(Pe)),{position:"absolute",top:-9999,zIndex:Pe.zIndexPopup,boxSizing:"border-box",padding:Pe.paddingXXS,overflow:"hidden",fontSize:Pe.fontSize,fontVariant:"initial",backgroundColor:Pe.colorBgElevated,borderRadius:Pe.borderRadiusLG,outline:"none",boxShadow:Pe.boxShadowSecondary,[`
|
|
|
${je}${bt}bottomLeft,
|
|
|
${Ge}${bt}bottomLeft
|
|
|
`]:{animationName:He.fJ},[`
|
|
|
${je}${bt}topLeft,
|
|
|
${Ge}${bt}topLeft,
|
|
|
${je}${bt}topRight,
|
|
|
${Ge}${bt}topRight
|
|
|
`]:{animationName:He.Qt},[`${We}${bt}bottomLeft`]:{animationName:He.Uw},[`
|
|
|
${We}${bt}topLeft,
|
|
|
${We}${bt}topRight
|
|
|
`]:{animationName:He.ly},"&-hidden":{display:"none"},[`${Re}`]:Object.assign(Object.assign({},be(Pe)),{cursor:"pointer",transition:`background ${Pe.motionDurationSlow} ease`,borderRadius:Pe.borderRadiusSM,"&-group":{color:Pe.colorTextDescription,fontSize:Pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ge.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Re}-option-disabled)`]:{backgroundColor:Pe.optionActiveBg},[`&-selected:not(${Re}-option-disabled)`]:{color:Pe.optionSelectedColor,fontWeight:Pe.optionSelectedFontWeight,backgroundColor:Pe.optionSelectedBg,[`${Re}-option-state`]:{color:Pe.colorPrimary}},"&-disabled":{[`&${Re}-option-selected`]:{backgroundColor:Pe.colorBgContainerDisabled},color:Pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Pe.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,He.oN)(Pe,"slide-up"),(0,He.oN)(Pe,"slide-down"),(0,it.Fm)(Pe,"move-up"),(0,it.Fm)(Pe,"move-down")]};const Xe=2,et=Pe=>{let{controlHeightSM:Ne,controlHeight:Le,lineWidth:Re}=Pe;const je=(Le-Ne)/2-Re,Ge=Math.ceil(je/2);return[je,Ge]};function Je(Pe,Ne){const{componentCls:Le,iconCls:Re}=Pe,je=`${Le}-selection-overflow`,Ge=Pe.multipleSelectItemHeight,[We]=et(Pe),bt=Ne?`${Le}-${Ne}`:"";return{[`${Le}-multiple${bt}`]:{fontSize:Pe.fontSize,[je]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Le}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${We-Xe}px ${Xe*2}px`,borderRadius:Pe.borderRadius,[`${Le}-show-search&`]:{cursor:"text"},[`${Le}-disabled&`]:{background:Pe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Xe}px 0`,lineHeight:`${Ge}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Le}-show-arrow ${Le}-selector,
|
|
|
&${Le}-allow-clear ${Le}-selector
|
|
|
`]:{paddingInlineEnd:Pe.fontSizeIcon+Pe.controlPaddingHorizontal},[`${Le}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ge,marginTop:Xe,marginBottom:Xe,lineHeight:`${Ge-Pe.lineWidth*2}px`,background:Pe.multipleItemBg,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.multipleItemBorderColor}`,borderRadius:Pe.borderRadiusSM,cursor:"default",transition:`font-size ${Pe.motionDurationSlow}, line-height ${Pe.motionDurationSlow}, height ${Pe.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Xe*2,paddingInlineStart:Pe.paddingXS,paddingInlineEnd:Pe.paddingXS/2,[`${Le}-disabled&`]:{color:Pe.multipleItemColorDisabled,borderColor:Pe.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Pe.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ge.Ro)()),{display:"inline-flex",alignItems:"center",color:Pe.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Re}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Pe.colorIconHover}})},[`${je}-item + ${je}-item`]:{[`${Le}-selection-search`]:{marginInlineStart:0}},[`${Le}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Pe.inputPaddingHorizontalBase-We,"\n &-input,\n &-mirror\n ":{height:Ge,fontFamily:Pe.fontFamily,lineHeight:`${Ge}px`,transition:`all ${Pe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Le}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Pe.inputPaddingHorizontalBase,insetInlineEnd:Pe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Pe.motionDurationSlow}`}}}}var Ee=Pe=>{const{componentCls:Ne}=Pe,Le=(0,Ke.TS)(Pe,{controlHeight:Pe.controlHeightSM,multipleSelectItemHeight:Pe.controlHeightXS,borderRadius:Pe.borderRadiusSM,borderRadiusSM:Pe.borderRadiusXS}),Re=(0,Ke.TS)(Pe,{fontSize:Pe.fontSizeLG,controlHeight:Pe.controlHeightLG,multipleSelectItemHeight:Pe.multipleItemHeightLG,borderRadius:Pe.borderRadiusLG,borderRadiusSM:Pe.borderRadius}),[,je]=et(Pe);return[Je(Pe),Je(Le,"sm"),{[`${Ne}-multiple${Ne}-sm`]:{[`${Ne}-selection-placeholder`]:{insetInline:Pe.controlPaddingHorizontalSM-Pe.lineWidth},[`${Ne}-selection-search`]:{marginInlineStart:je}}},Je(Re,"lg")]};function ee(Pe,Ne){const{componentCls:Le,inputPaddingHorizontalBase:Re,borderRadius:je}=Pe,Ge=Pe.controlHeight-Pe.lineWidth*2,We=Math.ceil(Pe.fontSize*1.25),bt=Ne?`${Le}-${Ne}`:"";return{[`${Le}-single${bt}`]:{fontSize:Pe.fontSize,[`${Le}-selector`]:Object.assign(Object.assign({},(0,ge.Wf)(Pe)),{display:"flex",borderRadius:je,[`${Le}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Re,insetInlineEnd:Re,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Le}-selection-item,
|
|
|
${Le}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Ge}px`,transition:`all ${Pe.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ge}px`}},[`${Le}-selection-item`]:{position:"relative",userSelect:"none"},[`${Le}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Le}-selection-item:after`,`${Le}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Le}-show-arrow ${Le}-selection-item,
|
|
|
&${Le}-show-arrow ${Le}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:We},[`&${Le}-open ${Le}-selection-item`]:{color:Pe.colorTextPlaceholder},[`&:not(${Le}-customize-input)`]:{[`${Le}-selector`]:{width:"100%",height:Pe.controlHeight,padding:`0 ${Re}px`,[`${Le}-selection-search-input`]:{height:Ge},"&:after":{lineHeight:`${Ge}px`}}},[`&${Le}-customize-input`]:{[`${Le}-selector`]:{"&:after":{display:"none"},[`${Le}-selection-search`]:{position:"static",width:"100%"},[`${Le}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Re}px`,"&:after":{display:"none"}}}}}}}function te(Pe){const{componentCls:Ne}=Pe,Le=Pe.controlPaddingHorizontalSM-Pe.lineWidth;return[ee(Pe),ee((0,Ke.TS)(Pe,{controlHeight:Pe.controlHeightSM,borderRadius:Pe.borderRadiusSM}),"sm"),{[`${Ne}-single${Ne}-sm`]:{[`&:not(${Ne}-customize-input)`]:{[`${Ne}-selection-search`]:{insetInlineStart:Le,insetInlineEnd:Le},[`${Ne}-selector`]:{padding:`0 ${Le}px`},[`&${Ne}-show-arrow ${Ne}-selection-search`]:{insetInlineEnd:Le+Pe.fontSize*1.5},[`
|
|
|
&${Ne}-show-arrow ${Ne}-selection-item,
|
|
|
&${Ne}-show-arrow ${Ne}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Pe.fontSize*1.5}}}},ee((0,Ke.TS)(Pe,{controlHeight:Pe.singleItemHeightLG,fontSize:Pe.fontSizeLG,borderRadius:Pe.borderRadiusLG}),"lg")]}const ue=Pe=>{const{componentCls:Ne,selectorBg:Le}=Pe;return{position:"relative",backgroundColor:Le,border:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`,transition:`all ${Pe.motionDurationMid} ${Pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ne}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ne}-disabled&`]:{color:Pe.colorTextDisabled,background:Pe.colorBgContainerDisabled,cursor:"not-allowed",[`${Ne}-multiple&`]:{background:Pe.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},oe=function(Pe,Ne){let Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Re,borderHoverColor:je,outlineColor:Ge,antCls:We}=Ne,bt=Le?{[`${Re}-selector`]:{borderColor:je}}:{};return{[Pe]:{[`&:not(${Re}-disabled):not(${Re}-customize-input):not(${We}-pagination-size-changer)`]:Object.assign(Object.assign({},bt),{[`${Re}-focused& ${Re}-selector`]:{borderColor:je,boxShadow:`0 0 0 ${Ne.controlOutlineWidth}px ${Ge}`,outline:0},[`&:hover ${Re}-selector`]:{borderColor:je}})}}},de=Pe=>{const{componentCls:Ne}=Pe;return{[`${Ne}-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=Pe=>{const{componentCls:Ne,inputPaddingHorizontalBase:Le,iconCls:Re}=Pe;return{[Ne]:Object.assign(Object.assign({},(0,ge.Wf)(Pe)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ne}-customize-input) ${Ne}-selector`]:Object.assign(Object.assign({},ue(Pe)),de(Pe)),[`${Ne}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ge.vS),[`${Ne}-selection-placeholder`]:Object.assign(Object.assign({},ge.vS),{flex:1,color:Pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Ne}-arrow`]:Object.assign(Object.assign({},(0,ge.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Le,height:Pe.fontSizeIcon,marginTop:-Pe.fontSizeIcon/2,color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Re]:{verticalAlign:"top",transition:`transform ${Pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ne}-suffix)`]:{pointerEvents:"auto"}},[`${Ne}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ne}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Le,zIndex:1,display:"inline-block",width:Pe.fontSizeIcon,height:Pe.fontSizeIcon,marginTop:-Pe.fontSizeIcon/2,color:Pe.colorTextQuaternary,fontSize:Pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Pe.clearBg,cursor:"pointer",opacity:0,transition:`color ${Pe.motionDurationMid} ease, opacity ${Pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Pe.colorTextTertiary}},"&:hover":{[`${Ne}-clear`]:{opacity:1}}}),[`${Ne}-has-feedback`]:{[`${Ne}-clear`]:{insetInlineEnd:Le+Pe.fontSize+Pe.paddingXS}}}},xe=Pe=>{const{componentCls:Ne}=Pe;return[{[Ne]:{[`&-borderless ${Ne}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ne}-in-form-item`]:{width:"100%"}}},ve(Pe),te(Pe),Ee(Pe),ct(Pe),{[`${Ne}-rtl`]:{direction:"rtl"}},oe(Ne,(0,Ke.TS)(Pe,{borderHoverColor:Pe.colorPrimaryHover,outlineColor:Pe.controlOutline})),oe(`${Ne}-status-error`,(0,Ke.TS)(Pe,{borderHoverColor:Pe.colorErrorHover,outlineColor:Pe.colorErrorOutline}),!0),oe(`${Ne}-status-warning`,(0,Ke.TS)(Pe,{borderHoverColor:Pe.colorWarningHover,outlineColor:Pe.colorWarningOutline}),!0),(0,Ie.c)(Pe,{borderElCls:`${Ne}-selector`,focusElCls:`${Ne}-focused`})]};var Ae=(0,ot.Z)("Select",(Pe,Ne)=>{let{rootPrefixCls:Le}=Ne;const Re=(0,Ke.TS)(Pe,{rootPrefixCls:Le,inputPaddingHorizontalBase:Pe.paddingSM-1,multipleSelectItemHeight:Pe.multipleItemHeight});return[xe(Re)]},Pe=>{const{fontSize:Ne,lineHeight:Le,controlHeight:Re,controlPaddingHorizontal:je,zIndexPopupBase:Ge,colorText:We,fontWeightStrong:bt,controlItemBgActive:Qe,controlItemBgHover:Dt,colorBgContainer:vt,colorFillSecondary:kt,controlHeightLG:Rt,controlHeightSM:Jt,colorBgContainerDisabled:at,colorTextDisabled:Ze}=Pe;return{zIndexPopup:Ge+50,optionSelectedColor:We,optionSelectedFontWeight:bt,optionSelectedBg:Qe,optionActiveBg:Dt,optionPadding:`${(Re-Ne*Le)/2}px ${je}px`,optionFontSize:Ne,optionLineHeight:Le,optionHeight:Re,selectorBg:vt,clearBg:vt,singleItemHeightLG:Rt,multipleItemBg:kt,multipleItemBorderColor:"transparent",multipleItemHeight:Jt,multipleItemHeightLG:Re,multipleSelectorBgDisabled:at,multipleItemColorDisabled:Ze,multipleItemBorderColorDisabled:"transparent"}})},58582:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ie}});const ge=Ke=>{const He={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ke==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},He),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},He),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},He),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},He),{points:["br","tr"],offset:[0,-4]})}};function Ie(Ke,ot){return Ke||ge(ot)}},84443:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ge}});function ge(Ie,Ke){return Ke!==void 0?Ke:Ie!==null}},66339:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});var ge=he(10402),Ie=he(33130),Ke=he(72119),ot=he(18290),He=he(50023),it=he(21970),be=he(59301);function yt(ct){let{suffixIcon:Xe,clearIcon:et,menuItemSelectedIcon:Je,removeIcon:Ue,loading:Ee,multiple:ee,hasFeedback:te,prefixCls:ue,showSuffixIcon:oe,feedbackIcon:de,showArrow:ve,componentName:xe}=ct;const Ae=et!=null?et:be.createElement(Ie.Z,null),Pe=je=>Xe===null&&!te&&!ve?null:be.createElement(be.Fragment,null,oe!==!1&&je,te&&de);let Ne=null;if(Xe!==void 0)Ne=Pe(Xe);else if(Ee)Ne=Pe(be.createElement(He.Z,{spin:!0}));else{const je=`${ue}-suffix`;Ne=Ge=>{let{open:We,showSearch:bt}=Ge;return Pe(We&&bt?be.createElement(it.Z,{className:je}):be.createElement(ot.Z,{className:je}))}}let Le=null;Je!==void 0?Le=Je:ee?Le=be.createElement(ge.Z,null):Le=null;let Re=null;return Ue!==void 0?Re=Ue:Re=be.createElement(Ke.Z,null),{clearIcon:Ae,suffixIcon:Ne,itemIcon:Le,removeIcon:Re}}},78485:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Xt}});var ge=he(92310),Ie=he.n(ge),Ke=he(59301),ot=he(36355),He=he(64002),be=mt=>{const{prefixCls:tt,className:Wt,style:Lt,size:pt,shape:nt}=mt,Oe=Ie()({[`${tt}-lg`]:pt==="large",[`${tt}-sm`]:pt==="small"}),we=Ie()({[`${tt}-circle`]:nt==="circle",[`${tt}-square`]:nt==="square",[`${tt}-round`]:nt==="round"}),ye=Ke.useMemo(()=>typeof pt=="number"?{width:pt,height:pt,lineHeight:`${pt}px`}:{},[pt]);return Ke.createElement("span",{className:Ie()(tt,Oe,we,Wt),style:Object.assign(Object.assign({},ye),Lt)})},yt=he(9792),ct=he(83116),Xe=he(37613);const et=new yt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Je=mt=>({height:mt,lineHeight:`${mt}px`}),Ue=mt=>Object.assign({width:mt},Je(mt)),Ee=mt=>({background:mt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:et,animationDuration:mt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ee=mt=>Object.assign({width:mt*5,minWidth:mt*5},Je(mt)),te=mt=>{const{skeletonAvatarCls:tt,gradientFromColor:Wt,controlHeight:Lt,controlHeightLG:pt,controlHeightSM:nt}=mt;return{[`${tt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Wt},Ue(Lt)),[`${tt}${tt}-circle`]:{borderRadius:"50%"},[`${tt}${tt}-lg`]:Object.assign({},Ue(pt)),[`${tt}${tt}-sm`]:Object.assign({},Ue(nt))}},ue=mt=>{const{controlHeight:tt,borderRadiusSM:Wt,skeletonInputCls:Lt,controlHeightLG:pt,controlHeightSM:nt,gradientFromColor:Oe}=mt;return{[`${Lt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Oe,borderRadius:Wt},ee(tt)),[`${Lt}-lg`]:Object.assign({},ee(pt)),[`${Lt}-sm`]:Object.assign({},ee(nt))}},oe=mt=>Object.assign({width:mt},Je(mt)),de=mt=>{const{skeletonImageCls:tt,imageSizeBase:Wt,gradientFromColor:Lt,borderRadiusSM:pt}=mt;return{[`${tt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Lt,borderRadius:pt},oe(Wt*2)),{[`${tt}-path`]:{fill:"#bfbfbf"},[`${tt}-svg`]:Object.assign(Object.assign({},oe(Wt)),{maxWidth:Wt*4,maxHeight:Wt*4}),[`${tt}-svg${tt}-svg-circle`]:{borderRadius:"50%"}}),[`${tt}${tt}-circle`]:{borderRadius:"50%"}}},ve=(mt,tt,Wt)=>{const{skeletonButtonCls:Lt}=mt;return{[`${Wt}${Lt}-circle`]:{width:tt,minWidth:tt,borderRadius:"50%"},[`${Wt}${Lt}-round`]:{borderRadius:tt}}},xe=mt=>Object.assign({width:mt*2,minWidth:mt*2},Je(mt)),Ae=mt=>{const{borderRadiusSM:tt,skeletonButtonCls:Wt,controlHeight:Lt,controlHeightLG:pt,controlHeightSM:nt,gradientFromColor:Oe}=mt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Wt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Oe,borderRadius:tt,width:Lt*2,minWidth:Lt*2},xe(Lt))},ve(mt,Lt,Wt)),{[`${Wt}-lg`]:Object.assign({},xe(pt))}),ve(mt,pt,`${Wt}-lg`)),{[`${Wt}-sm`]:Object.assign({},xe(nt))}),ve(mt,nt,`${Wt}-sm`))},Pe=mt=>{const{componentCls:tt,skeletonAvatarCls:Wt,skeletonTitleCls:Lt,skeletonParagraphCls:pt,skeletonButtonCls:nt,skeletonInputCls:Oe,skeletonImageCls:we,controlHeight:ye,controlHeightLG:ke,controlHeightSM:Ve,gradientFromColor:Be,padding:dt,marginSM:on,borderRadius:mn,titleHeight:Et,blockRadius:Ot,paragraphLiHeight:yn,controlHeightXS:Tn,paragraphMarginTop:qn}=mt;return{[`${tt}`]:{display:"table",width:"100%",[`${tt}-header`]:{display:"table-cell",paddingInlineEnd:dt,verticalAlign:"top",[`${Wt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Be},Ue(ye)),[`${Wt}-circle`]:{borderRadius:"50%"},[`${Wt}-lg`]:Object.assign({},Ue(ke)),[`${Wt}-sm`]:Object.assign({},Ue(Ve))},[`${tt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Lt}`]:{width:"100%",height:Et,background:Be,borderRadius:Ot,[`+ ${pt}`]:{marginBlockStart:Ve}},[`${pt}`]:{padding:0,"> li":{width:"100%",height:yn,listStyle:"none",background:Be,borderRadius:Ot,"+ li":{marginBlockStart:Tn}}},[`${pt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${tt}-content`]:{[`${Lt}, ${pt} > li`]:{borderRadius:mn}}},[`${tt}-with-avatar ${tt}-content`]:{[`${Lt}`]:{marginBlockStart:on,[`+ ${pt}`]:{marginBlockStart:qn}}},[`${tt}${tt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ae(mt)),te(mt)),ue(mt)),de(mt)),[`${tt}${tt}-block`]:{width:"100%",[`${nt}`]:{width:"100%"},[`${Oe}`]:{width:"100%"}},[`${tt}${tt}-active`]:{[`
|
|
|
${Lt},
|
|
|
${pt} > li,
|
|
|
${Wt},
|
|
|
${nt},
|
|
|
${Oe},
|
|
|
${we}
|
|
|
`]:Object.assign({},Ee(mt))}}};var Ne=(0,ct.Z)("Skeleton",mt=>{const{componentCls:tt}=mt,Wt=(0,Xe.TS)(mt,{skeletonAvatarCls:`${tt}-avatar`,skeletonTitleCls:`${tt}-title`,skeletonParagraphCls:`${tt}-paragraph`,skeletonButtonCls:`${tt}-button`,skeletonInputCls:`${tt}-input`,skeletonImageCls:`${tt}-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[Pe(Wt)]},mt=>{const{colorFillContent:tt,colorFill:Wt}=mt,Lt=tt,pt=Wt;return{color:Lt,colorGradientEnd:pt,gradientFromColor:Lt,gradientToColor:pt,titleHeight:mt.controlHeight/2,blockRadius:mt.borderRadiusSM,paragraphMarginTop:mt.marginLG+mt.marginXXS,paragraphLiHeight:mt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Re=mt=>{const{prefixCls:tt,className:Wt,rootClassName:Lt,active:pt,shape:nt="circle",size:Oe="default"}=mt,{getPrefixCls:we}=Ke.useContext(ot.E_),ye=we("skeleton",tt),[ke,Ve]=Ne(ye),Be=(0,He.Z)(mt,["prefixCls","className"]),dt=Ie()(ye,`${ye}-element`,{[`${ye}-active`]:pt},Wt,Lt,Ve);return ke(Ke.createElement("div",{className:dt},Ke.createElement(be,Object.assign({prefixCls:`${ye}-avatar`,shape:nt,size:Oe},Be))))},Ge=mt=>{const{prefixCls:tt,className:Wt,rootClassName:Lt,active:pt,block:nt=!1,size:Oe="default"}=mt,{getPrefixCls:we}=Ke.useContext(ot.E_),ye=we("skeleton",tt),[ke,Ve]=Ne(ye),Be=(0,He.Z)(mt,["prefixCls"]),dt=Ie()(ye,`${ye}-element`,{[`${ye}-active`]:pt,[`${ye}-block`]:nt},Wt,Lt,Ve);return ke(Ke.createElement("div",{className:dt},Ke.createElement(be,Object.assign({prefixCls:`${ye}-button`,size:Oe},Be))))};const We="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 Qe=mt=>{const{prefixCls:tt,className:Wt,rootClassName:Lt,style:pt,active:nt}=mt,{getPrefixCls:Oe}=Ke.useContext(ot.E_),we=Oe("skeleton",tt),[ye,ke]=Ne(we),Ve=Ie()(we,`${we}-element`,{[`${we}-active`]:nt},Wt,Lt,ke);return ye(Ke.createElement("div",{className:Ve},Ke.createElement("div",{className:Ie()(`${we}-image`,Wt),style:pt},Ke.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${we}-image-svg`},Ke.createElement("path",{d:We,className:`${we}-image-path`})))))},vt=mt=>{const{prefixCls:tt,className:Wt,rootClassName:Lt,active:pt,block:nt,size:Oe="default"}=mt,{getPrefixCls:we}=Ke.useContext(ot.E_),ye=we("skeleton",tt),[ke,Ve]=Ne(ye),Be=(0,He.Z)(mt,["prefixCls"]),dt=Ie()(ye,`${ye}-element`,{[`${ye}-active`]:pt,[`${ye}-block`]:nt},Wt,Lt,Ve);return ke(Ke.createElement("div",{className:dt},Ke.createElement(be,Object.assign({prefixCls:`${ye}-input`,size:Oe},Be))))},kt=he(5891),Rt={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"},Jt=Rt,at=he(88853),Ze=function(tt,Wt){return Ke.createElement(at.Z,(0,kt.Z)({},tt,{ref:Wt,icon:Jt}))},Mt=Ke.forwardRef(Ze),Yt=Mt,Ct=mt=>{const{prefixCls:tt,className:Wt,rootClassName:Lt,style:pt,active:nt,children:Oe}=mt,{getPrefixCls:we}=Ke.useContext(ot.E_),ye=we("skeleton",tt),[ke,Ve]=Ne(ye),Be=Ie()(ye,`${ye}-element`,{[`${ye}-active`]:nt},Ve,Wt,Lt),dt=Oe!=null?Oe:Ke.createElement(Yt,null);return ke(Ke.createElement("div",{className:Be},Ke.createElement("div",{className:Ie()(`${ye}-image`,Wt),style:pt},dt)))},Nt=he(26390),Nn=mt=>{const tt=we=>{const{width:ye,rows:ke=2}=mt;if(Array.isArray(ye))return ye[we];if(ke-1===we)return ye},{prefixCls:Wt,className:Lt,style:pt,rows:nt}=mt,Oe=(0,Nt.Z)(Array(nt)).map((we,ye)=>Ke.createElement("li",{key:ye,style:{width:tt(ye)}}));return Ke.createElement("ul",{className:Ie()(Wt,Lt),style:pt},Oe)},Xn=mt=>{let{prefixCls:tt,className:Wt,width:Lt,style:pt}=mt;return Ke.createElement("h3",{className:Ie()(tt,Wt),style:Object.assign({width:Lt},pt)})};function Ft(mt){return mt&&typeof mt=="object"?mt:{}}function Un(mt,tt){return mt&&!tt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Kn(mt,tt){return!mt&&tt?{width:"38%"}:mt&&tt?{width:"50%"}:{}}function ti(mt,tt){const Wt={};return(!mt||!tt)&&(Wt.width="61%"),!mt&&tt?Wt.rows=3:Wt.rows=2,Wt}const Fn=mt=>{const{prefixCls:tt,loading:Wt,className:Lt,rootClassName:pt,style:nt,children:Oe,avatar:we=!1,title:ye=!0,paragraph:ke=!0,active:Ve,round:Be}=mt,{getPrefixCls:dt,direction:on,skeleton:mn}=Ke.useContext(ot.E_),Et=dt("skeleton",tt),[Ot,yn]=Ne(Et);if(Wt||!("loading"in mt)){const Tn=!!we,qn=!!ye,vi=!!ke;let gi;if(Tn){const yr=Object.assign(Object.assign({prefixCls:`${Et}-avatar`},Un(qn,vi)),Ft(we));gi=Ke.createElement("div",{className:`${Et}-header`},Ke.createElement(be,Object.assign({},yr)))}let wi;if(qn||vi){let yr;if(qn){const fr=Object.assign(Object.assign({prefixCls:`${Et}-title`},Kn(Tn,vi)),Ft(ye));yr=Ke.createElement(Xn,Object.assign({},fr))}let ir;if(vi){const fr=Object.assign(Object.assign({prefixCls:`${Et}-paragraph`},ti(Tn,qn)),Ft(ke));ir=Ke.createElement(Nn,Object.assign({},fr))}wi=Ke.createElement("div",{className:`${Et}-content`},yr,ir)}const _n=Ie()(Et,{[`${Et}-with-avatar`]:Tn,[`${Et}-active`]:Ve,[`${Et}-rtl`]:on==="rtl",[`${Et}-round`]:Be},mn==null?void 0:mn.className,Lt,pt,yn);return Ot(Ke.createElement("div",{className:_n,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),nt)},gi,wi))}return typeof Oe!="undefined"?Oe:null};Fn.Button=Ge,Fn.Avatar=Re,Fn.Input=vt,Fn.Image=Qe,Fn.Node=Ct;var Zt=Fn,Xt=Zt},81327:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ue}});var ge=he(59301),Ie=he(92310),Ke=he.n(Ie),ot=he(38298),He=he(36355),it=he(33234);const be=ge.createContext({latestIndex:0}),yt=be.Provider;var Xe=oe=>{let{className:de,index:ve,children:xe,split:Ae,style:Pe}=oe;const{latestIndex:Ne}=ge.useContext(be);return xe==null?null:ge.createElement(ge.Fragment,null,ge.createElement("div",{className:de,style:Pe},xe),ve<Ne&&Ae&&ge.createElement("span",{className:`${de}-split`},Ae))},et=he(2856);function Je(oe){return["small","middle","large"].includes(oe)}function Ue(oe){return oe?typeof oe=="number"&&!Number.isNaN(oe):!1}var Ee=function(oe,de){var ve={};for(var xe in oe)Object.prototype.hasOwnProperty.call(oe,xe)&&de.indexOf(xe)<0&&(ve[xe]=oe[xe]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,xe=Object.getOwnPropertySymbols(oe);Ae<xe.length;Ae++)de.indexOf(xe[Ae])<0&&Object.prototype.propertyIsEnumerable.call(oe,xe[Ae])&&(ve[xe[Ae]]=oe[xe[Ae]]);return ve};const te=ge.forwardRef((oe,de)=>{var ve,xe;const{getPrefixCls:Ae,space:Pe,direction:Ne}=ge.useContext(He.E_),{size:Le=(Pe==null?void 0:Pe.size)||"small",align:Re,className:je,rootClassName:Ge,children:We,direction:bt="horizontal",prefixCls:Qe,split:Dt,style:vt,wrap:kt=!1,classNames:Rt,styles:Jt}=oe,at=Ee(oe,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ze,Mt]=Array.isArray(Le)?Le:[Le,Le],Yt=Je(Mt),Vt=Je(Ze),Ct=Ue(Mt),Nt=Ue(Ze),sn=(0,ot.Z)(We,{keepEmpty:!0}),Nn=Re===void 0&&bt==="horizontal"?"center":Re,hn=Ae("space",Qe),[Xn,Ft]=(0,et.Z)(hn),Un=Ke()(hn,Pe==null?void 0:Pe.className,Ft,`${hn}-${bt}`,{[`${hn}-rtl`]:Ne==="rtl",[`${hn}-align-${Nn}`]:Nn,[`${hn}-gap-row-${Mt}`]:Yt,[`${hn}-gap-col-${Ze}`]:Vt},je,Ge),Kn=Ke()(`${hn}-item`,(ve=Rt==null?void 0:Rt.item)!==null&&ve!==void 0?ve:(xe=Pe==null?void 0:Pe.classNames)===null||xe===void 0?void 0:xe.item);let ti=0;const Fn=sn.map((mt,tt)=>{var Wt,Lt;mt!=null&&(ti=tt);const pt=mt&&mt.key||`${Kn}-${tt}`;return ge.createElement(Xe,{className:Kn,key:pt,index:tt,split:Dt,style:(Wt=Jt==null?void 0:Jt.item)!==null&&Wt!==void 0?Wt:(Lt=Pe==null?void 0:Pe.styles)===null||Lt===void 0?void 0:Lt.item},mt)}),Zt=ge.useMemo(()=>({latestIndex:ti}),[ti]);if(sn.length===0)return null;const Xt={};return kt&&(Xt.flexWrap="wrap"),!Vt&&Nt&&(Xt.columnGap=Ze),!Yt&&Ct&&(Xt.rowGap=Mt),Xn(ge.createElement("div",Object.assign({ref:de,className:Un,style:Object.assign(Object.assign(Object.assign({},Xt),Pe==null?void 0:Pe.style),vt)},at),ge.createElement(yt,{value:Zt},Fn)))});te.Compact=it.ZP;var ue=te},31797:function(fn,jt,he){"use strict";he.d(jt,{default:function(){return Ne}});var ge=he(59301),Ie=he(56762),Ke=he(92343),ot=he(92310),He=he.n(ot),it=he(36355),be=he(78485),ct=Le=>{const{value:Re,formatter:je,precision:Ge,decimalSeparator:We,groupSeparator:bt="",prefixCls:Qe}=Le;let Dt;if(typeof je=="function")Dt=je(Re);else{const vt=String(Re),kt=vt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!kt||vt==="-")Dt=vt;else{const Rt=kt[1];let Jt=kt[2]||"0",at=kt[4]||"";Jt=Jt.replace(/\B(?=(\d{3})+(?!\d))/g,bt),typeof Ge=="number"&&(at=at.padEnd(Ge,"0").slice(0,Ge>0?Ge:0)),at&&(at=`${We}${at}`),Dt=[ge.createElement("span",{key:"int",className:`${Qe}-content-value-int`},Rt,Jt),at&&ge.createElement("span",{key:"decimal",className:`${Qe}-content-value-decimal`},at)]}}return ge.createElement("span",{className:`${Qe}-content-value`},Dt)},Xe=he(17313),et=he(83116),Je=he(37613);const Ue=Le=>{const{componentCls:Re,marginXXS:je,padding:Ge,colorTextDescription:We,titleFontSize:bt,colorTextHeading:Qe,contentFontSize:Dt,fontFamily:vt}=Le;return{[`${Re}`]:Object.assign(Object.assign({},(0,Xe.Wf)(Le)),{[`${Re}-title`]:{marginBottom:je,color:We,fontSize:bt},[`${Re}-skeleton`]:{paddingTop:Ge},[`${Re}-content`]:{color:Qe,fontSize:Dt,fontFamily:vt,[`${Re}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Re}-content-prefix, ${Re}-content-suffix`]:{display:"inline-block"},[`${Re}-content-prefix`]:{marginInlineEnd:je},[`${Re}-content-suffix`]:{marginInlineStart:je}}})}};var Ee=(0,et.Z)("Statistic",Le=>{const Re=(0,Je.TS)(Le,{});return[Ue(Re)]},Le=>{const{fontSizeHeading3:Re,fontSize:je}=Le;return{titleFontSize:je,contentFontSize:Re}}),te=Le=>{const{prefixCls:Re,className:je,rootClassName:Ge,style:We,valueStyle:bt,value:Qe=0,title:Dt,valueRender:vt,prefix:kt,suffix:Rt,loading:Jt=!1,onMouseEnter:at,onMouseLeave:Ze,decimalSeparator:Mt=".",groupSeparator:Yt=","}=Le,{getPrefixCls:Vt,direction:Ct,statistic:Nt}=ge.useContext(it.E_),sn=Vt("statistic",Re),[Nn,hn]=Ee(sn),Xn=ge.createElement(ct,Object.assign({decimalSeparator:Mt,groupSeparator:Yt,prefixCls:sn},Le,{value:Qe})),Ft=He()(sn,{[`${sn}-rtl`]:Ct==="rtl"},Nt==null?void 0:Nt.className,je,Ge,hn);return Nn(ge.createElement("div",{className:Ft,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),We),onMouseEnter:at,onMouseLeave:Ze},Dt&&ge.createElement("div",{className:`${sn}-title`},Dt),ge.createElement(be.Z,{paragraph:!1,loading:Jt,className:`${sn}-skeleton`},ge.createElement("div",{style:bt,className:`${sn}-content`},kt&&ge.createElement("span",{className:`${sn}-content-prefix`},kt),vt?vt(Xn):Xn,Rt&&ge.createElement("span",{className:`${sn}-content-suffix`},Rt)))))};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 oe(Le,Re){let je=Le;const Ge=/\[[^\]]*]/g,We=(Re.match(Ge)||[]).map(vt=>vt.slice(1,-1)),bt=Re.replace(Ge,"[]"),Qe=ue.reduce((vt,kt)=>{let[Rt,Jt]=kt;if(vt.includes(Rt)){const at=Math.floor(je/Jt);return je-=at*Jt,vt.replace(new RegExp(`${Rt}+`,"g"),Ze=>{const Mt=Ze.length;return at.toString().padStart(Mt,"0")})}return vt},bt);let Dt=0;return Qe.replace(Ge,()=>{const vt=We[Dt];return Dt+=1,vt})}function de(Le,Re){const{format:je=""}=Re,Ge=new Date(Le).getTime(),We=Date.now(),bt=Math.max(Ge-We,0);return oe(bt,je)}const ve=1e3/30;function xe(Le){return new Date(Le).getTime()}const Ae=Le=>{const{value:Re,format:je="HH:mm:ss",onChange:Ge,onFinish:We}=Le,bt=(0,Ie.Z)(),Qe=ge.useRef(null),Dt=()=>{We==null||We(),Qe.current&&(clearInterval(Qe.current),Qe.current=null)},vt=()=>{const Jt=xe(Re);Jt>=Date.now()&&(Qe.current=setInterval(()=>{bt(),Ge==null||Ge(Jt-Date.now()),Jt<Date.now()&&Dt()},ve))};ge.useEffect(()=>(vt(),()=>{Qe.current&&(clearInterval(Qe.current),Qe.current=null)}),[Re]);const kt=(Jt,at)=>de(Jt,Object.assign(Object.assign({},at),{format:je})),Rt=Jt=>(0,Ke.Tm)(Jt,{title:void 0});return ge.createElement(te,Object.assign({},Le,{valueRender:Rt,formatter:kt}))};var Pe=ge.memo(Ae);te.Countdown=Pe;var Ne=te},15969:function(fn,jt,he){"use strict";he.d(jt,{N:function(){return ge}});const ge=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(fn,jt,he){"use strict";he.d(jt,{Z:function(){return bt}});var ge=he(50023),Ie=he(92310),Ke=he.n(Ie),ot=he(5891),He=he(80962),it=he(29043),be=he(19149),yt=he(59301),ct=he(35788),Xe=he(85108),et=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Je=yt.forwardRef(function(Qe,Dt){var vt,kt=Qe.prefixCls,Rt=kt===void 0?"rc-switch":kt,Jt=Qe.className,at=Qe.checked,Ze=Qe.defaultChecked,Mt=Qe.disabled,Yt=Qe.loadingIcon,Vt=Qe.checkedChildren,Ct=Qe.unCheckedChildren,Nt=Qe.onClick,sn=Qe.onChange,Nn=Qe.onKeyDown,hn=(0,be.Z)(Qe,et),Xn=(0,ct.Z)(!1,{value:at,defaultValue:Ze}),Ft=(0,it.Z)(Xn,2),Un=Ft[0],Kn=Ft[1];function ti(mt,tt){var Wt=Un;return Mt||(Wt=mt,Kn(Wt),sn==null||sn(Wt,tt)),Wt}function Fn(mt){mt.which===Xe.Z.LEFT?ti(!1,mt):mt.which===Xe.Z.RIGHT&&ti(!0,mt),Nn==null||Nn(mt)}function Zt(mt){var tt=ti(!Un,mt);Nt==null||Nt(tt,mt)}var Xt=Ke()(Rt,Jt,(vt={},(0,He.Z)(vt,"".concat(Rt,"-checked"),Un),(0,He.Z)(vt,"".concat(Rt,"-disabled"),Mt),vt));return yt.createElement("button",(0,ot.Z)({},hn,{type:"button",role:"switch","aria-checked":Un,disabled:Mt,className:Xt,ref:Dt,onKeyDown:Fn,onClick:Zt}),Yt,yt.createElement("span",{className:"".concat(Rt,"-inner")},yt.createElement("span",{className:"".concat(Rt,"-inner-checked")},Vt),yt.createElement("span",{className:"".concat(Rt,"-inner-unchecked")},Ct)))});Je.displayName="Switch";var Ue=Je,Ee=he(14088),ee=he(36355),te=he(1684),ue=he(19716),oe=he(64993),de=he(17313),ve=he(83116),xe=he(37613);const Ae=Qe=>{const{componentCls:Dt,trackHeightSM:vt,trackPadding:kt,trackMinWidthSM:Rt,innerMinMarginSM:Jt,innerMaxMarginSM:at,handleSizeSM:Ze}=Qe,Mt=`${Dt}-inner`;return{[Dt]:{[`&${Dt}-small`]:{minWidth:Rt,height:vt,lineHeight:`${vt}px`,[`${Dt}-inner`]:{paddingInlineStart:at,paddingInlineEnd:Jt,[`${Mt}-checked`]:{marginInlineStart:`calc(-100% + ${Ze+kt*2}px - ${at*2}px)`,marginInlineEnd:`calc(100% - ${Ze+kt*2}px + ${at*2}px)`},[`${Mt}-unchecked`]:{marginTop:-vt,marginInlineStart:0,marginInlineEnd:0}},[`${Dt}-handle`]:{width:Ze,height:Ze},[`${Dt}-loading-icon`]:{top:(Ze-Qe.switchLoadingIconSize)/2,fontSize:Qe.switchLoadingIconSize},[`&${Dt}-checked`]:{[`${Dt}-inner`]:{paddingInlineStart:Jt,paddingInlineEnd:at,[`${Mt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Mt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ze+kt*2}px + ${at*2}px)`,marginInlineEnd:`calc(-100% + ${Ze+kt*2}px - ${at*2}px)`}},[`${Dt}-handle`]:{insetInlineStart:`calc(100% - ${Ze+kt}px)`}},[`&:not(${Dt}-disabled):active`]:{[`&:not(${Dt}-checked) ${Mt}`]:{[`${Mt}-unchecked`]:{marginInlineStart:Qe.marginXXS/2,marginInlineEnd:-Qe.marginXXS/2}},[`&${Dt}-checked ${Mt}`]:{[`${Mt}-checked`]:{marginInlineStart:-Qe.marginXXS/2,marginInlineEnd:Qe.marginXXS/2}}}}}}},Pe=Qe=>{const{componentCls:Dt,handleSize:vt}=Qe;return{[Dt]:{[`${Dt}-loading-icon${Qe.iconCls}`]:{position:"relative",top:(vt-Qe.fontSize)/2,color:Qe.switchLoadingIconColor,verticalAlign:"top"},[`&${Dt}-checked ${Dt}-loading-icon`]:{color:Qe.switchColor}}}},Ne=Qe=>{const{componentCls:Dt,motion:vt,trackPadding:kt,handleBg:Rt,handleShadow:Jt,handleSize:at}=Qe,Ze=`${Dt}-handle`;return{[Dt]:{[Ze]:{position:"absolute",top:kt,insetInlineStart:kt,width:at,height:at,transition:`all ${Qe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Rt,borderRadius:at/2,boxShadow:Jt,transition:`all ${Qe.switchDuration} ease-in-out`,content:'""'}},[`&${Dt}-checked ${Ze}`]:{insetInlineStart:`calc(100% - ${at+kt}px)`},[`&:not(${Dt}-disabled):active`]:vt?{[`${Ze}::before`]:{insetInlineEnd:Qe.switchHandleActiveInset,insetInlineStart:0},[`&${Dt}-checked ${Ze}::before`]:{insetInlineEnd:0,insetInlineStart:Qe.switchHandleActiveInset}}:{}}}},Le=Qe=>{const{componentCls:Dt,trackHeight:vt,trackPadding:kt,innerMinMargin:Rt,innerMaxMargin:Jt,handleSize:at}=Qe,Ze=`${Dt}-inner`;return{[Dt]:{[Ze]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Jt,paddingInlineEnd:Rt,transition:`padding-inline-start ${Qe.switchDuration} ease-in-out, padding-inline-end ${Qe.switchDuration} ease-in-out`,[`${Ze}-checked, ${Ze}-unchecked`]:{display:"block",color:Qe.colorTextLightSolid,fontSize:Qe.fontSizeSM,transition:`margin-inline-start ${Qe.switchDuration} ease-in-out, margin-inline-end ${Qe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ze}-checked`]:{marginInlineStart:`calc(-100% + ${at+kt*2}px - ${Jt*2}px)`,marginInlineEnd:`calc(100% - ${at+kt*2}px + ${Jt*2}px)`},[`${Ze}-unchecked`]:{marginTop:-vt,marginInlineStart:0,marginInlineEnd:0}},[`&${Dt}-checked ${Ze}`]:{paddingInlineStart:Rt,paddingInlineEnd:Jt,[`${Ze}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ze}-unchecked`]:{marginInlineStart:`calc(100% - ${at+kt*2}px + ${Jt*2}px)`,marginInlineEnd:`calc(-100% + ${at+kt*2}px - ${Jt*2}px)`}},[`&:not(${Dt}-disabled):active`]:{[`&:not(${Dt}-checked) ${Ze}`]:{[`${Ze}-unchecked`]:{marginInlineStart:kt*2,marginInlineEnd:-kt*2}},[`&${Dt}-checked ${Ze}`]:{[`${Ze}-checked`]:{marginInlineStart:-kt*2,marginInlineEnd:kt*2}}}}}},Re=Qe=>{const{componentCls:Dt,trackHeight:vt,trackMinWidth:kt}=Qe;return{[Dt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Qe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:kt,height:vt,lineHeight:`${vt}px`,verticalAlign:"middle",background:Qe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Qe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Dt}-disabled)`]:{background:Qe.colorTextTertiary}}),(0,de.Qy)(Qe)),{[`&${Dt}-checked`]:{background:Qe.switchColor,[`&:hover:not(${Dt}-disabled)`]:{background:Qe.colorPrimaryHover}},[`&${Dt}-loading, &${Dt}-disabled`]:{cursor:"not-allowed",opacity:Qe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Dt}-rtl`]:{direction:"rtl"}})}};var je=(0,ve.Z)("Switch",Qe=>{const Dt=(0,xe.TS)(Qe,{switchDuration:Qe.motionDurationMid,switchColor:Qe.colorPrimary,switchDisabledOpacity:Qe.opacityLoading,switchLoadingIconSize:Qe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Qe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Re(Dt),Le(Dt),Ne(Dt),Pe(Dt),Ae(Dt)]},Qe=>{const{fontSize:Dt,lineHeight:vt,controlHeight:kt,colorWhite:Rt}=Qe,Jt=Dt*vt,at=kt/2,Ze=2,Mt=Jt-Ze*2,Yt=at-Ze*2;return{trackHeight:Jt,trackHeightSM:at,trackMinWidth:Mt*2+Ze*4,trackMinWidthSM:Yt*2+Ze*2,trackPadding:Ze,handleBg:Rt,handleSize:Mt,handleSizeSM:Yt,handleShadow:`0 2px 4px 0 ${new oe.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Mt/2,innerMaxMargin:Mt+Ze+Ze*2,innerMinMarginSM:Yt/2,innerMaxMarginSM:Yt+Ze+Ze*2}}),Ge=function(Qe,Dt){var vt={};for(var kt in Qe)Object.prototype.hasOwnProperty.call(Qe,kt)&&Dt.indexOf(kt)<0&&(vt[kt]=Qe[kt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,kt=Object.getOwnPropertySymbols(Qe);Rt<kt.length;Rt++)Dt.indexOf(kt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,kt[Rt])&&(vt[kt[Rt]]=Qe[kt[Rt]]);return vt};const We=yt.forwardRef((Qe,Dt)=>{const{prefixCls:vt,size:kt,disabled:Rt,loading:Jt,className:at,rootClassName:Ze,style:Mt}=Qe,Yt=Ge(Qe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Vt,direction:Ct,switch:Nt}=yt.useContext(ee.E_),sn=yt.useContext(te.Z),Nn=(Rt!=null?Rt:sn)||Jt,hn=Vt("switch",vt),Xn=yt.createElement("div",{className:`${hn}-handle`},Jt&&yt.createElement(ge.Z,{className:`${hn}-loading-icon`})),[Ft,Un]=je(hn),Kn=(0,ue.Z)(kt),ti=Ke()(Nt==null?void 0:Nt.className,{[`${hn}-small`]:Kn==="small",[`${hn}-loading`]:Jt,[`${hn}-rtl`]:Ct==="rtl"},at,Ze,Un),Fn=Object.assign(Object.assign({},Nt==null?void 0:Nt.style),Mt);return Ft(yt.createElement(Ee.Z,{component:"Switch"},yt.createElement(Ue,Object.assign({},Yt,{prefixCls:hn,className:ti,style:Fn,disabled:Nn,ref:Dt,loadingIcon:Xn}))))});We.__ANT_SWITCH=!0;var bt=We},2595:function(fn,jt,he){"use strict";he.d(jt,{default:function(){return dl}});var ge={},Ie="rc-table-internal-hook",Ke=he(29043),ot=he(8107),He=he(28800),it=he(51346),be=he(59301),yt=he(4676);function ct(st){var St=be.createContext(void 0),_t=function(pn){var un=pn.value,Wn=pn.children,jn=be.useRef(un);jn.current=un;var zn=be.useState(function(){return{getValue:function(){return jn.current},listeners:new Set}}),fi=(0,Ke.Z)(zn,1),$n=fi[0];return(0,He.Z)(function(){(0,yt.unstable_batchedUpdates)(function(){$n.listeners.forEach(function(ci){ci(un)})})},[un]),be.createElement(St.Provider,{value:$n},Wn)};return{Context:St,Provider:_t,defaultValue:st}}function Xe(st,St){var _t=(0,ot.Z)(typeof St=="function"?St:function(ci){if(St===void 0)return ci;if(!Array.isArray(St))return ci[St];var Ri={};return St.forEach(function(Oi){Ri[Oi]=ci[Oi]}),Ri}),tn=be.useContext(st==null?void 0:st.Context),pn=tn||{},un=pn.listeners,Wn=pn.getValue,jn=be.useRef();jn.current=_t(tn?Wn():st==null?void 0:st.defaultValue);var zn=be.useState({}),fi=(0,Ke.Z)(zn,2),$n=fi[1];return(0,He.Z)(function(){if(!tn)return;function ci(Ri){var Oi=_t(Ri);(0,it.Z)(jn.current,Oi,!0)||$n({})}return un.add(ci),function(){un.delete(ci)}},[tn]),jn.current}var et=he(5891),Je=he(20475);function Ue(){var st=be.createContext(null);function St(){return be.useContext(st)}function _t(pn,un){var Wn=(0,Je.Yr)(pn),jn=function(fi,$n){var ci=Wn?{ref:$n}:{},Ri=be.useRef(0),Oi=be.useRef(fi),Di=St();return Di!==null?be.createElement(pn,(0,et.Z)({},fi,ci)):((!un||un(Oi.current,fi))&&(Ri.current+=1),Oi.current=fi,be.createElement(st.Provider,{value:Ri.current},be.createElement(pn,(0,et.Z)({},fi,ci))))};return Wn?be.forwardRef(jn):jn}function tn(pn,un){var Wn=(0,Je.Yr)(pn),jn=function(fi,$n){var ci=Wn?{ref:$n}:{};return St(),be.createElement(pn,(0,et.Z)({},fi,ci))};return Wn?be.memo(be.forwardRef(jn),un):be.memo(jn,un)}return{makeImmutable:_t,responseImmutable:tn,useImmutableMark:St}}var Ee=Ue(),ee=Ee.makeImmutable,te=Ee.responseImmutable,ue=Ee.useImmutableMark,oe=Ue(),de=oe.makeImmutable,ve=oe.responseImmutable,xe=oe.useImmutableMark,Ae=ct(),Pe=Ae;function Ne(st,St){var _t=be.useRef(0);_t.current+=1;var tn=be.useRef(st),pn=[];Object.keys(st||{}).map(function(Wn){var jn;(st==null?void 0:st[Wn])!==((jn=tn.current)===null||jn===void 0?void 0:jn[Wn])&&pn.push(Wn)}),tn.current=st;var un=be.useRef([]);return pn.length&&(un.current=pn),be.useDebugValue(_t.current),be.useDebugValue(un.current.join(", ")),St&&console.log("".concat(St,":"),_t.current,un.current),_t.current}var Le=null,Re=be.memo(function(){var st=Ne();return be.createElement("h1",null,"Render Times: ",st)});Re.displayName="RenderBlock";var je=he(80665),Ge=he(57259),We=he(80962),bt=he(92310),Qe=he.n(bt),Dt=he(79722),vt=he(69004),kt=he(51395),Rt=be.createContext({renderWithProps:!1}),Jt=Rt,at="RC_TABLE_KEY";function Ze(st){return st==null?[]:Array.isArray(st)?st:[st]}function Mt(st){var St=[],_t={};return st.forEach(function(tn){for(var pn=tn||{},un=pn.key,Wn=pn.dataIndex,jn=un||Ze(Wn).join("-")||at;_t[jn];)jn="".concat(jn,"_next");_t[jn]=!0,St.push(jn)}),St}function Yt(st){return st!=null}function Vt(st){return st&&(0,je.Z)(st)==="object"&&!Array.isArray(st)&&!be.isValidElement(st)}function Ct(st,St,_t,tn,pn,un){var Wn=be.useContext(Jt),jn=xe(),zn=(0,Dt.Z)(function(){if(Yt(tn))return[tn];var fi=St==null||St===""?[]:Array.isArray(St)?St:[St],$n=(0,vt.Z)(st,fi),ci=$n,Ri=void 0;if(pn){var Oi=pn($n,st,_t);Vt(Oi)?(ci=Oi.children,Ri=Oi.props,Wn.renderWithProps=!0):ci=Oi}return[ci,Ri]},[jn,st,tn,St,pn,_t],function(fi,$n){if(un){var ci=(0,Ke.Z)(fi,2),Ri=ci[1],Oi=(0,Ke.Z)($n,2),Di=Oi[1];return un(Di,Ri)}return Wn.renderWithProps?!0:!(0,it.Z)(fi,$n,!0)});return zn}function Nt(st,St,_t,tn){var pn=st+St-1;return st<=tn&&pn>=_t}function sn(st,St){return Xe(Pe,function(_t){var tn=Nt(st,St||1,_t.hoverStartRow,_t.hoverEndRow);return[tn,_t.onHover]})}var Nn=function(St){var _t=St.ellipsis,tn=St.rowType,pn=St.children,un,Wn=_t===!0?{showTitle:!0}:_t;return Wn&&(Wn.showTitle||tn==="header")&&(typeof pn=="string"||typeof pn=="number"?un=pn.toString():be.isValidElement(pn)&&typeof pn.props.children=="string"&&(un=pn.props.children)),un};function hn(st){var St,_t,tn,pn,un,Wn,jn,zn,fi=st.component,$n=st.children,ci=st.ellipsis,Ri=st.scope,Oi=st.prefixCls,Di=st.className,ur=st.align,ki=st.record,Sr=st.render,mr=st.dataIndex,br=st.renderIndex,lo=st.shouldCellUpdate,Po=st.index,Mr=st.rowType,Wr=st.colSpan,Wo=st.rowSpan,Ar=st.fixLeft,_r=st.fixRight,Lr=st.firstFixLeft,nr=st.lastFixLeft,wr=st.firstFixRight,Qr=st.lastFixRight,wo=st.appendNode,Eo=st.additionalProps,Cr=Eo===void 0?{}:Eo,Zo=st.isSticky,Jo="".concat(Oi,"-cell"),ea=Xe(Pe,["supportSticky","allColumnsFixedLeft"]),qo=ea.supportSticky,qa=ea.allColumnsFixedLeft,ha=Ct(ki,mr,br,$n,Sr,lo),zo=(0,Ke.Z)(ha,2),po=zo[0],Lo=zo[1],Xa={},Ia=typeof Ar=="number"&&qo,as=typeof _r=="number"&&qo;Ia&&(Xa.position="sticky",Xa.left=Ar),as&&(Xa.position="sticky",Xa.right=_r);var ko=(St=(_t=(tn=Lo==null?void 0:Lo.colSpan)!==null&&tn!==void 0?tn:Cr.colSpan)!==null&&_t!==void 0?_t:Wr)!==null&&St!==void 0?St:1,So=(pn=(un=(Wn=Lo==null?void 0:Lo.rowSpan)!==null&&Wn!==void 0?Wn:Cr.rowSpan)!==null&&un!==void 0?un:Wo)!==null&&pn!==void 0?pn:1,jo=sn(Po,So),ho=(0,Ke.Z)(jo,2),Yr=ho[0],Hi=ho[1],kr=function(Fo){var Ys;ki&&Hi(Po,Po+So-1),Cr==null||(Ys=Cr.onMouseEnter)===null||Ys===void 0||Ys.call(Cr,Fo)},Vo=function(Fo){var Ys;ki&&Hi(-1,-1),Cr==null||(Ys=Cr.onMouseLeave)===null||Ys===void 0||Ys.call(Cr,Fo)};if(ko===0||So===0)return null;var sa=(jn=Cr.title)!==null&&jn!==void 0?jn:Nn({rowType:Mr,ellipsis:ci,children:po}),al=Qe()(Jo,Di,(zn={},(0,We.Z)(zn,"".concat(Jo,"-fix-left"),Ia&&qo),(0,We.Z)(zn,"".concat(Jo,"-fix-left-first"),Lr&&qo),(0,We.Z)(zn,"".concat(Jo,"-fix-left-last"),nr&&qo),(0,We.Z)(zn,"".concat(Jo,"-fix-left-all"),nr&&qa&&qo),(0,We.Z)(zn,"".concat(Jo,"-fix-right"),as&&qo),(0,We.Z)(zn,"".concat(Jo,"-fix-right-first"),wr&&qo),(0,We.Z)(zn,"".concat(Jo,"-fix-right-last"),Qr&&qo),(0,We.Z)(zn,"".concat(Jo,"-ellipsis"),ci),(0,We.Z)(zn,"".concat(Jo,"-with-append"),wo),(0,We.Z)(zn,"".concat(Jo,"-fix-sticky"),(Ia||as)&&Zo&&qo),(0,We.Z)(zn,"".concat(Jo,"-row-hover"),!Lo&&Yr),zn),Cr.className,Lo==null?void 0:Lo.className),Ws={};ur&&(Ws.textAlign=ur);var Pl=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},Xa),Cr.style),Ws),Lo==null?void 0:Lo.style),Na=po;return(0,je.Z)(Na)==="object"&&!Array.isArray(Na)&&!be.isValidElement(Na)&&(Na=null),ci&&(nr||wr)&&(Na=be.createElement("span",{className:"".concat(Jo,"-content")},Na)),be.createElement(fi,(0,et.Z)({},Lo,Cr,{className:al,style:Pl,title:sa,scope:Ri,onMouseEnter:kr,onMouseLeave:Vo,colSpan:ko!==1?ko:null,rowSpan:So!==1?So:null}),wo,Na)}var Xn=be.memo(hn);function Ft(st,St,_t,tn,pn,un){var Wn=_t[st]||{},jn=_t[St]||{},zn,fi;Wn.fixed==="left"?zn=tn.left[pn==="rtl"?St:st]:jn.fixed==="right"&&(fi=tn.right[pn==="rtl"?st:St]);var $n=!1,ci=!1,Ri=!1,Oi=!1,Di=_t[St+1],ur=_t[st-1],ki=!(un!=null&&un.children);if(pn==="rtl"){if(zn!==void 0){var Sr=ur&&ur.fixed==="left";Oi=!Sr&&ki}else if(fi!==void 0){var mr=Di&&Di.fixed==="right";Ri=!mr&&ki}}else if(zn!==void 0){var br=Di&&Di.fixed==="left";$n=!br&&ki}else if(fi!==void 0){var lo=ur&&ur.fixed==="right";ci=!lo&&ki}return{fixLeft:zn,fixRight:fi,lastFixLeft:$n,firstFixRight:ci,lastFixRight:Ri,firstFixLeft:Oi,isSticky:tn.isSticky}}var Un=be.createContext({}),Kn=Un;function ti(st){var St=st.className,_t=st.index,tn=st.children,pn=st.colSpan,un=pn===void 0?1:pn,Wn=st.rowSpan,jn=st.align,zn=Xe(Pe,["prefixCls","direction"]),fi=zn.prefixCls,$n=zn.direction,ci=be.useContext(Kn),Ri=ci.scrollColumnIndex,Oi=ci.stickyOffsets,Di=ci.flattenColumns,ur=ci.columns,ki=_t+un-1,Sr=ki+1===Ri?un+1:un,mr=Ft(_t,_t+Sr-1,Di,Oi,$n,ur==null?void 0:ur[_t]);return be.createElement(Xn,(0,et.Z)({className:St,index:_t,component:"td",prefixCls:fi,record:null,dataIndex:null,align:jn,colSpan:Sr,rowSpan:Wn,render:function(){return tn}},mr))}var Fn=he(19149),Zt=["children"];function Xt(st){var St=st.children,_t=(0,Fn.Z)(st,Zt);return be.createElement("tr",_t,St)}function mt(st){var St=st.children;return St}mt.Row=Xt,mt.Cell=ti;var tt=mt;function Wt(st){var St=st.children,_t=st.stickyOffsets,tn=st.flattenColumns,pn=st.columns,un=Xe(Pe,"prefixCls"),Wn=tn.length-1,jn=tn[Wn],zn=be.useMemo(function(){return{stickyOffsets:_t,flattenColumns:tn,scrollColumnIndex:jn!=null&&jn.scrollbar?Wn:null,columns:pn}},[jn,tn,Wn,_t,pn]);return be.createElement(Kn.Provider,{value:zn},be.createElement("tfoot",{className:"".concat(un,"-summary")},St))}var Lt=ve(Wt),pt=tt,nt=he(80764),Oe=he(29301),we=he(48886),ye=he(24387),ke=he(59055),Ve=he(36994);function Be(st,St,_t,tn,pn,un,Wn){st.push({record:St,indent:_t,index:Wn});var jn=un(St),zn=pn==null?void 0:pn.has(jn);if(St&&Array.isArray(St[tn])&&zn)for(var fi=0;fi<St[tn].length;fi+=1)Be(st,St[tn][fi],_t+1,tn,pn,un,fi)}function dt(st,St,_t,tn){var pn=be.useMemo(function(){if(_t!=null&&_t.size){for(var un=[],Wn=0;Wn<(st==null?void 0:st.length);Wn+=1){var jn=st[Wn];Be(un,jn,0,St,_t,tn,Wn)}return un}return st==null?void 0:st.map(function(zn,fi){return{record:zn,indent:0,index:fi}})},[st,St,_t,tn]);return pn}function on(st){var St=st.prefixCls,_t=st.children,tn=st.component,pn=st.cellComponent,un=st.className,Wn=st.expanded,jn=st.colSpan,zn=st.isEmpty,fi=Xe(Pe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),$n=fi.scrollbarSize,ci=fi.fixHeader,Ri=fi.fixColumn,Oi=fi.componentWidth,Di=fi.horizonScroll,ur=_t;return(zn?Di&&Oi:Ri)&&(ur=be.createElement("div",{style:{width:Oi-(ci?$n:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(St,"-expanded-row-fixed")},ur)),be.createElement(tn,{className:un,style:{display:Wn?null:"none"}},be.createElement(Xn,{component:pn,prefixCls:St,colSpan:jn},ur))}var mn=on;function Et(st,St,_t,tn){var pn=Xe(Pe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),un=pn.flattenColumns,Wn=pn.expandableType,jn=pn.expandedKeys,zn=pn.childrenColumnName,fi=pn.onTriggerExpand,$n=pn.rowExpandable,ci=pn.onRow,Ri=pn.expandRowByClick,Oi=pn.rowClassName,Di=Wn==="nest",ur=Wn==="row"&&(!$n||$n(st)),ki=ur||Di,Sr=jn&&jn.has(St),mr=zn&&st&&st[zn],br=(0,nt.useEvent)(fi),lo=ci==null?void 0:ci(st,_t),Po=lo==null?void 0:lo.onClick,Mr=function(_r){Ri&&ki&&fi(st,_r);for(var Lr=arguments.length,nr=new Array(Lr>1?Lr-1:0),wr=1;wr<Lr;wr++)nr[wr-1]=arguments[wr];Po==null||Po.apply(void 0,[_r].concat(nr))},Wr;typeof Oi=="string"?Wr=Oi:typeof Oi=="function"&&(Wr=Oi(st,_t,tn));var Wo=Mt(un);return(0,Ge.Z)((0,Ge.Z)({},pn),{},{columnsKey:Wo,nestExpandable:Di,expanded:Sr,hasNestChildren:mr,record:st,onTriggerExpand:br,rowSupportExpand:ur,expandable:ki,rowProps:(0,Ge.Z)((0,Ge.Z)({},lo),{},{className:Qe()(Wr,lo==null?void 0:lo.className),onClick:Mr})})}function Ot(st,St,_t,tn,pn){var un=st.record,Wn=st.prefixCls,jn=st.columnsKey,zn=st.fixedInfoList,fi=st.expandIconColumnIndex,$n=st.nestExpandable,ci=st.indentSize,Ri=st.expandIcon,Oi=st.expanded,Di=st.hasNestChildren,ur=st.onTriggerExpand,ki=jn[_t],Sr=zn[_t],mr;_t===(fi||0)&&$n&&(mr=be.createElement(be.Fragment,null,be.createElement("span",{style:{paddingLeft:"".concat(ci*tn,"px")},className:"".concat(Wn,"-row-indent indent-level-").concat(tn)}),Ri({prefixCls:Wn,expanded:Oi,expandable:Di,record:un,onExpand:ur})));var br;return St.onCell&&(br=St.onCell(un,pn)),{key:ki,fixedInfo:Sr,appendCellNode:mr,additionalCellProps:br||{}}}function yn(st){var St=st.className,_t=st.style,tn=st.record,pn=st.index,un=st.renderIndex,Wn=st.rowKey,jn=st.indent,zn=jn===void 0?0:jn,fi=st.rowComponent,$n=st.cellComponent,ci=st.scopeCellComponent,Ri=Et(tn,Wn,pn,zn),Oi=Ri.prefixCls,Di=Ri.flattenColumns,ur=Ri.expandedRowClassName,ki=Ri.expandedRowRender,Sr=Ri.rowProps,mr=Ri.expanded,br=Ri.rowSupportExpand,lo=be.useState(!1),Po=(0,Ke.Z)(lo,2),Mr=Po[0],Wr=Po[1];be.useEffect(function(){mr&&Wr(!0)},[mr]);var Wo=be.createElement(fi,(0,et.Z)({},Sr,{"data-row-key":Wn,className:Qe()(St,"".concat(Oi,"-row"),"".concat(Oi,"-row-level-").concat(zn),Sr==null?void 0:Sr.className),style:(0,Ge.Z)((0,Ge.Z)({},_t),Sr==null?void 0:Sr.style)}),Di.map(function(nr,wr){var Qr=nr.render,wo=nr.dataIndex,Eo=nr.className,Cr=Ot(Ri,nr,wr,zn,pn),Zo=Cr.key,Jo=Cr.fixedInfo,ea=Cr.appendCellNode,qo=Cr.additionalCellProps;return be.createElement(Xn,(0,et.Z)({className:Eo,ellipsis:nr.ellipsis,align:nr.align,scope:nr.rowScope,component:nr.rowScope?ci:$n,prefixCls:Oi,key:Zo,record:tn,index:pn,renderIndex:un,dataIndex:wo,render:Qr,shouldCellUpdate:nr.shouldCellUpdate},Jo,{appendNode:ea,additionalProps:qo}))})),Ar;if(br&&(Mr||mr)){var _r=ki(tn,pn,zn+1,mr),Lr=ur&&ur(tn,pn,zn);Ar=be.createElement(mn,{expanded:mr,className:Qe()("".concat(Oi,"-expanded-row"),"".concat(Oi,"-expanded-row-level-").concat(zn+1),Lr),prefixCls:Oi,component:fi,cellComponent:$n,colSpan:Di.length,isEmpty:!1},_r)}return be.createElement(be.Fragment,null,Wo,Ar)}yn.displayName="BodyRow";var Tn=ve(yn);function qn(st){var St=st.columnKey,_t=st.onColumnResize,tn=be.useRef();return be.useEffect(function(){tn.current&&_t(St,tn.current.offsetWidth)},[]),be.createElement(Oe.Z,{data:St},be.createElement("td",{ref:tn,style:{padding:0,border:0,height:0}},be.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function vi(st){var St=st.prefixCls,_t=st.columnsKey,tn=st.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(Wn){var jn=Wn.data,zn=Wn.size;tn(jn,zn.offsetWidth)})}},_t.map(function(pn){return be.createElement(qn,{key:pn,columnKey:pn,onColumnResize:tn})})))}function gi(st){var St=st.data,_t=st.measureColumnWidth,tn=Xe(Pe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),pn=tn.prefixCls,un=tn.getComponent,Wn=tn.onColumnResize,jn=tn.flattenColumns,zn=tn.getRowKey,fi=tn.expandedKeys,$n=tn.childrenColumnName,ci=tn.emptyNode,Ri=dt(St,$n,fi,zn),Oi=be.useRef({renderWithProps:!1}),Di=un(["body","wrapper"],"tbody"),ur=un(["body","row"],"tr"),ki=un(["body","cell"],"td"),Sr=un(["body","cell"],"th"),mr;St.length?mr=Ri.map(function(lo,Po){var Mr=lo.record,Wr=lo.indent,Wo=lo.index,Ar=zn(Mr,Po);return be.createElement(Tn,{key:Ar,rowKey:Ar,record:Mr,index:Po,renderIndex:Wo,rowComponent:ur,cellComponent:ki,scopeCellComponent:Sr,getRowKey:zn,indent:Wr})}):mr=be.createElement(mn,{expanded:!0,className:"".concat(pn,"-placeholder"),prefixCls:pn,component:ur,cellComponent:ki,colSpan:jn.length,isEmpty:!0},ci);var br=Mt(jn);return be.createElement(Jt.Provider,{value:Oi.current},be.createElement(Di,{className:"".concat(pn,"-tbody")},_t&&be.createElement(vi,{prefixCls:pn,columnsKey:br,onColumnResize:Wn}),mr))}gi.displayName="Body";var wi=ve(gi),_n=["expandable"],yr="RC_TABLE_INTERNAL_COL_DEFINE";function ir(st){var St=st.expandable,_t=(0,Fn.Z)(st,_n),tn;return"expandable"in st?tn=(0,Ge.Z)((0,Ge.Z)({},_t),St):tn=_t,tn.showExpandColumn===!1&&(tn.expandIconColumnIndex=-1),tn}var fr=["columnType"];function xr(st){for(var St=st.colWidths,_t=st.columns,tn=st.columCount,pn=[],un=tn||_t.length,Wn=!1,jn=un-1;jn>=0;jn-=1){var zn=St[jn],fi=_t&&_t[jn],$n=fi&&fi[yr];if(zn||$n||Wn){var ci=$n||{},Ri=ci.columnType,Oi=(0,Fn.Z)(ci,fr);pn.unshift(be.createElement("col",(0,et.Z)({key:jn,style:{width:zn}},Oi))),Wn=!0}}return be.createElement("colgroup",null,pn)}var jr=xr,Ki=he(26390),Ir=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Vi(st,St){return(0,be.useMemo)(function(){for(var _t=[],tn=0;tn<St;tn+=1){var pn=st[tn];if(pn!==void 0)_t[tn]=pn;else return null}return _t},[st.join("_"),St])}var Me=be.forwardRef(function(st,St){var _t=st.className,tn=st.noData,pn=st.columns,un=st.flattenColumns,Wn=st.colWidths,jn=st.columCount,zn=st.stickyOffsets,fi=st.direction,$n=st.fixHeader,ci=st.stickyTopOffset,Ri=st.stickyBottomOffset,Oi=st.stickyClassName,Di=st.onScroll,ur=st.maxContentScroll,ki=st.children,Sr=(0,Fn.Z)(st,Ir),mr=Xe(Pe,["prefixCls","scrollbarSize","isSticky"]),br=mr.prefixCls,lo=mr.scrollbarSize,Po=mr.isSticky,Mr=Po&&!$n?0:lo,Wr=be.useRef(null),Wo=be.useCallback(function(Eo){(0,Je.mH)(St,Eo),(0,Je.mH)(Wr,Eo)},[]);be.useEffect(function(){var Eo;function Cr(Zo){var Jo=Zo,ea=Jo.currentTarget,qo=Jo.deltaX;qo&&(Di({currentTarget:ea,scrollLeft:ea.scrollLeft+qo}),Zo.preventDefault())}return(Eo=Wr.current)===null||Eo===void 0||Eo.addEventListener("wheel",Cr),function(){var Zo;(Zo=Wr.current)===null||Zo===void 0||Zo.removeEventListener("wheel",Cr)}},[]);var Ar=be.useMemo(function(){return un.every(function(Eo){return Eo.width})},[un]),_r=un[un.length-1],Lr={fixed:_r?_r.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(br,"-cell-scrollbar")}}},nr=(0,be.useMemo)(function(){return Mr?[].concat((0,Ki.Z)(pn),[Lr]):pn},[Mr,pn]),wr=(0,be.useMemo)(function(){return Mr?[].concat((0,Ki.Z)(un),[Lr]):un},[Mr,un]),Qr=(0,be.useMemo)(function(){var Eo=zn.right,Cr=zn.left;return(0,Ge.Z)((0,Ge.Z)({},zn),{},{left:fi==="rtl"?[].concat((0,Ki.Z)(Cr.map(function(Zo){return Zo+Mr})),[0]):Cr,right:fi==="rtl"?Eo:[].concat((0,Ki.Z)(Eo.map(function(Zo){return Zo+Mr})),[0]),isSticky:Po})},[Mr,zn,Po]),wo=Vi(Wn,jn);return be.createElement("div",{style:(0,Ge.Z)({overflow:"hidden"},Po?{top:ci,bottom:Ri}:{}),ref:Wo,className:Qe()(_t,(0,We.Z)({},Oi,!!Oi))},be.createElement("table",{style:{tableLayout:"fixed",visibility:tn||wo?null:"hidden"}},(!tn||!ur||Ar)&&be.createElement(jr,{colWidths:wo?[].concat((0,Ki.Z)(wo),[Mr]):[],columCount:jn+1,columns:wr}),ki((0,Ge.Z)((0,Ge.Z)({},Sr),{},{stickyOffsets:Qr,columns:nr,flattenColumns:wr}))))});Me.displayName="FixedHolder";var Ai=be.memo(Me);function Xi(st){var St=st.cells,_t=st.stickyOffsets,tn=st.flattenColumns,pn=st.rowComponent,un=st.cellComponent,Wn=st.tdCellComponent,jn=st.onHeaderRow,zn=st.index,fi=Xe(Pe,["prefixCls","direction"]),$n=fi.prefixCls,ci=fi.direction,Ri;jn&&(Ri=jn(St.map(function(Di){return Di.column}),zn));var Oi=Mt(St.map(function(Di){return Di.column}));return be.createElement(pn,Ri,St.map(function(Di,ur){var ki=Di.column,Sr=Ft(Di.colStart,Di.colEnd,tn,_t,ci,ki),mr;return ki&&ki.onHeaderCell&&(mr=Di.column.onHeaderCell(ki)),be.createElement(Xn,(0,et.Z)({},Di,{scope:ki.title?Di.colSpan>1?"colgroup":"col":null,ellipsis:ki.ellipsis,align:ki.align,component:ki.title?un:Wn,prefixCls:$n,key:Oi[ur]},Sr,{additionalProps:mr,rowType:"header"}))}))}Xi.displayName="HeaderRow";var gr=Xi;function tr(st){var St=[];function _t(Wn,jn){var zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;St[zn]=St[zn]||[];var fi=jn,$n=Wn.filter(Boolean).map(function(ci){var Ri={key:ci.key,className:ci.className||"",children:ci.title,column:ci,colStart:fi},Oi=1,Di=ci.children;return Di&&Di.length>0&&(Oi=_t(Di,fi,zn+1).reduce(function(ur,ki){return ur+ki},0),Ri.hasSubColumns=!0),"colSpan"in ci&&(Oi=ci.colSpan),"rowSpan"in ci&&(Ri.rowSpan=ci.rowSpan),Ri.colSpan=Oi,Ri.colEnd=Ri.colStart+Oi-1,St[zn].push(Ri),fi+=Oi,Oi});return $n}_t(st,0);for(var tn=St.length,pn=function(jn){St[jn].forEach(function(zn){!("rowSpan"in zn)&&!zn.hasSubColumns&&(zn.rowSpan=tn-jn)})},un=0;un<tn;un+=1)pn(un);return St}function uo(st){var St=st.stickyOffsets,_t=st.columns,tn=st.flattenColumns,pn=st.onHeaderRow,un=Xe(Pe,["prefixCls","getComponent"]),Wn=un.prefixCls,jn=un.getComponent,zn=be.useMemo(function(){return tr(_t)},[_t]),fi=jn(["header","wrapper"],"thead"),$n=jn(["header","row"],"tr"),ci=jn(["header","cell"],"th"),Ri=jn(["header","cell"],"td");return be.createElement(fi,{className:"".concat(Wn,"-thead")},zn.map(function(Oi,Di){var ur=be.createElement(gr,{key:Di,flattenColumns:tn,cells:Oi,stickyOffsets:St,rowComponent:$n,cellComponent:ci,tdCellComponent:Ri,onHeaderRow:pn,index:Di});return ur}))}var qr=ve(uo),Ni=he(38298);function an(st){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof St=="number"?St:St.endsWith("%")?st*parseFloat(St)/100:null}function en(st,St){return be.useMemo(function(){if(St&&St>0){var _t=0,tn=0;st.forEach(function(fi){var $n=an(St,fi.width);$n?_t+=$n:tn+=1});var pn=St-_t,un=tn,Wn=pn/tn,jn=0,zn=st.map(function(fi){var $n=(0,Ge.Z)({},fi),ci=an(St,$n.width);if(ci)$n.width=ci;else{var Ri=Math.floor(Wn);$n.width=un===1?pn:Ri,pn-=Ri,un-=1}return jn+=$n.width,$n});return[zn,jn]}return[st,St]},[st,St])}var Kt=["children"],Pt=["fixed"];function Sn(st){return(0,Ni.Z)(st).filter(function(St){return be.isValidElement(St)}).map(function(St){var _t=St.key,tn=St.props,pn=tn.children,un=(0,Fn.Z)(tn,Kt),Wn=(0,Ge.Z)({key:_t},un);return pn&&(Wn.children=Sn(pn)),Wn})}function bn(st){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return st.filter(function(_t){return _t&&(0,je.Z)(_t)==="object"}).reduce(function(_t,tn,pn){var un=tn.fixed,Wn=un===!0?"left":un,jn="".concat(St,"-").concat(pn),zn=tn.children;return zn&&zn.length>0?[].concat((0,Ki.Z)(_t),(0,Ki.Z)(bn(zn,jn).map(function(fi){return(0,Ge.Z)({fixed:Wn},fi)}))):[].concat((0,Ki.Z)(_t),[(0,Ge.Z)((0,Ge.Z)({key:jn},tn),{},{fixed:Wn})])},[])}function zt(st){for(var St=!0,_t=0;_t<st.length;_t+=1){var tn=st[_t];if(St&&tn.fixed!=="left")St=!1;else if(!St&&tn.fixed==="left"){warning(!1,"Index ".concat(_t-1," of `columns` missing `fixed='left'` prop."));break}}for(var pn=!0,un=st.length-1;un>=0;un-=1){var Wn=st[un];if(pn&&Wn.fixed!=="right")pn=!1;else if(!pn&&Wn.fixed==="right"){warning(!1,"Index ".concat(un+1," of `columns` missing `fixed='right'` prop."));break}}}function gt(st){return st.map(function(St){var _t=St.fixed,tn=(0,Fn.Z)(St,Pt),pn=_t;return _t==="left"?pn="right":_t==="right"&&(pn="left"),(0,Ge.Z)({fixed:pn},tn)})}function xn(st,St){var _t=st.prefixCls,tn=st.columns,pn=st.children,un=st.expandable,Wn=st.expandedKeys,jn=st.columnTitle,zn=st.getRowKey,fi=st.onTriggerExpand,$n=st.expandIcon,ci=st.rowExpandable,Ri=st.expandIconColumnIndex,Oi=st.direction,Di=st.expandRowByClick,ur=st.columnWidth,ki=st.fixed,Sr=st.scrollWidth,mr=be.useMemo(function(){return tn||Sn(pn)},[tn,pn]),br=be.useMemo(function(){if(un){var _r,Lr=mr.slice();if(!Lr.includes(ge)){var nr=Ri||0;nr>=0&&Lr.splice(nr,0,ge)}var wr=Lr.indexOf(ge);Lr=Lr.filter(function(Cr,Zo){return Cr!==ge||Zo===wr});var Qr=mr[wr],wo;(ki==="left"||ki)&&!Ri?wo="left":(ki==="right"||ki)&&Ri===mr.length?wo="right":wo=Qr?Qr.fixed:null;var Eo=(_r={},(0,We.Z)(_r,yr,{className:"".concat(_t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,We.Z)(_r,"title",jn),(0,We.Z)(_r,"fixed",wo),(0,We.Z)(_r,"className","".concat(_t,"-row-expand-icon-cell")),(0,We.Z)(_r,"width",ur),(0,We.Z)(_r,"render",function(Zo,Jo,ea){var qo=zn(Jo,ea),qa=Wn.has(qo),ha=ci?ci(Jo):!0,zo=$n({prefixCls:_t,expanded:qa,expandable:ha,record:Jo,onExpand:fi});return Di?be.createElement("span",{onClick:function(Lo){return Lo.stopPropagation()}},zo):zo}),_r);return Lr.map(function(Cr){return Cr===ge?Eo:Cr})}return mr.filter(function(Cr){return Cr!==ge})},[un,mr,zn,Wn,$n,Oi]),lo=be.useMemo(function(){var _r=br;return St&&(_r=St(_r)),_r.length||(_r=[{render:function(){return null}}]),_r},[St,br,Oi]),Po=be.useMemo(function(){return Oi==="rtl"?gt(bn(lo)):bn(lo)},[lo,Oi,Sr]),Mr=en(Po,Sr),Wr=(0,Ke.Z)(Mr,2),Wo=Wr[0],Ar=Wr[1];return[lo,Wo,Ar]}var Ln=xn;function pi(st){var St,_t=st.prefixCls,tn=st.record,pn=st.onExpand,un=st.expanded,Wn=st.expandable,jn="".concat(_t,"-row-expand-icon");if(!Wn)return be.createElement("span",{className:Qe()(jn,"".concat(_t,"-row-spaced"))});var zn=function($n){pn(tn,$n),$n.stopPropagation()};return be.createElement("span",{className:Qe()(jn,(St={},(0,We.Z)(St,"".concat(_t,"-row-expanded"),un),(0,We.Z)(St,"".concat(_t,"-row-collapsed"),!un),St)),onClick:zn})}function Mn(st,St,_t){var tn=[];function pn(un){(un||[]).forEach(function(Wn,jn){tn.push(St(Wn,jn)),pn(Wn[_t])})}return pn(st),tn}function It(st,St,_t){var tn=ir(st),pn=tn.expandIcon,un=tn.expandedRowKeys,Wn=tn.defaultExpandedRowKeys,jn=tn.defaultExpandAllRows,zn=tn.expandedRowRender,fi=tn.onExpand,$n=tn.onExpandedRowsChange,ci=tn.childrenColumnName,Ri=pn||pi,Oi=ci||"children",Di=be.useMemo(function(){return zn?"row":st.expandable&&st.internalHooks===Ie&&st.expandable.__PARENT_RENDER_ICON__||St.some(function(Po){return Po&&(0,je.Z)(Po)==="object"&&Po[Oi]})?"nest":!1},[!!zn,St]),ur=be.useState(function(){return Wn||(jn?Mn(St,_t,Oi):[])}),ki=(0,Ke.Z)(ur,2),Sr=ki[0],mr=ki[1],br=be.useMemo(function(){return new Set(un||Sr||[])},[un,Sr]),lo=be.useCallback(function(Po){var Mr=_t(Po,St.indexOf(Po)),Wr,Wo=br.has(Mr);Wo?(br.delete(Mr),Wr=(0,Ki.Z)(br)):Wr=[].concat((0,Ki.Z)(br),[Mr]),mr(Wr),fi&&fi(!Wo,Po),$n&&$n(Wr)},[_t,br,St,fi,$n]);return[tn,Di,br,Ri,Oi,lo]}function gn(st,St,_t,tn){var pn=st.map(function(un,Wn){return Ft(Wn,Wn,st,St,_t,tn==null?void 0:tn[Wn])});return(0,Dt.Z)(function(){return pn},[pn],function(un,Wn){return!(0,it.Z)(un,Wn)})}function nn(st){var St=(0,be.useRef)(st),_t=(0,be.useState)({}),tn=(0,Ke.Z)(_t,2),pn=tn[1],un=(0,be.useRef)(null),Wn=(0,be.useRef)([]);function jn(zn){Wn.current.push(zn);var fi=Promise.resolve();un.current=fi,fi.then(function(){if(un.current===fi){var $n=Wn.current,ci=St.current;Wn.current=[],$n.forEach(function(Ri){St.current=Ri(St.current)}),un.current=null,ci!==St.current&&pn({})}})}return(0,be.useEffect)(function(){return function(){un.current=null}},[]),[St.current,jn]}function ui(st){var St=(0,be.useRef)(st||null),_t=(0,be.useRef)();function tn(){window.clearTimeout(_t.current)}function pn(Wn){St.current=Wn,tn(),_t.current=window.setTimeout(function(){St.current=null,_t.current=void 0},100)}function un(){return St.current}return(0,be.useEffect)(function(){return tn},[]),[pn,un]}function Qt(){var st=be.useState(-1),St=(0,Ke.Z)(st,2),_t=St[0],tn=St[1],pn=be.useState(-1),un=(0,Ke.Z)(pn,2),Wn=un[0],jn=un[1],zn=be.useCallback(function(fi,$n){tn(fi),jn($n)},[]);return[_t,Wn,zn]}var Cn=he(87746),$t=(0,Cn.Z)()?window:null;function vn(st,St){var _t=(0,je.Z)(st)==="object"?st:{},tn=_t.offsetHeader,pn=tn===void 0?0:tn,un=_t.offsetSummary,Wn=un===void 0?0:un,jn=_t.offsetScroll,zn=jn===void 0?0:jn,fi=_t.getContainer,$n=fi===void 0?function(){return $t}:fi,ci=$n()||$t;return be.useMemo(function(){var Ri=!!st;return{isSticky:Ri,stickyClassName:Ri?"".concat(St,"-sticky-holder"):"",offsetHeader:pn,offsetSummary:Wn,offsetScroll:zn,container:ci}},[zn,pn,Wn,St,ci])}function En(st,St,_t){var tn=(0,be.useMemo)(function(){for(var pn=[],un=[],Wn=0,jn=0,zn=0;zn<St;zn+=1)if(_t==="rtl"){un[zn]=jn,jn+=st[zn]||0;var fi=St-zn-1;pn[fi]=Wn,Wn+=st[fi]||0}else{pn[zn]=Wn,Wn+=st[zn]||0;var $n=St-zn-1;un[$n]=jn,jn+=st[$n]||0}return{left:pn,right:un}},[st,St,_t]);return tn}var Pn=En;function Rn(st){var St=st.className,_t=st.children;return be.createElement("div",{className:St},_t)}var Yn=Rn,Zn=he(8178),ri=he(21783),Gn=function(St,_t){var tn,pn,un=St.scrollBodyRef,Wn=St.onScroll,jn=St.offsetScroll,zn=St.container,fi=Xe(Pe,"prefixCls"),$n=((tn=un.current)===null||tn===void 0?void 0:tn.scrollWidth)||0,ci=((pn=un.current)===null||pn===void 0?void 0:pn.clientWidth)||0,Ri=$n&&ci*(ci/$n),Oi=be.useRef(),Di=nn({scrollLeft:0,isHiddenScrollBar:!1}),ur=(0,Ke.Z)(Di,2),ki=ur[0],Sr=ur[1],mr=be.useRef({delta:0,x:0}),br=be.useState(!1),lo=(0,Ke.Z)(br,2),Po=lo[0],Mr=lo[1],Wr=function(){Mr(!1)},Wo=function(wr){wr.persist(),mr.current.delta=wr.pageX-ki.scrollLeft,mr.current.x=0,Mr(!0),wr.preventDefault()},Ar=function(wr){var Qr,wo=wr||((Qr=window)===null||Qr===void 0?void 0:Qr.event),Eo=wo.buttons;if(!Po||Eo===0){Po&&Mr(!1);return}var Cr=mr.current.x+wr.pageX-mr.current.x-mr.current.delta;Cr<=0&&(Cr=0),Cr+Ri>=ci&&(Cr=ci-Ri),Wn({scrollLeft:Cr/ci*($n+2)}),mr.current.x=wr.pageX},_r=function(){if(un.current){var wr=(0,ri.os)(un.current).top,Qr=wr+un.current.offsetHeight,wo=zn===window?document.documentElement.scrollTop+window.innerHeight:(0,ri.os)(zn).top+zn.clientHeight;Qr-(0,ke.Z)()<=wo||wr>=wo-jn?Sr(function(Eo){return(0,Ge.Z)((0,Ge.Z)({},Eo),{},{isHiddenScrollBar:!0})}):Sr(function(Eo){return(0,Ge.Z)((0,Ge.Z)({},Eo),{},{isHiddenScrollBar:!1})})}},Lr=function(wr){Sr(function(Qr){return(0,Ge.Z)((0,Ge.Z)({},Qr),{},{scrollLeft:wr/$n*ci||0})})};return be.useImperativeHandle(_t,function(){return{setScrollLeft:Lr}}),be.useEffect(function(){var nr=(0,Zn.Z)(document.body,"mouseup",Wr,!1),wr=(0,Zn.Z)(document.body,"mousemove",Ar,!1);return _r(),function(){nr.remove(),wr.remove()}},[Ri,Po]),be.useEffect(function(){var nr=(0,Zn.Z)(zn,"scroll",_r,!1),wr=(0,Zn.Z)(window,"resize",_r,!1);return function(){nr.remove(),wr.remove()}},[zn]),be.useEffect(function(){ki.isHiddenScrollBar||Sr(function(nr){var wr=un.current;return wr?(0,Ge.Z)((0,Ge.Z)({},nr),{},{scrollLeft:wr.scrollLeft/wr.scrollWidth*wr.clientWidth}):nr})},[ki.isHiddenScrollBar]),$n<=ci||!Ri||ki.isHiddenScrollBar?null:be.createElement("div",{style:{height:(0,ke.Z)(),width:ci,bottom:jn},className:"".concat(fi,"-sticky-scroll")},be.createElement("div",{onMouseDown:Wo,ref:Oi,className:Qe()("".concat(fi,"-sticky-scroll-bar"),(0,We.Z)({},"".concat(fi,"-sticky-scroll-bar-active"),Po)),style:{width:"".concat(Ri,"px"),transform:"translate3d(".concat(ki.scrollLeft,"px, 0, 0)")}}))},di=be.forwardRef(Gn);function rr(st){return null}var Dr=rr;function ar(st){return null}var qt=ar,Li="rc-table",Ji=[],Ti={};function bi(){return"No Data"}function sr(st){var St,_t=(0,Ge.Z)({rowKey:"key",prefixCls:Li,emptyText:bi},st),tn=_t.prefixCls,pn=_t.className,un=_t.rowClassName,Wn=_t.style,jn=_t.data,zn=_t.rowKey,fi=_t.scroll,$n=_t.tableLayout,ci=_t.direction,Ri=_t.title,Oi=_t.footer,Di=_t.summary,ur=_t.caption,ki=_t.id,Sr=_t.showHeader,mr=_t.components,br=_t.emptyText,lo=_t.onRow,Po=_t.onHeaderRow,Mr=_t.internalHooks,Wr=_t.transformColumns,Wo=_t.internalRefs,Ar=_t.tailor,_r=_t.sticky,Lr=jn||Ji,nr=!!Lr.length,wr=Mr===Ie,Qr=be.useCallback(function(Ya,As){return(0,vt.Z)(mr,Ya)||As},[mr]),wo=be.useMemo(function(){return typeof zn=="function"?zn:function(Ya){var As=Ya&&Ya[zn];return As}},[zn]),Eo=Qr(["body"]),Cr=Qt(),Zo=(0,Ke.Z)(Cr,3),Jo=Zo[0],ea=Zo[1],qo=Zo[2],qa=It(_t,Lr,wo),ha=(0,Ke.Z)(qa,6),zo=ha[0],po=ha[1],Lo=ha[2],Xa=ha[3],Ia=ha[4],as=ha[5],ko=fi==null?void 0:fi.x,So=be.useState(0),jo=(0,Ke.Z)(So,2),ho=jo[0],Yr=jo[1],Hi=Ln((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},_t),zo),{},{expandable:!!zo.expandedRowRender,columnTitle:zo.columnTitle,expandedKeys:Lo,getRowKey:wo,onTriggerExpand:as,expandIcon:Xa,expandIconColumnIndex:zo.expandIconColumnIndex,direction:ci,scrollWidth:wr&&Ar&&typeof ko=="number"?ko:null}),wr?Wr:null),kr=(0,Ke.Z)(Hi,3),Vo=kr[0],sa=kr[1],al=kr[2],Ws=al!=null?al:ko,Pl=be.useMemo(function(){return{columns:Vo,flattenColumns:sa}},[Vo,sa]),Na=be.useRef(),_a=be.useRef(),Fo=be.useRef(),Ys=be.useRef(),wl=be.useRef(),Za=be.useState(!1),es=(0,Ke.Z)(Za,2),ss=es[0],bs=es[1],Us=be.useState(!1),va=(0,Ke.Z)(Us,2),cs=va[0],qs=va[1],Ja=nn(new Map),To=(0,Ke.Z)(Ja,2),Ds=To[0],Xs=To[1],Fu=Mt(sa),su=Fu.map(function(Ya){return Ds.get(Ya)}),ts=be.useMemo(function(){return su},[su.join("_")]),Cl=Pn(ts,sa.length,ci),Cs=fi&&Yt(fi.y),Ss=fi&&Yt(Ws)||!!zo.fixed,mu=Ss&&sa.some(function(Ya){var As=Ya.fixed;return As}),fc=be.useRef(),Yl=vn(_r,tn),Ju=Yl.isSticky,Qu=Yl.offsetHeader,lu=Yl.offsetSummary,Ra=Yl.offsetScroll,ds=Yl.stickyClassName,el=Yl.container,xs=be.useMemo(function(){return Di==null?void 0:Di(Lr)},[Di,Lr]),za=(Cs||Ju)&&be.isValidElement(xs)&&xs.type===tt&&xs.props.fixed,tl,kl,Mu;Cs&&(kl={overflowY:"scroll",maxHeight:fi.y}),Ss&&(tl={overflowX:"auto"},Cs||(kl={overflowY:"hidden"}),Mu={width:Ws===!0?"auto":Ws,minWidth:"100%"});var ah=be.useCallback(function(Ya,As){(0,we.Z)(Na.current)&&Xs(function(Fl){if(Fl.get(Ya)!==As){var yu=new Map(Fl);return yu.set(Ya,As),yu}return Fl})},[]),cn=ui(null),Mc=(0,Ke.Z)(cn,2),gc=Mc[0],Rh=Mc[1];function vd(Ya,As){As&&(typeof As=="function"?As(Ya):As.scrollLeft!==Ya&&(As.scrollLeft=Ya,As.scrollLeft!==Ya&&setTimeout(function(){As.scrollLeft=Ya},0)))}var Wc=(0,ot.Z)(function(Ya){var As=Ya.currentTarget,Fl=Ya.scrollLeft,yu=ci==="rtl",Su=typeof Fl=="number"?Fl:As.scrollLeft,uh=As||Ti;if(!Rh()||Rh()===uh){var Kc;gc(uh),vd(Su,_a.current),vd(Su,Fo.current),vd(Su,wl.current),vd(Su,(Kc=fc.current)===null||Kc===void 0?void 0:Kc.setScrollLeft)}var Gd=As||_a.current;if(Gd){var Iu=Gd.scrollWidth,qu=Gd.clientWidth;if(Iu===qu){bs(!1),qs(!1);return}yu?(bs(-Su<Iu-qu),qs(-Su>0)):(bs(Su>0),qs(Su<Iu-qu))}}),Lc=function(){Ss&&Fo.current?Wc({currentTarget:Fo.current}):(bs(!1),qs(!1))},ff=function(As){var Fl=As.width;Fl!==ho&&(Lc(),Yr(Na.current?Na.current.offsetWidth:Fl))},Al=be.useRef(!1);be.useEffect(function(){Al.current&&Lc()},[Ss,jn,Vo.length]),be.useEffect(function(){Al.current=!0},[]);var od=be.useState(0),Od=(0,Ke.Z)(od,2),Id=Od[0],Rd=Od[1],gf=be.useState(!0),zd=(0,Ke.Z)(gf,2),jd=zd[0],vu=zd[1];be.useEffect(function(){(!Ar||!wr)&&(Fo.current instanceof Element?Rd((0,ke.o)(Fo.current).width):Rd((0,ke.o)(Ys.current).width)),vu((0,ye.G)("position","sticky"))},[]),be.useEffect(function(){wr&&Wo&&(Wo.body.current=Fo.current)});var Zc=be.useCallback(function(Ya){return be.createElement(be.Fragment,null,be.createElement(qr,Ya),za==="top"&&be.createElement(Lt,Ya,xs))},[za,xs]),zh=be.useCallback(function(Ya){return be.createElement(Lt,Ya,xs)},[xs]),$u=Qr(["table"],"table"),Gc=be.useMemo(function(){return $n||(mu?Ws==="max-content"?"auto":"fixed":Cs||Ju||sa.some(function(Ya){var As=Ya.ellipsis;return As})?"fixed":"auto")},[Cs,mu,sa,$n,Ju]),ad,sd={colWidths:ts,columCount:sa.length,stickyOffsets:Cl,onHeaderRow:Po,fixHeader:Cs,scroll:fi},Ul=be.useMemo(function(){return nr?null:typeof br=="function"?br():br},[nr,br]),sh=be.createElement(wi,{data:Lr,measureColumnWidth:Cs||Ss||Ju}),Hd=be.createElement(jr,{colWidths:sa.map(function(Ya){var As=Ya.width;return As}),columns:sa}),uu=ur!=null?be.createElement("caption",{className:"".concat(tn,"-caption")},ur):void 0,yd=(0,Ve.Z)(_t,{data:!0}),Wd=(0,Ve.Z)(_t,{aria:!0});if(Cs||Ju){var lh;typeof Eo=="function"?(lh=Eo(Lr,{scrollbarSize:Id,ref:Fo,onScroll:Wc}),sd.colWidths=sa.map(function(Ya,As){var Fl=Ya.width,yu=As===sa.length-1?Fl-Id:Fl;return typeof yu=="number"&&!Number.isNaN(yu)?yu:0})):lh=be.createElement("div",{style:(0,Ge.Z)((0,Ge.Z)({},tl),kl),onScroll:Wc,ref:Fo,className:Qe()("".concat(tn,"-body"))},be.createElement($u,(0,et.Z)({style:(0,Ge.Z)((0,Ge.Z)({},Mu),{},{tableLayout:Gc})},Wd),uu,Hd,sh,!za&&xs&&be.createElement(Lt,{stickyOffsets:Cl,flattenColumns:sa,columns:Vo},xs)));var Dc=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({noData:!Lr.length,maxContentScroll:Ss&&Ws==="max-content"},sd),Pl),{},{direction:ci,stickyClassName:ds,onScroll:Wc});ad=be.createElement(be.Fragment,null,Sr!==!1&&be.createElement(Ai,(0,et.Z)({},Dc,{stickyTopOffset:Qu,className:"".concat(tn,"-header"),ref:_a}),Zc),lh,za&&za!=="top"&&be.createElement(Ai,(0,et.Z)({},Dc,{stickyBottomOffset:lu,className:"".concat(tn,"-summary"),ref:wl}),zh),Ju&&be.createElement(di,{ref:fc,offsetScroll:Ra,scrollBodyRef:Fo,onScroll:Wc,container:el}))}else ad=be.createElement("div",{style:(0,Ge.Z)((0,Ge.Z)({},tl),kl),className:Qe()("".concat(tn,"-content")),onScroll:Wc,ref:Fo},be.createElement($u,(0,et.Z)({style:(0,Ge.Z)((0,Ge.Z)({},Mu),{},{tableLayout:Gc})},Wd),uu,Hd,Sr!==!1&&be.createElement(qr,(0,et.Z)({},sd,Pl)),sh,xs&&be.createElement(Lt,{stickyOffsets:Cl,flattenColumns:sa,columns:Vo},xs)));var Tl=be.createElement("div",(0,et.Z)({className:Qe()(tn,pn,(St={},(0,We.Z)(St,"".concat(tn,"-rtl"),ci==="rtl"),(0,We.Z)(St,"".concat(tn,"-ping-left"),ss),(0,We.Z)(St,"".concat(tn,"-ping-right"),cs),(0,We.Z)(St,"".concat(tn,"-layout-fixed"),$n==="fixed"),(0,We.Z)(St,"".concat(tn,"-fixed-header"),Cs),(0,We.Z)(St,"".concat(tn,"-fixed-column"),mu),(0,We.Z)(St,"".concat(tn,"-scroll-horizontal"),Ss),(0,We.Z)(St,"".concat(tn,"-has-fix-left"),sa[0]&&sa[0].fixed),(0,We.Z)(St,"".concat(tn,"-has-fix-right"),sa[sa.length-1]&&sa[sa.length-1].fixed==="right"),St)),style:Wn,id:ki,ref:Na},yd),Ri&&be.createElement(Yn,{className:"".concat(tn,"-title")},Ri(Lr)),be.createElement("div",{ref:Ys,className:"".concat(tn,"-container")},ad),Oi&&be.createElement(Yn,{className:"".concat(tn,"-footer")},Oi(Lr)));Ss&&(Tl=be.createElement(Oe.Z,{onResize:ff},Tl));var Zd=gn(sa,Cl,ci,Vo),sl=be.useMemo(function(){return{scrollX:Ws,prefixCls:tn,getComponent:Qr,scrollbarSize:Id,direction:ci,fixedInfoList:Zd,isSticky:Ju,supportSticky:jd,componentWidth:ho,fixHeader:Cs,fixColumn:mu,horizonScroll:Ss,tableLayout:Gc,rowClassName:un,expandedRowClassName:zo.expandedRowClassName,expandIcon:Xa,expandableType:po,expandRowByClick:zo.expandRowByClick,expandedRowRender:zo.expandedRowRender,onTriggerExpand:as,expandIconColumnIndex:zo.expandIconColumnIndex,indentSize:zo.indentSize,allColumnsFixedLeft:sa.every(function(Ya){return Ya.fixed==="left"}),emptyNode:Ul,columns:Vo,flattenColumns:sa,onColumnResize:ah,hoverStartRow:Jo,hoverEndRow:ea,onHover:qo,rowExpandable:zo.rowExpandable,onRow:lo,getRowKey:wo,expandedKeys:Lo,childrenColumnName:Ia}},[Ws,tn,Qr,Id,ci,Zd,Ju,jd,ho,Cs,mu,Ss,Gc,un,zo.expandedRowClassName,Xa,po,zo.expandRowByClick,zo.expandedRowRender,as,zo.expandIconColumnIndex,zo.indentSize,Ul,Vo,sa,ah,Jo,ea,qo,zo.rowExpandable,lo,wo,Lo,Ia]);return be.createElement(Pe.Provider,{value:sl},Tl)}function Nr(st){return de(sr,st)}var cr=Nr();cr.EXPAND_COLUMN=ge,cr.INTERNAL_HOOKS=Ie,cr.Column=Dr,cr.ColumnGroup=qt,cr.Summary=pt;var Zi=cr,Jr=he(21881),On=ct(null),Ho=ct(null);function Dn(st,St,_t){var tn=St||1;return _t[st+tn]-(_t[st]||0)}function Rr(st){var St=st.rowInfo,_t=st.column,tn=st.colIndex,pn=st.indent,un=st.index,Wn=st.renderIndex,jn=st.record,zn=st.style,fi=st.className,$n=st.inverse,ci=st.getHeight,Ri=_t.render,Oi=_t.dataIndex,Di=_t.className,ur=_t.width,ki=Xe(Ho,["columnsOffset"]),Sr=ki.columnsOffset,mr=Ot(St,_t,tn,pn,un),br=mr.key,lo=mr.fixedInfo,Po=mr.appendCellNode,Mr=mr.additionalCellProps,Wr=Mr.style,Wo=Mr.colSpan,Ar=Wo===void 0?1:Wo,_r=Mr.rowSpan,Lr=_r===void 0?1:_r,nr=tn-1,wr=Dn(nr,Ar,Sr),Qr=Ar>1?ur-wr:0,wo=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},Wr),zn),{},{flex:"0 0 ".concat(wr,"px"),width:"".concat(wr,"px"),marginRight:Qr,pointerEvents:"auto"}),Eo=be.useMemo(function(){return $n?Lr<=1:Ar===0||Lr===0||Lr>1},[Lr,Ar,$n]);Eo?wo.visibility="hidden":$n&&(wo.height=ci==null?void 0:ci(Lr));var Cr=Eo?function(){return null}:Ri,Zo={};return(Lr===0||Ar===0)&&(Zo.rowSpan=1,Zo.colSpan=1),be.createElement(Xn,(0,et.Z)({className:Qe()(Di,fi),ellipsis:_t.ellipsis,align:_t.align,scope:_t.rowScope,component:"div",prefixCls:St.prefixCls,key:br,record:jn,index:un,renderIndex:Wn,dataIndex:Oi,render:Cr,shouldCellUpdate:_t.shouldCellUpdate},lo,{appendNode:Po,additionalProps:(0,Ge.Z)((0,Ge.Z)({},Mr),{},{style:wo},Zo)}))}var ca=Rr,fo=["data","index","className","rowKey","style","extra","getHeight"],Ha=be.forwardRef(function(st,St){var _t=st.data,tn=st.index,pn=st.className,un=st.rowKey,Wn=st.style,jn=st.extra,zn=st.getHeight,fi=(0,Fn.Z)(st,fo),$n=_t.record,ci=_t.indent,Ri=_t.index,Oi=Xe(Pe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Di=Oi.scrollX,ur=Oi.flattenColumns,ki=Oi.prefixCls,Sr=Oi.fixColumn,mr=Oi.componentWidth,br=Et($n,un,tn,ci),lo=br.rowSupportExpand,Po=br.expanded,Mr=br.rowProps,Wr=br.expandedRowRender,Wo=br.expandedRowClassName,Ar;if(lo&&Po){var _r=Wr($n,tn,ci+1,Po),Lr=Wo==null?void 0:Wo($n,tn,ci),nr={};Sr&&(nr={style:(0,We.Z)({},"--virtual-width","".concat(mr,"px"))});var wr="".concat(ki,"-expanded-row-cell");Ar=be.createElement("div",{className:Qe()("".concat(ki,"-expanded-row"),"".concat(ki,"-expanded-row-level-").concat(ci+1),Lr)},be.createElement(Xn,{component:"div",prefixCls:ki,className:Qe()(wr,(0,We.Z)({},"".concat(wr,"-fixed"),Sr)),additionalProps:nr},_r))}var Qr=(0,Ge.Z)((0,Ge.Z)({},Wn),{},{width:Di});jn&&(Qr.position="absolute",Qr.pointerEvents="none");var wo=be.createElement("div",(0,et.Z)({},Mr,fi,{ref:lo?null:St,className:Qe()(pn,"".concat(ki,"-row"),Mr==null?void 0:Mr.className,(0,We.Z)({},"".concat(ki,"-row-extra"),jn)),style:(0,Ge.Z)((0,Ge.Z)({},Qr),Mr==null?void 0:Mr.style)}),ur.map(function(Eo,Cr){return be.createElement(ca,{key:Cr,rowInfo:br,column:Eo,colIndex:Cr,indent:ci,index:tn,renderIndex:Ri,record:$n,inverse:jn,getHeight:zn})}));return lo?be.createElement("div",{ref:St},wo,Ar):wo}),oa=ve(Ha),xt=oa,kn=be.forwardRef(function(st,St){var _t=st.data,tn=st.onScroll,pn=Xe(Pe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),un=pn.flattenColumns,Wn=pn.onColumnResize,jn=pn.getRowKey,zn=pn.expandedKeys,fi=pn.prefixCls,$n=pn.childrenColumnName,ci=pn.emptyNode,Ri=pn.scrollX,Oi=Xe(On),Di=Oi.scrollY,ur=Oi.listItemHeight,ki=be.useRef(),Sr=dt(_t,$n,zn,jn),mr=be.useMemo(function(){var Ar=0;return un.map(function(_r){var Lr=_r.width,nr=_r.key;return Ar+=Lr,[nr,Lr,Ar]})},[un]),br=be.useMemo(function(){return mr.map(function(Ar){return Ar[2]})},[mr]);be.useEffect(function(){mr.forEach(function(Ar){var _r=(0,Ke.Z)(Ar,2),Lr=_r[0],nr=_r[1];Wn(Lr,nr)})},[mr]),be.useImperativeHandle(St,function(){var Ar={};return Object.defineProperty(Ar,"scrollLeft",{get:function(){var Lr;return((Lr=ki.current)===null||Lr===void 0?void 0:Lr.getScrollInfo().x)||0},set:function(Lr){var nr;(nr=ki.current)===null||nr===void 0||nr.scrollTo({left:Lr})}}),Ar});var lo=function(_r,Lr){var nr,wr=(nr=Sr[Lr])===null||nr===void 0?void 0:nr.record,Qr=_r.onCell;if(Qr){var wo,Eo=Qr(wr,Lr);return(wo=Eo==null?void 0:Eo.rowSpan)!==null&&wo!==void 0?wo:1}return 1},Po=function(_r){var Lr=_r.start,nr=_r.end,wr=_r.getSize,Qr=_r.offsetY;if(nr<0)return null;for(var wo=un.filter(function(ko){return lo(ko,Lr)===0}),Eo=Lr,Cr=function(So){if(wo=wo.filter(function(jo){return lo(jo,So)===0}),!wo.length)return Eo=So,"break"},Zo=Lr;Zo>=0;Zo-=1){var Jo=Cr(Zo);if(Jo==="break")break}for(var ea=un.filter(function(ko){return lo(ko,nr)!==1}),qo=nr,qa=function(So){if(ea=ea.filter(function(jo){return lo(jo,So)!==1}),!ea.length)return qo=Math.max(So-1,nr),"break"},ha=nr;ha<Sr.length;ha+=1){var zo=qa(ha);if(zo==="break")break}for(var po=[],Lo=function(So){var jo=Sr[So];if(!jo)return"continue";un.some(function(ho){return lo(ho,So)>1})&&po.push(So)},Xa=Eo;Xa<=qo;Xa+=1)var Ia=Lo(Xa);var as=po.map(function(ko){var So=Sr[ko],jo=jn(So.record,ko),ho=function(kr){var Vo=ko+kr-1,sa=jn(Sr[Vo].record,Vo),al=wr(jo,sa);return al.bottom-al.top},Yr=wr(jo);return be.createElement(xt,{key:ko,data:So,rowKey:jo,index:ko,style:{top:-Qr+Yr.top},extra:!0,getHeight:ho})});return as},Mr=be.useMemo(function(){return{columnsOffset:br}},[br]),Wr="".concat(fi,"-tbody"),Wo;return Sr.length?Wo=be.createElement(Jr.Z,{fullHeight:!1,ref:ki,className:Qe()(Wr,"".concat(Wr,"-virtual")),height:Di,itemHeight:ur||24,data:Sr,itemKey:function(_r){return jn(_r.record)},scrollWidth:Ri,onVirtualScroll:function(_r){var Lr=_r.x;tn({scrollLeft:Lr})},extraRender:Po},function(Ar,_r,Lr){var nr=jn(Ar.record,_r);return be.createElement(xt,(0,et.Z)({data:Ar,rowKey:nr,index:_r},Lr))}):Wo=be.createElement("div",{className:Qe()("".concat(fi,"-placeholder"))},be.createElement(Xn,{component:"div",prefixCls:fi},ci)),be.createElement(Ho.Provider,{value:Mr},Wo)}),Hn=ve(kn),Ei=Hn,Si=function(St,_t){var tn=_t.ref,pn=_t.onScroll;return be.createElement(Ei,{ref:tn,data:St,onScroll:pn})},$e=100;function Fi(st){var St=st.columns,_t=st.scroll,tn=st.prefixCls,pn=tn===void 0?Li:tn,un=st.className,Wn=st.listItemHeight,jn=_t||{},zn=jn.x,fi=jn.y;typeof zn!="number"&&(zn=((St||[]).length+1)*$e),typeof fi!="number"&&(fi=500);var $n=be.useMemo(function(){return{scrollY:fi,listItemHeight:Wn}},[fi,Wn]);return be.createElement(On.Provider,{value:$n},be.createElement(Zi,(0,et.Z)({},st,{className:Qe()(un,"".concat(pn,"-virtual")),scroll:(0,Ge.Z)((0,Ge.Z)({},_t),{},{x:zn}),components:{body:Si},columns:St,internalHooks:Ie,tailor:!0})))}function eo(st){return de(Fi,st)}var Qi=eo(),Vr=null;function pr(st){return null}var Er=pr;function oo(st){return null}var bo=oo,Ur=he(64002),Io=he(68031),lr=he(36355),$i=he(93891),Br=he(19716),oi=he(8628),Ro=he(31724),Xo=he(25700),ya=he(71418),na=he(88088);function Fa(st){return function(_t){let{prefixCls:tn,onExpand:pn,record:un,expanded:Wn,expandable:jn}=_t;const zn=`${tn}-row-expand-icon`;return be.createElement("button",{type:"button",onClick:fi=>{pn(un,fi),fi.stopPropagation()},className:Qe()(zn,{[`${zn}-spaced`]:!jn,[`${zn}-expanded`]:jn&&Wn,[`${zn}-collapsed`]:jn&&!Wn}),"aria-label":Wn?st.collapse:st.expand,"aria-expanded":Wn})}}var Sa=Fa;function Pa(st,St){return"key"in st&&st.key!==void 0&&st.key!==null?st.key:st.dataIndex?Array.isArray(st.dataIndex)?st.dataIndex.join("."):st.dataIndex:St}function is(st,St){return St?`${St}-${st}`:`${st}`}function Co(st,St){return typeof st=="function"?st(St):st}function ps(st,St){const _t=Co(st,St);return Object.prototype.toString.call(_t)==="[object Object]"?"":_t}var An={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"},Yo=An,Qs=he(88853),yl=function(St,_t){return be.createElement(Qs.Z,(0,et.Z)({},St,{ref:_t,icon:Yo}))},Kr=be.forwardRef(yl),Ao=Kr,Ka=he(56762);function da(st){const St=be.useRef(st),_t=(0,Ka.Z)();return[()=>St.current,tn=>{St.current=tn,_t()}]}var vo=he(3113),Qo=he(24905),Qa=he(38854),to=he(64165),Do=he(20834),Bo=he(40875),Yi=he(5112),ba=he(86914),or=he(21970),Xr=he(92832);function Pr(st){let{value:St,onChange:_t,filterSearch:tn,tablePrefixCls:pn,locale:un}=st;return tn?be.createElement("div",{className:`${pn}-filter-dropdown-search`},be.createElement(Xr.default,{prefix:be.createElement(or.Z,null),placeholder:un.filterSearchPlaceholder,onChange:_t,value:St,htmlSize:1,className:`${pn}-filter-dropdown-search-input`})):null}var fa=Pr,Mi=he(85108);const ga=st=>{const{keyCode:St}=st;St===Mi.Z.ENTER&&st.stopPropagation()};var rs=be.forwardRef((st,St)=>be.createElement("div",{className:st.className,onClick:_t=>_t.stopPropagation(),onKeyDown:ga,ref:St},st.children));function Sl(st){let St=[];return(st||[]).forEach(_t=>{let{value:tn,children:pn}=_t;St.push(tn),pn&&(St=[].concat((0,Ki.Z)(St),(0,Ki.Z)(Sl(pn))))}),St}function Kl(st){return st.some(St=>{let{children:_t}=St;return _t})}function yo(st,St){return typeof St=="string"||typeof St=="number"?St==null?void 0:St.toString().toLowerCase().includes(st.trim().toLowerCase()):!1}function Vu(st){let{filters:St,prefixCls:_t,filteredKeys:tn,filterMultiple:pn,searchValue:un,filterSearch:Wn}=st;return St.map((jn,zn)=>{const fi=String(jn.value);if(jn.children)return{key:fi||zn,label:jn.text,popupClassName:`${_t}-dropdown-submenu`,children:Vu({filters:jn.children,prefixCls:_t,filteredKeys:tn,filterMultiple:pn,searchValue:un,filterSearch:Wn})};const $n=pn?Qo.default:Yi.ZP,ci={key:jn.value!==void 0?fi:zn,label:be.createElement(be.Fragment,null,be.createElement($n,{checked:tn.includes(fi)}),be.createElement("span",null,jn.text))};return un.trim()?typeof Wn=="function"?Wn(un,jn)?ci:null:yo(un,jn.text)?ci:null:ci})}function Ll(st){var St,_t;const{tablePrefixCls:tn,prefixCls:pn,column:un,dropdownPrefixCls:Wn,columnKey:jn,filterMultiple:zn,filterMode:fi="menu",filterSearch:$n=!1,filterState:ci,triggerFilter:Ri,locale:Oi,children:Di,getPopupContainer:ur}=st,{filterDropdownOpen:ki,onFilterDropdownOpenChange:Sr,filterResetToDefaultFilteredValue:mr,defaultFilteredValue:br,filterDropdownVisible:lo,onFilterDropdownVisibleChange:Po}=un,[Mr,Wr]=be.useState(!1),Wo=!!(ci&&(!((St=ci.filteredKeys)===null||St===void 0)&&St.length||ci.forceFiltered)),Ar=Hi=>{Wr(Hi),Sr==null||Sr(Hi),Po==null||Po(Hi)},_r=(_t=ki!=null?ki:lo)!==null&&_t!==void 0?_t:Mr,Lr=ci==null?void 0:ci.filteredKeys,[nr,wr]=da(Lr||[]),Qr=Hi=>{let{selectedKeys:kr}=Hi;wr(kr)},wo=(Hi,kr)=>{let{node:Vo,checked:sa}=kr;Qr(zn?{selectedKeys:Hi}:{selectedKeys:sa&&Vo.key?[Vo.key]:[]})};be.useEffect(()=>{Mr&&Qr({selectedKeys:Lr||[]})},[Lr]);const[Eo,Cr]=be.useState([]),Zo=Hi=>{Cr(Hi)},[Jo,ea]=be.useState(""),qo=Hi=>{const{value:kr}=Hi.target;ea(kr)};be.useEffect(()=>{Mr||ea("")},[Mr]);const qa=Hi=>{const kr=Hi&&Hi.length?Hi:null;if(kr===null&&(!ci||!ci.filteredKeys)||(0,it.Z)(kr,ci==null?void 0:ci.filteredKeys,!0))return null;Ri({column:un,key:jn,filteredKeys:kr})},ha=()=>{Ar(!1),qa(nr())},zo=function(){let{confirm:Hi,closeDropdown:kr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Hi&&qa([]),kr&&Ar(!1),ea(""),wr(mr?(br||[]).map(Vo=>String(Vo)):[])},po=function(){let{closeDropdown:Hi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Hi&&Ar(!1),qa(nr())},Lo=Hi=>{Hi&&Lr!==void 0&&wr(Lr||[]),Ar(Hi),!Hi&&!un.filterDropdown&&ha()},Xa=Qe()({[`${Wn}-menu-without-submenu`]:!Kl(un.filters||[])}),Ia=Hi=>{if(Hi.target.checked){const kr=Sl(un==null?void 0:un.filters).map(Vo=>String(Vo));wr(kr)}else wr([])},as=Hi=>{let{filters:kr}=Hi;return(kr||[]).map((Vo,sa)=>{const al=String(Vo.value),Ws={title:Vo.text,key:Vo.value!==void 0?al:sa};return Vo.children&&(Ws.children=as({filters:Vo.children})),Ws})},ko=Hi=>{var kr;return Object.assign(Object.assign({},Hi),{text:Hi.title,value:Hi.key,children:((kr=Hi.children)===null||kr===void 0?void 0:kr.map(Vo=>ko(Vo)))||[]})};let So;if(typeof un.filterDropdown=="function")So=un.filterDropdown({prefixCls:`${Wn}-custom`,setSelectedKeys:Hi=>Qr({selectedKeys:Hi}),selectedKeys:nr(),confirm:po,clearFilters:zo,filters:un.filters,visible:_r,close:()=>{Ar(!1)}});else if(un.filterDropdown)So=un.filterDropdown;else{const Hi=nr()||[],kr=()=>(un.filters||[]).length===0?be.createElement(to.Z,{image:to.Z.PRESENTED_IMAGE_SIMPLE,description:Oi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):fi==="tree"?be.createElement(be.Fragment,null,be.createElement(fa,{filterSearch:$n,value:Jo,onChange:qo,tablePrefixCls:tn,locale:Oi}),be.createElement("div",{className:`${tn}-filter-dropdown-tree`},zn?be.createElement(Qo.default,{checked:Hi.length===Sl(un.filters).length,indeterminate:Hi.length>0&&Hi.length<Sl(un.filters).length,className:`${tn}-filter-dropdown-checkall`,onChange:Ia},Oi.filterCheckall):null,be.createElement(ba.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:zn,checkStrictly:!zn,className:`${Wn}-menu`,onCheck:wo,checkedKeys:Hi,selectedKeys:Hi,showIcon:!1,treeData:as({filters:un.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Jo.trim()?sa=>typeof $n=="function"?$n(Jo,ko(sa)):yo(Jo,sa.title):void 0}))):be.createElement(be.Fragment,null,be.createElement(fa,{filterSearch:$n,value:Jo,onChange:qo,tablePrefixCls:tn,locale:Oi}),be.createElement(Do.default,{selectable:!0,multiple:zn,prefixCls:`${Wn}-menu`,className:Xa,onSelect:Qr,onDeselect:Qr,selectedKeys:Hi,getPopupContainer:ur,openKeys:Eo,onOpenChange:Zo,items:Vu({filters:un.filters||[],filterSearch:$n,prefixCls:pn,filteredKeys:nr(),filterMultiple:zn,searchValue:Jo})})),Vo=()=>mr?(0,it.Z)((br||[]).map(sa=>String(sa)),Hi,!0):Hi.length===0;So=be.createElement(be.Fragment,null,kr(),be.createElement("div",{className:`${pn}-dropdown-btns`},be.createElement(vo.ZP,{type:"link",size:"small",disabled:Vo(),onClick:()=>zo()},Oi.filterReset),be.createElement(vo.ZP,{type:"primary",size:"small",onClick:ha},Oi.filterConfirm)))}un.filterDropdown&&(So=be.createElement(Bo.J,{selectable:void 0},So));const jo=()=>be.createElement(rs,{className:`${pn}-dropdown`},So);let ho;typeof un.filterIcon=="function"?ho=un.filterIcon(Wo):un.filterIcon?ho=un.filterIcon:ho=be.createElement(Ao,null);const{direction:Yr}=be.useContext(lr.E_);return be.createElement("div",{className:`${pn}-column`},be.createElement("span",{className:`${tn}-column-title`},Di),be.createElement(Qa.Z,{dropdownRender:jo,trigger:["click"],open:_r,onOpenChange:Lo,getPopupContainer:ur,placement:Yr==="rtl"?"bottomLeft":"bottomRight"},be.createElement("span",{role:"button",tabIndex:-1,className:Qe()(`${pn}-trigger`,{active:Wo}),onClick:Hi=>{Hi.stopPropagation()}},ho)))}var Dl=Ll;function xl(st,St,_t){let tn=[];return(st||[]).forEach((pn,un)=>{var Wn;const jn=is(un,_t);if(pn.filters||"filterDropdown"in pn||"onFilter"in pn)if("filteredValue"in pn){let zn=pn.filteredValue;"filterDropdown"in pn||(zn=(Wn=zn==null?void 0:zn.map(String))!==null&&Wn!==void 0?Wn:zn),tn.push({column:pn,key:Pa(pn,jn),filteredKeys:zn,forceFiltered:pn.filtered})}else tn.push({column:pn,key:Pa(pn,jn),filteredKeys:St&&pn.defaultFilteredValue?pn.defaultFilteredValue:void 0,forceFiltered:pn.filtered});"children"in pn&&(tn=[].concat((0,Ki.Z)(tn),(0,Ki.Z)(xl(pn.children,St,jn))))}),tn}function co(st,St,_t,tn,pn,un,Wn,jn){return _t.map((zn,fi)=>{const $n=is(fi,jn),{filterMultiple:ci=!0,filterMode:Ri,filterSearch:Oi}=zn;let Di=zn;if(Di.filters||Di.filterDropdown){const ur=Pa(Di,$n),ki=tn.find(Sr=>{let{key:mr}=Sr;return ur===mr});Di=Object.assign(Object.assign({},Di),{title:Sr=>be.createElement(Dl,{tablePrefixCls:st,prefixCls:`${st}-filter`,dropdownPrefixCls:St,column:Di,columnKey:ur,filterState:ki,filterMultiple:ci,filterMode:Ri,filterSearch:Oi,triggerFilter:un,locale:pn,getPopupContainer:Wn},Co(zn.title,Sr))})}return"children"in Di&&(Di=Object.assign(Object.assign({},Di),{children:co(st,St,Di.children,tn,pn,un,Wn,$n)})),Di})}function Ba(st){const St={};return st.forEach(_t=>{let{key:tn,filteredKeys:pn,column:un}=_t;const{filters:Wn,filterDropdown:jn}=un;if(jn)St[tn]=pn||null;else if(Array.isArray(pn)){const zn=Sl(Wn);St[tn]=zn.filter(fi=>pn.includes(String(fi)))}else St[tn]=null}),St}function Ms(st,St){return St.reduce((_t,tn)=>{const{column:{onFilter:pn,filters:un},filteredKeys:Wn}=tn;return pn&&Wn&&Wn.length?_t.filter(jn=>Wn.some(zn=>{const fi=Sl(un),$n=fi.findIndex(Ri=>String(Ri)===String(zn)),ci=$n!==-1?fi[$n]:zn;return pn(ci,jn)})):_t},st)}const zs=st=>st.flatMap(St=>"children"in St?[St].concat((0,Ki.Z)(zs(St.children||[]))):[St]);function Yu(st){let{prefixCls:St,dropdownPrefixCls:_t,mergedColumns:tn,onFilterChange:pn,getPopupContainer:un,locale:Wn}=st;const jn=be.useMemo(()=>zs(tn||[]),[tn]),[zn,fi]=be.useState(()=>xl(jn,!0)),$n=be.useMemo(()=>{const Di=xl(jn,!1);if(Di.length===0)return Di;let ur=!0,ki=!0;if(Di.forEach(Sr=>{let{filteredKeys:mr}=Sr;mr!==void 0?ur=!1:ki=!1}),ur){const Sr=(jn||[]).map((mr,br)=>Pa(mr,is(br)));return zn.filter(mr=>{let{key:br}=mr;return Sr.includes(br)}).map(mr=>{const br=jn[Sr.findIndex(lo=>lo===mr.key)];return Object.assign(Object.assign({},mr),{column:Object.assign(Object.assign({},mr.column),br),forceFiltered:br.filtered})})}return Di},[jn,zn]),ci=be.useMemo(()=>Ba($n),[$n]),Ri=Di=>{const ur=$n.filter(ki=>{let{key:Sr}=ki;return Sr!==Di.key});ur.push(Di),fi(ur),pn(Ba(ur),ur)};return[Di=>co(St,_t,Di,$n,Wn,Ri,un),$n,ci]}var uc=Yu;function Uu(st,St,_t){const tn=be.useRef({});function pn(un){if(!tn.current||tn.current.data!==st||tn.current.childrenColumnName!==St||tn.current.getRowKey!==_t){let jn=function(zn){zn.forEach((fi,$n)=>{const ci=_t(fi,$n);Wn.set(ci,fi),fi&&typeof fi=="object"&&St in fi&&jn(fi[St]||[])})};const Wn=new Map;jn(st),tn.current={data:st,childrenColumnName:St,kvMap:Wn,getRowKey:_t}}return tn.current.kvMap.get(un)}return[pn]}var Ac=he(50371),Xu=function(st,St){var _t={};for(var tn in st)Object.prototype.hasOwnProperty.call(st,tn)&&St.indexOf(tn)<0&&(_t[tn]=st[tn]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pn=0,tn=Object.getOwnPropertySymbols(st);pn<tn.length;pn++)St.indexOf(tn[pn])<0&&Object.prototype.propertyIsEnumerable.call(st,tn[pn])&&(_t[tn[pn]]=st[tn[pn]]);return _t};const Vl=10;function Bl(st,St){const _t={current:st.current,pageSize:st.pageSize};return Object.keys(St&&typeof St=="object"?St:{}).forEach(pn=>{const un=st[pn];typeof un!="function"&&(_t[pn]=un)}),_t}function os(st,St,_t){const tn=_t&&typeof _t=="object"?_t:{},{total:pn=0}=tn,un=Xu(tn,["total"]),[Wn,jn]=(0,be.useState)(()=>({current:"defaultCurrent"in un?un.defaultCurrent:1,pageSize:"defaultPageSize"in un?un.defaultPageSize:Vl})),zn=(0,Ac.Z)(Wn,un,{total:pn>0?pn:st}),fi=Math.ceil((pn||st)/zn.pageSize);zn.current>fi&&(zn.current=fi||1);const $n=(Ri,Oi)=>{jn({current:Ri!=null?Ri:1,pageSize:Oi||zn.pageSize})},ci=(Ri,Oi)=>{var Di;_t&&((Di=_t.onChange)===null||Di===void 0||Di.call(_t,Ri,Oi)),$n(Ri,Oi),St(Ri,Oi||(zn==null?void 0:zn.pageSize))};return _t===!1?[{},()=>{}]:[Object.assign(Object.assign({},zn),{onChange:ci}),$n]}var Au=os,_u=he(18290),$s=he(35654),_o=he(90782),Ma=he(71430),bl=he(35788);const Ts={},Os="SELECT_ALL",ms="SELECT_INVERT",Es="SELECT_NONE",js=[],Is=(st,St)=>{let _t=[];return(St||[]).forEach(tn=>{_t.push(tn),tn&&typeof tn=="object"&&st in tn&&(_t=[].concat((0,Ki.Z)(_t),(0,Ki.Z)(Is(st,tn[st]))))}),_t};var au=(st,St)=>{const{preserveSelectedRowKeys:_t,selectedRowKeys:tn,defaultSelectedRowKeys:pn,getCheckboxProps:un,onChange:Wn,onSelect:jn,onSelectAll:zn,onSelectInvert:fi,onSelectNone:$n,onSelectMultiple:ci,columnWidth:Ri,type:Oi,selections:Di,fixed:ur,renderCell:ki,hideSelectAll:Sr,checkStrictly:mr=!0}=St||{},{prefixCls:br,data:lo,pageData:Po,getRecordByKey:Mr,getRowKey:Wr,expandType:Wo,childrenColumnName:Ar,locale:_r,getPopupContainer:Lr}=st,[nr,wr]=(0,bl.Z)(tn||pn||js,{value:tn}),Qr=be.useRef(new Map),wo=(0,be.useCallback)(ko=>{if(_t){const So=new Map;ko.forEach(jo=>{let ho=Mr(jo);!ho&&Qr.current.has(jo)&&(ho=Qr.current.get(jo)),So.set(jo,ho)}),Qr.current=So}},[Mr,_t]);be.useEffect(()=>{wo(nr)},[nr]);const{keyEntities:Eo}=(0,be.useMemo)(()=>{if(mr)return{keyEntities:null};let ko=lo;if(_t){const So=new Set(lo.map((ho,Yr)=>Wr(ho,Yr))),jo=Array.from(Qr.current).reduce((ho,Yr)=>{let[Hi,kr]=Yr;return So.has(Hi)?ho:ho.concat(kr)},[]);ko=[].concat((0,Ki.Z)(ko),(0,Ki.Z)(jo))}return(0,Ma.I8)(ko,{externalGetKey:Wr,childrenPropName:Ar})},[lo,Wr,mr,Ar,_t]),Cr=(0,be.useMemo)(()=>Is(Ar,Po),[Ar,Po]),Zo=(0,be.useMemo)(()=>{const ko=new Map;return Cr.forEach((So,jo)=>{const ho=Wr(So,jo),Yr=(un?un(So):null)||{};ko.set(ho,Yr)}),ko},[Cr,Wr,un]),Jo=(0,be.useCallback)(ko=>{var So;return!!(!((So=Zo.get(Wr(ko)))===null||So===void 0)&&So.disabled)},[Zo,Wr]),[ea,qo]=(0,be.useMemo)(()=>{if(mr)return[nr||[],[]];const{checkedKeys:ko,halfCheckedKeys:So}=(0,_o.S)(nr,!0,Eo,Jo);return[ko||[],So]},[nr,mr,Eo,Jo]),qa=(0,be.useMemo)(()=>{const ko=Oi==="radio"?ea.slice(0,1):ea;return new Set(ko)},[ea,Oi]),ha=(0,be.useMemo)(()=>Oi==="radio"?new Set:new Set(qo),[qo,Oi]),[zo,po]=(0,be.useState)(null);be.useEffect(()=>{St||wr(js)},[!!St]);const Lo=(0,be.useCallback)((ko,So)=>{let jo,ho;wo(ko),_t?(jo=ko,ho=ko.map(Yr=>Qr.current.get(Yr))):(jo=[],ho=[],ko.forEach(Yr=>{const Hi=Mr(Yr);Hi!==void 0&&(jo.push(Yr),ho.push(Hi))})),wr(jo),Wn==null||Wn(jo,ho,{type:So})},[wr,Mr,Wn,_t]),Xa=(0,be.useCallback)((ko,So,jo,ho)=>{if(jn){const Yr=jo.map(Hi=>Mr(Hi));jn(Mr(ko),So,Yr,ho)}Lo(jo,"single")},[jn,Mr,Lo]),Ia=(0,be.useMemo)(()=>!Di||Sr?null:(Di===!0?[Os,ms,Es]:Di).map(So=>So===Os?{key:"all",text:_r.selectionAll,onSelect(){Lo(lo.map((jo,ho)=>Wr(jo,ho)).filter(jo=>{const ho=Zo.get(jo);return!(ho!=null&&ho.disabled)||qa.has(jo)}),"all")}}:So===ms?{key:"invert",text:_r.selectInvert,onSelect(){const jo=new Set(qa);Po.forEach((Yr,Hi)=>{const kr=Wr(Yr,Hi),Vo=Zo.get(kr);Vo!=null&&Vo.disabled||(jo.has(kr)?jo.delete(kr):jo.add(kr))});const ho=Array.from(jo);fi&&fi(ho),Lo(ho,"invert")}}:So===Es?{key:"none",text:_r.selectNone,onSelect(){$n==null||$n(),Lo(Array.from(qa).filter(jo=>{const ho=Zo.get(jo);return ho==null?void 0:ho.disabled}),"none")}}:So).map(So=>Object.assign(Object.assign({},So),{onSelect:function(){for(var jo,ho,Yr=arguments.length,Hi=new Array(Yr),kr=0;kr<Yr;kr++)Hi[kr]=arguments[kr];(ho=So.onSelect)===null||ho===void 0||(jo=ho).call.apply(jo,[So].concat(Hi)),po(null)}})),[Di,qa,Po,Wr,fi,Lo]);return[(0,be.useCallback)(ko=>{var So;if(!St)return ko.filter(Za=>Za!==Ts);let jo=(0,Ki.Z)(ko);const ho=new Set(qa),Yr=Cr.map(Wr).filter(Za=>!Zo.get(Za).disabled),Hi=Yr.every(Za=>ho.has(Za)),kr=Yr.some(Za=>ho.has(Za)),Vo=()=>{const Za=[];Hi?Yr.forEach(ss=>{ho.delete(ss),Za.push(ss)}):Yr.forEach(ss=>{ho.has(ss)||(ho.add(ss),Za.push(ss))});const es=Array.from(ho);zn==null||zn(!Hi,es.map(ss=>Mr(ss)),Za.map(ss=>Mr(ss))),Lo(es,"all"),po(null)};let sa;if(Oi!=="radio"){let Za;if(Ia){const va={getPopupContainer:Lr,items:Ia.map((cs,qs)=>{const{key:Ja,text:To,onSelect:Ds}=cs;return{key:Ja!=null?Ja:qs,onClick:()=>{Ds==null||Ds(Yr)},label:To}})};Za=be.createElement("div",{className:`${br}-selection-extra`},be.createElement(Qa.Z,{menu:va,getPopupContainer:Lr},be.createElement("span",null,be.createElement(_u.Z,null))))}const es=Cr.map((va,cs)=>{const qs=Wr(va,cs),Ja=Zo.get(qs)||{};return Object.assign({checked:ho.has(qs)},Ja)}).filter(va=>{let{disabled:cs}=va;return cs}),ss=!!es.length&&es.length===Cr.length,bs=ss&&es.every(va=>{let{checked:cs}=va;return cs}),Us=ss&&es.some(va=>{let{checked:cs}=va;return cs});sa=!Sr&&be.createElement("div",{className:`${br}-selection`},be.createElement(Qo.default,{checked:ss?bs:!!Cr.length&&Hi,indeterminate:ss?!bs&&Us:!Hi&&kr,onChange:Vo,disabled:Cr.length===0||ss,"aria-label":Za?"Custom selection":"Select all",skipGroup:!0}),Za)}let al;Oi==="radio"?al=(Za,es,ss)=>{const bs=Wr(es,ss),Us=ho.has(bs);return{node:be.createElement(Yi.ZP,Object.assign({},Zo.get(bs),{checked:Us,onClick:va=>va.stopPropagation(),onChange:va=>{ho.has(bs)||Xa(bs,!0,[bs],va.nativeEvent)}})),checked:Us}}:al=(Za,es,ss)=>{var bs;const Us=Wr(es,ss),va=ho.has(Us),cs=ha.has(Us),qs=Zo.get(Us);let Ja;return Wo==="nest"?Ja=cs:Ja=(bs=qs==null?void 0:qs.indeterminate)!==null&&bs!==void 0?bs:cs,{node:be.createElement(Qo.default,Object.assign({},qs,{indeterminate:Ja,checked:va,skipGroup:!0,onClick:To=>To.stopPropagation(),onChange:To=>{let{nativeEvent:Ds}=To;const{shiftKey:Xs}=Ds;let Fu=-1,su=-1;if(Xs&&mr){const ts=new Set([zo,Us]);Yr.some((Cl,Cs)=>{if(ts.has(Cl))if(Fu===-1)Fu=Cs;else return su=Cs,!0;return!1})}if(su!==-1&&Fu!==su&&mr){const ts=Yr.slice(Fu,su+1),Cl=[];va?ts.forEach(Ss=>{ho.has(Ss)&&(Cl.push(Ss),ho.delete(Ss))}):ts.forEach(Ss=>{ho.has(Ss)||(Cl.push(Ss),ho.add(Ss))});const Cs=Array.from(ho);ci==null||ci(!va,Cs.map(Ss=>Mr(Ss)),Cl.map(Ss=>Mr(Ss))),Lo(Cs,"multiple")}else{const ts=ea;if(mr){const Cl=va?(0,$s._5)(ts,Us):(0,$s.L0)(ts,Us);Xa(Us,!va,Cl,Ds)}else{const Cl=(0,_o.S)([].concat((0,Ki.Z)(ts),[Us]),!0,Eo,Jo),{checkedKeys:Cs,halfCheckedKeys:Ss}=Cl;let mu=Cs;if(va){const fc=new Set(Cs);fc.delete(Us),mu=(0,_o.S)(Array.from(fc),{checked:!1,halfCheckedKeys:Ss},Eo,Jo).checkedKeys}Xa(Us,!va,mu,Ds)}}po(va?null:Us)}})),checked:va}};const Ws=(Za,es,ss)=>{const{node:bs,checked:Us}=al(Za,es,ss);return ki?ki(Us,es,ss,bs):bs};if(!jo.includes(Ts))if(jo.findIndex(Za=>{var es;return((es=Za[yr])===null||es===void 0?void 0:es.columnType)==="EXPAND_COLUMN"})===0){const[Za,...es]=jo;jo=[Za,Ts].concat((0,Ki.Z)(es))}else jo=[Ts].concat((0,Ki.Z)(jo));const Pl=jo.indexOf(Ts);jo=jo.filter((Za,es)=>Za!==Ts||es===Pl);const Na=jo[Pl-1],_a=jo[Pl+1];let Fo=ur;Fo===void 0&&((_a==null?void 0:_a.fixed)!==void 0?Fo=_a.fixed:(Na==null?void 0:Na.fixed)!==void 0&&(Fo=Na.fixed)),Fo&&Na&&((So=Na[yr])===null||So===void 0?void 0:So.columnType)==="EXPAND_COLUMN"&&Na.fixed===void 0&&(Na.fixed=Fo);const Ys=Qe()(`${br}-selection-col`,{[`${br}-selection-col-with-dropdown`]:Di&&Oi==="checkbox"}),wl={fixed:Fo,width:Ri,className:`${br}-selection-column`,title:St.columnTitle||sa,render:Ws,onCell:St.onCell,[yr]:{className:Ys}};return jo.map(Za=>Za===Ts?wl:Za)},[Wr,Cr,St,ea,qa,ha,Ri,Ia,Wo,zo,Zo,ci,Xa,Jo]),qa]},Ls=he(35323),ih=he(19155),md=he(6848);const id="ascend",Hr="descend";function rd(st){return typeof st.sorter=="object"&&typeof st.sorter.multiple=="number"?st.sorter.multiple:!1}function Ut(st){return typeof st=="function"?st:st&&typeof st=="object"&&st.compare?st.compare:!1}function hi(st,St){return St?st[st.indexOf(St)+1]:st[0]}function Ih(st,St,_t){let tn=[];function pn(un,Wn){tn.push({column:un,key:Pa(un,Wn),multiplePriority:rd(un),sortOrder:un.sortOrder})}return(st||[]).forEach((un,Wn)=>{const jn=is(Wn,_t);un.children?("sortOrder"in un&&pn(un,jn),tn=[].concat((0,Ki.Z)(tn),(0,Ki.Z)(Ih(un.children,St,jn)))):un.sorter&&("sortOrder"in un?pn(un,jn):St&&un.defaultSortOrder&&tn.push({column:un,key:Pa(un,jn),multiplePriority:rd(un),sortOrder:un.defaultSortOrder}))}),tn}function rh(st,St,_t,tn,pn,un,Wn,jn){return(St||[]).map((zn,fi)=>{const $n=is(fi,jn);let ci=zn;if(ci.sorter){const Ri=ci.sortDirections||pn,Oi=ci.showSorterTooltip===void 0?Wn:ci.showSorterTooltip,Di=Pa(ci,$n),ur=_t.find(Wo=>{let{key:Ar}=Wo;return Ar===Di}),ki=ur?ur.sortOrder:null,Sr=hi(Ri,ki);let mr;if(zn.sortIcon)mr=zn.sortIcon({sortOrder:ki});else{const Wo=Ri.includes(id)&&be.createElement(ih.Z,{className:Qe()(`${st}-column-sorter-up`,{active:ki===id})}),Ar=Ri.includes(Hr)&&be.createElement(Ls.Z,{className:Qe()(`${st}-column-sorter-down`,{active:ki===Hr})});mr=be.createElement("span",{className:Qe()(`${st}-column-sorter`,{[`${st}-column-sorter-full`]:!!(Wo&&Ar)})},be.createElement("span",{className:`${st}-column-sorter-inner`,"aria-hidden":"true"},Wo,Ar))}const{cancelSort:br,triggerAsc:lo,triggerDesc:Po}=un||{};let Mr=br;Sr===Hr?Mr=Po:Sr===id&&(Mr=lo);const Wr=typeof Oi=="object"?Oi:{title:Mr};ci=Object.assign(Object.assign({},ci),{className:Qe()(ci.className,{[`${st}-column-sort`]:ki}),title:Wo=>{const Ar=be.createElement("div",{className:`${st}-column-sorters`},be.createElement("span",{className:`${st}-column-title`},Co(zn.title,Wo)),mr);return Oi?be.createElement(md.Z,Object.assign({},Wr),Ar):Ar},onHeaderCell:Wo=>{const Ar=zn.onHeaderCell&&zn.onHeaderCell(Wo)||{},_r=Ar.onClick,Lr=Ar.onKeyDown;Ar.onClick=Qr=>{tn({column:zn,key:Di,sortOrder:Sr,multiplePriority:rd(zn)}),_r==null||_r(Qr)},Ar.onKeyDown=Qr=>{Qr.keyCode===Mi.Z.ENTER&&(tn({column:zn,key:Di,sortOrder:Sr,multiplePriority:rd(zn)}),Lr==null||Lr(Qr))};const nr=ps(zn.title,{}),wr=nr==null?void 0:nr.toString();return ki?Ar["aria-sort"]=ki==="ascend"?"ascending":"descending":Ar["aria-label"]=wr||"",Ar.className=Qe()(Ar.className,`${st}-column-has-sorters`),Ar.tabIndex=0,zn.ellipsis&&(Ar.title=(nr!=null?nr:"").toString()),Ar}})}return"children"in ci&&(ci=Object.assign(Object.assign({},ci),{children:rh(st,ci.children,_t,tn,pn,un,Wn,$n)})),ci})}function dc(st){const{column:St,sortOrder:_t}=st;return{column:St,order:_t,field:St.dataIndex,columnKey:St.key}}function hc(st){const St=st.filter(_t=>{let{sortOrder:tn}=_t;return tn}).map(dc);return St.length===0&&st.length?Object.assign(Object.assign({},dc(st[st.length-1])),{column:void 0}):St.length<=1?St[0]||{}:St}function Fc(st,St,_t){const tn=St.slice().sort((Wn,jn)=>jn.multiplePriority-Wn.multiplePriority),pn=st.slice(),un=tn.filter(Wn=>{let{column:{sorter:jn},sortOrder:zn}=Wn;return Ut(jn)&&zn});return un.length?pn.sort((Wn,jn)=>{for(let zn=0;zn<un.length;zn+=1){const fi=un[zn],{column:{sorter:$n},sortOrder:ci}=fi,Ri=Ut($n);if(Ri&&ci){const Oi=Ri(Wn,jn,ci);if(Oi!==0)return ci===id?Oi:-Oi}}return 0}).map(Wn=>{const jn=Wn[_t];return jn?Object.assign(Object.assign({},Wn),{[_t]:Fc(jn,St,_t)}):Wn}):pn}function oh(st){let{prefixCls:St,mergedColumns:_t,onSorterChange:tn,sortDirections:pn,tableLocale:un,showSorterTooltip:Wn}=st;const[jn,zn]=be.useState(Ih(_t,!0)),fi=be.useMemo(()=>{let Di=!0;const ur=Ih(_t,!1);if(!ur.length)return jn;const ki=[];function Sr(br){Di?ki.push(br):ki.push(Object.assign(Object.assign({},br),{sortOrder:null}))}let mr=null;return ur.forEach(br=>{mr===null?(Sr(br),br.sortOrder&&(br.multiplePriority===!1?Di=!1:mr=!0)):(mr&&br.multiplePriority!==!1||(Di=!1),Sr(br))}),ki},[_t,jn]),$n=be.useMemo(()=>{const Di=fi.map(ur=>{let{column:ki,sortOrder:Sr}=ur;return{column:ki,order:Sr}});return{sortColumns:Di,sortColumn:Di[0]&&Di[0].column,sortOrder:Di[0]&&Di[0].order}},[fi]);function ci(Di){let ur;Di.multiplePriority===!1||!fi.length||fi[0].multiplePriority===!1?ur=[Di]:ur=[].concat((0,Ki.Z)(fi.filter(ki=>{let{key:Sr}=ki;return Sr!==Di.key})),[Di]),zn(ur),tn(hc(ur),ur)}return[Di=>rh(St,Di,fi,ci,pn,un,Wn),fi,$n,()=>hc(fi)]}function Td(st,St){return st.map(_t=>{const tn=Object.assign({},_t);return tn.title=Co(_t.title,St),"children"in tn&&(tn.children=Td(tn.children,St)),tn})}function Rs(st){return[be.useCallback(_t=>Td(_t,st),[st])]}var No=Nr((st,St)=>{const{_renderTimes:_t}=st,{_renderTimes:tn}=St;return _t!==tn}),gl=eo((st,St)=>{const{_renderTimes:_t}=st,{_renderTimes:tn}=St;return _t!==tn}),Nl=he(64993),ws=he(17313),pa=he(83116),ol=he(37613),rt=st=>{const{componentCls:St}=st,_t=`${st.lineWidth}px ${st.lineType} ${st.tableBorderColor}`,tn=(pn,un,Wn)=>({[`&${St}-${pn}`]:{[`> ${St}-container`]:{[`> ${St}-content, > ${St}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${St}-expanded-row-fixed`]:{margin:`-${un}px -${Wn+st.lineWidth}px`}}}}}});return{[`${St}-wrapper`]:{[`${St}${St}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${St}-title`]:{border:_t,borderBottom:0},[`> ${St}-container`]:{borderInlineStart:_t,borderTop:_t,[`
|
|
|
> ${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:_t},"> thead":{"> tr:not(:last-child) > th":{borderBottom:_t},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${St}-cell-fix-right-first::after`]:{borderInlineEnd:_t}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${St}-expanded-row-fixed`]:{margin:`-${st.tablePaddingVertical}px -${st.tablePaddingHorizontal+st.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:st.lineWidth,bottom:0,borderInlineEnd:_t,content:'""'}}}}}},[`&${St}-scroll-horizontal`]:{[`> ${St}-container > ${St}-body`]:{"> table > tbody":{[`
|
|
|
> tr${St}-expanded-row,
|
|
|
> tr${St}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},tn("middle",st.tablePaddingVerticalMiddle,st.tablePaddingHorizontalMiddle)),tn("small",st.tablePaddingVerticalSmall,st.tablePaddingHorizontalSmall)),{[`> ${St}-footer`]:{border:_t,borderTop:0}}),[`${St}-cell`]:{[`${St}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${st.lineWidth}px 0 ${st.lineWidth}px ${st.tableHeaderBg}`}},[`${St}-bordered ${St}-cell-scrollbar`]:{borderInlineEnd:_t}}}},rn=st=>{const{componentCls:St}=st;return{[`${St}-wrapper`]:{[`${St}-cell-ellipsis`]:Object.assign(Object.assign({},ws.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"}})}}},Bn=st=>{const{componentCls:St}=st;return{[`${St}-wrapper`]:{[`${St}-tbody > tr${St}-placeholder`]:{textAlign:"center",color:st.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:st.colorBgContainer}}}}},In=he(15969),ai=st=>{const{componentCls:St,antCls:_t,controlInteractiveSize:tn,motionDurationSlow:pn,lineWidth:un,paddingXS:Wn,lineType:jn,tableBorderColor:zn,tableExpandIconBg:fi,tableExpandColumnWidth:$n,borderRadius:ci,fontSize:Ri,fontSizeSM:Oi,lineHeight:Di,tablePaddingVertical:ur,tablePaddingHorizontal:ki,tableExpandedRowBg:Sr,paddingXXS:mr}=st,br=tn/2-un,lo=br*2+un*3,Po=`${un}px ${jn} ${zn}`,Mr=mr-un;return{[`${St}-wrapper`]:{[`${St}-expand-icon-col`]:{width:$n},[`${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,In.N)(st)),{position:"relative",float:"left",boxSizing:"border-box",width:lo,height:lo,padding:0,color:"inherit",lineHeight:`${lo}px`,background:fi,border:Po,borderRadius:ci,transform:`scale(${tn/lo})`,transition:`all ${pn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${pn} ease-out`,content:'""'},"&::before":{top:br,insetInlineEnd:Mr,insetInlineStart:Mr,height:un},"&::after":{top:Mr,bottom:Mr,insetInlineStart:br,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*Di-un*3)/2-Math.ceil((Oi*1.4-un*3)/2),marginInlineEnd:Wn},[`tr${St}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Sr}},[`${_t}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${St}-expanded-row-fixed`]:{position:"relative",margin:`-${ur}px -${ki}px`,padding:`${ur}px ${ki}px`}}}},_i=st=>{const{componentCls:St,antCls:_t,iconCls:tn,tableFilterDropdownWidth:pn,tableFilterDropdownSearchWidth:un,paddingXXS:Wn,paddingXS:jn,colorText:zn,lineWidth:fi,lineType:$n,tableBorderColor:ci,tableHeaderIconColor:Ri,fontSizeSM:Oi,tablePaddingHorizontal:Di,borderRadius:ur,motionDurationSlow:ki,colorTextDescription:Sr,colorPrimary:mr,tableHeaderFilterActiveBg:br,colorTextDisabled:lo,tableFilterDropdownBg:Po,tableFilterDropdownHeight:Mr,controlItemBgHover:Wr,controlItemBgActive:Wo,boxShadowSecondary:Ar,filterDropdownMenuBg:_r}=st,Lr=`${_t}-dropdown`,nr=`${St}-filter-dropdown`,wr=`${_t}-tree`,Qr=`${fi}px ${$n} ${ci}`;return[{[`${St}-wrapper`]:{[`${St}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${St}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Wn,marginInline:`${Wn}px ${-Di/2}px`,padding:`0 ${Wn}px`,color:Ri,fontSize:Oi,borderRadius:ur,cursor:"pointer",transition:`all ${ki}`,"&:hover":{color:Sr,background:br},"&.active":{color:mr}}}},{[`${_t}-dropdown`]:{[nr]:Object.assign(Object.assign({},(0,ws.Wf)(st)),{minWidth:pn,backgroundColor:Po,borderRadius:ur,boxShadow:Ar,overflow:"hidden",[`${Lr}-menu`]:{maxHeight:Mr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_r,"&:empty::after":{display:"block",padding:`${jn}px 0`,color:lo,fontSize:Oi,textAlign:"center",content:'"Not Found"'}},[`${nr}-tree`]:{paddingBlock:`${jn}px 0`,paddingInline:jn,[wr]:{padding:0},[`${wr}-treenode ${wr}-node-content-wrapper:hover`]:{backgroundColor:Wr},[`${wr}-treenode-checkbox-checked ${wr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Wo}}},[`${nr}-search`]:{padding:jn,borderBottom:Qr,"&-input":{input:{minWidth:un},[tn]:{color:lo}}},[`${nr}-checkall`]:{width:"100%",marginBottom:Wn,marginInlineStart:Wn},[`${nr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${jn-fi}px ${jn}px`,overflow:"hidden",borderTop:Qr}})}},{[`${_t}-dropdown ${nr}, ${nr}-submenu`]:{[`${_t}-checkbox-wrapper + span`]:{paddingInlineStart:jn,color:zn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},zi=st=>{const{componentCls:St,lineWidth:_t,colorSplit:tn,motionDurationSlow:pn,zIndexTableFixed:un,tableBg:Wn,zIndexTableSticky:jn}=st,zn=tn;return{[`${St}-wrapper`]:{[`
|
|
|
${St}-cell-fix-left,
|
|
|
${St}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:un,background:Wn},[`
|
|
|
${St}-cell-fix-left-first::after,
|
|
|
${St}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-_t,width:30,transform:"translateX(100%)",transition:`box-shadow ${pn}`,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:-_t,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${pn}`,content:'""',pointerEvents:"none"},[`${St}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:jn+1,width:30,transition:`box-shadow ${pn}`,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 ${zn}`}},[`
|
|
|
${St}-cell-fix-left-first::after,
|
|
|
${St}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${zn}`},[`${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 ${zn}`}},[`
|
|
|
${St}-cell-fix-right-first::after,
|
|
|
${St}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${zn}`}}}}},dr=st=>{const{componentCls:St,antCls:_t}=st;return{[`${St}-wrapper`]:{[`${St}-pagination${_t}-pagination`]:{margin:`${st.margin}px 0`},[`${St}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:st.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ji=st=>{const{componentCls:St,tableRadius:_t}=st;return{[`${St}-wrapper`]:{[St]:{[`${St}-title, ${St}-header`]:{borderRadius:`${_t}px ${_t}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:_t,borderStartEndRadius:_t,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:_t},"> *:last-child":{borderStartEndRadius:_t}}},"&-footer":{borderRadius:`0 0 ${_t}px ${_t}px`}}}}},no=st=>{const{componentCls:St}=st;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"}}}}},ao=st=>{const{componentCls:St,antCls:_t,iconCls:tn,fontSizeIcon:pn,padding:un,paddingXS:Wn,tableHeaderIconColor:jn,tableHeaderIconColorHover:zn,tableSelectionColumnWidth:fi}=st;return{[`${St}-wrapper`]:{[`${St}-selection-col`]:{width:fi,[`&${St}-selection-col-with-dropdown`]:{width:fi+pn+un/4}},[`${St}-bordered ${St}-selection-col`]:{width:fi+Wn*2,[`&${St}-selection-col-with-dropdown`]:{width:fi+pn+un/4+Wn*2}},[`
|
|
|
table tr th${St}-selection-column,
|
|
|
table tr td${St}-selection-column
|
|
|
`]:{paddingInlineEnd:st.paddingXS,paddingInlineStart:st.paddingXS,textAlign:"center",[`${_t}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${St}-selection-column${St}-cell-fix-left`]:{zIndex:st.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 ${st.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${st.tablePaddingHorizontal/4}px`,[tn]:{color:jn,fontSize:pn,verticalAlign:"baseline","&:hover":{color:zn}}}}}},io=st=>{const{componentCls:St}=st,_t=(tn,pn,un,Wn)=>({[`${St}${St}-${tn}`]:{fontSize:Wn,[`
|
|
|
${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:`${pn}px ${un}px`},[`${St}-filter-trigger`]:{marginInlineEnd:`-${un/2}px`},[`${St}-expanded-row-fixed`]:{margin:`-${pn}px -${un}px`},[`${St}-tbody`]:{[`${St}-wrapper:only-child ${St}`]:{marginBlock:`-${pn}px`,marginInline:`${st.tableExpandColumnWidth-un}px -${un}px`}},[`${St}-selection-column`]:{paddingInlineStart:`${un/4}px`}}});return{[`${St}-wrapper`]:Object.assign(Object.assign({},_t("middle",st.tablePaddingVerticalMiddle,st.tablePaddingHorizontalMiddle,st.tableFontSizeMiddle)),_t("small",st.tablePaddingVerticalSmall,st.tablePaddingHorizontalSmall,st.tableFontSizeSmall))}},aa=st=>{const{componentCls:St,marginXXS:_t,fontSizeIcon:tn,tableHeaderIconColor:pn,tableHeaderIconColorHover:un}=st;return{[`${St}-wrapper`]:{[`${St}-thead th${St}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${st.motionDurationSlow}`,"&:hover":{background:st.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:st.colorPrimary},[`
|
|
|
&${St}-cell-fix-left:hover,
|
|
|
&${St}-cell-fix-right:hover
|
|
|
`]:{background:st.tableFixedHeaderSortActiveBg}},[`${St}-thead th${St}-column-sort`]:{background:st.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${St}-column-sort`]:{background:st.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:_t,color:pn,fontSize:0,transition:`color ${st.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:tn,"&.active":{color:st.colorPrimary}},[`${St}-column-sorter-up + ${St}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${St}-column-sorters:hover ${St}-column-sorter`]:{color:un}}}},ma=st=>{const{componentCls:St,opacityLoading:_t,tableScrollThumbBg:tn,tableScrollThumbBgHover:pn,tableScrollThumbSize:un,tableScrollBg:Wn,zIndexTableSticky:jn,stickyScrollBarBorderRadius:zn}=st,fi=`${st.lineWidth}px ${st.lineType} ${st.tableBorderColor}`;return{[`${St}-wrapper`]:{[`${St}-sticky`]:{"&-holder":{position:"sticky",zIndex:jn,background:st.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${un}px !important`,zIndex:jn,display:"flex",alignItems:"center",background:Wn,borderTop:fi,opacity:_t,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:un,backgroundColor:tn,borderRadius:zn,transition:`all ${st.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:pn}}}}}}},Wa=st=>{const{componentCls:St,lineWidth:_t,tableBorderColor:tn}=st,pn=`${_t}px ${st.lineType} ${tn}`;return{[`${St}-wrapper`]:{[`${St}-summary`]:{position:"relative",zIndex:st.zIndexTableFixed,background:st.tableBg,"> tr":{"> th, > td":{borderBottom:pn}}},[`div${St}-summary`]:{boxShadow:`0 -${_t}px 0 ${tn}`}}}},vs=st=>{const{componentCls:St}=st,_t=`${st.lineWidth}px ${st.lineType} ${st.tableBorderColor}`,tn=`${St}-expanded-row-cell`;return{[`${St}-wrapper`]:{[`${St}-tbody-virtual`]:{[`${St}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${St}-cell`]:{borderBottom:_t},[`${St}-expanded-row`]:{[`${tn}${tn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${st.lineWidth}px)`,borderInlineEnd:"none"}}},[`${St}-bordered`]:{[`${St}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:_t,position:"absolute"},[`${St}-cell`]:{borderInlineEnd:_t,[`&${St}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-st.lineWidth,borderInlineStart:_t}}}}}}};const La=st=>{const{componentCls:St,fontWeightStrong:_t,tablePaddingVertical:tn,tablePaddingHorizontal:pn,lineWidth:un,lineType:Wn,tableBorderColor:jn,tableFontSize:zn,tableBg:fi,tableRadius:$n,tableHeaderTextColor:ci,motionDurationMid:Ri,tableHeaderBg:Oi,tableHeaderCellSplitColor:Di,tableRowHoverBg:ur,tableSelectedRowBg:ki,tableSelectedRowHoverBg:Sr,tableFooterTextColor:mr,tableFooterBg:br,paddingContentVerticalLG:lo}=st,Po=`${un}px ${Wn} ${jn}`;return{[`${St}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ws.dF)()),{[St]:Object.assign(Object.assign({},(0,ws.Wf)(st)),{fontSize:zn,background:fi,borderRadius:`${$n}px ${$n}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${$n}px ${$n}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:`${lo}px ${pn}px`,overflowWrap:"break-word"},[`${St}-title`]:{padding:`${tn}px ${pn}px`},[`${St}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:ci,fontWeight:_t,textAlign:"start",background:Oi,borderBottom:Po,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:Di,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:Po,[`
|
|
|
> ${St}-wrapper:only-child,
|
|
|
> ${St}-expanded-row-fixed > ${St}-wrapper:only-child
|
|
|
`]:{[St]:{marginBlock:`-${tn}px`,marginInline:`${st.tableExpandColumnWidth-pn}px -${pn}px`,[`${St}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:ci,fontWeight:_t,textAlign:"start",background:Oi,borderBottom:Po,transition:`background ${Ri} ease`},[`
|
|
|
&${St}-row:hover > th,
|
|
|
&${St}-row:hover > td,
|
|
|
> th${St}-cell-row-hover,
|
|
|
> td${St}-cell-row-hover
|
|
|
`]:{background:ur},[`&${St}-row-selected`]:{"> th, > td":{background:ki},"&:hover > th, &:hover > td":{background:Sr}}}},[`${St}-footer`]:{padding:`${tn}px ${pn}px`,color:mr,background:br}})}};var wa=(0,pa.Z)("Table",st=>{const{colorTextHeading:St,colorSplit:_t,colorIcon:tn,colorIconHover:pn,opacityLoading:un,colorBgContainer:Wn,controlInteractiveSize:jn,headerBg:zn,headerColor:fi,headerSortActiveBg:$n,headerSortHoverBg:ci,bodySortBg:Ri,rowHoverBg:Oi,rowSelectedBg:Di,rowSelectedHoverBg:ur,rowExpandedBg:ki,cellPaddingBlock:Sr,cellPaddingInline:mr,cellPaddingBlockMD:br,cellPaddingInlineMD:lo,cellPaddingBlockSM:Po,cellPaddingInlineSM:Mr,borderColor:Wr,footerBg:Wo,footerColor:Ar,headerBorderRadius:_r,cellFontSize:Lr,cellFontSizeMD:nr,cellFontSizeSM:wr,headerSplitColor:Qr,fixedHeaderSortActiveBg:wo,headerFilterHoverBg:Eo,filterDropdownBg:Cr,expandIconBg:Zo,selectionColumnWidth:Jo,stickyScrollBarBg:ea}=st,qo=new Nl.C(tn),qa=new Nl.C(pn),ha=2,zo=(0,ol.TS)(st,{tableFontSize:Lr,tableBg:Wn,tableRadius:_r,tablePaddingVertical:Sr,tablePaddingHorizontal:mr,tablePaddingVerticalMiddle:br,tablePaddingHorizontalMiddle:lo,tablePaddingVerticalSmall:Po,tablePaddingHorizontalSmall:Mr,tableBorderColor:Wr,tableHeaderTextColor:fi,tableHeaderBg:zn,tableFooterTextColor:Ar,tableFooterBg:Wo,tableHeaderCellSplitColor:Qr,tableHeaderSortBg:$n,tableHeaderSortHoverBg:ci,tableHeaderIconColor:qo.clone().setAlpha(qo.getAlpha()*un).toRgbString(),tableHeaderIconColorHover:qa.clone().setAlpha(qa.getAlpha()*un).toRgbString(),tableBodySortBg:Ri,tableFixedHeaderSortActiveBg:wo,tableHeaderFilterActiveBg:Eo,tableFilterDropdownBg:Cr,tableRowHoverBg:Oi,tableSelectedRowBg:Di,tableSelectedRowHoverBg:ur,zIndexTableFixed:ha,zIndexTableSticky:ha+1,tableFontSizeMiddle:nr,tableFontSizeSmall:wr,tableSelectionColumnWidth:Jo,tableExpandIconBg:Zo,tableExpandColumnWidth:jn+2*st.padding,tableExpandedRowBg:ki,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ea,tableScrollThumbBgHover:St,tableScrollBg:_t});return[La(zo),dr(zo),Wa(zo),aa(zo),_i(zo),rt(zo),ji(zo),ai(zo),Wa(zo),Bn(zo),ao(zo),zi(zo),ma(zo),rn(zo),io(zo),no(zo),vs(zo)]},st=>{const{colorFillAlter:St,colorBgContainer:_t,colorTextHeading:tn,colorFillSecondary:pn,colorFillContent:un,controlItemBgActive:Wn,controlItemBgActiveHover:jn,padding:zn,paddingSM:fi,paddingXS:$n,colorBorderSecondary:ci,borderRadiusLG:Ri,fontSize:Oi,controlHeight:Di,colorTextPlaceholder:ur}=st,ki=new Nl.C(pn).onBackground(_t).toHexShortString(),Sr=new Nl.C(un).onBackground(_t).toHexShortString(),mr=new Nl.C(St).onBackground(_t).toHexShortString();return{headerBg:mr,headerColor:tn,headerSortActiveBg:ki,headerSortHoverBg:Sr,bodySortBg:mr,rowHoverBg:mr,rowSelectedBg:Wn,rowSelectedHoverBg:jn,rowExpandedBg:St,cellPaddingBlock:zn,cellPaddingInline:zn,cellPaddingBlockMD:fi,cellPaddingInlineMD:$n,cellPaddingBlockSM:$n,cellPaddingInlineSM:$n,borderColor:ci,headerBorderRadius:Ri,footerBg:mr,footerColor:tn,cellFontSize:Oi,cellFontSizeMD:Oi,cellFontSizeSM:Oi,headerSplitColor:ci,fixedHeaderSortActiveBg:ki,headerFilterHoverBg:un,filterDropdownMenuBg:_t,filterDropdownBg:_t,expandIconBg:_t,selectionColumnWidth:Di,stickyScrollBarBg:ur,stickyScrollBarBorderRadius:100}});const Ta=[],us=(st,St)=>{const{prefixCls:_t,className:tn,rootClassName:pn,style:un,size:Wn,bordered:jn,dropdownPrefixCls:zn,dataSource:fi,pagination:$n,rowSelection:ci,rowKey:Ri="key",rowClassName:Oi,columns:Di,children:ur,childrenColumnName:ki,onChange:Sr,getPopupContainer:mr,loading:br,expandIcon:lo,expandable:Po,expandedRowRender:Mr,expandIconColumnIndex:Wr,indentSize:Wo,scroll:Ar,sortDirections:_r,locale:Lr,showSorterTooltip:nr=!0,virtual:wr}=st,Qr=be.useMemo(()=>Di||Sn(ur),[Di,ur]),wo=be.useMemo(()=>Qr.some(Ra=>Ra.responsive),[Qr]),Eo=(0,oi.Z)(wo),Cr=be.useMemo(()=>{const Ra=new Set(Object.keys(Eo).filter(ds=>Eo[ds]));return Qr.filter(ds=>!ds.responsive||ds.responsive.some(el=>Ra.has(el)))},[Qr,Eo]),Zo=(0,Ur.Z)(st,["className","style","columns"]),{locale:Jo=Ro.Z,direction:ea,table:qo,renderEmpty:qa,getPrefixCls:ha,getPopupContainer:zo}=be.useContext(lr.E_),po=(0,Br.Z)(Wn),Lo=Object.assign(Object.assign({},Jo.Table),Lr),Xa=fi||Ta,Ia=ha("table",_t),as=ha("dropdown",zn),ko=Object.assign({childrenColumnName:ki,expandIconColumnIndex:Wr},Po),{childrenColumnName:So="children"}=ko,jo=be.useMemo(()=>Xa.some(Ra=>Ra==null?void 0:Ra[So])?"nest":Mr||Po&&Po.expandedRowRender?"row":null,[Xa]),ho={body:be.useRef()},Yr=be.useMemo(()=>typeof Ri=="function"?Ri:Ra=>Ra==null?void 0:Ra[Ri],[Ri]),[Hi]=Uu(Xa,So,Yr),kr={},Vo=function(Ra,ds){let el=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var xs,za,tl;const kl=Object.assign(Object.assign({},kr),Ra);el&&((xs=kr.resetPagination)===null||xs===void 0||xs.call(kr),!((za=kl.pagination)===null||za===void 0)&&za.current&&(kl.pagination.current=1),$n&&$n.onChange&&$n.onChange(1,(tl=kl.pagination)===null||tl===void 0?void 0:tl.pageSize)),Ar&&Ar.scrollToFirstRowOnChange!==!1&&ho.body.current&&(0,Io.Z)(0,{getContainer:()=>ho.body.current}),Sr==null||Sr(kl.pagination,kl.filters,kl.sorter,{currentDataSource:Ms(Fc(Xa,kl.sorterStates,So),kl.filterStates),action:ds})},sa=(Ra,ds)=>{Vo({sorter:Ra,sorterStates:ds},"sort",!1)},[al,Ws,Pl,Na]=oh({prefixCls:Ia,mergedColumns:Cr,onSorterChange:sa,sortDirections:_r||["ascend","descend"],tableLocale:Lo,showSorterTooltip:nr}),_a=be.useMemo(()=>Fc(Xa,Ws,So),[Xa,Ws]);kr.sorter=Na(),kr.sorterStates=Ws;const Fo=(Ra,ds)=>{Vo({filters:Ra,filterStates:ds},"filter",!0)},[Ys,wl,Za]=uc({prefixCls:Ia,locale:Lo,dropdownPrefixCls:as,mergedColumns:Cr,onFilterChange:Fo,getPopupContainer:mr||zo}),es=Ms(_a,wl);kr.filters=Za,kr.filterStates=wl;const ss=be.useMemo(()=>{const Ra={};return Object.keys(Za).forEach(ds=>{Za[ds]!==null&&(Ra[ds]=Za[ds])}),Object.assign(Object.assign({},Pl),{filters:Ra})},[Pl,Za]),[bs]=Rs(ss),Us=(Ra,ds)=>{Vo({pagination:Object.assign(Object.assign({},kr.pagination),{current:Ra,pageSize:ds})},"paginate")},[va,cs]=Au(es.length,Us,$n);kr.pagination=$n===!1?{}:Bl(va,$n),kr.resetPagination=cs;const qs=be.useMemo(()=>{if($n===!1||!va.pageSize)return es;const{current:Ra=1,total:ds,pageSize:el=Vl}=va;return es.length<ds?es.length>el?es.slice((Ra-1)*el,Ra*el):es:es.slice((Ra-1)*el,Ra*el)},[!!$n,es,va&&va.current,va&&va.pageSize,va&&va.total]),[Ja,To]=au({prefixCls:Ia,data:es,pageData:qs,getRowKey:Yr,getRecordByKey:Hi,expandType:jo,childrenColumnName:So,locale:Lo,getPopupContainer:mr||zo},ci),Ds=(Ra,ds,el)=>{let xs;return typeof Oi=="function"?xs=Qe()(Oi(Ra,ds,el)):xs=Qe()(Oi),Qe()({[`${Ia}-row-selected`]:To.has(Yr(Ra,ds))},xs)};ko.__PARENT_RENDER_ICON__=ko.expandIcon,ko.expandIcon=ko.expandIcon||lo||Sa(Lo),jo==="nest"&&ko.expandIconColumnIndex===void 0?ko.expandIconColumnIndex=ci?1:0:ko.expandIconColumnIndex>0&&ci&&(ko.expandIconColumnIndex-=1),typeof ko.indentSize!="number"&&(ko.indentSize=typeof Wo=="number"?Wo:15);const Xs=be.useCallback(Ra=>bs(Ja(Ys(al(Ra)))),[al,Ys,Ja]);let Fu,su;if($n!==!1&&(va!=null&&va.total)){let Ra;va.size?Ra=va.size:Ra=po==="small"||po==="middle"?"small":void 0;const ds=za=>be.createElement(Xo.Z,Object.assign({},va,{className:Qe()(`${Ia}-pagination ${Ia}-pagination-${za}`,va.className),size:Ra})),el=ea==="rtl"?"left":"right",{position:xs}=va;if(xs!==null&&Array.isArray(xs)){const za=xs.find(Mu=>Mu.includes("top")),tl=xs.find(Mu=>Mu.includes("bottom")),kl=xs.every(Mu=>`${Mu}`=="none");!za&&!tl&&!kl&&(su=ds(el)),za&&(Fu=ds(za.toLowerCase().replace("top",""))),tl&&(su=ds(tl.toLowerCase().replace("bottom","")))}else su=ds(el)}let ts;typeof br=="boolean"?ts={spinning:br}:typeof br=="object"&&(ts=Object.assign({spinning:!0},br));const[Cl,Cs]=wa(Ia),[,Ss]=(0,na.Z)(),mu=Qe()(`${Ia}-wrapper`,qo==null?void 0:qo.className,{[`${Ia}-wrapper-rtl`]:ea==="rtl"},tn,pn,Cs),fc=Object.assign(Object.assign({},qo==null?void 0:qo.style),un),Yl=Lr&&Lr.emptyText||(qa==null?void 0:qa("Table"))||be.createElement($i.Z,{componentName:"Table"}),Ju=wr?gl:No,Qu={},lu=be.useMemo(()=>{const{fontSize:Ra,lineHeight:ds,padding:el,paddingXS:xs,paddingSM:za}=Ss,tl=Math.floor(Ra*ds);switch(po){case"large":return el*2+tl;case"small":return xs*2+tl;default:return za*2+tl}},[Ss,po]);return wr&&(Qu.listItemHeight=lu),Cl(be.createElement("div",{ref:St,className:mu,style:fc},be.createElement(ya.Z,Object.assign({spinning:!1},ts),Fu,be.createElement(Ju,Object.assign({},Qu,Zo,{columns:Cr,direction:ea,expandable:ko,prefixCls:Ia,className:Qe()({[`${Ia}-middle`]:po==="middle",[`${Ia}-small`]:po==="small",[`${Ia}-bordered`]:jn,[`${Ia}-empty`]:Xa.length===0}),data:qs,rowKey:Yr,rowClassName:Ds,emptyText:Yl,internalHooks:Ie,internalRefs:ho,transformColumns:Xs})),su)))};var ys=be.forwardRef(us);const $a=(st,St)=>{const _t=be.useRef(0);return _t.current+=1,be.createElement(ys,Object.assign({},st,{ref:St,_renderTimes:_t.current}))},Oa=be.forwardRef($a);Oa.SELECTION_COLUMN=Ts,Oa.EXPAND_COLUMN=ge,Oa.SELECTION_ALL=Os,Oa.SELECTION_INVERT=ms,Oa.SELECTION_NONE=Es,Oa.Column=Er,Oa.ColumnGroup=bo,Oa.Summary=pt;var Hs=Oa,dl=Hs},86914:function(fn,jt,he){"use strict";he.d(jt,{default:function(){return at}});var ge=he(99581),Ie=he(26390),Ke=he(43971),ot=he(58358),He=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,ct=he(88853),Xe=function(Mt,Yt){return it.createElement(ct.Z,(0,He.Z)({},Mt,{ref:Yt,icon:yt}))},et=it.forwardRef(Xe),Je=et,Ue=he(92310),Ee=he.n(Ue),ee=he(35654),te=he(71430),ue=he(36355),oe=he(44757),de=he(62892),ve=he(20648);const xe=4;function Ae(Ze){const{dropPosition:Mt,dropLevelOffset:Yt,prefixCls:Vt,indent:Ct,direction:Nt="ltr"}=Ze,sn=Nt==="ltr"?"left":"right",Nn=Nt==="ltr"?"right":"left",hn={[sn]:-Yt*Ct+xe,[Nn]:0};switch(Mt){case-1:hn.top=-3;break;case 1:hn.bottom=-3;break;default:hn.bottom=-3,hn[sn]=Ct+xe;break}return it.createElement("div",{style:hn,className:`${Vt}-drop-indicator`})}var Pe=he(48610),Le=it.forwardRef((Ze,Mt)=>{const{getPrefixCls:Yt,direction:Vt,virtual:Ct,tree:Nt}=it.useContext(ue.E_),{prefixCls:sn,className:Nn,showIcon:hn=!1,showLine:Xn,switcherIcon:Ft,blockNode:Un=!1,children:Kn,checkable:ti=!1,selectable:Fn=!0,draggable:Zt,motion:Xt,style:mt}=Ze,tt=Yt("tree",sn),Wt=Yt(),Lt=Xt!=null?Xt:Object.assign(Object.assign({},(0,de.Z)(Wt)),{motionAppear:!1}),pt=Object.assign(Object.assign({},Ze),{checkable:ti,selectable:Fn,showIcon:hn,motion:Lt,blockNode:Un,showLine:!!Xn,dropIndicatorRender:Ae}),[nt,Oe]=(0,ve.ZP)(tt),we=it.useMemo(()=>{if(!Zt)return!1;let ke={};switch(typeof Zt){case"function":ke.nodeDraggable=Zt;break;case"object":ke=Object.assign({},Zt);break;default:break}return ke.icon!==!1&&(ke.icon=ke.icon||it.createElement(oe.Z,null)),ke},[Zt]),ye=ke=>it.createElement(Pe.Z,{prefixCls:tt,switcherIcon:Ft,treeNodeProps:ke,showLine:Xn});return nt(it.createElement(ge.Z,Object.assign({itemHeight:20,ref:Mt,virtual:Ct},pt,{style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),mt),prefixCls:tt,className:Ee()({[`${tt}-icon-hide`]:!hn,[`${tt}-block-node`]:Un,[`${tt}-unselectable`]:!Fn,[`${tt}-rtl`]:Vt==="rtl"},Nt==null?void 0:Nt.className,Nn,Oe),direction:Vt,checkable:ti&&it.createElement("span",{className:`${tt}-checkbox-inner`}),selectable:Fn,switcherIcon:ye,draggable:we}),Kn))}),Re;(function(Ze){Ze[Ze.None=0]="None",Ze[Ze.Start=1]="Start",Ze[Ze.End=2]="End"})(Re||(Re={}));function je(Ze,Mt){function Yt(Vt){const{key:Ct,children:Nt}=Vt;Mt(Ct,Vt)!==!1&&je(Nt||[],Mt)}Ze.forEach(Yt)}function Ge(Ze){let{treeData:Mt,expandedKeys:Yt,startKey:Vt,endKey:Ct}=Ze;const Nt=[];let sn=Re.None;if(Vt&&Vt===Ct)return[Vt];if(!Vt||!Ct)return[];function Nn(hn){return hn===Vt||hn===Ct}return je(Mt,hn=>{if(sn===Re.End)return!1;if(Nn(hn)){if(Nt.push(hn),sn===Re.None)sn=Re.Start;else if(sn===Re.Start)return sn=Re.End,!1}else sn===Re.Start&&Nt.push(hn);return Yt.includes(hn)}),Nt}function We(Ze,Mt){const Yt=(0,Ie.Z)(Mt),Vt=[];return je(Ze,(Ct,Nt)=>{const sn=Yt.indexOf(Ct);return sn!==-1&&(Vt.push(Nt),Yt.splice(sn,1)),!!Yt.length}),Vt}var bt=function(Ze,Mt){var Yt={};for(var Vt in Ze)Object.prototype.hasOwnProperty.call(Ze,Vt)&&Mt.indexOf(Vt)<0&&(Yt[Vt]=Ze[Vt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Vt=Object.getOwnPropertySymbols(Ze);Ct<Vt.length;Ct++)Mt.indexOf(Vt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Vt[Ct])&&(Yt[Vt[Ct]]=Ze[Vt[Ct]]);return Yt};function Qe(Ze){const{isLeaf:Mt,expanded:Yt}=Ze;return Mt?it.createElement(Ke.Z,null):Yt?it.createElement(ot.Z,null):it.createElement(Je,null)}function Dt(Ze){let{treeData:Mt,children:Yt}=Ze;return Mt||(0,te.zn)(Yt)}const vt=(Ze,Mt)=>{var{defaultExpandAll:Yt,defaultExpandParent:Vt,defaultExpandedKeys:Ct}=Ze,Nt=bt(Ze,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const sn=it.useRef(),Nn=it.useRef(),hn=()=>{const{keyEntities:we}=(0,te.I8)(Dt(Nt));let ye;return Yt?ye=Object.keys(we):Vt?ye=(0,ee.r7)(Nt.expandedKeys||Ct||[],we):ye=Nt.expandedKeys||Ct,ye},[Xn,Ft]=it.useState(Nt.selectedKeys||Nt.defaultSelectedKeys||[]),[Un,Kn]=it.useState(()=>hn());it.useEffect(()=>{"selectedKeys"in Nt&&Ft(Nt.selectedKeys)},[Nt.selectedKeys]),it.useEffect(()=>{"expandedKeys"in Nt&&Kn(Nt.expandedKeys)},[Nt.expandedKeys]);const ti=(we,ye)=>{var ke;return"expandedKeys"in Nt||Kn(we),(ke=Nt.onExpand)===null||ke===void 0?void 0:ke.call(Nt,we,ye)},Fn=(we,ye)=>{var ke;const{multiple:Ve}=Nt,{node:Be,nativeEvent:dt}=ye,{key:on=""}=Be,mn=Dt(Nt),Et=Object.assign(Object.assign({},ye),{selected:!0}),Ot=(dt==null?void 0:dt.ctrlKey)||(dt==null?void 0:dt.metaKey),yn=dt==null?void 0:dt.shiftKey;let Tn;Ve&&Ot?(Tn=we,sn.current=on,Nn.current=Tn,Et.selectedNodes=We(mn,Tn)):Ve&&yn?(Tn=Array.from(new Set([].concat((0,Ie.Z)(Nn.current||[]),(0,Ie.Z)(Ge({treeData:mn,expandedKeys:Un,startKey:on,endKey:sn.current}))))),Et.selectedNodes=We(mn,Tn)):(Tn=[on],sn.current=on,Nn.current=Tn,Et.selectedNodes=We(mn,Tn)),(ke=Nt.onSelect)===null||ke===void 0||ke.call(Nt,Tn,Et),"selectedKeys"in Nt||Ft(Tn)},{getPrefixCls:Zt,direction:Xt}=it.useContext(ue.E_),{prefixCls:mt,className:tt,showIcon:Wt=!0,expandAction:Lt="click"}=Nt,pt=bt(Nt,["prefixCls","className","showIcon","expandAction"]),nt=Zt("tree",mt),Oe=Ee()(`${nt}-directory`,{[`${nt}-directory-rtl`]:Xt==="rtl"},tt);return it.createElement(Le,Object.assign({icon:Qe,ref:Mt,blockNode:!0},pt,{showIcon:Wt,expandAction:Lt,prefixCls:nt,className:Oe,expandedKeys:Un,selectedKeys:Xn,onSelect:Fn,onExpand:ti}))};var Rt=it.forwardRef(vt);const Jt=Le;Jt.DirectoryTree=Rt,Jt.TreeNode=ge.O;var at=Jt},20648:function(fn,jt,he){"use strict";he.d(jt,{TM:function(){return Ue},Yk:function(){return Je}});var ge=he(9792),Ie=he(98447),Ke=he(17313),ot=he(8378),He=he(37613),it=he(83116);const be=new ge.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}`}}}),ct=(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:'""'}}}),Xe=(Ee,ee)=>{const{treeCls:te,treeNodeCls:ue,treeNodePadding:oe,titleHeight:de,nodeSelectedBg:ve,nodeHoverBg:xe}=ee,Ae=ee.paddingXS;return{[te]:Object.assign(Object.assign({},(0,Ke.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,Ke.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:oe,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 ${oe}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,Ke.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:-oe,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:xe},[`&${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"},ct(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:-oe,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`}}}}})}},et=Ee=>{const{treeCls:ee,treeNodeCls:te,treeNodePadding:ue,directoryNodeSelectedBg:oe,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:oe},[`${ee}-switcher`]:{color:de},[`${ee}-node-content-wrapper`]:{color:de,background:"transparent"}}}}}},Je=(Ee,ee)=>{const te=`.${Ee}`,ue=`${te}-treenode`,oe=ee.paddingXS/2,de=(0,He.TS)(ee,{treeCls:te,treeNodeCls:ue,treeNodePadding:oe});return[Xe(Ee,de),et(de)]},Ue=Ee=>{const{controlHeightSM:ee}=Ee;return{titleHeight:ee,nodeHoverBg:Ee.controlItemBgHover,nodeSelectedBg:Ee.controlItemBgActive}};jt.ZP=(0,it.Z)("Tree",(Ee,ee)=>{let{prefixCls:te}=ee;return[{[Ee.componentCls]:(0,Ie.C2)(`${te}-checkbox`,Ee)},Je(te,Ee),(0,ot.Z)(Ee)]},Ee=>{const{colorTextLightSolid:ee,colorPrimary:te}=Ee;return Object.assign(Object.assign({},Ue(Ee)),{directoryNodeSelectedColor:ee,directoryNodeSelectedBg:te})})},48610:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ue}});var ge=he(5891),Ie=he(59301),Ke={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"},ot=Ke,He=he(88853),it=function(de,ve){return Ie.createElement(He.Z,(0,ge.Z)({},de,{ref:ve,icon:ot}))},be=Ie.forwardRef(it),yt=be,ct=he(43971),Xe=he(50023),et=he(77042),Je=he(5527),Ue=he(92310),Ee=he.n(Ue),ee=he(92343),ue=oe=>{const{prefixCls:de,switcherIcon:ve,treeNodeProps:xe,showLine:Ae}=oe,{isLeaf:Pe,expanded:Ne,loading:Le}=xe;if(Le)return Ie.createElement(Xe.Z,{className:`${de}-switcher-loading-icon`});let Re;if(Ae&&typeof Ae=="object"&&(Re=Ae.showLeafIcon),Pe){if(!Ae)return null;if(typeof Re!="boolean"&&Re){const We=typeof Re=="function"?Re(xe):Re,bt=`${de}-switcher-line-custom-icon`;return(0,ee.l$)(We)?(0,ee.Tm)(We,{className:Ee()(We.props.className||"",bt)}):We}return Re?Ie.createElement(ct.Z,{className:`${de}-switcher-line-icon`}):Ie.createElement("span",{className:`${de}-switcher-leaf-line`})}const je=`${de}-switcher-icon`,Ge=typeof ve=="function"?ve(xe):ve;return(0,ee.l$)(Ge)?(0,ee.Tm)(Ge,{className:Ee()(Ge.props.className||"",je)}):Ge!==void 0?Ge:Ae?Ne?Ie.createElement(et.Z,{className:`${de}-switcher-line-icon`}):Ie.createElement(Je.Z,{className:`${de}-switcher-line-icon`}):Ie.createElement(yt,{className:je})}},24645:function(fn,jt,he){"use strict";he.d(jt,{default:function(){return Cn}});var ge=he(59301),Ie=he(26390),Ke=he(92310),ot=he.n(Ke),He=he(5891),it=he(79545),be=he(68550),yt=he(17928),ct=he(7711),Xe=he(80962),et=he(19149),Je=he(50204),Ue=he(80665),Ee=he(20959),ee=he(36994);function te($t,vn){var En="cannot ".concat($t.method," ").concat($t.action," ").concat(vn.status,"'"),Pn=new Error(En);return Pn.status=vn.status,Pn.method=$t.method,Pn.url=$t.action,Pn}function ue($t){var vn=$t.responseText||$t.response;if(!vn)return vn;try{return JSON.parse(vn)}catch(En){return vn}}function oe($t){var vn=new XMLHttpRequest;$t.onProgress&&vn.upload&&(vn.upload.onprogress=function(Yn){Yn.total>0&&(Yn.percent=Yn.loaded/Yn.total*100),$t.onProgress(Yn)});var En=new FormData;$t.data&&Object.keys($t.data).forEach(function(Rn){var Yn=$t.data[Rn];if(Array.isArray(Yn)){Yn.forEach(function(Zn){En.append("".concat(Rn,"[]"),Zn)});return}En.append(Rn,Yn)}),$t.file instanceof Blob?En.append($t.filename,$t.file,$t.file.name):En.append($t.filename,$t.file),vn.onerror=function(Yn){$t.onError(Yn)},vn.onload=function(){return vn.status<200||vn.status>=300?$t.onError(te($t,vn),ue(vn)):$t.onSuccess(ue(vn),vn)},vn.open($t.method,$t.action,!0),$t.withCredentials&&"withCredentials"in vn&&(vn.withCredentials=!0);var Pn=$t.headers||{};return Pn["X-Requested-With"]!==null&&vn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Pn).forEach(function(Rn){Pn[Rn]!==null&&vn.setRequestHeader(Rn,Pn[Rn])}),vn.send(En),{abort:function(){vn.abort()}}}var de=+new Date,ve=0;function xe(){return"rc-upload-".concat(de,"-").concat(++ve)}var Ae=he(51395),Pe=function($t,vn){if($t&&vn){var En=Array.isArray(vn)?vn:vn.split(","),Pn=$t.name||"",Rn=$t.type||"",Yn=Rn.replace(/\/.*$/,"");return En.some(function(Zn){var ri=Zn.trim();if(/^\*(\/\*)?$/.test(Zn))return!0;if(ri.charAt(0)==="."){var Gn=Pn.toLowerCase(),di=ri.toLowerCase(),rr=[di];return(di===".jpg"||di===".jpeg")&&(rr=[".jpg",".jpeg"]),rr.some(function(Dr){return Gn.endsWith(Dr)})}return/\/\*$/.test(ri)?Yn===ri.replace(/\/.*$/,""):Rn===ri?!0:/^\w+$/.test(ri)?((0,Ae.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ri,"'.Skip for check.")),!0):!1})}return!0};function Ne($t,vn){var En=$t.createReader(),Pn=[];function Rn(){En.readEntries(function(Yn){var Zn=Array.prototype.slice.apply(Yn);Pn=Pn.concat(Zn);var ri=!Zn.length;ri?vn(Pn):Rn()})}Rn()}var Le=function(vn,En,Pn){var Rn=function Yn(Zn,ri){Zn&&(Zn.path=ri||"",Zn.isFile?Zn.file(function(Gn){Pn(Gn)&&(Zn.fullPath&&!Gn.webkitRelativePath&&(Object.defineProperties(Gn,{webkitRelativePath:{writable:!0}}),Gn.webkitRelativePath=Zn.fullPath.replace(/^\//,""),Object.defineProperties(Gn,{webkitRelativePath:{writable:!1}})),En([Gn]))}):Zn.isDirectory&&Ne(Zn,function(Gn){Gn.forEach(function(di){Yn(di,"".concat(ri).concat(Zn.name,"/"))})}))};vn.forEach(function(Yn){Rn(Yn.webkitGetAsEntry())})},Re=Le,je=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ge=function($t){(0,yt.Z)(En,$t);var vn=(0,ct.Z)(En);function En(){var Pn;(0,it.Z)(this,En);for(var Rn=arguments.length,Yn=new Array(Rn),Zn=0;Zn<Rn;Zn++)Yn[Zn]=arguments[Zn];return Pn=vn.call.apply(vn,[this].concat(Yn)),Pn.state={uid:xe()},Pn.reqs={},Pn.fileInput=void 0,Pn._isMounted=void 0,Pn.onChange=function(ri){var Gn=Pn.props,di=Gn.accept,rr=Gn.directory,Dr=ri.target.files,ar=(0,Ie.Z)(Dr).filter(function(qt){return!rr||Pe(qt,di)});Pn.uploadFiles(ar),Pn.reset()},Pn.onClick=function(ri){var Gn=Pn.fileInput;if(Gn){var di=ri.target,rr=Pn.props.onClick;if(di&&di.tagName==="BUTTON"){var Dr=Gn.parentNode;Dr.focus(),di.blur()}Gn.click(),rr&&rr(ri)}},Pn.onKeyDown=function(ri){ri.key==="Enter"&&Pn.onClick(ri)},Pn.onFileDrop=function(ri){var Gn=Pn.props.multiple;if(ri.preventDefault(),ri.type!=="dragover")if(Pn.props.directory)Re(Array.prototype.slice.call(ri.dataTransfer.items),Pn.uploadFiles,function(rr){return Pe(rr,Pn.props.accept)});else{var di=(0,Ie.Z)(ri.dataTransfer.files).filter(function(rr){return Pe(rr,Pn.props.accept)});Gn===!1&&(di=di.slice(0,1)),Pn.uploadFiles(di)}},Pn.uploadFiles=function(ri){var Gn=(0,Ie.Z)(ri),di=Gn.map(function(rr){return rr.uid=xe(),Pn.processFile(rr,Gn)});Promise.all(di).then(function(rr){var Dr=Pn.props.onBatchStart;Dr==null||Dr(rr.map(function(ar){var qt=ar.origin,Li=ar.parsedFile;return{file:qt,parsedFile:Li}})),rr.filter(function(ar){return ar.parsedFile!==null}).forEach(function(ar){Pn.post(ar)})})},Pn.processFile=function(){var ri=(0,Ee.Z)((0,Je.Z)().mark(function Gn(di,rr){var Dr,ar,qt,Li,Ji,Ti,bi,sr,Nr;return(0,Je.Z)().wrap(function(Zi){for(;;)switch(Zi.prev=Zi.next){case 0:if(Dr=Pn.props.beforeUpload,ar=di,!Dr){Zi.next=14;break}return Zi.prev=3,Zi.next=6,Dr(di,rr);case 6:ar=Zi.sent,Zi.next=12;break;case 9:Zi.prev=9,Zi.t0=Zi.catch(3),ar=!1;case 12:if(ar!==!1){Zi.next=14;break}return Zi.abrupt("return",{origin:di,parsedFile:null,action:null,data:null});case 14:if(qt=Pn.props.action,typeof qt!="function"){Zi.next=21;break}return Zi.next=18,qt(di);case 18:Li=Zi.sent,Zi.next=22;break;case 21:Li=qt;case 22:if(Ji=Pn.props.data,typeof Ji!="function"){Zi.next=29;break}return Zi.next=26,Ji(di);case 26:Ti=Zi.sent,Zi.next=30;break;case 29:Ti=Ji;case 30:return bi=((0,Ue.Z)(ar)==="object"||typeof ar=="string")&&ar?ar:di,bi instanceof File?sr=bi:sr=new File([bi],di.name,{type:di.type}),Nr=sr,Nr.uid=di.uid,Zi.abrupt("return",{origin:di,data:Ti,parsedFile:Nr,action:Li});case 35:case"end":return Zi.stop()}},Gn,null,[[3,9]])}));return function(Gn,di){return ri.apply(this,arguments)}}(),Pn.saveFileInput=function(ri){Pn.fileInput=ri},Pn}return(0,be.Z)(En,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Rn){var Yn=this,Zn=Rn.data,ri=Rn.origin,Gn=Rn.action,di=Rn.parsedFile;if(this._isMounted){var rr=this.props,Dr=rr.onStart,ar=rr.customRequest,qt=rr.name,Li=rr.headers,Ji=rr.withCredentials,Ti=rr.method,bi=ri.uid,sr=ar||oe,Nr={action:Gn,filename:qt,data:Zn,file:di,headers:Li,withCredentials:Ji,method:Ti||"post",onProgress:function(Zi){var Jr=Yn.props.onProgress;Jr==null||Jr(Zi,di)},onSuccess:function(Zi,Jr){var On=Yn.props.onSuccess;On==null||On(Zi,di,Jr),delete Yn.reqs[bi]},onError:function(Zi,Jr){var On=Yn.props.onError;On==null||On(Zi,Jr,di),delete Yn.reqs[bi]}};Dr(ri),this.reqs[bi]=sr(Nr)}}},{key:"reset",value:function(){this.setState({uid:xe()})}},{key:"abort",value:function(Rn){var Yn=this.reqs;if(Rn){var Zn=Rn.uid?Rn.uid:Rn;Yn[Zn]&&Yn[Zn].abort&&Yn[Zn].abort(),delete Yn[Zn]}else Object.keys(Yn).forEach(function(ri){Yn[ri]&&Yn[ri].abort&&Yn[ri].abort(),delete Yn[ri]})}},{key:"render",value:function(){var Rn=this.props,Yn=Rn.component,Zn=Rn.prefixCls,ri=Rn.className,Gn=Rn.disabled,di=Rn.id,rr=Rn.style,Dr=Rn.multiple,ar=Rn.accept,qt=Rn.capture,Li=Rn.children,Ji=Rn.directory,Ti=Rn.openFileDialogOnClick,bi=Rn.onMouseEnter,sr=Rn.onMouseLeave,Nr=(0,et.Z)(Rn,je),cr=ot()((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},Zn,!0),"".concat(Zn,"-disabled"),Gn),ri,ri)),Zi=Ji?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Jr=Gn?{}:{onClick:Ti?this.onClick:function(){},onKeyDown:Ti?this.onKeyDown:function(){},onMouseEnter:bi,onMouseLeave:sr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ge.createElement(Yn,(0,He.Z)({},Jr,{className:cr,role:"button",style:rr}),ge.createElement("input",(0,He.Z)({},(0,ee.Z)(Nr,{aria:!0,data:!0}),{id:di,disabled:Gn,type:"file",ref:this.saveFileInput,onClick:function(Ho){return Ho.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ar},Zi,{multiple:Dr,onChange:this.onChange},qt!=null?{capture:qt}:{})),Li)}}]),En}(ge.Component),We=Ge;function bt(){}var Qe=function($t){(0,yt.Z)(En,$t);var vn=(0,ct.Z)(En);function En(){var Pn;(0,it.Z)(this,En);for(var Rn=arguments.length,Yn=new Array(Rn),Zn=0;Zn<Rn;Zn++)Yn[Zn]=arguments[Zn];return Pn=vn.call.apply(vn,[this].concat(Yn)),Pn.uploader=void 0,Pn.saveUploader=function(ri){Pn.uploader=ri},Pn}return(0,be.Z)(En,[{key:"abort",value:function(Rn){this.uploader.abort(Rn)}},{key:"render",value:function(){return ge.createElement(We,(0,He.Z)({},this.props,{ref:this.saveUploader}))}}]),En}(ge.Component);Qe.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:bt,onError:bt,onSuccess:bt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Dt=Qe,vt=Dt,kt=he(35788),Rt=he(4676),Jt=he(36355),at=he(1684),Ze=he(9763),Mt=he(31724),Yt={icon:function(vn,En){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:En}},{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:vn}}]}},name:"file",theme:"twotone"},Vt=Yt,Ct=he(88853),Nt=function(vn,En){return ge.createElement(Ct.Z,(0,He.Z)({},vn,{ref:En,icon:Vt}))},sn=ge.forwardRef(Nt),Nn=sn,hn=he(50023),Xn={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"},Ft=Xn,Un=function(vn,En){return ge.createElement(Ct.Z,(0,He.Z)({},vn,{ref:En,icon:Ft}))},Kn=ge.forwardRef(Un),ti=Kn,Fn={icon:function(vn,En){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:vn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:En}},{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:En}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:En}},{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:vn}}]}},name:"picture",theme:"twotone"},Zt=Fn,Xt=function(vn,En){return ge.createElement(Ct.Z,(0,He.Z)({},vn,{ref:En,icon:Zt}))},mt=ge.forwardRef(Xt),tt=mt,Wt=he(43469),Lt=he(56762),pt=he(62892),nt=he(92343),Oe=he(3113);function we($t){return Object.assign(Object.assign({},$t),{lastModified:$t.lastModified,lastModifiedDate:$t.lastModifiedDate,name:$t.name,size:$t.size,type:$t.type,uid:$t.uid,percent:0,originFileObj:$t})}function ye($t,vn){const En=(0,Ie.Z)(vn),Pn=En.findIndex(Rn=>{let{uid:Yn}=Rn;return Yn===$t.uid});return Pn===-1?En.push($t):En[Pn]=$t,En}function ke($t,vn){const En=$t.uid!==void 0?"uid":"name";return vn.filter(Pn=>Pn[En]===$t[En])[0]}function Ve($t,vn){const En=$t.uid!==void 0?"uid":"name",Pn=vn.filter(Rn=>Rn[En]!==$t[En]);return Pn.length===vn.length?null:Pn}const Be=function(){const vn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Pn=vn[vn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Pn)||[""])[0]},dt=$t=>$t.indexOf("image/")===0,on=$t=>{if($t.type&&!$t.thumbUrl)return dt($t.type);const vn=$t.thumbUrl||$t.url||"",En=Be(vn);return/^data:image\//.test(vn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(En)?!0:!(/^data:/.test(vn)||En)},mn=200;function Et($t){return new Promise(vn=>{if(!$t.type||!dt($t.type)){vn("");return}const En=document.createElement("canvas");En.width=mn,En.height=mn,En.style.cssText=`position: fixed; left: 0; top: 0; width: ${mn}px; height: ${mn}px; z-index: 9999; display: none;`,document.body.appendChild(En);const Pn=En.getContext("2d"),Rn=new Image;if(Rn.onload=()=>{const{width:Yn,height:Zn}=Rn;let ri=mn,Gn=mn,di=0,rr=0;Yn>Zn?(Gn=Zn*(mn/Yn),rr=-(Gn-ri)/2):(ri=Yn*(mn/Zn),di=-(ri-Gn)/2),Pn.drawImage(Rn,di,rr,ri,Gn);const Dr=En.toDataURL();document.body.removeChild(En),window.URL.revokeObjectURL(Rn.src),vn(Dr)},Rn.crossOrigin="anonymous",$t.type.startsWith("image/svg+xml")){const Yn=new FileReader;Yn.onload=()=>{Yn.result&&(Rn.src=Yn.result)},Yn.readAsDataURL($t)}else if($t.type.startsWith("image/gif")){const Yn=new FileReader;Yn.onload=()=>{Yn.result&&vn(Yn.result)},Yn.readAsDataURL($t)}else Rn.src=window.URL.createObjectURL($t)})}var Ot=he(72295),yn=he(24566),Tn=he(30631),qn=he(93948),vi=he(6848),wi=ge.forwardRef(($t,vn)=>{let{prefixCls:En,className:Pn,style:Rn,locale:Yn,listType:Zn,file:ri,items:Gn,progress:di,iconRender:rr,actionIconRender:Dr,itemRender:ar,isImgUrl:qt,showPreviewIcon:Li,showRemoveIcon:Ji,showDownloadIcon:Ti,previewIcon:bi,removeIcon:sr,downloadIcon:Nr,onPreview:cr,onDownload:Zi,onClose:Jr}=$t;var On,Ho;const{status:Dn}=ri,[Rr,ca]=ge.useState(Dn);ge.useEffect(()=>{Dn!=="removed"&&ca(Dn)},[Dn]);const[fo,Ha]=ge.useState(!1);ge.useEffect(()=>{const lr=setTimeout(()=>{Ha(!0)},300);return()=>{clearTimeout(lr)}},[]);const oa=rr(ri);let xt=ge.createElement("div",{className:`${En}-icon`},oa);if(Zn==="picture"||Zn==="picture-card"||Zn==="picture-circle")if(Rr==="uploading"||!ri.thumbUrl&&!ri.url){const lr=ot()(`${En}-list-item-thumbnail`,{[`${En}-list-item-file`]:Rr!=="uploading"});xt=ge.createElement("div",{className:lr},oa)}else{const lr=qt!=null&&qt(ri)?ge.createElement("img",{src:ri.thumbUrl||ri.url,alt:ri.name,className:`${En}-list-item-image`,crossOrigin:ri.crossOrigin}):oa,$i=ot()(`${En}-list-item-thumbnail`,{[`${En}-list-item-file`]:qt&&!qt(ri)});xt=ge.createElement("a",{className:$i,onClick:Br=>cr(ri,Br),href:ri.url||ri.thumbUrl,target:"_blank",rel:"noopener noreferrer"},lr)}const kn=ot()(`${En}-list-item`,`${En}-list-item-${Rr}`),Hn=typeof ri.linkProps=="string"?JSON.parse(ri.linkProps):ri.linkProps,Ei=Ji?Dr((typeof sr=="function"?sr(ri):sr)||ge.createElement(Ot.Z,null),()=>Jr(ri),En,Yn.removeFile):null,Si=Ti&&Rr==="done"?Dr((typeof Nr=="function"?Nr(ri):Nr)||ge.createElement(yn.Z,null),()=>Zi(ri),En,Yn.downloadFile):null,$e=Zn!=="picture-card"&&Zn!=="picture-circle"&&ge.createElement("span",{key:"download-delete",className:ot()(`${En}-list-item-actions`,{picture:Zn==="picture"})},Si,Ei),Fi=ot()(`${En}-list-item-name`),eo=ri.url?[ge.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Fi,title:ri.name},Hn,{href:ri.url,onClick:lr=>cr(ri,lr)}),ri.name),$e]:[ge.createElement("span",{key:"view",className:Fi,onClick:lr=>cr(ri,lr),title:ri.name},ri.name),$e],Qi={pointerEvents:"none",opacity:.5},Vr=Li?ge.createElement("a",{href:ri.url||ri.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ri.url||ri.thumbUrl?void 0:Qi,onClick:lr=>cr(ri,lr),title:Yn.previewFile},typeof bi=="function"?bi(ri):bi||ge.createElement(Tn.Z,null)):null,pr=(Zn==="picture-card"||Zn==="picture-circle")&&Rr!=="uploading"&&ge.createElement("span",{className:`${En}-list-item-actions`},Vr,Rr==="done"&&Si,Ei),{getPrefixCls:Er}=ge.useContext(Jt.E_),oo=Er(),bo=ge.createElement("div",{className:kn},xt,eo,pr,fo&&ge.createElement(Wt.default,{motionName:`${oo}-fade`,visible:Rr==="uploading",motionDeadline:2e3},lr=>{let{className:$i}=lr;const Br="percent"in ri?ge.createElement(qn.Z,Object.assign({},di,{type:"line",percent:ri.percent,"aria-label":ri["aria-label"],"aria-labelledby":ri["aria-labelledby"]})):null;return ge.createElement("div",{className:ot()(`${En}-list-item-progress`,$i)},Br)})),Ur=ri.response&&typeof ri.response=="string"?ri.response:((On=ri.error)===null||On===void 0?void 0:On.statusText)||((Ho=ri.error)===null||Ho===void 0?void 0:Ho.message)||Yn.uploadError,Io=Rr==="error"?ge.createElement(vi.Z,{title:Ur,getPopupContainer:lr=>lr.parentNode},bo):bo;return ge.createElement("div",{className:ot()(`${En}-list-item-container`,Pn),style:Rn,ref:vn},ar?ar(Io,ri,Gn,{download:Zi.bind(null,ri),preview:cr.bind(null,ri),remove:Jr.bind(null,ri)}):Io)});const _n=($t,vn)=>{const{listType:En="text",previewFile:Pn=Et,onPreview:Rn,onDownload:Yn,onRemove:Zn,locale:ri,iconRender:Gn,isImageUrl:di=on,prefixCls:rr,items:Dr=[],showPreviewIcon:ar=!0,showRemoveIcon:qt=!0,showDownloadIcon:Li=!1,removeIcon:Ji,previewIcon:Ti,downloadIcon:bi,progress:sr={size:[-1,2],showInfo:!1},appendAction:Nr,appendActionVisible:cr=!0,itemRender:Zi,disabled:Jr}=$t,On=(0,Lt.Z)(),[Ho,Dn]=ge.useState(!1);ge.useEffect(()=>{En!=="picture"&&En!=="picture-card"&&En!=="picture-circle"||(Dr||[]).forEach(Qi=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Qi.originFileObj instanceof File||Qi.originFileObj instanceof Blob)||Qi.thumbUrl!==void 0||(Qi.thumbUrl="",Pn&&Pn(Qi.originFileObj).then(Vr=>{Qi.thumbUrl=Vr||"",On()}))})},[En,Dr,Pn]),ge.useEffect(()=>{Dn(!0)},[]);const Rr=(Qi,Vr)=>{if(Rn)return Vr==null||Vr.preventDefault(),Rn(Qi)},ca=Qi=>{typeof Yn=="function"?Yn(Qi):Qi.url&&window.open(Qi.url)},fo=Qi=>{Zn==null||Zn(Qi)},Ha=Qi=>{if(Gn)return Gn(Qi,En);const Vr=Qi.status==="uploading",pr=di&&di(Qi)?ge.createElement(tt,null):ge.createElement(Nn,null);let Er=Vr?ge.createElement(hn.Z,null):ge.createElement(ti,null);return En==="picture"?Er=Vr?ge.createElement(hn.Z,null):pr:(En==="picture-card"||En==="picture-circle")&&(Er=Vr?ri.uploading:pr),Er},oa=(Qi,Vr,pr,Er)=>{const oo={type:"text",size:"small",title:Er,onClick:bo=>{Vr(),(0,nt.l$)(Qi)&&Qi.props.onClick&&Qi.props.onClick(bo)},className:`${pr}-list-item-action`,disabled:Jr};if((0,nt.l$)(Qi)){const bo=(0,nt.Tm)(Qi,Object.assign(Object.assign({},Qi.props),{onClick:()=>{}}));return ge.createElement(Oe.ZP,Object.assign({},oo,{icon:bo}))}return ge.createElement(Oe.ZP,Object.assign({},oo),ge.createElement("span",null,Qi))};ge.useImperativeHandle(vn,()=>({handlePreview:Rr,handleDownload:ca}));const{getPrefixCls:xt}=ge.useContext(Jt.E_),kn=xt("upload",rr),Hn=xt(),Ei=ot()(`${kn}-list`,`${kn}-list-${En}`),Si=(0,Ie.Z)(Dr.map(Qi=>({key:Qi.uid,file:Qi})));let Fi={motionDeadline:2e3,motionName:`${kn}-${En==="picture-card"||En==="picture-circle"?"animate-inline":"animate"}`,keys:Si,motionAppear:Ho};const eo=ge.useMemo(()=>{const Qi=Object.assign({},(0,pt.Z)(Hn));return delete Qi.onAppearEnd,delete Qi.onEnterEnd,delete Qi.onLeaveEnd,Qi},[Hn]);return En!=="picture-card"&&En!=="picture-circle"&&(Fi=Object.assign(Object.assign({},eo),Fi)),ge.createElement("div",{className:Ei},ge.createElement(Wt.CSSMotionList,Object.assign({},Fi,{component:!1}),Qi=>{let{key:Vr,file:pr,className:Er,style:oo}=Qi;return ge.createElement(wi,{key:Vr,locale:ri,prefixCls:kn,className:Er,style:oo,file:pr,items:Dr,progress:sr,listType:En,isImgUrl:di,showPreviewIcon:ar,showRemoveIcon:qt,showDownloadIcon:Li,removeIcon:Ji,previewIcon:Ti,downloadIcon:bi,iconRender:Ha,actionIconRender:oa,itemRender:Zi,onPreview:Rr,onDownload:ca,onClose:fo})}),Nr&&ge.createElement(Wt.default,Object.assign({},Fi,{visible:cr,forceRender:!0}),Qi=>{let{className:Vr,style:pr}=Qi;return(0,nt.Tm)(Nr,Er=>({className:ot()(Er.className,Vr),style:Object.assign(Object.assign(Object.assign({},pr),{pointerEvents:Vr?"none":void 0}),Er.style)}))}))};var ir=ge.forwardRef(_n),fr=he(17313),xr=he(8378),jr=he(83116),Ki=he(37613),Vi=$t=>{const{componentCls:vn,iconCls:En}=$t;return{[`${vn}-wrapper`]:{[`${vn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:$t.colorFillAlter,border:`${$t.lineWidth}px dashed ${$t.colorBorder}`,borderRadius:$t.borderRadiusLG,cursor:"pointer",transition:`border-color ${$t.motionDurationSlow}`,[vn]:{padding:`${$t.padding}px 0`},[`${vn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${vn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${vn}-disabled):hover`]:{borderColor:$t.colorPrimaryHover},[`p${vn}-drag-icon`]:{marginBottom:$t.margin,[En]:{color:$t.colorPrimary,fontSize:$t.uploadThumbnailSize}},[`p${vn}-text`]:{margin:`0 0 ${$t.marginXXS}px`,color:$t.colorTextHeading,fontSize:$t.fontSizeLG},[`p${vn}-hint`]:{color:$t.colorTextDescription,fontSize:$t.fontSize},[`&${vn}-disabled`]:{cursor:"not-allowed",[`p${vn}-drag-icon ${En},
|
|
|
p${vn}-text,
|
|
|
p${vn}-hint
|
|
|
`]:{color:$t.colorTextDisabled}}}}}},Ai=$t=>{const{componentCls:vn,antCls:En,iconCls:Pn,fontSize:Rn,lineHeight:Yn}=$t,Zn=`${vn}-list-item`,ri=`${Zn}-actions`,Gn=`${Zn}-action`,di=Math.round(Rn*Yn);return{[`${vn}-wrapper`]:{[`${vn}-list`]:Object.assign(Object.assign({},(0,fr.dF)()),{lineHeight:$t.lineHeight,[Zn]:{position:"relative",height:$t.lineHeight*Rn,marginTop:$t.marginXS,fontSize:Rn,display:"flex",alignItems:"center",transition:`background-color ${$t.motionDurationSlow}`,"&:hover":{backgroundColor:$t.controlItemBgHover},[`${Zn}-name`]:Object.assign(Object.assign({},fr.vS),{padding:`0 ${$t.paddingXS}px`,lineHeight:Yn,flex:"auto",transition:`all ${$t.motionDurationSlow}`}),[ri]:{[Gn]:{opacity:0},[`${Gn}${En}-btn-sm`]:{height:di,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Gn}:focus-visible,
|
|
|
&.picture ${Gn}
|
|
|
`]:{opacity:1},[Pn]:{color:$t.actionsColor,transition:`all ${$t.motionDurationSlow}`},[`&:hover ${Pn}`]:{color:$t.colorText}},[`${vn}-icon ${Pn}`]:{color:$t.colorTextDescription,fontSize:Rn},[`${Zn}-progress`]:{position:"absolute",bottom:-$t.uploadProgressOffset,width:"100%",paddingInlineStart:Rn+$t.paddingXS,fontSize:Rn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Zn}:hover ${Gn}`]:{opacity:1,color:$t.colorText},[`${Zn}-error`]:{color:$t.colorError,[`${Zn}-name, ${vn}-icon ${Pn}`]:{color:$t.colorError},[ri]:{[`${Pn}, ${Pn}:hover`]:{color:$t.colorError},[Gn]:{opacity:1}}},[`${vn}-list-item-container`]:{transition:`opacity ${$t.motionDurationSlow}, height ${$t.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Xi=he(9792),gr=he(1950);const tr=new Xi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),uo=new Xi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Ni=$t=>{const{componentCls:vn}=$t,En=`${vn}-animate-inline`;return[{[`${vn}-wrapper`]:{[`${En}-appear, ${En}-enter, ${En}-leave`]:{animationDuration:$t.motionDurationSlow,animationTimingFunction:$t.motionEaseInOutCirc,animationFillMode:"forwards"},[`${En}-appear, ${En}-enter`]:{animationName:tr},[`${En}-leave`]:{animationName:uo}}},{[`${vn}-wrapper`]:(0,gr.J$)($t)},tr,uo]},an=he(93398),en=he(64993);const Kt=$t=>{const{componentCls:vn,iconCls:En,uploadThumbnailSize:Pn,uploadProgressOffset:Rn}=$t,Yn=`${vn}-list`,Zn=`${Yn}-item`;return{[`${vn}-wrapper`]:{[`
|
|
|
${Yn}${Yn}-picture,
|
|
|
${Yn}${Yn}-picture-card,
|
|
|
${Yn}${Yn}-picture-circle
|
|
|
`]:{[Zn]:{position:"relative",height:Pn+$t.lineWidth*2+$t.paddingXS*2,padding:$t.paddingXS,border:`${$t.lineWidth}px ${$t.lineType} ${$t.colorBorder}`,borderRadius:$t.borderRadiusLG,"&:hover":{background:"transparent"},[`${Zn}-thumbnail`]:Object.assign(Object.assign({},fr.vS),{width:Pn,height:Pn,lineHeight:`${Pn+$t.paddingSM}px`,textAlign:"center",flex:"none",[En]:{fontSize:$t.fontSizeHeading2,color:$t.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Zn}-progress`]:{bottom:Rn,width:`calc(100% - ${$t.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Pn+$t.paddingXS}},[`${Zn}-error`]:{borderColor:$t.colorError,[`${Zn}-thumbnail ${En}`]:{[`svg path[fill='${an.blue[0]}']`]:{fill:$t.colorErrorBg},[`svg path[fill='${an.blue.primary}']`]:{fill:$t.colorError}}},[`${Zn}-uploading`]:{borderStyle:"dashed",[`${Zn}-name`]:{marginBottom:Rn}}},[`${Yn}${Yn}-picture-circle ${Zn}`]:{[`&, &::before, ${Zn}-thumbnail`]:{borderRadius:"50%"}}}}},Pt=$t=>{const{componentCls:vn,iconCls:En,fontSizeLG:Pn,colorTextLightSolid:Rn}=$t,Yn=`${vn}-list`,Zn=`${Yn}-item`,ri=$t.uploadPicCardSize;return{[`
|
|
|
${vn}-wrapper${vn}-picture-card-wrapper,
|
|
|
${vn}-wrapper${vn}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,fr.dF)()),{display:"inline-block",width:"100%",[`${vn}${vn}-select`]:{width:ri,height:ri,marginInlineEnd:$t.marginXS,marginBottom:$t.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:$t.colorFillAlter,border:`${$t.lineWidth}px dashed ${$t.colorBorder}`,borderRadius:$t.borderRadiusLG,cursor:"pointer",transition:`border-color ${$t.motionDurationSlow}`,[`> ${vn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${vn}-disabled):hover`]:{borderColor:$t.colorPrimary}},[`${Yn}${Yn}-picture-card, ${Yn}${Yn}-picture-circle`]:{[`${Yn}-item-container`]:{display:"inline-block",width:ri,height:ri,marginBlock:`0 ${$t.marginXS}px`,marginInline:`0 ${$t.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Zn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${$t.paddingXS*2}px)`,height:`calc(100% - ${$t.paddingXS*2}px)`,backgroundColor:$t.colorBgMask,opacity:0,transition:`all ${$t.motionDurationSlow}`,content:'" "'}},[`${Zn}:hover`]:{[`&::before, ${Zn}-actions`]:{opacity:1}},[`${Zn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${$t.motionDurationSlow}`,[`${En}-eye, ${En}-download, ${En}-delete`]:{zIndex:10,width:Pn,margin:`0 ${$t.marginXXS}px`,fontSize:Pn,cursor:"pointer",transition:`all ${$t.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Zn}-actions, ${Zn}-actions:hover`]:{[`${En}-eye, ${En}-download, ${En}-delete`]:{color:new en.C(Rn).setAlpha(.65).toRgbString(),"&:hover":{color:Rn}}},[`${Zn}-thumbnail, ${Zn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Zn}-name`]:{display:"none",textAlign:"center"},[`${Zn}-file + ${Zn}-name`]:{position:"absolute",bottom:$t.margin,display:"block",width:`calc(100% - ${$t.paddingXS*2}px)`},[`${Zn}-uploading`]:{[`&${Zn}`]:{backgroundColor:$t.colorFillAlter},[`&::before, ${En}-eye, ${En}-download, ${En}-delete`]:{display:"none"}},[`${Zn}-progress`]:{bottom:$t.marginXL,width:`calc(100% - ${$t.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${vn}-wrapper${vn}-picture-circle-wrapper`]:{[`${vn}${vn}-select`]:{borderRadius:"50%"}}}};var bn=$t=>{const{componentCls:vn}=$t;return{[`${vn}-rtl`]:{direction:"rtl"}}};const zt=$t=>{const{componentCls:vn,colorTextDisabled:En}=$t;return{[`${vn}-wrapper`]:Object.assign(Object.assign({},(0,fr.Wf)($t)),{[vn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${vn}-select`]:{display:"inline-block"},[`${vn}-disabled`]:{color:En,cursor:"not-allowed"}})}};var gt=(0,jr.Z)("Upload",$t=>{const{fontSizeHeading3:vn,fontSize:En,lineHeight:Pn,lineWidth:Rn,controlHeightLG:Yn}=$t,Zn=Math.round(En*Pn),ri=(0,Ki.TS)($t,{uploadThumbnailSize:vn*2,uploadProgressOffset:Zn/2+Rn,uploadPicCardSize:Yn*2.55});return[zt(ri),Vi(ri),Kt(ri),Pt(ri),Ai(ri),Ni(ri),bn(ri),(0,xr.Z)(ri)]},$t=>({actionsColor:$t.colorTextDescription})),xn=function($t,vn,En,Pn){function Rn(Yn){return Yn instanceof En?Yn:new En(function(Zn){Zn(Yn)})}return new(En||(En=Promise))(function(Yn,Zn){function ri(rr){try{di(Pn.next(rr))}catch(Dr){Zn(Dr)}}function Gn(rr){try{di(Pn.throw(rr))}catch(Dr){Zn(Dr)}}function di(rr){rr.done?Yn(rr.value):Rn(rr.value).then(ri,Gn)}di((Pn=Pn.apply($t,vn||[])).next())})};const Ln=`__LIST_IGNORE_${Date.now()}__`,pi=($t,vn)=>{const{fileList:En,defaultFileList:Pn,onRemove:Rn,showUploadList:Yn=!0,listType:Zn="text",onPreview:ri,onDownload:Gn,onChange:di,onDrop:rr,previewFile:Dr,disabled:ar,locale:qt,iconRender:Li,isImageUrl:Ji,progress:Ti,prefixCls:bi,className:sr,type:Nr="select",children:cr,style:Zi,itemRender:Jr,maxCount:On,data:Ho={},multiple:Dn=!1,action:Rr="",accept:ca="",supportServerRender:fo=!0,rootClassName:Ha}=$t,oa=ge.useContext(at.Z),xt=ar!=null?ar:oa,[kn,Hn]=(0,kt.Z)(Pn||[],{value:En,postState:Kr=>Kr!=null?Kr:[]}),[Ei,Si]=ge.useState("drop"),$e=ge.useRef(null);ge.useMemo(()=>{const Kr=Date.now();(En||[]).forEach((Ao,Ka)=>{!Ao.uid&&!Object.isFrozen(Ao)&&(Ao.uid=`__AUTO__${Kr}_${Ka}__`)})},[En]);const Fi=(Kr,Ao,Ka)=>{let da=(0,Ie.Z)(Ao),vo=!1;On===1?da=da.slice(-1):On&&(vo=da.length>On,da=da.slice(0,On)),(0,Rt.flushSync)(()=>{Hn(da)});const Qo={file:Kr,fileList:da};Ka&&(Qo.event=Ka),(!vo||da.some(Qa=>Qa.uid===Kr.uid))&&(0,Rt.flushSync)(()=>{di==null||di(Qo)})},eo=(Kr,Ao)=>xn(void 0,void 0,void 0,function*(){const{beforeUpload:Ka,transformFile:da}=$t;let vo=Kr;if(Ka){const Qo=yield Ka(Kr,Ao);if(Qo===!1)return!1;if(delete Kr[Ln],Qo===Ln)return Object.defineProperty(Kr,Ln,{value:!0,configurable:!0}),!1;typeof Qo=="object"&&Qo&&(vo=Qo)}return da&&(vo=yield da(vo)),vo}),Qi=Kr=>{const Ao=Kr.filter(vo=>!vo.file[Ln]);if(!Ao.length)return;const Ka=Ao.map(vo=>we(vo.file));let da=(0,Ie.Z)(kn);Ka.forEach(vo=>{da=ye(vo,da)}),Ka.forEach((vo,Qo)=>{let Qa=vo;if(Ao[Qo].parsedFile)vo.status="uploading";else{const{originFileObj:to}=vo;let Do;try{Do=new File([to],to.name,{type:to.type})}catch(Bo){Do=new Blob([to],{type:to.type}),Do.name=to.name,Do.lastModifiedDate=new Date,Do.lastModified=new Date().getTime()}Do.uid=vo.uid,Qa=Do}Fi(Qa,da)})},Vr=(Kr,Ao,Ka)=>{try{typeof Kr=="string"&&(Kr=JSON.parse(Kr))}catch(Qo){}if(!ke(Ao,kn))return;const da=we(Ao);da.status="done",da.percent=100,da.response=Kr,da.xhr=Ka;const vo=ye(da,kn);Fi(da,vo)},pr=(Kr,Ao)=>{if(!ke(Ao,kn))return;const Ka=we(Ao);Ka.status="uploading",Ka.percent=Kr.percent;const da=ye(Ka,kn);Fi(Ka,da,Kr)},Er=(Kr,Ao,Ka)=>{if(!ke(Ka,kn))return;const da=we(Ka);da.error=Kr,da.response=Ao,da.status="error";const vo=ye(da,kn);Fi(da,vo)},oo=Kr=>{let Ao;Promise.resolve(typeof Rn=="function"?Rn(Kr):Rn).then(Ka=>{var da;if(Ka===!1)return;const vo=Ve(Kr,kn);vo&&(Ao=Object.assign(Object.assign({},Kr),{status:"removed"}),kn==null||kn.forEach(Qo=>{const Qa=Ao.uid!==void 0?"uid":"name";Qo[Qa]===Ao[Qa]&&!Object.isFrozen(Qo)&&(Qo.status="removed")}),(da=$e.current)===null||da===void 0||da.abort(Ao),Fi(Ao,vo))})},bo=Kr=>{Si(Kr.type),Kr.type==="drop"&&(rr==null||rr(Kr))};ge.useImperativeHandle(vn,()=>({onBatchStart:Qi,onSuccess:Vr,onProgress:pr,onError:Er,fileList:kn,upload:$e.current}));const{getPrefixCls:Ur,direction:Io,upload:lr}=ge.useContext(Jt.E_),$i=Ur("upload",bi),Br=Object.assign(Object.assign({onBatchStart:Qi,onError:Er,onProgress:pr,onSuccess:Vr},$t),{data:Ho,multiple:Dn,action:Rr,accept:ca,supportServerRender:fo,prefixCls:$i,disabled:xt,beforeUpload:eo,onChange:void 0});delete Br.className,delete Br.style,(!cr||xt)&&delete Br.id;const[oi,Ro]=gt($i),[Xo]=(0,Ze.Z)("Upload",Mt.Z.Upload),{showRemoveIcon:ya,showPreviewIcon:na,showDownloadIcon:Fa,removeIcon:Sa,previewIcon:Pa,downloadIcon:is}=typeof Yn=="boolean"?{}:Yn,Co=(Kr,Ao)=>Yn?ge.createElement(ir,{prefixCls:$i,listType:Zn,items:kn,previewFile:Dr,onPreview:ri,onDownload:Gn,onRemove:oo,showRemoveIcon:!xt&&ya,showPreviewIcon:na,showDownloadIcon:Fa,removeIcon:Sa,previewIcon:Pa,downloadIcon:is,iconRender:Li,locale:Object.assign(Object.assign({},Xo),qt),isImageUrl:Ji,progress:Ti,appendAction:Kr,appendActionVisible:Ao,itemRender:Jr,disabled:xt}):Kr,ps=ot()(`${$i}-wrapper`,sr,Ha,Ro,lr==null?void 0:lr.className,{[`${$i}-rtl`]:Io==="rtl",[`${$i}-picture-card-wrapper`]:Zn==="picture-card",[`${$i}-picture-circle-wrapper`]:Zn==="picture-circle"}),An=Object.assign(Object.assign({},lr==null?void 0:lr.style),Zi);if(Nr==="drag"){const Kr=ot()(Ro,$i,`${$i}-drag`,{[`${$i}-drag-uploading`]:kn.some(Ao=>Ao.status==="uploading"),[`${$i}-drag-hover`]:Ei==="dragover",[`${$i}-disabled`]:xt,[`${$i}-rtl`]:Io==="rtl"});return oi(ge.createElement("span",{className:ps},ge.createElement("div",{className:Kr,style:An,onDrop:bo,onDragOver:bo,onDragLeave:bo},ge.createElement(vt,Object.assign({},Br,{ref:$e,className:`${$i}-btn`}),ge.createElement("div",{className:`${$i}-drag-container`},cr))),Co()))}const Yo=ot()($i,`${$i}-select`,{[`${$i}-disabled`]:xt}),yl=(Kr=>ge.createElement("div",{className:Yo,style:Kr},ge.createElement(vt,Object.assign({},Br,{ref:$e}))))(cr?void 0:{display:"none"});return oi(Zn==="picture-card"||Zn==="picture-circle"?ge.createElement("span",{className:ps},Co(yl,!!cr)):ge.createElement("span",{className:ps},yl,Co()))};var It=ge.forwardRef(pi),gn=function($t,vn){var En={};for(var Pn in $t)Object.prototype.hasOwnProperty.call($t,Pn)&&vn.indexOf(Pn)<0&&(En[Pn]=$t[Pn]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rn=0,Pn=Object.getOwnPropertySymbols($t);Rn<Pn.length;Rn++)vn.indexOf(Pn[Rn])<0&&Object.prototype.propertyIsEnumerable.call($t,Pn[Rn])&&(En[Pn[Rn]]=$t[Pn[Rn]]);return En},ui=ge.forwardRef(($t,vn)=>{var{style:En,height:Pn}=$t,Rn=gn($t,["style","height"]);return ge.createElement(It,Object.assign({ref:vn},Rn,{type:"drag",style:Object.assign(Object.assign({},En),{height:Pn})}))});const Qt=It;Qt.Dragger=ui,Qt.LIST_IGNORE=Ln;var Cn=Qt},57780:function(fn,jt,he){"use strict";he.r(jt),he.d(jt,{clsx:function(){return Ie}});function ge(Ke){var ot,He,it="";if(typeof Ke=="string"||typeof Ke=="number")it+=Ke;else if(typeof Ke=="object")if(Array.isArray(Ke))for(ot=0;ot<Ke.length;ot++)Ke[ot]&&(He=ge(Ke[ot]))&&(it&&(it+=" "),it+=He);else for(ot in Ke)Ke[ot]&&(it&&(it+=" "),it+=ot);return it}function Ie(){for(var Ke,ot,He=0,it="";He<arguments.length;)(Ke=arguments[He++])&&(ot=ge(Ke))&&(it&&(it+=" "),it+=ot);return it}jt.default=Ie},99498:function(fn,jt,he){(function(ge){ge(he(89780))})(function(ge){ge.defineOption("placeholder","",function(yt,ct,Xe){var et=Xe&&Xe!=ge.Init;if(ct&&!et)yt.on("blur",He),yt.on("change",it),yt.on("swapDoc",it),ge.on(yt.getInputField(),"compositionupdate",yt.state.placeholderCompose=function(){ot(yt)}),it(yt);else if(!ct&&et){yt.off("blur",He),yt.off("change",it),yt.off("swapDoc",it),ge.off(yt.getInputField(),"compositionupdate",yt.state.placeholderCompose),Ie(yt);var Je=yt.getWrapperElement();Je.className=Je.className.replace(" CodeMirror-empty","")}ct&&!yt.hasFocus()&&He(yt)});function Ie(yt){yt.state.placeholder&&(yt.state.placeholder.parentNode.removeChild(yt.state.placeholder),yt.state.placeholder=null)}function Ke(yt){Ie(yt);var ct=yt.state.placeholder=document.createElement("pre");ct.style.cssText="height: 0; overflow: visible",ct.style.direction=yt.getOption("direction"),ct.className="CodeMirror-placeholder CodeMirror-line-like";var Xe=yt.getOption("placeholder");typeof Xe=="string"&&(Xe=document.createTextNode(Xe)),ct.appendChild(Xe),yt.display.lineSpace.insertBefore(ct,yt.display.lineSpace.firstChild)}function ot(yt){setTimeout(function(){var ct=!1,Xe=yt.getInputField();Xe.nodeName=="TEXTAREA"?ct=!Xe.value:yt.lineCount()==1&&(ct=!/[^\u200b]/.test(Xe.querySelector(".CodeMirror-line").textContent)),ct?Ke(yt):Ie(yt)},20)}function He(yt){be(yt)&&Ke(yt)}function it(yt){var ct=yt.getWrapperElement(),Xe=be(yt);ct.className=ct.className.replace(" CodeMirror-empty","")+(Xe?" CodeMirror-empty":""),Xe?Ke(yt):Ie(yt)}function be(yt){return yt.lineCount()===1&&yt.getLine(0)===""}})},25717:function(fn,jt,he){(function(ge){ge(he(89780))})(function(ge){var Ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ke=ge.Pos;ge.defineOption("autoCloseBrackets",!1,function(ee,te,ue){ue&&ue!=ge.Init&&(ee.removeKeyMap(He),ee.state.closeBrackets=null),te&&(it(ot(te,"pairs")),ee.state.closeBrackets=te,ee.addKeyMap(He))});function ot(ee,te){return te=="pairs"&&typeof ee=="string"?ee:typeof ee=="object"&&ee[te]!=null?ee[te]:Ie[te]}var He={Backspace:ct,Enter:Xe};function it(ee){for(var te=0;te<ee.length;te++){var ue=ee.charAt(te),oe="'"+ue+"'";He[oe]||(He[oe]=be(ue))}}it(Ie.pairs+"`");function be(ee){return function(te){return Je(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 ct(ee){var te=yt(ee);if(!te||ee.getOption("disableInput"))return ge.Pass;for(var ue=ot(te,"pairs"),oe=ee.listSelections(),de=0;de<oe.length;de++){if(!oe[de].empty())return ge.Pass;var ve=Ue(ee,oe[de].head);if(!ve||ue.indexOf(ve)%2!=0)return ge.Pass}for(var de=oe.length-1;de>=0;de--){var xe=oe[de].head;ee.replaceRange("",Ke(xe.line,xe.ch-1),Ke(xe.line,xe.ch+1),"+delete")}}function Xe(ee){var te=yt(ee),ue=te&&ot(te,"explode");if(!ue||ee.getOption("disableInput"))return ge.Pass;for(var oe=ee.listSelections(),de=0;de<oe.length;de++){if(!oe[de].empty())return ge.Pass;var ve=Ue(ee,oe[de].head);if(!ve||ue.indexOf(ve)%2!=0)return ge.Pass}ee.operation(function(){var xe=ee.lineSeparator()||`
|
|
|
`;ee.replaceSelection(xe+xe,null),ee.execCommand("goCharLeft"),oe=ee.listSelections();for(var Ae=0;Ae<oe.length;Ae++){var Pe=oe[Ae].head.line;ee.indentLine(Pe,null,!0),ee.indentLine(Pe+1,null,!0)}})}function et(ee){var te=ge.cmpPos(ee.anchor,ee.head)>0;return{anchor:new Ke(ee.anchor.line,ee.anchor.ch+(te?-1:1)),head:new Ke(ee.head.line,ee.head.ch+(te?1:-1))}}function Je(ee,te){var ue=yt(ee);if(!ue||ee.getOption("disableInput"))return ge.Pass;var oe=ot(ue,"pairs"),de=oe.indexOf(te);if(de==-1)return ge.Pass;for(var ve=ot(ue,"closeBefore"),xe=ot(ue,"triples"),Ae=oe.charAt(de+1)==te,Pe=ee.listSelections(),Ne=de%2==0,Le,Re=0;Re<Pe.length;Re++){var je=Pe[Re],Ge=je.head,We,bt=ee.getRange(Ge,Ke(Ge.line,Ge.ch+1));if(Ne&&!je.empty())We="surround";else if((Ae||!Ne)&&bt==te)Ae&&Ee(ee,Ge)?We="both":xe.indexOf(te)>=0&&ee.getRange(Ge,Ke(Ge.line,Ge.ch+3))==te+te+te?We="skipThree":We="skip";else if(Ae&&Ge.ch>1&&xe.indexOf(te)>=0&&ee.getRange(Ke(Ge.line,Ge.ch-2),Ge)==te+te){if(Ge.ch>2&&/\bstring/.test(ee.getTokenTypeAt(Ke(Ge.line,Ge.ch-2))))return ge.Pass;We="addFour"}else if(Ae){var Qe=Ge.ch==0?" ":ee.getRange(Ke(Ge.line,Ge.ch-1),Ge);if(!ge.isWordChar(bt)&&Qe!=te&&!ge.isWordChar(Qe))We="both";else return ge.Pass}else if(Ne&&(bt.length===0||/\s/.test(bt)||ve.indexOf(bt)>-1))We="both";else return ge.Pass;if(!Le)Le=We;else if(Le!=We)return ge.Pass}var Dt=de%2?oe.charAt(de-1):te,vt=de%2?te:oe.charAt(de+1);ee.operation(function(){if(Le=="skip")ee.execCommand("goCharRight");else if(Le=="skipThree")for(var kt=0;kt<3;kt++)ee.execCommand("goCharRight");else if(Le=="surround"){for(var Rt=ee.getSelections(),kt=0;kt<Rt.length;kt++)Rt[kt]=Dt+Rt[kt]+vt;ee.replaceSelections(Rt,"around"),Rt=ee.listSelections().slice();for(var kt=0;kt<Rt.length;kt++)Rt[kt]=et(Rt[kt]);ee.setSelections(Rt)}else Le=="both"?(ee.replaceSelection(Dt+vt,null),ee.triggerElectric(Dt+vt),ee.execCommand("goCharLeft")):Le=="addFour"&&(ee.replaceSelection(Dt+Dt+Dt+Dt,"before"),ee.execCommand("goCharRight"))})}function Ue(ee,te){var ue=ee.getRange(Ke(te.line,te.ch-1),Ke(te.line,te.ch+1));return ue.length==2?ue:null}function Ee(ee,te){var ue=ee.getTokenAt(Ke(te.line,te.ch+1));return/\bstring/.test(ue.type)&&ue.start==te.ch&&(te.ch==0||!/\bstring/.test(ee.getTokenTypeAt(te)))}})},6313:function(fn,jt,he){(function(ge){ge(he(89780),he(32855))})(function(ge){ge.defineOption("autoCloseTags",!1,function(ct,Xe,et){if(et!=ge.Init&&et&&ct.removeKeyMap("autoCloseTags"),!!Xe){var Je={name:"autoCloseTags"};(typeof Xe!="object"||Xe.whenClosing!==!1)&&(Je["'/'"]=function(Ue){return it(Ue)}),(typeof Xe!="object"||Xe.whenOpening!==!1)&&(Je["'>'"]=function(Ue){return ot(Ue)}),ct.addKeyMap(Je)}});var Ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ke=["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 ot(ct){if(ct.getOption("disableInput"))return ge.Pass;for(var Xe=ct.listSelections(),et=[],Je=ct.getOption("autoCloseTags"),Ue=0;Ue<Xe.length;Ue++){if(!Xe[Ue].empty())return ge.Pass;var Ee=Xe[Ue].head,ee=ct.getTokenAt(Ee),te=ge.innerMode(ct.getMode(),ee.state),ue=te.state,oe=te.mode.xmlCurrentTag&&te.mode.xmlCurrentTag(ue),de=oe&&oe.name;if(!de)return ge.Pass;var ve=te.mode.configuration=="html",xe=typeof Je=="object"&&Je.dontCloseTags||ve&&Ie,Ae=typeof Je=="object"&&Je.indentTags||ve&&Ke;ee.end>Ee.ch&&(de=de.slice(0,de.length-ee.end+Ee.ch));var Pe=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"&&oe.close||ee.string.indexOf("/")==Ee.ch-ee.start-1||xe&&be(xe,Pe)>-1||yt(ct,te.mode.xmlCurrentContext&&te.mode.xmlCurrentContext(ue)||[],de,Ee,!0))return ge.Pass;var Ne=typeof Je=="object"&&Je.emptyTags;if(Ne&&be(Ne,de)>-1){et[Ue]={text:"/>",newPos:ge.Pos(Ee.line,Ee.ch+2)};continue}var Le=Ae&&be(Ae,Pe)>-1;et[Ue]={indent:Le,text:">"+(Le?`
|
|
|
|
|
|
`:"")+"</"+de+">",newPos:Le?ge.Pos(Ee.line+1,0):ge.Pos(Ee.line,Ee.ch+1)}}for(var Re=typeof Je=="object"&&Je.dontIndentOnAutoClose,Ue=Xe.length-1;Ue>=0;Ue--){var je=et[Ue];ct.replaceRange(je.text,Xe[Ue].head,Xe[Ue].anchor,"+insert");var Ge=ct.listSelections().slice(0);Ge[Ue]={head:je.newPos,anchor:je.newPos},ct.setSelections(Ge),!Re&&je.indent&&(ct.indentLine(je.newPos.line,null,!0),ct.indentLine(je.newPos.line+1,null,!0))}}function He(ct,Xe){for(var et=ct.listSelections(),Je=[],Ue=Xe?"/":"</",Ee=ct.getOption("autoCloseTags"),ee=typeof Ee=="object"&&Ee.dontIndentOnSlash,te=0;te<et.length;te++){if(!et[te].empty())return ge.Pass;var ue=et[te].head,oe=ct.getTokenAt(ue),de=ge.innerMode(ct.getMode(),oe.state),ve=de.state;if(Xe&&(oe.type=="string"||oe.string.charAt(0)!="<"||oe.start!=ue.ch-1))return ge.Pass;var xe,Ae=de.mode.name!="xml"&&ct.getMode().name=="htmlmixed";if(Ae&&de.mode.name=="javascript")xe=Ue+"script";else if(Ae&&de.mode.name=="css")xe=Ue+"style";else{var Pe=de.mode.xmlCurrentContext&&de.mode.xmlCurrentContext(ve);if(!Pe||Pe.length&&yt(ct,Pe,Pe[Pe.length-1],ue))return ge.Pass;xe=Ue+Pe[Pe.length-1]}ct.getLine(ue.line).charAt(oe.end)!=">"&&(xe+=">"),Je[te]=xe}if(ct.replaceSelections(Je),et=ct.listSelections(),!ee)for(var te=0;te<et.length;te++)(te==et.length-1||et[te].head.line<et[te+1].head.line)&&ct.indentLine(et[te].head.line)}function it(ct){return ct.getOption("disableInput")?ge.Pass:He(ct,!0)}ge.commands.closeTag=function(ct){return He(ct)};function be(ct,Xe){if(ct.indexOf)return ct.indexOf(Xe);for(var et=0,Je=ct.length;et<Je;++et)if(ct[et]==Xe)return et;return-1}function yt(ct,Xe,et,Je,Ue){if(!ge.scanForClosingTag)return!1;var Ee=Math.min(ct.lastLine()+1,Je.line+500),ee=ge.scanForClosingTag(ct,Je,null,Ee);if(!ee||ee.tag!=et)return!1;for(var te=Ue?1:0,ue=Xe.length-1;ue>=0&&Xe[ue]==et;ue--)++te;Je=ee.to;for(var ue=1;ue<te;ue++){var oe=ge.scanForClosingTag(ct,Je,null,Ee);if(!oe||oe.tag!=et)return!1;Je=oe.to}return!0}})},32855:function(fn,jt,he){(function(ge){ge(he(89780))})(function(ge){"use strict";var Ie=ge.Pos;function Ke(ue,oe){return ue.line-oe.line||ue.ch-oe.ch}var ot="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",He=ot+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",it=new RegExp("<(/?)(["+ot+"]["+He+"]*)","g");function be(ue,oe,de,ve){this.line=oe,this.ch=de,this.cm=ue,this.text=ue.getLine(oe),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,oe){var de=ue.cm.getTokenTypeAt(Ie(ue.line,oe));return de&&/\btag\b/.test(de)}function ct(ue){if(!(ue.line>=ue.max))return ue.ch=0,ue.text=ue.cm.getLine(++ue.line),!0}function Xe(ue){if(!(ue.line<=ue.min))return ue.text=ue.cm.getLine(--ue.line),ue.ch=ue.text.length,!0}function et(ue){for(;;){var oe=ue.text.indexOf(">",ue.ch);if(oe==-1){if(ct(ue))continue;return}if(!yt(ue,oe+1)){ue.ch=oe+1;continue}var de=ue.text.lastIndexOf("/",oe),ve=de>-1&&!/\S/.test(ue.text.slice(de+1,oe));return ue.ch=oe+1,ve?"selfClose":"regular"}}function Je(ue){for(;;){var oe=ue.ch?ue.text.lastIndexOf("<",ue.ch-1):-1;if(oe==-1){if(Xe(ue))continue;return}if(!yt(ue,oe+1)){ue.ch=oe;continue}it.lastIndex=oe,ue.ch=oe;var de=it.exec(ue.text);if(de&&de.index==oe)return de}}function Ue(ue){for(;;){it.lastIndex=ue.ch;var oe=it.exec(ue.text);if(!oe){if(ct(ue))continue;return}if(!yt(ue,oe.index+1)){ue.ch=oe.index+1;continue}return ue.ch=oe.index+oe[0].length,oe}}function Ee(ue){for(;;){var oe=ue.ch?ue.text.lastIndexOf(">",ue.ch-1):-1;if(oe==-1){if(Xe(ue))continue;return}if(!yt(ue,oe+1)){ue.ch=oe;continue}var de=ue.text.lastIndexOf("/",oe),ve=de>-1&&!/\S/.test(ue.text.slice(de+1,oe));return ue.ch=oe+1,ve?"selfClose":"regular"}}function ee(ue,oe){for(var de=[];;){var ve=Ue(ue),xe,Ae=ue.line,Pe=ue.ch-(ve?ve[0].length:0);if(!ve||!(xe=et(ue)))return;if(xe!="selfClose")if(ve[1]){for(var Ne=de.length-1;Ne>=0;--Ne)if(de[Ne]==ve[2]){de.length=Ne;break}if(Ne<0&&(!oe||oe==ve[2]))return{tag:ve[2],from:Ie(Ae,Pe),to:Ie(ue.line,ue.ch)}}else de.push(ve[2])}}function te(ue,oe){for(var de=[];;){var ve=Ee(ue);if(!ve)return;if(ve=="selfClose"){Je(ue);continue}var xe=ue.line,Ae=ue.ch,Pe=Je(ue);if(!Pe)return;if(Pe[1])de.push(Pe[2]);else{for(var Ne=de.length-1;Ne>=0;--Ne)if(de[Ne]==Pe[2]){de.length=Ne;break}if(Ne<0&&(!oe||oe==Pe[2]))return{tag:Pe[2],from:Ie(ue.line,ue.ch),to:Ie(xe,Ae)}}}}ge.registerHelper("fold","xml",function(ue,oe){for(var de=new be(ue,oe.line,0);;){var ve=Ue(de);if(!ve||de.line!=oe.line)return;var xe=et(de);if(!xe)return;if(!ve[1]&&xe!="selfClose"){var Ae=Ie(de.line,de.ch),Pe=ee(de,ve[2]);return Pe&&Ke(Pe.from,Ae)>0?{from:Ae,to:Pe.from}:null}}}),ge.findMatchingTag=function(ue,oe,de){var ve=new be(ue,oe.line,oe.ch,de);if(!(ve.text.indexOf(">")==-1&&ve.text.indexOf("<")==-1)){var xe=et(ve),Ae=xe&&Ie(ve.line,ve.ch),Pe=xe&&Je(ve);if(!(!xe||!Pe||Ke(ve,oe)>0)){var Ne={from:Ie(ve.line,ve.ch),to:Ae,tag:Pe[2]};return xe=="selfClose"?{open:Ne,close:null,at:"open"}:Pe[1]?{open:te(ve,Pe[2]),close:Ne,at:"close"}:(ve=new be(ue,Ae.line,Ae.ch,de),{open:Ne,close:ee(ve,Pe[2]),at:"open"})}}},ge.findEnclosingTag=function(ue,oe,de,ve){for(var xe=new be(ue,oe.line,oe.ch,de);;){var Ae=te(xe,ve);if(!Ae)break;var Pe=new be(ue,oe.line,oe.ch,de),Ne=ee(Pe,Ae.tag);if(Ne)return{open:Ae,close:Ne}}},ge.scanForClosingTag=function(ue,oe,de,ve){var xe=new be(ue,oe.line,oe.ch,ve?{from:0,to:ve}:null);return ee(xe,de)}})},89780:function(fn){(function(jt,he){fn.exports=he()})(this,function(){"use strict";var jt=navigator.userAgent,he=navigator.platform,ge=/gecko\/\d/i.test(jt),Ie=/MSIE \d/.test(jt),Ke=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jt),ot=/Edge\/(\d+)/.exec(jt),He=Ie||Ke||ot,it=He&&(Ie?document.documentMode||6:+(ot||Ke)[1]),be=!ot&&/WebKit\//.test(jt),yt=be&&/Qt\/\d+\.\d+/.test(jt),ct=!ot&&/Chrome\//.test(jt),Xe=/Opera\//.test(jt),et=/Apple Computer/.test(navigator.vendor),Je=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(jt),Ue=/PhantomJS/.test(jt),Ee=!ot&&/AppleWebKit/.test(jt)&&/Mobile\/\w+/.test(jt),ee=/Android/.test(jt),te=Ee||ee||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(jt),ue=Ee||/Mac/.test(he),oe=/\bCrOS\b/.test(jt),de=/win/i.test(he),ve=Xe&&jt.match(/Version\/(\d*\.\d*)/);ve&&(ve=Number(ve[1])),ve&&ve>=15&&(Xe=!1,be=!0);var xe=ue&&(yt||Xe&&(ve==null||ve<12.11)),Ae=ge||He&&it>=9;function Pe(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ne=function(ie,se){var pe=ie.className,fe=Pe(se).exec(pe);if(fe){var Se=pe.slice(fe.index+fe[0].length);ie.className=pe.slice(0,fe.index)+(Se?fe[1]+Se:"")}};function Le(ie){for(var se=ie.childNodes.length;se>0;--se)ie.removeChild(ie.firstChild);return ie}function Re(ie,se){return Le(ie).appendChild(se)}function je(ie,se,pe,fe){var Se=document.createElement(ie);if(pe&&(Se.className=pe),fe&&(Se.style.cssText=fe),typeof se=="string")Se.appendChild(document.createTextNode(se));else if(se)for(var Te=0;Te<se.length;++Te)Se.appendChild(se[Te]);return Se}function Ge(ie,se,pe,fe){var Se=je(ie,se,pe,fe);return Se.setAttribute("role","presentation"),Se}var We;document.createRange?We=function(ie,se,pe,fe){var Se=document.createRange();return Se.setEnd(fe||ie,pe),Se.setStart(ie,se),Se}:We=function(ie,se,pe){var fe=document.body.createTextRange();try{fe.moveToElementText(ie.parentNode)}catch(Se){return fe}return fe.collapse(!0),fe.moveEnd("character",pe),fe.moveStart("character",se),fe};function bt(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 Qe(){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 Dt(ie,se){var pe=ie.className;Pe(se).test(pe)||(ie.className+=(pe?" ":"")+se)}function vt(ie,se){for(var pe=ie.split(" "),fe=0;fe<pe.length;fe++)pe[fe]&&!Pe(pe[fe]).test(se)&&(se+=" "+pe[fe]);return se}var kt=function(ie){ie.select()};Ee?kt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:He&&(kt=function(ie){try{ie.select()}catch(se){}});function Rt(ie){var se=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,se)}}function Jt(ie,se,pe){se||(se={});for(var fe in ie)ie.hasOwnProperty(fe)&&(pe!==!1||!se.hasOwnProperty(fe))&&(se[fe]=ie[fe]);return se}function at(ie,se,pe,fe,Se){se==null&&(se=ie.search(/[^\s\u00a0]/),se==-1&&(se=ie.length));for(var Te=fe||0,_e=Se||0;;){var ht=ie.indexOf(" ",Te);if(ht<0||ht>=se)return _e+(se-Te);_e+=ht-Te,_e+=pe-_e%pe,Te=ht+1}}var Ze=function(){this.id=null,this.f=null,this.time=0,this.handler=Rt(this.onTimeout,this)};Ze.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},Ze.prototype.set=function(ie,se){this.f=se;var pe=+new Date+ie;(!this.id||pe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=pe)};function Mt(ie,se){for(var pe=0;pe<ie.length;++pe)if(ie[pe]==se)return pe;return-1}var Yt=50,Vt={toString:function(){return"CodeMirror.Pass"}},Ct={scroll:!1},Nt={origin:"*mouse"},sn={origin:"+move"};function Nn(ie,se,pe){for(var fe=0,Se=0;;){var Te=ie.indexOf(" ",fe);Te==-1&&(Te=ie.length);var _e=Te-fe;if(Te==ie.length||Se+_e>=se)return fe+Math.min(_e,se-Se);if(Se+=Te-fe,Se+=pe-Se%pe,fe=Te+1,Se>=se)return fe}}var hn=[""];function Xn(ie){for(;hn.length<=ie;)hn.push(Ft(hn)+" ");return hn[ie]}function Ft(ie){return ie[ie.length-1]}function Un(ie,se){for(var pe=[],fe=0;fe<ie.length;fe++)pe[fe]=se(ie[fe],fe);return pe}function Kn(ie,se,pe){for(var fe=0,Se=pe(se);fe<ie.length&&pe(ie[fe])<=Se;)fe++;ie.splice(fe,0,se)}function ti(){}function Fn(ie,se){var pe;return Object.create?pe=Object.create(ie):(ti.prototype=ie,pe=new ti),se&&Jt(se,pe),pe}var Zt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Xt(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||Zt.test(ie))}function mt(ie,se){return se?se.source.indexOf("\\w")>-1&&Xt(ie)?!0:se.test(ie):Xt(ie)}function tt(ie){for(var se in ie)if(ie.hasOwnProperty(se)&&ie[se])return!1;return!0}var Wt=/[\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 Lt(ie){return ie.charCodeAt(0)>=768&&Wt.test(ie)}function pt(ie,se,pe){for(;(pe<0?se>0:se<ie.length)&&Lt(ie.charAt(se));)se+=pe;return se}function nt(ie,se,pe){for(var fe=se>pe?-1:1;;){if(se==pe)return se;var Se=(se+pe)/2,Te=fe<0?Math.ceil(Se):Math.floor(Se);if(Te==se)return ie(Te)?se:pe;ie(Te)?pe=Te:se=Te+fe}}function Oe(ie,se,pe,fe){if(!ie)return fe(se,pe,"ltr",0);for(var Se=!1,Te=0;Te<ie.length;++Te){var _e=ie[Te];(_e.from<pe&&_e.to>se||se==pe&&_e.to==se)&&(fe(Math.max(_e.from,se),Math.min(_e.to,pe),_e.level==1?"rtl":"ltr",Te),Se=!0)}Se||fe(se,pe,"ltr")}var we=null;function ye(ie,se,pe){var fe;we=null;for(var Se=0;Se<ie.length;++Se){var Te=ie[Se];if(Te.from<se&&Te.to>se)return Se;Te.to==se&&(Te.from!=Te.to&&pe=="before"?fe=Se:we=Se),Te.from==se&&(Te.from!=Te.to&&pe!="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 pe(Tt){return Tt<=247?ie.charAt(Tt):1424<=Tt&&Tt<=1524?"R":1536<=Tt&&Tt<=1785?se.charAt(Tt-1536):1774<=Tt&&Tt<=2220?"r":8192<=Tt&&Tt<=8203?"w":Tt==8204?"b":"L"}var fe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Se=/[stwN]/,Te=/[LRr]/,_e=/[Lb1n]/,ht=/[1n]/;function lt(Tt,wn,Gt){this.level=Tt,this.from=wn,this.to=Gt}return function(Tt,wn){var Gt=wn=="ltr"?"L":"R";if(Tt.length==0||wn=="ltr"&&!fe.test(Tt))return!1;for(var ei=Tt.length,Jn=[],Wi=0;Wi<ei;++Wi)Jn.push(pe(Tt.charCodeAt(Wi)));for(var Ui=0,vr=Gt;Ui<ei;++Ui){var zr=Jn[Ui];zr=="m"?Jn[Ui]=vr:vr=zr}for(var xo=0,ro=Gt;xo<ei;++xo){var Oo=Jn[xo];Oo=="1"&&ro=="r"?Jn[xo]="n":Te.test(Oo)&&(ro=Oo,Oo=="r"&&(Jn[xo]="R"))}for(var ua=1,$r=Jn[0];ua<ei-1;++ua){var Da=Jn[ua];Da=="+"&&$r=="1"&&Jn[ua+1]=="1"?Jn[ua]="1":Da==","&&$r==Jn[ua+1]&&($r=="1"||$r=="n")&&(Jn[ua]=$r),$r=Da}for(var nl=0;nl<ei;++nl){var Hl=Jn[nl];if(Hl==",")Jn[nl]="N";else if(Hl=="%"){var hl=void 0;for(hl=nl+1;hl<ei&&Jn[hl]=="%";++hl);for(var ju=nl&&Jn[nl-1]=="!"||hl<ei&&Jn[hl]=="1"?"1":"N",xu=nl;xu<hl;++xu)Jn[xu]=ju;nl=hl-1}}for(var Il=0,ec=Gt;Il<ei;++Il){var cu=Jn[Il];ec=="L"&&cu=="1"?Jn[Il]="L":Te.test(cu)&&(ec=cu)}for(var Rl=0;Rl<ei;++Rl)if(Se.test(Jn[Rl])){var gs=void 0;for(gs=Rl+1;gs<ei&&Se.test(Jn[gs]);++gs);for(var pl=(Rl?Jn[Rl-1]:Gt)=="L",_l=(gs<ei?Jn[gs]:Gt)=="L",du=pl==_l?pl?"L":"R":Gt,Uc=Rl;Uc<gs;++Uc)Jn[Uc]=du;Rl=gs-1}for(var fl=[],Nc,El=0;El<ei;)if(_e.test(Jn[El])){var Qf=El;for(++El;El<ei&&_e.test(Jn[El]);++El);fl.push(new lt(0,Qf,El))}else{var yc=El,tc=fl.length,Hu=wn=="rtl"?1:0;for(++El;El<ei&&Jn[El]!="L";++El);for(var Gs=yc;Gs<El;)if(ht.test(Jn[Gs])){yc<Gs&&(fl.splice(tc,0,new lt(1,yc,Gs)),tc+=Hu);var Jl=Gs;for(++Gs;Gs<El&&ht.test(Jn[Gs]);++Gs);fl.splice(tc,0,new lt(2,Jl,Gs)),tc+=Hu,yc=Gs}else++Gs;yc<El&&fl.splice(tc,0,new lt(1,yc,El))}return wn=="ltr"&&(fl[0].level==1&&(Nc=Tt.match(/^\s+/))&&(fl[0].from=Nc[0].length,fl.unshift(new lt(0,0,Nc[0].length))),Ft(fl).level==1&&(Nc=Tt.match(/\s+$/))&&(Ft(fl).to-=Nc[0].length,fl.push(new lt(0,ei-Nc[0].length,ei)))),wn=="rtl"?fl.reverse():fl}}();function Ve(ie,se){var pe=ie.order;return pe==null&&(pe=ie.order=ke(ie.text,se)),pe}var Be=[],dt=function(ie,se,pe){if(ie.addEventListener)ie.addEventListener(se,pe,!1);else if(ie.attachEvent)ie.attachEvent("on"+se,pe);else{var fe=ie._handlers||(ie._handlers={});fe[se]=(fe[se]||Be).concat(pe)}};function on(ie,se){return ie._handlers&&ie._handlers[se]||Be}function mn(ie,se,pe){if(ie.removeEventListener)ie.removeEventListener(se,pe,!1);else if(ie.detachEvent)ie.detachEvent("on"+se,pe);else{var fe=ie._handlers,Se=fe&&fe[se];if(Se){var Te=Mt(Se,pe);Te>-1&&(fe[se]=Se.slice(0,Te).concat(Se.slice(Te+1)))}}}function Et(ie,se){var pe=on(ie,se);if(pe.length)for(var fe=Array.prototype.slice.call(arguments,2),Se=0;Se<pe.length;++Se)pe[Se].apply(null,fe)}function Ot(ie,se,pe){return typeof se=="string"&&(se={type:se,preventDefault:function(){this.defaultPrevented=!0}}),Et(ie,pe||se.type,ie,se),wi(se)||se.codemirrorIgnore}function yn(ie){var se=ie._handlers&&ie._handlers.cursorActivity;if(se)for(var pe=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),fe=0;fe<se.length;++fe)Mt(pe,se[fe])==-1&&pe.push(se[fe])}function Tn(ie,se){return on(ie,se).length>0}function qn(ie){ie.prototype.on=function(se,pe){dt(this,se,pe)},ie.prototype.off=function(se,pe){mn(this,se,pe)}}function vi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function gi(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function wi(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function _n(ie){vi(ie),gi(ie)}function yr(ie){return ie.target||ie.srcElement}function ir(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 fr=function(){if(He&&it<9)return!1;var ie=je("div");return"draggable"in ie||"dragDrop"in ie}(),xr;function jr(ie){if(xr==null){var se=je("span","\u200B");Re(ie,je("span",[se,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(xr=se.offsetWidth<=1&&se.offsetHeight>2&&!(He&&it<8))}var pe=xr?je("span","\u200B"):je("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return pe.setAttribute("cm-text",""),pe}var Ki;function Ir(ie){if(Ki!=null)return Ki;var se=Re(ie,document.createTextNode("A\u062EA")),pe=We(se,0,1).getBoundingClientRect(),fe=We(se,1,2).getBoundingClientRect();return Le(ie),!pe||pe.left==pe.right?!1:Ki=fe.right-pe.right<3}var Vi=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var se=0,pe=[],fe=ie.length;se<=fe;){var Se=ie.indexOf(`
|
|
|
`,se);Se==-1&&(Se=ie.length);var Te=ie.slice(se,ie.charAt(Se-1)=="\r"?Se-1:Se),_e=Te.indexOf("\r");_e!=-1?(pe.push(Te.slice(0,_e)),se+=_e+1):(pe.push(Te),se=Se+1)}return pe}:function(ie){return ie.split(/\r\n?|\n/)},Me=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(pe){}return!se||se.parentElement()!=ie?!1:se.compareEndPoints("StartToEnd",se)!=0},Ai=function(){var ie=je("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Xi=null;function gr(ie){if(Xi!=null)return Xi;var se=Re(ie,je("span","x")),pe=se.getBoundingClientRect(),fe=We(se,0,1).getBoundingClientRect();return Xi=Math.abs(pe.left-fe.left)>1}var tr={},uo={};function qr(ie,se){arguments.length>2&&(se.dependencies=Array.prototype.slice.call(arguments,2)),tr[ie]=se}function Ni(ie,se){uo[ie]=se}function an(ie){if(typeof ie=="string"&&uo.hasOwnProperty(ie))ie=uo[ie];else if(ie&&typeof ie.name=="string"&&uo.hasOwnProperty(ie.name)){var se=uo[ie.name];typeof se=="string"&&(se={name:se}),ie=Fn(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 en(ie,se){se=an(se);var pe=tr[se.name];if(!pe)return en(ie,"text/plain");var fe=pe(ie,se);if(Kt.hasOwnProperty(se.name)){var Se=Kt[se.name];for(var Te in Se)Se.hasOwnProperty(Te)&&(fe.hasOwnProperty(Te)&&(fe["_"+Te]=fe[Te]),fe[Te]=Se[Te])}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 Kt={};function Pt(ie,se){var pe=Kt.hasOwnProperty(ie)?Kt[ie]:Kt[ie]={};Jt(se,pe)}function Sn(ie,se){if(se===!0)return se;if(ie.copyState)return ie.copyState(se);var pe={};for(var fe in se){var Se=se[fe];Se instanceof Array&&(Se=Se.concat([])),pe[fe]=Se}return pe}function bn(ie,se){for(var pe;ie.innerMode&&(pe=ie.innerMode(se),!(!pe||pe.mode==ie));)se=pe.state,ie=pe.mode;return pe||{mode:ie,state:se}}function zt(ie,se,pe){return ie.startState?ie.startState(se,pe):!0}var gt=function(ie,se,pe){this.pos=this.start=0,this.string=ie,this.tabSize=se||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=pe};gt.prototype.eol=function(){return this.pos>=this.string.length},gt.prototype.sol=function(){return this.pos==this.lineStart},gt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},gt.prototype.eat=function(ie){var se=this.string.charAt(this.pos),pe;if(typeof ie=="string"?pe=se==ie:pe=se&&(ie.test?ie.test(se):ie(se)),pe)return++this.pos,se},gt.prototype.eatWhile=function(ie){for(var se=this.pos;this.eat(ie););return this.pos>se},gt.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},gt.prototype.skipToEnd=function(){this.pos=this.string.length},gt.prototype.skipTo=function(ie){var se=this.string.indexOf(ie,this.pos);if(se>-1)return this.pos=se,!0},gt.prototype.backUp=function(ie){this.pos-=ie},gt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=at(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?at(this.string,this.lineStart,this.tabSize):0)},gt.prototype.indentation=function(){return at(this.string,null,this.tabSize)-(this.lineStart?at(this.string,this.lineStart,this.tabSize):0)},gt.prototype.match=function(ie,se,pe){if(typeof ie=="string"){var fe=function(_e){return pe?_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 Te=this.string.slice(this.pos).match(ie);return Te&&Te.index>0?null:(Te&&se!==!1&&(this.pos+=Te[0].length),Te)}},gt.prototype.current=function(){return this.string.slice(this.start,this.pos)},gt.prototype.hideFirstChars=function(ie,se){this.lineStart+=ie;try{return se()}finally{this.lineStart-=ie}},gt.prototype.lookAhead=function(ie){var se=this.lineOracle;return se&&se.lookAhead(ie)},gt.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function xn(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 pe=ie;!pe.lines;)for(var fe=0;;++fe){var Se=pe.children[fe],Te=Se.chunkSize();if(se<Te){pe=Se;break}se-=Te}return pe.lines[se]}function Ln(ie,se,pe){var fe=[],Se=se.line;return ie.iter(se.line,pe.line+1,function(Te){var _e=Te.text;Se==pe.line&&(_e=_e.slice(0,pe.ch)),Se==se.line&&(_e=_e.slice(se.ch)),fe.push(_e),++Se}),fe}function pi(ie,se,pe){var fe=[];return ie.iter(se,pe,function(Se){fe.push(Se.text)}),fe}function Mn(ie,se){var pe=se-ie.height;if(pe)for(var fe=ie;fe;fe=fe.parent)fe.height+=pe}function It(ie){if(ie.parent==null)return null;for(var se=ie.parent,pe=Mt(se.lines,ie),fe=se.parent;fe;se=fe,fe=fe.parent)for(var Se=0;fe.children[Se]!=se;++Se)pe+=fe.children[Se].chunkSize();return pe+se.first}function gn(ie,se){var pe=ie.first;e:do{for(var fe=0;fe<ie.children.length;++fe){var Se=ie.children[fe],Te=Se.height;if(se<Te){ie=Se;continue e}se-=Te,pe+=Se.chunkSize()}return pe}while(!ie.lines);for(var _e=0;_e<ie.lines.length;++_e){var ht=ie.lines[_e],lt=ht.height;if(se<lt)break;se-=lt}return pe+_e}function nn(ie,se){return se>=ie.first&&se<ie.first+ie.size}function ui(ie,se){return String(ie.lineNumberFormatter(se+ie.firstLineNumber))}function Qt(ie,se,pe){if(pe===void 0&&(pe=null),!(this instanceof Qt))return new Qt(ie,se,pe);this.line=ie,this.ch=se,this.sticky=pe}function Cn(ie,se){return ie.line-se.line||ie.ch-se.ch}function $t(ie,se){return ie.sticky==se.sticky&&Cn(ie,se)==0}function vn(ie){return Qt(ie.line,ie.ch)}function En(ie,se){return Cn(ie,se)<0?se:ie}function Pn(ie,se){return Cn(ie,se)<0?ie:se}function Rn(ie,se){return Math.max(ie.first,Math.min(se,ie.first+ie.size-1))}function Yn(ie,se){if(se.line<ie.first)return Qt(ie.first,0);var pe=ie.first+ie.size-1;return se.line>pe?Qt(pe,xn(ie,pe).text.length):Zn(se,xn(ie,se.line).text.length)}function Zn(ie,se){var pe=ie.ch;return pe==null||pe>se?Qt(ie.line,se):pe<0?Qt(ie.line,0):ie}function ri(ie,se){for(var pe=[],fe=0;fe<se.length;fe++)pe[fe]=Yn(ie,se[fe]);return pe}var Gn=function(ie,se){this.state=ie,this.lookAhead=se},di=function(ie,se,pe,fe){this.state=se,this.doc=ie,this.line=pe,this.maxLookAhead=fe||0,this.baseTokens=null,this.baseTokenPos=1};di.prototype.lookAhead=function(ie){var se=this.doc.getLine(this.line+ie);return se!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),se},di.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}},di.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},di.fromSaved=function(ie,se,pe){return se instanceof Gn?new di(ie,Sn(ie.mode,se.state),pe,se.lookAhead):new di(ie,Sn(ie.mode,se),pe)},di.prototype.save=function(ie){var se=ie!==!1?Sn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Gn(se,this.maxLookAhead):se};function rr(ie,se,pe,fe){var Se=[ie.state.modeGen],Te={};Nr(ie,se.text,ie.doc.mode,pe,function(Tt,wn){return Se.push(Tt,wn)},Te,fe);for(var _e=pe.state,ht=function(Tt){pe.baseTokens=Se;var wn=ie.state.overlays[Tt],Gt=1,ei=0;pe.state=!0,Nr(ie,se.text,wn.mode,pe,function(Jn,Wi){for(var Ui=Gt;ei<Jn;){var vr=Se[Gt];vr>Jn&&Se.splice(Gt,1,Jn,Se[Gt+1],vr),Gt+=2,ei=Math.min(Jn,vr)}if(Wi)if(wn.opaque)Se.splice(Ui,Gt-Ui,Jn,"overlay "+Wi),Gt=Ui+2;else for(;Ui<Gt;Ui+=2){var zr=Se[Ui+1];Se[Ui+1]=(zr?zr+" ":"")+"overlay "+Wi}},Te),pe.state=_e,pe.baseTokens=null,pe.baseTokenPos=1},lt=0;lt<ie.state.overlays.length;++lt)ht(lt);return{styles:Se,classes:Te.bgClass||Te.textClass?Te:null}}function Dr(ie,se,pe){if(!se.styles||se.styles[0]!=ie.state.modeGen){var fe=ar(ie,It(se)),Se=se.text.length>ie.options.maxHighlightLength&&Sn(ie.doc.mode,fe.state),Te=rr(ie,se,fe);Se&&(fe.state=Se),se.stateAfter=fe.save(!Se),se.styles=Te.styles,Te.classes?se.styleClasses=Te.classes:se.styleClasses&&(se.styleClasses=null),pe===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return se.styles}function ar(ie,se,pe){var fe=ie.doc,Se=ie.display;if(!fe.mode.startState)return new di(fe,!0,se);var Te=cr(ie,se,pe),_e=Te>fe.first&&xn(fe,Te-1).stateAfter,ht=_e?di.fromSaved(fe,_e,Te):new di(fe,zt(fe.mode),Te);return fe.iter(Te,se,function(lt){qt(ie,lt.text,ht);var Tt=ht.line;lt.stateAfter=Tt==se-1||Tt%5==0||Tt>=Se.viewFrom&&Tt<Se.viewTo?ht.save():null,ht.nextLine()}),pe&&(fe.modeFrontier=ht.line),ht}function qt(ie,se,pe,fe){var Se=ie.doc.mode,Te=new gt(se,ie.options.tabSize,pe);for(Te.start=Te.pos=fe||0,se==""&&Li(Se,pe.state);!Te.eol();)Ji(Se,Te,pe.state),Te.start=Te.pos}function Li(ie,se){if(ie.blankLine)return ie.blankLine(se);if(ie.innerMode){var pe=bn(ie,se);if(pe.mode.blankLine)return pe.mode.blankLine(pe.state)}}function Ji(ie,se,pe,fe){for(var Se=0;Se<10;Se++){fe&&(fe[0]=bn(ie,pe).mode);var Te=ie.token(se,pe);if(se.pos>se.start)return Te}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Ti=function(ie,se,pe){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=se||null,this.state=pe};function bi(ie,se,pe,fe){var Se=ie.doc,Te=Se.mode,_e;se=Yn(Se,se);var ht=xn(Se,se.line),lt=ar(ie,se.line,pe),Tt=new gt(ht.text,ie.options.tabSize,lt),wn;for(fe&&(wn=[]);(fe||Tt.pos<se.ch)&&!Tt.eol();)Tt.start=Tt.pos,_e=Ji(Te,Tt,lt.state),fe&&wn.push(new Ti(Tt,_e,Sn(Se.mode,lt.state)));return fe?wn:new Ti(Tt,_e,lt.state)}function sr(ie,se){if(ie)for(;;){var pe=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!pe)break;ie=ie.slice(0,pe.index)+ie.slice(pe.index+pe[0].length);var fe=pe[1]?"bgClass":"textClass";se[fe]==null?se[fe]=pe[2]:new RegExp("(?:^|\\s)"+pe[2]+"(?:$|\\s)").test(se[fe])||(se[fe]+=" "+pe[2])}return ie}function Nr(ie,se,pe,fe,Se,Te,_e){var ht=pe.flattenSpans;ht==null&&(ht=ie.options.flattenSpans);var lt=0,Tt=null,wn=new gt(se,ie.options.tabSize,fe),Gt,ei=ie.options.addModeClass&&[null];for(se==""&&sr(Li(pe,fe.state),Te);!wn.eol();){if(wn.pos>ie.options.maxHighlightLength?(ht=!1,_e&&qt(ie,se,fe,wn.pos),wn.pos=se.length,Gt=null):Gt=sr(Ji(pe,wn,fe.state,ei),Te),ei){var Jn=ei[0].name;Jn&&(Gt="m-"+(Gt?Jn+" "+Gt:Jn))}if(!ht||Tt!=Gt){for(;lt<wn.start;)lt=Math.min(wn.start,lt+5e3),Se(lt,Tt);Tt=Gt}wn.start=wn.pos}for(;lt<wn.pos;){var Wi=Math.min(wn.pos,lt+5e3);Se(Wi,Tt),lt=Wi}}function cr(ie,se,pe){for(var fe,Se,Te=ie.doc,_e=pe?-1:se-(ie.doc.mode.innerMode?1e3:100),ht=se;ht>_e;--ht){if(ht<=Te.first)return Te.first;var lt=xn(Te,ht-1),Tt=lt.stateAfter;if(Tt&&(!pe||ht+(Tt instanceof Gn?Tt.lookAhead:0)<=Te.modeFrontier))return ht;var wn=at(lt.text,null,ie.options.tabSize);(Se==null||fe>wn)&&(Se=ht-1,fe=wn)}return Se}function Zi(ie,se){if(ie.modeFrontier=Math.min(ie.modeFrontier,se),!(ie.highlightFrontier<se-10)){for(var pe=ie.first,fe=se-1;fe>pe;fe--){var Se=xn(ie,fe).stateAfter;if(Se&&(!(Se instanceof Gn)||fe+Se.lookAhead<se)){pe=fe+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,pe)}}var Jr=!1,On=!1;function Ho(){Jr=!0}function Dn(){On=!0}function Rr(ie,se,pe){this.marker=ie,this.from=se,this.to=pe}function ca(ie,se){if(ie)for(var pe=0;pe<ie.length;++pe){var fe=ie[pe];if(fe.marker==se)return fe}}function fo(ie,se){for(var pe,fe=0;fe<ie.length;++fe)ie[fe]!=se&&(pe||(pe=[])).push(ie[fe]);return pe}function Ha(ie,se){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([se]):[se],se.marker.attachLine(ie)}function oa(ie,se,pe){var fe;if(ie)for(var Se=0;Se<ie.length;++Se){var Te=ie[Se],_e=Te.marker,ht=Te.from==null||(_e.inclusiveLeft?Te.from<=se:Te.from<se);if(ht||Te.from==se&&_e.type=="bookmark"&&(!pe||!Te.marker.insertLeft)){var lt=Te.to==null||(_e.inclusiveRight?Te.to>=se:Te.to>se);(fe||(fe=[])).push(new Rr(_e,Te.from,lt?null:Te.to))}}return fe}function xt(ie,se,pe){var fe;if(ie)for(var Se=0;Se<ie.length;++Se){var Te=ie[Se],_e=Te.marker,ht=Te.to==null||(_e.inclusiveRight?Te.to>=se:Te.to>se);if(ht||Te.from==se&&_e.type=="bookmark"&&(!pe||Te.marker.insertLeft)){var lt=Te.from==null||(_e.inclusiveLeft?Te.from<=se:Te.from<se);(fe||(fe=[])).push(new Rr(_e,lt?null:Te.from-se,Te.to==null?null:Te.to-se))}}return fe}function kn(ie,se){if(se.full)return null;var pe=nn(ie,se.from.line)&&xn(ie,se.from.line).markedSpans,fe=nn(ie,se.to.line)&&xn(ie,se.to.line).markedSpans;if(!pe&&!fe)return null;var Se=se.from.ch,Te=se.to.ch,_e=Cn(se.from,se.to)==0,ht=oa(pe,Se,_e),lt=xt(fe,Te,_e),Tt=se.text.length==1,wn=Ft(se.text).length+(Tt?Se:0);if(ht)for(var Gt=0;Gt<ht.length;++Gt){var ei=ht[Gt];if(ei.to==null){var Jn=ca(lt,ei.marker);Jn?Tt&&(ei.to=Jn.to==null?null:Jn.to+wn):ei.to=Se}}if(lt)for(var Wi=0;Wi<lt.length;++Wi){var Ui=lt[Wi];if(Ui.to!=null&&(Ui.to+=wn),Ui.from==null){var vr=ca(ht,Ui.marker);vr||(Ui.from=wn,Tt&&(ht||(ht=[])).push(Ui))}else Ui.from+=wn,Tt&&(ht||(ht=[])).push(Ui)}ht&&(ht=Hn(ht)),lt&<!=ht&&(lt=Hn(lt));var zr=[ht];if(!Tt){var xo=se.text.length-2,ro;if(xo>0&&ht)for(var Oo=0;Oo<ht.length;++Oo)ht[Oo].to==null&&(ro||(ro=[])).push(new Rr(ht[Oo].marker,null,null));for(var ua=0;ua<xo;++ua)zr.push(ro);zr.push(lt)}return zr}function Hn(ie){for(var se=0;se<ie.length;++se){var pe=ie[se];pe.from!=null&&pe.from==pe.to&&pe.marker.clearWhenEmpty!==!1&&ie.splice(se--,1)}return ie.length?ie:null}function Ei(ie,se,pe){var fe=null;if(ie.iter(se.line,pe.line+1,function(Jn){if(Jn.markedSpans)for(var Wi=0;Wi<Jn.markedSpans.length;++Wi){var Ui=Jn.markedSpans[Wi].marker;Ui.readOnly&&(!fe||Mt(fe,Ui)==-1)&&(fe||(fe=[])).push(Ui)}}),!fe)return null;for(var Se=[{from:se,to:pe}],Te=0;Te<fe.length;++Te)for(var _e=fe[Te],ht=_e.find(0),lt=0;lt<Se.length;++lt){var Tt=Se[lt];if(!(Cn(Tt.to,ht.from)<0||Cn(Tt.from,ht.to)>0)){var wn=[lt,1],Gt=Cn(Tt.from,ht.from),ei=Cn(Tt.to,ht.to);(Gt<0||!_e.inclusiveLeft&&!Gt)&&wn.push({from:Tt.from,to:ht.from}),(ei>0||!_e.inclusiveRight&&!ei)&&wn.push({from:ht.to,to:Tt.to}),Se.splice.apply(Se,wn),lt+=wn.length-3}}return Se}function Si(ie){var se=ie.markedSpans;if(se){for(var pe=0;pe<se.length;++pe)se[pe].marker.detachLine(ie);ie.markedSpans=null}}function $e(ie,se){if(se){for(var pe=0;pe<se.length;++pe)se[pe].marker.attachLine(ie);ie.markedSpans=se}}function Fi(ie){return ie.inclusiveLeft?-1:0}function eo(ie){return ie.inclusiveRight?1:0}function Qi(ie,se){var pe=ie.lines.length-se.lines.length;if(pe!=0)return pe;var fe=ie.find(),Se=se.find(),Te=Cn(fe.from,Se.from)||Fi(ie)-Fi(se);if(Te)return-Te;var _e=Cn(fe.to,Se.to)||eo(ie)-eo(se);return _e||se.id-ie.id}function Vr(ie,se){var pe=On&&ie.markedSpans,fe;if(pe)for(var Se=void 0,Te=0;Te<pe.length;++Te)Se=pe[Te],Se.marker.collapsed&&(se?Se.from:Se.to)==null&&(!fe||Qi(fe,Se.marker)<0)&&(fe=Se.marker);return fe}function pr(ie){return Vr(ie,!0)}function Er(ie){return Vr(ie,!1)}function oo(ie,se){var pe=On&&ie.markedSpans,fe;if(pe)for(var Se=0;Se<pe.length;++Se){var Te=pe[Se];Te.marker.collapsed&&(Te.from==null||Te.from<se)&&(Te.to==null||Te.to>se)&&(!fe||Qi(fe,Te.marker)<0)&&(fe=Te.marker)}return fe}function bo(ie,se,pe,fe,Se){var Te=xn(ie,se),_e=On&&Te.markedSpans;if(_e)for(var ht=0;ht<_e.length;++ht){var lt=_e[ht];if(lt.marker.collapsed){var Tt=lt.marker.find(0),wn=Cn(Tt.from,pe)||Fi(lt.marker)-Fi(Se),Gt=Cn(Tt.to,fe)||eo(lt.marker)-eo(Se);if(!(wn>=0&&Gt<=0||wn<=0&&Gt>=0)&&(wn<=0&&(lt.marker.inclusiveRight&&Se.inclusiveLeft?Cn(Tt.to,pe)>=0:Cn(Tt.to,pe)>0)||wn>=0&&(lt.marker.inclusiveRight&&Se.inclusiveLeft?Cn(Tt.from,fe)<=0:Cn(Tt.from,fe)<0)))return!0}}}function Ur(ie){for(var se;se=pr(ie);)ie=se.find(-1,!0).line;return ie}function Io(ie){for(var se;se=Er(ie);)ie=se.find(1,!0).line;return ie}function lr(ie){for(var se,pe;se=Er(ie);)ie=se.find(1,!0).line,(pe||(pe=[])).push(ie);return pe}function $i(ie,se){var pe=xn(ie,se),fe=Ur(pe);return pe==fe?se:It(fe)}function Br(ie,se){if(se>ie.lastLine())return se;var pe=xn(ie,se),fe;if(!oi(ie,pe))return se;for(;fe=Er(pe);)pe=fe.find(1,!0).line;return It(pe)+1}function oi(ie,se){var pe=On&&se.markedSpans;if(pe){for(var fe=void 0,Se=0;Se<pe.length;++Se)if(fe=pe[Se],!!fe.marker.collapsed){if(fe.from==null)return!0;if(!fe.marker.widgetNode&&fe.from==0&&fe.marker.inclusiveLeft&&Ro(ie,se,fe))return!0}}}function Ro(ie,se,pe){if(pe.to==null){var fe=pe.marker.find(1,!0);return Ro(ie,fe.line,ca(fe.line.markedSpans,pe.marker))}if(pe.marker.inclusiveRight&&pe.to==se.text.length)return!0;for(var Se=void 0,Te=0;Te<se.markedSpans.length;++Te)if(Se=se.markedSpans[Te],Se.marker.collapsed&&!Se.marker.widgetNode&&Se.from==pe.to&&(Se.to==null||Se.to!=pe.from)&&(Se.marker.inclusiveLeft||pe.marker.inclusiveRight)&&Ro(ie,se,Se))return!0}function Xo(ie){ie=Ur(ie);for(var se=0,pe=ie.parent,fe=0;fe<pe.lines.length;++fe){var Se=pe.lines[fe];if(Se==ie)break;se+=Se.height}for(var Te=pe.parent;Te;pe=Te,Te=pe.parent)for(var _e=0;_e<Te.children.length;++_e){var ht=Te.children[_e];if(ht==pe)break;se+=ht.height}return se}function ya(ie){if(ie.height==0)return 0;for(var se=ie.text.length,pe,fe=ie;pe=pr(fe);){var Se=pe.find(0,!0);fe=Se.from.line,se+=Se.from.ch-Se.to.ch}for(fe=ie;pe=Er(fe);){var Te=pe.find(0,!0);se-=fe.text.length-Te.from.ch,fe=Te.to.line,se+=fe.text.length-Te.to.ch}return se}function na(ie){var se=ie.display,pe=ie.doc;se.maxLine=xn(pe,pe.first),se.maxLineLength=ya(se.maxLine),se.maxLineChanged=!0,pe.iter(function(fe){var Se=ya(fe);Se>se.maxLineLength&&(se.maxLineLength=Se,se.maxLine=fe)})}var Fa=function(ie,se,pe){this.text=ie,$e(this,se),this.height=pe?pe(this):1};Fa.prototype.lineNo=function(){return It(this)},qn(Fa);function Sa(ie,se,pe,fe){ie.text=se,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Si(ie),$e(ie,pe);var Se=fe?fe(ie):1;Se!=ie.height&&Mn(ie,Se)}function Pa(ie){ie.parent=null,Si(ie)}var is={},Co={};function ps(ie,se){if(!ie||/^\s*$/.test(ie))return null;var pe=se.addModeClass?Co:is;return pe[ie]||(pe[ie]=ie.replace(/\S+/g,"cm-$&"))}function An(ie,se){var pe=Ge("span",null,null,be?"padding-right: .1px":null),fe={pre:Ge("pre",[pe],"CodeMirror-line"),content:pe,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 Te=Se?se.rest[Se-1]:se.line,_e=void 0;fe.pos=0,fe.addToken=Qs,Ir(ie.display.measure)&&(_e=Ve(Te,ie.doc.direction))&&(fe.addToken=Kr(fe.addToken,_e)),fe.map=[];var ht=se!=ie.display.externalMeasured&&It(Te);Ka(Te,fe,Dr(ie,Te,ht)),Te.styleClasses&&(Te.styleClasses.bgClass&&(fe.bgClass=vt(Te.styleClasses.bgClass,fe.bgClass||"")),Te.styleClasses.textClass&&(fe.textClass=vt(Te.styleClasses.textClass,fe.textClass||""))),fe.map.length==0&&fe.map.push(0,0,fe.content.appendChild(jr(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 lt=fe.content.lastChild;(/\bcm-tab\b/.test(lt.className)||lt.querySelector&<.querySelector(".cm-tab"))&&(fe.content.className="cm-tab-wrap-hack")}return Et(ie,"renderLine",ie,se.line,fe.pre),fe.pre.className&&(fe.textClass=vt(fe.pre.className,fe.textClass||"")),fe}function Yo(ie){var se=je("span","\u2022","cm-invalidchar");return se.title="\\u"+ie.charCodeAt(0).toString(16),se.setAttribute("aria-label",se.title),se}function Qs(ie,se,pe,fe,Se,Te,_e){if(se){var ht=ie.splitSpaces?yl(se,ie.trailingSpace):se,lt=ie.cm.state.specialChars,Tt=!1,wn;if(!lt.test(se))ie.col+=se.length,wn=document.createTextNode(ht),ie.map.push(ie.pos,ie.pos+se.length,wn),He&&it<9&&(Tt=!0),ie.pos+=se.length;else{wn=document.createDocumentFragment();for(var Gt=0;;){lt.lastIndex=Gt;var ei=lt.exec(se),Jn=ei?ei.index-Gt:se.length-Gt;if(Jn){var Wi=document.createTextNode(ht.slice(Gt,Gt+Jn));He&&it<9?wn.appendChild(je("span",[Wi])):wn.appendChild(Wi),ie.map.push(ie.pos,ie.pos+Jn,Wi),ie.col+=Jn,ie.pos+=Jn}if(!ei)break;Gt+=Jn+1;var Ui=void 0;if(ei[0]==" "){var vr=ie.cm.options.tabSize,zr=vr-ie.col%vr;Ui=wn.appendChild(je("span",Xn(zr),"cm-tab")),Ui.setAttribute("role","presentation"),Ui.setAttribute("cm-text"," "),ie.col+=zr}else ei[0]=="\r"||ei[0]==`
|
|
|
`?(Ui=wn.appendChild(je("span",ei[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ui.setAttribute("cm-text",ei[0]),ie.col+=1):(Ui=ie.cm.options.specialCharPlaceholder(ei[0]),Ui.setAttribute("cm-text",ei[0]),He&&it<9?wn.appendChild(je("span",[Ui])):wn.appendChild(Ui),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Ui),ie.pos++}}if(ie.trailingSpace=ht.charCodeAt(se.length-1)==32,pe||fe||Se||Tt||Te||_e){var xo=pe||"";fe&&(xo+=fe),Se&&(xo+=Se);var ro=je("span",[wn],xo,Te);if(_e)for(var Oo in _e)_e.hasOwnProperty(Oo)&&Oo!="style"&&Oo!="class"&&ro.setAttribute(Oo,_e[Oo]);return ie.content.appendChild(ro)}ie.content.appendChild(wn)}}function yl(ie,se){if(ie.length>1&&!/ /.test(ie))return ie;for(var pe=se,fe="",Se=0;Se<ie.length;Se++){var Te=ie.charAt(Se);Te==" "&&pe&&(Se==ie.length-1||ie.charCodeAt(Se+1)==32)&&(Te="\xA0"),fe+=Te,pe=Te==" "}return fe}function Kr(ie,se){return function(pe,fe,Se,Te,_e,ht,lt){Se=Se?Se+" cm-force-border":"cm-force-border";for(var Tt=pe.pos,wn=Tt+fe.length;;){for(var Gt=void 0,ei=0;ei<se.length&&(Gt=se[ei],!(Gt.to>Tt&&Gt.from<=Tt));ei++);if(Gt.to>=wn)return ie(pe,fe,Se,Te,_e,ht,lt);ie(pe,fe.slice(0,Gt.to-Tt),Se,Te,null,ht,lt),Te=null,fe=fe.slice(Gt.to-Tt),Tt=Gt.to}}}function Ao(ie,se,pe,fe){var Se=!fe&&pe.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",pe.id)),Se&&(ie.cm.display.input.setUneditable(Se),ie.content.appendChild(Se)),ie.pos+=se,ie.trailingSpace=!1}function Ka(ie,se,pe){var fe=ie.markedSpans,Se=ie.text,Te=0;if(!fe){for(var _e=1;_e<pe.length;_e+=2)se.addToken(se,Se.slice(Te,Te=pe[_e]),ps(pe[_e+1],se.cm.options));return}for(var ht=Se.length,lt=0,Tt=1,wn="",Gt,ei,Jn=0,Wi,Ui,vr,zr,xo;;){if(Jn==lt){Wi=Ui=vr=ei="",xo=null,zr=null,Jn=1/0;for(var ro=[],Oo=void 0,ua=0;ua<fe.length;++ua){var $r=fe[ua],Da=$r.marker;if(Da.type=="bookmark"&&$r.from==lt&&Da.widgetNode)ro.push(Da);else if($r.from<=lt&&($r.to==null||$r.to>lt||Da.collapsed&&$r.to==lt&&$r.from==lt)){if($r.to!=null&&$r.to!=lt&&Jn>$r.to&&(Jn=$r.to,Ui=""),Da.className&&(Wi+=" "+Da.className),Da.css&&(ei=(ei?ei+";":"")+Da.css),Da.startStyle&&$r.from==lt&&(vr+=" "+Da.startStyle),Da.endStyle&&$r.to==Jn&&(Oo||(Oo=[])).push(Da.endStyle,$r.to),Da.title&&((xo||(xo={})).title=Da.title),Da.attributes)for(var nl in Da.attributes)(xo||(xo={}))[nl]=Da.attributes[nl];Da.collapsed&&(!zr||Qi(zr.marker,Da)<0)&&(zr=$r)}else $r.from>lt&&Jn>$r.from&&(Jn=$r.from)}if(Oo)for(var Hl=0;Hl<Oo.length;Hl+=2)Oo[Hl+1]==Jn&&(Ui+=" "+Oo[Hl]);if(!zr||zr.from==lt)for(var hl=0;hl<ro.length;++hl)Ao(se,0,ro[hl]);if(zr&&(zr.from||0)==lt){if(Ao(se,(zr.to==null?ht+1:zr.to)-lt,zr.marker,zr.from==null),zr.to==null)return;zr.to==lt&&(zr=!1)}}if(lt>=ht)break;for(var ju=Math.min(ht,Jn);;){if(wn){var xu=lt+wn.length;if(!zr){var Il=xu>ju?wn.slice(0,ju-lt):wn;se.addToken(se,Il,Gt?Gt+Wi:Wi,vr,lt+Il.length==Jn?Ui:"",ei,xo)}if(xu>=ju){wn=wn.slice(ju-lt),lt=ju;break}lt=xu,vr=""}wn=Se.slice(Te,Te=pe[Tt++]),Gt=ps(pe[Tt++],se.cm.options)}}}function da(ie,se,pe){this.line=se,this.rest=lr(se),this.size=this.rest?It(Ft(this.rest))-pe+1:1,this.node=this.text=null,this.hidden=oi(ie,se)}function vo(ie,se,pe){for(var fe=[],Se,Te=se;Te<pe;Te=Se){var _e=new da(ie.doc,xn(ie.doc,Te),Te);Se=Te+_e.size,fe.push(_e)}return fe}var Qo=null;function Qa(ie){Qo?Qo.ops.push(ie):ie.ownsGroup=Qo={ops:[ie],delayedCallbacks:[]}}function to(ie){var se=ie.delayedCallbacks,pe=0;do{for(;pe<se.length;pe++)se[pe].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(pe<se.length)}function Do(ie,se){var pe=ie.ownsGroup;if(pe)try{to(pe)}finally{Qo=null,se(pe)}}var Bo=null;function Yi(ie,se){var pe=on(ie,se);if(pe.length){var fe=Array.prototype.slice.call(arguments,2),Se;Qo?Se=Qo.delayedCallbacks:Bo?Se=Bo:(Se=Bo=[],setTimeout(ba,0));for(var Te=function(ht){Se.push(function(){return pe[ht].apply(null,fe)})},_e=0;_e<pe.length;++_e)Te(_e)}}function ba(){var ie=Bo;Bo=null;for(var se=0;se<ie.length;++se)ie[se]()}function or(ie,se,pe,fe){for(var Se=0;Se<se.changes.length;Se++){var Te=se.changes[Se];Te=="text"?Mi(ie,se):Te=="gutter"?Ua(ie,se,pe,fe):Te=="class"?ga(ie,se):Te=="widget"&&rs(ie,se,fe)}se.changes=null}function Xr(ie){return ie.node==ie.text&&(ie.node=je("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),He&&it<8&&(ie.node.style.zIndex=2)),ie.node}function Pr(ie,se){var pe=se.bgClass?se.bgClass+" "+(se.line.bgClass||""):se.line.bgClass;if(pe&&(pe+=" CodeMirror-linebackground"),se.background)pe?se.background.className=pe:(se.background.parentNode.removeChild(se.background),se.background=null);else if(pe){var fe=Xr(se);se.background=fe.insertBefore(je("div",null,pe),fe.firstChild),ie.display.input.setUneditable(se.background)}}function fa(ie,se){var pe=ie.display.externalMeasured;return pe&&pe.line==se.line?(ie.display.externalMeasured=null,se.measure=pe.measure,pe.built):An(ie,se)}function Mi(ie,se){var pe=se.text.className,fe=fa(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,ga(ie,se)):pe&&(se.text.className=pe)}function ga(ie,se){Pr(ie,se),se.line.wrapClass?Xr(se).className=se.line.wrapClass:se.node!=se.text&&(se.node.className="");var pe=se.textClass?se.textClass+" "+(se.line.textClass||""):se.line.textClass;se.text.className=pe||""}function Ua(ie,se,pe,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=Xr(se);se.gutterBackground=je("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 Te=se.line.gutterMarkers;if(ie.options.lineNumbers||Te){var _e=Xr(se),ht=se.gutter=je("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&&(!Te||!Te["CodeMirror-linenumbers"])&&(se.lineNumber=ht.appendChild(je("div",ui(ie.options,pe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+fe.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Te)for(var lt=0;lt<ie.display.gutterSpecs.length;++lt){var Tt=ie.display.gutterSpecs[lt].className,wn=Te.hasOwnProperty(Tt)&&Te[Tt];wn&&ht.appendChild(je("div",[wn],"CodeMirror-gutter-elt","left: "+fe.gutterLeft[Tt]+"px; width: "+fe.gutterWidth[Tt]+"px"))}}}function rs(ie,se,pe){se.alignable&&(se.alignable=null);for(var fe=Pe("CodeMirror-linewidget"),Se=se.node.firstChild,Te=void 0;Se;Se=Te)Te=Se.nextSibling,fe.test(Se.className)&&se.node.removeChild(Se);Kl(ie,se,pe)}function Sl(ie,se,pe,fe){var Se=fa(ie,se);return se.text=se.node=Se.pre,Se.bgClass&&(se.bgClass=Se.bgClass),Se.textClass&&(se.textClass=Se.textClass),ga(ie,se),Ua(ie,se,pe,fe),Kl(ie,se,fe),se.node}function Kl(ie,se,pe){if(yo(ie,se.line,se,pe,!0),se.rest)for(var fe=0;fe<se.rest.length;fe++)yo(ie,se.rest[fe],se,pe,!1)}function yo(ie,se,pe,fe,Se){if(se.widgets)for(var Te=Xr(pe),_e=0,ht=se.widgets;_e<ht.length;++_e){var lt=ht[_e],Tt=je("div",[lt.node],"CodeMirror-linewidget"+(lt.className?" "+lt.className:""));lt.handleMouseEvents||Tt.setAttribute("cm-ignore-events","true"),Vu(lt,Tt,pe,fe),ie.display.input.setUneditable(Tt),Se&<.above?Te.insertBefore(Tt,pe.gutter||pe.text):Te.appendChild(Tt),Yi(lt,"redraw")}}function Vu(ie,se,pe,fe){if(ie.noHScroll){(pe.alignable||(pe.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(!bt(document.body,ie.node)){var pe="position: relative;";ie.coverGutter&&(pe+="margin-left: -"+se.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(pe+="width: "+se.display.wrapper.clientWidth+"px;"),Re(se.display.measure,je("div",[ie.node],null,pe))}return ie.height=ie.node.parentNode.offsetHeight}function Dl(ie,se){for(var pe=yr(se);pe!=ie.wrapper;pe=pe.parentNode)if(!pe||pe.nodeType==1&&pe.getAttribute("cm-ignore-events")=="true"||pe.parentNode==ie.sizer&&pe!=ie.mover)return!0}function xl(ie){return ie.lineSpace.offsetTop}function co(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function Ba(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var se=Re(ie.measure,je("pre","x","CodeMirror-line-like")),pe=window.getComputedStyle?window.getComputedStyle(se):se.currentStyle,fe={left:parseInt(pe.paddingLeft),right:parseInt(pe.paddingRight)};return!isNaN(fe.left)&&!isNaN(fe.right)&&(ie.cachedPaddingH=fe),fe}function Ms(ie){return Yt-ie.display.nativeBarWidth}function zs(ie){return ie.display.scroller.clientWidth-Ms(ie)-ie.display.barWidth}function Yu(ie){return ie.display.scroller.clientHeight-Ms(ie)-ie.display.barHeight}function uc(ie,se,pe){var fe=ie.options.lineWrapping,Se=fe&&zs(ie);if(!se.measure.heights||fe&&se.measure.width!=Se){var Te=se.measure.heights=[];if(fe){se.measure.width=Se;for(var _e=se.text.firstChild.getClientRects(),ht=0;ht<_e.length-1;ht++){var lt=_e[ht],Tt=_e[ht+1];Math.abs(lt.bottom-Tt.bottom)>2&&Te.push((lt.bottom+Tt.top)/2-pe.top)}}Te.push(pe.bottom-pe.top)}}function Uu(ie,se,pe){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(It(ie.rest[Se])>pe)return{map:ie.measure.maps[Se],cache:ie.measure.caches[Se],before:!0}}function Ac(ie,se){se=Ur(se);var pe=It(se),fe=ie.display.externalMeasured=new da(ie.doc,se,pe);fe.lineN=pe;var Se=fe.built=An(ie,fe);return fe.text=Se.pre,Re(ie.display.lineMeasure,Se.pre),fe}function Xu(ie,se,pe,fe){return os(ie,Bl(ie,se),pe,fe)}function Vl(ie,se){if(se>=ie.display.viewFrom&&se<ie.display.viewTo)return ie.display.view[Nl(ie,se)];var pe=ie.display.externalMeasured;if(pe&&se>=pe.lineN&&se<pe.lineN+pe.size)return pe}function Bl(ie,se){var pe=It(se),fe=Vl(ie,pe);fe&&!fe.text?fe=null:fe&&fe.changes&&(or(ie,fe,pe,oh(ie)),ie.curOp.forceUpdate=!0),fe||(fe=Ac(ie,se));var Se=Uu(fe,se,pe);return{line:se,view:fe,rect:null,map:Se.map,cache:Se.cache,before:Se.before,hasHeights:!1}}function os(ie,se,pe,fe,Se){se.before&&(pe=-1);var Te=pe+(fe||""),_e;return se.cache.hasOwnProperty(Te)?_e=se.cache[Te]:(se.rect||(se.rect=se.view.text.getBoundingClientRect()),se.hasHeights||(uc(ie,se.view,se.rect),se.hasHeights=!0),_e=_o(ie,se,pe,fe),_e.bogus||(se.cache[Te]=_e)),{left:_e.left,right:_e.right,top:Se?_e.rtop:_e.top,bottom:Se?_e.rbottom:_e.bottom}}var Au={left:0,right:0,top:0,bottom:0};function _u(ie,se,pe){for(var fe,Se,Te,_e,ht,lt,Tt=0;Tt<ie.length;Tt+=3)if(ht=ie[Tt],lt=ie[Tt+1],se<ht?(Se=0,Te=1,_e="left"):se<lt?(Se=se-ht,Te=Se+1):(Tt==ie.length-3||se==lt&&ie[Tt+3]>se)&&(Te=lt-ht,Se=Te-1,se>=lt&&(_e="right")),Se!=null){if(fe=ie[Tt+2],ht==lt&&pe==(fe.insertLeft?"left":"right")&&(_e=pe),pe=="left"&&Se==0)for(;Tt&&ie[Tt-2]==ie[Tt-3]&&ie[Tt-1].insertLeft;)fe=ie[(Tt-=3)+2],_e="left";if(pe=="right"&&Se==lt-ht)for(;Tt<ie.length-3&&ie[Tt+3]==ie[Tt+4]&&!ie[Tt+5].insertLeft;)fe=ie[(Tt+=3)+2],_e="right";break}return{node:fe,start:Se,end:Te,collapse:_e,coverStart:ht,coverEnd:lt}}function $s(ie,se){var pe=Au;if(se=="left")for(var fe=0;fe<ie.length&&(pe=ie[fe]).left==pe.right;fe++);else for(var Se=ie.length-1;Se>=0&&(pe=ie[Se]).left==pe.right;Se--);return pe}function _o(ie,se,pe,fe){var Se=_u(se.map,pe,fe),Te=Se.node,_e=Se.start,ht=Se.end,lt=Se.collapse,Tt;if(Te.nodeType==3){for(var wn=0;wn<4;wn++){for(;_e&&Lt(se.line.text.charAt(Se.coverStart+_e));)--_e;for(;Se.coverStart+ht<Se.coverEnd&&Lt(se.line.text.charAt(Se.coverStart+ht));)++ht;if(He&&it<9&&_e==0&&ht==Se.coverEnd-Se.coverStart?Tt=Te.parentNode.getBoundingClientRect():Tt=$s(We(Te,_e,ht).getClientRects(),fe),Tt.left||Tt.right||_e==0)break;ht=_e,_e=_e-1,lt="right"}He&&it<11&&(Tt=Ma(ie.display.measure,Tt))}else{_e>0&&(lt=fe="right");var Gt;ie.options.lineWrapping&&(Gt=Te.getClientRects()).length>1?Tt=Gt[fe=="right"?Gt.length-1:0]:Tt=Te.getBoundingClientRect()}if(He&&it<9&&!_e&&(!Tt||!Tt.left&&!Tt.right)){var ei=Te.parentNode.getClientRects()[0];ei?Tt={left:ei.left,right:ei.left+Fc(ie.display),top:ei.top,bottom:ei.bottom}:Tt=Au}for(var Jn=Tt.top-se.rect.top,Wi=Tt.bottom-se.rect.top,Ui=(Jn+Wi)/2,vr=se.view.measure.heights,zr=0;zr<vr.length-1&&!(Ui<vr[zr]);zr++);var xo=zr?vr[zr-1]:0,ro=vr[zr],Oo={left:(lt=="right"?Tt.right:Tt.left)-se.rect.left,right:(lt=="left"?Tt.left:Tt.right)-se.rect.left,top:xo,bottom:ro};return!Tt.left&&!Tt.right&&(Oo.bogus=!0),ie.options.singleCursorHeightPerLine||(Oo.rtop=Jn,Oo.rbottom=Wi),Oo}function Ma(ie,se){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!gr(ie))return se;var pe=screen.logicalXDPI/screen.deviceXDPI,fe=screen.logicalYDPI/screen.deviceYDPI;return{left:se.left*pe,right:se.right*pe,top:se.top*fe,bottom:se.bottom*fe}}function bl(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 Ts(ie){ie.display.externalMeasure=null,Le(ie.display.lineMeasure);for(var se=0;se<ie.display.view.length;se++)bl(ie.display.view[se])}function Os(ie){Ts(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function ms(){return ct&&ee?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Es(){return ct&&ee?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function js(ie){var se=0;if(ie.widgets)for(var pe=0;pe<ie.widgets.length;++pe)ie.widgets[pe].above&&(se+=Ll(ie.widgets[pe]));return se}function Is(ie,se,pe,fe,Se){if(!Se){var Te=js(se);pe.top+=Te,pe.bottom+=Te}if(fe=="line")return pe;fe||(fe="local");var _e=Xo(se);if(fe=="local"?_e+=xl(ie.display):_e-=ie.display.viewOffset,fe=="page"||fe=="window"){var ht=ie.display.lineSpace.getBoundingClientRect();_e+=ht.top+(fe=="window"?0:Es());var lt=ht.left+(fe=="window"?0:ms());pe.left+=lt,pe.right+=lt}return pe.top+=_e,pe.bottom+=_e,pe}function cc(ie,se,pe){if(pe=="div")return se;var fe=se.left,Se=se.top;if(pe=="page")fe-=ms(),Se-=Es();else if(pe=="local"||!pe){var Te=ie.display.sizer.getBoundingClientRect();fe+=Te.left,Se+=Te.top}var _e=ie.display.lineSpace.getBoundingClientRect();return{left:fe-_e.left,top:Se-_e.top}}function au(ie,se,pe,fe,Se){return fe||(fe=xn(ie.doc,se.line)),Is(ie,fe,Xu(ie,fe,se.ch,Se),pe)}function Ls(ie,se,pe,fe,Se,Te){fe=fe||xn(ie.doc,se.line),Se||(Se=Bl(ie,fe));function _e(Wi,Ui){var vr=os(ie,Se,Wi,Ui?"right":"left",Te);return Ui?vr.left=vr.right:vr.right=vr.left,Is(ie,fe,vr,pe)}var ht=Ve(fe,ie.doc.direction),lt=se.ch,Tt=se.sticky;if(lt>=fe.text.length?(lt=fe.text.length,Tt="before"):lt<=0&&(lt=0,Tt="after"),!ht)return _e(Tt=="before"?lt-1:lt,Tt=="before");function wn(Wi,Ui,vr){var zr=ht[Ui],xo=zr.level==1;return _e(vr?Wi-1:Wi,xo!=vr)}var Gt=ye(ht,lt,Tt),ei=we,Jn=wn(lt,Gt,Tt=="before");return ei!=null&&(Jn.other=wn(lt,ei,Tt!="before")),Jn}function ih(ie,se){var pe=0;se=Yn(ie.doc,se),ie.options.lineWrapping||(pe=Fc(ie.display)*se.ch);var fe=xn(ie.doc,se.line),Se=Xo(fe)+xl(ie.display);return{left:pe,right:pe,top:Se,bottom:Se+fe.height}}function md(ie,se,pe,fe,Se){var Te=Qt(ie,se,pe);return Te.xRel=Se,fe&&(Te.outside=fe),Te}function id(ie,se,pe){var fe=ie.doc;if(pe+=ie.display.viewOffset,pe<0)return md(fe.first,0,null,-1,-1);var Se=gn(fe,pe),Te=fe.first+fe.size-1;if(Se>Te)return md(fe.first+fe.size-1,xn(fe,Te).text.length,null,1,1);se<0&&(se=0);for(var _e=xn(fe,Se);;){var ht=hi(ie,_e,Se,se,pe),lt=oo(_e,ht.ch+(ht.xRel>0||ht.outside>0?1:0));if(!lt)return ht;var Tt=lt.find(1);if(Tt.line==Se)return Tt;_e=xn(fe,Se=Tt.line)}}function Hr(ie,se,pe,fe){fe-=js(se);var Se=se.text.length,Te=nt(function(_e){return os(ie,pe,_e-1).bottom<=fe},Se,0);return Se=nt(function(_e){return os(ie,pe,_e).top>fe},Te,Se),{begin:Te,end:Se}}function rd(ie,se,pe,fe){pe||(pe=Bl(ie,se));var Se=Is(ie,se,os(ie,pe,fe),"line").top;return Hr(ie,se,pe,Se)}function Ut(ie,se,pe,fe){return ie.bottom<=pe?!1:ie.top>pe?!0:(fe?ie.left:ie.right)>se}function hi(ie,se,pe,fe,Se){Se-=Xo(se);var Te=Bl(ie,se),_e=js(se),ht=0,lt=se.text.length,Tt=!0,wn=Ve(se,ie.doc.direction);if(wn){var Gt=(ie.options.lineWrapping?rh:Ih)(ie,se,pe,Te,wn,fe,Se);Tt=Gt.level!=1,ht=Tt?Gt.from:Gt.to-1,lt=Tt?Gt.to:Gt.from-1}var ei=null,Jn=null,Wi=nt(function(ua){var $r=os(ie,Te,ua);return $r.top+=_e,$r.bottom+=_e,Ut($r,fe,Se,!1)?($r.top<=Se&&$r.left<=fe&&(ei=ua,Jn=$r),!0):!1},ht,lt),Ui,vr,zr=!1;if(Jn){var xo=fe-Jn.left<Jn.right-fe,ro=xo==Tt;Wi=ei+(ro?0:1),vr=ro?"after":"before",Ui=xo?Jn.left:Jn.right}else{!Tt&&(Wi==lt||Wi==ht)&&Wi++,vr=Wi==0?"after":Wi==se.text.length?"before":os(ie,Te,Wi-(Tt?1:0)).bottom+_e<=Se==Tt?"after":"before";var Oo=Ls(ie,Qt(pe,Wi,vr),"line",se,Te);Ui=Oo.left,zr=Se<Oo.top?-1:Se>=Oo.bottom?1:0}return Wi=pt(se.text,Wi,1),md(pe,Wi,vr,zr,fe-Ui)}function Ih(ie,se,pe,fe,Se,Te,_e){var ht=nt(function(Gt){var ei=Se[Gt],Jn=ei.level!=1;return Ut(Ls(ie,Qt(pe,Jn?ei.to:ei.from,Jn?"before":"after"),"line",se,fe),Te,_e,!0)},0,Se.length-1),lt=Se[ht];if(ht>0){var Tt=lt.level!=1,wn=Ls(ie,Qt(pe,Tt?lt.from:lt.to,Tt?"after":"before"),"line",se,fe);Ut(wn,Te,_e,!0)&&wn.top>_e&&(lt=Se[ht-1])}return lt}function rh(ie,se,pe,fe,Se,Te,_e){var ht=Hr(ie,se,fe,_e),lt=ht.begin,Tt=ht.end;/\s/.test(se.text.charAt(Tt-1))&&Tt--;for(var wn=null,Gt=null,ei=0;ei<Se.length;ei++){var Jn=Se[ei];if(!(Jn.from>=Tt||Jn.to<=lt)){var Wi=Jn.level!=1,Ui=os(ie,fe,Wi?Math.min(Tt,Jn.to)-1:Math.max(lt,Jn.from)).right,vr=Ui<Te?Te-Ui+1e9:Ui-Te;(!wn||Gt>vr)&&(wn=Jn,Gt=vr)}}return wn||(wn=Se[Se.length-1]),wn.from<lt&&(wn={from:lt,to:wn.to,level:wn.level}),wn.to>Tt&&(wn={from:wn.from,to:Tt,level:wn.level}),wn}var dc;function hc(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(dc==null){dc=je("pre",null,"CodeMirror-line-like");for(var se=0;se<49;++se)dc.appendChild(document.createTextNode("x")),dc.appendChild(je("br"));dc.appendChild(document.createTextNode("x"))}Re(ie.measure,dc);var pe=dc.offsetHeight/50;return pe>3&&(ie.cachedTextHeight=pe),Le(ie.measure),pe||1}function Fc(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var se=je("span","xxxxxxxxxx"),pe=je("pre",[se],"CodeMirror-line-like");Re(ie.measure,pe);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,pe={},fe={},Se=se.gutters.clientLeft,Te=se.gutters.firstChild,_e=0;Te;Te=Te.nextSibling,++_e){var ht=ie.display.gutterSpecs[_e].className;pe[ht]=Te.offsetLeft+Te.clientLeft+Se,fe[ht]=Te.clientWidth}return{fixedPos:Td(se),gutterTotalWidth:se.gutters.offsetWidth,gutterLeft:pe,gutterWidth:fe,wrapperWidth:se.wrapper.clientWidth}}function Td(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Rs(ie){var se=hc(ie.display),pe=ie.options.lineWrapping,fe=pe&&Math.max(5,ie.display.scroller.clientWidth/Fc(ie.display)-3);return function(Se){if(oi(ie.doc,Se))return 0;var Te=0;if(Se.widgets)for(var _e=0;_e<Se.widgets.length;_e++)Se.widgets[_e].height&&(Te+=Se.widgets[_e].height);return pe?Te+(Math.ceil(Se.text.length/fe)||1)*se:Te+se}}function No(ie){var se=ie.doc,pe=Rs(ie);se.iter(function(fe){var Se=pe(fe);Se!=fe.height&&Mn(fe,Se)})}function gl(ie,se,pe,fe){var Se=ie.display;if(!pe&&yr(se).getAttribute("cm-not-content")=="true")return null;var Te,_e,ht=Se.lineSpace.getBoundingClientRect();try{Te=se.clientX-ht.left,_e=se.clientY-ht.top}catch(Gt){return null}var lt=id(ie,Te,_e),Tt;if(fe&<.xRel>0&&(Tt=xn(ie.doc,lt.line).text).length==lt.ch){var wn=at(Tt,Tt.length,ie.options.tabSize)-Tt.length;lt=Qt(lt.line,Math.max(0,Math.round((Te-Ba(ie.display).left)/Fc(ie.display))-wn))}return lt}function Nl(ie,se){if(se>=ie.display.viewTo||(se-=ie.display.viewFrom,se<0))return null;for(var pe=ie.display.view,fe=0;fe<pe.length;fe++)if(se-=pe[fe].size,se<0)return fe}function ws(ie,se,pe,fe){se==null&&(se=ie.doc.first),pe==null&&(pe=ie.doc.first+ie.doc.size),fe||(fe=0);var Se=ie.display;if(fe&&pe<Se.viewTo&&(Se.updateLineNumbers==null||Se.updateLineNumbers>se)&&(Se.updateLineNumbers=se),ie.curOp.viewChanged=!0,se>=Se.viewTo)On&&$i(ie.doc,se)<Se.viewTo&&ol(ie);else if(pe<=Se.viewFrom)On&&Br(ie.doc,pe+fe)>Se.viewFrom?ol(ie):(Se.viewFrom+=fe,Se.viewTo+=fe);else if(se<=Se.viewFrom&&pe>=Se.viewTo)ol(ie);else if(se<=Se.viewFrom){var Te=Ye(ie,pe,pe+fe,1);Te?(Se.view=Se.view.slice(Te.index),Se.viewFrom=Te.lineN,Se.viewTo+=fe):ol(ie)}else if(pe>=Se.viewTo){var _e=Ye(ie,se,se,-1);_e?(Se.view=Se.view.slice(0,_e.index),Se.viewTo=_e.lineN):ol(ie)}else{var ht=Ye(ie,se,se,-1),lt=Ye(ie,pe,pe+fe,1);ht&<?(Se.view=Se.view.slice(0,ht.index).concat(vo(ie,ht.lineN,lt.lineN)).concat(Se.view.slice(lt.index)),Se.viewTo+=fe):ol(ie)}var Tt=Se.externalMeasured;Tt&&(pe<Tt.lineN?Tt.lineN+=fe:se<Tt.lineN+Tt.size&&(Se.externalMeasured=null))}function pa(ie,se,pe){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 Te=fe.view[Nl(ie,se)];if(Te.node!=null){var _e=Te.changes||(Te.changes=[]);Mt(_e,pe)==-1&&_e.push(pe)}}}function ol(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Ye(ie,se,pe,fe){var Se=Nl(ie,se),Te,_e=ie.display.view;if(!On||pe==ie.doc.first+ie.doc.size)return{index:Se,lineN:pe};for(var ht=ie.display.viewFrom,lt=0;lt<Se;lt++)ht+=_e[lt].size;if(ht!=se){if(fe>0){if(Se==_e.length-1)return null;Te=ht+_e[Se].size-se,Se++}else Te=ht-se;se+=Te,pe+=Te}for(;$i(ie.doc,pe)!=pe;){if(Se==(fe<0?0:_e.length-1))return null;pe+=fe*_e[Se-(fe<0?1:0)].size,Se+=fe}return{index:Se,lineN:pe}}function rt(ie,se,pe){var fe=ie.display,Se=fe.view;Se.length==0||se>=fe.viewTo||pe<=fe.viewFrom?(fe.view=vo(ie,se,pe),fe.viewFrom=se):(fe.viewFrom>se?fe.view=vo(ie,se,fe.viewFrom).concat(fe.view):fe.viewFrom<se&&(fe.view=fe.view.slice(Nl(ie,se))),fe.viewFrom=se,fe.viewTo<pe?fe.view=fe.view.concat(vo(ie,fe.viewTo,pe)):fe.viewTo>pe&&(fe.view=fe.view.slice(0,Nl(ie,pe)))),fe.viewTo=pe}function ft(ie){for(var se=ie.display.view,pe=0,fe=0;fe<se.length;fe++){var Se=se[fe];!Se.hidden&&(!Se.node||Se.changes)&&++pe}return pe}function rn(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function ln(ie,se){se===void 0&&(se=!0);for(var pe=ie.doc,fe={},Se=fe.cursors=document.createDocumentFragment(),Te=fe.selection=document.createDocumentFragment(),_e=0;_e<pe.sel.ranges.length;_e++)if(!(!se&&_e==pe.sel.primIndex)){var ht=pe.sel.ranges[_e];if(!(ht.from().line>=ie.display.viewTo||ht.to().line<ie.display.viewFrom)){var lt=ht.empty();(lt||ie.options.showCursorWhenSelecting)&&Bn(ie,ht.head,Se),lt||ni(ie,ht,Te)}}return fe}function Bn(ie,se,pe){var fe=Ls(ie,se,"div",null,null,!ie.options.singleCursorHeightPerLine),Se=pe.appendChild(je("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 Te=pe.appendChild(je("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Te.style.display="",Te.style.left=fe.other.left+"px",Te.style.top=fe.other.top+"px",Te.style.height=(fe.other.bottom-fe.other.top)*.85+"px"}}function In(ie,se){return ie.top-se.top||ie.left-se.left}function ni(ie,se,pe){var fe=ie.display,Se=ie.doc,Te=document.createDocumentFragment(),_e=Ba(ie.display),ht=_e.left,lt=Math.max(fe.sizerWidth,zs(ie)-fe.sizer.offsetLeft)-_e.right,Tt=Se.direction=="ltr";function wn(ro,Oo,ua,$r){Oo<0&&(Oo=0),Oo=Math.round(Oo),$r=Math.round($r),Te.appendChild(je("div",null,"CodeMirror-selected","position: absolute; left: "+ro+`px;
|
|
|
top: `+Oo+"px; width: "+(ua==null?lt-ro:ua)+`px;
|
|
|
height: `+($r-Oo)+"px"))}function Gt(ro,Oo,ua){var $r=xn(Se,ro),Da=$r.text.length,nl,Hl;function hl(Il,ec){return au(ie,Qt(ro,Il),"div",$r,ec)}function ju(Il,ec,cu){var Rl=rd(ie,$r,null,Il),gs=ec=="ltr"==(cu=="after")?"left":"right",pl=cu=="after"?Rl.begin:Rl.end-(/\s/.test($r.text.charAt(Rl.end-1))?2:1);return hl(pl,gs)[gs]}var xu=Ve($r,Se.direction);return Oe(xu,Oo||0,ua==null?Da:ua,function(Il,ec,cu,Rl){var gs=cu=="ltr",pl=hl(Il,gs?"left":"right"),_l=hl(ec-1,gs?"right":"left"),du=Oo==null&&Il==0,Uc=ua==null&&ec==Da,fl=Rl==0,Nc=!xu||Rl==xu.length-1;if(_l.top-pl.top<=3){var El=(Tt?du:Uc)&&fl,Qf=(Tt?Uc:du)&&Nc,yc=El?ht:(gs?pl:_l).left,tc=Qf?lt:(gs?_l:pl).right;wn(yc,pl.top,tc-yc,pl.bottom)}else{var Hu,Gs,Jl,xd;gs?(Hu=Tt&&du&&fl?ht:pl.left,Gs=Tt?lt:ju(Il,cu,"before"),Jl=Tt?ht:ju(ec,cu,"after"),xd=Tt&&Uc&&Nc?lt:_l.right):(Hu=Tt?ju(Il,cu,"before"):ht,Gs=!Tt&&du&&fl?lt:pl.right,Jl=!Tt&&Uc&&Nc?ht:_l.left,xd=Tt?ju(ec,cu,"after"):lt),wn(Hu,pl.top,Gs-Hu,pl.bottom),pl.bottom<_l.top&&wn(ht,pl.bottom,null,_l.top),wn(Jl,_l.top,xd-Jl,_l.bottom)}(!nl||In(pl,nl)<0)&&(nl=pl),In(_l,nl)<0&&(nl=_l),(!Hl||In(pl,Hl)<0)&&(Hl=pl),In(_l,Hl)<0&&(Hl=_l)}),{start:nl,end:Hl}}var ei=se.from(),Jn=se.to();if(ei.line==Jn.line)Gt(ei.line,ei.ch,Jn.ch);else{var Wi=xn(Se,ei.line),Ui=xn(Se,Jn.line),vr=Ur(Wi)==Ur(Ui),zr=Gt(ei.line,ei.ch,vr?Wi.text.length+1:null).end,xo=Gt(Jn.line,vr?0:null,Jn.ch).start;vr&&(zr.top<xo.top-2?(wn(zr.right,zr.top,null,zr.bottom),wn(ht,xo.top,xo.left,xo.bottom)):wn(zr.right,zr.top,xo.left-zr.right,zr.bottom)),zr.bottom<xo.top&&wn(ht,zr.bottom,null,xo.top)}pe.appendChild(Te)}function ai(ie){if(ie.state.focused){var se=ie.display;clearInterval(se.blinker);var pe=!0;se.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?se.blinker=setInterval(function(){ie.hasFocus()||zi(ie),se.cursorDiv.style.visibility=(pe=!pe)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(se.cursorDiv.style.visibility="hidden")}}function xi(ie){ie.state.focused||(ie.display.input.focus(),yi(ie))}function _i(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,zi(ie))},100)}function yi(ie,se){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Et(ie,"focus",ie,se),ie.state.focused=!0,Dt(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()),ai(ie))}function zi(ie,se){ie.state.delayingBlurEvent||(ie.state.focused&&(Et(ie,"blur",ie,se),ie.state.focused=!1,Ne(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function mi(ie){for(var se=ie.display,pe=se.lineDiv.offsetTop,fe=0;fe<se.view.length;fe++){var Se=se.view[fe],Te=ie.options.lineWrapping,_e=void 0,ht=0;if(!Se.hidden){if(He&&it<8){var lt=Se.node.offsetTop+Se.node.offsetHeight;_e=lt-pe,pe=lt}else{var Tt=Se.node.getBoundingClientRect();_e=Tt.bottom-Tt.top,!Te&&Se.text.firstChild&&(ht=Se.text.firstChild.getBoundingClientRect().right-Tt.left-1)}var wn=Se.line.height-_e;if((wn>.005||wn<-.005)&&(Mn(Se.line,_e),dr(Se.line),Se.rest))for(var Gt=0;Gt<Se.rest.length;Gt++)dr(Se.rest[Gt]);if(ht>ie.display.sizerWidth){var ei=Math.ceil(ht/Fc(ie.display));ei>ie.display.maxLineLength&&(ie.display.maxLineLength=ei,ie.display.maxLine=Se.line,ie.display.maxLineChanged=!0)}}}}function dr(ie){if(ie.widgets)for(var se=0;se<ie.widgets.length;++se){var pe=ie.widgets[se],fe=pe.node.parentNode;fe&&(pe.height=fe.offsetHeight)}}function Qn(ie,se,pe){var fe=pe&&pe.top!=null?Math.max(0,pe.top):ie.scroller.scrollTop;fe=Math.floor(fe-xl(ie));var Se=pe&&pe.bottom!=null?pe.bottom:fe+ie.wrapper.clientHeight,Te=gn(se,fe),_e=gn(se,Se);if(pe&&pe.ensure){var ht=pe.ensure.from.line,lt=pe.ensure.to.line;ht<Te?(Te=ht,_e=gn(se,Xo(xn(se,ht))+ie.wrapper.clientHeight)):Math.min(lt,se.lastLine())>=_e&&(Te=gn(se,Xo(xn(se,lt))-ie.wrapper.clientHeight),_e=lt)}return{from:Te,to:Math.max(_e,Te+1)}}function ji(ie,se){if(!Ot(ie,"scrollCursorIntoView")){var pe=ie.display,fe=pe.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&&!Ue){var Te=je("div","\u200B",null,`position: absolute;
|
|
|
top: `+(se.top-pe.viewOffset-xl(ie.display))+`px;
|
|
|
height: `+(se.bottom-se.top+Ms(ie)+pe.barHeight)+`px;
|
|
|
left: `+se.left+"px; width: "+Math.max(2,se.right-se.left)+"px;");ie.display.lineSpace.appendChild(Te),Te.scrollIntoView(Se),ie.display.lineSpace.removeChild(Te)}}}function hr(ie,se,pe,fe){fe==null&&(fe=0);var Se;!ie.options.lineWrapping&&se==pe&&(se=se.ch?Qt(se.line,se.sticky=="before"?se.ch-1:se.ch,"after"):se,pe=se.sticky=="before"?Qt(se.line,se.ch+1,"before"):se);for(var Te=0;Te<5;Te++){var _e=!1,ht=Ls(ie,se),lt=!pe||pe==se?ht:Ls(ie,pe);Se={left:Math.min(ht.left,lt.left),top:Math.min(ht.top,lt.top)-fe,right:Math.max(ht.left,lt.left),bottom:Math.max(ht.bottom,lt.bottom)+fe};var Tt=Zr(ie,Se),wn=ie.doc.scrollTop,Gt=ie.doc.scrollLeft;if(Tt.scrollTop!=null&&(ma(ie,Tt.scrollTop),Math.abs(ie.doc.scrollTop-wn)>1&&(_e=!0)),Tt.scrollLeft!=null&&(Wa(ie,Tt.scrollLeft),Math.abs(ie.doc.scrollLeft-Gt)>1&&(_e=!0)),!_e)break}return Se}function no(ie,se){var pe=Zr(ie,se);pe.scrollTop!=null&&ma(ie,pe.scrollTop),pe.scrollLeft!=null&&Wa(ie,pe.scrollLeft)}function Zr(ie,se){var pe=ie.display,fe=hc(ie.display);se.top<0&&(se.top=0);var Se=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:pe.scroller.scrollTop,Te=Yu(ie),_e={};se.bottom-se.top>Te&&(se.bottom=se.top+Te);var ht=ie.doc.height+co(pe),lt=se.top<fe,Tt=se.bottom>ht-fe;if(se.top<Se)_e.scrollTop=lt?0:se.top;else if(se.bottom>Se+Te){var wn=Math.min(se.top,(Tt?ht:se.bottom)-Te);wn!=Se&&(_e.scrollTop=wn)}var Gt=ie.options.fixedGutter?0:pe.gutters.offsetWidth,ei=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:pe.scroller.scrollLeft-Gt,Jn=zs(ie)-pe.gutters.offsetWidth,Wi=se.right-se.left>Jn;return Wi&&(se.right=se.left+Jn),se.left<10?_e.scrollLeft=0:se.left<ei?_e.scrollLeft=Math.max(0,se.left+Gt-(Wi?0:10)):se.right>Jn+ei-3&&(_e.scrollLeft=se.right+(Wi?0:10)-Jn),_e}function ao(ie,se){se!=null&&(aa(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+se)}function so(ie){aa(ie);var se=ie.getCursor();ie.curOp.scrollToPos={from:se,to:se,margin:ie.options.cursorScrollMargin}}function io(ie,se,pe){(se!=null||pe!=null)&&aa(ie),se!=null&&(ie.curOp.scrollLeft=se),pe!=null&&(ie.curOp.scrollTop=pe)}function qi(ie,se){aa(ie),ie.curOp.scrollToPos=se}function aa(ie){var se=ie.curOp.scrollToPos;if(se){ie.curOp.scrollToPos=null;var pe=ih(ie,se.from),fe=ih(ie,se.to);$o(ie,pe,fe,se.margin)}}function $o(ie,se,pe,fe){var Se=Zr(ie,{left:Math.min(se.left,pe.left),top:Math.min(se.top,pe.top)-fe,right:Math.max(se.right,pe.right),bottom:Math.max(se.bottom,pe.bottom)+fe});io(ie,Se.scrollLeft,Se.scrollTop)}function ma(ie,se){Math.abs(ie.doc.scrollTop-se)<2||(ge||Sr(ie,{top:se}),Va(ie,se,!0),ge&&Sr(ie),fi(ie,100))}function Va(ie,se,pe){se=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,se)),!(ie.display.scroller.scrollTop==se&&!pe)&&(ie.doc.scrollTop=se,ie.display.scrollbars.setScrollTop(se),ie.display.scroller.scrollTop!=se&&(ie.display.scroller.scrollTop=se))}function Wa(ie,se,pe,fe){se=Math.max(0,Math.min(se,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((pe?se==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-se)<2)&&!fe)&&(ie.doc.scrollLeft=se,Po(ie),ie.display.scroller.scrollLeft!=se&&(ie.display.scroller.scrollLeft=se),ie.display.scrollbars.setScrollLeft(se))}function ka(ie){var se=ie.display,pe=se.gutters.offsetWidth,fe=Math.round(ie.doc.height+co(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?pe:0,docHeight:fe,scrollHeight:fe+Ms(ie)+se.barHeight,nativeBarWidth:se.nativeBarWidth,gutterWidth:pe}}var vs=function(ie,se,pe){this.cm=pe;var fe=this.vert=je("div",[je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Se=this.horiz=je("div",[je("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");fe.tabIndex=Se.tabIndex=-1,ie(fe),ie(Se),dt(fe,"scroll",function(){fe.clientHeight&&se(fe.scrollTop,"vertical")}),dt(Se,"scroll",function(){Se.clientWidth&&se(Se.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,He&&it<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};vs.prototype.update=function(ie){var se=ie.scrollWidth>ie.clientWidth+1,pe=ie.scrollHeight>ie.clientHeight+1,fe=ie.nativeBarWidth;if(pe){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=pe?fe+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Te=ie.viewWidth-ie.barLeft-(pe?fe:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Te)+"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:pe?fe:0,bottom:se?fe:0}},vs.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vs.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vs.prototype.zeroWidthHack=function(){var ie=ue&&!Je?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ze,this.disableVert=new Ze},vs.prototype.enableZeroWidthBar=function(ie,se,pe){ie.style.pointerEvents="auto";function fe(){var Se=ie.getBoundingClientRect(),Te=pe=="vert"?document.elementFromPoint(Se.right-1,(Se.top+Se.bottom)/2):document.elementFromPoint((Se.right+Se.left)/2,Se.bottom-1);Te!=ie?ie.style.pointerEvents="none":se.set(1e3,fe)}se.set(1e3,fe)},vs.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var La=function(){};La.prototype.update=function(){return{bottom:0,right:0}},La.prototype.setScrollLeft=function(){},La.prototype.setScrollTop=function(){},La.prototype.clear=function(){};function wa(ie,se){se||(se=ka(ie));var pe=ie.display.barWidth,fe=ie.display.barHeight;Ta(ie,se);for(var Se=0;Se<4&&pe!=ie.display.barWidth||fe!=ie.display.barHeight;Se++)pe!=ie.display.barWidth&&ie.options.lineWrapping&&mi(ie),Ta(ie,ka(ie)),pe=ie.display.barWidth,fe=ie.display.barHeight}function Ta(ie,se){var pe=ie.display,fe=pe.scrollbars.update(se);pe.sizer.style.paddingRight=(pe.barWidth=fe.right)+"px",pe.sizer.style.paddingBottom=(pe.barHeight=fe.bottom)+"px",pe.heightForcer.style.borderBottom=fe.bottom+"px solid transparent",fe.right&&fe.bottom?(pe.scrollbarFiller.style.display="block",pe.scrollbarFiller.style.height=fe.bottom+"px",pe.scrollbarFiller.style.width=fe.right+"px"):pe.scrollbarFiller.style.display="",fe.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(pe.gutterFiller.style.display="block",pe.gutterFiller.style.height=fe.bottom+"px",pe.gutterFiller.style.width=se.gutterWidth+"px"):pe.gutterFiller.style.display=""}var us={native:vs,null:La};function ys(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ne(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new us[ie.options.scrollbarStyle](function(se){ie.display.wrapper.insertBefore(se,ie.display.scrollbarFiller),dt(se,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),se.setAttribute("cm-not-content","true")},function(se,pe){pe=="horizontal"?Wa(ie,se):ma(ie,se)},ie),ie.display.scrollbars.addClass&&Dt(ie.display.wrapper,ie.display.scrollbars.addClass)}var $a=0;function Oa(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:++$a},Qa(ie.curOp)}function Hs(ie){var se=ie.curOp;se&&Do(se,function(pe){for(var fe=0;fe<pe.ops.length;fe++)pe.ops[fe].cm.curOp=null;dl(pe)})}function dl(ie){for(var se=ie.ops,pe=0;pe<se.length;pe++)st(se[pe]);for(var fe=0;fe<se.length;fe++)St(se[fe]);for(var Se=0;Se<se.length;Se++)_t(se[Se]);for(var Te=0;Te<se.length;Te++)tn(se[Te]);for(var _e=0;_e<se.length;_e++)pn(se[_e])}function st(ie){var se=ie.cm,pe=se.display;Ri(se),ie.updateMaxLine&&na(se),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<pe.viewFrom||ie.scrollToPos.to.line>=pe.viewTo)||pe.maxLineChanged&&se.options.lineWrapping,ie.update=ie.mustUpdate&&new ci(se,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function St(ie){ie.updatedDisplay=ie.mustUpdate&&ur(ie.cm,ie.update)}function _t(ie){var se=ie.cm,pe=se.display;ie.updatedDisplay&&mi(se),ie.barMeasure=ka(se),pe.maxLineChanged&&!se.options.lineWrapping&&(ie.adjustWidthTo=Xu(se,pe.maxLine,pe.maxLine.text.length).left+3,se.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(pe.scroller.clientWidth,pe.sizer.offsetLeft+ie.adjustWidthTo+Ms(se)+se.display.barWidth),ie.maxScrollLeft=Math.max(0,pe.sizer.offsetLeft+ie.adjustWidthTo-zs(se))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=pe.input.prepareSelection())}function tn(ie){var se=ie.cm;ie.adjustWidthTo!=null&&(se.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<se.doc.scrollLeft&&Wa(se,Math.min(se.display.scroller.scrollLeft,ie.maxScrollLeft),!0),se.display.maxLineChanged=!1);var pe=ie.focus&&ie.focus==Qe();ie.preparedSelection&&se.display.input.showSelection(ie.preparedSelection,pe),(ie.updatedDisplay||ie.startHeight!=se.doc.height)&&wa(se,ie.barMeasure),ie.updatedDisplay&&lo(se,ie.barMeasure),ie.selectionChanged&&ai(se),se.state.focused&&ie.updateInput&&se.display.input.reset(ie.typing),pe&&xi(ie.cm)}function pn(ie){var se=ie.cm,pe=se.display,fe=se.doc;if(ie.updatedDisplay&&ki(se,ie.update),pe.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(pe.wheelStartX=pe.wheelStartY=null),ie.scrollTop!=null&&Va(se,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Wa(se,ie.scrollLeft,!0,!0),ie.scrollToPos){var Se=hr(se,Yn(fe,ie.scrollToPos.from),Yn(fe,ie.scrollToPos.to),ie.scrollToPos.margin);ji(se,Se)}var Te=ie.maybeHiddenMarkers,_e=ie.maybeUnhiddenMarkers;if(Te)for(var ht=0;ht<Te.length;++ht)Te[ht].lines.length||Et(Te[ht],"hide");if(_e)for(var lt=0;lt<_e.length;++lt)_e[lt].lines.length&&Et(_e[lt],"unhide");pe.wrapper.offsetHeight&&(fe.scrollTop=se.display.scroller.scrollTop),ie.changeObjs&&Et(se,"changes",se,ie.changeObjs),ie.update&&ie.update.finish()}function un(ie,se){if(ie.curOp)return se();Oa(ie);try{return se()}finally{Hs(ie)}}function Wn(ie,se){return function(){if(ie.curOp)return se.apply(ie,arguments);Oa(ie);try{return se.apply(ie,arguments)}finally{Hs(ie)}}}function jn(ie){return function(){if(this.curOp)return ie.apply(this,arguments);Oa(this);try{return ie.apply(this,arguments)}finally{Hs(this)}}}function zn(ie){return function(){var se=this.cm;if(!se||se.curOp)return ie.apply(this,arguments);Oa(se);try{return ie.apply(this,arguments)}finally{Hs(se)}}}function fi(ie,se){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(se,Rt($n,ie))}function $n(ie){var se=ie.doc;if(!(se.highlightFrontier>=ie.display.viewTo)){var pe=+new Date+ie.options.workTime,fe=ar(ie,se.highlightFrontier),Se=[];se.iter(fe.line,Math.min(se.first+se.size,ie.display.viewTo+500),function(Te){if(fe.line>=ie.display.viewFrom){var _e=Te.styles,ht=Te.text.length>ie.options.maxHighlightLength?Sn(se.mode,fe.state):null,lt=rr(ie,Te,fe,!0);ht&&(fe.state=ht),Te.styles=lt.styles;var Tt=Te.styleClasses,wn=lt.classes;wn?Te.styleClasses=wn:Tt&&(Te.styleClasses=null);for(var Gt=!_e||_e.length!=Te.styles.length||Tt!=wn&&(!Tt||!wn||Tt.bgClass!=wn.bgClass||Tt.textClass!=wn.textClass),ei=0;!Gt&&ei<_e.length;++ei)Gt=_e[ei]!=Te.styles[ei];Gt&&Se.push(fe.line),Te.stateAfter=fe.save(),fe.nextLine()}else Te.text.length<=ie.options.maxHighlightLength&&qt(ie,Te.text,fe),Te.stateAfter=fe.line%5==0?fe.save():null,fe.nextLine();if(+new Date>pe)return fi(ie,ie.options.workDelay),!0}),se.highlightFrontier=fe.line,se.modeFrontier=Math.max(se.modeFrontier,fe.line),Se.length&&un(ie,function(){for(var Te=0;Te<Se.length;Te++)pa(ie,Se[Te],"text")})}}var ci=function(ie,se,pe){var fe=ie.display;this.viewport=se,this.visible=Qn(fe,ie.doc,se),this.editorIsHidden=!fe.wrapper.offsetWidth,this.wrapperHeight=fe.wrapper.clientHeight,this.wrapperWidth=fe.wrapper.clientWidth,this.oldDisplayWidth=zs(ie),this.force=pe,this.dims=oh(ie),this.events=[]};ci.prototype.signal=function(ie,se){Tn(ie,se)&&this.events.push(arguments)},ci.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Et.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=Ms(ie)+"px",se.sizer.style.marginBottom=-se.nativeBarWidth+"px",se.sizer.style.borderRightWidth=Ms(ie)+"px",se.scrollbarsClipped=!0)}function Oi(ie){if(ie.hasFocus())return null;var se=Qe();if(!se||!bt(ie.display.lineDiv,se))return null;var pe={activeElt:se};if(window.getSelection){var fe=window.getSelection();fe.anchorNode&&fe.extend&&bt(ie.display.lineDiv,fe.anchorNode)&&(pe.anchorNode=fe.anchorNode,pe.anchorOffset=fe.anchorOffset,pe.focusNode=fe.focusNode,pe.focusOffset=fe.focusOffset)}return pe}function Di(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Qe())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&bt(document.body,ie.anchorNode)&&bt(document.body,ie.focusNode))){var se=window.getSelection(),pe=document.createRange();pe.setEnd(ie.anchorNode,ie.anchorOffset),pe.collapse(!1),se.removeAllRanges(),se.addRange(pe),se.extend(ie.focusNode,ie.focusOffset)}}function ur(ie,se){var pe=ie.display,fe=ie.doc;if(se.editorIsHidden)return ol(ie),!1;if(!se.force&&se.visible.from>=pe.viewFrom&&se.visible.to<=pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>=pe.viewTo)&&pe.renderedView==pe.view&&ft(ie)==0)return!1;Mr(ie)&&(ol(ie),se.dims=oh(ie));var Se=fe.first+fe.size,Te=Math.max(se.visible.from-ie.options.viewportMargin,fe.first),_e=Math.min(Se,se.visible.to+ie.options.viewportMargin);pe.viewFrom<Te&&Te-pe.viewFrom<20&&(Te=Math.max(fe.first,pe.viewFrom)),pe.viewTo>_e&&pe.viewTo-_e<20&&(_e=Math.min(Se,pe.viewTo)),On&&(Te=$i(ie.doc,Te),_e=Br(ie.doc,_e));var ht=Te!=pe.viewFrom||_e!=pe.viewTo||pe.lastWrapHeight!=se.wrapperHeight||pe.lastWrapWidth!=se.wrapperWidth;rt(ie,Te,_e),pe.viewOffset=Xo(xn(ie.doc,pe.viewFrom)),ie.display.mover.style.top=pe.viewOffset+"px";var lt=ft(ie);if(!ht&<==0&&!se.force&&pe.renderedView==pe.view&&(pe.updateLineNumbers==null||pe.updateLineNumbers>=pe.viewTo))return!1;var Tt=Oi(ie);return lt>4&&(pe.lineDiv.style.display="none"),mr(ie,pe.updateLineNumbers,se.dims),lt>4&&(pe.lineDiv.style.display=""),pe.renderedView=pe.view,Di(Tt),Le(pe.cursorDiv),Le(pe.selectionDiv),pe.gutters.style.height=pe.sizer.style.minHeight=0,ht&&(pe.lastWrapHeight=se.wrapperHeight,pe.lastWrapWidth=se.wrapperWidth,fi(ie,400)),pe.updateLineNumbers=null,!0}function ki(ie,se){for(var pe=se.viewport,fe=!0;;fe=!1){if(!fe||!ie.options.lineWrapping||se.oldDisplayWidth==zs(ie)){if(pe&&pe.top!=null&&(pe={top:Math.min(ie.doc.height+co(ie.display)-Yu(ie),pe.top)}),se.visible=Qn(ie.display,ie.doc,pe),se.visible.from>=ie.display.viewFrom&&se.visible.to<=ie.display.viewTo)break}else fe&&(se.visible=Qn(ie.display,ie.doc,pe));if(!ur(ie,se))break;mi(ie);var Se=ka(ie);rn(ie),wa(ie,Se),lo(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 Sr(ie,se){var pe=new ci(ie,se);if(ur(ie,pe)){mi(ie),ki(ie,pe);var fe=ka(ie);rn(ie),wa(ie,fe),lo(ie,fe),pe.finish()}}function mr(ie,se,pe){var fe=ie.display,Se=ie.options.lineNumbers,Te=fe.lineDiv,_e=Te.firstChild;function ht(Wi){var Ui=Wi.nextSibling;return be&&ue&&ie.display.currentWheelTarget==Wi?Wi.style.display="none":Wi.parentNode.removeChild(Wi),Ui}for(var lt=fe.view,Tt=fe.viewFrom,wn=0;wn<lt.length;wn++){var Gt=lt[wn];if(!Gt.hidden)if(!Gt.node||Gt.node.parentNode!=Te){var ei=Sl(ie,Gt,Tt,pe);Te.insertBefore(ei,_e)}else{for(;_e!=Gt.node;)_e=ht(_e);var Jn=Se&&se!=null&&se<=Tt&&Gt.lineNumber;Gt.changes&&(Mt(Gt.changes,"gutter")>-1&&(Jn=!1),or(ie,Gt,Tt,pe)),Jn&&(Le(Gt.lineNumber),Gt.lineNumber.appendChild(document.createTextNode(ui(ie.options,Tt)))),_e=Gt.node.nextSibling}Tt+=Gt.size}for(;_e;)_e=ht(_e)}function br(ie){var se=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=se+"px"}function lo(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+Ms(ie)+"px"}function Po(ie){var se=ie.display,pe=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,Te=fe+"px",_e=0;_e<pe.length;_e++)if(!pe[_e].hidden){ie.options.fixedGutter&&(pe[_e].gutter&&(pe[_e].gutter.style.left=Te),pe[_e].gutterBackground&&(pe[_e].gutterBackground.style.left=Te));var ht=pe[_e].alignable;if(ht)for(var lt=0;lt<ht.length;lt++)ht[lt].style.left=Te}ie.options.fixedGutter&&(se.gutters.style.left=fe+Se+"px")}}function Mr(ie){if(!ie.options.lineNumbers)return!1;var se=ie.doc,pe=ui(ie.options,se.first+se.size-1),fe=ie.display;if(pe.length!=fe.lineNumChars){var Se=fe.measure.appendChild(je("div",[je("div",pe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Te=Se.firstChild.offsetWidth,_e=Se.offsetWidth-Te;return fe.lineGutter.style.width="",fe.lineNumInnerWidth=Math.max(Te,fe.lineGutter.offsetWidth-_e)+1,fe.lineNumWidth=fe.lineNumInnerWidth+_e,fe.lineNumChars=fe.lineNumInnerWidth?pe.length:-1,fe.lineGutter.style.width=fe.lineNumWidth+"px",br(ie.display),!0}return!1}function Wr(ie,se){for(var pe=[],fe=!1,Se=0;Se<ie.length;Se++){var Te=ie[Se],_e=null;if(typeof Te!="string"&&(_e=Te.style,Te=Te.className),Te=="CodeMirror-linenumbers")if(se)fe=!0;else continue;pe.push({className:Te,style:_e})}return se&&!fe&&pe.push({className:"CodeMirror-linenumbers",style:null}),pe}function Wo(ie){var se=ie.gutters,pe=ie.gutterSpecs;Le(se),ie.lineGutter=null;for(var fe=0;fe<pe.length;++fe){var Se=pe[fe],Te=Se.className,_e=Se.style,ht=se.appendChild(je("div",null,"CodeMirror-gutter "+Te));_e&&(ht.style.cssText=_e),Te=="CodeMirror-linenumbers"&&(ie.lineGutter=ht,ht.style.width=(ie.lineNumWidth||1)+"px")}se.style.display=pe.length?"":"none",br(ie)}function Ar(ie){Wo(ie.display),ws(ie),Po(ie)}function _r(ie,se,pe,fe){var Se=this;this.input=pe,Se.scrollbarFiller=je("div",null,"CodeMirror-scrollbar-filler"),Se.scrollbarFiller.setAttribute("cm-not-content","true"),Se.gutterFiller=je("div",null,"CodeMirror-gutter-filler"),Se.gutterFiller.setAttribute("cm-not-content","true"),Se.lineDiv=Ge("div",null,"CodeMirror-code"),Se.selectionDiv=je("div",null,null,"position: relative; z-index: 1"),Se.cursorDiv=je("div",null,"CodeMirror-cursors"),Se.measure=je("div",null,"CodeMirror-measure"),Se.lineMeasure=je("div",null,"CodeMirror-measure"),Se.lineSpace=Ge("div",[Se.measure,Se.lineMeasure,Se.selectionDiv,Se.cursorDiv,Se.lineDiv],null,"position: relative; outline: none");var Te=Ge("div",[Se.lineSpace],"CodeMirror-lines");Se.mover=je("div",[Te],null,"position: relative"),Se.sizer=je("div",[Se.mover],"CodeMirror-sizer"),Se.sizerWidth=null,Se.heightForcer=je("div",null,null,"position: absolute; height: "+Yt+"px; width: 1px;"),Se.gutters=je("div",null,"CodeMirror-gutters"),Se.lineGutter=null,Se.scroller=je("div",[Se.sizer,Se.heightForcer,Se.gutters],"CodeMirror-scroll"),Se.scroller.setAttribute("tabIndex","-1"),Se.wrapper=je("div",[Se.scrollbarFiller,Se.gutterFiller,Se.scroller],"CodeMirror"),He&&it<8&&(Se.gutters.style.zIndex=-1,Se.scroller.style.paddingRight=0),!be&&!(ge&&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=Wr(fe.gutters,fe.lineNumbers),Wo(Se),pe.init(Se)}var Lr=0,nr=null;He?nr=-.53:ge?nr=15:ct?nr=-.7:et&&(nr=-1/3);function wr(ie){var se=ie.wheelDeltaX,pe=ie.wheelDeltaY;return se==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(se=ie.detail),pe==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?pe=ie.detail:pe==null&&(pe=ie.wheelDelta),{x:se,y:pe}}function Qr(ie){var se=wr(ie);return se.x*=nr,se.y*=nr,se}function wo(ie,se){var pe=wr(se),fe=pe.x,Se=pe.y,Te=ie.display,_e=Te.scroller,ht=_e.scrollWidth>_e.clientWidth,lt=_e.scrollHeight>_e.clientHeight;if(fe&&ht||Se&<){if(Se&&ue&&be){e:for(var Tt=se.target,wn=Te.view;Tt!=_e;Tt=Tt.parentNode)for(var Gt=0;Gt<wn.length;Gt++)if(wn[Gt].node==Tt){ie.display.currentWheelTarget=Tt;break e}}if(fe&&!ge&&!Xe&&nr!=null){Se&<&&ma(ie,Math.max(0,_e.scrollTop+Se*nr)),Wa(ie,Math.max(0,_e.scrollLeft+fe*nr)),(!Se||Se&<)&&vi(se),Te.wheelStartX=null;return}if(Se&&nr!=null){var ei=Se*nr,Jn=ie.doc.scrollTop,Wi=Jn+Te.wrapper.clientHeight;ei<0?Jn=Math.max(0,Jn+ei-50):Wi=Math.min(ie.doc.height,Wi+ei+50),Sr(ie,{top:Jn,bottom:Wi})}Lr<20&&(Te.wheelStartX==null?(Te.wheelStartX=_e.scrollLeft,Te.wheelStartY=_e.scrollTop,Te.wheelDX=fe,Te.wheelDY=Se,setTimeout(function(){if(Te.wheelStartX!=null){var Ui=_e.scrollLeft-Te.wheelStartX,vr=_e.scrollTop-Te.wheelStartY,zr=vr&&Te.wheelDY&&vr/Te.wheelDY||Ui&&Te.wheelDX&&Ui/Te.wheelDX;Te.wheelStartX=Te.wheelStartY=null,zr&&(nr=(nr*Lr+zr)/(Lr+1),++Lr)}},200)):(Te.wheelDX+=fe,Te.wheelDY+=Se))}}var Eo=function(ie,se){this.ranges=ie,this.primIndex=se};Eo.prototype.primary=function(){return this.ranges[this.primIndex]},Eo.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 pe=this.ranges[se],fe=ie.ranges[se];if(!$t(pe.anchor,fe.anchor)||!$t(pe.head,fe.head))return!1}return!0},Eo.prototype.deepCopy=function(){for(var ie=[],se=0;se<this.ranges.length;se++)ie[se]=new Cr(vn(this.ranges[se].anchor),vn(this.ranges[se].head));return new Eo(ie,this.primIndex)},Eo.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Eo.prototype.contains=function(ie,se){se||(se=ie);for(var pe=0;pe<this.ranges.length;pe++){var fe=this.ranges[pe];if(Cn(se,fe.from())>=0&&Cn(ie,fe.to())<=0)return pe}return-1};var Cr=function(ie,se){this.anchor=ie,this.head=se};Cr.prototype.from=function(){return Pn(this.anchor,this.head)},Cr.prototype.to=function(){return En(this.anchor,this.head)},Cr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Zo(ie,se,pe){var fe=ie&&ie.options.selectionsMayTouch,Se=se[pe];se.sort(function(ei,Jn){return Cn(ei.from(),Jn.from())}),pe=Mt(se,Se);for(var Te=1;Te<se.length;Te++){var _e=se[Te],ht=se[Te-1],lt=Cn(ht.to(),_e.from());if(fe&&!_e.empty()?lt>0:lt>=0){var Tt=Pn(ht.from(),_e.from()),wn=En(ht.to(),_e.to()),Gt=ht.empty()?_e.from()==_e.head:ht.from()==ht.head;Te<=pe&&--pe,se.splice(--Te,2,new Cr(Gt?wn:Tt,Gt?Tt:wn))}}return new Eo(se,pe)}function Jo(ie,se){return new Eo([new Cr(ie,se||ie)],0)}function ea(ie){return ie.text?Qt(ie.from.line+ie.text.length-1,Ft(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function qo(ie,se){if(Cn(ie,se.from)<0)return ie;if(Cn(ie,se.to)<=0)return ea(se);var pe=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(pe,fe)}function qa(ie,se){for(var pe=[],fe=0;fe<ie.sel.ranges.length;fe++){var Se=ie.sel.ranges[fe];pe.push(new Cr(qo(Se.anchor,se),qo(Se.head,se)))}return Zo(ie.cm,pe,ie.sel.primIndex)}function ha(ie,se,pe){return ie.line==se.line?Qt(pe.line,ie.ch-se.ch+pe.ch):Qt(pe.line+(ie.line-se.line),ie.ch)}function zo(ie,se,pe){for(var fe=[],Se=Qt(ie.first,0),Te=Se,_e=0;_e<se.length;_e++){var ht=se[_e],lt=ha(ht.from,Se,Te),Tt=ha(ea(ht),Se,Te);if(Se=ht.to,Te=Tt,pe=="around"){var wn=ie.sel.ranges[_e],Gt=Cn(wn.head,wn.anchor)<0;fe[_e]=new Cr(Gt?Tt:lt,Gt?lt:Tt)}else fe[_e]=new Cr(lt,lt)}return new Eo(fe,ie.sel.primIndex)}function po(ie){ie.doc.mode=en(ie.options,ie.doc.modeOption),Lo(ie)}function Lo(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,fi(ie,100),ie.state.modeGen++,ie.curOp&&ws(ie)}function Xa(ie,se){return se.from.ch==0&&se.to.ch==0&&Ft(se.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Ia(ie,se,pe,fe){function Se(xo){return pe?pe[xo]:null}function Te(xo,ro,Oo){Sa(xo,ro,Oo,fe),Yi(xo,"change",xo,se)}function _e(xo,ro){for(var Oo=[],ua=xo;ua<ro;++ua)Oo.push(new Fa(Tt[ua],Se(ua),fe));return Oo}var ht=se.from,lt=se.to,Tt=se.text,wn=xn(ie,ht.line),Gt=xn(ie,lt.line),ei=Ft(Tt),Jn=Se(Tt.length-1),Wi=lt.line-ht.line;if(se.full)ie.insert(0,_e(0,Tt.length)),ie.remove(Tt.length,ie.size-Tt.length);else if(Xa(ie,se)){var Ui=_e(0,Tt.length-1);Te(Gt,Gt.text,Jn),Wi&&ie.remove(ht.line,Wi),Ui.length&&ie.insert(ht.line,Ui)}else if(wn==Gt)if(Tt.length==1)Te(wn,wn.text.slice(0,ht.ch)+ei+wn.text.slice(lt.ch),Jn);else{var vr=_e(1,Tt.length-1);vr.push(new Fa(ei+wn.text.slice(lt.ch),Jn,fe)),Te(wn,wn.text.slice(0,ht.ch)+Tt[0],Se(0)),ie.insert(ht.line+1,vr)}else if(Tt.length==1)Te(wn,wn.text.slice(0,ht.ch)+Tt[0]+Gt.text.slice(lt.ch),Se(0)),ie.remove(ht.line+1,Wi);else{Te(wn,wn.text.slice(0,ht.ch)+Tt[0],Se(0)),Te(Gt,ei+Gt.text.slice(lt.ch),Jn);var zr=_e(1,Tt.length-1);Wi>1&&ie.remove(ht.line+1,Wi-1),ie.insert(ht.line+1,zr)}Yi(ie,"change",ie,se)}function as(ie,se,pe){function fe(Se,Te,_e){if(Se.linked)for(var ht=0;ht<Se.linked.length;++ht){var lt=Se.linked[ht];if(lt.doc!=Te){var Tt=_e&<.sharedHist;pe&&!Tt||(se(lt.doc,Tt),fe(lt.doc,Se,Tt))}}}fe(ie,null,!0)}function ko(ie,se){if(se.cm)throw new Error("This document is already in use.");ie.doc=se,se.cm=ie,No(ie),po(ie),So(ie),ie.options.lineWrapping||na(ie),ie.options.mode=se.modeOption,ws(ie)}function So(ie){(ie.doc.direction=="rtl"?Dt:Ne)(ie.display.lineDiv,"CodeMirror-rtl")}function jo(ie){un(ie,function(){So(ie),ws(ie)})}function ho(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 Yr(ie,se){var pe={from:vn(se.from),to:ea(se),text:Ln(ie,se.from,se.to)};return Pl(ie,pe,se.from.line,se.to.line+1),as(ie,function(fe){return Pl(fe,pe,se.from.line,se.to.line+1)},!0),pe}function Hi(ie){for(;ie.length;){var se=Ft(ie);if(se.ranges)ie.pop();else break}}function kr(ie,se){if(se)return Hi(ie.done),Ft(ie.done);if(ie.done.length&&!Ft(ie.done).ranges)return Ft(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),Ft(ie.done)}function Vo(ie,se,pe,fe){var Se=ie.history;Se.undone.length=0;var Te=+new Date,_e,ht;if((Se.lastOp==fe||Se.lastOrigin==se.origin&&se.origin&&(se.origin.charAt(0)=="+"&&Se.lastModTime>Te-(ie.cm?ie.cm.options.historyEventDelay:500)||se.origin.charAt(0)=="*"))&&(_e=kr(Se,Se.lastOp==fe)))ht=Ft(_e.changes),Cn(se.from,se.to)==0&&Cn(se.from,ht.to)==0?ht.to=ea(se):_e.changes.push(Yr(ie,se));else{var lt=Ft(Se.done);for((!lt||!lt.ranges)&&Ws(ie.sel,Se.done),_e={changes:[Yr(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(pe),Se.generation=++Se.maxGeneration,Se.lastModTime=Se.lastSelTime=Te,Se.lastOp=Se.lastSelOp=fe,Se.lastOrigin=Se.lastSelOrigin=se.origin,ht||Et(ie,"historyAdded")}function sa(ie,se,pe,fe){var Se=se.charAt(0);return Se=="*"||Se=="+"&&pe.ranges.length==fe.ranges.length&&pe.somethingSelected()==fe.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function al(ie,se,pe,fe){var Se=ie.history,Te=fe&&fe.origin;pe==Se.lastSelOp||Te&&Se.lastSelOrigin==Te&&(Se.lastModTime==Se.lastSelTime&&Se.lastOrigin==Te||sa(ie,Te,Ft(Se.done),se))?Se.done[Se.done.length-1]=se:Ws(se,Se.done),Se.lastSelTime=+new Date,Se.lastSelOrigin=Te,Se.lastSelOp=pe,fe&&fe.clearRedo!==!1&&Hi(Se.undone)}function Ws(ie,se){var pe=Ft(se);pe&&pe.ranges&&pe.equals(ie)||se.push(ie)}function Pl(ie,se,pe,fe){var Se=se["spans_"+ie.id],Te=0;ie.iter(Math.max(ie.first,pe),Math.min(ie.first+ie.size,fe),function(_e){_e.markedSpans&&((Se||(Se=se["spans_"+ie.id]={}))[Te]=_e.markedSpans),++Te})}function Na(ie){if(!ie)return null;for(var se,pe=0;pe<ie.length;++pe)ie[pe].marker.explicitlyCleared?se||(se=ie.slice(0,pe)):se&&se.push(ie[pe]);return se?se.length?se:null:ie}function _a(ie,se){var pe=se["spans_"+ie.id];if(!pe)return null;for(var fe=[],Se=0;Se<se.text.length;++Se)fe.push(Na(pe[Se]));return fe}function Fo(ie,se){var pe=_a(ie,se),fe=kn(ie,se);if(!pe)return fe;if(!fe)return pe;for(var Se=0;Se<pe.length;++Se){var Te=pe[Se],_e=fe[Se];if(Te&&_e)e:for(var ht=0;ht<_e.length;++ht){for(var lt=_e[ht],Tt=0;Tt<Te.length;++Tt)if(Te[Tt].marker==lt.marker)continue e;Te.push(lt)}else _e&&(pe[Se]=_e)}return pe}function Ys(ie,se,pe){for(var fe=[],Se=0;Se<ie.length;++Se){var Te=ie[Se];if(Te.ranges){fe.push(pe?Eo.prototype.deepCopy.call(Te):Te);continue}var _e=Te.changes,ht=[];fe.push({changes:ht});for(var lt=0;lt<_e.length;++lt){var Tt=_e[lt],wn=void 0;if(ht.push({from:Tt.from,to:Tt.to,text:Tt.text}),se)for(var Gt in Tt)(wn=Gt.match(/^spans_(\d+)$/))&&Mt(se,Number(wn[1]))>-1&&(Ft(ht)[Gt]=Tt[Gt],delete Tt[Gt])}}return fe}function wl(ie,se,pe,fe){if(fe){var Se=ie.anchor;if(pe){var Te=Cn(se,Se)<0;Te!=Cn(pe,Se)<0?(Se=se,se=pe):Te!=Cn(se,pe)<0&&(se=pe)}return new Cr(Se,se)}else return new Cr(pe||se,se)}function Za(ie,se,pe,fe,Se){Se==null&&(Se=ie.cm&&(ie.cm.display.shift||ie.extend)),cs(ie,new Eo([wl(ie.sel.primary(),se,pe,Se)],0),fe)}function es(ie,se,pe){for(var fe=[],Se=ie.cm&&(ie.cm.display.shift||ie.extend),Te=0;Te<ie.sel.ranges.length;Te++)fe[Te]=wl(ie.sel.ranges[Te],se[Te],null,Se);var _e=Zo(ie.cm,fe,ie.sel.primIndex);cs(ie,_e,pe)}function ss(ie,se,pe,fe){var Se=ie.sel.ranges.slice(0);Se[se]=pe,cs(ie,Zo(ie.cm,Se,ie.sel.primIndex),fe)}function bs(ie,se,pe,fe){cs(ie,Jo(se,pe),fe)}function Us(ie,se,pe){var fe={ranges:se.ranges,update:function(Se){this.ranges=[];for(var Te=0;Te<Se.length;Te++)this.ranges[Te]=new Cr(Yn(ie,Se[Te].anchor),Yn(ie,Se[Te].head))},origin:pe&&pe.origin};return Et(ie,"beforeSelectionChange",ie,fe),ie.cm&&Et(ie.cm,"beforeSelectionChange",ie.cm,fe),fe.ranges!=se.ranges?Zo(ie.cm,fe.ranges,fe.ranges.length-1):se}function va(ie,se,pe){var fe=ie.history.done,Se=Ft(fe);Se&&Se.ranges?(fe[fe.length-1]=se,qs(ie,se,pe)):cs(ie,se,pe)}function cs(ie,se,pe){qs(ie,se,pe),al(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,pe)}function qs(ie,se,pe){(Tn(ie,"beforeSelectionChange")||ie.cm&&Tn(ie.cm,"beforeSelectionChange"))&&(se=Us(ie,se,pe));var fe=pe&&pe.bias||(Cn(se.primary().head,ie.sel.primary().head)<0?-1:1);Ja(ie,Ds(ie,se,fe,!0)),!(pe&&pe.scroll===!1)&&ie.cm&&so(ie.cm)}function Ja(ie,se){se.equals(ie.sel)||(ie.sel=se,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,yn(ie.cm)),Yi(ie,"cursorActivity",ie))}function To(ie){Ja(ie,Ds(ie,ie.sel,null,!1))}function Ds(ie,se,pe,fe){for(var Se,Te=0;Te<se.ranges.length;Te++){var _e=se.ranges[Te],ht=se.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Te],lt=Fu(ie,_e.anchor,ht&&ht.anchor,pe,fe),Tt=Fu(ie,_e.head,ht&&ht.head,pe,fe);(Se||lt!=_e.anchor||Tt!=_e.head)&&(Se||(Se=se.ranges.slice(0,Te)),Se[Te]=new Cr(lt,Tt))}return Se?Zo(ie.cm,Se,se.primIndex):se}function Xs(ie,se,pe,fe,Se){var Te=xn(ie,se.line);if(Te.markedSpans)for(var _e=0;_e<Te.markedSpans.length;++_e){var ht=Te.markedSpans[_e],lt=ht.marker,Tt="selectLeft"in lt?!lt.selectLeft:lt.inclusiveLeft,wn="selectRight"in lt?!lt.selectRight:lt.inclusiveRight;if((ht.from==null||(Tt?ht.from<=se.ch:ht.from<se.ch))&&(ht.to==null||(wn?ht.to>=se.ch:ht.to>se.ch))){if(Se&&(Et(lt,"beforeCursorEnter"),lt.explicitlyCleared))if(Te.markedSpans){--_e;continue}else break;if(!lt.atomic)continue;if(pe){var Gt=lt.find(fe<0?1:-1),ei=void 0;if((fe<0?wn:Tt)&&(Gt=su(ie,Gt,-fe,Gt&&Gt.line==se.line?Te:null)),Gt&&Gt.line==se.line&&(ei=Cn(Gt,pe))&&(fe<0?ei<0:ei>0))return Xs(ie,Gt,se,fe,Se)}var Jn=lt.find(fe<0?-1:1);return(fe<0?Tt:wn)&&(Jn=su(ie,Jn,fe,Jn.line==se.line?Te:null)),Jn?Xs(ie,Jn,se,fe,Se):null}}return se}function Fu(ie,se,pe,fe,Se){var Te=fe||1,_e=Xs(ie,se,pe,Te,Se)||!Se&&Xs(ie,se,pe,Te,!0)||Xs(ie,se,pe,-Te,Se)||!Se&&Xs(ie,se,pe,-Te,!0);return _e||(ie.cantEdit=!0,Qt(ie.first,0))}function su(ie,se,pe,fe){return pe<0&&se.ch==0?se.line>ie.first?Yn(ie,Qt(se.line-1)):null:pe>0&&se.ch==(fe||xn(ie,se.line)).text.length?se.line<ie.first+ie.size-1?Qt(se.line+1,0):null:new Qt(se.line,se.ch+pe)}function ts(ie){ie.setSelection(Qt(ie.firstLine(),0),Qt(ie.lastLine()),Ct)}function Cl(ie,se,pe){var fe={canceled:!1,from:se.from,to:se.to,text:se.text,origin:se.origin,cancel:function(){return fe.canceled=!0}};return pe&&(fe.update=function(Se,Te,_e,ht){Se&&(fe.from=Yn(ie,Se)),Te&&(fe.to=Yn(ie,Te)),_e&&(fe.text=_e),ht!==void 0&&(fe.origin=ht)}),Et(ie,"beforeChange",ie,fe),ie.cm&&Et(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 Cs(ie,se,pe){if(ie.cm){if(!ie.cm.curOp)return Wn(ie.cm,Cs)(ie,se,pe);if(ie.cm.state.suppressEdits)return}if(!((Tn(ie,"beforeChange")||ie.cm&&Tn(ie.cm,"beforeChange"))&&(se=Cl(ie,se,!0),!se))){var fe=Jr&&!pe&&Ei(ie,se.from,se.to);if(fe)for(var Se=fe.length-1;Se>=0;--Se)Ss(ie,{from:fe[Se].from,to:fe[Se].to,text:Se?[""]:se.text,origin:se.origin});else Ss(ie,se)}}function Ss(ie,se){if(!(se.text.length==1&&se.text[0]==""&&Cn(se.from,se.to)==0)){var pe=qa(ie,se);Vo(ie,se,pe,ie.cm?ie.cm.curOp.id:NaN),Yl(ie,se,pe,kn(ie,se));var fe=[];as(ie,function(Se,Te){!Te&&Mt(fe,Se.history)==-1&&(ds(Se.history,se),fe.push(Se.history)),Yl(Se,se,null,kn(Se,se))})}}function mu(ie,se,pe){var fe=ie.cm&&ie.cm.state.suppressEdits;if(!(fe&&!pe)){for(var Se=ie.history,Te,_e=ie.sel,ht=se=="undo"?Se.done:Se.undone,lt=se=="undo"?Se.undone:Se.done,Tt=0;Tt<ht.length&&(Te=ht[Tt],!(pe?Te.ranges&&!Te.equals(ie.sel):!Te.ranges));Tt++);if(Tt!=ht.length){for(Se.lastOrigin=Se.lastSelOrigin=null;;)if(Te=ht.pop(),Te.ranges){if(Ws(Te,lt),pe&&!Te.equals(ie.sel)){cs(ie,Te,{clearRedo:!1});return}_e=Te}else if(fe){ht.push(Te);return}else break;var wn=[];Ws(_e,lt),lt.push({changes:wn,generation:Se.generation}),Se.generation=Te.generation||++Se.maxGeneration;for(var Gt=Tn(ie,"beforeChange")||ie.cm&&Tn(ie.cm,"beforeChange"),ei=function(Ui){var vr=Te.changes[Ui];if(vr.origin=se,Gt&&!Cl(ie,vr,!1))return ht.length=0,{};wn.push(Yr(ie,vr));var zr=Ui?qa(ie,vr):Ft(ht);Yl(ie,vr,zr,Fo(ie,vr)),!Ui&&ie.cm&&ie.cm.scrollIntoView({from:vr.from,to:ea(vr)});var xo=[];as(ie,function(ro,Oo){!Oo&&Mt(xo,ro.history)==-1&&(ds(ro.history,vr),xo.push(ro.history)),Yl(ro,vr,null,Fo(ro,vr))})},Jn=Te.changes.length-1;Jn>=0;--Jn){var Wi=ei(Jn);if(Wi)return Wi.v}}}}function fc(ie,se){if(se!=0&&(ie.first+=se,ie.sel=new Eo(Un(ie.sel.ranges,function(Se){return new Cr(Qt(Se.anchor.line+se,Se.anchor.ch),Qt(Se.head.line+se,Se.head.ch))}),ie.sel.primIndex),ie.cm)){ws(ie.cm,ie.first,ie.first-se,se);for(var pe=ie.cm.display,fe=pe.viewFrom;fe<pe.viewTo;fe++)pa(ie.cm,fe,"gutter")}}function Yl(ie,se,pe,fe){if(ie.cm&&!ie.cm.curOp)return Wn(ie.cm,Yl)(ie,se,pe,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:[Ft(se.text)],origin:se.origin}}var Te=ie.lastLine();se.to.line>Te&&(se={from:se.from,to:Qt(Te,xn(ie,Te).text.length),text:[se.text[0]],origin:se.origin}),se.removed=Ln(ie,se.from,se.to),pe||(pe=qa(ie,se)),ie.cm?Ju(ie.cm,se,fe):Ia(ie,se,fe),qs(ie,pe,Ct),ie.cantEdit&&Fu(ie,Qt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Ju(ie,se,pe){var fe=ie.doc,Se=ie.display,Te=se.from,_e=se.to,ht=!1,lt=Te.line;ie.options.lineWrapping||(lt=It(Ur(xn(fe,Te.line))),fe.iter(lt,_e.line+1,function(Jn){if(Jn==Se.maxLine)return ht=!0,!0})),fe.sel.contains(se.from,se.to)>-1&&yn(ie),Ia(fe,se,pe,Rs(ie)),ie.options.lineWrapping||(fe.iter(lt,Te.line+se.text.length,function(Jn){var Wi=ya(Jn);Wi>Se.maxLineLength&&(Se.maxLine=Jn,Se.maxLineLength=Wi,Se.maxLineChanged=!0,ht=!1)}),ht&&(ie.curOp.updateMaxLine=!0)),Zi(fe,Te.line),fi(ie,400);var Tt=se.text.length-(_e.line-Te.line)-1;se.full?ws(ie):Te.line==_e.line&&se.text.length==1&&!Xa(ie.doc,se)?pa(ie,Te.line,"text"):ws(ie,Te.line,_e.line+1,Tt);var wn=Tn(ie,"changes"),Gt=Tn(ie,"change");if(Gt||wn){var ei={from:Te,to:_e,text:se.text,removed:se.removed,origin:se.origin};Gt&&Yi(ie,"change",ie,ei),wn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(ei)}ie.display.selForContextMenu=null}function Qu(ie,se,pe,fe,Se){var Te;fe||(fe=pe),Cn(fe,pe)<0&&(Te=[fe,pe],pe=Te[0],fe=Te[1]),typeof se=="string"&&(se=ie.splitLines(se)),Cs(ie,{from:pe,to:fe,text:se,origin:Se})}function lu(ie,se,pe,fe){pe<ie.line?ie.line+=fe:se<ie.line&&(ie.line=se,ie.ch=0)}function Ra(ie,se,pe,fe){for(var Se=0;Se<ie.length;++Se){var Te=ie[Se],_e=!0;if(Te.ranges){Te.copied||(Te=ie[Se]=Te.deepCopy(),Te.copied=!0);for(var ht=0;ht<Te.ranges.length;ht++)lu(Te.ranges[ht].anchor,se,pe,fe),lu(Te.ranges[ht].head,se,pe,fe);continue}for(var lt=0;lt<Te.changes.length;++lt){var Tt=Te.changes[lt];if(pe<Tt.from.line)Tt.from=Qt(Tt.from.line+fe,Tt.from.ch),Tt.to=Qt(Tt.to.line+fe,Tt.to.ch);else if(se<=Tt.to.line){_e=!1;break}}_e||(ie.splice(0,Se+1),Se=0)}}function ds(ie,se){var pe=se.from.line,fe=se.to.line,Se=se.text.length-(fe-pe)-1;Ra(ie.done,pe,fe,Se),Ra(ie.undone,pe,fe,Se)}function el(ie,se,pe,fe){var Se=se,Te=se;return typeof se=="number"?Te=xn(ie,Rn(ie,se)):Se=It(se),Se==null?null:(fe(Te,Se)&&ie.cm&&pa(ie.cm,Se,pe),Te)}function xs(ie){this.lines=ie,this.parent=null;for(var se=0,pe=0;pe<ie.length;++pe)ie[pe].parent=this,se+=ie[pe].height;this.height=se}xs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,se){for(var pe=ie,fe=ie+se;pe<fe;++pe){var Se=this.lines[pe];this.height-=Se.height,Pa(Se),Yi(Se,"delete")}this.lines.splice(ie,se)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,se,pe){this.height+=pe,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,pe){for(var fe=ie+se;ie<fe;++ie)if(pe(this.lines[ie]))return!0}};function za(ie){this.children=ie;for(var se=0,pe=0,fe=0;fe<ie.length;++fe){var Se=ie[fe];se+=Se.chunkSize(),pe+=Se.height,Se.parent=this}this.size=se,this.height=pe,this.parent=null}za.prototype={chunkSize:function(){return this.size},removeInner:function(ie,se){this.size-=se;for(var pe=0;pe<this.children.length;++pe){var fe=this.children[pe],Se=fe.chunkSize();if(ie<Se){var Te=Math.min(se,Se-ie),_e=fe.height;if(fe.removeInner(ie,Te),this.height-=_e-fe.height,Se==Te&&(this.children.splice(pe--,1),fe.parent=null),(se-=Te)==0)break;ie=0}else ie-=Se}if(this.size-se<25&&(this.children.length>1||!(this.children[0]instanceof xs))){var ht=[];this.collapse(ht),this.children=[new xs(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,pe){this.size+=se.length,this.height+=pe;for(var fe=0;fe<this.children.length;++fe){var Se=this.children[fe],Te=Se.chunkSize();if(ie<=Te){if(Se.insertInner(ie,se,pe),Se.lines&&Se.lines.length>50){for(var _e=Se.lines.length%25+25,ht=_e;ht<Se.lines.length;){var lt=new xs(Se.lines.slice(ht,ht+=25));Se.height-=lt.height,this.children.splice(++fe,0,lt),lt.parent=this}Se.lines=Se.lines.slice(0,_e),this.maybeSpill()}break}ie-=Te}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var se=ie.children.splice(ie.children.length-5,5),pe=new za(se);if(ie.parent){ie.size-=pe.size,ie.height-=pe.height;var Se=Mt(ie.parent.children,ie);ie.parent.children.splice(Se+1,0,pe)}else{var fe=new za(ie.children);fe.parent=ie,ie.children=[fe,pe],ie=fe}pe.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,se,pe){for(var fe=0;fe<this.children.length;++fe){var Se=this.children[fe],Te=Se.chunkSize();if(ie<Te){var _e=Math.min(se,Te-ie);if(Se.iterN(ie,_e,pe))return!0;if((se-=_e)==0)break;ie=0}else ie-=Te}}};var tl=function(ie,se,pe){if(pe)for(var fe in pe)pe.hasOwnProperty(fe)&&(this[fe]=pe[fe]);this.doc=ie,this.node=se};tl.prototype.clear=function(){var ie=this.doc.cm,se=this.line.widgets,pe=this.line,fe=It(pe);if(!(fe==null||!se)){for(var Se=0;Se<se.length;++Se)se[Se]==this&&se.splice(Se--,1);se.length||(pe.widgets=null);var Te=Ll(this);Mn(pe,Math.max(0,pe.height-Te)),ie&&(un(ie,function(){kl(ie,pe,-Te),pa(ie,fe,"widget")}),Yi(ie,"lineWidgetCleared",ie,this,fe))}},tl.prototype.changed=function(){var ie=this,se=this.height,pe=this.doc.cm,fe=this.line;this.height=null;var Se=Ll(this)-se;Se&&(oi(this.doc,fe)||Mn(fe,fe.height+Se),pe&&un(pe,function(){pe.curOp.forceUpdate=!0,kl(pe,fe,Se),Yi(pe,"lineWidgetChanged",pe,ie,It(fe))}))},qn(tl);function kl(ie,se,pe){Xo(se)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&ao(ie,pe)}function Mu(ie,se,pe,fe){var Se=new tl(ie,pe,fe),Te=ie.cm;return Te&&Se.noHScroll&&(Te.display.alignWidgets=!0),el(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,Te&&!oi(ie,_e)){var lt=Xo(_e)<ie.scrollTop;Mn(_e,_e.height+Ll(Se)),lt&&ao(Te,Se.height),Te.curOp.forceUpdate=!0}return!0}),Te&&Yi(Te,"lineWidgetAdded",Te,Se,typeof se=="number"?se:It(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&&Oa(ie),Tn(this,"clear")){var pe=this.find();pe&&Yi(this,"clear",pe.from,pe.to)}for(var fe=null,Se=null,Te=0;Te<this.lines.length;++Te){var _e=this.lines[Te],ht=ca(_e.markedSpans,this);ie&&!this.collapsed?pa(ie,It(_e),"text"):ie&&(ht.to!=null&&(Se=It(_e)),ht.from!=null&&(fe=It(_e))),_e.markedSpans=fo(_e.markedSpans,ht),ht.from==null&&this.collapsed&&!oi(this.doc,_e)&&ie&&Mn(_e,hc(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var lt=0;lt<this.lines.length;++lt){var Tt=Ur(this.lines[lt]),wn=ya(Tt);wn>ie.display.maxLineLength&&(ie.display.maxLine=Tt,ie.display.maxLineLength=wn,ie.display.maxLineChanged=!0)}fe!=null&&ie&&this.collapsed&&ws(ie,fe,Se+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&To(ie.doc)),ie&&Yi(ie,"markerCleared",ie,this,fe,Se),se&&Hs(ie),this.parent&&this.parent.clear()}},cn.prototype.find=function(ie,se){ie==null&&this.type=="bookmark"&&(ie=1);for(var pe,fe,Se=0;Se<this.lines.length;++Se){var Te=this.lines[Se],_e=ca(Te.markedSpans,this);if(_e.from!=null&&(pe=Qt(se?Te:It(Te),_e.from),ie==-1))return pe;if(_e.to!=null&&(fe=Qt(se?Te:It(Te),_e.to),ie==1))return fe}return pe&&{from:pe,to:fe}},cn.prototype.changed=function(){var ie=this,se=this.find(-1,!0),pe=this,fe=this.doc.cm;!se||!fe||un(fe,function(){var Se=se.line,Te=It(se.line),_e=Vl(fe,Te);if(_e&&(bl(_e),fe.curOp.selectionChanged=fe.curOp.forceUpdate=!0),fe.curOp.updateMaxLine=!0,!oi(pe.doc,Se)&&pe.height!=null){var ht=pe.height;pe.height=null;var lt=Ll(pe)-ht;lt&&Mn(Se,Se.height+lt)}Yi(fe,"markerChanged",fe,ie)})},cn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var se=this.doc.cm.curOp;(!se.maybeHiddenMarkers||Mt(se.maybeHiddenMarkers,this)==-1)&&(se.maybeUnhiddenMarkers||(se.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},cn.prototype.detachLine=function(ie){if(this.lines.splice(Mt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var se=this.doc.cm.curOp;(se.maybeHiddenMarkers||(se.maybeHiddenMarkers=[])).push(this)}},qn(cn);function Mc(ie,se,pe,fe,Se){if(fe&&fe.shared)return Rh(ie,se,pe,fe,Se);if(ie.cm&&!ie.cm.curOp)return Wn(ie.cm,Mc)(ie,se,pe,fe,Se);var Te=new cn(ie,Se),_e=Cn(se,pe);if(fe&&Jt(fe,Te,!1),_e>0||_e==0&&Te.clearWhenEmpty!==!1)return Te;if(Te.replacedWith&&(Te.collapsed=!0,Te.widgetNode=Ge("span",[Te.replacedWith],"CodeMirror-widget"),fe.handleMouseEvents||Te.widgetNode.setAttribute("cm-ignore-events","true"),fe.insertLeft&&(Te.widgetNode.insertLeft=!0)),Te.collapsed){if(bo(ie,se.line,se,pe,Te)||se.line!=pe.line&&bo(ie,pe.line,se,pe,Te))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dn()}Te.addToHistory&&Vo(ie,{from:se,to:pe,origin:"markText"},ie.sel,NaN);var ht=se.line,lt=ie.cm,Tt;if(ie.iter(ht,pe.line+1,function(Gt){lt&&Te.collapsed&&!lt.options.lineWrapping&&Ur(Gt)==lt.display.maxLine&&(Tt=!0),Te.collapsed&&ht!=se.line&&Mn(Gt,0),Ha(Gt,new Rr(Te,ht==se.line?se.ch:null,ht==pe.line?pe.ch:null)),++ht}),Te.collapsed&&ie.iter(se.line,pe.line+1,function(Gt){oi(ie,Gt)&&Mn(Gt,0)}),Te.clearOnEnter&&dt(Te,"beforeCursorEnter",function(){return Te.clear()}),Te.readOnly&&(Ho(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Te.collapsed&&(Te.id=++ah,Te.atomic=!0),lt){if(Tt&&(lt.curOp.updateMaxLine=!0),Te.collapsed)ws(lt,se.line,pe.line+1);else if(Te.className||Te.startStyle||Te.endStyle||Te.css||Te.attributes||Te.title)for(var wn=se.line;wn<=pe.line;wn++)pa(lt,wn,"text");Te.atomic&&To(lt.doc),Yi(lt,"markerAdded",lt,Te)}return Te}var gc=function(ie,se){this.markers=ie,this.primary=se;for(var pe=0;pe<ie.length;++pe)ie[pe].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();Yi(this,"clear")}},gc.prototype.find=function(ie,se){return this.primary.find(ie,se)},qn(gc);function Rh(ie,se,pe,fe,Se){fe=Jt(fe),fe.shared=!1;var Te=[Mc(ie,se,pe,fe,Se)],_e=Te[0],ht=fe.widgetNode;return as(ie,function(lt){ht&&(fe.widgetNode=ht.cloneNode(!0)),Te.push(Mc(lt,Yn(lt,se),Yn(lt,pe),fe,Se));for(var Tt=0;Tt<lt.linked.length;++Tt)if(lt.linked[Tt].isParent)return;_e=Ft(Te)}),new gc(Te,_e)}function vd(ie){return ie.findMarks(Qt(ie.first,0),ie.clipPos(Qt(ie.lastLine())),function(se){return se.parent})}function Wc(ie,se){for(var pe=0;pe<se.length;pe++){var fe=se[pe],Se=fe.find(),Te=ie.clipPos(Se.from),_e=ie.clipPos(Se.to);if(Cn(Te,_e)){var ht=Mc(ie,Te,_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],Te=[Se.primary.doc];as(Se.primary.doc,function(lt){return Te.push(lt)});for(var _e=0;_e<Se.markers.length;_e++){var ht=Se.markers[_e];Mt(Te,ht.doc)==-1&&(ht.parent=null,Se.markers.splice(_e--,1))}},pe=0;pe<ie.length;pe++)se(pe)}var ff=0,Al=function(ie,se,pe,fe,Se){if(!(this instanceof Al))return new Al(ie,se,pe,fe,Se);pe==null&&(pe=0),za.call(this,[new xs([new Fa("",null)])]),this.first=pe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=pe;var Te=Qt(pe,0);this.sel=Jo(Te),this.history=new ho(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)),Ia(this,{from:Te,to:Te,text:ie}),cs(this,Jo(Te),Ct)};Al.prototype=Fn(za.prototype,{constructor:Al,iter:function(ie,se,pe){pe?this.iterN(ie-this.first,se-ie,pe):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,se){for(var pe=0,fe=0;fe<se.length;++fe)pe+=se[fe].height;this.insertInner(ie-this.first,se,pe)},remove:function(ie,se){this.removeInner(ie-this.first,se)},getValue:function(ie){var se=pi(this,this.first,this.first+this.size);return ie===!1?se:se.join(ie||this.lineSeparator())},setValue:zn(function(ie){var se=Qt(this.first,0),pe=this.first+this.size-1;Cs(this,{from:se,to:Qt(pe,xn(this,pe).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&io(this.cm,0,0),cs(this,Jo(se),Ct)}),replaceRange:function(ie,se,pe,fe){se=Yn(this,se),pe=pe?Yn(this,pe):se,Qu(this,ie,se,pe,fe)},getRange:function(ie,se,pe){var fe=Ln(this,Yn(this,ie),Yn(this,se));return pe===!1?fe:fe.join(pe||this.lineSeparator())},getLine:function(ie){var se=this.getLineHandle(ie);return se&&se.text},getLineHandle:function(ie){if(nn(this,ie))return xn(this,ie)},getLineNumber:function(ie){return It(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=xn(this,ie)),Ur(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Yn(this,ie)},getCursor:function(ie){var se=this.sel.primary(),pe;return ie==null||ie=="head"?pe=se.head:ie=="anchor"?pe=se.anchor:ie=="end"||ie=="to"||ie===!1?pe=se.to():pe=se.from(),pe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zn(function(ie,se,pe){bs(this,Yn(this,typeof ie=="number"?Qt(ie,se||0):ie),null,pe)}),setSelection:zn(function(ie,se,pe){bs(this,Yn(this,ie),Yn(this,se||ie),pe)}),extendSelection:zn(function(ie,se,pe){Za(this,Yn(this,ie),se&&Yn(this,se),pe)}),extendSelections:zn(function(ie,se){es(this,ri(this,ie),se)}),extendSelectionsBy:zn(function(ie,se){var pe=Un(this.sel.ranges,ie);es(this,ri(this,pe),se)}),setSelections:zn(function(ie,se,pe){if(ie.length){for(var fe=[],Se=0;Se<ie.length;Se++)fe[Se]=new Cr(Yn(this,ie[Se].anchor),Yn(this,ie[Se].head));se==null&&(se=Math.min(ie.length-1,this.sel.primIndex)),cs(this,Zo(this.cm,fe,se),pe)}}),addSelection:zn(function(ie,se,pe){var fe=this.sel.ranges.slice(0);fe.push(new Cr(Yn(this,ie),Yn(this,se||ie))),cs(this,Zo(this.cm,fe,fe.length-1),pe)}),getSelection:function(ie){for(var se=this.sel.ranges,pe,fe=0;fe<se.length;fe++){var Se=Ln(this,se[fe].from(),se[fe].to());pe=pe?pe.concat(Se):Se}return ie===!1?pe:pe.join(ie||this.lineSeparator())},getSelections:function(ie){for(var se=[],pe=this.sel.ranges,fe=0;fe<pe.length;fe++){var Se=Ln(this,pe[fe].from(),pe[fe].to());ie!==!1&&(Se=Se.join(ie||this.lineSeparator())),se[fe]=Se}return se},replaceSelection:function(ie,se,pe){for(var fe=[],Se=0;Se<this.sel.ranges.length;Se++)fe[Se]=ie;this.replaceSelections(fe,se,pe||"+input")},replaceSelections:zn(function(ie,se,pe){for(var fe=[],Se=this.sel,Te=0;Te<Se.ranges.length;Te++){var _e=Se.ranges[Te];fe[Te]={from:_e.from(),to:_e.to(),text:this.splitLines(ie[Te]),origin:pe}}for(var ht=se&&se!="end"&&zo(this,fe,se),lt=fe.length-1;lt>=0;lt--)Cs(this,fe[lt]);ht?va(this,ht):this.cm&&so(this.cm)}),undo:zn(function(){mu(this,"undo")}),redo:zn(function(){mu(this,"redo")}),undoSelection:zn(function(){mu(this,"undo",!0)}),redoSelection:zn(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,pe=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||++pe;return{undo:se,redo:pe}},clearHistory:function(){var ie=this;this.history=new ho(this.history.maxGeneration),as(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:Ys(this.history.done),undone:Ys(this.history.undone)}},setHistory:function(ie){var se=this.history=new ho(this.history.maxGeneration);se.done=Ys(ie.done.slice(0),null,!0),se.undone=Ys(ie.undone.slice(0),null,!0)},setGutterMarker:zn(function(ie,se,pe){return el(this,ie,"gutter",function(fe){var Se=fe.gutterMarkers||(fe.gutterMarkers={});return Se[se]=pe,!pe&&tt(Se)&&(fe.gutterMarkers=null),!0})}),clearGutter:zn(function(ie){var se=this;this.iter(function(pe){pe.gutterMarkers&&pe.gutterMarkers[ie]&&el(se,pe,"gutter",function(){return pe.gutterMarkers[ie]=null,tt(pe.gutterMarkers)&&(pe.gutterMarkers=null),!0})})}),lineInfo:function(ie){var se;if(typeof ie=="number"){if(!nn(this,ie)||(se=ie,ie=xn(this,ie),!ie))return null}else if(se=It(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:zn(function(ie,se,pe){return el(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]=pe;else{if(Pe(pe).test(fe[Se]))return!1;fe[Se]+=" "+pe}return!0})}),removeLineClass:zn(function(ie,se,pe){return el(this,ie,se=="gutter"?"gutter":"class",function(fe){var Se=se=="text"?"textClass":se=="background"?"bgClass":se=="gutter"?"gutterClass":"wrapClass",Te=fe[Se];if(Te)if(pe==null)fe[Se]=null;else{var _e=Te.match(Pe(pe));if(!_e)return!1;var ht=_e.index+_e[0].length;fe[Se]=Te.slice(0,_e.index)+(!_e.index||ht==Te.length?"":" ")+Te.slice(ht)||null}else return!1;return!0})}),addLineWidget:zn(function(ie,se,pe){return Mu(this,ie,se,pe)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,se,pe){return Mc(this,Yn(this,ie),Yn(this,se),pe,pe&&pe.type||"range")},setBookmark:function(ie,se){var pe={replacedWith:se&&(se.nodeType==null?se.widget:se),insertLeft:se&&se.insertLeft,clearWhenEmpty:!1,shared:se&&se.shared,handleMouseEvents:se&&se.handleMouseEvents};return ie=Yn(this,ie),Mc(this,ie,ie,pe,"bookmark")},findMarksAt:function(ie){ie=Yn(this,ie);var se=[],pe=xn(this,ie.line).markedSpans;if(pe)for(var fe=0;fe<pe.length;++fe){var Se=pe[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,pe){ie=Yn(this,ie),se=Yn(this,se);var fe=[],Se=ie.line;return this.iter(ie.line,se.line+1,function(Te){var _e=Te.markedSpans;if(_e)for(var ht=0;ht<_e.length;ht++){var lt=_e[ht];!(lt.to!=null&&Se==ie.line&&ie.ch>=lt.to||lt.from==null&&Se!=ie.line||lt.from!=null&&Se==se.line&<.from>=se.ch)&&(!pe||pe(lt.marker))&&fe.push(lt.marker.parent||lt.marker)}++Se}),fe},getAllMarks:function(){var ie=[];return this.iter(function(se){var pe=se.markedSpans;if(pe)for(var fe=0;fe<pe.length;++fe)pe[fe].from!=null&&ie.push(pe[fe].marker)}),ie},posFromIndex:function(ie){var se,pe=this.first,fe=this.lineSeparator().length;return this.iter(function(Se){var Te=Se.text.length+fe;if(Te>ie)return se=ie,!0;ie-=Te,++pe}),Yn(this,Qt(pe,se))},indexFromPos:function(ie){ie=Yn(this,ie);var se=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var pe=this.lineSeparator().length;return this.iter(this.first,ie.line,function(fe){se+=fe.text.length+pe}),se},copy:function(ie){var se=new Al(pi(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,pe=this.first+this.size;ie.from!=null&&ie.from>se&&(se=ie.from),ie.to!=null&&ie.to<pe&&(pe=ie.to);var fe=new Al(pi(this,se,pe),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}],Wc(fe,vd(this)),fe},unlinkDoc:function(ie){if(ie instanceof fs&&(ie=ie.doc),this.linked)for(var se=0;se<this.linked.length;++se){var pe=this.linked[se];if(pe.doc==ie){this.linked.splice(se,1),ie.unlinkDoc(this),Lc(vd(this));break}}if(ie.history==this.history){var fe=[ie.id];as(ie,function(Se){return fe.push(Se.id)},!0),ie.history=new ho(null),ie.history.done=Ys(this.history.done,fe),ie.history.undone=Ys(this.history.undone,fe)}},iterLinkedDocs:function(ie){as(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Vi(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:zn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(se){return se.order=null}),this.cm&&jo(this.cm))})}),Al.prototype.eachLine=Al.prototype.iter;var od=0;function Od(ie){var se=this;if(gf(se),!(Ot(se,ie)||Dl(se.display,ie))){vi(ie),He&&(od=+new Date);var pe=gl(se,ie,!0),fe=ie.dataTransfer.files;if(!(!pe||se.isReadOnly()))if(fe&&fe.length&&window.FileReader&&window.File)for(var Se=fe.length,Te=Array(Se),_e=0,ht=function(){++_e==Se&&Wn(se,function(){pe=Yn(se.doc,pe);var Jn={from:pe,to:pe,text:se.doc.splitLines(Te.filter(function(Wi){return Wi!=null}).join(se.doc.lineSeparator())),origin:"paste"};Cs(se.doc,Jn),va(se.doc,Jo(Yn(se.doc,pe),Yn(se.doc,ea(Jn))))})()},lt=function(Jn,Wi){if(se.options.allowDropFileTypes&&Mt(se.options.allowDropFileTypes,Jn.type)==-1){ht();return}var Ui=new FileReader;Ui.onerror=function(){return ht()},Ui.onload=function(){var vr=Ui.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(vr)){ht();return}Te[Wi]=vr,ht()},Ui.readAsText(Jn)},Tt=0;Tt<fe.length;Tt++)lt(fe[Tt],Tt);else{if(se.state.draggingText&&se.doc.sel.contains(pe)>-1){se.state.draggingText(ie),setTimeout(function(){return se.display.input.focus()},20);return}try{var wn=ie.dataTransfer.getData("Text");if(wn){var Gt;if(se.state.draggingText&&!se.state.draggingText.copy&&(Gt=se.listSelections()),qs(se.doc,Jo(pe,pe)),Gt)for(var ei=0;ei<Gt.length;++ei)Qu(se.doc,"",Gt[ei].anchor,Gt[ei].head,"drag");se.replaceSelection(wn,"around","paste"),se.display.input.focus()}}catch(Jn){}}}}function Id(ie,se){if(He&&(!ie.state.draggingText||+new Date-od<100)){_n(se);return}if(!(Ot(ie,se)||Dl(ie.display,se))&&(se.dataTransfer.setData("Text",ie.getSelection()),se.dataTransfer.effectAllowed="copyMove",se.dataTransfer.setDragImage&&!et)){var pe=je("img",null,null,"position: fixed; left: 0; top: 0;");pe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Xe&&(pe.width=pe.height=1,ie.display.wrapper.appendChild(pe),pe._top=pe.offsetTop),se.dataTransfer.setDragImage(pe,0,0),Xe&&pe.parentNode.removeChild(pe)}}function Rd(ie,se){var pe=gl(ie,se);if(pe){var fe=document.createDocumentFragment();Bn(ie,pe,fe),ie.display.dragCursor||(ie.display.dragCursor=je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Re(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"),pe=[],fe=0;fe<se.length;fe++){var Se=se[fe].CodeMirror;Se&&pe.push(Se)}pe.length&&pe[0].operation(function(){for(var Te=0;Te<pe.length;Te++)ie(pe[Te])})}}var jd=!1;function vu(){jd||(Zc(),jd=!0)}function Zc(){var ie;dt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,zd(zh)},100))}),dt(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"},Gc=0;Gc<10;Gc++)$u[Gc+48]=$u[Gc+96]=String(Gc);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 pe,fe,Se,Te,_e=0;_e<se.length-1;_e++){var ht=se[_e];if(/^(cmd|meta|m)$/i.test(ht))Te=!0;else if(/^a(lt)?$/i.test(ht))pe=!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 pe&&(ie="Alt-"+ie),fe&&(ie="Ctrl-"+ie),Te&&(ie="Cmd-"+ie),Se&&(ie="Shift-"+ie),ie}function Hd(ie){var se={};for(var pe in ie)if(ie.hasOwnProperty(pe)){var fe=ie[pe];if(/^(name|fallthrough|(de|at)tach)$/.test(pe))continue;if(fe=="..."){delete ie[pe];continue}for(var Se=Un(pe.split(" "),sh),Te=0;Te<Se.length;Te++){var _e=void 0,ht=void 0;Te==Se.length-1?(ht=Se.join(" "),_e=fe):(ht=Se.slice(0,Te+1).join(" "),_e="...");var lt=se[ht];if(!lt)se[ht]=_e;else if(lt!=_e)throw new Error("Inconsistent bindings for "+ht)}delete ie[pe]}for(var Tt in se)ie[Tt]=se[Tt];return ie}function uu(ie,se,pe,fe){se=Dc(se);var Se=se.call?se.call(ie,fe):se[ie];if(Se===!1)return"nothing";if(Se==="...")return"multi";if(Se!=null&&pe(Se))return"handled";if(se.fallthrough){if(Object.prototype.toString.call(se.fallthrough)!="[object Array]")return uu(ie,se.fallthrough,pe,fe);for(var Te=0;Te<se.fallthrough.length;Te++){var _e=uu(ie,se.fallthrough[Te],pe,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,pe){var fe=ie;return se.altKey&&fe!="Alt"&&(ie="Alt-"+ie),(xe?se.metaKey:se.ctrlKey)&&fe!="Ctrl"&&(ie="Ctrl-"+ie),(xe?se.ctrlKey:se.metaKey)&&fe!="Mod"&&(ie="Cmd-"+ie),!pe&&se.shiftKey&&fe!="Shift"&&(ie="Shift-"+ie),ie}function lh(ie,se){if(Xe&&ie.keyCode==34&&ie.char)return!1;var pe=$u[ie.keyCode];return pe==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(pe=ie.code),Wd(pe,ie,se))}function Dc(ie){return typeof ie=="string"?Ul[ie]:ie}function Tl(ie,se){for(var pe=ie.doc.sel.ranges,fe=[],Se=0;Se<pe.length;Se++){for(var Te=se(pe[Se]);fe.length&&Cn(Te.from,Ft(fe).to)<=0;){var _e=fe.pop();if(Cn(_e.from,Te.from)<0){Te.from=_e.from;break}}fe.push(Te)}un(ie,function(){for(var ht=fe.length-1;ht>=0;ht--)Qu(ie.doc,"",fe[ht].from,fe[ht].to,"+delete");so(ie)})}function Zd(ie,se,pe){var fe=pt(ie.text,se+pe,pe);return fe<0||fe>ie.text.length?null:fe}function sl(ie,se,pe){var fe=Zd(ie,se.ch,pe);return fe==null?null:new Qt(se.line,fe,pe<0?"after":"before")}function Ya(ie,se,pe,fe,Se){if(ie){se.doc.direction=="rtl"&&(Se=-Se);var Te=Ve(pe,se.doc.direction);if(Te){var _e=Se<0?Ft(Te):Te[0],ht=Se<0==(_e.level==1),lt=ht?"after":"before",Tt;if(_e.level>0||se.doc.direction=="rtl"){var wn=Bl(se,pe);Tt=Se<0?pe.text.length-1:0;var Gt=os(se,wn,Tt).top;Tt=nt(function(ei){return os(se,wn,ei).top==Gt},Se<0==(_e.level==1)?_e.from:_e.to-1,Tt),lt=="before"&&(Tt=Zd(pe,Tt,1))}else Tt=Se<0?_e.to:_e.from;return new Qt(fe,Tt,lt)}}return new Qt(fe,Se<0?pe.text.length:0,Se<0?"before":"after")}function As(ie,se,pe,fe){var Se=Ve(se,ie.doc.direction);if(!Se)return sl(se,pe,fe);pe.ch>=se.text.length?(pe.ch=se.text.length,pe.sticky="before"):pe.ch<=0&&(pe.ch=0,pe.sticky="after");var Te=ye(Se,pe.ch,pe.sticky),_e=Se[Te];if(ie.doc.direction=="ltr"&&_e.level%2==0&&(fe>0?_e.to>pe.ch:_e.from<pe.ch))return sl(se,pe,fe);var ht=function(zr,xo){return Zd(se,zr instanceof Qt?zr.ch:zr,xo)},lt,Tt=function(zr){return ie.options.lineWrapping?(lt=lt||Bl(ie,se),rd(ie,se,lt,zr)):{begin:0,end:se.text.length}},wn=Tt(pe.sticky=="before"?ht(pe,-1):pe.ch);if(ie.doc.direction=="rtl"||_e.level==1){var Gt=_e.level==1==fe<0,ei=ht(pe,Gt?1:-1);if(ei!=null&&(Gt?ei<=_e.to&&ei<=wn.end:ei>=_e.from&&ei>=wn.begin)){var Jn=Gt?"before":"after";return new Qt(pe.line,ei,Jn)}}var Wi=function(zr,xo,ro){for(var Oo=function(nl,Hl){return Hl?new Qt(pe.line,ht(nl,1),"before"):new Qt(pe.line,nl,"after")};zr>=0&&zr<Se.length;zr+=xo){var ua=Se[zr],$r=xo>0==(ua.level!=1),Da=$r?ro.begin:ht(ro.end,-1);if(ua.from<=Da&&Da<ua.to||(Da=$r?ua.from:ht(ua.to,-1),ro.begin<=Da&&Da<ro.end))return Oo(Da,$r)}},Ui=Wi(Te+fe,fe,wn);if(Ui)return Ui;var vr=fe>0?wn.end:ht(wn.begin,-1);return vr!=null&&!(fe>0&&vr==se.text.length)&&(Ui=Wi(fe>0?0:Se.length-1,fe,Tt(vr)),Ui)?Ui:null}var Fl={selectAll:ts,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Ct)},killLine:function(ie){return Tl(ie,function(se){if(se.empty()){var pe=xn(ie.doc,se.head.line).text.length;return se.head.ch==pe&&se.head.line<ie.lastLine()?{from:se.head,to:Qt(se.head.line+1,0)}:{from:se.head,to:Qt(se.head.line,pe)}}else return{from:se.from(),to:se.to()}})},deleteLine:function(ie){return Tl(ie,function(se){return{from:Qt(se.from().line,0),to:Yn(ie.doc,Qt(se.to().line+1,0))}})},delLineLeft:function(ie){return Tl(ie,function(se){return{from:Qt(se.from().line,0),to:se.from()}})},delWrappedLineLeft:function(ie){return Tl(ie,function(se){var pe=ie.charCoords(se.head,"div").top+5,fe=ie.coordsChar({left:0,top:pe},"div");return{from:fe,to:se.from()}})},delWrappedLineRight:function(ie){return Tl(ie,function(se){var pe=ie.charCoords(se.head,"div").top+5,fe=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:pe},"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 pe=ie.cursorCoords(se.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:pe},"div")},sn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(se){var pe=ie.cursorCoords(se.head,"div").top+5;return ie.coordsChar({left:0,top:pe},"div")},sn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(se){var pe=ie.cursorCoords(se.head,"div").top+5,fe=ie.coordsChar({left:0,top:pe},"div");return fe.ch<ie.getLine(fe.line).search(/\S/)?uh(ie,se.head):fe},sn)},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=[],pe=ie.listSelections(),fe=ie.options.tabSize,Se=0;Se<pe.length;Se++){var Te=pe[Se].from(),_e=at(ie.getLine(Te.line),Te.ch,fe);se.push(Xn(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(),pe=[],fe=0;fe<se.length;fe++)if(se[fe].empty()){var Se=se[fe].head,Te=xn(ie.doc,Se.line).text;if(Te){if(Se.ch==Te.length&&(Se=new Qt(Se.line,Se.ch-1)),Se.ch>0)Se=new Qt(Se.line,Se.ch+1),ie.replaceRange(Te.charAt(Se.ch-1)+Te.charAt(Se.ch-2),Qt(Se.line,Se.ch-2),Se,"+transpose");else if(Se.line>ie.doc.first){var _e=xn(ie.doc,Se.line-1).text;_e&&(Se=new Qt(Se.line,1),ie.replaceRange(Te.charAt(0)+ie.doc.lineSeparator()+_e.charAt(_e.length-1),Qt(Se.line-1,_e.length-1),Se,"+transpose"))}}pe.push(new Cr(Se,Se))}ie.setSelections(pe)})},newlineAndIndent:function(ie){return un(ie,function(){for(var se=ie.listSelections(),pe=se.length-1;pe>=0;pe--)ie.replaceRange(ie.doc.lineSeparator(),se[pe].anchor,se[pe].head,"+input");se=ie.listSelections();for(var fe=0;fe<se.length;fe++)ie.indentLine(se[fe].from().line,null,!0);so(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function yu(ie,se){var pe=xn(ie.doc,se),fe=Ur(pe);return fe!=pe&&(se=It(fe)),Ya(!0,ie,fe,se,1)}function Su(ie,se){var pe=xn(ie.doc,se),fe=Io(pe);return fe!=pe&&(se=It(fe)),Ya(!0,ie,pe,se,-1)}function uh(ie,se){var pe=yu(ie,se.line),fe=xn(ie.doc,pe.line),Se=Ve(fe,ie.doc.direction);if(!Se||Se[0].level==0){var Te=Math.max(pe.ch,fe.text.search(/\S/)),_e=se.line==pe.line&&se.ch<=Te&&se.ch;return Qt(pe.line,_e?0:Te,pe.sticky)}return pe}function Kc(ie,se,pe){if(typeof se=="string"&&(se=Fl[se],!se))return!1;ie.display.input.ensurePolled();var fe=ie.display.shift,Se=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),pe&&(ie.display.shift=!1),Se=se(ie)!=Vt}finally{ie.display.shift=fe,ie.state.suppressEdits=!1}return Se}function Gd(ie,se,pe){for(var fe=0;fe<ie.state.keyMaps.length;fe++){var Se=uu(se,ie.state.keyMaps[fe],pe,ie);if(Se)return Se}return ie.options.extraKeys&&uu(se,ie.options.extraKeys,pe,ie)||uu(se,ie.options.keyMap,pe,ie)}var Iu=new Ze;function qu(ie,se,pe,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,pe,fe))return!0}return pf(ie,se,pe,fe)}function pf(ie,se,pe,fe){var Se=Gd(ie,se,fe);return Se=="multi"&&(ie.state.keySeq=se),Se=="handled"&&Yi(ie,"keyHandled",ie,se,pe),(Se=="handled"||Se=="multi")&&(vi(pe),ai(ie)),!!Se}function mf(ie,se){var pe=lh(se,!0);return pe?se.shiftKey&&!ie.state.keySeq?qu(ie,"Shift-"+pe,se,function(fe){return Kc(ie,fe,!0)})||qu(ie,pe,se,function(fe){if(typeof fe=="string"?/^go[A-Z]/.test(fe):fe.motion)return Kc(ie,fe)}):qu(ie,pe,se,function(fe){return Kc(ie,fe)}):!1}function ch(ie,se,pe){return qu(ie,"'"+pe+"'",se,function(fe){return Kc(ie,fe,!0)})}var Ru=null;function vf(ie){var se=this;if(!(ie.target&&ie.target!=se.display.input.getField())&&(se.curOp.focus=Qe(),!Ot(se,ie))){He&&it<11&&ie.keyCode==27&&(ie.returnValue=!1);var pe=ie.keyCode;se.display.shift=pe==16||ie.shiftKey;var fe=mf(se,ie);Xe&&(Ru=fe?pe:null,!fe&&pe==88&&!Ai&&(ue?ie.metaKey:ie.ctrlKey)&&se.replaceSelection("",null,"cut")),ge&&!ue&&!fe&&pe==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),pe==18&&!/\bCodeMirror-crosshair\b/.test(se.display.lineDiv.className)&&Zf(se)}}function Zf(ie){var se=ie.display.lineDiv;Dt(se,"CodeMirror-crosshair");function pe(fe){(fe.keyCode==18||!fe.altKey)&&(Ne(se,"CodeMirror-crosshair"),mn(document,"keyup",pe),mn(document,"mouseover",pe))}dt(document,"keyup",pe),dt(document,"mouseover",pe)}function yf(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,ie)}function pc(ie){var se=this;if(!(ie.target&&ie.target!=se.display.input.getField())&&!(Dl(se.display,ie)||Ot(se,ie)||ie.ctrlKey&&!ie.altKey||ue&&ie.metaKey)){var pe=ie.keyCode,fe=ie.charCode;if(Xe&&pe==Ru){Ru=null,vi(ie);return}if(!(Xe&&(!ie.which||ie.which<10)&&mf(se,ie))){var Se=String.fromCharCode(fe==null?pe:fe);Se!="\b"&&(ch(se,ie,Se)||se.display.input.onKeyPress(ie))}}}var xg=400,Gf=function(ie,se,pe){this.time=ie,this.pos=se,this.button=pe};Gf.prototype.compare=function(ie,se,pe){return this.time+xg>ie&&Cn(se,this.pos)==0&&pe==this.button};var dh,Sd;function Kf(ie,se){var pe=+new Date;return Sd&&Sd.compare(pe,ie,se)?(dh=Sd=null,"triple"):dh&&dh.compare(pe,ie,se)?(Sd=new Gf(pe,ie,se),dh=null,"double"):(dh=new Gf(pe,ie,se),Sd=null,"single")}function Bc(ie){var se=this,pe=se.display;if(!(Ot(se,ie)||pe.activeTouch&&pe.input.supportsTouch())){if(pe.input.ensurePolled(),pe.shift=ie.shiftKey,Dl(pe,ie)){be||(pe.scroller.draggable=!1,setTimeout(function(){return pe.scroller.draggable=!0},100));return}if(!la(se,ie)){var fe=gl(se,ie),Se=ir(ie),Te=fe?Kf(fe,Se):"single";window.focus(),Se==1&&se.state.selectingText&&se.state.selectingText(ie),!(fe&&Vf(se,Se,fe,Te,ie))&&(Se==1?fe?Sf(se,fe,Te,ie):yr(ie)==pe.scroller&&vi(ie):Se==2?(fe&&Za(se.doc,fe),setTimeout(function(){return pe.input.focus()},20)):Se==3&&(Ae?se.display.input.onContextMenu(ie):_i(se)))}}}function Vf(ie,se,pe,fe,Se){var Te="Click";return fe=="double"?Te="Double"+Te:fe=="triple"&&(Te="Triple"+Te),Te=(se==1?"Left":se==2?"Middle":"Right")+Te,qu(ie,Wd(Te,Se),Se,function(_e){if(typeof _e=="string"&&(_e=Fl[_e]),!_e)return!1;var ht=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ht=_e(ie,pe)!=Vt}finally{ie.state.suppressEdits=!1}return ht})}function jh(ie,se,pe){var fe=ie.getOption("configureMouse"),Se=fe?fe(ie,se,pe):{};if(Se.unit==null){var Te=oe?pe.shiftKey&&pe.metaKey:pe.altKey;Se.unit=Te?"rectangle":se=="single"?"char":se=="double"?"word":"line"}return(Se.extend==null||ie.doc.extend)&&(Se.extend=ie.doc.extend||pe.shiftKey),Se.addNew==null&&(Se.addNew=ue?pe.metaKey:pe.ctrlKey),Se.moveOnDrag==null&&(Se.moveOnDrag=!(ue?pe.altKey:pe.ctrlKey)),Se}function Sf(ie,se,pe,fe){He?setTimeout(Rt(xi,ie),0):ie.curOp.focus=Qe();var Se=jh(ie,pe,fe),Te=ie.doc.sel,_e;ie.options.dragDrop&&fr&&!ie.isReadOnly()&&pe=="single"&&(_e=Te.contains(se))>-1&&(Cn((_e=Te.ranges[_e]).from(),se)<0||se.xRel>0)&&(Cn(_e.to(),se)>0||se.xRel<0)?Hh(ie,fe,se,Se):lp(ie,fe,se,Se)}function Hh(ie,se,pe,fe){var Se=ie.display,Te=!1,_e=Wn(ie,function(Tt){be&&(Se.scroller.draggable=!1),ie.state.draggingText=!1,mn(Se.wrapper.ownerDocument,"mouseup",_e),mn(Se.wrapper.ownerDocument,"mousemove",ht),mn(Se.scroller,"dragstart",lt),mn(Se.scroller,"drop",_e),Te||(vi(Tt),fe.addNew||Za(ie.doc,pe,null,null,fe.extend),be&&!et||He&&it==9?setTimeout(function(){Se.wrapper.ownerDocument.body.focus({preventScroll:!0}),Se.input.focus()},20):Se.input.focus())}),ht=function(Tt){Te=Te||Math.abs(se.clientX-Tt.clientX)+Math.abs(se.clientY-Tt.clientY)>=10},lt=function(){return Te=!0};be&&(Se.scroller.draggable=!0),ie.state.draggingText=_e,_e.copy=!fe.moveOnDrag,Se.scroller.dragDrop&&Se.scroller.dragDrop(),dt(Se.wrapper.ownerDocument,"mouseup",_e),dt(Se.wrapper.ownerDocument,"mousemove",ht),dt(Se.scroller,"dragstart",lt),dt(Se.scroller,"drop",_e),_i(ie),setTimeout(function(){return Se.input.focus()},20)}function Yf(ie,se,pe){if(pe=="char")return new Cr(se,se);if(pe=="word")return ie.findWordAt(se);if(pe=="line")return new Cr(Qt(se.line,0),Yn(ie.doc,Qt(se.line+1,0)));var fe=pe(ie,se);return new Cr(fe.from,fe.to)}function lp(ie,se,pe,fe){var Se=ie.display,Te=ie.doc;vi(se);var _e,ht,lt=Te.sel,Tt=lt.ranges;if(fe.addNew&&!fe.extend?(ht=Te.sel.contains(pe),ht>-1?_e=Tt[ht]:_e=new Cr(pe,pe)):(_e=Te.sel.primary(),ht=Te.sel.primIndex),fe.unit=="rectangle")fe.addNew||(_e=new Cr(pe,pe)),pe=gl(ie,se,!0,!0),ht=-1;else{var wn=Yf(ie,pe,fe.unit);fe.extend?_e=wl(_e,wn.anchor,wn.head,fe.extend):_e=wn}fe.addNew?ht==-1?(ht=Tt.length,cs(Te,Zo(ie,Tt.concat([_e]),ht),{scroll:!1,origin:"*mouse"})):Tt.length>1&&Tt[ht].empty()&&fe.unit=="char"&&!fe.extend?(cs(Te,Zo(ie,Tt.slice(0,ht).concat(Tt.slice(ht+1)),0),{scroll:!1,origin:"*mouse"}),lt=Te.sel):ss(Te,ht,_e,Nt):(ht=0,cs(Te,new Eo([_e],0),Nt),lt=Te.sel);var Gt=pe;function ei(ro){if(Cn(Gt,ro)!=0)if(Gt=ro,fe.unit=="rectangle"){for(var Oo=[],ua=ie.options.tabSize,$r=at(xn(Te,pe.line).text,pe.ch,ua),Da=at(xn(Te,ro.line).text,ro.ch,ua),nl=Math.min($r,Da),Hl=Math.max($r,Da),hl=Math.min(pe.line,ro.line),ju=Math.min(ie.lastLine(),Math.max(pe.line,ro.line));hl<=ju;hl++){var xu=xn(Te,hl).text,Il=Nn(xu,nl,ua);nl==Hl?Oo.push(new Cr(Qt(hl,Il),Qt(hl,Il))):xu.length>Il&&Oo.push(new Cr(Qt(hl,Il),Qt(hl,Nn(xu,Hl,ua))))}Oo.length||Oo.push(new Cr(pe,pe)),cs(Te,Zo(ie,lt.ranges.slice(0,ht).concat(Oo),ht),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(ro)}else{var ec=_e,cu=Yf(ie,ro,fe.unit),Rl=ec.anchor,gs;Cn(cu.anchor,Rl)>0?(gs=cu.head,Rl=Pn(ec.from(),cu.anchor)):(gs=cu.anchor,Rl=En(ec.to(),cu.head));var pl=lt.ranges.slice(0);pl[ht]=hs(ie,new Cr(Yn(Te,Rl),gs)),cs(Te,Zo(ie,pl,ht),Nt)}}var Jn=Se.wrapper.getBoundingClientRect(),Wi=0;function Ui(ro){var Oo=++Wi,ua=gl(ie,ro,!0,fe.unit=="rectangle");if(ua)if(Cn(ua,Gt)!=0){ie.curOp.focus=Qe(),ei(ua);var $r=Qn(Se,Te);(ua.line>=$r.to||ua.line<$r.from)&&setTimeout(Wn(ie,function(){Wi==Oo&&Ui(ro)}),150)}else{var Da=ro.clientY<Jn.top?-20:ro.clientY>Jn.bottom?20:0;Da&&setTimeout(Wn(ie,function(){Wi==Oo&&(Se.scroller.scrollTop+=Da,Ui(ro))}),50)}}function vr(ro){ie.state.selectingText=!1,Wi=1/0,ro&&(vi(ro),Se.input.focus()),mn(Se.wrapper.ownerDocument,"mousemove",zr),mn(Se.wrapper.ownerDocument,"mouseup",xo),Te.history.lastSelOrigin=null}var zr=Wn(ie,function(ro){ro.buttons===0||!ir(ro)?vr(ro):Ui(ro)}),xo=Wn(ie,vr);ie.state.selectingText=xo,dt(Se.wrapper.ownerDocument,"mousemove",zr),dt(Se.wrapper.ownerDocument,"mouseup",xo)}function hs(ie,se){var pe=se.anchor,fe=se.head,Se=xn(ie.doc,pe.line);if(Cn(pe,fe)==0&&pe.sticky==fe.sticky)return se;var Te=Ve(Se);if(!Te)return se;var _e=ye(Te,pe.ch,pe.sticky),ht=Te[_e];if(ht.from!=pe.ch&&ht.to!=pe.ch)return se;var lt=_e+(ht.from==pe.ch==(ht.level!=1)?0:1);if(lt==0||lt==Te.length)return se;var Tt;if(fe.line!=pe.line)Tt=(fe.line-pe.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var wn=ye(Te,fe.ch,fe.sticky),Gt=wn-_e||(fe.ch-pe.ch)*(ht.level==1?-1:1);wn==lt-1||wn==lt?Tt=Gt<0:Tt=Gt>0}var ei=Te[lt+(Tt?-1:0)],Jn=Tt==(ei.level==1),Wi=Jn?ei.from:ei.to,Ui=Jn?"after":"before";return pe.ch==Wi&&pe.sticky==Ui?se:new Cr(new Qt(pe.line,Wi,Ui),fe)}function Go(ie,se,pe,fe){var Se,Te;if(se.touches)Se=se.touches[0].clientX,Te=se.touches[0].clientY;else try{Se=se.clientX,Te=se.clientY}catch(ei){return!1}if(Se>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;fe&&vi(se);var _e=ie.display,ht=_e.lineDiv.getBoundingClientRect();if(Te>ht.bottom||!Tn(ie,pe))return wi(se);Te-=ht.top-_e.viewOffset;for(var lt=0;lt<ie.display.gutterSpecs.length;++lt){var Tt=_e.gutters.childNodes[lt];if(Tt&&Tt.getBoundingClientRect().right>=Se){var wn=gn(ie.doc,Te),Gt=ie.display.gutterSpecs[lt];return Et(ie,pe,ie,wn,Gt.className,se),wi(se)}}}function la(ie,se){return Go(ie,se,"gutterClick",!0)}function ls(ie,se){Dl(ie.display,se)||ll(ie,se)||Ot(ie,se,"contextmenu")||Ae||ie.display.input.onContextMenu(se)}function ll(ie,se){return Tn(ie,"gutterContextMenu")?Go(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-"),Os(ie)}var Xl={toString:function(){return"CodeMirror.Init"}},Vc={},mc={};function hh(ie){var se=ie.optionHandlers;function pe(fe,Se,Te,_e){ie.defaults[fe]=Se,Te&&(se[fe]=_e?function(ht,lt,Tt){Tt!=Xl&&Te(ht,lt,Tt)}:Te)}ie.defineOption=pe,ie.Init=Xl,pe("value","",function(fe,Se){return fe.setValue(Se)},!0),pe("mode",null,function(fe,Se){fe.doc.modeOption=Se,po(fe)},!0),pe("indentUnit",2,po,!0),pe("indentWithTabs",!1),pe("smartIndent",!0),pe("tabSize",4,function(fe){Lo(fe),Os(fe),ws(fe)},!0),pe("lineSeparator",null,function(fe,Se){if(fe.doc.lineSep=Se,!!Se){var Te=[],_e=fe.doc.first;fe.doc.iter(function(lt){for(var Tt=0;;){var wn=lt.text.indexOf(Se,Tt);if(wn==-1)break;Tt=wn+Se.length,Te.push(Qt(_e,wn))}_e++});for(var ht=Te.length-1;ht>=0;ht--)Qu(fe.doc,Se,Te[ht],Qt(Te[ht].line,Te[ht].ch+Se.length))}}),pe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(fe,Se,Te){fe.state.specialChars=new RegExp(Se.source+(Se.test(" ")?"":"| "),"g"),Te!=Xl&&fe.refresh()}),pe("specialCharPlaceholder",Yo,function(fe){return fe.refresh()},!0),pe("electricChars",!0),pe("inputStyle",te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),pe("spellcheck",!1,function(fe,Se){return fe.getInputField().spellcheck=Se},!0),pe("autocorrect",!1,function(fe,Se){return fe.getInputField().autocorrect=Se},!0),pe("autocapitalize",!1,function(fe,Se){return fe.getInputField().autocapitalize=Se},!0),pe("rtlMoveVisually",!de),pe("wholeLineUpdateBefore",!0),pe("theme","default",function(fe){ld(fe),Ar(fe)},!0),pe("keyMap","default",function(fe,Se,Te){var _e=Dc(Se),ht=Te!=Xl&&Dc(Te);ht&&ht.detach&&ht.detach(fe,_e),_e.attach&&_e.attach(fe,ht||null)}),pe("extraKeys",null),pe("configureMouse",null),pe("lineWrapping",!1,vc,!0),pe("gutters",[],function(fe,Se){fe.display.gutterSpecs=Wr(Se,fe.options.lineNumbers),Ar(fe)},!0),pe("fixedGutter",!0,function(fe,Se){fe.display.gutters.style.left=Se?Td(fe.display)+"px":"0",fe.refresh()},!0),pe("coverGutterNextToScrollbar",!1,function(fe){return wa(fe)},!0),pe("scrollbarStyle","native",function(fe){ys(fe),wa(fe),fe.display.scrollbars.setScrollTop(fe.doc.scrollTop),fe.display.scrollbars.setScrollLeft(fe.doc.scrollLeft)},!0),pe("lineNumbers",!1,function(fe,Se){fe.display.gutterSpecs=Wr(fe.options.gutters,Se),Ar(fe)},!0),pe("firstLineNumber",1,Ar,!0),pe("lineNumberFormatter",function(fe){return fe},Ar,!0),pe("showCursorWhenSelecting",!1,rn,!0),pe("resetSelectionOnContextMenu",!0),pe("lineWiseCopyCut",!0),pe("pasteLinesPerSelection",!0),pe("selectionsMayTouch",!1),pe("readOnly",!1,function(fe,Se){Se=="nocursor"&&(zi(fe),fe.display.input.blur()),fe.display.input.readOnlyChanged(Se)}),pe("screenReaderLabel",null,function(fe,Se){Se=Se===""?null:Se,fe.display.input.screenReaderLabelChanged(Se)}),pe("disableInput",!1,function(fe,Se){Se||fe.display.input.reset()},!0),pe("dragDrop",!0,Yc),pe("allowDropFileTypes",null),pe("cursorBlinkRate",530),pe("cursorScrollMargin",0),pe("cursorHeight",1,rn,!0),pe("singleCursorHeightPerLine",!0,rn,!0),pe("workTime",100),pe("workDelay",100),pe("flattenSpans",!0,Lo,!0),pe("addModeClass",!1,Lo,!0),pe("pollInterval",100),pe("undoDepth",200,function(fe,Se){return fe.doc.history.undoDepth=Se}),pe("historyEventDelay",1250),pe("viewportMargin",10,function(fe){return fe.refresh()},!0),pe("maxHighlightLength",1e4,Lo,!0),pe("moveInputWithCursor",!0,function(fe,Se){Se||fe.display.input.resetPosition()}),pe("tabindex",null,function(fe,Se){return fe.display.input.getField().tabIndex=Se||""}),pe("autofocus",null),pe("direction","ltr",function(fe,Se){return fe.doc.setDirection(Se)},!0),pe("phrases",null)}function Yc(ie,se,pe){var fe=pe&&pe!=Xl;if(!se!=!fe){var Se=ie.display.dragFunctions,Te=se?dt:mn;Te(ie.display.scroller,"dragstart",Se.start),Te(ie.display.scroller,"dragenter",Se.enter),Te(ie.display.scroller,"dragover",Se.over),Te(ie.display.scroller,"dragleave",Se.leave),Te(ie.display.scroller,"drop",Se.drop)}}function vc(ie){ie.options.lineWrapping?(Dt(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ne(ie.display.wrapper,"CodeMirror-wrap"),na(ie)),No(ie),ws(ie),Os(ie),setTimeout(function(){return wa(ie)},100)}function fs(ie,se){var pe=this;if(!(this instanceof fs))return new fs(ie,se);this.options=se=se?Jt(se):{},Jt(Vc,se,!1);var fe=se.value;typeof fe=="string"?fe=new Al(fe,se.mode,null,se.lineSeparator,se.direction):se.mode&&(fe.modeOption=se.mode),this.doc=fe;var Se=new fs.inputStyles[se.inputStyle](this),Te=this.display=new _r(ie,fe,Se,se);Te.wrapper.CodeMirror=this,ld(this),se.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ys(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 Ze,keySeq:null,specialChars:null},se.autofocus&&!te&&Te.input.focus(),He&&it<11&&setTimeout(function(){return pe.display.input.reset(!0)},20),xf(this),vu(),Oa(this),this.curOp.forceUpdate=!0,ko(this,fe),se.autofocus&&!te||this.hasFocus()?setTimeout(function(){pe.hasFocus()&&!pe.state.focused&&yi(pe)},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);Hs(this),be&&se.lineWrapping&&getComputedStyle(Te.lineDiv).textRendering=="optimizelegibility"&&(Te.lineDiv.style.textRendering="auto")}fs.defaults=Vc,fs.optionHandlers=mc;function xf(ie){var se=ie.display;dt(se.scroller,"mousedown",Wn(ie,Bc)),He&&it<11?dt(se.scroller,"dblclick",Wn(ie,function(lt){if(!Ot(ie,lt)){var Tt=gl(ie,lt);if(!(!Tt||la(ie,lt)||Dl(ie.display,lt))){vi(lt);var wn=ie.findWordAt(Tt);Za(ie.doc,wn.anchor,wn.head)}}})):dt(se.scroller,"dblclick",function(lt){return Ot(ie,lt)||vi(lt)}),dt(se.scroller,"contextmenu",function(lt){return ls(ie,lt)}),dt(se.input.getField(),"contextmenu",function(lt){se.scroller.contains(lt.target)||ls(ie,lt)});var pe,fe={end:0};function Se(){se.activeTouch&&(pe=setTimeout(function(){return se.activeTouch=null},1e3),fe=se.activeTouch,fe.end=+new Date)}function Te(lt){if(lt.touches.length!=1)return!1;var Tt=lt.touches[0];return Tt.radiusX<=1&&Tt.radiusY<=1}function _e(lt,Tt){if(Tt.left==null)return!0;var wn=Tt.left-lt.left,Gt=Tt.top-lt.top;return wn*wn+Gt*Gt>20*20}dt(se.scroller,"touchstart",function(lt){if(!Ot(ie,lt)&&!Te(lt)&&!la(ie,lt)){se.input.ensurePolled(),clearTimeout(pe);var Tt=+new Date;se.activeTouch={start:Tt,moved:!1,prev:Tt-fe.end<=300?fe:null},lt.touches.length==1&&(se.activeTouch.left=lt.touches[0].pageX,se.activeTouch.top=lt.touches[0].pageY)}}),dt(se.scroller,"touchmove",function(){se.activeTouch&&(se.activeTouch.moved=!0)}),dt(se.scroller,"touchend",function(lt){var Tt=se.activeTouch;if(Tt&&!Dl(se,lt)&&Tt.left!=null&&!Tt.moved&&new Date-Tt.start<300){var wn=ie.coordsChar(se.activeTouch,"page"),Gt;!Tt.prev||_e(Tt,Tt.prev)?Gt=new Cr(wn,wn):!Tt.prev.prev||_e(Tt,Tt.prev.prev)?Gt=ie.findWordAt(wn):Gt=new Cr(Qt(wn.line,0),Yn(ie.doc,Qt(wn.line+1,0))),ie.setSelection(Gt.anchor,Gt.head),ie.focus(),vi(lt)}Se()}),dt(se.scroller,"touchcancel",Se),dt(se.scroller,"scroll",function(){se.scroller.clientHeight&&(ma(ie,se.scroller.scrollTop),Wa(ie,se.scroller.scrollLeft,!0),Et(ie,"scroll",ie))}),dt(se.scroller,"mousewheel",function(lt){return wo(ie,lt)}),dt(se.scroller,"DOMMouseScroll",function(lt){return wo(ie,lt)}),dt(se.wrapper,"scroll",function(){return se.wrapper.scrollTop=se.wrapper.scrollLeft=0}),se.dragFunctions={enter:function(lt){Ot(ie,lt)||_n(lt)},over:function(lt){Ot(ie,lt)||(Rd(ie,lt),_n(lt))},start:function(lt){return Id(ie,lt)},drop:Wn(ie,Od),leave:function(lt){Ot(ie,lt)||gf(ie)}};var ht=se.input.getField();dt(ht,"keyup",function(lt){return yf.call(ie,lt)}),dt(ht,"keydown",Wn(ie,vf)),dt(ht,"keypress",Wn(ie,pc)),dt(ht,"focus",function(lt){return yi(ie,lt)}),dt(ht,"blur",function(lt){return zi(ie,lt)})}var Wh=[];fs.defineInitHook=function(ie){return Wh.push(ie)};function jl(ie,se,pe,fe){var Se=ie.doc,Te;pe==null&&(pe="add"),pe=="smart"&&(Se.mode.indent?Te=ar(ie,se).state:pe="prev");var _e=ie.options.tabSize,ht=xn(Se,se),lt=at(ht.text,null,_e);ht.stateAfter&&(ht.stateAfter=null);var Tt=ht.text.match(/^\s*/)[0],wn;if(!fe&&!/\S/.test(ht.text))wn=0,pe="not";else if(pe=="smart"&&(wn=Se.mode.indent(Te,ht.text.slice(Tt.length),ht.text),wn==Vt||wn>150)){if(!fe)return;pe="prev"}pe=="prev"?se>Se.first?wn=at(xn(Se,se-1).text,null,_e):wn=0:pe=="add"?wn=lt+ie.options.indentUnit:pe=="subtract"?wn=lt-ie.options.indentUnit:typeof pe=="number"&&(wn=lt+pe),wn=Math.max(0,wn);var Gt="",ei=0;if(ie.options.indentWithTabs)for(var Jn=Math.floor(wn/_e);Jn;--Jn)ei+=_e,Gt+=" ";if(ei<wn&&(Gt+=Xn(wn-ei)),Gt!=Tt)return Qu(Se,Gt,Qt(se,0),Qt(se,Tt.length),"+input"),ht.stateAfter=null,!0;for(var Wi=0;Wi<Se.sel.ranges.length;Wi++){var Ui=Se.sel.ranges[Wi];if(Ui.head.line==se&&Ui.head.ch<Tt.length){var vr=Qt(se,Tt.length);ss(Se,Wi,new Cr(vr,vr));break}}}var zu=null;function Zh(ie){zu=ie}function Uf(ie,se,pe,fe,Se){var Te=ie.doc;ie.display.shift=!1,fe||(fe=Te.sel);var _e=+new Date-200,ht=Se=="paste"||ie.state.pasteIncoming>_e,lt=Vi(se),Tt=null;if(ht&&fe.ranges.length>1)if(zu&&zu.text.join(`
|
|
|
`)==se){if(fe.ranges.length%zu.text.length==0){Tt=[];for(var wn=0;wn<zu.text.length;wn++)Tt.push(Te.splitLines(zu.text[wn]))}}else lt.length==fe.ranges.length&&ie.options.pasteLinesPerSelection&&(Tt=Un(lt,function(zr){return[zr]}));for(var Gt=ie.curOp.updateInput,ei=fe.ranges.length-1;ei>=0;ei--){var Jn=fe.ranges[ei],Wi=Jn.from(),Ui=Jn.to();Jn.empty()&&(pe&&pe>0?Wi=Qt(Wi.line,Wi.ch-pe):ie.state.overwrite&&!ht?Ui=Qt(Ui.line,Math.min(xn(Te,Ui.line).text.length,Ui.ch+Ft(lt).length)):ht&&zu&&zu.lineWise&&zu.text.join(`
|
|
|
`)==lt.join(`
|
|
|
`)&&(Wi=Ui=Qt(Wi.line,0)));var vr={from:Wi,to:Ui,text:Tt?Tt[ei%Tt.length]:lt,origin:Se||(ht?"paste":ie.state.cutIncoming>_e?"cut":"+input")};Cs(ie.doc,vr),Yi(ie,"inputRead",ie,vr)}se&&!ht&&cp(ie,se),so(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Gt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function up(ie,se){var pe=ie.clipboardData&&ie.clipboardData.getData("Text");if(pe)return ie.preventDefault(),!se.isReadOnly()&&!se.options.disableInput&&un(se,function(){return Uf(se,pe,0,null,"paste")}),!0}function cp(ie,se){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var pe=ie.doc.sel,fe=pe.ranges.length-1;fe>=0;fe--){var Se=pe.ranges[fe];if(!(Se.head.ch>100||fe&&pe.ranges[fe-1].head.line==Se.head.line)){var Te=ie.getModeAt(Se.head),_e=!1;if(Te.electricChars){for(var ht=0;ht<Te.electricChars.length;ht++)if(se.indexOf(Te.electricChars.charAt(ht))>-1){_e=jl(ie,Se.head.line,"smart");break}}else Te.electricInput&&Te.electricInput.test(xn(ie.doc,Se.head.line).text.slice(0,Se.head.ch))&&(_e=jl(ie,Se.head.line,"smart"));_e&&Yi(ie,"electricInput",ie,Se.head.line)}}}function dp(ie){for(var se=[],pe=[],fe=0;fe<ie.doc.sel.ranges.length;fe++){var Se=ie.doc.sel.ranges[fe].head.line,Te={anchor:Qt(Se,0),head:Qt(Se+1,0)};pe.push(Te),se.push(ie.getRange(Te.anchor,Te.head))}return{text:se,ranges:pe}}function hp(ie,se,pe,fe){ie.setAttribute("autocorrect",pe?"":"off"),ie.setAttribute("autocapitalize",fe?"":"off"),ie.setAttribute("spellcheck",!!se)}function fp(){var ie=je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),se=je("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,pe=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(fe,Se){var Te=this.options,_e=Te[fe];Te[fe]==Se&&fe!="mode"||(Te[fe]=Se,se.hasOwnProperty(fe)&&Wn(this,se[fe])(this,Se,_e),Et(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"](Dc(fe))},removeKeyMap:function(fe){for(var Se=this.state.keyMaps,Te=0;Te<Se.length;++Te)if(Se[Te]==fe||Se[Te].name==fe)return Se.splice(Te,1),!0},addOverlay:jn(function(fe,Se){var Te=fe.token?fe:ie.getMode(this.options,fe);if(Te.startState)throw new Error("Overlays may not be stateful.");Kn(this.state.overlays,{mode:Te,modeSpec:fe,opaque:Se&&Se.opaque,priority:Se&&Se.priority||0},function(_e){return _e.priority}),this.state.modeGen++,ws(this)}),removeOverlay:jn(function(fe){for(var Se=this.state.overlays,Te=0;Te<Se.length;++Te){var _e=Se[Te].modeSpec;if(_e==fe||typeof fe=="string"&&_e.name==fe){Se.splice(Te,1),this.state.modeGen++,ws(this);return}}}),indentLine:jn(function(fe,Se,Te){typeof Se!="string"&&typeof Se!="number"&&(Se==null?Se=this.options.smartIndent?"smart":"prev":Se=Se?"add":"subtract"),nn(this.doc,fe)&&jl(this,fe,Se,Te)}),indentSelection:jn(function(fe){for(var Se=this.doc.sel.ranges,Te=-1,_e=0;_e<Se.length;_e++){var ht=Se[_e];if(ht.empty())ht.head.line>Te&&(jl(this,ht.head.line,fe,!0),Te=ht.head.line,_e==this.doc.sel.primIndex&&so(this));else{var lt=ht.from(),Tt=ht.to(),wn=Math.max(Te,lt.line);Te=Math.min(this.lastLine(),Tt.line-(Tt.ch?0:1))+1;for(var Gt=wn;Gt<Te;++Gt)jl(this,Gt,fe);var ei=this.doc.sel.ranges;lt.ch==0&&Se.length==ei.length&&ei[_e].from().ch>0&&ss(this.doc,_e,new Cr(lt,ei[_e].to()),Ct)}}}),getTokenAt:function(fe,Se){return bi(this,fe,Se)},getLineTokens:function(fe,Se){return bi(this,Qt(fe),Se,!0)},getTokenTypeAt:function(fe){fe=Yn(this.doc,fe);var Se=Dr(this,xn(this.doc,fe.line)),Te=0,_e=(Se.length-1)/2,ht=fe.ch,lt;if(ht==0)lt=Se[2];else for(;;){var Tt=Te+_e>>1;if((Tt?Se[Tt*2-1]:0)>=ht)_e=Tt;else if(Se[Tt*2+1]<ht)Te=Tt+1;else{lt=Se[Tt*2+2];break}}var wn=lt?lt.indexOf("overlay "):-1;return wn<0?lt:wn==0?null:lt.slice(0,wn-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 Te=[];if(!pe.hasOwnProperty(Se))return Te;var _e=pe[Se],ht=this.getModeAt(fe);if(typeof ht[Se]=="string")_e[ht[Se]]&&Te.push(_e[ht[Se]]);else if(ht[Se])for(var lt=0;lt<ht[Se].length;lt++){var Tt=_e[ht[Se][lt]];Tt&&Te.push(Tt)}else ht.helperType&&_e[ht.helperType]?Te.push(_e[ht.helperType]):_e[ht.name]&&Te.push(_e[ht.name]);for(var wn=0;wn<_e._global.length;wn++){var Gt=_e._global[wn];Gt.pred(ht,this)&&Mt(Te,Gt.val)==-1&&Te.push(Gt.val)}return Te},getStateAfter:function(fe,Se){var Te=this.doc;return fe=Rn(Te,fe==null?Te.first+Te.size-1:fe),ar(this,fe+1,Se).state},cursorCoords:function(fe,Se){var Te,_e=this.doc.sel.primary();return fe==null?Te=_e.head:typeof fe=="object"?Te=Yn(this.doc,fe):Te=fe?_e.from():_e.to(),Ls(this,Te,Se||"page")},charCoords:function(fe,Se){return au(this,Yn(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,gn(this.doc,fe+this.display.viewOffset)},heightAtLine:function(fe,Se,Te){var _e=!1,ht;if(typeof fe=="number"){var lt=this.doc.first+this.doc.size-1;fe<this.doc.first?fe=this.doc.first:fe>lt&&(fe=lt,_e=!0),ht=xn(this.doc,fe)}else ht=fe;return Is(this,ht,{top:0,left:0},Se||"page",Te||_e).top+(_e?this.doc.height-Xo(ht):0)},defaultTextHeight:function(){return hc(this.display)},defaultCharWidth:function(){return Fc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(fe,Se,Te,_e,ht){var lt=this.display;fe=Ls(this,Yn(this.doc,fe));var Tt=fe.bottom,wn=fe.left;if(Se.style.position="absolute",Se.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Se),lt.sizer.appendChild(Se),_e=="over")Tt=fe.top;else if(_e=="above"||_e=="near"){var Gt=Math.max(lt.wrapper.clientHeight,this.doc.height),ei=Math.max(lt.sizer.clientWidth,lt.lineSpace.clientWidth);(_e=="above"||fe.bottom+Se.offsetHeight>Gt)&&fe.top>Se.offsetHeight?Tt=fe.top-Se.offsetHeight:fe.bottom+Se.offsetHeight<=Gt&&(Tt=fe.bottom),wn+Se.offsetWidth>ei&&(wn=ei-Se.offsetWidth)}Se.style.top=Tt+"px",Se.style.left=Se.style.right="",ht=="right"?(wn=lt.sizer.clientWidth-Se.offsetWidth,Se.style.right="0px"):(ht=="left"?wn=0:ht=="middle"&&(wn=(lt.sizer.clientWidth-Se.offsetWidth)/2),Se.style.left=wn+"px"),Te&&no(this,{left:wn,top:Tt,right:wn+Se.offsetWidth,bottom:Tt+Se.offsetHeight})},triggerOnKeyDown:jn(vf),triggerOnKeyPress:jn(pc),triggerOnKeyUp:yf,triggerOnMouseDown:jn(Bc),execCommand:function(fe){if(Fl.hasOwnProperty(fe))return Fl[fe].call(null,this)},triggerElectric:jn(function(fe){cp(this,fe)}),findPosH:function(fe,Se,Te,_e){var ht=1;Se<0&&(ht=-1,Se=-Se);for(var lt=Yn(this.doc,fe),Tt=0;Tt<Se&&(lt=Xf(this.doc,lt,ht,Te,_e),!lt.hitSide);++Tt);return lt},moveH:jn(function(fe,Se){var Te=this;this.extendSelectionsBy(function(_e){return Te.display.shift||Te.doc.extend||_e.empty()?Xf(Te.doc,_e.head,fe,Se,Te.options.rtlMoveVisually):fe<0?_e.from():_e.to()},sn)}),deleteH:jn(function(fe,Se){var Te=this.doc.sel,_e=this.doc;Te.somethingSelected()?_e.replaceSelection("",null,"+delete"):Tl(this,function(ht){var lt=Xf(_e,ht.head,fe,Se,!1);return fe<0?{from:lt,to:ht.head}:{from:ht.head,to:lt}})}),findPosV:function(fe,Se,Te,_e){var ht=1,lt=_e;Se<0&&(ht=-1,Se=-Se);for(var Tt=Yn(this.doc,fe),wn=0;wn<Se;++wn){var Gt=Ls(this,Tt,"div");if(lt==null?lt=Gt.left:Gt.left=lt,Tt=gh(this,Gt,ht,Te),Tt.hitSide)break}return Tt},moveV:jn(function(fe,Se){var Te=this,_e=this.doc,ht=[],lt=!this.display.shift&&!_e.extend&&_e.sel.somethingSelected();if(_e.extendSelectionsBy(function(wn){if(lt)return fe<0?wn.from():wn.to();var Gt=Ls(Te,wn.head,"div");wn.goalColumn!=null&&(Gt.left=wn.goalColumn),ht.push(Gt.left);var ei=gh(Te,Gt,fe,Se);return Se=="page"&&wn==_e.sel.primary()&&ao(Te,au(Te,ei,"div").top-Gt.top),ei},sn),ht.length)for(var Tt=0;Tt<_e.sel.ranges.length;Tt++)_e.sel.ranges[Tt].goalColumn=ht[Tt]}),findWordAt:function(fe){var Se=this.doc,Te=xn(Se,fe.line).text,_e=fe.ch,ht=fe.ch;if(Te){var lt=this.getHelper(fe,"wordChars");(fe.sticky=="before"||ht==Te.length)&&_e?--_e:++ht;for(var Tt=Te.charAt(_e),wn=mt(Tt,lt)?function(Gt){return mt(Gt,lt)}:/\s/.test(Tt)?function(Gt){return/\s/.test(Gt)}:function(Gt){return!/\s/.test(Gt)&&!mt(Gt)};_e>0&&wn(Te.charAt(_e-1));)--_e;for(;ht<Te.length&&wn(Te.charAt(ht));)++ht}return new Cr(Qt(fe.line,_e),Qt(fe.line,ht))},toggleOverwrite:function(fe){fe!=null&&fe==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Dt(this.display.cursorDiv,"CodeMirror-overwrite"):Ne(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Qe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:jn(function(fe,Se){io(this,fe,Se)}),getScrollInfo:function(){var fe=this.display.scroller;return{left:fe.scrollLeft,top:fe.scrollTop,height:fe.scrollHeight-Ms(this)-this.display.barHeight,width:fe.scrollWidth-Ms(this)-this.display.barWidth,clientHeight:Yu(this),clientWidth:zs(this)}},scrollIntoView:jn(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?qi(this,fe):$o(this,fe.from,fe.to,fe.margin)}),setSize:jn(function(fe,Se){var Te=this,_e=function(lt){return typeof lt=="number"||/^\d+$/.test(String(lt))?lt+"px":lt};fe!=null&&(this.display.wrapper.style.width=_e(fe)),Se!=null&&(this.display.wrapper.style.height=_e(Se)),this.options.lineWrapping&&Ts(this);var ht=this.display.viewFrom;this.doc.iter(ht,this.display.viewTo,function(lt){if(lt.widgets){for(var Tt=0;Tt<lt.widgets.length;Tt++)if(lt.widgets[Tt].noHScroll){pa(Te,ht,"widget");break}}++ht}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(fe){return un(this,fe)},startOperation:function(){return Oa(this)},endOperation:function(){return Hs(this)},refresh:jn(function(){var fe=this.display.cachedTextHeight;ws(this),this.curOp.forceUpdate=!0,Os(this),io(this,this.doc.scrollLeft,this.doc.scrollTop),br(this.display),(fe==null||Math.abs(fe-hc(this.display))>.5||this.options.lineWrapping)&&No(this),Et(this,"refresh",this)}),swapDoc:jn(function(fe){var Se=this.doc;return Se.cm=null,this.state.selectingText&&this.state.selectingText(),ko(this,fe),Os(this),this.display.input.reset(),io(this,fe.scrollLeft,fe.scrollTop),this.curOp.forceScroll=!0,Yi(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}},qn(ie),ie.registerHelper=function(fe,Se,Te){pe.hasOwnProperty(fe)||(pe[fe]=ie[fe]={_global:[]}),pe[fe][Se]=Te},ie.registerGlobalHelper=function(fe,Se,Te,_e){ie.registerHelper(fe,Se,_e),pe[fe]._global.push({pred:Te,val:_e})}}function Xf(ie,se,pe,fe,Se){var Te=se,_e=pe,ht=xn(ie,se.line),lt=Se&&ie.direction=="rtl"?-pe:pe;function Tt(){var xo=se.line+lt;return xo<ie.first||xo>=ie.first+ie.size?!1:(se=new Qt(xo,se.ch,se.sticky),ht=xn(ie,xo))}function wn(xo){var ro;if(fe=="codepoint"){var Oo=ht.text.charCodeAt(se.ch+(fe>0?0:-1));isNaN(Oo)?ro=null:ro=new Qt(se.line,Math.max(0,Math.min(ht.text.length,se.ch+pe*(Oo>=55296&&Oo<56320?2:1))),-pe)}else Se?ro=As(ie.cm,ht,se,pe):ro=sl(ht,se,pe);if(ro==null)if(!xo&&Tt())se=Ya(Se,ie.cm,ht,se.line,lt);else return!1;else se=ro;return!0}if(fe=="char"||fe=="codepoint")wn();else if(fe=="column")wn(!0);else if(fe=="word"||fe=="group")for(var Gt=null,ei=fe=="group",Jn=ie.cm&&ie.cm.getHelper(se,"wordChars"),Wi=!0;!(pe<0&&!wn(!Wi));Wi=!1){var Ui=ht.text.charAt(se.ch)||`
|
|
|
`,vr=mt(Ui,Jn)?"w":ei&&Ui==`
|
|
|
`?"n":!ei||/\s/.test(Ui)?null:"p";if(ei&&!Wi&&!vr&&(vr="s"),Gt&&Gt!=vr){pe<0&&(pe=1,wn(),se.sticky="after");break}if(vr&&(Gt=vr),pe>0&&!wn(!Wi))break}var zr=Fu(ie,se,Te,_e,!0);return $t(Te,zr)&&(zr.hitSide=!0),zr}function gh(ie,se,pe,fe){var Se=ie.doc,Te=se.left,_e;if(fe=="page"){var ht=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),lt=Math.max(ht-.5*hc(ie.display),3);_e=(pe>0?se.bottom:se.top)+pe*lt}else fe=="line"&&(_e=pe>0?se.bottom+3:se.top-3);for(var Tt;Tt=id(ie,Te,_e),!!Tt.outside;){if(pe<0?_e<=0:_e>=Se.height){Tt.hitSide=!0;break}_e+=pe*5}return Tt}var Zs=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ze,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Zs.prototype.init=function(ie){var se=this,pe=this,fe=pe.cm,Se=pe.div=ie.lineDiv;hp(Se,fe.options.spellcheck,fe.options.autocorrect,fe.options.autocapitalize);function Te(ht){for(var lt=ht.target;lt;lt=lt.parentNode){if(lt==Se)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(lt.className))break}return!1}dt(Se,"paste",function(ht){!Te(ht)||Ot(fe,ht)||up(ht,fe)||it<=11&&setTimeout(Wn(fe,function(){return se.updateFromDOM()}),20)}),dt(Se,"compositionstart",function(ht){se.composing={data:ht.data,done:!1}}),dt(Se,"compositionupdate",function(ht){se.composing||(se.composing={data:ht.data,done:!1})}),dt(Se,"compositionend",function(ht){se.composing&&(ht.data!=se.composing.data&&se.readFromDOMSoon(),se.composing.done=!0)}),dt(Se,"touchstart",function(){return pe.forceCompositionEnd()}),dt(Se,"input",function(){se.composing||se.readFromDOMSoon()});function _e(ht){if(!(!Te(ht)||Ot(fe,ht))){if(fe.somethingSelected())Zh({lineWise:!1,text:fe.getSelections()}),ht.type=="cut"&&fe.replaceSelection("",null,"cut");else if(fe.options.lineWiseCopyCut){var lt=dp(fe);Zh({lineWise:!0,text:lt.text}),ht.type=="cut"&&fe.operation(function(){fe.setSelections(lt.ranges,0,Ct),fe.replaceSelection("",null,"cut")})}else return;if(ht.clipboardData){ht.clipboardData.clearData();var Tt=zu.text.join(`
|
|
|
`);if(ht.clipboardData.setData("Text",Tt),ht.clipboardData.getData("Text")==Tt){ht.preventDefault();return}}var wn=fp(),Gt=wn.firstChild;fe.display.lineSpace.insertBefore(wn,fe.display.lineSpace.firstChild),Gt.value=zu.text.join(`
|
|
|
`);var ei=document.activeElement;kt(Gt),setTimeout(function(){fe.display.lineSpace.removeChild(wn),ei.focus(),ei==Se&&pe.showPrimarySelection()},50)}}dt(Se,"copy",_e),dt(Se,"cut",_e)},Zs.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Zs.prototype.prepareSelection=function(){var ie=ln(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Zs.prototype.showSelection=function(ie,se){!ie||!this.cm.display.view.length||((ie.focus||se)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Zs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Zs.prototype.showPrimarySelection=function(){var ie=this.getSelection(),se=this.cm,pe=se.doc.sel.primary(),fe=pe.from(),Se=pe.to();if(se.display.viewTo==se.display.viewFrom||fe.line>=se.display.viewTo||Se.line<se.display.viewFrom){ie.removeAllRanges();return}var Te=_f(se,ie.anchorNode,ie.anchorOffset),_e=_f(se,ie.focusNode,ie.focusOffset);if(!(Te&&!Te.bad&&_e&&!_e.bad&&Cn(Pn(Te,_e),fe)==0&&Cn(En(Te,_e),Se)==0)){var ht=se.display.view,lt=fe.line>=se.display.viewFrom&&Pg(se,fe)||{node:ht[0].measure.map[2],offset:0},Tt=Se.line<se.display.viewTo&&Pg(se,Se);if(!Tt){var wn=ht[ht.length-1].measure,Gt=wn.maps?wn.maps[wn.maps.length-1]:wn.map;Tt={node:Gt[Gt.length-1],offset:Gt[Gt.length-2]-Gt[Gt.length-3]}}if(!lt||!Tt){ie.removeAllRanges();return}var ei=ie.rangeCount&&ie.getRangeAt(0),Jn;try{Jn=We(lt.node,lt.offset,Tt.offset,Tt.node)}catch(Wi){}Jn&&(!ge&&se.state.focused?(ie.collapse(lt.node,lt.offset),Jn.collapsed||(ie.removeAllRanges(),ie.addRange(Jn))):(ie.removeAllRanges(),ie.addRange(Jn)),ei&&ie.anchorNode==null?ie.addRange(ei):ge&&this.startGracePeriod()),this.rememberSelection()}},Zs.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)},Zs.prototype.showMultipleSelections=function(ie){Re(this.cm.display.cursorDiv,ie.cursors),Re(this.cm.display.selectionDiv,ie.selection)},Zs.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Zs.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var se=ie.getRangeAt(0).commonAncestorContainer;return bt(this.div,se)},Zs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Zs.prototype.blur=function(){this.div.blur()},Zs.prototype.getField=function(){return this.div},Zs.prototype.supportsTouch=function(){return!0},Zs.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)},Zs.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Zs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),se=this.cm;if(ee&&ct&&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 pe=_f(se,ie.anchorNode,ie.anchorOffset),fe=_f(se,ie.focusNode,ie.focusOffset);pe&&fe&&un(se,function(){cs(se.doc,Jo(pe,fe),Ct),(pe.bad||fe.bad)&&(se.curOp.selectionChanged=!0)})}}},Zs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,se=ie.display,pe=ie.doc.sel.primary(),fe=pe.from(),Se=pe.to();if(fe.ch==0&&fe.line>ie.firstLine()&&(fe=Qt(fe.line-1,xn(ie.doc,fe.line-1).length)),Se.ch==xn(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 Te,_e,ht;fe.line==se.viewFrom||(Te=Nl(ie,fe.line))==0?(_e=It(se.view[0].line),ht=se.view[0].node):(_e=It(se.view[Te].line),ht=se.view[Te-1].node.nextSibling);var lt=Nl(ie,Se.line),Tt,wn;if(lt==se.view.length-1?(Tt=se.viewTo-1,wn=se.lineDiv.lastChild):(Tt=It(se.view[lt+1].line)-1,wn=se.view[lt+1].node.previousSibling),!ht)return!1;for(var Gt=ie.doc.splitLines(wf(ie,ht,wn,_e,Tt)),ei=Ln(ie.doc,Qt(_e,0),Qt(Tt,xn(ie.doc,Tt).text.length));Gt.length>1&&ei.length>1;)if(Ft(Gt)==Ft(ei))Gt.pop(),ei.pop(),Tt--;else if(Gt[0]==ei[0])Gt.shift(),ei.shift(),_e++;else break;for(var Jn=0,Wi=0,Ui=Gt[0],vr=ei[0],zr=Math.min(Ui.length,vr.length);Jn<zr&&Ui.charCodeAt(Jn)==vr.charCodeAt(Jn);)++Jn;for(var xo=Ft(Gt),ro=Ft(ei),Oo=Math.min(xo.length-(Gt.length==1?Jn:0),ro.length-(ei.length==1?Jn:0));Wi<Oo&&xo.charCodeAt(xo.length-Wi-1)==ro.charCodeAt(ro.length-Wi-1);)++Wi;if(Gt.length==1&&ei.length==1&&_e==fe.line)for(;Jn&&Jn>fe.ch&&xo.charCodeAt(xo.length-Wi-1)==ro.charCodeAt(ro.length-Wi-1);)Jn--,Wi++;Gt[Gt.length-1]=xo.slice(0,xo.length-Wi).replace(/^\u200b+/,""),Gt[0]=Gt[0].slice(Jn).replace(/\u200b+$/,"");var ua=Qt(_e,Jn),$r=Qt(Tt,ei.length?Ft(ei).length-Wi:0);if(Gt.length>1||Gt[0]||Cn(ua,$r))return Qu(ie.doc,Gt,ua,$r,"+input"),!0},Zs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Zs.prototype.reset=function(){this.forceCompositionEnd()},Zs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Zs.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))},Zs.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&un(this.cm,function(){return ws(ie.cm)})},Zs.prototype.setUneditable=function(ie){ie.contentEditable="false"},Zs.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Wn(this.cm,Uf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Zs.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Zs.prototype.onContextMenu=function(){},Zs.prototype.resetPosition=function(){},Zs.prototype.needsContentAttribute=!0;function Pg(ie,se){var pe=Vl(ie,se.line);if(!pe||pe.hidden)return null;var fe=xn(ie.doc,se.line),Se=Uu(pe,fe,se.line),Te=Ve(fe,ie.doc.direction),_e="left";if(Te){var ht=ye(Te,se.ch);_e=ht%2?"right":"left"}var lt=_u(Se.map,se.ch,_e);return lt.offset=lt.collapse=="right"?lt.end:lt.start,lt}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,pe,fe,Se){var Te="",_e=!1,ht=ie.doc.lineSeparator(),lt=!1;function Tt(Jn){return function(Wi){return Wi.id==Jn}}function wn(){_e&&(Te+=ht,lt&&(Te+=ht),_e=lt=!1)}function Gt(Jn){Jn&&(wn(),Te+=Jn)}function ei(Jn){if(Jn.nodeType==1){var Wi=Jn.getAttribute("cm-text");if(Wi){Gt(Wi);return}var Ui=Jn.getAttribute("cm-marker"),vr;if(Ui){var zr=ie.findMarks(Qt(fe,0),Qt(Se+1,0),Tt(+Ui));zr.length&&(vr=zr[0].find(0))&&Gt(Ln(ie.doc,vr.from,vr.to).join(ht));return}if(Jn.getAttribute("contenteditable")=="false")return;var xo=/^(pre|div|p|li|table|br)$/i.test(Jn.nodeName);if(!/^br$/i.test(Jn.nodeName)&&Jn.textContent.length==0)return;xo&&wn();for(var ro=0;ro<Jn.childNodes.length;ro++)ei(Jn.childNodes[ro]);/^(pre|p)$/i.test(Jn.nodeName)&&(lt=!0),xo&&(_e=!0)}else Jn.nodeType==3&&Gt(Jn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ei(se),se!=pe;)se=se.nextSibling,lt=!1;return Te}function _f(ie,se,pe){var fe;if(se==ie.display.lineDiv){if(fe=ie.display.lineDiv.childNodes[pe],!fe)return Pf(ie.clipPos(Qt(ie.display.viewTo-1)),!0);se=null,pe=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 Te=ie.display.view[Se];if(Te.node==fe)return hm(Te,se,pe)}}function hm(ie,se,pe){var fe=ie.text.firstChild,Se=!1;if(!se||!bt(fe,se))return Pf(Qt(It(ie.line),0),!0);if(se==fe&&(Se=!0,se=fe.childNodes[pe],pe=0,!se)){var Te=ie.rest?Ft(ie.rest):ie.line;return Pf(Qt(It(Te),Te.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,pe&&(pe=_e.nodeValue.length));ht.parentNode!=fe;)ht=ht.parentNode;var lt=ie.measure,Tt=lt.maps;function wn(vr,zr,xo){for(var ro=-1;ro<(Tt?Tt.length:0);ro++)for(var Oo=ro<0?lt.map:Tt[ro],ua=0;ua<Oo.length;ua+=3){var $r=Oo[ua+2];if($r==vr||$r==zr){var Da=It(ro<0?ie.line:ie.rest[ro]),nl=Oo[ua]+xo;return(xo<0||$r!=vr)&&(nl=Oo[ua+(xo?1:0)]),Qt(Da,nl)}}}var Gt=wn(_e,ht,pe);if(Gt)return Pf(Gt,Se);for(var ei=ht.nextSibling,Jn=_e?_e.nodeValue.length-pe:0;ei;ei=ei.nextSibling){if(Gt=wn(ei,ei.firstChild,0),Gt)return Pf(Qt(Gt.line,Gt.ch-Jn),Se);Jn+=ei.textContent.length}for(var Wi=ht.previousSibling,Ui=pe;Wi;Wi=Wi.previousSibling){if(Gt=wn(Wi,Wi.firstChild,-1),Gt)return Pf(Qt(Gt.line,Gt.ch+Ui),Se);Ui+=Wi.textContent.length}}var Ol=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new Ze,this.hasSelection=!1,this.composing=null};Ol.prototype.init=function(ie){var se=this,pe=this,fe=this.cm;this.createField(ie);var Se=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Ee&&(Se.style.width="0px"),dt(Se,"input",function(){He&&it>=9&&se.hasSelection&&(se.hasSelection=null),pe.poll()}),dt(Se,"paste",function(_e){Ot(fe,_e)||up(_e,fe)||(fe.state.pasteIncoming=+new Date,pe.fastPoll())});function Te(_e){if(!Ot(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,Ct):(pe.prevInput="",Se.value=ht.text.join(`
|
|
|
`),kt(Se))}else return;_e.type=="cut"&&(fe.state.cutIncoming=+new Date)}}dt(Se,"cut",Te),dt(Se,"copy",Te),dt(ie.scroller,"paste",function(_e){if(!(Dl(ie,_e)||Ot(fe,_e))){if(!Se.dispatchEvent){fe.state.pasteIncoming=+new Date,pe.focus();return}var ht=new Event("paste");ht.clipboardData=_e.clipboardData,Se.dispatchEvent(ht)}}),dt(ie.lineSpace,"selectstart",function(_e){Dl(ie,_e)||vi(_e)}),dt(Se,"compositionstart",function(){var _e=fe.getCursor("from");pe.composing&&pe.composing.range.clear(),pe.composing={start:_e,range:fe.markText(_e,fe.getCursor("to"),{className:"CodeMirror-composing"})}}),dt(Se,"compositionend",function(){pe.composing&&(pe.poll(),pe.composing.range.clear(),pe.composing=null)})},Ol.prototype.createField=function(ie){this.wrapper=fp(),this.textarea=this.wrapper.firstChild},Ol.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Ol.prototype.prepareSelection=function(){var ie=this.cm,se=ie.display,pe=ie.doc,fe=ln(ie);if(ie.options.moveInputWithCursor){var Se=Ls(ie,pe.sel.primary().head,"div"),Te=se.wrapper.getBoundingClientRect(),_e=se.lineDiv.getBoundingClientRect();fe.teTop=Math.max(0,Math.min(se.wrapper.clientHeight-10,Se.top+_e.top-Te.top)),fe.teLeft=Math.max(0,Math.min(se.wrapper.clientWidth-10,Se.left+_e.left-Te.left))}return fe},Ol.prototype.showSelection=function(ie){var se=this.cm,pe=se.display;Re(pe.cursorDiv,ie.cursors),Re(pe.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Ol.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var se=this.cm;if(se.somethingSelected()){this.prevInput="";var pe=se.getSelection();this.textarea.value=pe,se.state.focused&&kt(this.textarea),He&&it>=9&&(this.hasSelection=pe)}else ie||(this.prevInput=this.textarea.value="",He&&it>=9&&(this.hasSelection=null))}},Ol.prototype.getField=function(){return this.textarea},Ol.prototype.supportsTouch=function(){return!1},Ol.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||Qe()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Ol.prototype.blur=function(){this.textarea.blur()},Ol.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ol.prototype.receivedFocus=function(){this.slowPoll()},Ol.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Ol.prototype.fastPoll=function(){var ie=!1,se=this;se.pollingFast=!0;function pe(){var fe=se.poll();!fe&&!ie?(ie=!0,se.polling.set(60,pe)):(se.pollingFast=!1,se.slowPoll())}se.polling.set(20,pe)},Ol.prototype.poll=function(){var ie=this,se=this.cm,pe=this.textarea,fe=this.prevInput;if(this.contextMenuPending||!se.state.focused||Me(pe)&&!fe&&!this.composing||se.isReadOnly()||se.options.disableInput||se.state.keySeq)return!1;var Se=pe.value;if(Se==fe&&!se.somethingSelected())return!1;if(He&&it>=9&&this.hasSelection===Se||ue&&/[\uf700-\uf7ff]/.test(Se))return se.display.input.reset(),!1;if(se.doc.sel==se.display.selForContextMenu){var Te=Se.charCodeAt(0);if(Te==8203&&!fe&&(fe="\u200B"),Te==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?pe.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},Ol.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ol.prototype.onKeyPress=function(){He&&it>=9&&(this.hasSelection=null),this.fastPoll()},Ol.prototype.onContextMenu=function(ie){var se=this,pe=se.cm,fe=pe.display,Se=se.textarea;se.contextMenuPending&&se.contextMenuPending();var Te=gl(pe,ie),_e=fe.scroller.scrollTop;if(!Te||Xe)return;var ht=pe.options.resetSelectionOnContextMenu;ht&&pe.doc.sel.contains(Te)==-1&&Wn(pe,cs)(pe.doc,Jo(Te),Ct);var lt=Se.style.cssText,Tt=se.wrapper.style.cssText,wn=se.wrapper.offsetParent.getBoundingClientRect();se.wrapper.style.cssText="position: static",Se.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-wn.top-5)+"px; left: "+(ie.clientX-wn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(He?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Gt;be&&(Gt=window.scrollY),fe.input.focus(),be&&window.scrollTo(null,Gt),fe.input.reset(),pe.somethingSelected()||(Se.value=se.prevInput=" "),se.contextMenuPending=Jn,fe.selForContextMenu=pe.doc.sel,clearTimeout(fe.detectingSelectAll);function ei(){if(Se.selectionStart!=null){var Ui=pe.somethingSelected(),vr="\u200B"+(Ui?Se.value:"");Se.value="\u21DA",Se.value=vr,se.prevInput=Ui?"":"\u200B",Se.selectionStart=1,Se.selectionEnd=vr.length,fe.selForContextMenu=pe.doc.sel}}function Jn(){if(se.contextMenuPending==Jn&&(se.contextMenuPending=!1,se.wrapper.style.cssText=Tt,Se.style.cssText=lt,He&&it<9&&fe.scrollbars.setScrollTop(fe.scroller.scrollTop=_e),Se.selectionStart!=null)){(!He||He&&it<9)&&ei();var Ui=0,vr=function(){fe.selForContextMenu==pe.doc.sel&&Se.selectionStart==0&&Se.selectionEnd>0&&se.prevInput=="\u200B"?Wn(pe,ts)(pe):Ui++<10?fe.detectingSelectAll=setTimeout(vr,500):(fe.selForContextMenu=null,fe.input.reset())};fe.detectingSelectAll=setTimeout(vr,200)}}if(He&&it>=9&&ei(),Ae){_n(ie);var Wi=function(){mn(window,"mouseup",Wi),setTimeout(Jn,20)};dt(window,"mouseup",Wi)}else setTimeout(Jn,50)},Ol.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Ol.prototype.setUneditable=function(){},Ol.prototype.needsContentAttribute=!1;function fm(ie,se){if(se=se?Jt(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 pe=Qe();se.autofocus=pe==ie||ie.getAttribute("autofocus")!=null&&pe==document.body}function fe(){ie.value=ht.getValue()}var Se;if(ie.form&&(dt(ie.form,"submit",fe),!se.leaveSubmitMethodAlone)){var Te=ie.form;Se=Te.submit;try{var _e=Te.submit=function(){fe(),Te.submit=Se,Te.submit(),Te.submit=_e}}catch(lt){}}se.finishInit=function(lt){lt.save=fe,lt.getTextArea=function(){return ie},lt.toTextArea=function(){lt.toTextArea=isNaN,fe(),ie.parentNode.removeChild(lt.getWrapperElement()),ie.style.display="",ie.form&&(mn(ie.form,"submit",fe),!se.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=Se))}},ie.style.display="none";var ht=fs(function(lt){return ie.parentNode.insertBefore(lt,ie.nextSibling)},se);return ht}function Cf(ie){ie.off=mn,ie.on=dt,ie.wheelEventPixels=Qr,ie.Doc=Al,ie.splitLines=Vi,ie.countColumn=at,ie.findColumn=Nn,ie.isWordChar=Xt,ie.Pass=Vt,ie.signal=Et,ie.Line=Fa,ie.changeEnd=ea,ie.scrollbarModel=us,ie.Pos=Qt,ie.cmpPos=Cn,ie.modes=tr,ie.mimeModes=uo,ie.resolveMode=an,ie.getMode=en,ie.modeExtensions=Kt,ie.extendMode=Pt,ie.copyState=Sn,ie.startState=zt,ie.innerMode=bn,ie.commands=Fl,ie.keyMap=Ul,ie.keyName=lh,ie.isModifierKey=yd,ie.lookupKey=uu,ie.normalizeKeyMap=Hd,ie.StringStream=gt,ie.SharedTextMarker=gc,ie.TextMarker=cn,ie.LineWidget=tl,ie.e_preventDefault=vi,ie.e_stopPropagation=gi,ie.e_stop=_n,ie.addClass=Dt,ie.contains=bt,ie.rmClass=Ne,ie.keyNames=$u}hh(fs),fh(fs);var Kd="iter insert remove copy getEditor constructor".split(" ");for(var Jf in Al.prototype)Al.prototype.hasOwnProperty(Jf)&&Mt(Kd,Jf)<0&&(fs.prototype[Jf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Al.prototype[Jf]));return qn(Al),fs.inputStyles={textarea:Ol,contenteditable:Zs},fs.defineMode=function(ie){!fs.defaults.mode&&ie!="null"&&(fs.defaults.mode=ie),qr.apply(this,arguments)},fs.defineMIME=Ni,fs.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),fs.defineMIME("text/plain","null"),fs.defineExtension=function(ie,se){fs.prototype[ie]=se},fs.defineDocExtension=function(ie,se){Al.prototype[ie]=se},fs.fromTextArea=fm,Cf(fs),fs.version="5.58.2",fs})},25419:function(fn,jt,he){(function(ge){ge(he(89780),he(15525),he(98101))})(function(ge){"use strict";ge.defineMode("markdown",function(Ie,Ke){var ot=ge.getMode(Ie,"text/html"),He=ot.name=="null";function it(at){if(ge.findModeByName){var Ze=ge.findModeByName(at);Ze&&(at=Ze.mime||Ze.mimes[0])}var Mt=ge.getMode(Ie,at);return Mt.name=="null"?null:Mt}Ke.highlightFormatting===void 0&&(Ke.highlightFormatting=!1),Ke.maxBlockquoteDepth===void 0&&(Ke.maxBlockquoteDepth=0),Ke.taskLists===void 0&&(Ke.taskLists=!1),Ke.strikethrough===void 0&&(Ke.strikethrough=!1),Ke.emoji===void 0&&(Ke.emoji=!1),Ke.fencedCodeBlockHighlighting===void 0&&(Ke.fencedCodeBlockHighlighting=!0),Ke.fencedCodeBlockDefaultMode===void 0&&(Ke.fencedCodeBlockDefaultMode="text/plain"),Ke.xml===void 0&&(Ke.xml=!0),Ke.tokenTypeOverrides===void 0&&(Ke.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)&&Ke.tokenTypeOverrides[yt]&&(be[yt]=Ke.tokenTypeOverrides[yt]);var ct=/^([*\-_])(?:\s*\1){2,}\s*$/,Xe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,et=/^\[(x| )\](?=\s)/i,Je=Ke.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ue=/^ {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]/,oe=" ";function de(at,Ze,Mt){return Ze.f=Ze.inline=Mt,Mt(at,Ze)}function ve(at,Ze,Mt){return Ze.f=Ze.block=Mt,Mt(at,Ze)}function xe(at){return!at||!/\S/.test(at.string)}function Ae(at){if(at.linkTitle=!1,at.linkHref=!1,at.linkText=!1,at.em=!1,at.strong=!1,at.strikethrough=!1,at.quote=0,at.indentedCode=!1,at.f==Ne){var Ze=He;if(!Ze){var Mt=ge.innerMode(ot,at.htmlState);Ze=Mt.mode.name=="xml"&&Mt.state.tagStart===null&&!Mt.state.context&&Mt.state.tokenize.isInText}Ze&&(at.f=Ge,at.block=Pe,at.htmlState=null)}return at.trailingSpace=0,at.trailingSpaceNewLine=!1,at.prevLine=at.thisLine,at.thisLine={stream:null},null}function Pe(at,Ze){var Mt=at.column()===Ze.indentation,Yt=xe(Ze.prevLine.stream),Vt=Ze.indentedCode,Ct=Ze.prevLine.hr,Nt=Ze.list!==!1,sn=(Ze.listStack[Ze.listStack.length-1]||0)+3;Ze.indentedCode=!1;var Nn=Ze.indentation;if(Ze.indentationDiff===null&&(Ze.indentationDiff=Ze.indentation,Nt)){for(Ze.list=null;Nn<Ze.listStack[Ze.listStack.length-1];)Ze.listStack.pop(),Ze.listStack.length?Ze.indentation=Ze.listStack[Ze.listStack.length-1]:Ze.list=!1;Ze.list!==!1&&(Ze.indentationDiff=Nn-Ze.listStack[Ze.listStack.length-1])}var hn=!Yt&&!Ct&&!Ze.prevLine.header&&(!Nt||!Vt)&&!Ze.prevLine.fencedCodeEnd,Xn=(Ze.list===!1||Ct||Yt)&&Ze.indentation<=sn&&at.match(ct),Ft=null;if(Ze.indentationDiff>=4&&(Vt||Ze.prevLine.fencedCodeEnd||Ze.prevLine.header||Yt))return at.skipToEnd(),Ze.indentedCode=!0,be.code;if(at.eatSpace())return null;if(Mt&&Ze.indentation<=sn&&(Ft=at.match(Je))&&Ft[1].length<=6)return Ze.quote=0,Ze.header=Ft[1].length,Ze.thisLine.header=!0,Ke.highlightFormatting&&(Ze.formatting="header"),Ze.f=Ze.inline,Re(Ze);if(Ze.indentation<=sn&&at.eat(">"))return Ze.quote=Mt?1:Ze.quote+1,Ke.highlightFormatting&&(Ze.formatting="quote"),at.eatSpace(),Re(Ze);if(!Xn&&!Ze.setext&&Mt&&Ze.indentation<=sn&&(Ft=at.match(Xe))){var Un=Ft[1]?"ol":"ul";return Ze.indentation=Nn+at.current().length,Ze.list=!0,Ze.quote=0,Ze.listStack.push(Ze.indentation),Ze.em=!1,Ze.strong=!1,Ze.code=!1,Ze.strikethrough=!1,Ke.taskLists&&at.match(et,!1)&&(Ze.taskList=!0),Ze.f=Ze.inline,Ke.highlightFormatting&&(Ze.formatting=["list","list-"+Un]),Re(Ze)}else{if(Mt&&Ze.indentation<=sn&&(Ft=at.match(ee,!0)))return Ze.quote=0,Ze.fencedEndRE=new RegExp(Ft[1]+"+ *$"),Ze.localMode=Ke.fencedCodeBlockHighlighting&&it(Ft[2]||Ke.fencedCodeBlockDefaultMode),Ze.localMode&&(Ze.localState=ge.startState(Ze.localMode)),Ze.f=Ze.block=Le,Ke.highlightFormatting&&(Ze.formatting="code-block"),Ze.code=-1,Re(Ze);if(Ze.setext||(!hn||!Nt)&&!Ze.quote&&Ze.list===!1&&!Ze.code&&!Xn&&!te.test(at.string)&&(Ft=at.lookAhead(1))&&(Ft=Ft.match(Ue)))return Ze.setext?(Ze.header=Ze.setext,Ze.setext=0,at.skipToEnd(),Ke.highlightFormatting&&(Ze.formatting="header")):(Ze.header=Ft[0].charAt(0)=="="?1:2,Ze.setext=Ze.header),Ze.thisLine.header=!0,Ze.f=Ze.inline,Re(Ze);if(Xn)return at.skipToEnd(),Ze.hr=!0,Ze.thisLine.hr=!0,be.hr;if(at.peek()==="[")return de(at,Ze,vt)}return de(at,Ze,Ze.inline)}function Ne(at,Ze){var Mt=ot.token(at,Ze.htmlState);if(!He){var Yt=ge.innerMode(ot,Ze.htmlState);(Yt.mode.name=="xml"&&Yt.state.tagStart===null&&!Yt.state.context&&Yt.state.tokenize.isInText||Ze.md_inside&&at.current().indexOf(">")>-1)&&(Ze.f=Ge,Ze.block=Pe,Ze.htmlState=null)}return Mt}function Le(at,Ze){var Mt=Ze.listStack[Ze.listStack.length-1]||0,Yt=Ze.indentation<Mt,Vt=Mt+3;if(Ze.fencedEndRE&&Ze.indentation<=Vt&&(Yt||at.match(Ze.fencedEndRE))){Ke.highlightFormatting&&(Ze.formatting="code-block");var Ct;return Yt||(Ct=Re(Ze)),Ze.localMode=Ze.localState=null,Ze.block=Pe,Ze.f=Ge,Ze.fencedEndRE=null,Ze.code=0,Ze.thisLine.fencedCodeEnd=!0,Yt?ve(at,Ze,Ze.block):Ct}else return Ze.localMode?Ze.localMode.token(at,Ze.localState):(at.skipToEnd(),be.code)}function Re(at){var Ze=[];if(at.formatting){Ze.push(be.formatting),typeof at.formatting=="string"&&(at.formatting=[at.formatting]);for(var Mt=0;Mt<at.formatting.length;Mt++)Ze.push(be.formatting+"-"+at.formatting[Mt]),at.formatting[Mt]==="header"&&Ze.push(be.formatting+"-"+at.formatting[Mt]+"-"+at.header),at.formatting[Mt]==="quote"&&(!Ke.maxBlockquoteDepth||Ke.maxBlockquoteDepth>=at.quote?Ze.push(be.formatting+"-"+at.formatting[Mt]+"-"+at.quote):Ze.push("error"))}if(at.taskOpen)return Ze.push("meta"),Ze.length?Ze.join(" "):null;if(at.taskClosed)return Ze.push("property"),Ze.length?Ze.join(" "):null;if(at.linkHref?Ze.push(be.linkHref,"url"):(at.strong&&Ze.push(be.strong),at.em&&Ze.push(be.em),at.strikethrough&&Ze.push(be.strikethrough),at.emoji&&Ze.push(be.emoji),at.linkText&&Ze.push(be.linkText),at.code&&Ze.push(be.code),at.image&&Ze.push(be.image),at.imageAltText&&Ze.push(be.imageAltText,"link"),at.imageMarker&&Ze.push(be.imageMarker)),at.header&&Ze.push(be.header,be.header+"-"+at.header),at.quote&&(Ze.push(be.quote),!Ke.maxBlockquoteDepth||Ke.maxBlockquoteDepth>=at.quote?Ze.push(be.quote+"-"+at.quote):Ze.push(be.quote+"-"+Ke.maxBlockquoteDepth)),at.list!==!1){var Yt=(at.listStack.length-1)%3;Yt?Yt===1?Ze.push(be.list2):Ze.push(be.list3):Ze.push(be.list1)}return at.trailingSpaceNewLine?Ze.push("trailing-space-new-line"):at.trailingSpace&&Ze.push("trailing-space-"+(at.trailingSpace%2?"a":"b")),Ze.length?Ze.join(" "):null}function je(at,Ze){if(at.match(Ee,!0))return Re(Ze)}function Ge(at,Ze){var Mt=Ze.text(at,Ze);if(typeof Mt!="undefined")return Mt;if(Ze.list)return Ze.list=null,Re(Ze);if(Ze.taskList){var Yt=at.match(et,!0)[1]===" ";return Yt?Ze.taskOpen=!0:Ze.taskClosed=!0,Ke.highlightFormatting&&(Ze.formatting="task"),Ze.taskList=!1,Re(Ze)}if(Ze.taskOpen=!1,Ze.taskClosed=!1,Ze.header&&at.match(/^#+$/,!0))return Ke.highlightFormatting&&(Ze.formatting="header"),Re(Ze);var Vt=at.next();if(Ze.linkTitle){Ze.linkTitle=!1;var Ct=Vt;Vt==="("&&(Ct=")"),Ct=(Ct+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Nt="^\\s*(?:[^"+Ct+"\\\\]+|\\\\\\\\|\\\\.)"+Ct;if(at.match(new RegExp(Nt),!0))return be.linkHref}if(Vt==="`"){var sn=Ze.formatting;Ke.highlightFormatting&&(Ze.formatting="code"),at.eatWhile("`");var Nn=at.current().length;if(Ze.code==0&&(!Ze.quote||Nn==1))return Ze.code=Nn,Re(Ze);if(Nn==Ze.code){var hn=Re(Ze);return Ze.code=0,hn}else return Ze.formatting=sn,Re(Ze)}else if(Ze.code)return Re(Ze);if(Vt==="\\"&&(at.next(),Ke.highlightFormatting)){var Xn=Re(Ze),Ft=be.formatting+"-escape";return Xn?Xn+" "+Ft:Ft}if(Vt==="!"&&at.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ze.imageMarker=!0,Ze.image=!0,Ke.highlightFormatting&&(Ze.formatting="image"),Re(Ze);if(Vt==="["&&Ze.imageMarker&&at.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ze.imageMarker=!1,Ze.imageAltText=!0,Ke.highlightFormatting&&(Ze.formatting="image"),Re(Ze);if(Vt==="]"&&Ze.imageAltText){Ke.highlightFormatting&&(Ze.formatting="image");var Xn=Re(Ze);return Ze.imageAltText=!1,Ze.image=!1,Ze.inline=Ze.f=bt,Xn}if(Vt==="["&&!Ze.image)return Ze.linkText&&at.match(/^.*?\]/)||(Ze.linkText=!0,Ke.highlightFormatting&&(Ze.formatting="link")),Re(Ze);if(Vt==="]"&&Ze.linkText){Ke.highlightFormatting&&(Ze.formatting="link");var Xn=Re(Ze);return Ze.linkText=!1,Ze.inline=Ze.f=at.match(/\(.*?\)| ?\[.*?\]/,!1)?bt:Ge,Xn}if(Vt==="<"&&at.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ze.f=Ze.inline=We,Ke.highlightFormatting&&(Ze.formatting="link");var Xn=Re(Ze);return Xn?Xn+=" ":Xn="",Xn+be.linkInline}if(Vt==="<"&&at.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ze.f=Ze.inline=We,Ke.highlightFormatting&&(Ze.formatting="link");var Xn=Re(Ze);return Xn?Xn+=" ":Xn="",Xn+be.linkEmail}if(Ke.xml&&Vt==="<"&&at.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Un=at.string.indexOf(">",at.pos);if(Un!=-1){var Kn=at.string.substring(at.start,Un);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Kn)&&(Ze.md_inside=!0)}return at.backUp(1),Ze.htmlState=ge.startState(ot),ve(at,Ze,Ne)}if(Ke.xml&&Vt==="<"&&at.match(/^\/\w*?>/))return Ze.md_inside=!1,"tag";if(Vt==="*"||Vt==="_"){for(var ti=1,Fn=at.pos==1?" ":at.string.charAt(at.pos-2);ti<3&&at.eat(Vt);)ti++;var Zt=at.peek()||" ",Xt=!/\s/.test(Zt)&&(!ue.test(Zt)||/\s/.test(Fn)||ue.test(Fn)),mt=!/\s/.test(Fn)&&(!ue.test(Fn)||/\s/.test(Zt)||ue.test(Zt)),tt=null,Wt=null;if(ti%2&&(!Ze.em&&Xt&&(Vt==="*"||!mt||ue.test(Fn))?tt=!0:Ze.em==Vt&&mt&&(Vt==="*"||!Xt||ue.test(Zt))&&(tt=!1)),ti>1&&(!Ze.strong&&Xt&&(Vt==="*"||!mt||ue.test(Fn))?Wt=!0:Ze.strong==Vt&&mt&&(Vt==="*"||!Xt||ue.test(Zt))&&(Wt=!1)),Wt!=null||tt!=null){Ke.highlightFormatting&&(Ze.formatting=tt==null?"strong":Wt==null?"em":"strong em"),tt===!0&&(Ze.em=Vt),Wt===!0&&(Ze.strong=Vt);var hn=Re(Ze);return tt===!1&&(Ze.em=!1),Wt===!1&&(Ze.strong=!1),hn}}else if(Vt===" "&&(at.eat("*")||at.eat("_"))){if(at.peek()===" ")return Re(Ze);at.backUp(1)}if(Ke.strikethrough){if(Vt==="~"&&at.eatWhile(Vt)){if(Ze.strikethrough){Ke.highlightFormatting&&(Ze.formatting="strikethrough");var hn=Re(Ze);return Ze.strikethrough=!1,hn}else if(at.match(/^[^\s]/,!1))return Ze.strikethrough=!0,Ke.highlightFormatting&&(Ze.formatting="strikethrough"),Re(Ze)}else if(Vt===" "&&at.match(/^~~/,!0)){if(at.peek()===" ")return Re(Ze);at.backUp(2)}}if(Ke.emoji&&Vt===":"&&at.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ze.emoji=!0,Ke.highlightFormatting&&(Ze.formatting="emoji");var Lt=Re(Ze);return Ze.emoji=!1,Lt}return Vt===" "&&(at.match(/^ +$/,!1)?Ze.trailingSpace++:Ze.trailingSpace&&(Ze.trailingSpaceNewLine=!0)),Re(Ze)}function We(at,Ze){var Mt=at.next();if(Mt===">"){Ze.f=Ze.inline=Ge,Ke.highlightFormatting&&(Ze.formatting="link");var Yt=Re(Ze);return Yt?Yt+=" ":Yt="",Yt+be.linkInline}return at.match(/^[^>]+/,!0),be.linkInline}function bt(at,Ze){if(at.eatSpace())return null;var Mt=at.next();return Mt==="("||Mt==="["?(Ze.f=Ze.inline=Dt(Mt==="("?")":"]"),Ke.highlightFormatting&&(Ze.formatting="link-string"),Ze.linkHref=!0,Re(Ze)):"error"}var Qe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Dt(at){return function(Ze,Mt){var Yt=Ze.next();if(Yt===at){Mt.f=Mt.inline=Ge,Ke.highlightFormatting&&(Mt.formatting="link-string");var Vt=Re(Mt);return Mt.linkHref=!1,Vt}return Ze.match(Qe[at]),Mt.linkHref=!0,Re(Mt)}}function vt(at,Ze){return at.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ze.f=kt,at.next(),Ke.highlightFormatting&&(Ze.formatting="link"),Ze.linkText=!0,Re(Ze)):de(at,Ze,Ge)}function kt(at,Ze){if(at.match(/^\]:/,!0)){Ze.f=Ze.inline=Rt,Ke.highlightFormatting&&(Ze.formatting="link");var Mt=Re(Ze);return Ze.linkText=!1,Mt}return at.match(/^([^\]\\]|\\.)+/,!0),be.linkText}function Rt(at,Ze){return at.eatSpace()?null:(at.match(/^[^\s]+/,!0),at.peek()===void 0?Ze.linkTitle=!0:at.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ze.f=Ze.inline=Ge,be.linkHref+" url")}var Jt={startState:function(){return{f:Pe,prevLine:{stream:null},thisLine:{stream:null},block:Pe,htmlState:null,indentation:0,inline:Ge,text:je,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(at){return{f:at.f,prevLine:at.prevLine,thisLine:at.thisLine,block:at.block,htmlState:at.htmlState&&ge.copyState(ot,at.htmlState),indentation:at.indentation,localMode:at.localMode,localState:at.localMode?ge.copyState(at.localMode,at.localState):null,inline:at.inline,text:at.text,formatting:!1,linkText:at.linkText,linkTitle:at.linkTitle,linkHref:at.linkHref,code:at.code,em:at.em,strong:at.strong,strikethrough:at.strikethrough,emoji:at.emoji,header:at.header,setext:at.setext,hr:at.hr,taskList:at.taskList,list:at.list,listStack:at.listStack.slice(0),quote:at.quote,indentedCode:at.indentedCode,trailingSpace:at.trailingSpace,trailingSpaceNewLine:at.trailingSpaceNewLine,md_inside:at.md_inside,fencedEndRE:at.fencedEndRE}},token:function(at,Ze){if(Ze.formatting=!1,at!=Ze.thisLine.stream){if(Ze.header=0,Ze.hr=!1,at.match(/^\s*$/,!0))return Ae(Ze),null;if(Ze.prevLine=Ze.thisLine,Ze.thisLine={stream:at},Ze.taskList=!1,Ze.trailingSpace=0,Ze.trailingSpaceNewLine=!1,!Ze.localState&&(Ze.f=Ze.block,Ze.f!=Ne)){var Mt=at.match(/^\s*/,!0)[0].replace(/\t/g,oe).length;if(Ze.indentation=Mt,Ze.indentationDiff=null,Mt>0)return null}}return Ze.f(at,Ze)},innerMode:function(at){return at.block==Ne?{state:at.htmlState,mode:ot}:at.localState?{state:at.localState,mode:at.localMode}:{state:at,mode:Jt}},indent:function(at,Ze,Mt){return at.block==Ne&&ot.indent?ot.indent(at.htmlState,Ze,Mt):at.localState&&at.localMode.indent?at.localMode.indent(at.localState,Ze,Mt):ge.Pass},blankLine:Ae,getType:Re,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Jt},"xml"),ge.defineMIME("text/markdown","markdown"),ge.defineMIME("text/x-markdown","markdown")})},98101:function(fn,jt,he){(function(ge){ge(he(89780))})(function(ge){"use strict";ge.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<ge.modeInfo.length;Ie++){var Ke=ge.modeInfo[Ie];Ke.mimes&&(Ke.mime=Ke.mimes[0])}ge.findModeByMIME=function(ot){ot=ot.toLowerCase();for(var He=0;He<ge.modeInfo.length;He++){var it=ge.modeInfo[He];if(it.mime==ot)return it;if(it.mimes){for(var be=0;be<it.mimes.length;be++)if(it.mimes[be]==ot)return it}}if(/\+xml$/.test(ot))return ge.findModeByMIME("application/xml");if(/\+json$/.test(ot))return ge.findModeByMIME("application/json")},ge.findModeByExtension=function(ot){ot=ot.toLowerCase();for(var He=0;He<ge.modeInfo.length;He++){var it=ge.modeInfo[He];if(it.ext){for(var be=0;be<it.ext.length;be++)if(it.ext[be]==ot)return it}}},ge.findModeByFileName=function(ot){for(var He=0;He<ge.modeInfo.length;He++){var it=ge.modeInfo[He];if(it.file&&it.file.test(ot))return it}var be=ot.lastIndexOf("."),yt=be>-1&&ot.substring(be+1,ot.length);if(yt)return ge.findModeByExtension(yt)},ge.findModeByName=function(ot){ot=ot.toLowerCase();for(var He=0;He<ge.modeInfo.length;He++){var it=ge.modeInfo[He];if(it.name.toLowerCase()==ot)return it;if(it.alias){for(var be=0;be<it.alias.length;be++)if(it.alias[be].toLowerCase()==ot)return it}}}})},67549:function(fn,jt,he){(function(ge){ge(he(89780))})(function(ge){"use strict";ge.defineMode("stex",function(Ie,Ke){"use strict";function ot(Ee,ee){Ee.cmdState.push(ee)}function He(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 ct={};ct.importmodule=yt("importmodule","tag",["string","builtin"]),ct.documentclass=yt("documentclass","tag",["","atom"]),ct.usepackage=yt("usepackage","tag",["atom"]),ct.begin=yt("begin","tag",["atom"]),ct.end=yt("end","tag",["atom"]),ct.label=yt("label","tag",["atom"]),ct.ref=yt("ref","tag",["atom"]),ct.eqref=yt("eqref","tag",["atom"]),ct.cite=yt("cite","tag",["atom"]),ct.bibitem=yt("bibitem","tag",["atom"]),ct.Bibitem=yt("Bibitem","tag",["atom"]),ct.RBibitem=yt("RBibitem","tag",["atom"]),ct.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Xe(Ee,ee){Ee.f=ee}function et(Ee,ee){var te;if(Ee.match(/^\\[a-zA-Z@]+/)){var ue=Ee.current().slice(1);return te=ct.hasOwnProperty(ue)?ct[ue]:ct.DEFAULT,te=new te,ot(ee,te),Xe(ee,Ue),te.style}if(Ee.match(/^\\[$&%#{}_]/)||Ee.match(/^\\[,;!\/\\]/))return"tag";if(Ee.match("\\["))return Xe(ee,function(de,ve){return Je(de,ve,"\\]")}),"keyword";if(Ee.match("\\("))return Xe(ee,function(de,ve){return Je(de,ve,"\\)")}),"keyword";if(Ee.match("$$"))return Xe(ee,function(de,ve){return Je(de,ve,"$$")}),"keyword";if(Ee.match("$"))return Xe(ee,function(de,ve){return Je(de,ve,"$")}),"keyword";var oe=Ee.next();if(oe=="%")return Ee.skipToEnd(),"comment";if(oe=="}"||oe=="]"){if(te=He(ee),te)te.closeBracket(oe),Xe(ee,Ue);else return"error";return"bracket"}else return oe=="{"||oe=="["?(te=ct.DEFAULT,te=new te,ot(ee,te),"bracket"):/\d/.test(oe)?(Ee.eatWhile(/[\w.%]/),"atom"):(Ee.eatWhile(/[\w\-_]/),te=be(ee),te.name=="begin"&&(te.argument=Ee.current()),te.styleIdentifier())}function Je(Ee,ee,te){if(Ee.eatSpace())return null;if(te&&Ee.match(te))return Xe(ee,et),"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 Ue(Ee,ee){var te=Ee.peek(),ue;return te=="{"||te=="["?(ue=He(ee),ue.openBracket(te),Ee.eat(te),Xe(ee,et),"bracket"):/[ \t\r]/.test(te)?(Ee.eat(te),null):(Xe(ee,et),it(ee),et(Ee,ee))}return{startState:function(){var Ee=Ke.inMathMode?function(ee,te){return Je(ee,te)}:et;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=et,Ee.cmdState.length=0},lineComment:"%"}}),ge.defineMIME("text/x-stex","stex"),ge.defineMIME("text/x-latex","stex")})},15525:function(fn,jt,he){(function(ge){ge(he(89780))})(function(ge){"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},Ke={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ge.defineMode("xml",function(ot,He){var it=ot.indentUnit,be={},yt=He.htmlMode?Ie:Ke;for(var ct in yt)be[ct]=yt[ct];for(var ct in He)be[ct]=He[ct];var Xe,et;function Je(We,bt){function Qe(kt){return bt.tokenize=kt,kt(We,bt)}var Dt=We.next();if(Dt=="<")return We.eat("!")?We.eat("[")?We.match("CDATA[")?Qe(ee("atom","]]>")):null:We.match("--")?Qe(ee("comment","-->")):We.match("DOCTYPE",!0,!0)?(We.eatWhile(/[\w\._\-]/),Qe(te(1))):null:We.eat("?")?(We.eatWhile(/[\w\._\-]/),bt.tokenize=ee("meta","?>"),"meta"):(Xe=We.eat("/")?"closeTag":"openTag",bt.tokenize=Ue,"tag bracket");if(Dt=="&"){var vt;return We.eat("#")?We.eat("x")?vt=We.eatWhile(/[a-fA-F\d]/)&&We.eat(";"):vt=We.eatWhile(/[\d]/)&&We.eat(";"):vt=We.eatWhile(/[\w\.\-:]/)&&We.eat(";"),vt?"atom":"error"}else return We.eatWhile(/[^&<]/),null}Je.isInText=!0;function Ue(We,bt){var Qe=We.next();if(Qe==">"||Qe=="/"&&We.eat(">"))return bt.tokenize=Je,Xe=Qe==">"?"endTag":"selfcloseTag","tag bracket";if(Qe=="=")return Xe="equals",null;if(Qe=="<"){bt.tokenize=Je,bt.state=ve,bt.tagName=bt.tagStart=null;var Dt=bt.tokenize(We,bt);return Dt?Dt+" tag error":"tag error"}else return/[\'\"]/.test(Qe)?(bt.tokenize=Ee(Qe),bt.stringStartCol=We.column(),bt.tokenize(We,bt)):(We.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ee(We){var bt=function(Qe,Dt){for(;!Qe.eol();)if(Qe.next()==We){Dt.tokenize=Ue;break}return"string"};return bt.isInAttribute=!0,bt}function ee(We,bt){return function(Qe,Dt){for(;!Qe.eol();){if(Qe.match(bt)){Dt.tokenize=Je;break}Qe.next()}return We}}function te(We){return function(bt,Qe){for(var Dt;(Dt=bt.next())!=null;){if(Dt=="<")return Qe.tokenize=te(We+1),Qe.tokenize(bt,Qe);if(Dt==">")if(We==1){Qe.tokenize=Je;break}else return Qe.tokenize=te(We-1),Qe.tokenize(bt,Qe)}return"meta"}}function ue(We,bt,Qe){this.prev=We.context,this.tagName=bt,this.indent=We.indented,this.startOfLine=Qe,(be.doNotIndent.hasOwnProperty(bt)||We.context&&We.context.noIndent)&&(this.noIndent=!0)}function oe(We){We.context&&(We.context=We.context.prev)}function de(We,bt){for(var Qe;;){if(!We.context||(Qe=We.context.tagName,!be.contextGrabbers.hasOwnProperty(Qe)||!be.contextGrabbers[Qe].hasOwnProperty(bt)))return;oe(We)}}function ve(We,bt,Qe){return We=="openTag"?(Qe.tagStart=bt.column(),xe):We=="closeTag"?Ae:ve}function xe(We,bt,Qe){return We=="word"?(Qe.tagName=bt.current(),et="tag",Le):be.allowMissingTagName&&We=="endTag"?(et="tag bracket",Le(We,bt,Qe)):(et="error",xe)}function Ae(We,bt,Qe){if(We=="word"){var Dt=bt.current();return Qe.context&&Qe.context.tagName!=Dt&&be.implicitlyClosed.hasOwnProperty(Qe.context.tagName)&&oe(Qe),Qe.context&&Qe.context.tagName==Dt||be.matchClosing===!1?(et="tag",Pe):(et="tag error",Ne)}else return be.allowMissingTagName&&We=="endTag"?(et="tag bracket",Pe(We,bt,Qe)):(et="error",Ne)}function Pe(We,bt,Qe){return We!="endTag"?(et="error",Pe):(oe(Qe),ve)}function Ne(We,bt,Qe){return et="error",Pe(We,bt,Qe)}function Le(We,bt,Qe){if(We=="word")return et="attribute",Re;if(We=="endTag"||We=="selfcloseTag"){var Dt=Qe.tagName,vt=Qe.tagStart;return Qe.tagName=Qe.tagStart=null,We=="selfcloseTag"||be.autoSelfClosers.hasOwnProperty(Dt)?de(Qe,Dt):(de(Qe,Dt),Qe.context=new ue(Qe,Dt,vt==Qe.indented)),ve}return et="error",Le}function Re(We,bt,Qe){return We=="equals"?je:(be.allowMissing||(et="error"),Le(We,bt,Qe))}function je(We,bt,Qe){return We=="string"?Ge:We=="word"&&be.allowUnquoted?(et="string",Le):(et="error",Le(We,bt,Qe))}function Ge(We,bt,Qe){return We=="string"?Ge:Le(We,bt,Qe)}return{startState:function(We){var bt={tokenize:Je,state:ve,indented:We||0,tagName:null,tagStart:null,context:null};return We!=null&&(bt.baseIndent=We),bt},token:function(We,bt){if(!bt.tagName&&We.sol()&&(bt.indented=We.indentation()),We.eatSpace())return null;Xe=null;var Qe=bt.tokenize(We,bt);return(Qe||Xe)&&Qe!="comment"&&(et=null,bt.state=bt.state(Xe||Qe,We,bt),et&&(Qe=et=="error"?Qe+" error":et)),Qe},indent:function(We,bt,Qe){var Dt=We.context;if(We.tokenize.isInAttribute)return We.tagStart==We.indented?We.stringStartCol+1:We.indented+it;if(Dt&&Dt.noIndent)return ge.Pass;if(We.tokenize!=Ue&&We.tokenize!=Je)return Qe?Qe.match(/^(\s*)/)[0].length:0;if(We.tagName)return be.multilineTagIndentPastTag!==!1?We.tagStart+We.tagName.length+2:We.tagStart+it*(be.multilineTagIndentFactor||1);if(be.alignCDATA&&/<!\[CDATA\[/.test(bt))return 0;var vt=bt&&/^<(\/)?([\w_:\.-]*)/.exec(bt);if(vt&&vt[1])for(;Dt;)if(Dt.tagName==vt[2]){Dt=Dt.prev;break}else if(be.implicitlyClosed.hasOwnProperty(Dt.tagName))Dt=Dt.prev;else break;else if(vt)for(;Dt;){var kt=be.contextGrabbers[Dt.tagName];if(kt&&kt.hasOwnProperty(vt[2]))Dt=Dt.prev;else break}for(;Dt&&Dt.prev&&!Dt.startOfLine;)Dt=Dt.prev;return Dt?Dt.indent+it:We.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:be.htmlMode?"html":"xml",helperType:be.htmlMode?"html":"xml",skipAttribute:function(We){We.state==je&&(We.state=Le)},xmlCurrentTag:function(We){return We.tagName?{name:We.tagName,close:We.type=="closeTag"}:null},xmlCurrentContext:function(We){for(var bt=[],Qe=We.context;Qe;Qe=Qe.prev)Qe.tagName&&bt.push(Qe.tagName);return bt.reverse()}}}),ge.defineMIME("text/xml","xml"),ge.defineMIME("application/xml","xml"),ge.mimeModes.hasOwnProperty("text/html")||ge.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(fn,jt,he){"use strict";he.d(jt,{$u:function(){return ct},BD:function(){return ti},E9:function(){return yt},FF:function(){return xr},FJ:function(){return ve},Hn:function(){return de},KX:function(){return Ae},NB:function(){return Oe},S0:function(){return Ft},UL:function(){return Xe},Vk:function(){return oe},Vm:function(){return ye},YI:function(){return Un},ZA:function(){return Ke},Zt:function(){return et},al:function(){return tt},bn:function(){return mt},bx:function(){return Fn},g2:function(){return Kn},h1:function(){return je},hD:function(){return qn},l4:function(){return it},rU:function(){return we},s_:function(){return Zt},uz:function(){return nt},z6:function(){return Je}}),fn=he.hmd(fn),function(){var Me;function Ai(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Xi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Ai(a)}}function gr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var tr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},uo;if(typeof Object.setPrototypeOf=="function")uo=Object.setPrototypeOf;else{var qr;e:{var Ni={a:!0},an={};try{an.__proto__=Ni,qr=an.a;break e}catch(a){}qr=!1}uo=qr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var en=uo;function Kt(a,y){if(a.prototype=tr(y.prototype),a.prototype.constructor=a,en)en(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 Pt=typeof he.g!="undefined"&&he.g!=null?he.g:self,Sn=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},bn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function zt(a,y){if(y){var x=Pt;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&&bn(x,a,{writable:!0,value:y})}}zt("Object.assign",function(a){return a||Sn}),zt("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 gt=typeof globalThis=="object"&&globalThis||typeof he.g=="object"&&he.g.global===he.g&&he.g||typeof self=="object"&&self.self===self&&self||{};gt.requestAnimationFrame===void 0&&(gt.setImmediate===void 0?gt.requestAnimationFrame=function(a){gt.setTimeout(a,0)}:gt.requestAnimationFrame=gt.setImmediate);function xn(){}function Ln(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&>.clearTimeout(x),x=pi(function(){x=-1,a.apply(E,b)},y)}}function pi(a,y){return gt.setTimeout(a,y)}function Mn(a){return gt.document.createElement(a)}function It(a){throw Error(a)}function gn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),It(a)}function nn(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),It(x+" is not in the range "+y+": "+a)}function ui(a){gt.console&>.console.log(a)}function Qt(a){return typeof a=="object"&&a!==null}function Cn(a){return Array.isArray(a)||gt.NodeList&&a instanceof gt.NodeList||gt.HTMLCollection&&a instanceof gt.HTMLCollection}function $t(a){return Array.prototype.slice.call(a)}function vn(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):It("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function En(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):It("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function Pn(){var a=ar.pop();return a===void 0?[]:a}function Rn(a){a.length=0,ar.push(a)}function Yn(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(Qt(a)&&a.constructor)return Yn(a.constructor);return typeof a}function Zn(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 ri(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 Gn(a,y,x){Object.defineProperty(Qn.prototype,a,{get:y,set:x})}function di(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 rr=gt.navigator!==void 0&&0<gt.navigator.userAgent.indexOf("Trident/7"),Dr=gt.navigator!==void 0&>.navigator.platform!==void 0&>.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,ar=[];Object.freeze([]),xn.className="Util",xn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",xn.adym="gojs.net",xn.vfo="28e645fdb266",xn.className="Util";function qt(a,y,x){Rr(this),this.j=a,this.xa=y,this.o=x}qt.prototype.toString=function(){return"EnumValue."+this.xa};function Li(a,y){return y==null||y===""?null:a[y]}Pt.Object.defineProperties(qt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),qt.className="EnumValue";function Ji(){this.ew=[]}Ji.prototype.toString=function(){return this.ew.join("")},Ji.prototype.add=function(a){a!==""&&this.ew.push(a)},Ji.className="StringBuilder";function Ti(){}Ti.className="PropertyCollection";var bi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){gt.console&>.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 sr(){}sr.prototype.reset=function(){},sr.prototype.next=function(){return!1},sr.prototype.Ad=function(){return!1},sr.prototype.first=function(){return null},sr.prototype.any=function(){return!1},sr.prototype.all=function(){return!0},sr.prototype.each=function(){return this},sr.prototype.map=function(){return this},sr.prototype.filter=function(){return this},sr.prototype.de=function(){},sr.prototype.toString=function(){return"EmptyIterator"},Pt.Object.defineProperties(sr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),sr.prototype.first=sr.prototype.first,sr.prototype.hasNext=sr.prototype.Ad,sr.prototype.next=sr.prototype.next,sr.prototype.reset=sr.prototype.reset;var Nr=null;sr.className="EmptyIterator",Nr=new sr;function cr(a){this.key=-1,this.value=a}cr.prototype.reset=function(){this.key=-1},cr.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},cr.prototype.Ad=function(){return this.next()},cr.prototype.first=function(){return this.key=0,this.value},cr.prototype.any=function(a){return this.key=-1,a(this.value)},cr.prototype.all=function(a){return this.key=-1,a(this.value)},cr.prototype.each=function(a){return this.key=-1,a(this.value),this},cr.prototype.map=function(a){return new cr(a(this.value))},cr.prototype.filter=function(a){return a(this.value)?new cr(this.value):Nr},cr.prototype.de=function(){this.value=null},cr.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Pt.Object.defineProperties(cr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),cr.prototype.first=cr.prototype.first,cr.prototype.hasNext=cr.prototype.Ad,cr.prototype.next=cr.prototype.next,cr.prototype.reset=cr.prototype.reset,cr.className="SingletonIterator";function Zi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Zi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Zi.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},Zi.prototype.Ad=function(){return this.next()},Zi.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},Zi.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},Zi.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},Zi.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},Zi.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 On,a.s=x,a.xb(),a.iterator},Zi.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 On,a.s=x,a.xb(),a.iterator},Zi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Zi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Pt.Object.defineProperties(Zi.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}}}),Zi.prototype.first=Zi.prototype.first,Zi.prototype.hasNext=Zi.prototype.Ad,Zi.prototype.next=Zi.prototype.next,Zi.prototype.reset=Zi.prototype.reset,Zi.className="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 On,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 On,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+")"},Pt.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 On(a){Rr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&It("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Me=On.prototype,Me.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.toString=function(){return"List()#"+fo(this)},Me.add=function(a){return a===null?this:(this._isFrozen&&gn(this,a),this.s.push(a),this.xb(),this)},Me.push=function(a){this.add(a)},Me.addAll=function(a){if(a===null)return this;this._isFrozen&&gn(this);var y=this.s;if(Cn(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},Me.clear=function(){this._isFrozen&&gn(this),this.s.length=0,this.xb()},Me.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Me.has=function(a){return this.contains(a)},Me.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Me.M=function(a){var y=this.s;return(0>a||a>=y.length)&&nn(a,"0 <= i < length",On,"elt:i"),y[a]},Me.get=function(a){return this.M(a)},Me.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&nn(a,"0 <= i < length",On,"setElt:i"),this._isFrozen&&gn(this,a),x[a]=y},Me.set=function(a,y){this.cd(a,y)},Me.first=function(){var a=this.s;return a.length===0?null:a[0]},Me.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Me.pop=function(){this._isFrozen&&gn(this);var a=this.s;return 0<a.length?a.pop():null},On.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},On.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},On.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},On.prototype.map=function(a){for(var y=new On,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},On.prototype.filter=function(a){for(var y=new On,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},Me=On.prototype,Me.Gb=function(a,y){0>a&&nn(a,">= 0",On,"insertAt:i"),this._isFrozen&&gn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Me.remove=function(a){if(a===null)return!1;this._isFrozen&&gn(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)},Me.delete=function(a){return this.remove(a)},Me.mb=function(a){var y=this.s;(0>a||a>=y.length)&&nn(a,"0 <= i < length",On,"removeAt:i"),this._isFrozen&&gn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Me.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&&gn(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},On.prototype.copy=function(){var a=new On,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Me=On.prototype,Me.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Me.Iv=function(){for(var a=new Dn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Me.sort=function(a){return this._isFrozen&&gn(this),this.s.sort(a),this.xb(),this},Me.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&gn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&nn(y,"0 <= from < length",On,"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},Me.reverse=function(){return this._isFrozen&&gn(this),this.s.reverse(),this.xb(),this},Pt.Object.defineProperties(On.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 Nr;var a=this.Sa;return a!==null?(a.reset(),a):new Zi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Nr;var a=this.Hg;return a!==null?(a.reset(),a):new Jr(this)}}}),On.prototype.reverse=On.prototype.reverse,On.prototype.sortRange=On.prototype.zi,On.prototype.sort=On.prototype.sort,On.prototype.toSet=On.prototype.Iv,On.prototype.toArray=On.prototype.Fa,On.prototype.removeRange=On.prototype.removeRange,On.prototype.removeAt=On.prototype.mb,On.prototype.delete=On.prototype.delete,On.prototype.remove=On.prototype.remove,On.prototype.insertAt=On.prototype.Gb,On.prototype.pop=On.prototype.pop,On.prototype.last=On.prototype.jc,On.prototype.first=On.prototype.first,On.prototype.set=On.prototype.set,On.prototype.setElt=On.prototype.cd,On.prototype.get=On.prototype.get,On.prototype.elt=On.prototype.M,On.prototype.indexOf=On.prototype.indexOf,On.prototype.has=On.prototype.has,On.prototype.contains=On.prototype.contains,On.prototype.clear=On.prototype.clear,On.prototype.addAll=On.prototype.addAll,On.prototype.push=On.prototype.push,On.prototype.add=On.prototype.add,On.prototype.thaw=On.prototype.ka,On.prototype.freeze=On.prototype.freeze,On.className="List";function Ho(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ho.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Ho.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)},Ho.prototype.Ad=function(){return this.next()},Ho.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},Ho.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},Ho.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},Ho.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},Ho.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new On;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ho.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new On;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},Ho.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ho.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Pt.Object.defineProperties(Ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ho.prototype.first=Ho.prototype.first,Ho.prototype.hasNext=Ho.prototype.Ad,Ho.prototype.next=Ho.prototype.next,Ho.prototype.reset=Ho.prototype.reset,Ho.className="SetIterator";function Dn(a){Rr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&It("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Me=Dn.prototype,Me.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.toString=function(){return"Set()#"+fo(this)},Me.add=function(a){if(a===null)return this;this._isFrozen&&gn(this,a);var y=a;return Qt(a)&&(y=ca(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Hn(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},Me.addAll=function(a){if(a===null)return this;if(this._isFrozen&&gn(this),Cn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Me.contains=function(a){if(a===null)return!1;var y=a;return Qt(a)&&(y=fo(a),y===void 0)?!1:this.Tb[y]!==void 0},Me.has=function(a){return this.contains(a)},Me.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Me.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Me.first=function(){var a=this.ea;return a===null?null:a.value},Dn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Dn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Dn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Dn.prototype.map=function(a){for(var y=new Dn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Dn.prototype.filter=function(a){for(var y=new Dn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Me=Dn.prototype,Me.remove=function(a){if(a===null)return!1;this._isFrozen&&gn(this,a);var y=a;if(Qt(a)&&(y=fo(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},Me.delete=function(a){return this.remove(a)},Me.hp=function(a){if(a===null)return this;if(this._isFrozen&&gn(this),Cn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Me.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&gn(this);var y=new Dn;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},Me.clear=function(){this._isFrozen&&gn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Dn.prototype.copy=function(){var a=new Dn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Dn.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},Dn.prototype.Hv=function(){var a=new On,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Rr(a){a.__gohashid=Ha++}function ca(a){var y=a.__gohashid;return y===void 0&&(y=Ha++,a.__gohashid=y),y}function fo(a){return a.__gohashid}Pt.Object.defineProperties(Dn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Nr;var a=this.Sa;return a!==null?(a.reset(),a):new Ho(this)}}}),Dn.prototype.toList=Dn.prototype.Hv,Dn.prototype.toArray=Dn.prototype.Fa,Dn.prototype.clear=Dn.prototype.clear,Dn.prototype.retainAll=Dn.prototype.pA,Dn.prototype.removeAll=Dn.prototype.hp,Dn.prototype.delete=Dn.prototype.delete,Dn.prototype.remove=Dn.prototype.remove,Dn.prototype.first=Dn.prototype.first,Dn.prototype.containsAny=Dn.prototype.Ty,Dn.prototype.containsAll=Dn.prototype.Sy,Dn.prototype.has=Dn.prototype.has,Dn.prototype.contains=Dn.prototype.contains,Dn.prototype.addAll=Dn.prototype.addAll,Dn.prototype.add=Dn.prototype.add,Dn.prototype.thaw=Dn.prototype.ka,Dn.prototype.freeze=Dn.prototype.freeze;var Ha=1;Dn.className="Set",Dn.uniqueHash=Rr,Dn.hashIdUnique=ca,Dn.hashId=fo;function oa(a){this.ma=a,this.qa=a.Ja,this.sa=null}oa.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},oa.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)},oa.prototype.Ad=function(){return this.next()},oa.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},oa.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},oa.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},oa.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},oa.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new On;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},oa.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new On;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},oa.prototype.de=function(){this.value=this.key=null,this.qa=-1},oa.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Pt.Object.defineProperties(oa.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),oa.prototype.first=oa.prototype.first,oa.prototype.hasNext=oa.prototype.Ad,oa.prototype.next=oa.prototype.next,oa.prototype.reset=oa.prototype.reset,oa.className="MapKeySetIterator";function xt(a){Dn.call(this),Rr(this),this._isFrozen=!0,this.ma=a}Kt(xt,Dn),Me=xt.prototype,Me.freeze=function(){return this},Me.ka=function(){return this},Me.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Me.add=function(){It("This Set is read-only: "+this.toString())},Me.contains=function(a){return this.ma.contains(a)},Me.has=function(a){return this.contains(a)},Me.remove=function(){It("This Set is read-only: "+this.toString())},Me.delete=function(a){return this.remove(a)},Me.clear=function(){It("This Set is read-only: "+this.toString())},Me.first=function(){var a=this.ma.ea;return a!==null?a.key:null},xt.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},xt.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},xt.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},xt.prototype.map=function(a){for(var y=new Dn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},xt.prototype.filter=function(a){for(var y=new Dn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},xt.prototype.copy=function(){return new xt(this.ma)},xt.prototype.Iv=function(){var a=new Dn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},xt.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},xt.prototype.Hv=function(){var a=new On,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Pt.Object.defineProperties(xt.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Nr:new oa(this.ma)}}}),xt.prototype.toList=xt.prototype.Hv,xt.prototype.toArray=xt.prototype.Fa,xt.prototype.toSet=xt.prototype.Iv,xt.prototype.first=xt.prototype.first,xt.prototype.clear=xt.prototype.clear,xt.prototype.delete=xt.prototype.delete,xt.prototype.remove=xt.prototype.remove,xt.prototype.has=xt.prototype.has,xt.prototype.contains=xt.prototype.contains,xt.prototype.add=xt.prototype.add,xt.prototype.thaw=xt.prototype.ka,xt.prototype.freeze=xt.prototype.freeze,xt.className="MapKeySet";function kn(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}kn.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},kn.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)},kn.prototype.Ad=function(){return this.next()},kn.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},kn.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},kn.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},kn.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},kn.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new On;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},kn.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new On;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},kn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},kn.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Pt.Object.defineProperties(kn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),kn.prototype.first=kn.prototype.first,kn.prototype.hasNext=kn.prototype.Ad,kn.prototype.next=kn.prototype.next,kn.prototype.reset=kn.prototype.reset,kn.className="MapValueSetIterator";function Hn(a,y){this.key=a,this.value=y,this.ll=this.va=null}Hn.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Hn.className="KeyValuePair";function Ei(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ei.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Ei.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)},Ei.prototype.Ad=function(){return this.next()},Ei.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},Ei.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},Ei.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},Ei.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},Ei.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new On;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Ei.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new On;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Ei.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Ei.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Pt.Object.defineProperties(Ei.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ei.prototype.first=Ei.prototype.first,Ei.prototype.hasNext=Ei.prototype.Ad,Ei.prototype.next=Ei.prototype.next,Ei.prototype.reset=Ei.prototype.reset,Ei.className="MapIterator";function Si(a){Rr(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"&&It("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Me=Si.prototype,Me.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.toString=function(){return"Map()#"+fo(this)},Me.add=function(a,y){this._isFrozen&&gn(this,a);var x=a;Qt(a)&&(x=ca(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new Hn(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},Me.set=function(a,y){return this.add(a,y)},Me.addAll=function(a){if(a===null)return this;if(Cn(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 Si)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},Me.first=function(){return this.ea},Si.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Si.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Si.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Si.prototype.map=function(a){for(var y=new Si,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Si.prototype.filter=function(a){for(var y=new Si,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Me=Si.prototype,Me.contains=function(a){var y=a;return Qt(a)&&(y=fo(a),y===void 0)?!1:this.Tb[y]!==void 0},Me.has=function(a){return this.contains(a)},Me.I=function(a){var y=a;return Qt(a)&&(y=fo(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Me.get=function(a){return this.I(a)},Me.remove=function(a){if(a===null)return!1;this._isFrozen&&gn(this,a);var y=a;if(Qt(a)&&(y=fo(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},Me.delete=function(a){return this.remove(a)},Me.clear=function(){this._isFrozen&&gn(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()},Si.prototype.copy=function(){var a=new Si,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},Si.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 Hn(b.key,b.value),x++}return y},Si.prototype.Lf=function(){return new xt(this)},Pt.Object.defineProperties(Si.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Nr;var a=this.Sa;return a!==null?(a.reset(),a):new Ei(this)}},iteratorKeys:{get:function(){return 0>=this.count?Nr:new oa(this)}},iteratorValues:{get:function(){if(0>=this.count)return Nr;var a=this.jf;return a!==null?(a.reset(),a):new kn(this)}}}),Si.prototype.toKeySet=Si.prototype.Lf,Si.prototype.toArray=Si.prototype.Fa,Si.prototype.clear=Si.prototype.clear,Si.prototype.delete=Si.prototype.delete,Si.prototype.remove=Si.prototype.remove,Si.prototype.get=Si.prototype.get,Si.prototype.getValue=Si.prototype.I,Si.prototype.has=Si.prototype.has,Si.prototype.contains=Si.prototype.contains,Si.prototype.first=Si.prototype.first,Si.prototype.addAll=Si.prototype.addAll,Si.prototype.set=Si.prototype.set,Si.prototype.add=Si.prototype.add,Si.prototype.thaw=Si.prototype.ka,Si.prototype.freeze=Si.prototype.freeze,Si.className="Map";function $e(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):It("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Fi,eo,Qi,Vr,pr;$e.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},$e.prototype.h=function(a,y){return this.x=a,this.y=y,this},$e.prototype.sg=function(a,y){return this.x=a,this.y=y,this},$e.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},$e.prototype.copy=function(){var a=new $e;return a.x=this.x,a.y=this.y,a},Me=$e.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&It("cannot thaw constant: "+this),this._isFrozen=!1,this};function Er(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 $e(x,b)}return new $e}function oo(a){return a.x.toString()+" "+a.y.toString()}Me.toString=function(){return"Point("+this.x+","+this.y+")"},Me.D=function(a){return a instanceof $e?this.x===a.x&&this.y===a.y:!1},Me.hi=function(a,y){return this.x===a&&this.y===y},Me.Xa=function(a){return Ut.B(this.x,a.x)&&Ut.B(this.y,a.y)},Me.add=function(a){return this.x+=a.x,this.y+=a.y,this},Me.re=function(a){return this.x-=a.x,this.y-=a.y,this},Me.offset=function(a,y){return this.x+=a,this.y+=y,this},$e.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},Me=$e.prototype,Me.scale=function(a,y){return this.x*=a,this.y*=y,this},Me.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Me.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Me.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},Me.ab=function(a){return bo(a.x-this.x,a.y-this.y)},Me.direction=function(a,y){return bo(a-this.x,y-this.y)};function bo(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}Me.Ry=function(a,y){return Ut.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Me.fA=function(a,y,x,E){return Ut.qh(a,y,x,E,this.x,this.y,this),this},Me.gA=function(a,y){return Ut.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Me.uA=function(a,y,x,E){return Ut.No(this.x,this.y,a,y,x,E,this),this},Me.vA=function(a,y){return Ut.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Me.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},Me.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},Me.transform=function(a){return a.Ga(this),this};function Ur(a,y){return y.Cd(a),a}function Io(a,y,x,E,b,z){var ne=b-x,re=z-E,ae=ne*ne+re*re;x-=a,E-=y;var le=-x*ne-E*re;return 0>=le||le>=ae?(ne=b-a,re=z-y,Math.min(x*x+E*E,ne*ne+re*re)):(a=ne*E-re*x,a*a/ae)}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)}Me.w=function(){return isFinite(this.x)&&isFinite(this.y)},$e.alloc=function(){var a=Br.pop();return a===void 0?new $e:a},$e.allocAt=function(a,y){var x=Br.pop();return x===void 0?new $e(a,y):(x.x=a,x.y=y,x)},$e.free=function(a){Br.push(a)},$e.prototype.isReal=$e.prototype.w,$e.prototype.setSpot=$e.prototype.yi,$e.prototype.setRectSpot=$e.prototype.xi,$e.prototype.snapToGridPoint=$e.prototype.vA,$e.prototype.snapToGrid=$e.prototype.uA,$e.prototype.projectOntoLineSegmentPoint=$e.prototype.gA,$e.prototype.projectOntoLineSegment=$e.prototype.fA,$e.intersectingLineSegments=function(a,y,x,E,b,z,ne,re){return Ut.Rl(a,y,x,E,b,z,ne,re)},$e.prototype.compareWithLineSegmentPoint=$e.prototype.Ry,$e.compareWithLineSegment=function(a,y,x,E,b,z){return Ut.Fl(a,y,x,E,b,z)},$e.prototype.direction=$e.prototype.direction,$e.prototype.directionPoint=$e.prototype.ab,$e.prototype.normalize=$e.prototype.normalize,$e.prototype.distanceSquared=$e.prototype.zd,$e.prototype.distanceSquaredPoint=$e.prototype.Bf,$e.prototype.scale=$e.prototype.scale,$e.prototype.rotate=$e.prototype.rotate,$e.prototype.offset=$e.prototype.offset,$e.prototype.subtract=$e.prototype.re,$e.prototype.add=$e.prototype.add,$e.prototype.equalsApprox=$e.prototype.Xa,$e.prototype.equalTo=$e.prototype.hi,$e.prototype.equals=$e.prototype.D,$e.prototype.set=$e.prototype.set,$e.prototype.setTo=$e.prototype.sg;var Br=[];$e.className="Point",$e.parse=Er,$e.stringify=oo,$e.distanceLineSegmentSquared=Io,$e.distanceSquared=lr,$e.direction=$i,$e.Origin=Fi=new $e(0,0).ja(),$e.InfiniteTopLeft=eo=new $e(-1/0,-1/0).ja(),$e.InfiniteBottomRight=Qi=new $e(1/0,1/0).ja(),$e.SixPoint=Vr=new $e(6,6).ja(),$e.NoPoint=pr=new $e(NaN,NaN).ja(),$e.parse=Er,$e.stringify=oo,$e.distanceLineSegmentSquared=Io,$e.distanceSquared=lr,$e.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):It("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Ro,Xo,ya,na,Fa,Sa,Pa;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},Me=oi.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&It("cannot thaw constant: "+this),this._isFrozen=!1,this};function is(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 Co(a){return a.width.toString()+" "+a.height.toString()}Me.toString=function(){return"Size("+this.width+","+this.height+")"},Me.D=function(a){return a instanceof oi?this.width===a.width&&this.height===a.height:!1},Me.hi=function(a,y){return this.width===a&&this.height===y},Me.Xa=function(a){return Ut.B(this.width,a.width)&&Ut.B(this.height,a.height)},Me.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},Me.w=function(){return isFinite(this.width)&&isFinite(this.height)},oi.alloc=function(){var a=ps.pop();return a===void 0?new oi:a},oi.free=function(a){ps.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 ps=[];oi.className="Size",oi.parse=is,oi.stringify=Co,oi.ZeroSize=Ro=new oi(0,0).ja(),oi.OneSize=Xo=new oi(1,1).ja(),oi.SixSize=ya=new oi(6,6).ja(),oi.EightSize=na=new oi(8,8).ja(),oi.TenSize=Fa=new oi(10,10).ja(),oi.InfiniteSize=Sa=new oi(1/0,1/0).ja(),oi.NoSize=Pa=new oi(NaN,NaN).ja(),oi.parse=is,oi.stringify=Co;function An(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 $e?(x=a.x,a=a.y,y instanceof $e?(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):It("Incorrect second argument supplied to Rect constructor "+y)):It("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Me=An.prototype,Me.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Me.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Yo(a,y,x){a.width=y,a.height=x}Me.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Me.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Me.dd=function(a){return this.x=a.x,this.y=a.y,this},Me.tA=function(a){return this.width=a.width,this.height=a.height,this},An.prototype.copy=function(){var a=new An;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Me=An.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&It("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qs(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 An(x,b,z,ne)}return new An}function yl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Me.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Me.D=function(a){return a instanceof An?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Me.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Me.Xa=function(a){return Ut.B(this.x,a.x)&&Ut.B(this.y,a.y)&&Ut.B(this.width,a.width)&&Ut.B(this.height,a.height)};function Kr(a,y){return Ut.$(a.x,y.x)&&Ut.$(a.y,y.y)&&Ut.$(a.width,y.width)&&Ut.$(a.height,y.height)}Me.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Me.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},Me.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},Me.offset=function(a,y){return this.x+=a,this.y+=y,this},Me.Bc=function(a,y){return Ao(this,y,a,y,a)},Me.Co=function(a){return Ao(this,a.top,a.right,a.bottom,a.left)},Me.Fv=function(a){return Ao(this,-a.top,-a.right,-a.bottom,-a.left)},Me.Hz=function(a,y,x,E){return Ao(this,a,y,x,E)};function Ao(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}Me.Ex=function(a){return Ka(this,a.x,a.y,a.width,a.height)},Me.Uu=function(a,y,x,E){return Ka(this,a,y,x,E)};function Ka(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}Me.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Me.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 da(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))}Me.Ye=function(a){return vo(this,a.x,a.y,0,0)},Me.ed=function(a){return vo(this,a.x,a.y,a.width,a.height)},Me.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}Me.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 Qo(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 Qa(a,y,x,E,b,z,ne,re){return a>ne+b||b>x+a?!1:!(y>re+z||z>E+y)}Me.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Me.Mz=function(){return this.width===0&&this.height===0},An.alloc=function(){var a=Bo.pop();return a===void 0?new An:a},An.allocAt=function(a,y,x,E){var b=Bo.pop();return b===void 0?new An(a,y,x,E):b.h(a,y,x,E)},An.free=function(a){Bo.push(a)},Pt.Object.defineProperties(An.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 $e(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 $e(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}}}),An.prototype.isEmpty=An.prototype.Mz,An.prototype.isReal=An.prototype.w,An.intersectsLineSegment=function(a,y,x,E,b,z,ne,re){return Ut.Fx(a,y,x,E,b,z,ne,re)},An.prototype.setSpot=An.prototype.yi,An.prototype.union=An.prototype.Kv,An.prototype.unionRect=An.prototype.ed,An.prototype.unionPoint=An.prototype.Ye,An.prototype.intersects=An.prototype.Vu,An.prototype.intersectsRect=An.prototype.Yc,An.prototype.intersect=An.prototype.Uu,An.prototype.intersectRect=An.prototype.Ex,An.prototype.grow=An.prototype.Hz,An.prototype.subtractMargin=An.prototype.Fv,An.prototype.addMargin=An.prototype.Co,An.prototype.inflate=An.prototype.Bc,An.prototype.offset=An.prototype.offset,An.prototype.contains=An.prototype.contains,An.prototype.containsRect=An.prototype.Re,An.prototype.containsPoint=An.prototype.ca,An.prototype.equalsApprox=An.prototype.Xa,An.prototype.equalTo=An.prototype.hi,An.prototype.equals=An.prototype.D,An.prototype.setSize=An.prototype.tA,An.prototype.setPoint=An.prototype.dd,An.prototype.set=An.prototype.set,An.prototype.setTo=An.prototype.sg;var to=null,Do=null,Bo=[];An.className="Rect",An.parse=Qs,An.stringify=yl,An.contains=Qo,An.intersects=Qa,An.ZeroRect=to=new An(0,0,0,0).ja(),An.NoRect=Do=new An(NaN,NaN,NaN,NaN).ja(),An.parse=Qs,An.stringify=yl,An.contains=Qo,An.intersects=Qa;function Yi(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):It("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Yi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yi.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Yi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Yi.prototype.copy=function(){var a=new Yi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Me=Yi.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&It("cannot thaw constant: "+this),this._isFrozen=!1,this};function ba(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 Yi;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Yi(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Yi(x,b);for(var ne=NaN;a[y]==="";)y++;return(E=a[y++])&&(ne=parseFloat(E)),isNaN(ne)?new Yi(x,b):new Yi(x,b,z,ne)}return new Yi}function or(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Me.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Me.D=function(a){return a instanceof Yi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Me.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Me.Xa=function(a){return Ut.B(this.top,a.top)&&Ut.B(this.right,a.right)&&Ut.B(this.bottom,a.bottom)&&Ut.B(this.left,a.left)},Me.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Yi.alloc=function(){var a=fa.pop();return a===void 0?new Yi:a},Yi.free=function(a){fa.push(a)},Yi.prototype.isReal=Yi.prototype.w,Yi.prototype.equalsApprox=Yi.prototype.Xa,Yi.prototype.equalTo=Yi.prototype.hi,Yi.prototype.equals=Yi.prototype.D,Yi.prototype.set=Yi.prototype.set,Yi.prototype.setTo=Yi.prototype.sg;var Xr=null,Pr=null,fa=[];Yi.className="Margin",Yi.parse=ba,Yi.stringify=or,Yi.ZeroMargin=Xr=new Yi(0,0,0,0).ja(),Yi.TwoMargin=Pr=new Yi(2,2,2,2).ja(),Yi.parse=ba,Yi.stringify=or;function Mi(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 ga,Ua,rs,Sl,Kl,yo,Vu,Ll,Dl,xl,co,Ba,Ms,zs,Yu,uc,Uu,Ac,Xu,Vl,Bl,os,Au,_u,$s,_o,Ma,bl,Ts,Os,ms,Es,js,Is,cc,au;Mi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Mi.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},Mi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Mi.prototype.copy=function(){var a=new Mi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Me=Mi.prototype,Me.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Me.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return Object.isFrozen(this)&&It("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ls(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 ga;if(a==="TopLeft")return Ua;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return rs;if(a==="TopRight")return Sl;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Kl;if(a==="Center")return yo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Vu;if(a==="BottomLeft")return Ll;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Dl;if(a==="BottomRight")return xl;if(a==="TopSide")return co;if(a==="LeftSide")return Ba;if(a==="RightSide")return Ms;if(a==="BottomSide")return zs;if(a==="TopBottomSides")return Yu;if(a==="LeftRightSides")return uc;if(a==="TopLeftSides")return Uu;if(a==="TopRightSides")return Ac;if(a==="BottomLeftSides")return Xu;if(a==="BottomRightSides")return Vl;if(a==="NotTopSide")return Bl;if(a==="NotLeftSide")return os;if(a==="NotRightSide")return Au;if(a==="NotBottomSide")return _u;if(a==="AllSides")return $s;if(a==="Default")return _o;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 Mi(x,b,z,ne)}return new Mi}function md(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Me.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(ga)?"None":this.D(Ua)?"TopLeft":this.D(rs)?"Top":this.D(Sl)?"TopRight":this.D(Kl)?"Left":this.D(yo)?"Center":this.D(Vu)?"Right":this.D(Ll)?"BottomLeft":this.D(Dl)?"Bottom":this.D(xl)?"BottomRight":this.D(co)?"TopSide":this.D(Ba)?"LeftSide":this.D(Ms)?"RightSide":this.D(zs)?"BottomSide":this.D(Yu)?"TopBottomSides":this.D(uc)?"LeftRightSides":this.D(Uu)?"TopLeftSides":this.D(Ac)?"TopRightSides":this.D(Xu)?"BottomLeftSides":this.D(Vl)?"BottomRightSides":this.D(Bl)?"NotTopSide":this.D(os)?"NotLeftSide":this.D(Au)?"NotRightSide":this.D(_u)?"NotBottomSide":this.D($s)?"AllSides":this.D(_o)?"Default":"None"},Me.D=function(a){return a instanceof Mi?(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},Me.gv=function(){return new Mi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Me.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Ma))a=Ba;else if(a.D(bl))a=Ms;else if(a.D(Ts))a=co;else if(a.D(Os))a=zs;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Me.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Me.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Me.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Me.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Me.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Mi.alloc=function(){var a=id.pop();return a===void 0?new Mi:a},Mi.free=function(a){id.push(a)},Mi.prototype.isDefault=Mi.prototype.Xb,Mi.prototype.isNone=Mi.prototype.ys,Mi.prototype.isSide=Mi.prototype.$c,Mi.prototype.isNoSpot=Mi.prototype.Mc,Mi.prototype.isSpot=Mi.prototype.sb,Mi.prototype.includesSide=Mi.prototype.Hf,Mi.prototype.opposite=Mi.prototype.gv,Mi.prototype.equals=Mi.prototype.D,Mi.prototype.set=Mi.prototype.set,Mi.prototype.setTo=Mi.prototype.sg;var id=[];Mi.className="Spot",Mi.parse=ih,Mi.stringify=md,Mi.None=ga=Ls(new Mi(0,0,0,0),0).ja(),Mi.Default=_o=Ls(new Mi(0,0,-1,0),-1).ja(),Mi.TopLeft=Ua=new Mi(0,0,0,0).ja(),Mi.TopCenter=rs=new Mi(.5,0,0,0).ja(),Mi.TopRight=Sl=new Mi(1,0,0,0).ja(),Mi.LeftCenter=Kl=new Mi(0,.5,0,0).ja(),Mi.Center=yo=new Mi(.5,.5,0,0).ja(),Mi.RightCenter=Vu=new Mi(1,.5,0,0).ja(),Mi.BottomLeft=Ll=new Mi(0,1,0,0).ja(),Mi.BottomCenter=Dl=new Mi(.5,1,0,0).ja(),Mi.BottomRight=xl=new Mi(1,1,0,0).ja(),Mi.MiddleTop=ms=rs,Mi.MiddleLeft=Es=Kl,Mi.MiddleRight=js=Vu,Mi.MiddleBottom=Is=Dl,Mi.Top=Ts=rs,Mi.Left=Ma=Kl,Mi.Right=bl=Vu,Mi.Bottom=Os=Dl,Mi.TopSide=co=Ls(new Mi(0,0,1,1),1).ja(),Mi.LeftSide=Ba=Ls(new Mi(0,0,1,2),1).ja(),Mi.RightSide=Ms=Ls(new Mi(0,0,1,4),1).ja(),Mi.BottomSide=zs=Ls(new Mi(0,0,1,8),1).ja(),Mi.TopBottomSides=Yu=Ls(new Mi(0,0,1,9),1).ja(),Mi.LeftRightSides=uc=Ls(new Mi(0,0,1,6),1).ja(),Mi.TopLeftSides=Uu=Ls(new Mi(0,0,1,3),1).ja(),Mi.TopRightSides=Ac=Ls(new Mi(0,0,1,5),1).ja(),Mi.BottomLeftSides=Xu=Ls(new Mi(0,0,1,10),1).ja(),Mi.BottomRightSides=Vl=Ls(new Mi(0,0,1,12),1).ja(),Mi.NotTopSide=Bl=Ls(new Mi(0,0,1,14),1).ja(),Mi.NotLeftSide=os=Ls(new Mi(0,0,1,13),1).ja(),Mi.NotRightSide=Au=Ls(new Mi(0,0,1,11),1).ja(),Mi.NotBottomSide=_u=Ls(new Mi(0,0,1,7),1).ja(),Mi.AllSides=$s=Ls(new Mi(0,0,1,15),1).ja(),cc=new Mi(.156,.156).ja(),au=new Mi(.844,.844).ja(),Mi.parse=ih,Mi.stringify=md;function Hr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Hr.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},Hr.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},Hr.prototype.copy=function(){var a=new Hr;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},Hr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Hr.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},Hr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Hr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Hr.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},Hr.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},Hr.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},Hr.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},Me=Hr.prototype,Me.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Me.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Me.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)},Me.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))},Me.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))},Me.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,ae=this.m22,le=this.dx,ce=this.dy,me=y*z+x*re+le,Ce=y*ne+x*ae+ce,Fe=E*z+x*re+le,De=E*ne+x*ae+ce;return x=y*z+b*re+le,y=y*ne+b*ae+ce,z=E*z+b*re+le,E=E*ne+b*ae+ce,b=Math.min(me,Fe),me=Math.max(me,Fe),Fe=Math.min(Ce,De),Ce=Math.max(Ce,De),b=Math.min(b,x),me=Math.max(me,x),Fe=Math.min(Fe,y),Ce=Math.max(Ce,y),b=Math.min(b,z),me=Math.max(me,z),Fe=Math.min(Fe,E),Ce=Math.max(Ce,E),a.h(b,Fe,me-b,Ce-Fe),a},Hr.alloc=function(){var a=rd.pop();return a===void 0?new Hr:a},Hr.free=function(a){rd.push(a)},Hr.prototype.transformRect=Hr.prototype.pp,Hr.prototype.transformPoint=Hr.prototype.Ga,Hr.prototype.scale=Hr.prototype.scale,Hr.prototype.translate=Hr.prototype.translate,Hr.prototype.rotate=Hr.prototype.rotate,Hr.prototype.invert=Hr.prototype.Vj,Hr.prototype.multiplyInverted=Hr.prototype.bv,Hr.prototype.multiply=Hr.prototype.multiply,Hr.prototype.reset=Hr.prototype.reset,Hr.prototype.isIdentity=Hr.prototype.ws,Hr.prototype.equals=Hr.prototype.D,Hr.prototype.setTransform=Hr.prototype.setTransform,Hr.prototype.set=Hr.prototype.set;var rd=[];Hr.className="Transform",Hr.xF="54a702f3e53909c447824c6706603faf4c";var Ut={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ut.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ut.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,ae=x;else re=x,ae=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<=ae&&y-b<=ne&&ne<=y+b;if(ae+=b,re-=b,re<=z&&z<=ae&&(ce+=b,le-=b,le<=ne&&ne<=ce))if(ae-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,ae,le,ce,me){if(Ut.Yb(a,y,ne,re,me,x,E)&&Ut.Yb(a,y,ne,re,me,b,z))return Ut.Yb(a,y,ne,re,me,le,ce);var Ce=(a+x)/2,Fe=(y+E)/2,De=(x+b)/2,ze=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(Ce+De)/2,x=(Fe+ze)/2,De=(De+b)/2,ze=(ze+z)/2;var ut=(E+De)/2,qe=(x+ze)/2;return Ut.cs(a,y,Ce,Fe,E,x,ut,qe,ae,le,ce,me)||Ut.cs(ut,qe,De,ze,b,z,ne,re,ae,le,ce,me)},ax:function(a,y,x,E,b,z,ne,re,ae){var le=(x+b)/2,ce=(E+z)/2;return ae.h((((a+x)/2+le)/2+(le+(b+ne)/2)/2)/2,(((y+E)/2+ce)/2+(ce+(z+re)/2)/2)/2),ae},My:function(a,y,x,E,b,z,ne,re){var ae=(x+b)/2,le=(E+z)/2;return $i(((a+x)/2+ae)/2,((y+E)/2+le)/2,(ae+(b+ne)/2)/2,(le+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ne,re,ae,le){if(Ut.Yb(a,y,ne,re,ae,x,E)&&Ut.Yb(a,y,ne,re,ae,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,Fe=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(ce+Ce)/2,x=(me+Fe)/2,Ce=(Ce+b)/2,Fe=(Fe+z)/2;var De=(E+Ce)/2,ze=(x+Fe)/2;Ut.Dl(a,y,ce,me,E,x,De,ze,ae,le),Ut.Dl(De,ze,Ce,Fe,b,z,ne,re,ae,le)}return le},Qe:function(a,y,x,E,b,z,ne,re,ae,le){if(Ut.Yb(a,y,ne,re,ae,x,E)&&Ut.Yb(a,y,ne,re,ae,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,Fe=(E+z)/2;b=(b+ne)/2,z=(z+re)/2,E=(ce+Ce)/2,x=(me+Fe)/2,Ce=(Ce+b)/2,Fe=(Fe+z)/2;var De=(E+Ce)/2,ze=(x+Fe)/2;Ut.Qe(a,y,ce,me,E,x,De,ze,ae,le),Ut.Qe(De,ze,Ce,Fe,b,z,ne,re,ae,le)}return le},jv:function(a,y,x,E,b,z,ne,re,ae,le){if(Ut.Yb(a,y,b,z,le,x,E))return Ut.Yb(a,y,b,z,le,re,ae);var ce=(a+x)/2,me=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var Ce=(ce+x)/2,Fe=(me+E)/2;return Ut.jv(a,y,ce,me,Ce,Fe,ne,re,ae,le)||Ut.jv(Ce,Fe,x,E,b,z,ne,re,ae,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(Ut.Yb(a,y,b,z,ne,x,E))vo(re,a,y,0,0),vo(re,b,z,0,0);else{var ae=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ce=(ae+x)/2,me=(le+E)/2;Ut.iv(a,y,ae,le,ce,me,ne,re),Ut.iv(ce,me,x,E,b,z,ne,re)}return re},ep:function(a,y,x,E,b,z,ne,re){if(Ut.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 ae=(a+x)/2,le=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ce=(ae+x)/2,me=(le+E)/2;Ut.ep(a,y,ae,le,ce,me,ne,re),Ut.ep(ce,me,x,E,b,z,ne,re)}return re},Eo:function(a,y,x,E,b,z,ne,re,ae,le,ce,me,Ce,Fe){if(Ut.Yb(a,y,ne,re,Ce,x,E)&&Ut.Yb(a,y,ne,re,Ce,b,z))return!Ut.Rl(a,y,ne,re,ae,le,ce,me)||(Ce=(a-ne)*(le-me)-(y-re)*(ae-ce),Ce===0)?!1:(Fe.h(((a*re-y*ne)*(ae-ce)-(a-ne)*(ae*me-le*ce))/Ce,((a*re-y*ne)*(le-me)-(y-re)*(ae*me-le*ce))/Ce),!0);var De=(a+x)/2,ze=(y+E)/2,ut=(x+b)/2,qe=(E+z)/2;b=(b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,E,b,z,ne){return Ut.$(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)):Ut.$(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,ae){return Ut.B(a,x)&&Ut.B(y,E)?(ae.h(a,y),!1):Ut.$(b,ne)?Ut.$(a,x)?(Ut.qh(a,y,x,E,b,z,ae),!1):Ut.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,ae):(re=(re-z)/(ne-b),Ut.$(a,x)?(x=re*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(ae.h(a,b),!1):x>y?(ae.h(a,y),!1):(ae.h(a,x),!0)):(ne=(E-y)/(x-a),Ut.$(re,ne)?(Ut.qh(a,y,x,E,b,z,ae),!1):(b=(ne*a-re*b+z-y)/(ne-re),Ut.$(ne,0)?(a<x?(E=a,a=x):E=x,b<E?(ae.h(E,y),!1):b>a?(ae.h(a,y),!1):(ae.h(b,y),!0)):Ut.qh(a,y,x,E,b,ne*(b-a)+y,ae))))},MA:function(a,y,x,E,b){return Ut.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,ae,le){function ce(ut,qe){var wt=(ut-a)*(ut-a)+(qe-y)*(qe-y);wt<me&&(me=wt,ae.h(ut,qe))}var me=1/0;ce(ae.x,ae.y);var Ce=0,Fe=0,De=0,ze=0;if(b<ne?(Ce=b,Fe=ne):(Ce=ne,Fe=b),z<re?(De=b,ze=ne):(De=ne,ze=b),Ce=(Fe-Ce)/2+le,le=(ze-De)/2+le,b=(b+ne)/2,z=(z+re)/2,Ce===0||le===0)return ae;if(.5>(x>a?x-a:a-x)){if(Ce=1-(x-b)*(x-b)/(Ce*Ce),0>Ce)return ae;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 ae;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 ae},Ff:function(a,y,x,E,b,z,ne,re,ae){var le=1e21,ce=a,me=y;if(Ut.Ve(a,y,a,E,b,z,ne,re,ae)){var Ce=(ae.x-b)*(ae.x-b)+(ae.y-z)*(ae.y-z);Ce<le&&(le=Ce,ce=ae.x,me=ae.y)}return Ut.Ve(x,y,x,E,b,z,ne,re,ae)&&(Ce=(ae.x-b)*(ae.x-b)+(ae.y-z)*(ae.y-z),Ce<le&&(le=Ce,ce=ae.x,me=ae.y)),Ut.Ve(a,y,x,y,b,z,ne,re,ae)&&(y=(ae.x-b)*(ae.x-b)+(ae.y-z)*(ae.y-z),y<le&&(le=y,ce=ae.x,me=ae.y)),Ut.Ve(a,E,x,E,b,z,ne,re,ae)&&(a=(ae.x-b)*(ae.x-b)+(ae.y-z)*(ae.y-z),a<le&&(le=a,ce=ae.x,me=ae.y)),ae.h(ce,me),1e21>le},us:function(a,y,x){return Ut.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 ae=a+x,le=y+E;return b===ne?(z<re?(ne=z,z=re):ne=re,a<=b&&b<=ae&&ne<=le&&z>=y):z===re?(b<ne?(re=b,b=ne):re=ne,y<=z&&z<=le&&re<=ae&&b>=a):!!(Qo(a,y,x,E,b,z)||Qo(a,y,x,E,ne,re)||Ut.Rl(a,y,ae,y,b,z,ne,re)||Ut.Rl(ae,y,ae,le,b,z,ne,re)||Ut.Rl(ae,le,a,le,b,z,ne,re)||Ut.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>=Ut.Fl(a,y,x,E,b,z)*Ut.Fl(a,y,x,E,ne,re)&&0>=Ut.Fl(b,z,ne,re,a,y)*Ut.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 ae=ne/2,le=E;if(E=Math.min(2*ne,Math.abs(b-E)),1e-5>E)return ae=le+re*Math.min(E,ae),re=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(ae),y+=x*Math.sin(ae),x=(re+a)/2,ae=(le+y)/2,z.push([re,le,x,ae,x,ae,a,y]),z;for(;1e-5<E;)b=le+re*Math.min(E,ae),z.push(Ut.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),ae=-re,le=ne*ne+ae*ae,ce=le+ne*ne+ae*re;return le=4/3*(Math.sqrt(2*le*ce)-ce)/(ne*re-ae*ne),re=ne-le*ae,ne=ae+le*ne,ae=-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-ae*le,b+re*le+ae*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 ae=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),Ut.az(ae,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,ae=-z+Math.sqrt(a*a+ne*ne);y=re;for(var le=0;9999999999>le&&(y=.5*(re+ae),!(y===re||y===ae));++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)ae=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 Ti,um:new Ti,Mf:new Ti,Nf:0,vm:100};Ut.za=Ut.AA;function hi(a){Rr(this),this.l=2,a===void 0&&(a=hi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===hi.o?this.ee=new On:(hi.V===null&&(hi.V=new On().freeze()),this.ee=hi.V),this.aq=this.ee.Ja,this.Ip=new An().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ua,this.gg=xl,this.Rk=this.Sk=NaN,this.Uf=ei}hi.prototype.copy=function(){var a=new hi;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===hi.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},hi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},hi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==hi.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},hi.prototype.ka=function(){if(Object.isFrozen(this)&&It("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==hi.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},hi.prototype.Xa=function(a){if(!(a instanceof hi))return!1;if(this.type!==a.type)return this.type===hi.j&&a.type===hi.o?Ih(this,a):a.type===hi.j&&this.type===hi.o?Ih(a,this):!1;if(this.type===hi.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 Ut.B(this.startX,a.startX)&&Ut.B(this.startY,a.startY)&&Ut.B(this.endX,a.endX)&&Ut.B(this.endY,a.endY)};function Ih(a,y){return a.type!==hi.j||y.type!==hi.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ut.B(a.startX,y.startX)&&Ut.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===pa&&Ut.B(a.endX,y.endX)&&Ut.B(a.endY,y.endY))))}hi.ia=function(a){return a.toString()},hi.prototype.qb=function(a){a.classType===hi&&(this.type=a)},hi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case hi.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 hi.u:var y=new An(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 hi.F:if(y=new An(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 hi.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()}},hi.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},hi.parse=function(a,y){function x(){return ze>=Bt-1?!0:le[ze+1].match(Ht)!==null}function E(){return ze++,le[ze]}function b(Tr){var Fr=parseFloat(E()),Uo=parseFloat(E());ut===ut.toLowerCase()&&(Fr=At.x+Fr,Uo=At.y+Uo),Tr.h(Fr,Uo)}function z(){return b(At),At}function ne(){return b(wt),wt}function re(){var Tr=qe.toLowerCase();return Tr!=="c"&&Tr!=="s"&&Tr!=="q"&&Tr!=="t"?At:new $e(2*At.x-wt.x,2*At.y-wt.y)}y===void 0&&(y=!1);var ae=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(ae,"$1 $2"),a=a.replace(ae,"$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){ae=Pn();for(var me="",Ce=!1,Fe=0;Fe<ce.length;Fe++){var De=ce[Fe];De!=="."||Ce?De==="."?(ae.push(me),me="."):me+=De:(Ce=!0,me+=De)}for(ae.push(me),le.splice(a,1),ce=0;ce<ae.length;ce++)le.splice(a+ce,0,ae[ce]);a+=ae.length-1,Rn(ae)}}var ze=-1,ut="",qe="";ae=new $e(0,0);var wt=new $e(0,0),At=new $e(0,0),Bt=le.length;a=k1(null),Ce=me=ce=!1,Fe=!0,De=null;for(var Ht=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ze>=Bt-1);)if(qe=ut,ut=E(),ut!=="")switch(ut.toUpperCase()){case"X":Fe=!0,me=ce=!1;break;case"M":for(De=z(),a.mc===null||Fe===!0?(Og(a,De.x,De.y,ce,!me,Ce),Fe=!1):a.moveTo(De.x,De.y),ae.assign(At);!x();)De=z(),a.lineTo(De.x,De.y);break;case"L":for(;!x();)De=z(),a.lineTo(De.x,De.y);break;case"H":for(;!x();)At=new $e((ut===ut.toLowerCase()?At.x:0)+parseFloat(E()),At.y),a.lineTo(At.x,At.y);break;case"V":for(;!x();)At=new $e(At.x,(ut===ut.toLowerCase()?At.y:0)+parseFloat(E())),a.lineTo(At.x,At.y);break;case"C":for(;!x();){De=new $e,b(De);var dn=ne(),Pi=z();yh(a,De.x,De.y,dn.x,dn.y,Pi.x,Pi.y)}break;case"S":for(;!x();)De=re(),dn=ne(),Pi=z(),yh(a,De.x,De.y,dn.x,dn.y,Pi.x,Pi.y);break;case"Q":for(;!x();)De=ne(),dn=z(),Gm(a,De.x,De.y,dn.x,dn.y);break;case"T":for(;!x();)wt=De=re(),dn=z(),Gm(a,De.x,De.y,dn.x,dn.y);break;case"B":for(;!x();){De=parseFloat(E()),dn=parseFloat(E()),Pi=parseFloat(E());var Ii=parseFloat(E()),Bi=parseFloat(E()),si=Bi,Vn=!1;x()||(si=parseFloat(E()),x()||(Vn=parseFloat(E())!==0)),ut===ut.toLowerCase()&&(Pi+=At.x,Ii+=At.y),a.arcTo(De,dn,Pi,Ii,Bi,si,Vn)}break;case"A":for(;!x();)De=Math.abs(parseFloat(E())),dn=Math.abs(parseFloat(E())),Pi=parseFloat(E()),Bi=Ii=!1,Vn=si=0,si=E(),si.length===1?(Ii=!!parseFloat(si),Bi=!!parseFloat(E()),si=parseFloat(E())):si.length===2?(Ii=!!parseFloat(si[0]),Bi=!!parseFloat(si[1]),si=parseFloat(E())):(Ii=!!parseFloat(si[0]),Bi=!!parseFloat(si[1]),si=parseFloat(si.slice(2))),Vn=parseFloat(E()),ut===ut.toLowerCase()&&(si=At.x+si,Vn=At.y+Vn),At.h(si,Vn),Lx(a,De,dn,Pi,Ii,Bi,si,Vn);break;case"Z":Mx(a),At.assign(ae);break;case"F":for(De="",dn=1;le[ze+dn];)if(le[ze+dn]==="0")Ce=!0,dn++;else if(le[ze+dn].match(/[Uu]/)!==null)dn++;else if(le[ze+dn].match(Ht)===null)dn++;else{De=le[ze+dn];break}De.match(/[Mm]/)?ce=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(De="",dn=1;le[ze+dn];)if(le[ze+dn].match(/[Ff]/)!==null)dn++;else if(le[ze+dn].match(Ht)===null)dn++;else{De=le[ze+dn];break}De.match(/[Mm]/)?me=!0:a.mc.isShadowed=!1}if(ae=a.os,Km=a,y)for(y=ae.figures.iterator;y.next();)y.value.isFilled=!0;return ae},hi.Ha=function(a,y){for(var x=a.length,E=$e.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}$e.free(E)},hi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===hi.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},hi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===hi.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()},hi.prototype.ix=function(){var a=new An;return rh(this,a,!0),a};function rh(a,y,x){switch(a.type){case hi.j:case hi.u:case hi.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 hi.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,ae=z.startX,le=z.startY,ce=0;ce<re;ce++){var me=ne[ce];switch(me.type){case pa:case ws:ae=me.endX,le=me.endY,vo(y,ae,le,0,0);break;case ol:Ut.Dl(ae,le,me.point1X,me.point1Y,me.point2X,me.point2Y,me.endX,me.endY,.5,y),ae=me.endX,le=me.endY;break;case Ye:Ut.iv(ae,le,me.point1X,me.point1Y,me.endX,me.endY,.5,y),ae=me.endX,le=me.endY;break;case rt:case ft:var Ce=me.type===rt?gl(me,z):Nl(me,z,ae,le),Fe=Ce.length;if(Fe===0){ae=me.type===rt?me.centerX:me.endX,le=me.type===rt?me.centerY:me.endY,vo(y,ae,le,0,0);break}me=null;for(var De=0;De<Fe;De++)me=Ce[De],Ut.Dl(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],.5,y);me!==null&&(ae=me[6],le=me[7]);break;default:It("Unknown Segment type: "+me.type)}}}break;default:It("Unknown Geometry type: "+a.type)}}hi.prototype.normalize=function(){this._isFrozen&&gn(this);var a=this.ix();return this.offset(-a.x,-a.y),new $e(-a.x,-a.y)},hi.prototype.offset=function(a,y){return this._isFrozen&&gn(this),this.transform(1,0,0,1,a,y),this},hi.prototype.scale=function(a,y){return this._isFrozen&&gn(this),this.transform(a,0,0,y,0,0),this},hi.prototype.rotate=function(a,y,x){this._isFrozen&&gn(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=Hr.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),Hr.free(E),this},Me=hi.prototype,Me.transform=function(a,y,x,E,b,z){switch(this.type){case hi.j:case hi.u:case hi.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 hi.o:for(var ae=this.figures.s,le=ae.length,ce=0;ce<le;ce++){var me=ae[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,Fe=0;Fe<Ce;Fe++){var De=me[Fe];switch(De.type){case pa:case ws:ne=De.endX,re=De.endY,De.endX=ne*a+re*x+b,De.endY=ne*y+re*E+z;break;case ol:ne=De.point1X,re=De.point1Y,De.point1X=ne*a+re*x+b,De.point1Y=ne*y+re*E+z,ne=De.point2X,re=De.point2Y,De.point2X=ne*a+re*x+b,De.point2Y=ne*y+re*E+z,ne=De.endX,re=De.endY,De.endX=ne*a+re*x+b,De.endY=ne*y+re*E+z;break;case Ye:ne=De.point1X,re=De.point1Y,De.point1X=ne*a+re*x+b,De.point1Y=ne*y+re*E+z,ne=De.endX,re=De.endY,De.endX=ne*a+re*x+b,De.endY=ne*y+re*E+z;break;case rt:ne=De.centerX,re=De.centerY,De.centerX=ne*a+re*x+b,De.centerY=ne*y+re*E+z,y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),De.startAngle+=ne),0>a&&(De.startAngle=180-De.startAngle,De.sweepAngle=-De.sweepAngle),0>E&&(De.startAngle=-De.startAngle,De.sweepAngle=-De.sweepAngle),De.radiusX*=Math.sqrt(a*a+x*x),De.radiusY!==void 0&&(De.radiusY*=Math.sqrt(y*y+E*E));break;case ft:if(ne=De.endX,re=De.endY,De.endX=ne*a+re*x+b,De.endY=ne*y+re*E+z,De.radiusX===0||De.radiusY===0)break;y!==0&&(ne=180*Math.atan2(y,a)/Math.PI,0>ne&&(ne+=360),De.xAxisRotation+=ne),0>a&&(De.xAxisRotation=180-De.xAxisRotation,De.isClockwiseArc=!De.isClockwiseArc),0>E&&(De.xAxisRotation=-De.xAxisRotation,De.isClockwiseArc=!De.isClockwiseArc),De.radiusX*=Math.sqrt(a*a+x*x),De.radiusY*=Math.sqrt(y*y+E*E);break;default:It("Unknown Segment type: "+De.type)}}}}return this._isInvalidBounds=!0,this},Me.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 hi.j:return Ut.Yb(x,E,b,z,y,a.x,a.y);case hi.u:var ne=An.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),An.free(ne),a;case hi.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 hi.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,ae,le,ce,me,Ce=a.figures.s,Fe=Ce.length,De=0;De<Fe;De++){var ze=Ce[De],ut=!ze.isEvenOdd;if(ze.isFilled){if(E&&ze.ca(z,y,x))return!0;var qe=ze.segments;ae=ze.startX,le=ze.startY;for(var wt=ae,At=le,Bt=qe.s,Ht=0;Ht<=qe.length;Ht++){var dn=void 0;if(Ht!==qe.length){dn=Bt[Ht];var Pi=dn.type;a=dn.endX,me=dn.endY}else Pi=pa,a=wt,me=At;switch(Pi){case ws:if(wt=hc(z,y,ne,y,ae,le,wt,At),isNaN(wt))return!0;re+=wt,wt=a,At=me;break;case pa:if(ae=hc(z,y,ne,y,ae,le,a,me),isNaN(ae))return!0;re+=ae;break;case ol:ce=Ut.Fo(ae,le,dn.point1X,dn.point1Y,dn.point2X,dn.point2Y,a,me,ne,y,z,y,.5),re+=ce;break;case Ye:ce=Ut.Fo(ae,le,(ae+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 ft:Pi=dn.type===rt?gl(dn,ze):Nl(dn,ze,ae,le);var Ii=Pi.length;if(Ii===0){if(ae=hc(z,y,ne,y,ae,le,dn.type===rt?dn.centerX:dn.endX,dn.type===rt?dn.centerY:dn.endY),isNaN(ae))return!0;re+=ae;break}dn=null;for(var Bi=0;Bi<Ii;Bi++){if(dn=Pi[Bi],Bi===0){if(ce=hc(z,y,ne,y,ae,le,dn[0],dn[1]),isNaN(ce))return!0;re+=ce}ce=Ut.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:It("Unknown Segment type: "+dn.type)}ae=a,le=me}if(ut){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(ze.ca(z,y,b?x:x+2))return!0}return!1}function hc(a,y,x,E,b,z,ne,re){if(Ut.Yb(b,z,ne,re,.05,a,y))return NaN;var ae=(a-x)*(z-re);if(ae===0)return 0;var le=((a*E-y*x)*(b-ne)-(a-x)*(b*re-z*ne))/ae;if(y=(a*E-y*x)*(z-re)/ae,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<ae?1:-1}function Fc(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}Me.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new $e),this.type===hi.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 ae=E[re],le=ae.length;for(a=0;a<le;a++){var ce=ae[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},Me.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===hi.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],ae=re.length;for(a=0;a<ae;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},Me.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===hi.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 ae=E[re],le=ae.length;for(a=0;a<le;a++){var ce=ae[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},Me.xx=function(a){if(this.type===hi.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=$e.alloc();return Ut.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,$e.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ne)}}else if(this.type===hi.u){ne=this.startX,re=this.startY;var ae=this.endX;if(b=this.endY,ne!==ae||re!==b){y=ae-ne,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ne),ae),a=Math.min(Math.max(a,re),b),ne=Math.abs(E-ne),ae=Math.abs(E-ae),re=Math.abs(a-re),b=Math.abs(a-b);var le=Math.min(ne,ae,re,b);if(le===re)return E/z;if(le===ae)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=$e.alloc(),b=1/0,re=ne=0,ae=y.length;for(var ce=le=0,me=0;me<ae;me++)for(var Ce=y[me],Fe=x[me],De=Ce.length,ze=0;ze<De;ze+=2){var ut=Ce[ze],qe=Ce[ze+1];if(ze!==0){Ut.qh(le,ce,ut,qe,a.x,a.y,E);var wt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);wt<b&&(b=wt,ne=re,ne+=Math.sqrt((E.x-le)*(E.x-le)+(E.y-ce)*(E.y-ce))),re+=Fe[(ze-2)/2]}le=ut,ce=qe}return $e.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===hi.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===hi.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===hi.F){var z=new Rs;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ne=new No(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 ae=a[re];Ut.Qe(ne,z,ae[2],ae[3],ae[4],ae[5],ae[6],ae[7],.5,E),ne=ae[6],z=ae[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,ae=z;for(var le=b.segments.s,ce=le.length,me=0;me<ce;me++){var Ce=le[me];switch(Ce.type){case ws: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,ae=z;break;case pa:E.push(Ce.endX),E.push(Ce.endY),ne=Ce.endX,z=Ce.endY;break;case ol:Ut.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 Ye:Ut.ep(ne,z,Ce.point1X,Ce.point1Y,Ce.endX,Ce.endY,.5,E),ne=Ce.endX,z=Ce.endY;break;case rt:var Fe=gl(Ce,b),De=Fe.length;if(De===0){E.push(Ce.centerX),E.push(Ce.centerY),ne=Ce.centerX,z=Ce.centerY;break}for(var ze=0;ze<De;ze++){var ut=Fe[ze];Ut.Qe(ne,z,ut[2],ut[3],ut[4],ut[5],ut[6],ut[7],.5,E),ne=ut[6],z=ut[7]}break;case ft:if(Fe=Nl(Ce,b,ne,z),De=Fe.length,ze=Ce.endX,ut=Ce.endY,De===0){E.push(ze),E.push(ut),ne=ze,z=ut;break}for(ze=0;ze<De;ze++)ut=Fe[ze],Ut.Qe(ne,z,ut[2],ut[3],ut[4],ut[5],ut[6],ut[7],.5,E),ne=ut[6],z=ut[7];break;default:It("Segment not of valid type: "+Ce.type)}Ce.isClosed&&(E.push(re),E.push(ae))}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}Me.add=function(a){return this.ee.add(a),this},Me.pm=function(a,y,x,E,b,z,ne,re){return this._isFrozen&&gn(this),this.fg=new Mi(a,y,b,z).freeze(),this.gg=new Mi(x,E,ne,re).freeze(),this},Pt.Object.defineProperties(hi.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===hi.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===hi.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&&gn(this,a),this.na=a,a===hi.o?this.ee=new On:(hi.V===null&&(hi.V=new On().freeze()),this.ee=hi.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&gn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&gn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&gn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&gn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&gn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&gn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&gn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&gn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),hi.prototype.setSpots=hi.prototype.pm,hi.prototype.add=hi.prototype.add,hi.prototype.getFractionForPoint=hi.prototype.xx,hi.prototype.getPointAndAngleAlongPath=hi.prototype.Qu,hi.prototype.getAngleAlongPath=hi.prototype.wx,hi.prototype.getPointAlongPath=hi.prototype.Pu,hi.prototype.containsPoint=hi.prototype.ca,hi.prototype.transform=hi.prototype.transform,hi.prototype.rotate=hi.prototype.rotate,hi.prototype.scale=hi.prototype.scale,hi.prototype.offset=hi.prototype.offset,hi.prototype.normalize=hi.prototype.normalize,hi.prototype.computeBoundsWithoutOrigin=hi.prototype.ix,hi.prototype.equalsApprox=hi.prototype.Xa,hi.className="Geometry",hi.j=new qt(hi,"Line",0),hi.u=new qt(hi,"Rectangle",1),hi.F=new qt(hi,"Ellipse",2),hi.o=new qt(hi,"Path",3),hi.V=null,hi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",hi.className="Geometry",hi.stringify=hi.ia,hi.fillPath=hi.nb,hi.parse=hi.parse,hi.Line=hi.j,hi.Rectangle=hi.u,hi.Ellipse=hi.F,hi.Path=hi.o;function Rs(a,y,x,E,b){Rr(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 On,this.sr=this.pl.Ja,this.fw=null}Rs.prototype.copy=function(){var a=new Rs;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},Me=Rs.prototype,Me.Xa=function(a){if(!(a instanceof Rs&&Ut.B(this.startX,a.startX)&&Ut.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},Me.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},Me.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},Me.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},Me.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},Me.add=function(a){return this.pl.add(a),this},Me.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,ne=b,re=this.segments.s,ae=re.length,le=0;le<ae;le++){var ce=re[le];switch(ce.type){case ws:z=ce.endX,ne=ce.endY,E=ce.endX,b=ce.endY;break;case pa:if(Ut.Yb(E,b,ce.endX,ce.endY,x,a,y))return!0;E=ce.endX,b=ce.endY;break;case ol:if(Ut.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 Ye:if(Ut.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 ft:var me=ce.type===rt?gl(ce,this):Nl(ce,this,E,b),Ce=me.length,Fe=ce.type===rt?ce.centerX:ce.endX,De=ce.type===rt?ce.centerY:ce.endY;if(Ce===0){if(Ut.Yb(E,b,Fe,De,x,a,y))return!0;E=Fe,b=De;break}for(Fe=null,De=0;De<Ce;De++)if(Fe=me[De],De===0&&Ut.Yb(E,b,Fe[0],Fe[1],x,a,y)||Ut.cs(Fe[0],Fe[1],Fe[2],Fe[3],Fe[4],Fe[5],Fe[6],Fe[7],.5,a,y,x))return!0;Fe!==null&&(E=Fe[6],b=Fe[7]);break;default:It("Unknown Segment type: "+ce.type)}if(ce.isClosed&&(E!==z||b!==ne)&&Ut.Yb(E,b,z,ne,x,a,y))return!0}return!1},Pt.Object.defineProperties(Rs.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&&gn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&gn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&gn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&gn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&gn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&gn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Rs.prototype.add=Rs.prototype.add,Rs.prototype.equalsApprox=Rs.prototype.Xa,Rs.className="PathFigure";function No(a,y,x,E,b,z,ne,re){Rr(this),a===void 0&&(a=pa),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===ft?(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}No.prototype.copy=function(){var a=new No;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},Me=No.prototype,Me.Xa=function(a){if(!(a instanceof No)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ws:case pa:return Ut.B(this.endX,a.endX)&&Ut.B(this.endY,a.endY);case ol:return Ut.B(this.endX,a.endX)&&Ut.B(this.endY,a.endY)&&Ut.B(this.point1X,a.point1X)&&Ut.B(this.point1Y,a.point1Y)&&Ut.B(this.point2X,a.point2X)&&Ut.B(this.point2Y,a.point2Y);case Ye:return Ut.B(this.endX,a.endX)&&Ut.B(this.endY,a.endY)&&Ut.B(this.point1X,a.point1X)&&Ut.B(this.point1Y,a.point1Y);case rt:return Ut.B(this.startAngle,a.startAngle)&&Ut.B(this.sweepAngle,a.sweepAngle)&&Ut.B(this.centerX,a.centerX)&&Ut.B(this.centerY,a.centerY)&&Ut.B(this.radiusX,a.radiusX)&&Ut.B(this.radiusY,a.radiusY);case ft:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ut.B(this.xAxisRotation,a.xAxisRotation)&&Ut.B(this.endX,a.endX)&&Ut.B(this.endY,a.endY)&&Ut.B(this.radiusX,a.radiusX)&&Ut.B(this.radiusY,a.radiusY);default:return!1}},Me.qb=function(a){a.classType===No&&(this.type=a)},Me.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ws:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case pa:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ol: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 Ye: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 ft: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":"")},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.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=Ut.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var ne=Hr.alloc();ne.reset(),x<E?ne.scale(1,E/x):ne.scale(x/E,1),hi.Ha(z,ne),Hr.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 Nl(a,y,x,E){function b(ze,ut,qe,wt){return(ze*wt<ut*qe?-1:1)*Math.acos((ze*qe+ut*wt)/(Math.sqrt(ze*ze+ut*ut)*Math.sqrt(qe*qe+wt*wt)))}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,ae=a.isClockwiseArc,le=a.Dc,ce=a.Ec,me=Math.cos(ne),Ce=Math.sin(ne),Fe=me*(x-le)/2+Ce*(E-ce)/2;ne=-Ce*(x-le)/2+me*(E-ce)/2;var De=Fe*Fe/(y*y)+ne*ne/(z*z);return 1<De&&(y*=Math.sqrt(De),z*=Math.sqrt(De)),De=(re===ae?-1:1)*Math.sqrt((y*y*z*z-y*y*ne*ne-z*z*Fe*Fe)/(y*y*ne*ne+z*z*Fe*Fe)),isNaN(De)&&(De=0),re=De*y*ne/z,De=De*-z*Fe/y,isNaN(re)&&(re=0),isNaN(De)&&(De=0),x=(x+le)/2+me*re-Ce*De,E=(E+ce)/2+Ce*re+me*De,ce=b(1,0,(Fe-re)/y,(ne-De)/z),me=(Fe-re)/y,le=(ne-De)/z,Fe=(-Fe-re)/y,re=(-ne-De)/z,ne=b(me,le,Fe,re),Fe=(me*Fe+le*re)/(Math.sqrt(me*me+le*le)*Math.sqrt(Fe*Fe+re*re)),-1>=Fe?ne=Math.PI:1<=Fe&&(ne=0),!ae&&0<ne&&(ne-=2*Math.PI),ae&&0>ne&&(ne+=2*Math.PI),ae=y>z?1:y/z,Fe=y>z?z/y:1,y=Ut.jx(0,0,y>z?y:z,ce,ce+ne,!0),z=Hr.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(ae,Fe),hi.Ha(y,z),Hr.free(z),a.ae=y,a.ae}Pt.Object.defineProperties(No.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&&gn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&gn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&gn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&gn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&gn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&gn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&gn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&gn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&gn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&nn(a,">= zero",No,"radiusX"),this._isFrozen&&gn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&nn(a,">= zero",No,"radiusY"),this._isFrozen&&gn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&gn(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&&gn(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&&gn(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&&gn(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&&gn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),No.prototype.equalsApprox=No.prototype.Xa;var ws=new qt(No,"Move",0),pa=new qt(No,"Line",1),ol=new qt(No,"Bezier",2),Ye=new qt(No,"QuadraticBezier",3),rt=new qt(No,"Arc",4),ft=new qt(No,"SvgArc",4);No.className="PathSegment",No.Move=ws,No.Line=pa,No.Bezier=ol,No.QuadraticBezier=Ye,No.Arc=rt,No.SvgArc=ft;function rn(){this.H=null,this.xu=new $e(0,0).freeze(),this.mt=new $e(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}rn.prototype.copy=function(){var a=new rn;return this.clone(a)},rn.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},rn.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},rn.prototype.So=function(a,y){var x=this.diagram;return x===null||Wd(x,a,y),y},rn.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Wd(x,a,y),y.assign(x.Ps(y))),y},Pt.Object.defineProperties(rn.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}}}),rn.prototype.getMultiTouchDocumentPoint=rn.prototype.Bz,rn.prototype.getMultiTouchViewPoint=rn.prototype.So,rn.className="InputEvent";function ln(){this.H=null,this.xa="",this.ar=this.Lr=null}ln.prototype.copy=function(){var a=new ln;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},ln.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Pt.Object.defineProperties(ln.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}}}),ln.className="DiagramEvent";function Bn(){this.Fm=ni,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Bn.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Bn.prototype.copy=function(){var a=new Bn;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},Bn.prototype.qb=function(a){a.classType===Bn&&(this.change=a)},Bn.prototype.toString=function(){var a="";return a=this.change===In?a+"* ":this.change===ni?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===In?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Zn(this.object)),this.oldValue!==null&&(a+=" old: "+Zn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Zn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Bn.prototype.I=function(a){return a?this.oldValue:this.newValue},Bn.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Bn.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Bn.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Bn.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Bn.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Pt.Object.defineProperties(Bn.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===In&&(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}}}),Bn.prototype.redo=Bn.prototype.redo,Bn.prototype.canRedo=Bn.prototype.canRedo,Bn.prototype.undo=Bn.prototype.undo,Bn.prototype.canUndo=Bn.prototype.canUndo,Bn.prototype.getParam=Bn.prototype.Dz,Bn.prototype.getValue=Bn.prototype.I,Bn.prototype.clear=Bn.prototype.clear;var In=new qt(Bn,"Transaction",-1),ni=new qt(Bn,"Property",0),ai=new qt(Bn,"Insert",1),xi=new qt(Bn,"Remove",2);Bn.className="ChangedEvent",Bn.Transaction=In,Bn.Property=ni,Bn.Insert=ai,Bn.Remove=xi;function _i(){this.o=new On().freeze(),this.xa="",this.j=!1}_i.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},_i.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()},_i.prototype.canUndo=function(){return this.isComplete},_i.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()}},_i.prototype.canRedo=function(){return this.isComplete},_i.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()}},_i.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Si,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===ni&&E.object){var b=y.get(E.object);b||(b=new Si,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()}},Pt.Object.defineProperties(_i.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}}}),_i.prototype.optimize=_i.prototype.ak,_i.prototype.redo=_i.prototype.redo,_i.prototype.canRedo=_i.prototype.canRedo,_i.prototype.undo=_i.prototype.undo,_i.prototype.canUndo=_i.prototype.canUndo,_i.prototype.clear=_i.prototype.clear,_i.className="Transaction";function yi(){this.Pt=new Dn,this.Jd=!1,this.u=new On().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new On().freeze(),this.hl=new On,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}yi.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},yi.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},yi.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Me=yi.prototype,Me.Xw=function(a){this.Pt.add(a)},Me.Rx=function(a){this.Pt.remove(a)},Me.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},Me.eb=function(a){return a===void 0&&(a=""),zi(this,!0,a)},Me.Kf=function(){return zi(this,!1,"")};function zi(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&ui("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}Me.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()}},yi.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},yi.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){ui("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},yi.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},yi.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){ui("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},yi.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Bn;for(E.change=In,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},yi.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new _i);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||ui("Change not within a transaction: "+x.toString()))}},yi.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},Pt.Object.defineProperties(yi.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}}}),yi.prototype.handleChanged=yi.prototype.Tu,yi.prototype.redo=yi.prototype.redo,yi.prototype.undo=yi.prototype.undo,yi.prototype.canUndo=yi.prototype.canUndo,yi.prototype.discardHistoryAfterIndex=yi.prototype.lx,yi.prototype.rollbackTransaction=yi.prototype.Kf,yi.prototype.commitTransaction=yi.prototype.eb,yi.prototype.startTransaction=yi.prototype.Ea,yi.prototype.removeModel=yi.prototype.Rx,yi.prototype.addModel=yi.prototype.Xw,yi.prototype.clear=yi.prototype.clear,yi.className="UndoManager";function mi(){Rr(this),this.H=gc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new rn,this.Zr=-1}mi.prototype.toString=function(){return this.name!==""?this.name+" Tool":Yn(this.constructor)},mi.prototype.updateAdornments=function(){},mi.prototype.canStart=function(){return this.isEnabled},mi.prototype.doStart=function(){},mi.prototype.doActivate=function(){this.isActive=!0},mi.prototype.doDeactivate=function(){this.isActive=!1},mi.prototype.doStop=function(){},mi.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},mi.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},mi.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},mi.prototype.doMouseMove=function(){},mi.prototype.doMouseUp=function(){this.stopTool()},mi.prototype.doMouseWheel=function(){},mi.prototype.canStartMultiTouch=function(){return!0},mi.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,$e.allocAt(NaN,NaN)),E=y.So(1,$e.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}$e.free(x),$e.free(E)},mi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,$e.allocAt(NaN,NaN)),E=y.So(1,$e.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 $e((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}$e.free(x),$e.free(E)},mi.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},mi.prototype.doKeyUp=function(){},mi.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},mi.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},mi.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Dr?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||(Dr?y.meta:y.control)||y.shift||a.clearSelection()}},mi.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,dr(a,E,x),E.handled};function dr(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)}}}mi.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}},mi.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},mi.prototype.doCurrentObjectChanged=function(){},mi.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===no&&!y.shift||b===hr&&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===no&&y.shift||b===hr&&!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)}}},mi.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},mi.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=pi(function(){x.doWaitAfter(E)},a)},mi.prototype.cancelWaitAfter=function(){this.Zr!==-1&>.clearTimeout(this.Zr),this.Zr=-1},mi.prototype.doWaitAfter=function(){},mi.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ko);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},mi.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},Pt.Object.defineProperties(mi.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}}}),mi.prototype.startTransaction=mi.prototype.Ea,mi.className="Tool";function Qn(){mi.call(this),this.name="ToolManager",this.hb=new On,this.ob=new On,this.Hb=new On,this.F=this.V=850,this.o=new oi(2,2).ja(),this.Ha=5e3,this.ia=hr,this.u=ao,this.Mp=this.j=null,this.zj=-1}Kt(Qn,mi),Qn.prototype.initializeStandardTools=function(){},Qn.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ko&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Qn.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===so&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===io){y.bubbles=!0;return}if(this.gestureBehavior===so)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===hr?this.mouseWheelBehavior=no:this.mouseWheelBehavior===no&&(this.mouseWheelBehavior=hr)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Qn.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===io){y.bubbles=!0;return}if(this.gestureBehavior===so)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)}Qn.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ko&&(y===a||y.rg(a))||this.hideToolTip()},Qn.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()))},Qn.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)},Qn.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 Ko)||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()},Qn.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ko){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 wr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(gt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=pi(function(){b.hideToolTip()},a)}},Qn.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}},Qn.prototype.hideToolTip=function(){this.zj!==-1&&(gt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ko?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof wr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Qn.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()},Qn.prototype.doMouseWheel=function(){this.standardMouseWheel()},Qn.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Qn.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Qn.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},Qn.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},Qn.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)},Pt.Object.defineProperties(Qn.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 Ko?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}}}),Qn.prototype.replaceStandardTool=Qn.prototype.gb;var hr=new qt(Qn,"WheelScroll",0),no=new qt(Qn,"WheelZoom",1),Zr=new qt(Qn,"WheelNone",2),ao=new qt(Qn,"GestureZoom",3),so=new qt(Qn,"GestureCancel",4),io=new qt(Qn,"GestureNone",5);Qn.className="ToolManager",Qn.WheelScroll=hr,Qn.WheelZoom=no,Qn.WheelNone=Zr,Qn.GestureZoom=ao,Qn.GestureCancel=so,Qn.GestureNone=io;function qi(){mi.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 $e(NaN,NaN),this.Fr=new $e,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Dn().freeze(),this.ia=new se,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var aa;Kt(qi,mi),qi.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},qi.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},qi.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,(Dr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},qi.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),tn=null,this.isActive=!0,this.tl.set(a.position),$o(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&&Al(a),ch(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,tn=this,pn=this.diagram,this.doSimulatedDragOut()))};function $o(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof li?(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 Di,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}qi.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},qi.prototype.Pd=function(a){return a===void 0?new Kd(Fi):this.isGridSnapEnabled?new Kd(new $e(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Kd(a.copy())},qi.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ma(this),Ru(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<aa.count){for(var y=aa,x=y.length,E=0;E<x;E++){var b=y.M(E);vs(b),ka(b),ma(b),b.diagram.ug()}y.clear()}vs(this),this.tl.h(NaN,NaN),pn!==null&&(pn.currentCursor=""),tn=pn=null,ka(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),od(a,!0)},qi.prototype.stopTransaction=function(){var a=this.diagram,y=mi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ma(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,us(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Va(){var a=tn;ka(a),wa(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}qi.prototype.doCancel=function(){ka(this),wa(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},qi.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},qi.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Wa(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 Si,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 li&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,$o(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 ka(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 li&&(x.value.point=new $e(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function vs(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 La(a,y,x){var E=a.diagram,b=a.startPoint,z=$e.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),$e.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Al(E),E.hk())}qi.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 li&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),Ph(E,-b.x,-b.y)}y.bd()}}function Ta(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Oa(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=us(a,b,E),!a.isActive&&tn===null)return;var re=E!==null?E.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Or)){var ae=x.mouseDragOver;ae!==null&&(ae(b),ne=!0)}if(!a.isActive&&tn===null||(a.doDragOver(y,E),!a.isActive&&tn===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)}qi.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 Ko||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},qi.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 us(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],ae=re.mouseDragLeave;if(ae!==null&&(ae(y,re,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&tn===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=ys(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 ys(a){var y=a.panel;return y!==null?y:a instanceof er&&!(a instanceof Or)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function $a(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=$e.alloc();var z=1/0,ne=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var ae=re.ga(yo,a);ae=y.Bf(ae),ae<z&&(ne=re,z=ae)}}return $e.free(a),ne}function Oa(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=$a(a,x.i(0),!1),z!==null&&(ne=z.part));var re=null,ae=null;x.toNode===null&&(re=$a(a,x.i(x.pointsCount-1),!0),re!==null&&(ae=re.part)),b.isValidLink(ne,z,ae,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=ae,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)):ur(b,ne,z,ae,re):ur(b,null,null,null,null)}}}}qi.prototype.doDragOver=function(){};function Hs(a,y){var x=a.diagram;a.dragsLink&&Oa(a,!0),ma(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;dl(a,b,z),z=ys(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||tn!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Ci&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||tn!==null){for(a=An.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Ci&&st(x,E,a);An.free(a)}}}function dl(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Or||(x=a.mouseDrop,x!==null&&x(y))}function st(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 li},!0,function(b){return b instanceof li},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}qi.prototype.doDropOnto=function(){},qi.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()?(Wa(this,!1),ch(a,this.copiedParts),La(this,this.copiedParts,!1),Ru(a,this.copiedParts)):this.mayMove()?(ka(this),La(this,this.draggedParts,!0)):this.mayDragOut()?(Wa(this,!1),La(this,this.copiedParts,!1)):ka(this),Ta(this,a.lastInput.documentPoint))}},qi.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?(ka(this),Wa(this,!0),ch(a,this.copiedParts),La(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,ka(this),this.mayMove()&&(La(this,this.draggedParts,!0),Ta(this,a.lastInput.documentPoint))),this.Ym=!0,Hs(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)}}},qi.prototype.simulatedMouseMove=function(a,y,x){if(tn===null)return!1;var E=tn.diagram;x instanceof cn||(x=null);var b=pn;return x!==b&&(b!==null&&b!==E&&(b.ug(),tn.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),pn=x,x!==null&&x!==E&&(Va(),b=x.toolManager.findTool("Dragging"),b!==null&&(aa.contains(b)||aa.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)},qi.prototype.simulatedMouseUp=function(a,y,x){if(tn===null)return!1;var E=pn,b=tn.diagram;if(x===null)return tn.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),tn.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;pn=x,E=x.toolManager.findTool("Dragging"),E!==null&&(Va(),aa.contains(E)||aa.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 $e),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=tn,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 Ci&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}qi.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Dr?!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())},qi.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())},qi.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())},qi.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},qi.prototype.Az=function(){return tn},qi.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=tn;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},qi.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Tl(a),a.animationManager.Cc(),a=tn,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},qi.prototype.doSimulatedDragLeave=function(){var a=tn;a!==null&&a.doSimulatedDragOut(),this.doCancel()},qi.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=tn;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;_t(this,y.draggedParts.Lf(),!1,a.firstInput),La(this,this.copiedParts,!1),Ta(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},qi.prototype.doSimulatedDrop=function(){var a=this.diagram,y=tn;if(y!==null){var x=y.diagram;if(y.Ym=!0,ka(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),_t(this,y.draggedParts.Lf(),!0,a.lastInput),La(this,this.copiedParts,!1);var E=new Dn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Hs(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 _t(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=An.alloc();b=E=1/0;for(var ne=-1/0,re=-1/0,ae=y.iterator;ae.next();){var le=ae.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,An.free(z),z=a.Fr,ne=new Si,re=$e.alloc(),ae=y.iterator;ae.next();)le=ae.value,le instanceof li&&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()&&(ae=x.I(le),ae!==null&&(le=le.location,re.h(z.x-(E-le.x),z.y-(b-le.y)),ae.location=re,ae.Va(),ne.add(ae,a.Pd(re))));$e.free(re),a.copiedParts=ne,$o(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)}}}qi.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},qi.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new $e},Pt.Object.defineProperties(qi.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}}}),qi.prototype.getDraggingSource=qi.prototype.Az;var tn=null,pn=null;qi.className="DraggingTool",aa=new On,Gn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Qn.prototype.doCancel=function(){tn!==null&&tn.doCancel(),mi.prototype.doCancel.call(this)};function un(){mi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new li,y=new Gr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Gr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Ci,y=new Gr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Xo,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Ci,y=new Gr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Xo,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 Si,this.Of=this.gj=this.Pf=null}Kt(un,mi),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=yo,z=$e.alloc(),x.location=y.ga(yo,z),$e.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=Xo,y.fromSpot=ga,y.toSpot=ga),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 Ci){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},un.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Ci))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Ci)&&(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 Ci){var ae=ne.ga(yo,$e.alloc()),le=x.x-ae.x,ce=x.y-ae.y;$e.free(ae),ae=le*le+ce*ce,ae<E&&(le=this.validPortsCache.I(ne),le!==null?le&&(y=ne,E=ae):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=ae):this.validPortsCache.add(ne,!1))}}return y!==null&&(x=y.part,x instanceof Ci&&(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 Ci))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Ci))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 Dn;return E.add(a),Wn(this,x,y,E)};function Wn(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),Wn(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),Wn(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!jn(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!jn(this,a,y,x,!0)}if(E===up)return a===y?a=!0:(E=new Dn,E.add(y),a=zn(this,E,a,y,x)),!a;if(E===cp)return!jn(this,a,y,x,!1);if(E===dp)return a===y?a=!0:(E=new Dn,E.add(y),a=fi(this,E,a,y,x)),!a}return!0};function jn(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&&jn(a,ne,x,E,b)))return!0}return!1}function zn(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&&zn(a,y,ne,E,b)))return!0}return!1}function fi(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&&fi(a,y,re,E,b))return!0}}return!1}Pt.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 $n(){un.call(this),this.name="Linking",this.V={},this.F=null,this.K=ci,this.Xd=null}Kt($n,un),$n.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},$n.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Ci)))return null;var x=this.direction;if(x===ci||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===ci||x===Oi)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},$n.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Ci&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Ci&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},$n.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()},$n.prototype.doStop=function(){un.prototype.doStop.call(this),this.startObject=null},$n.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 Ci&&(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)}}},$n.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof li)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)},$n.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},$n.prototype.doNoLink=function(){},Pt.Object.defineProperties($n.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 ci=new qt($n,"Either",0),Ri=new qt($n,"ForwardsOnly",0),Oi=new qt($n,"BackwardsOnly",0);$n.className="LinkingTool",$n.Either=ci,$n.ForwardsOnly=Ri,$n.BackwardsOnly=Oi;function Di(){un.call(this),this.name="Relinking";var a=new Gr;a.figure="Diamond",a.desiredSize=na,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Gr,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 An}Kt(Di,un),Di.prototype.updateAdornments=function(a){if(a!==null&&a instanceof li){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)}},Di.prototype.makeAdornment=function(a,y){var x=new Ko;return x.type=ii.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Di.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},Di.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 Ko&&x.adornedPart instanceof li))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Ro),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ro),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},Di.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}},Di.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()},Di.prototype.doStop=function(){un.prototype.doStop.call(this),this.handle=null},Di.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 Ci&&(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()}}},Di.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},Di.prototype.doNoRelink=function(){};function ur(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)}Pt.Object.defineProperties(Di.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 Ko))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Di.className="RelinkingTool",Gn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Gn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ki(){mi.call(this),this.name="LinkReshaping";var a=new Gr;a.figure="Rectangle",a.desiredSize=ya,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Gr,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 $e,this.Yq=new On}Kt(ki,mi),ki.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:mr},ki.prototype.om=function(a,y){a.reshapingBehavior=y},ki.prototype.updateAdornments=function(a){if(a!==null&&a instanceof li){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)}},ki.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new Ko,b.type=ii.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 ae=this.makeResegmentHandle(a,re);ae!==null&&(ae.segmentIndex=re,ae.segmentFraction=.5,ae.fromMaxLinks=999,b.add(ae))}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){ae=y.i(x);var le=y.i(x+1);Ut.B(ae.x,le.x)&&Ut.B(ae.y,le.y)&&(le=y.i(x-1)),Ut.B(ae.x,le.x)?(this.om(re,lo),re.cursor="n-resize"):Ut.B(ae.y,le.y)&&(this.om(re,br),re.cursor="w-resize")}else ne===z-1&&E?(ae=y.i(z-1),le=y.i(z),Ut.B(ae.x,le.x)&&Ut.B(ae.y,le.y)&&(ae=y.i(z+1)),Ut.B(ae.x,le.x)?(this.om(re,lo),re.cursor="n-resize"):Ut.B(ae.y,le.y)&&(this.om(re,br),re.cursor="w-resize")):ne!==z&&(this.om(re,Po),re.cursor="move");b.add(re)}b.adornedObject=a}return b},ki.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ki.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ki.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},ki.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 li){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}}},ki.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ki.prototype.stopTransaction=function(){var a=this.diagram,y=mi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ki.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ki.prototype.getResegmentingPoint=function(){return this.handle.ga(yo)},ki.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ki.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&&(Sr(this,ne,E,b,z,!0)||Sr(this,ne,E,b,z,!1))){var re=y.points.copy();Sr(this,ne,E,b,z,!0)?(re.cd(x-2,new $e(ne.x,(z.y+ne.y)/2)),re.cd(x+1,new $e(z.x,(z.y+ne.y)/2))):(re.cd(x-2,new $e((z.x+ne.x)/2,ne.y)),re.cd(x+1,new $e((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&&(Sr(this,E,b,z,ne,!0)||Sr(this,E,b,z,ne,!1))&&(re=y.points.copy(),Sr(this,E,b,z,ne,!0)?(re.cd(x-1,new $e(E.x,(E.y+ne.y)/2)),re.cd(x+2,new $e(ne.x,(E.y+ne.y)/2))):(re.cd(x-1,new $e((E.x+ne.x)/2,E.y)),re.cd(x+2,new $e((E.x+ne.x)/2,ne.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ne=$e.alloc(),Ut.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()),$e.free(ne)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Sr(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}ki.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===lo?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===br&&(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===lo?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===br&&(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);Ut.B(z.x,b.x)&&Ut.B(b.y,ne.y)?(Ut.B(z.x,y.i(E-2).x)&&!Ut.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),Ut.B(ne.y,y.i(E+2).y)&&!Ut.B(ne.x,y.i(E+2).x)?y.m(E+1,ne.x,a.y):y.L(E+1,ne.x,a.y)):Ut.B(z.y,b.y)&&Ut.B(b.x,ne.x)?(Ut.B(z.y,y.i(E-2).y)&&!Ut.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),Ut.B(ne.x,y.i(E+2).x)&&!Ut.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):Ut.B(z.x,b.x)&&Ut.B(b.x,ne.x)?(Ut.B(z.x,y.i(E-2).x)&&!Ut.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),Ut.B(ne.x,y.i(E+2).x)&&!Ut.B(ne.y,y.i(E+2).y)?y.m(E+1,a.x,ne.y):y.L(E+1,a.x,ne.y)):Ut.B(z.y,b.y)&&Ut.B(b.y,ne.y)&&(Ut.B(z.y,y.i(E-2).y)&&!Ut.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),Ut.B(ne.y,y.i(E+2).y)&&!Ut.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(yo,$e.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,$e.alloc()),y.L(0,E.x,E.y),$e.free(z),$e.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(yo,$e.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,$e.alloc()),y.L(y.pointsCount-1,a.x,a.y),$e.free(x),$e.free(a));y.zf()},ki.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Po:return a;case lo:return new $e(y.i(x).x,a.y);case br:return new $e(a.x,y.i(x).y);default:case mr:return y.i(x)}},Pt.Object.defineProperties(ki.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 Ko))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}}}),ki.prototype.setReshapingBehavior=ki.prototype.om,ki.prototype.getReshapingBehavior=ki.prototype.Ru;var mr=new qt(ki,"None",0),br=new qt(ki,"Horizontal",1),lo=new qt(ki,"Vertical",2),Po=new qt(ki,"All",3);ki.className="LinkReshapingTool",ki.None=mr,ki.Horizontal=br,ki.Vertical=lo,ki.All=Po,Gn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Mr(){mi.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 Gr;a.alignmentFocus=yo,a.figure="Rectangle",a.desiredSize=ya,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new $e,this.Dw=new oi,this.Tn=new $e,this.rt=new oi(0,0),this.qt=new oi(1/0,1/0),this.pt=new oi(1,1)}Kt(Mr,mi),Mr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof li)){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 Ko,y.type=ii.Spot,y.locationSpot=yo;var x=new $l;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ua)),y.add(this.makeHandle(a,Sl)),y.add(this.makeHandle(a,xl)),y.add(this.makeHandle(a,Ll)),y.add(this.makeHandle(a,ms)),y.add(this.makeHandle(a,js)),y.add(this.makeHandle(a,Is)),y.add(this.makeHandle(a,Es))}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=yo),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 ii)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=mi.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,$e.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),$e.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,$e.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),$e.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 Or){var E=new On;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=yo);var ne=this.adornedObject.naturalBounds,re=ne.x,ae=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=$e.alloc(),Ut.No(a.x,a.y,re,ae,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-ae,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=ae+.5*(ce-ae-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-ae,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=ae+.5*(ce-ae-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-ae,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))),$e.free(Ce),a},Mr.prototype.computeReshape=function(){var a=Jn;return this.adornedObject instanceof Gr&&(a=Av(this.adornedObject)),!(a===Wi||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},Pt.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 Ko))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 Ko)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",Gn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Wr(){mi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new $e,this.ue=null;var a=new Gr;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 $e(NaN,NaN),this.u=0,this.F=50}Kt(Wr,mi),Wr.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)}},Wr.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ko,y.type=ii.Position,y.locationSpot=yo;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},Wr.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},Wr.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)},Wr.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(yo)},Wr.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)},Wr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new $e(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Wr.prototype.stopTransaction=function(){var a=this.diagram,y=mi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Wr.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Wr.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Wr.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()},Wr.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()}},Wr.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},Pt.Object.defineProperties(Wr.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 Ko))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 Ko)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}}}),Wr.className="RotatingTool",Gn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Wo(){mi.call(this),this.name="ClickSelecting"}Kt(Wo,mi),Wo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Wo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Wo.className="ClickSelectingTool";function Ar(){mi.call(this),this.name="Action",this.pk=null}Kt(Ar,mi),Ar.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},Ar.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()},Ar.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))}},Ar.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()},Ar.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())},Ar.prototype.doStop=function(){this.pk=null},Ar.className="ActionTool";function _r(){mi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new $e(0,0)}Kt(_r,mi),_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 er)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=$e.allocAt(a.x,a.y);this.isGridSnapEnabled&&mf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),$e.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},Pt.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(){mi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new er;a.layerName="Tool",a.selectable=!1;var y=new Gr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Kt(Lr,mi),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 An(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),Dr?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 On,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)}},Pt.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 nr(){mi.call(this),this.name="Panning",this.Xt=new $e,this.xy=new $e,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(gt.document,"scroll",a.Kw,!1),a.stopTool()}}Kt(nr,mi),nr.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())},nr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(gt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},nr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},nr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},nr.prototype.doMouseMove=function(){this.move()},nr.prototype.doMouseUp=function(){this.move(),this.stopTool()},nr.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)}},Pt.Object.defineProperties(nr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),nr.className="PanningTool",Gn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Gn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Gn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Gn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Gn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function wr(){this.F=this.u=this.j=this.o=null}Pt.Object.defineProperties(wr.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}}}),wr.className="HTMLInfo";function Qr(a,y,x){this.text=a,this.hx=y,this.visible=x}Qr.className="ContextMenuButtonInfo";function wo(){mi.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new $e,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Kt(wo,mi);function Eo(a){var y=new wr;y.show=function(b,z,ne){ne.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},qo=y,a.tu=function(){a.stopTool()},y=Mn("div");var x=Mn("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=Mn("style");gt.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",Cr,!1),E.addEventListener(y,"selectstart",Cr,!1),E.addEventListener(x,"contextmenu",Cr,!1)),y.className="goCXforeground",x.className="goCXbackground",gt.document.body&&(gt.document.body.appendChild(y),gt.document.body.appendChild(x)),zo=y,ha=x,qa=!0}function Cr(a){return a.preventDefault(),!1}wo.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)},wo.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},wo.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},wo.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof cn||(a instanceof Gt?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},wo.prototype.doActivate=function(){},wo.prototype.doMouseDown=function(){if(mi.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ko){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Zo(this)},wo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ko){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Zo(this)};function Zo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof wr||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(Jo(a,!0),a.isActive||a.stopTool())}wo.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Jo(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=qo,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof Gt?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ko&&!a.currentContextMenu.visible&&a.stopTool()}}wo.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},wo.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ko){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 wr&&a.show(y,x,this);this.currentContextMenu=a},wo.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}},wo.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ko?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof wr&&(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 On;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}wo.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=ea(this)),zo.innerHTML="",ha.addEventListener("pointerdown",this.tu,!1);var y=this,x=Mn("ul");x.className="goCXul",zo.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=Mn("li"),z.className="goCXli";var ne=Mn("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)}}zo.style.display="block",ha.style.display="block"},wo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===qo){zo.style.display="none",ha.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(ha,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Pt.Object.defineProperties(wo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ko?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return qa===!1&&qo===null&&fs&&Eo(this),qo},set:function(a){a===null&&(qa=!0),qo=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var qo=null,qa=!1,ha=null,zo=null;wo.className="ContextMenuTool",Gn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function po(){mi.call(this),this.name="TextEditing",this.Zh=new Ca,this.ia=null,this.V=ho,this.vj=null,this.qa=Hi,this.u=1,this.F=!0,this.o=null,this.j=new wr,this.kt=null,Lo(this,this.j)}Kt(po,mi);function Lo(a,y){if(fs){var x=Mn("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(So)):b==="Tab"?(a.acceptText(ko),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===kr&&(a.qa=Vo),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===al)x.style.border="3px solid red",x.focus();else{var ne=E.ga(yo),re=b.position,ae=b.scale,le=E.Df()*ae;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var ce=E.naturalBounds.width*le+6,me=E.naturalBounds.height*le+2,Ce=(ne.x-re.x)*ae;ne=(ne.y-re.y)*ae,re=E.verticalAlignment,ae=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*le,me=re.y*me-re.y*ae+re.offsetY-(.5*me-.5*ae)-ae/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||Pl&&Pl!==this&&(Pl.acceptText(as),Pl&&Pl!==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===ho&&!y.isSelected||this.starting===Yr&&2>a.lastInput.clickCount)):!1},po.prototype.doStart=function(){Pl=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=kr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new An(this.textBlock.ga(Ua),this.textBlock.ga(xl));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(as)},po.prototype.acceptText=function(a){switch(a){case as:this.qa===Ws?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===kr||this.qa===al||this.qa===Vo)&&(this.qa=sa,Xa(this));break;case Ia:case So:case ko:(So!==a||this.textBlock.isMultiline!==!0)&&(this.qa===kr||this.qa===al||this.qa===Vo)&&(this.qa=sa,Xa(this))}};function Xa(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=Ws,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=al,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(){Pl=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},Pt.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 Ia=new qt(po,"LostFocus",0),as=new qt(po,"MouseDown",1),ko=new qt(po,"Tab",2),So=new qt(po,"Enter",3),jo=new qt(po,"SingleClick",0),ho=new qt(po,"SingleClickSelected",1),Yr=new qt(po,"DoubleClick",2),Hi=new qt(po,"StateNone",0),kr=new qt(po,"StateActive",1),Vo=new qt(po,"StateEditing",2),sa=new qt(po,"StateValidating",3),al=new qt(po,"StateInvalid",4),Ws=new qt(po,"StateValidated",5),Pl=null;po.className="TextEditingTool",po.LostFocus=Ia,po.MouseDown=as,po.Tab=ko,po.Enter=So,po.SingleClick=jo,po.SingleClickSelected=ho,po.DoubleClick=Yr,po.StateNone=Hi,po.StateActive=kr,po.StateEditing=Vo,po.StateValidating=sa,po.StateInvalid=al,po.StateValidated=Ws,Gn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function Na(a){Ds||(Ja(),Ds=!0),this.H=gc,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Xs,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Dn,this.ce=new ts,this.ce.Yd=this,this.Ei=new Dn,this.pu=new Dn,this.Sr=new Dn,this.pr=new Dn,a&&Object.assign(this,a)}Na.prototype.Xe=function(a){this.H=a},Na.prototype.canStart=function(){return!0};function _a(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),sl(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===Xs?(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===Fu&&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(),Cl(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),gt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Al(x),Od(x),a.zb=!1,y.start(),y.bc&&(ss(a),x.Ya(),fc(y,0),Tl(x,!0),bs(a),x.R("AnimationStarting",a)))}))}}function Ys(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function wl(a,y,x,E){a.isTicking||Ys(a)||y instanceof li&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Me=Na.prototype,Me.fv=function(a){return this.ce.fv(a)},Me.Xu=function(a){return this.ce.Xu(a)};function Za(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 ae=re.key;if(ae instanceof Gt&&ae.diagram!==null||ae instanceof cn){re=!0;break e}}re=!1}re?mu(ne,!1):ne.Xk=!0}}b.pu.clear(),b.bc!==!1&&(ss(b),Tl(b.H),bs(b)),gt.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),gt.requestAnimationFrame(function(){x()}))}function es(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ss(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 bs(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Me.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(),Cl(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Cl(y,this.H)},Me.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))},Me.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),cs(this,a))},Me.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Cs(this.ce,y,"position",y.position,y.position),cs(this,a))};function Us(a,y,x){!a.zb||y.D(x)||Ys(a)||(a.H.pi||(y=x.copy()),Cs(a.ce,a.H,"position",y,x))}function va(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function cs(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function qs(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 ae=y[0],le=y[1],ce=y[2];return y=y[3],re===0||re===100?(z=ae,ne=le):(ce===0||ce===100)&&(ae=z,le=ne),180<Math.abs(ae-z)&&(ae>z?z+=360:ae+=360),z=b(x,z,ae-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 Ja(){function a(x,E,b,z,ne,re){x.position=new $e(z(ne,E.x,b.x-E.x,re),z(ne,E.y,b.y-E.y,re))}var y=new Si;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 $e(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 $e(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 $e(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 ae=x.actualBounds,le=b.actualBounds;b=le.x+le.width/2-ae.width/2,ae=le.y+le.height/2-ae.height/2,ne<re?x.mm(z(ne,E.x,b-E.x,re),z(ne,E.y,ae-E.y,re),!1):x.position=new $e(z(ne,E.x,b-E.x,re),z(ne,E.y,ae-E.y,re))}),y.add("desiredSize",function(x,E,b,z,ne,re){x.desiredSize=new An(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=qs(E,b,ne,re,z)}),y.add("stroke",function(x,E,b,z,ne,re){x.stroke=qs(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=qs(E,b,ne,re,z)}),y.add("areaBackground",function(x,E,b,z,ne,re){x.areaBackground=qs(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)}),To=y}Pt.Object.defineProperties(Na.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&&nn(a,">= 1",Na,"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}}}),Na.prototype.stopAnimation=Na.prototype.Cc;var To=null,Ds=!1,Xs=new qt(Na,"Default",1),Fu=new qt(Na,"AnimateLocations",2),su=new qt(Na,"None",3);Na.className="AnimationManager",Na.defineAnimationEffect=function(a,y){Ds||(Ja(),Ds=!0),To.add(a,y)},Na.Default=Xs,Na.AnimateLocations=Fu,Na.None=su;function ts(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=Fi,this.vc=new Si,this.Tt=new Si,this.yl=new Dn,this.Ut=new Dn,this.dw=fh,a&&Object.assign(this,a)}ts.prototype.suspend=function(){this.Xk=!0},ts.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),ss(this.Yd),Tl(this.H),bs(this.Yd),this.H.redraw()};function Cl(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}Me=ts.prototype,Me.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 Gt&&(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===Xs&&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),ss(y),this.yl.each(function(E){E.data=null,a.add(E)}),bs(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Za(y,this),this)},Me.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Me.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 Gt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof er){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Cs(this,a,y,x,E,b),this};function Cs(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),ae=re.start,le=re.end;ae[x]===void 0&&(ae[x]=Ss(E)),le[x]=Ss(b)}else ae={},le={},ae[x]=Ss(E),le[x]=Ss(b),re=ae.position,y instanceof Gt&&re instanceof $e&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(le.position),re=new Qu(ae,le,z),ne.add(y,re);ne=ae[x],ne instanceof $e&&!ne.w()&&ne.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof er?re.Ku.location=Ss(y.location):z&&(re.Ku[x]=Ss(E))}function Ss(a){return a instanceof $e||a instanceof oi?a.copy():a}Me.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Me.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),ss(x),fc(a,b),Tl(a.H,!0),bs(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 Gt&&z.diagram===null)){var ne=E.value,re=b?ne.end:ne.start;ne=b?ne.start:ne.end;var ae=To,le;for(le in ne)le==="position"&&(ne["position:placeholder"]||ne["position:nodeCollapse"])||ae.get(le)===null||ae.get(le)(z,re[le],ne[le],a.Lp,y,x,a)}}}Me.stop=function(){return this.bc?(this.Ml(!0),this):this},Me.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,ss(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=To;E.next();){var ne=E.key,re=E.value,ae=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,ae[me],ce[me]!==void 0?ce[me]:re.Hu?ae[me]:le[me],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ce.location!==void 0&&ne instanceof er&&(ne.location=ce.location),re.nv&&ne instanceof er&&ne.Zb(!1)}if(y.As.clear(),od(y,!1),y.Ya(),y.N(),Tl(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()}Tl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),bs(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Cl(this,null),x.Ml(this),y.$b())}},Me.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Or&&(E=y.placeholder),E!==null?(x=E.ga(Ua),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new $e(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Or)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ci&&this.Cj(E,y)},Me.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Or&&(x=y.placeholder),x!==null){var E=x.ga(Ua);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 Or)for(a=a.memberParts;a.next();)E=a.value,E instanceof Ci&&this.Aj(E,y)}},Me.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Pt.Object.defineProperties(ts.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&nn(a,">= 1",ts,"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:It("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}}}),ts.prototype.getTemporaryState=ts.prototype.Ez,ts.prototype.stop=ts.prototype.stop,ts.prototype.add=ts.prototype.add,ts.prototype.addTemporaryPart=ts.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}ts.className="Animation",ts.EaseLinear=function(a,y,x,E){return x*a/E+y},ts.EaseInOutQuad=Yl,ts.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},ts.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},ts.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},ts.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||ds,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=el))}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 Ra(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))}Pt.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 ds=new qt(lu,"Default",1),el=new qt(lu,"Immediate",2),xs=new qt(lu,"Bundled",3);lu.className="AnimationTrigger",lu.Default=ds,lu.Immediate=el,lu.Bundled=xs;function za(a){Rr(this),this.H=null,this.Pa=new On,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)}Me=za.prototype,Me.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Rl(x)}a.clear(),this.Zq.length=0},Me.Xe=function(a){this.H=a},Me.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 ae=re.value;ae instanceof Or?b++:ae instanceof Ci?E++:ae instanceof li?z++:ae instanceof Ko?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&&fo(E)&&(re+=" #"+fo(E)),x instanceof Ci?re+=" "+Zn(E):x instanceof li&&(re+=" "+Zn(x.fromNode)+" "+Zn(x.toNode));return y+" "+this.Pa.count+": "+re},Me.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=$e.alloc(),z=this.Pa.s,ne=z.length;ne--;){var re=z[ne];if((E!==!0||Vh(re)!==!1)&&re.isVisible()&&(b.assign(a),Ur(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return $e.free(b),re}return $e.free(b),null},Me.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof On||E instanceof Dn||(E=new Dn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=$e.alloc(),ne=this.Pa.s,re=ne.length;re--;){var ae=ne[re];if((b!==!0||Vh(ae)!==!1)&&ae.isVisible()){z.assign(a),Ur(z,ae.oe);var le=ae;ae.ji(z,y,x,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return $e.free(z),E},Me.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 On||b instanceof Dn||(b=new Dn),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 ae=ne[re];if((z!==!0||Vh(ae)!==!1)&&ae.isVisible()){var le=ae;ae.Cf(a,y,x,E,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return b},Me.Nu=function(a,y,x,E,b,z,ne){if(this.Uh===!1)return b;for(var re=this.Pa.s,ae=re.length;ae--;){var le=re[ae];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},Me.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 On||b instanceof Dn)&&(z=b),b=!0),z instanceof On||z instanceof Dn||(z=new Dn),this.Uh===!1)return z;var ne=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ne=!0);for(var re=$e.alloc(),ae=$e.alloc(),le=this.Pa.s,ce=le.length;ce--;){var me=le[ce];if((ne!==!0||Vh(me)!==!1)&&me.isVisible()){re.assign(a),Ur(re,me.oe),ae.h(a.x+y,a.y),Ur(ae,me.oe);var Ce=me;me.og(re,ae,x,E,b,z)&&(x!==null&&(Ce=x(Ce)),Ce===null||E!==null&&!E(Ce)||z.add(Ce))}}return $e.free(re),$e.free(ae),z},Me.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=Pn();for(var b=Pn(),z=0;z<E;z++){var ne=x[z];if(ne.vw=z,ne instanceof li){if(ne.fd===!1)continue}else if(ne instanceof Ko&&ne.adornedPart!==null)continue;var re=ne.actualBounds;ne.isVisible()&&da(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]);Rn(a),Rn(b)}}};function tl(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Me.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=tl(this,a);var z=this.Zq;z.length=0;for(var ne=y.scale,re=An.alloc(),ae=0;ae<E;ae++)this.Oj(a,x[ae],y,z,ne,re,!0);if(An.free(re),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function kl(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=tl(a,y),re=a.Zq;re.length=0;for(var ae=x.scale,le=An.alloc(),ce=0;ce<z;ce++){var me=b[ce];E.contains(me)&&a.Oj(y,me,x,re,ae,le,!1)}An.free(le),y.globalAlpha=ne}}}Me.Oj=function(a,y,x,E,b,z,ne){if(ne&&!Vh(y))a.Hs(y);else{if(E!==null&&y instanceof li&&(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 Lu?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&&(gs(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(gs(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),gs(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))}},Me.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(ni,a,this,y,x,E,b)},Me.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&Rl(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)),Mu(this,a,y),a},Me.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,Rl(y),a};function Mu(a,y,x){if(y=ah(a,y,x),x instanceof Or&&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&&Mu(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,ae=NaN;re<b&&(ae=a.M(re).zOrder,!!isNaN(ae));)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(ae)&&ae<E)for(;;){if(re===b||ae>=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(ae=NaN;++re<b&&(ae=a.M(re).zOrder,isNaN(ae)););}return y}Pt.Object.defineProperties(za.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===""&&It("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&It("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)&&nn(a,"0 <= value <= 1",za,"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))}}}),za.prototype.findObjectsNear=za.prototype.og,za.prototype.findObjectsIn=za.prototype.Cf,za.prototype.findObjectsAt=za.prototype.ji,za.prototype.findObjectAt=za.prototype.ic,za.className="Layer";function cn(a,y){if(hm||(Ol(),hm=!0),Rr(this),gc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,fs){var x=this,E=function(){x.removeEventListener(gt.document,"DOMContentLoaded",E,!1),x.setRTL()};gt.document.body!==null?this.setRTL():x.addEventListener(gt.document,"DOMContentLoaded",E,!1)}this.ol=null,Yc.add("Model",ia);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===ni&&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 Ga,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"||gt.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 Na,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new On,a.pj=new Si,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new $e(NaN,NaN).freeze(),a.du=new $e(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new $e(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Hr,a.zu=new $e(NaN,NaN).freeze(),a.ut=new An(NaN,NaN,NaN,NaN).freeze(),a.rj=new Yi(0,0,0,0).freeze(),a.sj=fh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=jl,a.zk=_o,a.Fg=jl,a.pq=_o,a.yt=Ua,a.Bt=Ua,a.Fc=!0,a.pn=!1,a.De=new Dn,a.Eh=new Si,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Yi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new rn,a.bq.diagram=a,a.Qg=new rn,a.Qg.diagram=a,a.cj=new rn,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,lp(a),a.ai=new Dn,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 Si,a.Xn=new On,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 Yi(5).freeze(),a.Hw=new Dn().freeze(),a.Nt=999999999,a.nw=new Dn().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 Dn,a.ow=new Dn,a.Xh=null,a.aw=new oi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new $e,bounds:new An,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 An(NaN,NaN,NaN,NaN).freeze(),a.wo=new oi(NaN,NaN).freeze(),a.Sp=new An(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Si;var y=new Ci,x=new Ca;x.bind(new Bs("text","",Zn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Ci,x=new Ca,x.stroke="brown",x.bind(new Bs("text","",Zn)),y.add(x),a.Lg.add("Comment",y),y=new Ci,y.selectable=!1,y.avoidable=!1,x=new Gr,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 Si,y=new Or,y.selectionObjectName="GROUPPANEL",y.type=ii.Vertical,x=new Ca,x.font="bold 12pt sans-serif",x.bind(new Bs("text","",Zn)),y.add(x),x=new ii(ii.Auto),x.name="GROUPPANEL";var E=new Gr;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new $l,E.padding=new Yi(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Si,y=new li,x=new Gr,x.isPanelMain=!0,y.add(x),x=new Gr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new li,x=new Gr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ko,y.type=ii.Auto,x=new Gr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new $l,x.margin=new Yi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ko,y.type=ii.Link,x=new Gr,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 ia,a.toolManager=new Qn,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=Wc(),a.eq=null,a.fq=pr,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 $e,a.zy=500,a.wp=new $e,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 Dn().freeze(),a.nw=new Dn().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 ae=re.value;ae!==b&&ae.data===null&&z.push(ae)}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(),ar=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function Wc(){return null}cn.prototype.reset=function(){this.clear(),this.vb=!0,Rh(this),Bc(this),this.Wg=!0,Id(this),this.layout=new Ga,this.Wg=!1,this.model=hy(),this.model.undoManager=new yi,this.vb=this.rn=!1,this.N()},cn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=gt.document.body);var y=Mn("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},cn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=gt.document.body);var y=0;if(fs){var x=vc;y=Mc,x===null&&(x=vc=Mn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Mc=Mn("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||Dr||(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(fs){if(y!=null||It("Diagram setup requires an argument DIV."),a.Ka!==null&&It("Diagram has already completed setup."),typeof y=="string"?a.Ka=gt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:It("No DIV or DIV id supplied: "+y),a.Ka===null&&It("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&It("Invalid div id; div already has a Diagram associated with it."),!a.ol&>.ResizeObserver){var x=Ln(function(){a.$b()},250);a.ol=new gt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}gt.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=gt.go;var b=new Sc(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",gt.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,fs){b=Mn("div");var z=Mn("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=Ln(function(){a.Yh=null,a.N()},300),a.Ov=Ln(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 ae=0,le=0;re.delta=0,ne.deltaX!==void 0?(ne.deltaX!==0&&(ae=0<ne.deltaX?1:-1),ne.deltaY!==0&&(le=0<ne.deltaY?1:-1),re.delta=Math.abs(ne.deltaX)>Math.abs(ne.deltaY)?-ae:-le):ne.wheelDeltaX!==void 0?(ne.wheelDeltaX!==0&&(ae=0<ne.wheelDeltaX?-1:1),ne.wheelDeltaY!==0&&(le=0<ne.wheelDeltaY?-1:1),re.delta=Math.abs(ne.wheelDeltaX)>Math.abs(ne.wheelDeltaY)?-ae:-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 ae=!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,ae=!0;else if(re[0]===null)re[0]=ne;else if(re[1]===null)re[1]=ne,ae=!0;else{ne.preventDefault();return}else re[0]=ne;(re=ne.pointerType==="touch"||ne.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=ae;ae=Hd(a,ne,!0,!1,!0,le),yd(a,ne,ae),ae.targetDiagram=sh(ne,ne.target),ae.targetObject=null,le||ae.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,ae.clickCount=a.yq,a.tw=ne.timeStamp,a.uw.sg(ne.screenX,ne.screenY),a.doMouseDown(),ne.button===1?ne.preventDefault():uu(ae,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 ae=gt.document.elementFromPoint(ne.clientX,ne.clientY)||null;ae!==null&&ae.shadowRoot!==void 0&&ae.shadowRoot!==null&&(ae=ae.shadowRoot.elementFromPoint(ne.clientX,ne.clientY));var le=a,ce=ne;ae&&ae.H&&(ce=ne,le=ae.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",ae=a.Yt;if(re&&a.qu)delete ae[ne.pointerId],ne.preventDefault();else if(ae=a.oj,ae[0]===null||ae[0].pointerId!==ne.pointerId&&ae[0].pointerType===ne.pointerType)ae[1]!==null&&ae[1].pointerId===ne.pointerId&&(ae[1]=null);else{ae[0]=null,ae=Hd(a,ne,!1,!0,!0,!1);var le=gt.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,ae),le===null&&(le=ne.target),yd(a,ne,ae),ae.clickCount=a.yq,ae.targetDiagram=sh(ne,le),ae.targetObject=null,a.doMouseUp(),uu(ae,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(gt,"resize",a.Ov,!1)}function Al(a){30<a.Sq&&(a.Yh=1)}function od(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),bi&&bi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}cn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:gt.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=gt.scrollX||gt.pageXOffset,y=gt.scrollY||gt.pageYOffset;this.ta.focus(),gt.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 za;y.name="Background",a.Al(y),y=new za,y.name="",a.Al(y),y=new za,y.name="Foreground",a.Al(y),y=new za,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new za,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new za,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 ii(ii.Grid);y.name="GRID";var x=new Gr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Gr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Gr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Gr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Gr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Gr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new er,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):Kc(this.H)}function zd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Kc(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,ae=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,Fe=b.height,De=b.right,ze=b.bottom;b=this.scale;var ut=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":ut=ut+a.scrollWidth-a.clientWidth;break;case"reverse":ut=a.scrollWidth-ut-a.clientWidth}var qe=ut;Ce<ae||Fe<le?(ut=$e.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==qe&&(ut.x=qe/b+ne,this.ju=qe),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(ut.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=ut,$e.free(ut),this.Ee=this.qr=!1):(ut=$e.alloc(),a.uy&&this.allowHorizontalScroll&&(ne<me&&(this.position=ut.h(qe+ne,this.position.y)),ce>De&&(this.position=ut.h(-(y.scrollWidth-this.Aa)+qe-this.Aa/b+ce,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=ut.h(this.position.x,a.scrollTop+re)),z>ze&&(this.position=ut.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),$e.free(ut),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ce=E.right,De=b.right,z=E.bottom,ze=b.bottom,ne=E.x,me=b.x,re=E.y,E=b.y,Ce>=ae&&ne>=me&&ce<=De&&(x.style.width="1px"),Fe>=le&&re>=E&&z<=ze&&(x.style.height="1px"))}},cn.prototype.computeBounds=function(a){return a===void 0&&(a=new An),sl(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,ae=0;ae<re;ae++){var le=ne[ae];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(Cn(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof li||(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 li||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new An(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=$e.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=An.allocAt(0,0,E.width,E.height);var b=$e.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,An.free(E),$e.free(b),$e.free(x)}x=a.yh,y&&a.Fg!==jl&&(x=a.Fg);var z=x!==jl?Zc(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var ne=a.ya/z,re=a.zk,ae=a.pq;y&&!re.sb()&&(ae.sb()||ae.Xb())&&(re=ae.Xb()?yo:ae),zh(a,a.documentBounds,b,ne,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Ut.B(z.x,x)&&Ut.B(z.y,E)&&Ut.B(z.width,b)&&Ut.B(z.height,ne)||a.onViewportBoundsChanged(new An(x,E,b,ne),z,y,!1)}}function Zc(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,ae=ne/E;return y===zu?(y=Math.min(ae,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Zh?(y=ae>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=Zc(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},Me=cn.prototype,Me.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 $e(a.x,a.y)}},Me.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new $e(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))},Me.zz=function(a){if(a instanceof Gt){this.eq=a;var y=$e.alloc();this.fq=this.op(a.ga(Ua,y)),$e.free(y)}else this.eq=null,this.fq=pr};function zh(a,y,x,E,b,z){var ne=$e.allocAt(a.pa.x,a.pa.y),re=ne.x,ae=ne.y;if(a.eq!==null){var le=$e.alloc();le=a.eq.ga(Ua,le),re=le.x-a.fq.x/a.scale,ae=le.y-a.fq.y/a.scale,b=ga,$e.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&&(ae=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?(ae=Math.min(ae+E/2,y.bottom+Math.max(x,b.bottom)-E/2),ae=Math.max(ae,y.top-Math.max(x,b.top)+E/2),ae-=E/2):ae>y.top?ae=y.top:ae<y.bottom-E&&(ae=y.bottom-E)),ne.x=isFinite(re)?re:-a.yb.left,ne.y=isFinite(ae)?ae:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ne),ne.x=y.x,ne.y=y.y),Us(a.Yd,a.pa,ne),a.pa.h(ne.x,ne.y),Bc(a),$e.free(ne)}Me.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 er)return a}else if(a=$u(this,a,function(x){return x.part}),a instanceof er)return a;return null},Me.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),sl(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),sl(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}Me.lz=function(a,y,x){return y===void 0&&(y=!0),Gc(this,a,function(E){return E.part},y?function(E){return E instanceof er&&E.canSelect()}:null,x)};function Gc(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof On||b instanceof Dn||(b=new Dn),sl(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}Me.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof On||E instanceof Dn||(E=new Dn),sl(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},Me.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 er&&(!x||b.canSelect())},y,E)},Me.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof On||b instanceof Dn||(b=new Dn),sl(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ne=z.value;ne.visible&&ne.Cf(a,y,x,E,b)}return b},Me.Nu=function(a,y,x,E,b,z){var ne=new Dn;sl(this);for(var re=this.Wa.iteratorBackwards;re.next();){var ae=re.value;ae.visible&&ae.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 On||b instanceof Dn||(b=new Dn),sl(a),a=a.Wa.iteratorBackwards;a.next();){var ne=a.value;ne.visible&&!ne.isTemporary&&ne.Cf(y,z,x,E,b)}return b}Me.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 er&&(!E||z.canSelect())},x,b)},Me.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 On||b instanceof Dn)&&(z=b),b=!0),z instanceof On||z instanceof Dn||(z=new Dn),sl(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 On||b instanceof Dn)&&(z=b),b=!0),z instanceof On||z instanceof Dn||(z=new Dn),sl(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),Dr&&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,Dr&&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 $e(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?Ur(new $e(y,a),this.Ab):new $e(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=$e.allocAt(ne,re),a.Ab.Cd(y),x.documentPoint.assign(y),$e.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||sl(a),a.Va()}cn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Me=cn.prototype,Me.Pz=function(){return this.kg},Me.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Tl(this),this.hf=!1,this.du=new $e(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&pi(function(){E.ld=!1,_a(y,"Model"),a(E)},1)},Me.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;gt.requestAnimationFrame(function(){y.kg&&y.bd()})}},Me.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Tl(this))};function Dc(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Kc(a)||(y&&sl(a),x&&vu(a,!1))}function Tl(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];Gs(re,!1),re.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(ae){ae.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Od(a),Dc(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(pc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),sl(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,sl(a),a.ou||lh(a),Dc(a,!0,!1),ne=!1,z?(x=An.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"),Dc(a,!0,!1),An.free(x)):x.Ok&&x.Qw&&(a.Fg!==jl?a.scale=Zc(a,a.Fg):a.yh!==jl?a.scale=Zc(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),vu(a,!0)),z&&ne&&a.eb("Initial Layout"),sl(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Zd(a){if(a.Fg!==jl)a.scale=Zc(a,a.Fg);else if(a.yh!==jl)a.scale=Zc(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 sl(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 Dn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Or&&E.U&65536&&(E.U=E.U^65536)})}}Me.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Or||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Or&&x.isVisible()&&Ya(this,x);for(a.reset();a.next();)x=a.value,x instanceof li&&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 Ko&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Ya(a,y){for(var x=Pn(),E=Pn(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Or?(Hu(z)||Jl(z)||Kh(z))&&Ya(a,z):z instanceof li?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(Rn(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();Rn(E)}Me.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Me.gc=function(a){if(this.Ka!==null){if(this.ta===null&&It("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),Fl(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&&(Hr.prototype.Cd=Hr.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 ae=this.Ca,le=Math.round(re.x*ae)/ae,ce=Math.round(re.y*ae)/ae;for(ae!==1&&z.scale(ae),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),Fl(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&&(Hr.prototype.Cd=Hr.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=bi&&bi.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 As(a,y,x,E,b,z,ne,re,ae,le){if(a.Ka!==null){a.ta===null&&It("No canvas specified"),ne===void 0&&(ne=null),re===void 0&&(re=null),ae===void 0&&(ae=!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 Fe=new An(z.x,z.y,E.width/b,E.height/b),De=Fe.copy();De.Co(x),pc(a,De),sl(a),a.Fd(me,Ce,a,Fe),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 ze=a.Mb;y.scale(ze,ze);var ut=Hr.alloc();ut.reset(),ut.translate(x.left,x.top),ut.scale(b),z.x===0&&z.y===0||ut.translate(-z.x,-z.y),y.setTransform(ut.m11,ut.m12,ut.m21,ut.m22,ut.dx,ut.dy),y.yc(),y instanceof Lu&&Qy(y,ut.m11,ut.m12,ut.m21,ut.m22,ut.dx,ut.dy),Hr.free(ut),Fl(a,y),y.globalAlpha=a.pb;var qe=a.Qj("Grid");if(ne){var wt=new Dn,At=ne.iterator;for(At.reset();At.next();){var Bt=At.value;Bt instanceof er&&(le||Bt.layer!==qe)&&(Bt.Gj(),wt.add(Bt))}for(le=0;le<Ce;le++)kl(me[le],y,a,wt,ae);wt.each(function(dn){return dn.Gj()})}else for(wt=0;wt<Ce;wt++){var Ht=me[wt];Ht===qe?le&&Ht.gc(y,a,!0):Ht.gc(y,a,ae)}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 Lu&&(a.ib.Nj.PA(),a.redraw())}}}Me.Gf=function(a){return this.Rg[a]},Me.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Me.Tx=function(){this.Rg=new Ti,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Dr||rr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Fl(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Me.Ql=function(a){return this.on[a]},Me.sA=function(a,y){this.on[a]=y},Me.Sx=function(){this.on=new Ti,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Me.set=function(a){return Object.assign(this,a),this},Me.Du=function(a){return this.nm(a)},Me.nm=function(a){return yu(this,a),this};function yu(a,y){var x=a instanceof ii,E=a instanceof cn,b;for(b in y){b===""&&It("Setting properties requires non-empty property names");var z=a,ne=b;if(x||E){var re=b.indexOf(".");if(0<re){var ae=b.substring(0,re);x?z=a.fb(ae):(z=a[ae],z==null&&(z=a.toolManager[ae])),Qt(z)?ne=b.substr(re+1):It("Unable to find object named: "+ae+" in "+a.toString()+" when trying to set property: "+b)}}if(ne[0]!=="_"&&!ri(z,ne))if(E&&ne==="ModelChanged"){a.Yw(y[ne]);continue}else if(E&&ne==="Changed"){a.Pe(y[ne]);continue}else if(E&&ri(a.toolManager,ne))z=a.toolManager;else if(E&&hs(a,ne)){a.Bj(ne,y[ne]);continue}else if(a instanceof Gi&&ne==="Changed"){a.Pe(y[ne]);continue}else It('Trying to set undefined property "'+ne+'" on object: '+z.toString());z[ne]=y[b],ne[0]==="_"&&z instanceof Gt&&z.Vw(ne)}}Me.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Si,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Me.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=An.alloc(),Vf(this,this.computeBounds(E)),An.free(E)),E=this.ta,E===null||E instanceof ud)))){var ne=this.Mb;b=this.Aa*ne;var re=this.ya*ne,ae=this.scale*ne;z=Math.round(Math.round(y.x*ae)-Math.round(a.x*ae)),y=Math.round(Math.round(y.y*ae)-Math.round(a.y*ae)),ae=this.jw,a=this.oy,ae.width!==b&&(ae.width=b),ae.height!==re&&(ae.height=re),a.clearRect(0,0,b,re),ae=190*ne;var le=70*ne,ce=Math.max(z,0),me=Math.max(y,0),Ce=Math.floor(b-ce),Fe=Math.floor(re-me);a.drawImage(E.Oa,ce,me,Ce,Fe,0,0,Ce,Fe),Cf(this.Yf,this)&&a.clearRect(0,0,ae,le),E=Pn(),a=Pn(),Fe=Math.abs(z),Ce=Math.abs(y);var De=ce===0?0:b-Fe;ce=$e.allocAt(De,0),Fe=$e.allocAt(Fe+De,re),a.push(new An(Math.min(ce.x,Fe.x),Math.min(ce.y,Fe.y),Math.abs(ce.x-Fe.x),Math.abs(ce.y-Fe.y)));var ze=this.Ab;if(ze.reset(),ze.scale(ne,ne),this.Ca!==1&&ze.scale(this.Ca),ne=this.pa,(ne.x!==0||ne.y!==0)&&isFinite(ne.x)&&isFinite(ne.y)&&ze.translate(-ne.x,-ne.y),Ur(ce,ze),Ur(Fe,ze),E.push(new An(Math.min(ce.x,Fe.x),Math.min(ce.y,Fe.y),Math.abs(ce.x-Fe.x),Math.abs(ce.y-Fe.y))),De=me===0?0:re-Ce,ce.h(0,De),Fe.h(b,Ce+De),a.push(new An(Math.min(ce.x,Fe.x),Math.min(ce.y,Fe.y),Math.abs(ce.x-Fe.x),Math.abs(ce.y-Fe.y))),Ur(ce,ze),Ur(Fe,ze),E.push(new An(Math.min(ce.x,Fe.x),Math.min(ce.y,Fe.y),Math.abs(ce.x-Fe.x),Math.abs(ce.y-Fe.y))),Cf(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,ce.h(b,re),Fe.h(ae+b,le+re),a.push(new An(Math.min(ce.x,Fe.x),Math.min(ce.y,Fe.y),Math.abs(ce.x-Fe.x),Math.abs(ce.y-Fe.y))),Ur(ce,ze),Ur(Fe,ze),E.push(new An(Math.min(ce.x,Fe.x),Math.min(ce.y,Fe.y),Math.abs(ce.x-Fe.x),Math.abs(ce.y-Fe.y)))),$e.free(ce),$e.free(Fe),Dc(this,!1,!0),this.Ka===null&&It("No div specified"),this.ta===null&&It("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,ae=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(-ae,-le),b.save(),b.beginPath(),z=a.length,ne=0;ne<z;ne++)ae=a[ne],ae.width!==0&&ae.height!==0&&b.rect(Math.floor(ae.x),Math.floor(ae.y),Math.ceil(ae.width),Math.ceil(ae.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),Fl(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ne=y[re],ae=E,ne.visible&&ne.pb!==0){le=tl(ne,b),me=ne.Zq,me.length=0,ce=this.scale,Ce=An.alloc(),Fe=ne.Pa.s,ze=Fe.length,De=ae.length;for(var ut=0;ut<ze;ut++){var qe=Fe[ut],wt=Df(qe,qe.actualBounds);e:{for(var At=2/ce,Bt=4/ce,Ht=0;Ht<De;Ht++){var dn=ae[Ht];if(dn.width!==0&&dn.height!==0&&wt.Vu(dn.x-At,dn.y-At,dn.width+Bt,dn.height+Bt)){wt=!0;break e}}wt=!1}wt&&ne.Oj(b,qe,this,me,ce,Ce,!0)}An.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()}Rn(E),Rn(a),this.ld=!1}}else this.bd();x&&(Al(this),this.bd(),od(this,!0))}else x?(Al(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){Bc(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Kc(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,ae=b.clientWidth||x+ne,le=b.clientHeight||E+re,ce=a.viewportBounds;b=ce.x;var me=ce.y,Ce=ce.width,Fe=ce.height;if((ae!==x+ne||le!==E+re)&&(a.gf=!1,a.Be=!1,re=ne=0,a.Aa=ae,a.ya=le,z=a.pn=!0,Bc(a)),!a.hf||!a.viewportBounds.w())return!0;var De=a.ku,ze=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var ut=a.documentBounds,qe=0,wt=0,At=0,Bt=0,Ht=ce.width,dn=ce.height,Pi=a.rj;a.contentAlignment.sb()?(ut.width>Ht&&(qe=Pi.left,wt=Pi.right),ut.height>dn&&(At=Pi.top,Bt=Pi.bottom)):(qe=Pi.left,wt=Pi.right,At=Pi.top,Bt=Pi.bottom);var Ii=ut.width+qe+wt,Bi=ut.height+At+Bt;Pi=a.scale;var si=Ii>ae/Pi,Vn=Bi>le/Pi;if(!(z||a.gf||a.Be||si||Vn))return!0;qe=ut.x-qe,ae=ce.x,wt=ut.right+wt,le=ce.right+ne,At=ut.y-At;var Tr=ce.y;ut=ut.bottom+Bt,ce=ce.bottom+re;var Fr="1px";if(Bt="1px",a.scrollMode===fh&&(si||Vn)&&(si&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(si=1,qe+1<ae&&(si=Math.max((ae-qe)*Pi+a.Aa,si)),wt>le+1&&(si=Math.max((wt-le)*Pi+a.Aa,si)),Ht+ne+1<Ii&&(si=Math.max((Ii-Ht)*Pi+a.Aa,si)),Fr=si.toString()+"px"),Vn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(si=1,At+1<Tr&&(si=Math.max((Tr-At)*Pi+a.ya,si)),ut>ce+1&&(si=Math.max((ut-ce)*Pi+a.ya,si)),dn+re+1<Bi&&(si=Math.max((Bi-dn)*Pi+a.ya,si)),Bt=si.toString()+"px")),si=Fr!=="1px",Vn=Bt!=="1px",si&&Vn||!si&&!Vn||(Vn&&(le-=a.Db),si&&(ce-=a.Db),Ii<Ht+ne||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ne=1,qe+1<ae&&(ne=Math.max((ae-qe)*Pi+a.Aa,ne)),wt>le+1&&(ne=Math.max((wt-le)*Pi+a.Aa,ne)),Ht+1<Ii&&(ne=Math.max((Ii-Ht)*Pi+a.Aa,ne)),Fr=ne.toString()+"px"),si=Fr!=="1px",ne=a.ya,si!==a.Be&&(ne=si?a.ya-a.Db:a.ya+a.Db),Bi<dn+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,At+1<Tr&&(re=Math.max((Tr-At)*Pi+ne,re)),ut>ce+1&&(re=Math.max((ut-ce)*Pi+ne,re)),dn+1<Bi&&(re=Math.max((Bi-dn)*Pi+ne,re)),Bt=re.toString()+"px"),Vn=Bt!=="1px"),a.qr&&si===a.Be&&Vn===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(si!==a.Be&&(Fr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=si,ze.style.width=Fr,Vn!==a.gf&&(Bt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=$e.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)),$e.free(re))),z&&Bc(a),a.gf=Vn,ze.style.height=Bt,a.gu=!0,z&&(a.pn=!0),y=De.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ht+1<Ii?y=(a.position.x-qe)*Pi:qe+1<ae?y=De.scrollWidth-De.clientWidth:wt>le+1&&(y=a.position.x*Pi)),a.tn)switch(a.bu){case"negative":y=-(De.scrollWidth-y-De.clientWidth);break;case"reverse":y=De.scrollWidth-y-De.clientWidth}return De.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(dn+1<Bi?De.scrollTop=(a.position.y-At)*Pi:At+1<Tr?De.scrollTop=De.scrollHeight-De.clientHeight:ut>ce+1&&(De.scrollTop=a.position.y*Pi)),ae=a.Aa,le=a.ya,De.style.width=ae+(a.gf?a.Db:0)+"px",De.style.height=le+(a.Be?a.Db:0)+"px",x!==ae||E!==le||a.animationManager.zb?(x=An.allocAt(b,me,Ce,Fe),a.onViewportBoundsChanged(x,a.viewportBounds,Pi,z),An.free(x),!1):!0}Me=cn.prototype,Me.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&It("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&&It('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(ai,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Me.oi=function(a){this.partManager.oi(a);var y=this;Ff(a,function(x){dh(y,x)}),(a instanceof Ko||a instanceof Or&&a.placeholder!==null)&&a.v(),a.data!==null&&Ff(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()},Me.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Ff(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()},Me.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(xi,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Me.Is=function(a,y){if(y===void 0&&(y=!1),Cn(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 Dn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Me.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 Si;if(a!==null)if(Cn(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 Ci){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Or&&(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,ae=ne.toNode;re!==null&&y.contains(re)&&ae!==null&&y.contains(ae)&&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 li)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Iu(a,y,x.value,E,b);else x instanceof Ko||y.add(x,a.Pd(b,x,x.location))}function qu(a,y,x,E,b){if(y!==null&&y.count!==0){var z=$e.alloc(),ne=$e.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=Pn(),ae=Pn(),le=y.iterator,ce=$e.alloc();le.next();){var me=le.key,Ce=le.value;if(me.Zc()){var Fe=vf(a,me,y);Fe!==null?re.push(new ie(me,Ce,Fe)):(!b||me.canMove())&&(Fe=Ce.point,z.assign(Fe),a.computeMove(me,z.add(ne),E,ce),me.location=ce,Ce.shifted===void 0&&(Ce.shifted=new $e),Ce.shifted.assign(ce.re(Fe)))}else le.key instanceof li&&ae.push(le.sa)}for($e.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 $e),me.node.location=z.add(me.Su.shifted);for(b=$e.alloc(),le=$e.alloc(),me=ae.length,Ce=0;Ce<me;Ce++){var De=ae[Ce];if(Fe=De.key,Fe instanceof li)if(Fe.suspendsRouting){Fe.Tg=null,ce=Fe.fromNode;var ze=Fe.toNode;if(a.draggedLink!==null&&E.dragsLink)if(ze=De.value.point,Fe.dragComputation===null)y.add(Fe,a.Pd(E,Fe,ne)),Ph(Fe,ne.x-ze.x,ne.y-ze.y);else{De=$e.allocAt(0,0),(ce=Fe.i(0))&&ce.w()&&De.assign(ce);var ut=ce=$e.alloc().assign(De).add(ne);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(ut=$e.alloc(),mf(a,Fe,ce,ut,E)),ce.assign(Fe.dragComputation(Fe,ce,ut)).re(De),y.add(Fe,a.Pd(E,Fe,ce)),Ph(Fe,ce.x-ze.x,ce.y-ze.y),$e.free(De),$e.free(ce),ut!==ce&&$e.free(ut)}else ce!==null&&(b.assign(ce.location),ut=y.I(ce),ut!==null&&b.re(ut.point)),ze!==null&&(le.assign(ze.location),ut=y.I(ze),ut!==null&&le.re(ut.point)),ce!==null&&ze!==null?b.Xa(le)?(ce=De.value.point,ze=z,ze.assign(b),ze.re(ce),y.add(Fe,a.Pd(E,Fe,b)),Ph(Fe,ze.x,ze.y)):(Fe.suspendsRouting=!1,Fe.bb()):(De=De.value.point,ce=ce!==null?b:ze!==null?le:ne,y.add(Fe,a.Pd(E,Fe,ce)),Ph(Fe,ce.x-De.x,ce.y-De.y))}else(Fe.fromNode===null||Fe.toNode===null)&&(ce=De.value.point,y.add(Fe,a.Pd(E,Fe,ne)),Ph(Fe,ne.x-ce.x,ne.y-ce.y))}$e.free(z),$e.free(ne),$e.free(b),$e.free(le),Rn(re),Rn(ae),x||(sl(a),Ru(a,y))}}cn.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new $e),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=$e.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 ae=a.maxLocation,le=ae.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ae=ae.y,isNaN(ae)&&(ae=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,ae))),b!==y&&$e.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 ae=z.gridCellSize;isNaN(a)&&(a=ae.width),isNaN(y)&&(y=ae.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ne)&&(ne=z.y)}z=$e.allocAt(0,0),z.yi(0,0,a,y,b),Ut.No(x.x,x.y,re+z.x,ne+z.y,a,y,E),$e.free(z)}}function ch(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof li&&(y.suspendsRouting=!0)}function Ru(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof li&&(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}Me=cn.prototype,Me.Pd=function(a,y,x){if(x===void 0)return new Kd(Fi);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new Kd(new $e(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&&It("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&It("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&It("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&It("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&&It("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Me.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(ai,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Me.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(xi,"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(ai,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Me.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(xi,"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(ai,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Me.kA=function(a){if(a.diagram!==this&&It("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(xi,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Me.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Me.Yw=function(a){return this.pf===null&&(this.pf=new On),this.pf.add(a),this.model.Pe(a),this},Me.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Me.Pe=function(a){return this.zg===null&&(this.zg=new On),this.zg.add(a),this},Me.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Me.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==In&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Me.cb=function(a,y,x,E,b,z,ne){z===void 0&&(z=null),ne===void 0&&(ne=null);var re=new Bn;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)},Me.g=function(a,y,x,E,b){this.cb(ni,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===ni){var b=a.object;if(ja(b,a.propertyName,a.I(y)),b instanceof Gt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===ai){var ne=a.object,re=a.newParam,ae=a.newValue;if(ne instanceof ii)if(typeof re=="number"&&ae instanceof Gt){y?ne.pc(re):ne.Gb(re,ae);var le=ne.part;le!==null&&le.Wb()}else typeof re=="number"&&ae instanceof Ks&&(ae.isRow?f1(ne,re,y?void 0:ae):g1(ne,re,y?void 0:ae));else if(ne instanceof za){var ce=a.oldParam===!0;typeof re=="number"&&ae instanceof er&&(y?(ae.isSelected=!1,ae.isHighlighted=!1,ae.Wb(),ne.pc(ce?re:-1,ae,ce)):ne.oi(re,ae,ce))}else ne instanceof cn?typeof re=="number"&&ae instanceof za&&(y?this.Wa.mb(re):(ae.Xe(this),this.Wa.Gb(re,ae))):It("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===xi){var me=a.object,Ce=a.oldParam,Fe=a.oldValue;if(me instanceof ii)typeof Ce=="number"&&Fe instanceof Gt?y?me.Gb(Ce,Fe):me.pc(Ce):typeof Ce=="number"&&Fe instanceof Ks&&(Fe.isRow?f1(me,Ce,y?Fe:void 0):g1(me,Ce,y?Fe:void 0));else if(me instanceof za){var De=a.newParam===!0;typeof Ce=="number"&&Fe instanceof er&&(y?0>me.Pa.indexOf(Fe)&&me.oi(Ce,Fe,De):(Fe.isSelected=!1,Fe.isHighlighted=!1,Fe.Wb(),me.pc(De?Ce:-1,Fe,De)))}else me instanceof cn?typeof Ce=="number"&&Fe instanceof za&&(y?(Fe.Xe(this),this.Wa.Gb(Ce,Fe)):this.Wa.mb(Ce)):It("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==In&&It("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,Bc(a),a.N(),a.Ee=!0,E.zb&&(Ys(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Bc(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ne=a.ya,re=a.zoomPoint.x,ae=a.zoomPoint.y,le=a.contentAlignment;isNaN(re)&&(le.$c()?le.Hf(Ba)?re=0:le.Hf(Ms)&&(re=z-1):re=le.sb()?le.x*(z-1):z/2),isNaN(ae)&&(le.$c()?le.Hf(co)?ae=0:le.Hf(zs)&&(ae=ne-1):ae=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=$e.allocAt(a.pa.x+re/y-re/x,a.pa.y+ae/y-ae/x),a.position=z,$e.free(z),a.Ca=x,Bc(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),vu(a,!1),E.zb&&(Ys(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 Qn&&(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,ae=0;ae<re;ae++){var le=ne[ae],ce=Math.abs(le.interval);2>ce||(vv(le.figure)?z=z*ce/Ut.vx(z,ce):b=b*ce/Ut.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=An.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){An.free(y);return}b=y.width,z=y.height,a=y.x,ne=y.y,An.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=$e.alloc(),Ut.No(a,ne,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),oi.free(E),x.part.location=y,$e.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),Cn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof er||It("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 er||It("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()}},Me=cn.prototype,Me.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Me.Jz=function(a){a=new Dn().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 er||It("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Me.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=$e.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)),$e.free(z);return}It("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):It("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),$e.free(z)},Me.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)},Me.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Me.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)},Me.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,ae=y.m21,le=y.m22,ce=y.dx,me=y.dy,Ce=x*ne+E*ae+ce;y=x*re+E*le+me;var Fe=b*ne+E*ae+ce;return a=b*re+E*le+me,E=x*ne+z*ae+ce,x=x*re+z*le+me,ne=b*ne+z*ae+ce,b=b*re+z*le+me,z=Math.min(Ce,Fe),Ce=Math.max(Ce,Fe),Fe=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),Ce=Math.max(Ce,E),Fe=Math.min(Fe,x),y=Math.max(y,x),z=Math.min(z,ne),Ce=Math.max(Ce,ne),Fe=Math.min(Fe,b),y=Math.max(y,b),new An(z,Fe,Ce-z,y-Fe)},Me.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),Ur(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=Yc.get(a),a!==null?new a:new ia}cn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===In&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(ae){return ae.diagram=b}),a.mouseMoveTools.each(function(ae){return ae.diagram=b}),a.mouseUpTools.each(function(ae){return ae.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===In){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),sl(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(),es(this.animationManager)),!this.Rt&&ne&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;pi(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 Dn&&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 Dn&&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)},Me=cn.prototype,Me.Lc=function(a){return this.partManager.Lc(a)},Me.ii=function(a){return this.partManager.ii(a)},Me.Kc=function(a){return this.partManager.Kc(a)},Me.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:gr(Xi(y)))},Me.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:gr(Xi(y)))};function Bc(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())}Me.Va=function(){if(this.Zi){var a=An.alloc();Vf(this,this.computeBounds(a)),An.free(a)}},Me.rz=function(){for(var a=new Dn,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},Me.qz=function(){return this.ai.iterator},Me.Uz=function(a){sl(this),a&&jh(this,!0),this.ld?Hh(this,!1):(this.Jk=!0,Tl(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||_a(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),sl(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),Ya(a,y),b.isValidLayout=!0):a.xh=!0)}}Me.yz=function(){for(var a=new On,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 On;x.add(b,ne),x.add(z,ne),E.add(b,b),E.add(z,b)}var x=new Si,E=new Si;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 hs(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Go(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;It("Unknown DiagramEvent name: "+y)}Me.Bj=function(a,y){return a=Go(this,a),a!==null&&a.add(y),this},Me.am=function(a,y){a=Go(this,a),a!==null&&a.remove(y)},Me.R=function(a,y,x){var E=Go(this,a),b=new ln;if(b.diagram=this,a=hs(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 la(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Me.Yj=function(a,y){return ls(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 ls(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=ll(a,x)),x===null){y=An.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)}An.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=An.alloc(),z=x.memberParts;z.next();)ne=z.value,ne instanceof Ci&&ld(a,ne,E,y);An.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&sS(b);return b}function ll(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ll(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 Or)for(y=y.memberParts;y.next();)b=y.value,b instanceof Ci&&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():Vc(this)};function Vc(a){a.vk===-1&&(a.vk=pi(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=An.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Vf(a,y),An.free(y),a.Fc=!0,a.bd(),Vc(a))}},a.vp))}cn.prototype.ug=function(){this.vk!==-1&&(gt.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=An.allocAt(0,0,E.width*b,E.height*b);var z=$e.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(Fi)||(y=new $e(y.x+z.x/b,y.y+z.y/b)),An.free(E),$e.free(z),y},Me=cn.prototype,Me.Cs=function(){return null},Me.av=function(){return null},Me.bs=function(a,y){this.pj.add(a,y)},Me.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Or&&(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>ae?y(x,b,re):gt.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,ae=x.callbackTimeout||300,le=+new Date;return gt.requestAnimationFrame(function(){E()}),null}Me.Wz=function(a){return fs?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Me.Jx=function(a){return a===void 0&&(a={}),mc(this,this.Xz,a)},Me.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"&&It('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"&&It("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,ae=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,Fe=y.elementFinished||null,De=y.showTemporary;De===void 0&&(De=!me),y=y.showGrid,y===void 0&&(y=De),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof le=="number"?le=new Yi(le):le instanceof Yi||It("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 ze=me.context;if(!(b||z||ae||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=Fe,As(a,E.context,le,new oi(me.width,me.height),a.Ca,a.pa,ae,ce,De,y),E.context):(a.Xm=!1,As(a,ze,le,new oi(me.width,me.height),a.Ca,a.pa,ae,ce,De,y),a.Xm=!0,me.context);var ut=a.Pp,qe=a.documentBounds.copy();if(qe.Fv(a.yb),De)for(var wt=a.Wa.s,At=wt.length,Bt=0;Bt<At;Bt++){var Ht=wt[Bt];if(Ht.visible&&Ht.isTemporary){Ht=Ht.Pa.s;for(var dn=Ht.length,Pi=0;Pi<dn;Pi++){var Ii=Ht[Pi];Ii.isInDocumentBounds&&Ii.isVisible()&&(Ii=Ii.actualBounds,Ii.w()&&qe.ed(Ii))}}}if(wt=new $e(qe.x,qe.y),ae!==null){for(At=new An(0,0,0,0),Bt=!0,Ht=ae.iterator,Ht.reset();Ht.next();)dn=Ht.value,dn instanceof er&&(Pi=dn.layer,Pi!==null&&!Pi.visible||Pi!==null&&!De&&Pi.isTemporary||!dn.isVisible()||(dn=dn.actualBounds,dn.w()&&(Bt?(Bt=!1,At.assign(dn)):At.ed(dn))));qe.width=At.width,qe.height=At.height,wt.x=At.x,wt.y=At.y}return re!==null&&re.w()&&(wt=re,z||(z=ut)),At=re=0,le!==null&&(re=le.left+le.right,At=le.top+le.bottom),Bt=Ht=0,b!==null&&(Ht=b.width,Bt=b.height,isFinite(Ht)&&(Ht=Math.max(0,Ht-re)),isFinite(Bt)&&(Bt=Math.max(0,Bt-At))),b!==null&&z!==null?(z==="NaN"&&(z=ut),b.w()?(b=Ht,qe=Bt):isNaN(Bt)?(b=Ht,qe=qe.height*z):(b=qe.width*z,qe=Bt)):b!==null?b.w()?(z=Math.min(Ht/qe.width,Bt/qe.height),b=Ht,qe=Bt):isNaN(Bt)?(z=Ht/qe.width,b=Ht,qe=qe.height*z):(z=Bt/qe.height,b=qe.width*z,qe=Bt):z!==null?z==="NaN"&&ne.w()?(z=Math.min((ne.width-re)/qe.width,(ne.height-At)/qe.height),z>ut?(z=ut,b=qe.width,qe=qe.height):(b=ne.width,qe=ne.height)):(b=qe.width*z,qe=qe.height*z):(z=ut,b=qe.width,qe=qe.height),le!==null?(b+=re,qe+=At):le=new Yi(0),ne!==null&&(ut=ne.width,ne=ne.height,isNaN(ut)&&(ut=2e3),isNaN(ne)&&(ne=2e3),isFinite(ut)&&(b=Math.min(b,ut)),isFinite(ne)&&(qe=Math.min(qe,ne))),me.width=Math.ceil(b),me.height=Math.ceil(qe),x==="SVG"?E===null?null:(E.resize(me.width,me.height,me.width,me.height),E.ownerDocument=Ce,E.hs=Fe,As(a,E.context,le,new oi(Math.ceil(b),Math.ceil(qe)),z,wt,ae,ce,De,y),E.context):(a.Xm=!1,As(a,ze,le,new oi(Math.ceil(b),Math.ceil(qe)),z,wt,ae,ce,De,y),a.Xm=!0,me.context)}Pt.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,gt.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,gt.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(gt,"resize",this.Ov,!1),this.removeEventListener(gt,"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)&&nn(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&&nn(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&&nn(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 nn(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&&It("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,_a(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(gt,"pointermove",this.dk,!0),this.addEventListener(gt,"pointerdown",this.ui,!0),this.addEventListener(gt,"pointerup",this.fk,!0),this.addEventListener(gt,"pointerout",this.ek,!0),this.addEventListener(gt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(gt,"wheel",this.$j,!0),this.addEventListener(gt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(gt,"pointermove",this.dk,!0),this.removeEventListener(gt,"pointerdown",this.ui,!0),this.removeEventListener(gt,"pointerup",this.fk,!0),this.removeEventListener(gt,"pointerout",this.ek,!0),this.removeEventListener(gt,"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(gt,"wheel",this.$j,!0),this.removeEventListener(gt,"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=$e.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Us(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Bc(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)}$e.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!==ii.Grid&&It("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),Bc(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||It("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 Yi(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()||It("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()||It("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)):nn(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)):nn(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 Yi(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&&It("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!==Zs&&a!==Pg&&It("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 Yi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Pt.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 Yc=new Si,vc=null,fs=gt.document!==void 0,xf=null,Wh="",jl=new qt(cn,"None",0),zu=new qt(cn,"Uniform",1),Zh=new qt(cn,"UniformToFill",2),Uf=new qt(cn,"CycleAll",10),up=new qt(cn,"CycleNotDirected",11),cp=new qt(cn,"CycleNotDirectedFast",12),dp=new qt(cn,"CycleNotUndirected",13),hp=new qt(cn,"CycleDestinationTree",14),fp=new qt(cn,"CycleSourceTree",15),fh=new qt(cn,"DocumentScroll",1),Xf=new qt(cn,"InfiniteScroll",2),gh=new qt(cn,"TreeParentCollapsed",21),Zs=new qt(cn,"AllParentsCollapsed",22),Pg=new qt(cn,"AnyParentsCollapsed",23),gp=new On,Pf="2.3.10",wf="image",_f=null,hm=!1;function Ol(){if(fs){var a=gt.document.createElement("canvas"),y=a.getContext("2d"),x=di("7ca11abfd022028846");y[x]=di("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",xn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Hr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ut.za],b=1;5>b;b++)y[di("7ca11abfd7330390")](di(E[b-1]),10,15*b);for(y[x]=di("39f046ebb36e4b"),x=1;5>x;x++)y[di("7ca11abfd7330390")](di(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(Hr.prototype.Cd=Hr.prototype.Eu),_f=a}}cn.className="Diagram",cn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=gt.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){fs=a?gt.document!==void 0:!1},cn.isUsingDOM=function(){return fs},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=Zs,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=gt[di("76a715b2f73f148a")][di("72ba13b5")]||"";if(a.Rc=!0,fs){var E=cn[di("76a115b6ed251eaf4692")];if(E)for(var b=gp.iterator;b.next()&&(E=b.value,E=di(E).split(di("39e9")),!(6>E.length));){var z=di(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ne=di(xn[di("6cae19")]).split(".");if(z[0]>ne[0]||z[0]===ne[0]&&z[1]>=ne[1]){var re=gt[di("74a900bae4370f8b51")][di("6fbb13a1c2311e8a57")].toLowerCase();if(ne=re[di("73a612b6fb191d")](di("3aad1ab6e022098b4dc4")),z=di(E[2]),-1<ne&&(re=re[di("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ne),!a.Rc))break;for(ne=x[di("76ad18b4f73e")],re=x[di("73a612b6fb191d")](di("35e7"))+2;re<ne;re++)y+=x[re];if(ne=y[di("73a612b6fb191d")](z),0>ne&&z!==di("7da71ca0ad381e90")&&(ne=y[di("73a612b6fb191d")](di("76a715b2ef3e149757"))),0>ne&&(ne=y[di("73a612b6fb191d")](di("76a715b2ef3e149757"))),0>ne&&(ne=y[di("73a612b6fb191d")](di("2bfa41fdb3784bca12"))),0>ne&&(ne=x[di("73a612b6fb191d")](di("7baa19a6f76c1988428554"))),a.Rc=!(0<=ne&&ne<y[di("73a612b6fb191d")](di("35"))||y[di("73a612b6fb191d")](di("35"))===-1),!a.Rc||x[di("73a612b6fb191d")](di("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[di("73a612b6fb191d")](z)),!a.Rc)||(ne=gt[di("76a715b2f73f148a")][di("69ad17a1e03e")],re=ne[di("73a612b6fb191d")](di("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ne[di("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ne=gt.document.createElement("div");for(var ae=E[0].replace(/[A-Za-z]/g,"");4>ae.length;)ae+="9";if(re=ae,ae=ae.substr(ae.length-4),E="",E+=["gsh","gsf"][parseInt(ae.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(ae.substr(0,1),10)%4],ne[di("79a417a0f0181a8946")]=E,gt.document[di("78a712aa")]){gt.document[di("78a712aa")][di("7bb806b6ed32388c4a875b")](ne),ae=gt.getComputedStyle(ne).getPropertyValue(di("78a704b7e62456904c9b12701b6532a8"));var le=gt.getComputedStyle(ne).getPropertyValue(di("75b817b0ea2202"));if(gt.document[di("78a712aa")][di("68ad1bbcf533388c4a875b")](ne),ae){if(ne=gt[di("77a902b0eb1b1e804a8a")],le==="0."+parseInt(re,10)%100||ae.indexOf(parseInt(z[1]+z[2],16))!==-1&&ae.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ne&&ne(di("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[di("76ad18b4f73e")],b=x[di("73a612b6fb191d")](di("35e7"))+2;b<ce;b++)y+=x[b];x=y[di("73a612b6fb191d")](di("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[di("73a612b6fb191d")](di("35")))}}}return 0<a.Rc&&a!==a.wy}fm.className="DiagramHelper";function Kd(a){this.j=a===void 0?new $e:a,this.o=new $e}Pt.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=Ua,this.gridSnapOrigin=new $e(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},se.className="DraggingOptions";function pe(a,y){if(typeof a=="string"||gt.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}Kt(pe,cn);function fe(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=rs,a.layout=new ml}pe.prototype.reset=function(){cn.prototype.reset.call(this),fe(this)},pe.className="Palette";function Se(a,y){if(typeof a=="string"||gt.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 er;var b=new Gr;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 Yi(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 $e(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}Kt(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),Te(this)}finally{this.ta=a,this.ib=y}}}cn.prototype.redraw.call(this)},Se.prototype.gc=function(){if(this.Ka===null&&It("No div specified"),this.ta===null&&It("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?Te(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 Te(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=An.alloc().assign(a.viewportBounds).ed(y.viewportBounds),pc(y,b),An.free(b),sl(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],ae=a;if(re.visible&&re.opacity!==0){var le=re.diagram.grid.part;if(!x&&re.isTemporary)E&&le.layer===re&&(re=tl(re,b),le.gc(b,ae),b.globalAlpha=re);else{for(var ce=tl(re,b),me=ae.scale,Ce=An.alloc(),Fe=re.Pa.s,De=Fe.length,ze=0;ze<De;ze++){var ut=Fe[ze];(E||ut!==le)&&re.Oj(b,ut,ae,null,me,Ce,!1)}An.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 Gr&&(E.strokeWidth=a),y.location=new $e(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Se.prototype.computeBounds=function(){var a=this.observed;if(a===null)return to;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))},Pt.Object.defineProperties(Se.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Se&&It("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(){qi.call(this),this.j=null}Kt(ht,qi),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 $e(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new $e(a.x-this.j.x,a.y-this.j.y)),!0)},ht.prototype.doActivate=function(){this.j=null,qi.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 $e(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new $e(a.x-this.j.x,a.y-this.j.y)}}},ht.className="OverviewDraggingTool";function lt(){Rr(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=to,this.hb=!0,this.cg=null,this.ob=200}lt.prototype.toString=function(){return"CommandHandler"},lt.prototype.Xe=function(a){this.H=a},lt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Dr?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()},lt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},lt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Qn&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},lt.prototype.canStopCommand=function(){return!0},lt.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=""}},lt.prototype.canSelectAll=function(){return this.diagram.allowSelect},lt.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 Dn,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=""}},lt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},lt.prototype.copySelection=function(){var a=this.diagram,y=new Dn;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)},lt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},lt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},lt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},lt.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 On,x.addAll(z),xf=x,Wh=y.model.dataFormat}}y.R("ClipboardChanged",x)},lt.prototype.pasteFromClipboard=function(){var a=new Dn,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},lt.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 $e(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=""}},lt.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)},lt.prototype.undo=function(){this.diagram.undoManager.undo()},lt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},lt.prototype.redo=function(){this.diagram.undoManager.redo()},lt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},lt.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))},lt.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)},lt.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))},lt.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)},lt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},lt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},lt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;_a(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=to):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Fo(y)},lt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},lt.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(ae){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;_a(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=Tt(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 ae=b.pop();0<b.length&&ae instanceof Ci&&ae.isTreeExpanded&&(!(ae instanceof Or)||ae.isSubGraphExpanded);)ae=b.pop();0<b.length?(ae instanceof er&&y.tv(ae.actualBounds),ae instanceof Ci&&!ae.isTreeExpanded&&(ae.isTreeExpanded=!0),ae instanceof Or&&!ae.isSubGraphExpanded&&(ae.isSubGraphExpanded=!0)):(ae instanceof er&&y.es(ae.actualBounds),y.am("LayoutCompleted",ne)),y.eb("Scroll To Part")},ne=function(){pi(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 Tt(a,y,x){if(y.isVisible())return x;if(y instanceof Ko)Tt(a,y.adornedPart,x);else if(y instanceof li){var E=y.fromNode;E!==null&&Tt(a,E,x),y=y.toNode,y!==null&&Tt(a,y,x)}else y instanceof Ci&&(E=y.labeledLink,E!==null&&Tt(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),Tt(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),Tt(a,y,x));return x}lt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof er)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},lt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),_a(y.animationManager,"Collapse Tree");var x=new On;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 Ci&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},lt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ci&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ci&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},lt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),_a(y.animationManager,"Expand Tree");var x=new On;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 Ci&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},lt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Ci)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ci&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},lt.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 On,z=a.selection.iterator;z.next();){var ne=z.value;ne.Zc()&&ne.canGroup()&&b.add(ne)}for(var re=new On,ae=b.iterator;ae.next();){var le=ae.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 Or)xc(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var Fe=y.copyNodeData(x);Qt(Fe)&&(y.xf(Fe),E=a.ii(Fe))}if(E!==null){me!==null&&this.isValidMember(me,E)&&(E.containingGroup=me);for(var De=re.iterator;De.next();){var ze=De.value;this.isValidMember(E,ze)&&(ze.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},lt.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 wn(a){var y=Pn();for(a=a.iterator;a.next();){var x=a.value;x instanceof li||y.push(x)}a=new Dn,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 Rn(y),a}lt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof li)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},lt.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 On;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Or&&z.canUngroup()&&E.add(z)}var ne=new On;if(0<E.count){y.clearSelection(!0);for(var re=E.iterator;re.next();){var ae=re.value;ae.expandSubGraph();var le=ae.containingGroup,ce=le!==null&&le.data!==null?x.wa(le.data):void 0;ne.addAll(ae.memberParts);for(var me=ne.iterator;me.next();){var Ce=me.value;if(Ce.isSelected=!0,!(Ce instanceof li)){var Fe=Ce.data;Fe!==null?x.mp(Fe,ce):Ce.containingGroup=le}}y.remove(ae)}}y.R("SelectionUngrouped",E,ne)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},lt.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 Or))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Or&&y.canUngroup())return!0;return!1},lt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=wn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},lt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),_a(y.animationManager,"Collapse SubGraph");var x=new On;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 Or&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},lt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Or&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Or&&y.isSubGraphExpanded)return!0;return!1},lt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),_a(y.animationManager,"Expand SubGraph");var x=new On;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 Or&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},lt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Or&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Or&&!y.isSubGraphExpanded)return!0;return!1},lt.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)}},lt.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},lt.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 Gt?b=a.ga(yo):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new $e(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,Jo(x,!1,a)}},lt.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)},lt.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 Si,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 li&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},Pt.Object.defineProperties(lt.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||It("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}}}),lt.className="CommandHandler",Wc=function(){return new lt};function Gt(){Rr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new $e(NaN,NaN).freeze(),this.jd=Pa,this.Ab=new Hr,this.wh=new Hr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Xr,this.uc=new An(NaN,NaN,NaN,NaN).freeze(),this.Ib=new An(NaN,NaN,NaN,NaN).freeze(),this.dc=new An(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=_o,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 ei,Jn,Wi,Ui,vr,zr,xo,ro,Oo,ua;Gt.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=$t(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Gt.prototype.Vw=function(a){var y=this.Dh;if(Cn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Gt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Gt.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},Gt.prototype.copy=function(){return this.clone()},Me=Gt.prototype,Me.qb=function(a){a.classType===li?a.name.indexOf("Orient")===0?this.segmentOrientation=a:It("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Gt&&(this.stretch=a)},Me.toString=function(){return Yn(this.constructor)+"#"+fo(this)},Me.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())}Me.Xc=function(){if(this.ba===null){var a=new pp;a.Xi=ga,a.yj=ga,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Me.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===ni&&El(this)&&Da(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 Si),ne=z.undoManager.transactionLevel===0,a.startCondition===el?ne=!0:a.startCondition===xs&&(ne=!1),ne?(z=new ts,Ra(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()):(_a(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof ii&&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 ii&&Ff(re,function(ae){ae.data!==null&&ae.l&16777216&&ae.La(y)})};function Da(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=LS(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 ae=y.diagram;ae===null||ae.skipsModelSourceBindings||z.sp(a,re,x,E)}ne===a&&(re=E.ks(z.Ai),re!==null&&z.Mv(re,ne,x))}}Me.ks=function(a){return this.bindingId===a?this:null},Me.g=function(a,y,x){this.cb(ni,a,this,y,x)},Me.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 Hr);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function nl(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}Me.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?Io(a.x,a.y,0,0,0,E.height)<=y||Io(a.x,a.y,0,E.height,E.width,E.height)<=y||Io(a.x,a.y,E.width,E.height,E.width,0)<=y||Io(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},Me.se=function(){return!0},Me.ca=function(a){var y=$e.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return $e.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 ae=1/E;if(re.width*E<b&&re.height*E<b)return a=Qo(x.x-ne*ae,x.y-ne*ae,x.width+z*ae,x.height+z*ae,y.x,y.y),$e.free(y),a}return b=!1,(this instanceof Ko||this instanceof Gr?Qo(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)),$e.free(y),b},Me.gh=function(a){var y=this.naturalBounds;return Qo(0,0,y.width,y.height,a.x,a.y)},Me.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=An.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=$e.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)))),$e.free(b),An.free(y),E},Me.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=$e.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)))),$e.free(b),E},Me.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=$e.allocAt(0,0),b=$e.allocAt(0,x.height),z=$e.allocAt(x.width,x.height),ne=$e.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=An.allocAt(0,0,x.width,x.height);var ae=$e.allocAt(a.x,a.y);x.ca(y.Cd(ae))?re=!0:(ae.h(a.x,a.bottom),x.ca(y.Cd(ae))?re=!0:(ae.h(a.right,a.bottom),x.ca(y.Cd(ae))?re=!0:(ae.h(a.right,a.y),x.ca(y.Cd(ae))&&(re=!0)))),$e.free(ae),An.free(x),!re&&(Ut.us(a,E,b)||Ut.us(a,b,z)||Ut.us(a,z,ne)||Ut.us(a,ne,E))&&(re=!0)}return $e.free(E),$e.free(b),$e.free(z),$e.free(ne),re},Me.ga=function(a,y){if(y===void 0&&(y=new $e),a instanceof Mi){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},Me.mi=function(a){a===void 0&&(a=new An);var y=this.naturalBounds,x=this.oe,E=$e.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),$e.free(E),a},Me.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},Me.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Me.qs=function(a,y){return y===void 0&&(y=new $e),y.assign(a),this.oe.Cd(y),y},Me.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Me.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,ae=-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,Ut.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ne=a*re+y*le+me,a=a*ae+y*ce+Ce,y=x*re+E*le+me,x=x*ae+E*ce+Ce,b.h(0,0),E=this.naturalBounds,x=Ut.Ff(0,0,E.width,E.height,ne,a,y,x,b),b.transform(z),x)},Gt.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 ii;switch(du(this,!0)){case Jn:ne=b=0,re&&(y=a=1/0);break;case ei:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ne=y);break;case Ui:isFinite(a)&&a>x&&(b=a),ne=0,re&&(y=1/0);break;case vr:isFinite(y)&&y>E&&(ne=y),b=0,re&&(a=1/0)}re=this.maxSize;var ae=this.minSize;b>re.width&&ae.width<re.width&&(b=re.width),ne>re.height&&ae.height<re.height&&(ne=re.height),x=Math.max(b,ae.width),E=Math.max(ne,ae.height),re.width<x&&(x=Math.min(ae.width,x)),re.height<E&&(E=Math.min(ae.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()||It("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Gs(this,!1)}},Gt.prototype.Wl=function(){},Gt.prototype.Dd=function(){return!1},Gt.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=An.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()||It("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),xd(this,!1),An.free(z)},Me=Gt.prototype,Me.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=Jn),y){case Jn:(x>E||z>b)&&(Gs(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case ei:Gs(a,!0),a.measure(E,b,0,0);break;case Ui:Gs(a,!0),a.measure(E,z,0,0);break;case vr:Gs(a,!0),a.measure(x,b,0,0)}}}Me.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(),Kr(a,y)||(x.oh(),this.Pn(x)))},Me.Pn=function(a){this.portId!==null&&(Hv(a,!0),a instanceof Ci&&Y1(a,this))},Me.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 ii&&vh(this),ne=this.Ib;if(z){var re=this.Ib,ae=this.dc,le=this.areaBackground,ce=this.Ma;le===null&&ce===null||a.yc(),le!==null&&(gs(this,a,le,!0,!0,ae,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&&(gs(this,a,ce,!0,!1,ae,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,ae=!1;var me=0;le&&y.Gf("drawShadows")&&(ae=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 Fe=this.naturalBounds;Ce=this.wh;var De=Ce.m11,ze=Ce.m21,ut=Ce.dx,qe=Ce.m12,wt=Ce.m22,At=Ce.dy,Bt,Ht=Bt=0;Ce=Bt*De+Ht*ze+ut;var dn=Bt*qe+Ht*wt+At;Bt=Fe.width+me,Ht=0;var Pi=Bt*De+Ht*ze+ut;Bt=Bt*qe+Ht*wt+At,Ht=Math.min(Ce,Pi);var Ii=Math.min(dn,Bt),Bi=Math.max(Ce+0,Pi)-Ht,si=Math.max(dn+0,Bt)-Ii;Ce=Ht,dn=Ii,Bt=Fe.width+me,Ht=Fe.height+me,Pi=Bt*De+Ht*ze+ut,Bt=Bt*qe+Ht*wt+At,Ht=Math.min(Ce,Pi),Ii=Math.min(dn,Bt),Bi=Math.max(Ce+Bi,Pi)-Ht,si=Math.max(dn+si,Bt)-Ii,Ce=Ht,dn=Ii,Bt=0,Ht=Fe.height+me,Pi=Bt*De+Ht*ze+ut,Bt=Bt*qe+Ht*wt+At,Ht=Math.min(Ce,Pi),Ii=Math.min(dn,Bt),Bi=Math.max(Ce+Bi,Pi)-Ht,si=Math.max(dn+si,Bt)-Ii,Ce=Ht,dn=Ii,me=y.viewportBounds,Fe=me.x,De=me.y,Ce=!(Ce>me.width+Fe||Fe>Bi+Ce||dn>me.height+De||De>si+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,Bi=Math.max(ne.x,dn.x),si=Math.max(ne.y,dn.y),me=Math.min(ne.right,dn.right)-Bi,Fe=Math.min(ne.bottom,dn.bottom)-si,De=this.tb,De!==null&&(Bi=De.x,si=De.y,me=De.width,Fe=De.height),Bi>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(Bi,si,me,Fe),a.clip()}if(ce){if(!le.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}ae&&(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)}ae&&this.shadowVisible===!0?Vd(a):ae&&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),ae&&hl(this,re)&&this.shadowVisible===null&&Pd(a),this.Ma!==null&&(a.yc(),xu(this,a,le,ne)),ae&&(this.Ma!==null||this.areaBackground!==null||hl(this,re))?(Nc(this,!0),this.shadowVisible===null&&Pd(a)):Nc(this,!1),this.hh(a,y),ae&&this.l&512&&Vd(a),ce&&ae&&Pd(a),Ce&&(a.restore(),a.Vc(this instanceof ii)),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 hl(a,y){return y===null?!1:(vh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ii.Auto||y.type===ii.Spot)&&y.Pb()!==a)}Me.Dv=function(){};function ju(a,y,x,E){gs(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,ae=x.height+b;gs(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,ae),y.ng(a.Ma)):y.fillRect(z-b/2,ne-b/2,re,ae)}function Il(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===ii.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 Lu))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var 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&&Il(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 ii;var re=a instanceof ii?vh(a):!1;a.l&4096&&pl(a);var ae=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,ae),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,ae),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,ae)),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&&hl(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||hl(a,b))?(Nc(a,!0),a.shadowVisible===null&&Pd(y)):Nc(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,ae,re),cu(y,le),!0):(a.svg=re,ne!==null&&re===null&&(pm(y),y.nh.pop()),re===null||(a.$o(y,E,ae,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&&Il(a,E,re),ne!==null&&ne(a,re)),!0)}Me.$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"+Ha++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ne,height:x}),this instanceof ii&&(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 Rl(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Xi(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()}}Me.hh=function(){},Me.lv=function(){this.Uc=!0},Me.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 ii?vh(this):!1;if(!(this instanceof ii&&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 ii)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Gr){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 ii))&&(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},Me.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 gs(a,y,x,E,b,z,ne){if(x!==null){var re=1,ae=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,ae=z.height,b?(re=ne.width,ae=ne.height):E||(re+=le,ae+=le),(z=y instanceof Af)&&x.xe&&(x.type===Mg||x.yk===re&&x.ft===ae))var ce=x.xe;else{var me=0,Ce=0,Fe=0,De=0,ze=0,ut=0;if(ut=ze=0,b?(ze=ne.x,ut=ne.y):E||(ze-=le/2,ut-=le/2),me=x.start.x*re+x.start.offsetX,Ce=x.start.y*ae+x.start.offsetY,Fe=x.end.x*re+x.end.offsetX,De=x.end.y*ae+x.end.offsetY,me+=ze,Fe+=ze,Ce+=ut,De+=ut,x.type===Ud)ce=y.createLinearGradient(me,Ce,Fe,De);else if(x.type===ic)ut=isNaN(x.endRadius)?Math.max(re,ae)/2:x.endRadius,isNaN(x.startRadius)?(ze=0,ut=Math.max(re,ae)/2):ze=x.startRadius,ce=y.createRadialGradient(me,Ce,ze,Fe,De,ut);else if(x.type===Mg)try{ce=y.createPattern(x.pattern,"repeat")}catch(wt){ce=null}if(x.type!==Mg&&(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=ae),ce===null&&x.type===Mg&&x.yk!==-1)){x.yk=-1;var qe=a.diagram;qe!==null&&x.yk===-1&&pi(function(){qe.redraw()},600)}}E?y.fillStyle=ce:y.strokeStyle=ce}}}Me.rg=function(a){if(a instanceof ii)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},Me.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Me.If=function(){for(var a=this instanceof ii?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)))}Me.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=$e.alloc();z.yi(y,x,E,b,yo),a.rotate(this.Kb,z.x,z.y),$e.free(z)}},Me.v=function(a){if(!Hu(this)){a===void 0&&(a=!1),Gs(this,!0),xd(this,!0);var y=this.panel;y===null||a||y.v()}},Me.Uj=function(){Hu(this)||(Gs(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 Ci&&a.Bd(),y.$b())),xd(a,!0)}}Me.Uk=function(){!(this.l&2048)&&(yc(this,!0),tc(this,!0))},Me.Wu=function(){tc(this,!0)},Me.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===ii.Table?Uc(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===ii.Auto&&E.Pb()===a?fl(a,ei,y):x===zr?E!==null?E.type===ii.Spot&&E.Pb()===a?fl(a,ei,y):(x=E.defaultStretch,x===zr?fl(a,Jn,y):fl(a,x,y)):fl(a,Jn,y):fl(a,x,y)}function Uc(a,y,x,E){var b=a.stretch;if(b!==zr)return fl(a,b,E);var z=b=null;switch(y.stretch){case vr:z=!0;break;case ei:z=!0}switch(x.stretch){case Ui:b=!0;break;case ei:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===Ui||y===ei),z===null&&(z=y===vr||y===ei),b===!0&&z===!0?fl(a,ei,E):b===!0?fl(a,Ui,E):z===!0?fl(a,vr,E):fl(a,Jn,E)}function fl(a,y,x){if(x)return y;if(y===Jn||(x=a.desiredSize,x.w()))return Jn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Ui)return Jn;if(y===ei)return vr}else{if(y===vr)return Jn;if(y===ei)return Ui}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===vr)return Jn;if(y===ei)return Ui}else{if(y===Ui)return Jn;if(y===ei)return vr}return y}function Nc(a,y){a.l=y?a.l|512:a.l&-513}function El(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 Gs(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}Me.Gj=function(){this.svg=null},Me.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Me.Av=function(){},Me.zv=function(a){return this.pa=a,_l(this),!0},Me.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Me.kq=function(){return 0};function Ef(a){var y=a.part;if(y instanceof Ci&&(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 ii?a instanceof Ci?a.Bd():a.qm(a,function(x){Ef(x)}):Ef(a))}Me.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Bs(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&p1(a)&&It("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new On),this.localBindings.add(b),this},Me.set=function(a){return Object.assign(this,a),this},Me.Du=function(a){return rv(this,a),this},Me.apply=function(a){return a(this),this},Me.nm=function(a){return yu(this,a),this},Me.pz=function(){return this.ih()},Me.ih=function(){for(var a=this instanceof ii?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Me.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Si),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=$t(arguments),E=z(x),Qt(E)||It('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=gt.go[a]}if(E===null&&(b!=null&&b.constructor||It("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?It("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 Gr)a.figure=y;else if(a instanceof fu)a.source=y;else if(a instanceof ii)y=kc.I(y),y!==null&&(a.type=y);else if(a instanceof ta){var x=Li(ta,y);x!==null?a.type=x:It("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof hi?(y=Li(hi,y),y!==null&&(a.type=y)):a instanceof No&&(y=Li(No,y),y!==null&&(a.type=y));else if(y instanceof Gt)a instanceof ii||It("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ks){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 Ks?Nm(E,y):It("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof qt)typeof a.qb=="function"&&a.qb(y);else if(y instanceof _s)a.type=y;else if(y instanceof Bs)a instanceof Gt||a instanceof Ks?a.bind(y):It("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof lu)a instanceof Gt?a.Jv(y):It("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Rs)a instanceof hi&&a.type===hi.o?a.figures.add(y):It("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof No)a instanceof Rs?a.segments.add(y):It("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ga)a instanceof cn||a instanceof Or?a.layout=y:It("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 Ti;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 Ks){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&It("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)&&It("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Ti;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);yu(a,b)}else yu(a,y);else It('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}Pt.Object.defineProperties(Gt.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:Fi},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:zr},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)&&nn(a,"0 <= value <= 1",Gt,"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 er)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 $e(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&&It("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 Gr&&this.qc(),this.g("desiredSize",E,a),El(this)&&(a=this.part,a!==null&&(Da(this,a,"width"),Da(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 Gr&&this.qc(),this.g("desiredSize",y,a),El(this)&&(a=this.part,a!==null&&Da(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 Gr&&this.qc(),this.g("desiredSize",y,a),El(this)&&(a=this.part,a!==null&&Da(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ro},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),$r(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Sa},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 Yi(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:Jn},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()&&It("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&&nn(a,">= 0",Gt,"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&&nn(a,">= 1",Gt,"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&&nn(a,">= 0",Gt,"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&&nn(a,">= 1",Gt,"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 Ci||It("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:ga},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&&nn(a,">= 0",Gt,"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&&nn(a,">= 0",Gt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ga},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&&nn(a,">= 0",Gt,"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&&nn(a,">= 0",Gt,"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))}}}),Gt.prototype.trigger=Gt.prototype.Jv,Gt.prototype.findBindingPanel=Gt.prototype.ih,Gt.prototype.findTemplateBinder=Gt.prototype.pz,Gt.prototype.setProperties=Gt.prototype.nm,Gt.prototype.apply=Gt.prototype.apply,Gt.prototype.attach=Gt.prototype.Du,Gt.prototype.set=Gt.prototype.set,Gt.prototype.isEnabledObject=Gt.prototype.If,Gt.prototype.isVisibleObject=Gt.prototype.Ed,Gt.prototype.isContainedBy=Gt.prototype.rg,Gt.prototype.getNearestIntersectionPoint=Gt.prototype.rs,Gt.prototype.getLocalPoint=Gt.prototype.qs,Gt.prototype.getDocumentScale=Gt.prototype.Df,Gt.prototype.getDocumentAngle=Gt.prototype.li,Gt.prototype.getDocumentBounds=Gt.prototype.mi,Gt.prototype.getDocumentPoint=Gt.prototype.ga,Gt.prototype.intersectsRect=Gt.prototype.Yc,Gt.prototype.containedInRect=Gt.prototype.fh,Gt.prototype.containsRect=Gt.prototype.Re,Gt.prototype.containsPoint=Gt.prototype.ca,Gt.prototype.raiseChanged=Gt.prototype.g,Gt.prototype.raiseChangedEvent=Gt.prototype.cb,Gt.prototype.addCopyProperty=Gt.prototype.Vw;var wg=null;Gt.className="GraphObject",wg=new Si,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(ii,ii.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ii){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(Gr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Mi(0,0,2.76142374915397,2.761423749153969),spot2:new Mi(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 ii&&(x=E.fb("ButtonBorder"),x instanceof Gr)){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 ii&&(x=E.fb("ButtonBorder"),x instanceof Gr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ii&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Gr){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 ii&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Gr){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 ii&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Gr){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 ii&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Gr))){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(Gr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:na},new Bs("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Bs("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ko&&(x=x.adornedPart),x instanceof Ci){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(Gr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:na},new Bs("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 Ko&&(x=x.adornedPart),x instanceof Or){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(Ko,ii.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new $e(0,3),shadowBlur:5},nc(Gr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Mi(0,0,4,6),spot2:new Mi(1,1,-4,-4)}))}),ph("ContextMenu",function(){return nc(Ko,ii.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new $e(0,3),shadowBlur:5},new Bs("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),ph("ContextMenuButton",function(){var a=nc("Button");a.stretch=Ui;var y=a.fb("ButtonBorder");return y instanceof Gr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Mi(0,0,2,3),y.spot2=new Mi(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(Gr,{name:"ButtonIcon",strokeWidth:2},new Bs("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Gr&&(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(Gr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ei,geometryStretch:Wi,visible:!1},y!==""?new Bs("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ii){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 Yi(0,1,0,0)});var y=nc(ii,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Yi(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}),Gt.None=Jn=new qt(Gt,"None",0),Gt.Default=zr=new qt(Gt,"Default",0),Gt.Vertical=vr=new qt(Gt,"Vertical",4),Gt.Horizontal=Ui=new qt(Gt,"Horizontal",5),Gt.Fill=ei=new qt(Gt,"Fill",3),Gt.Uniform=Wi=new qt(Gt,"Uniform",1),Gt.UniformToFill=xo=new qt(Gt,"UniformToFill",2),Gt.FlipVertical=ro=new qt(Gt,"FlipVertical",1),Gt.FlipHorizontal=Oo=new qt(Gt,"FlipHorizontal",2),Gt.FlipBoth=ua=new qt(Gt,"FlipBoth",3),Gt.make=nc,Gt.getBuilders=function(){var a=new Si,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},Gt.defineBuilder=ph,Gt.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 Gt))return y&&E.set(y),E;It('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Gt.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=Ro,this.o=Sa,this.hg=zr,this.ob=this.Bi=1,this.Pf=Jn,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=Fi,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=_o,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?gt.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new Lu(this,x)}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},Pt.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 Lu(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new bf,this.j=pm(this),this.Nj=pm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Ha++,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+")")}Me=Lu.prototype,Me.arc=function(a,y,x,E,b,z,ne,re){var ae=2*Math.PI,le=ae-1e-6,ce=x*Math.cos(E),me=x*Math.sin(E),Ce=a+ce,Fe=y+me,De=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(ne-Ce)||1e-6<Math.abs(re-Fe))&&this.path.push(["L",Ce,+Fe]),0>E&&(E=E%ae+ae),E>le?(this.path.push(["A",x,x,0,1,De,a-ce,y-me]),this.path.push(["A",x,x,0,1,De,Ce,Fe])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),De,a+x*Math.cos(b),y+x*Math.sin(b)])},Me.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Me.Se=function(a){this.addPath(this.path,this.rb,a||0)},Me.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Me.clearRect=function(){},Me.clip=function(){this.Yl.clipPath=!0},Me.closePath=function(){this.path.push(["z"])},Me.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},Me.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"+Ha++,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+")"},Me.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,ae){E=re/E,b=ae/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)}Me.drawImage=function(a,y,x,E,b,z,ne,re,ae){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,ae=b=a),E=E||0,b=b||0,re=re||0,ae=ae||0,$y(this,y,x,E,b,z||0,ne||0,re,ae),z={x:0,y:0,width:ce||E,height:a||b,href:le},Ut.$(E,re)&&Ut.$(b,ae)?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)},Me.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ov(this,this.Yl)},Me.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Me.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)},Me.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))},Me.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])},Me.lineTo=function(a,y){this.path.push(["L",a,y])},Me.moveTo=function(a,y){this.path.push(["M",a,y])},Me.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Me.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"])},Me.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},Me.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())},Me.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]+")"}Me.scale=function(a,y){this.rb.scale(a,y)},Me.translate=function(a,y){this.rb.translate(a,y)},Me.transform=function(){},Me.yc=function(){},Me.stroke=function(){t1(this,this.Yl)},Me.jk=function(){this.clipInsteadOfFill||this.stroke()},Me.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Me.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"+Ha++,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],ae=re.color;re={offset:re.offset,"stop-color":ae},/^rgba\(/.test(ae)&&(ae=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(ae),re["stop-color"]="rgb("+ae[1]+","+ae[2]+","+ae[3]+")",re["stop-opacity"]=ae[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+")"}Me.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=$t(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 ae in a)ae!=="transform"&&re[x].setAttributeNS(null,ae,a[ae])}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}Me.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}Me.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Me.fs=function(){this.Ct=!1},Me.Vc=function(){},Me.Wx=function(){},Lu.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Lu.prototype.getImageData=function(){return null},Lu.prototype.measureText=function(){return null};function 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()))}Lu.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Lu.className="SVGContext",cn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new ud(this,gt.document));var y=new ud(this,gt.document,!0);a===void 0&&(a=new Ti);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?gt.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},Pt.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&&It("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 Hr,this.isTemporary=!!x}Me=Af.prototype,Me.Wx=function(a){this.Z.imageSmoothingEnabled=a},Me.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Me.beginPath=function(){this.Z.beginPath()},Me.Se=function(){},Me.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Me.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Me.clip=function(){this.Z.clip()},Me.closePath=function(){this.Z.closePath()},Me.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Me.createPattern=function(a,y){return this.Z.createPattern(a,y)},Me.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Me.drawImage=function(a,y,x,E,b,z,ne,re,ae){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,ne,re,ae)},Me.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Me.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Me.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Me.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Me.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Me.lineTo=function(a,y){this.Z.lineTo(a,y)},Me.measureText=function(a){return this.Z.measureText(a)},Me.moveTo=function(a,y){this.Z.moveTo(a,y)},Me.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Me.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Me.restore=function(){this.Z.restore()},Me.save=function(){this.yc(),this.Z.save()},Af.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Me=Af.prototype,Me.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Me.scale=function(a,y){this.El.scale(a,y)},Me.translate=function(a,y){this.El.translate(a,y)},Me.stroke=function(){this.Z.stroke()},Me.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}},Me.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Me.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)},Me.jk=function(){this.Hm||this.stroke()},Me.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Me.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Me.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Cx),a.lineDashOffset=0)},Me.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Me.Hs=function(){},Pt.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){Fg||(hv(),Fg=!0),Rr(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=rs,this.Lk=Dl):this.Lk=a===ic?this.Qd=yo:this.Qd=ga,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},Me=ta.prototype,Me.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Me.ka=function(){return Object.isFrozen(this)&&It("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Me.qb=function(a){a.classType===ta&&(this.type=a)},Me.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===Mg?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Me.addColorStop=function(a,y){return this._isFrozen&&gn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&nn(a,"0 <= loc <= 1",ta,"addColorStop:loc"),this.we===null&&(this.we=new Si),this.we.add(a,y),this.na===mh&&(this.type=Ud),this.xe=null,this},Me.Vz=function(a,y){if(this._isFrozen&&gn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Lg: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?Lg:x,Yd(a),bg(y,x)}Me.Wy=function(a,y){if(this._isFrozen&&gn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Lg: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?Lg:x,Yd(a),bg(-y,x)}function sv(a,y,x){Yd(a),a=Aa.j;var E=Aa.u,b=Aa.o,z=Aa.F;return Yd(y),x===void 0&&(x=.5),"rgba("+Math.round((Aa.j-a)*x+a)+", "+Math.round((Aa.u-E)*x+E)+", "+Math.round((Aa.o-b)*x+b)+", "+Math.round((Aa.F-z)*x+z)+")"}Me.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*Aa.j+587*Aa.u+114*Aa.o)/1e3):!1}function bg(a,y){switch(y){case Lg:y=100*uv(Aa.j);var x=100*uv(Aa.u),E=100*uv(Aa.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=Aa.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,Aa.j=255*cv((3.2404542*Ql.j+-1.5371385*Ql.u+-.4985314*Ql.o)/100),Aa.u=255*cv(a/100),Aa.o=255*cv(y/100),Aa.F=Ql.F,Aa.j=Math.round(Aa.j),255<Aa.j?Aa.j=255:0>Aa.j&&(Aa.j=0),Aa.u=Math.round(Aa.u),255<Aa.u?Aa.u=255:0>Aa.u&&(Aa.u=0),Aa.o=Math.round(Aa.o),255<Aa.o?Aa.o=255:0>Aa.o&&(Aa.o=0),"rgba("+Aa.j+", "+Aa.u+", "+Aa.o+", "+Aa.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:It("Unknown color space: "+y)}}function Yd(a){Fg||(hv(),Fg=!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,Aa.j=a[0],Aa.u=a[1],Aa.o=a[2],Aa.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Aa.j=0,Aa.u=0,Aa.o=0,Aa.F=1)}}function lv(){var a=Aa.j/255,y=Aa.u/255,x=Aa.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=Aa.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||It("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){gv=fs?new Sc(null,void 0,{willReadFrequently:!0}).context:null}Pt.Object.defineProperties(ta.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&gn(this,a),this.na=a,this.start.Mc()&&(a===Ud?this.start=rs:a===ic&&(this.start=yo)),this.end.Mc()&&(a===Ud?this.end=Dl:a===ic&&(this.end=yo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&gn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&gn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&gn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&gn(this,a),0>a&&nn(a,">= zero",ta,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&gn(this,a),0>a&&nn(a,">= zero",ta,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&gn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&gn(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,Aa=new vp,Wu=new vp,Ql=new vp,wd=new vp,Fg=!1;ta.className="Brush";var mh;ta.Solid=mh=new qt(ta,"Solid",0);var Ud;ta.Linear=Ud=new qt(ta,"Linear",1);var ic;ta.Radial=ic=new qt(ta,"Radial",2);var Mg;ta.Pattern=Mg=new qt(ta,"Pattern",4);var Lg;ta.Lab=Lg=new qt(ta,"Lab",5);var o1;ta.HSL=o1=new qt(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;Fg||(hv(),Fg=!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 _s(){this.xa="Base"}_s.prototype.measure=function(){},_s.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},_s.prototype.arrange=function(){},_s.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},_s.prototype.iA=function(a){a.Uj()},_s.prototype.gc=function(){},Pt.Object.defineProperties(_s.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ii}}}),_s.prototype.remeasureObject=_s.prototype.iA,_s.prototype.arrangeElement=_s.prototype.Ly,_s.prototype.measureElement=_s.prototype.Yz,_s.className="PanelLayout";function ym(){this.xa="Base"}Kt(ym,_s),ym.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length;a=Xd(a);for(var ae=0;ae<re;ae++){var le=E[ae];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 Fe=le.position.y;isFinite(Ce)||(Ce=0),isFinite(Fe)||(Fe=0),le instanceof Gr&&le.isGeometryPositioned&&(le=le.strokeWidth/2,Ce-=le,Fe-=le),vo(b,Ce,Fe,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,ae=z.position.x,le=z.position.y;if(ae=isNaN(ae)?-a:ae-a,le=isNaN(le)?-x:le-x,z instanceof Gr&&z.isGeometryPositioned){var ce=z.strokeWidth/2;ae-=ce,le-=ce}z.visible&&z.arrange(ae+re.left,le+re.top,ne.width,ne.height)}};function Sm(){this.xa="Base"}Kt(Sm,_s),Sm.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length;y=Pn(),z=Xd(a);for(var ae=0;ae<re;ae++){var le=E[ae];if(le.visible||le===z){var ce=du(le,!1);if(ce!==Jn&&ce!==Ui)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++)ae=y[a],(ae.visible||ae===z)&&(ce=ae.margin,re=ce.right+ce.left,ce=ce.top+ce.bottom,ae.measure(1/0,x,0,ne),ae=ae.measuredBounds,ce=Math.max(ae.height+ce,0),b.width+=Math.max(ae.width+re,0),b.height=Math.max(b.height,ce));Rn(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,ae=0;ae<E;ae++){var le=z,ce=y[ae];if(ce.visible){var me=ce.measuredBounds,Ce=ce.margin,Fe=Ce.top+Ce.bottom,De=z+b.bottom,ze=me.height,ut=du(ce,!1);(isNaN(ce.desiredSize.height)&&ut===ei||ut===vr)&&(ze=Math.max(x.height-Fe-De,0)),Fe=ze+Fe+De,De=ce.alignment,De.Xb()&&(De=a.defaultAlignment),De.sb()||(De=yo),ne&&(re-=me.width+Ce.left+Ce.right),ce.arrange(re+De.offsetX+Ce.left,le+De.offsetY+Ce.top+(x.height*De.y-Fe*De.y),me.width,ze),ne||(re+=me.width+Ce.left+Ce.right)}}};function xm(){this.xa="Base"}Kt(xm,_s),xm.prototype.measure=function(a,y,x,E,b,z){var ne=E.length;x=Pn();for(var re=Xd(a),ae=0;ae<ne;ae++){var le=E[ae];if(le.visible||le===re){var ce=du(le,!1);if(ce!==Jn&&ce!==vr)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,Yo(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++)ae=x[a],(ae.visible||ae===re)&&(le=ae.margin,ne=le.right+le.left,le=le.top+le.bottom,ae.measure(y,1/0,z,0),ae=ae.measuredBounds,le=Math.max(ae.height+le,0),b.width=Math.max(b.width,Math.max(ae.width+ne,0)),b.height+=le);Rn(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,ae=0;ae<E;ae++){var le=z,ce=y[ae];if(ce.visible){var me=ce.measuredBounds,Ce=ce.margin,Fe=Ce.left+Ce.right,De=z+b.right,ze=me.width,ut=du(ce,!1);(isNaN(ce.desiredSize.width)&&ut===ei||ut===Ui)&&(ze=Math.max(x.width-Fe-De,0)),Fe=ze+Fe+De,De=ce.alignment,De.Xb()&&(De=a.defaultAlignment),De.sb()||(De=yo),ne&&(re-=me.height+Ce.bottom+Ce.top),ce.arrange(le+De.offsetX+Ce.left+(x.width*De.x-Fe*De.x),re+De.offsetY+Ce.top,ze,me.height),ne||(re+=me.height+Ce.bottom+Ce.top)}}};function Pm(){this.xa="Base"}Kt(Pm,_s),Pm.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length,ae=a.Pb(),le=ae.margin,ce=le.right+le.left,me=le.top+le.bottom;ae.measure(y,x,z,ne);var Ce=ae.measuredBounds;z=Ce.width,ne=Ce.height;var Fe=Math.max(z+ce,0),De=Math.max(ne+me,0),ze=a.isClipping,ut=An.allocAt(-le.left,-le.top,Fe,De),qe=An.allocAt(0,0,z,ne);pv(ae,qe,!0),z=qe.width,ne=qe.height;for(var wt=!0,At=Xd(a),Bt=0;Bt<re;Bt++){var Ht=E[Bt];Ce=y;var dn=x;if(Ht!==ae&&(Ht.visible||Ht===At)){le=Ht.margin;var Pi=le.left,Ii=le.top;switch(Fe=le.right+le.left,De=le.top+le.bottom,le=du(Ht,!1),le){case ei:Ce=z,dn=ne,Ii=Pi=De=Fe=0;break;case Ui:Ce=z,Pi=Fe=0;break;case vr:dn=ne,Ii=De=0}Ht.measure(Ce,dn,0,0),Ce=Ht.measuredBounds,Fe=Math.max(Ce.width+Fe,0),De=Math.max(Ce.height+De,0),le=Ht.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=yo);var Bi=Ht.alignmentFocus;if(Bi.Xb()&&(Bi=yo),dn=null,Ht instanceof ii&&Ht.$e!==""&&(dn=Ht.fb(Ht.$e),dn===Ht&&(dn=null)),Pi=qe.x-Pi,Ii=qe.y-Ii,dn!==null){for(Ht.arrange(0,0,Ce.width,Ce.height),Ce=dn.actualBounds,Ce=$e.allocAt(Ce.x+(Bi.x*Ce.width-Bi.offsetX),Ce.y+(Bi.y*Ce.height-Bi.offsetY)),dn=dn.panel;dn!==Ht;)dn.transform.Ga(Ce),dn=dn.panel;Pi+=le.x*z+le.offsetX-Ce.x,Ii+=le.y*ne+le.offsetY-Ce.y,$e.free(Ce)}else Pi+=le.x*z+le.offsetX-(Bi.x*Ce.width+Bi.offsetX),Ii+=le.y*ne+le.offsetY-(Bi.y*Ce.height+Bi.offsetY);wt?(wt=!1,b.h(Pi,Ii,Fe,De)):vo(b,Pi,Ii,Fe,De)}}switch(wt?b.assign(ut):ze?b.Uu(qe.x,qe.y,qe.width,qe.height):vo(b,ut.x,ut.y,ut.width,ut.height),An.free(ut),An.free(qe),le=ae.stretch,le===zr&&(le=du(ae,!1)),le){case Jn:return;case ei:if(!isFinite(y)&&!isFinite(x))return;break;case Ui:if(!isFinite(y))return;break;case vr:if(!isFinite(x))return}for(Ce=ae.measuredBounds,z=Ce.width,ne=Ce.height,Fe=Math.max(z+ce,0),De=Math.max(ne+me,0),le=ae.margin,qe=An.allocAt(-le.left,-le.top,Fe,De),pv(ae,qe,!0),z=qe.width,ne=qe.height,y=0;y<re;y++)x=E[y],x===ae||!x.visible&&x!==At||(le=x.margin,Fe=le.right+le.left,De=le.top+le.bottom,Ce=x.measuredBounds,Fe=Math.max(Ce.width+Fe,0),De=Math.max(Ce.height+De,0),ce=x.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=yo),x=x.alignmentFocus,x.Xb()&&(x=yo),wt?(wt=!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,Fe,De)):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,Fe,De));wt?b.assign(ut):ze?b.Uu(qe.x,qe.y,qe.width,qe.height):vo(b,ut.x,ut.y,ut.width,ut.height),An.free(qe)},Pm.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,ne=z.width,re=z.height,ae=a.padding;z=ae.left,ae=ae.top;var le=z-x.x,ce=ae-x.y;for(b.arrange(le,ce,ne,re),ne=An.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,Fe=le.height;ce=me.alignment,ce.Xb()&&(ce=a.defaultAlignment),ce.sb()||(ce=yo);var De=me.alignmentFocus;if(De.Xb()&&(De=yo),le=null,me instanceof ii&&me.$e!==""&&(le=me.fb(me.$e),le===me&&(le=null)),le!==null){var ze=le.actualBounds;for(De=$e.allocAt(ze.x+(De.x*ze.width-De.offsetX),ze.y+(De.y*ze.height-De.offsetY)),le=le.panel;le!==me;)le.transform.Ga(De),le=le.panel;le=ce.x*ne.width+ce.offsetX-De.x,ce=ce.y*ne.height+ce.offsetY-De.y,$e.free(De)}else le=ce.x*ne.width+ce.offsetX-(De.x*Ce+De.offsetX),ce=ce.y*ne.height+ce.offsetY-(De.y*Fe+De.offsetY);le+=ne.x-x.x,ce+=ne.y-x.y,me.visible&&me.arrange(z+le,ae+ce,Ce,Fe)}}An.free(ne)};function pv(a,y,x){var E=null;if(a instanceof ii&&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"}Kt(wm,_s),wm.prototype.measure=function(a,y,x,E,b,z,ne){var re=E.length,ae=a.Pb(),le=ae.margin,ce=y,me=x,Ce=le.right+le.left,Fe=le.top+le.bottom;ae.measure(y,x,z,ne),le=ae.measuredBounds;var De=0,ze=null;ae instanceof Gr&&(ze=ae,De=ze.strokeWidth*ze.scale);var ut=Math.max(le.width+Ce,0);le=Math.max(le.height+Fe,0);var qe=Sv(ae),wt=qe.x*ut+qe.offsetX;qe=qe.y*le+qe.offsetY;var At=xv(ae),Bt=At.x*ut+At.offsetX;for(At=At.y*le+At.offsetY,isFinite(y)&&(ce=Math.max(Math.abs(wt-Bt)-De,0)),isFinite(x)&&(me=Math.max(Math.abs(qe-At)-De,0)),De=oi.alloc(),De.h(0,0),a=Xd(a),At=0;At<re;At++)qe=E[At],qe===ae||!qe.visible&&qe!==a||(le=qe.margin,ut=le.right+le.left,wt=le.top+le.bottom,qe.measure(ce,me,0,0),le=qe.measuredBounds,ut=Math.max(le.width+ut,0),le=Math.max(le.height+wt,0),De.h(Math.max(ut,De.width),Math.max(le,De.height)));if(re===1)b.width=ut,b.height=le,oi.free(De);else{switch(qe=Sv(ae),At=xv(ae),re=E=0,At.x!==qe.x&&At.y!==qe.y&&(E=De.width/Math.abs(At.x-qe.x),re=De.height/Math.abs(At.y-qe.y)),oi.free(De),De=0,ze!==null&&(De=ze.strokeWidth*ze.scale,Av(ze)===Wi&&(E=re=Math.max(E,re))),E+=Math.abs(qe.offsetX)+Math.abs(At.offsetX)+De,re+=Math.abs(qe.offsetY)+Math.abs(At.offsetY)+De,ze=ae.stretch,ze===zr&&(ze=du(ae,!1)),ze){case Jn:ne=z=0;break;case ei:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case Ui:isFinite(y)&&(E=y),ne=0;break;case vr:z=0,isFinite(x)&&(re=x)}ae.Uj(),ae.measure(E,re,z,ne),b.width=ae.measuredBounds.width+Ce,b.height=ae.measuredBounds.height+Fe}},wm.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=An.alloc();z.h(0,0,1,1);var ne=E.margin,re=ne.left;ne=ne.top;var ae=a.padding,le=ae.left;ae=ae.top,E.arrange(le+re,ae+ne,b.width,b.height);var ce=Sv(E),me=xv(E),Ce=ce.y*b.height+ce.offsetY,Fe=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,Fe,me,0,0),z.x+=re+le,z.y+=ne+ae,b=0;b<x;b++)re=y[b],re!==E&&(le=re.measuredBounds,ne=re.margin,ae=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=yo),ae=z.width*Ce.x+Ce.offsetX-ae*Ce.x+ne.left+z.x,ne=z.height*Ce.y+Ce.offsetY-ce*Ce.y+ne.top+z.y,re.visible&&(Qo(z.x,z.y,z.width,z.height,ae,ne,le.width,le.height)?re.arrange(ae,ne,le.width,le.height):re.arrange(ae,ne,le.width,le.height,new An(z.x,z.y,z.width,z.height))));An.free(z)};function Cm(){this.xa="Base",this.name="Table"}Kt(Cm,_s),Cm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,ne=Pn(),re=Pn(),ae=0;ae<z;ae++){var le=E[ae],ce=le instanceof ii?le:null;if(ce!==null&&vh(ce)&&le.visible){re.push(ce);for(var me=ce.O.s,Ce=me.length,Fe=0;Fe<Ce;Fe++){var De=me[Fe];ce.type===ii.TableRow?De.row=le.row:ce.type===ii.TableColumn&&(De.column=le.column),ne.push(De)}}else ne.push(le)}z=ne.length,z===0&&(a.Fb(0),a.Eb(0));for(var ze=[],ut=0;ut<z;ut++){var qe=ne[ut];qe.visible&&(Gs(qe,!0),xd(qe,!0),ze[qe.row]||(ze[qe.row]=[]),ze[qe.row][qe.column]||(ze[qe.row][qe.column]=[]),ze[qe.row][qe.column].push(qe))}Rn(ne);var wt=Pn(),At=Pn(),Bt=Pn(),Ht={count:0},dn={count:0},Pi=y,Ii=x,Bi=a.rowDefs,si=a.colDefs,Vn=null;z=Bi.length;for(var Tr=0;Tr<z;Tr++)Vn=Bi[Tr],Vn!==void 0&&(Vn.actual=0);z=si.length;for(var Fr=0;Fr<z;Fr++)Vn=si[Fr],Vn!==void 0&&(Vn.actual=0);for(var Uo=ze.length,xa=0,il=0;il<Uo;il++)ze[il]&&(xa=Math.max(xa,ze[il].length));var cl=Math.min(a.topIndex,Uo-1),Wl=Math.min(a.leftIndex,xa-1),rl=0;Uo=ze.length;for(var Fh=Xd(a),Ns=0;Ns<Uo;Ns++)if(ze[Ns]){xa=ze[Ns].length;var $c=a.Fb(Ns);$c.actual=0;for(var Zl=$c.oc=0;Zl<xa;Zl++)if(ze[Ns][Zl]){var Mh=a.Eb(Zl);wt[Zl]===void 0&&(Mh.actual=0,Mh.oc=0,wt[Zl]=!0);for(var Ku=ze[Ns][Zl],Cc=Ku.length,Nu=0;Nu<Cc;Nu++){var wu=Ku[Nu];if(wu.visible||wu===Fh){var rf=1<wu.rowSpan||1<wu.columnSpan;rf&&(Ns<cl||Zl<Wl||At.push(wu));var qc=wu.margin,$g=qc.right+qc.left,ku=qc.top+qc.bottom,Gl=Uc(wu,$c,Mh,!1),rm=wu.desiredSize,hg=!isNaN(rm.height),hd=!isNaN(rm.width)&&hg;if(rf||Gl===Jn||hd||Ns<cl||Zl<Wl||(Ht[Zl]!==void 0||Gl!==ei&&Gl!==Ui||(Ht[Zl]=-1,Ht.count++),dn[Ns]!==void 0||Gl!==ei&&Gl!==vr||(dn[Ns]=-1,dn.count++),Bt.push(wu)),wu.measure(1/0,1/0,0,0),!(Ns<cl||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===Jn||Gl===Ui)){Vn=a.Fb(Ns);var of=Vn.Wc();rl=Math.max(Tu-Vn.actual,0),rl+of>Ii&&(rl=Math.max(Ii-of,0));var Y0=Vn.oa===0;Vn.oc=Vn.oc+rl,Vn.actual=Vn.oa+rl,Ii=Math.max(Ii-(rl+(Y0?of:0)),0)}if(wu.columnSpan===1&&(Gl===Jn||Gl===vr)){Vn=a.Eb(Zl);var om=Vn.Wc();rl=Math.max(Of-Vn.actual,0),rl+om>Pi&&(rl=Math.max(Pi-om,0));var Zy=Vn.oa===0;Vn.oc=Vn.oc+rl,Vn.actual=Vn.oa+rl,Pi=Math.max(Pi-(rl+(Zy?om:0)),0)}rf&&wu.Uj()}}}}}Rn(wt);var Bd=0,Qd=0;z=a.columnCount;for(var fg=0;fg<z;fg++){var af=si[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=Bi[qg];sf!==void 0&&(Qd+=isNaN(sf.Hc)?sf.oc:sf.Hc,sf.oc!==0&&(Qd+=sf.Wc()))}Pi=Math.max(y-Bd,0);var Nd=Ii=Math.max(x-Qd,0),Lh=Pi;z=Bt.length;for(var Eu=0;Eu<z;Eu++){var fd=Bt[Eu],U0=a.Fb(fd.row),$d=a.Eb(fd.column),ep=fd.measuredBounds,ed=fd.margin,If=ed.right+ed.left,gd=ed.top+ed.bottom;Ht[fd.column]=$d.oc===0&&Ht[fd.column]!==void 0?Math.max(ep.width+If,Ht[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,jc;for(jc in dn)jc!=="count"&&(gg+=dn[jc]);for(jc in Ht)jc!=="count"&&(tp+=Ht[jc]);for(var vl=oi.alloc(),am=0;am<z;am++){var ru=Bt[am];if(ru.visible||ru===Fh){var ks=a.Fb(ru.row),ou=a.Eb(ru.column),qd=0;isFinite(ou.width)?qd=ou.width:(isFinite(Pi)&&Ht[ru.column]!==null?tp===0?qd=ou.actual+Pi:qd=Ht[ru.column]/tp*Lh:Ht[ru.column]!==null?qd=Pi:qd=ou.actual||Pi,qd=Math.max(0,qd-ou.Wc()));var Dh=0;switch(isFinite(ks.height)?Dh=ks.height:(isFinite(Ii)&&dn[ru.row]!==null?gg===0?Dh=ks.actual+Ii:Dh=dn[ru.row]/gg*Nd:dn[ru.row]!==null?Dh=Ii:Dh=ks.actual||Ii,Dh=Math.max(0,Dh-ks.Wc())),vl.h(Math.max(ou.minimum,Math.min(qd,ou.maximum)),Math.max(ks.minimum,Math.min(Dh,ks.maximum))),Gl=Uc(ru,ks,ou,!1),Gl){case Ui:vl.height=Math.max(vl.height,ks.actual+Ii);break;case vr:vl.width=Math.max(vl.width,ou.actual+Pi)}var Rf=ru.margin,Gy=Rf.right+Rf.left,X0=Rf.top+Rf.bottom;ru.Uj(),ru.measure(vl.width,vl.height,ou.minimum,ks.minimum);var np=ru.measuredBounds,zf=Math.max(np.width+Gy,0),pg=Math.max(np.height+X0,0);isFinite(Pi)&&(zf=Math.min(zf,vl.width)),isFinite(Ii)&&(pg=Math.min(pg,vl.height));var bu=0;bu=ks.actual,ks.actual=Math.max(ks.actual,pg),ks.oc=Math.max(ks.oc,pg),rl=ks.actual-bu,Ii=Math.max(Ii-rl,0),dn[ru.row]===null&&(Nd=Math.max(Nd-rl,0)),bu=ou.actual,ou.actual=Math.max(ou.actual,zf),ou.oc=Math.max(ou.oc,zf),rl=ou.actual-bu,Pi=Math.max(Pi-rl,0),Ht[ru.column]===null&&(Lh=Math.max(Lh-rl,0))}}Rn(Bt);var eh=oi.alloc(),td=Pn(),lc=Pn();if(z=At.length,z!==0){for(var lf=0;lf<Uo;lf++)if(ze[lf]){xa=ze[lf].length;var ip=a.Fb(lf);td[lf]=ip.actual;for(var uf=0;uf<xa;uf++)if(ze[lf][uf]){var _0=a.Eb(uf);lc[uf]=_0.actual}}}for(var rp=0;rp<z;rp++){var Ps=At[rp];if(Ps.visible||Ps===Fh){var Hc=a.Fb(Ps.row),Ec=a.Eb(Ps.column);switch(vl.h(Math.max(Ec.minimum,Math.min(y,Ec.maximum)),Math.max(Hc.minimum,Math.min(x,Hc.maximum))),Gl=Uc(Ps,Hc,Ec,!1),Gl){case ei:lc[Ec.index]!==0&&(vl.width=Math.min(vl.width,lc[Ec.index])),td[Hc.index]!==0&&(vl.height=Math.min(vl.height,td[Hc.index]));break;case Ui:lc[Ec.index]!==0&&(vl.width=Math.min(vl.width,lc[Ec.index]));break;case vr:td[Hc.index]!==0&&(vl.height=Math.min(vl.height,td[Hc.index]))}isFinite(Ec.width)&&(vl.width=Ec.width),isFinite(Hc.height)&&(vl.height=Hc.height),eh.h(0,0);for(var J0=Ec.minimum,Ou=Hc.minimum,Bh=1;Bh<Ps.rowSpan&&!(Ps.row+Bh>=a.rowCount);Bh++)Vn=a.Fb(Ps.row+Bh),rl=0,rl=Gl===ei||Gl===vr?Math.max(Vn.minimum,td[Ps.row+Bh]===0?Vn.maximum:Math.min(td[Ps.row+Bh],Vn.maximum)):Math.max(Vn.minimum,isNaN(Vn.Hc)?Vn.maximum:Math.min(Vn.Hc,Vn.maximum)),eh.height+=rl,Ou+=Vn.minimum;for(var bc=1;bc<Ps.columnSpan&&!(Ps.column+bc>=a.columnCount);bc++)Vn=a.Eb(Ps.column+bc),rl=0,rl=Gl===ei||Gl===Ui?Math.max(Vn.minimum,lc[Ps.column+bc]===0?Vn.maximum:Math.min(lc[Ps.column+bc],Vn.maximum)):Math.max(Vn.minimum,isNaN(Vn.Hc)?Vn.maximum:Math.min(Vn.Hc,Vn.maximum)),eh.width+=rl,J0+=Vn.minimum;vl.width+=eh.width,vl.height+=eh.height;var op=Ps.margin,cf=op.right+op.left,sm=op.top+op.bottom;Ps.measure(vl.width,vl.height,J0,Ou);for(var ap=Ps.measuredBounds,pd=Math.max(ap.width+cf,0),jf=Math.max(ap.height+sm,0),df=0,sp=0;sp<Ps.rowSpan&&!(Ps.row+sp>=a.rowCount);sp++)Vn=a.Fb(Ps.row+sp),df+=Vn.total||0;if(df<jf){var Nh=jf-df,kd=jf-df;if(Ps.spanAllocation!==null)for(var kh=Ps.spanAllocation,th=0;th<Ps.rowSpan&&!(0>=Nh)&&!(Ps.row+th>=a.rowCount);th++){Vn=a.Fb(Ps.row+th);var Th=Vn.oa||0,Hf=kh(Ps,Vn,kd);Vn.actual=Math.min(Vn.maximum,Th+Hf),Vn.oa!==Th&&(Nh-=Vn.oa-Th)}for(;0<Nh;){var nd=Vn.oa||0;if(isNaN(Vn.height)&&Vn.maximum>nd&&(Vn.actual=Math.min(Vn.maximum,nd+Nh),Vn.oa!==nd&&(Nh-=Vn.oa-nd)),Vn.index===0)break;Vn=a.Fb(Vn.index-1)}}for(var mg=0,Oh=0;Oh<Ps.columnSpan&&!(Ps.column+Oh>=a.columnCount);Oh++)Vn=a.Eb(Ps.column+Oh),mg+=Vn.total||0;if(mg<pd){var vg=pd-mg,Ky=pd-mg;if(Ps.spanAllocation!==null)for(var nh=Ps.spanAllocation,Wf=0;Wf<Ps.columnSpan&&!(0>=vg)&&!(Ps.column+Wf>=a.columnCount);Wf++){Vn=a.Eb(Ps.column+Wf);var lm=Vn.oa||0,Vy=nh(Ps,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)}}}}Rn(At),oi.free(eh),oi.free(vl),td!==void 0&&Rn(td),lc!==void 0&&Rn(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++)si[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!==Jn&&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++)si[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++)Bi[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!==Jn&&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++)Bi[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===ii.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),Gs(dm,!1)}Rn(re),a.inRowsCols=ze},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,ae,le=ne.length,ce=0,me=0;me<le;me++)ne[me]&&(ce=Math.max(ce,ne[me].length));ae=a.rowDefs,re=a.colDefs;var Ce=me=0,Fe=Math.min(a.topIndex,le-1);if(0<ae.length){for(;Fe!==le&&(ae[Fe]===void 0||ae[Fe].oa===0);)Fe++;Fe=Math.max(Math.min(Fe,le-1),0),me=-ae[Fe].position}var De=Math.min(a.leftIndex,ce-1);if(0<re.length){for(;De!==ce&&(re[De]===void 0||re[De].oa===0);)De++;De=Math.max(Math.min(De,ce-1),0),Ce=-re[De].position}for(var ze=0,ut=0;ze!==le&&ae[ze]===void 0;)ze++;for(;ut!==le&&re[ut]===void 0;)ut++;ce=a.part,a.Fb(ze),a.Eb(ut);for(var qe=0;qe<y.length;qe++){var wt=y[qe];if(wt instanceof ii&&wt.visible&&vh(wt)){if(wt.type===ii.TableRow){re=a.Fb(wt.row);var At=a.Eb(ut)}else re=a.Fb(ze),At=a.Eb(wt.column);ae=re.position+me+b,re.oa!==0&&(ae+=re.Io(Math.max(ze,Fe))),re=At.position+Ce+z,At.oa!==0&&(re+=At.Io(Math.max(ut,De))),At=wt.measuredBounds,wt.Uk(),wt.actualBounds.ka();var Bt=wt.actualBounds,Ht=An.allocAt(Bt.x,Bt.y,Bt.width,Bt.height);Bt.x=wt.type===ii.TableRow?z:re,Bt.y=wt.type===ii.TableColumn?b:ae,Bt.width=At.width,Bt.height=At.height,wt.actualBounds.freeze(),xd(wt,!1),Kr(Ht,Bt)||ce===null||(ce.oh(),wt.Pn(ce)),An.free(Ht)}}for(qe=oi.alloc(),wt=0;wt<le;wt++)if(ne[wt]){for(ce=ne[wt].length,At=a.Fb(wt),ae=At.position+me+b,At.oa!==0&&(ae+=At.Io(Math.max(ze,Fe))),Bt=0;Bt<ce;Bt++)if(ne[wt][Bt]){Ht=a.Eb(Bt),re=Ht.position+Ce+z,Ht.oa!==0&&(re+=Ht.Io(Math.max(ut,De)));for(var dn=ne[wt][Bt],Pi=dn.length,Ii=0;Ii<Pi;Ii++){var Bi=dn[Ii],si=Bi.measuredBounds;qe.h(0,0);for(var Vn=1;Vn<Bi.rowSpan&&!(wt+Vn>=a.rowCount);Vn++){var Tr=a.Fb(wt+Vn);Tr.oa!==0&&(qe.height+=Tr.total)}for(Vn=1;Vn<Bi.columnSpan&&!(Bt+Vn>=a.columnCount);Vn++)Tr=a.Eb(Bt+Vn),Tr.oa!==0&&(qe.width+=Tr.total);var Fr=Ht.oa+qe.width,Uo=At.oa+qe.height;Vn=re,Tr=ae;var xa=Fr,il=Uo,cl=re,Wl=ae,rl=Fr,Fh=Uo;re+Fr>x.width&&(rl=Math.max(x.width-re,0)),ae+Uo>x.height&&(Fh=Math.max(x.height-ae,0));var Ns=Bi.alignment;if(Ns.Xb()){Ns=a.defaultAlignment,Ns.sb()||(Ns=yo);var $c=Ns.x,Zl=Ns.y,Mh=Ns.offsetX;Ns=Ns.offsetY;var Ku=Ht.alignment,Cc=At.alignment;Ku.sb()&&($c=Ku.x,Mh=Ku.offsetX),Cc.sb()&&(Zl=Cc.y,Ns=Cc.offsetY)}else $c=Ns.x,Zl=Ns.y,Mh=Ns.offsetX,Ns=Ns.offsetY;(isNaN($c)||isNaN(Zl))&&(Zl=$c=.5,Ns=Mh=0),Ku=si.width,Cc=si.height;var Nu=Bi.margin,wu=Nu.left+Nu.right,rf=Nu.top+Nu.bottom,qc=Uc(Bi,At,Ht,!1);!isNaN(Bi.desiredSize.width)||qc!==ei&&qc!==Ui||(Ku=Math.max(Fr-wu,0)),!isNaN(Bi.desiredSize.height)||qc!==ei&&qc!==vr||(Cc=Math.max(Uo-rf,0)),Fr=Bi.maxSize,Uo=Bi.minSize,Ku=Math.min(Fr.width,Ku),Cc=Math.min(Fr.height,Cc),Ku=Math.max(Uo.width,Ku),Cc=Math.max(Uo.height,Cc),Fr=Cc+rf,Vn+=xa*$c-(Ku+wu)*$c+Mh+Nu.left,Tr+=il*Zl-Fr*Zl+Ns+Nu.top,Bi.visible&&(Qo(cl,Wl,rl,Fh,Vn,Tr,si.width,si.height)?Bi.arrange(Vn,Tr,Ku,Cc):Bi.arrange(Vn,Tr,Ku,Cc,new An(cl,Wl,rl,Fh)))}}}for(oi.free(qe),a=0;a<E;a++)x=y[a],z=x instanceof ii?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"}Kt(Em,_s),Em.prototype.measure=function(){},Em.prototype.arrange=function(){};function bm(){this.xa="Base"}Kt(bm,_s),bm.prototype.measure=function(){},bm.prototype.arrange=function(){};function Am(){this.xa="Base"}Kt(Am,_s),Am.prototype.measure=function(a,y,x,E,b,z,ne){1<E.length&&It("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,ae=E.margin,le=ae.right+ae.left;if(ae=ae.top+ae.bottom,isFinite(y)||isFinite(x)){var ce=E.scale,me=re.width;re=re.height;var Ce=Math.max(y-le,0),Fe=Math.max(x-ae,0),De=1;a.viewboxStretch===Wi?me!==0&&re!==0&&(De=Math.min(Ce/me,Fe/re)):me!==0&&re!==0&&(De=Math.max(Ce/me,Fe/re)),De===0&&(De=1e-4),E.Ca*=De,ce!==E.scale&&(Gs(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+ae,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=yo),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"}Kt(yp,_s),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,ae=z.height,le=Math.ceil(re/b),ce=Math.ceil(ae/E),me=a.gridOrigin,Ce=me.x;me=me.y,y.save(),y.beginPath(),y.rect(0,0,re,ae),y.clip(),y.Se();for(var Fe=[],De=a.O.s,ze=De.length,ut=0;ut<ze;ut++){var qe=De[ut],wt=[];if(Fe.push(wt),qe.visible){var At=qe.interval;if(!(0>At)){qe=vv(qe.figure);for(var Bt=0;Bt<ze;Bt++)if(Bt!==ut){var Ht=De[Bt];Ht.visible&&vv(Ht.figure)===qe&&(Ht=Ht.interval,Ht>At&&wt.push(Ht))}}}}for(De=a.O.s,ze=De.length,ut=0;ut<ze;ut++){var dn=De[ut];if(dn.visible&&(wt=dn.interval||1,qe=Math.abs(wt),!(2>b*qe*x))){if(At=dn.segmentIndex,(!isFinite(At)||isNaN(At))&&(At=0),0>At&&(At=qe-Math.min(-At,qe)),At=Math.round(At%qe),qe=dn.opacity,Bt=1,qe!==1){if(qe===0)continue;Bt=y.globalAlpha,y.globalAlpha=Bt*qe}Ht=Fe[ut];var Pi=!1,Ii=dn.strokeDashArray;if(Ii!==null&&(Pi=!0,y.js(Ii,dn.strokeDashOffset)),dn.figure==="LineV"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,gs(a,y,dn.stroke,!1,!1,z,ne),y.beginPath(),Ii=dn=Math.floor((Ce-b)/b);Ii<=dn+le;Ii++){var Bi=Ii*b+Ce;0<=Bi&&Bi<=re&&Fm(Ii,wt,At,Ht)&&(y.moveTo(Bi,0),y.lineTo(Bi,ae))}y.stroke(),y.Se()}else if(dn.figure==="LineH"&&dn.stroke!==null&&0<dn.strokeWidth){for(y.lineWidth=dn.strokeWidth,gs(a,y,dn.stroke,!1,!1,z,ne),y.beginPath(),Ii=dn=Math.floor((me-E)/E);Ii<=dn+ce;Ii++)Bi=Ii*E+me,0<=Bi&&Bi<=ae&&Fm(Ii,wt,At,Ht)&&(y.moveTo(0,Bi),y.lineTo(re,Bi));y.stroke(),y.Se()}else if(dn.figure==="BarV"&&dn.fill!==null)for(gs(a,y,dn.fill,!0,!1,z,ne),dn=dn.width,isNaN(dn)&&(dn=b),Bi=Ii=Math.floor((Ce-b)/b);Bi<=Ii+le;Bi++){var si=Bi*b+Ce;0<=si+dn&&si<=re&&Fm(Bi,wt,At,Ht)&&y.fillRect(si,0,dn,ae)}else if(dn.figure==="BarH"&&dn.fill!==null)for(gs(a,y,dn.fill,!0,!1,z,ne),dn=dn.height,isNaN(dn)&&(dn=E),Bi=Ii=Math.floor((me-E)/E);Bi<=Ii+ce;Bi++)si=Bi*E+me,0<=si+dn&&si<=ae&&Fm(Bi,wt,At,Ht)&&y.fillRect(0,si,re,dn);Pi&&y.fs(),qe!==1&&(y.globalAlpha=Bt)}}y.restore(),y.Vc(!1)};function Fm(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 Mm(){this.xa="Base"}Kt(Mm,_s),Mm.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof Ko||a instanceof li){var ne=null,re=null;if(a instanceof li&&(ne=a),a instanceof Ko&&(re=a,ne=re.adornedPart,a.j===null&&(a.j=[])),ne instanceof li){var ae=ne;if(z===0)Yo(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof Ko?null:ne.path;y=ne.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ce=ae.points,me=ne.pointsCount;re!==null?re.Ul(!1):ne!==null&&ne.Ul(!1),re=y.width;var Ce=y.height,Fe=a.j;if(Fe.length=0,le!==null){a1(a,re,Ce,le);var De=le.measuredBounds;x.ed(De),Fe.push(De)}De=Hr.alloc();for(var ze=$e.alloc(),ut=$e.alloc(),qe=0;qe<z;qe++){var wt=E[qe];if(wt!==le)if(wt.isPanelMain&&wt instanceof Gr){a1(a,re,Ce,wt);var At=wt.measuredBounds;x.ed(At),Fe.push(At)}else if(2>me)wt.measure(1/0,1/0,0,0),At=wt.measuredBounds,x.ed(At),Fe.push(At);else{var Bt=wt.segmentIndex,Ht=wt.segmentFraction,dn=wt.alignmentFocus;dn.Mc()&&(dn=yo);var Pi=wt.segmentOrientation,Ii=wt.segmentOffset;if(isNaN(Bt)){var Bi=ae.ua;At=Pn(),Bi.Qu(Ht,At);var si=$e.allocAt(At[0],At[1]);if(si.add(ae.i(0)),Bi.type===hi.j?si.offset(-Bi.startX,-Bi.startY):(Bi=Bi.figures.first(),Bi!==null&&si.offset(-Bi.startX,-Bi.startY)),Bi=At[2],Pi!==ql){var Vn=ae.computeAngle(wt,Pi,Bi);wt.Kb=Vn}Vn=si.x-y.x;var Tr=si.y-y.y;$e.free(si),Rn(At)}else if(Bt<-me||Bt>=me)At=$e.alloc(),ae.vg(),ae.computeMidPoint(At),Bi=ae.midAngle,Pi!==ql&&(Vn=ae.computeAngle(wt,Pi,Bi),wt.Kb=Vn),Vn=At.x-y.x,Tr=At.y-y.y,$e.free(At);else{if(Vn=0,0<=Bt?(Tr=ce.M(Bt),At=Bt<me-1?ce.M(Bt+1):Tr):(Vn=me+Bt,Tr=ce.M(Vn),At=0<Vn?ce.M(Vn-1):Tr),Tr.Xa(At)){0<=Bt?(Bi=0<Bt?ce.M(Bt-1):Tr,Vn=Bt<me-2?ce.M(Bt+2):At):(Bi=Vn<me-1?ce.M(Vn+1):Tr,Vn=1<Vn?ce.M(Vn-2):At),si=Bi.Bf(Tr);var Fr=At.Bf(Vn);Bi=si>Fr+10?0<=Bt?Bi.ab(Tr):Tr.ab(Bi):Fr>si+10?0<=Bt?At.ab(Vn):Vn.ab(At):0<=Bt?Bi.ab(Vn):Vn.ab(Bi)}else Bi=0<=Bt?Tr.ab(At):At.ab(Tr);Pi!==ql&&(Vn=ae.computeAngle(wt,Pi,Bi),wt.Kb=Vn),Vn=Tr.x+(At.x-Tr.x)*Ht-y.x,Tr=Tr.y+(At.y-Tr.y)*Ht-y.y}wt.measure(1/0,1/0,0,0),At=wt.measuredBounds,si=wt.naturalBounds;var Uo=0;wt instanceof Gr&&(Uo=wt.strokeWidth),Fr=si.width+Uo;var xa=si.height+Uo;De.reset(),De.translate(-At.x,-At.y),De.scale(wt.scale,wt.scale),De.rotate(Pi===ql?wt.angle:Bi,Fr/2,xa/2),Pi!==Bp&&Pi!==kp||De.rotate(90,Fr/2,xa/2),Pi!==Np&&Pi!==Tp||De.rotate(-90,Fr/2,xa/2),Pi===r0&&(45<Bi&&135>Bi||225<Bi&&315>Bi)&&De.rotate(-Bi,Fr/2,xa/2),si=new An(0,0,Fr,xa),ze.xi(si,dn),De.Ga(ze),dn=-ze.x+Uo/2*wt.scale,wt=-ze.y+Uo/2*wt.scale,ut.assign(Ii),Uo=isNaN(Ii.x);var il=isNaN(Ii.y);if(Uo||il){Fr=Fr/2+3,xa=xa/2+3;var cl=45<=Bi&&135>=Bi,Wl=225<=Bi&&315>=Bi;Pi===ql&&(cl||Wl)?(ut.x=il?Fr:Ii.y,ut.y=Uo?xa:Ii.x,cl?0<=Bt||isNaN(Bt)&&.5>Ht||!Uo||(ut.y=-xa):Wl&&((0<=Bt||isNaN(Bt)&&.5>Ht)&&Uo&&(ut.y=-xa),il&&(ut.x=-Fr))):(Uo&&(ut.x=0<=Bt||isNaN(Bt)&&.5>Ht?Fr:-Fr),il&&(ut.y=-xa),ut.rotate(Bi))}else ut.rotate(Bi);Vn+=ut.x,Tr+=ut.y,si.set(At),si.h(Vn+dn,Tr+wt,At.width,At.height),Fe.push(si),x.ed(si)}}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),Yo(b,x.width||0,x.height||0),Hr.free(De),$e.free(ze),$e.free(ut)}}}},Mm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ko||a instanceof li){var E=a,b=null;a instanceof Ko&&(b=a,E=b.adornedPart);var z=a instanceof Ko?null:E.path,ne=a.j;if(ne.length!==0){var re=0;if(z!==null&&re<ne.length){var ae=ne[re];re++,z.arrange(ae.x-a.jg.x,ae.y-a.jg.y,ae.width,ae.height)}for(ae=0;ae<x;ae++){var le=y[ae];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 li)for(z=a.labelNodes;z.next();){var me=a;ne=z.value,re=ne.segmentIndex,ae=ne.segmentFraction;var Ce=ne.alignmentFocus;if(le=ne.segmentOrientation,ce=ne.segmentOffset,isNaN(re)){var Fe=me.ua,De=Pn();Fe.Qu(ae,De);var ze=$e.allocAt(De[0],De[1]);ze.add(me.i(0)),Fe.type===hi.j||(Fe=Fe.figures.first()),ze.offset(-Fe.startX,-Fe.startY),Fe=De[2],le!==ql&&(me=me.computeAngle(ne,le,Fe),ne.angle=me),me=ze.x;var ut=ze.y;$e.free(ze),Rn(De)}else if(re<-x||re>=x)De=$e.alloc(),Fe=me,ut=De,Fe.vg(),Fe.computeMidPoint(ut),Fe=me.midAngle,le!==ql&&(me=me.computeAngle(ne,le,Fe),ne.angle=me),me=De.x,ut=De.y,$e.free(De);else{if(ze=0,0<=re?(De=y.s[re],ut=re<x-1?y.s[re+1]:De):(ze=x+re,De=y.s[ze],ut=0<ze?y.s[ze-1]:De),De.Xa(ut)){0<=re?(Fe=0<re?y.s[re-1]:De,ze=re<x-2?y.s[re+2]:ut):(Fe=ze<x-1?y.s[ze+1]:De,ze=1<ze?y.s[ze-2]:ut);var qe=Fe.Bf(De),wt=ut.Bf(ze);Fe=qe>wt+10?0<=re?Fe.ab(De):De.ab(Fe):wt>qe+10?0<=re?ut.ab(ze):ze.ab(ut):0<=re?Fe.ab(ze):ze.ab(Fe)}else Fe=0<=re?De.ab(ut):ut.ab(De);le!==ql&&(me=me.computeAngle(ne,le,Fe),ne.angle=me),me=De.x+(ut.x-De.x)*ae,ut=De.y+(ut.y-De.y)*ae}if(Ce.ys())ne.location=new $e(me,ut);else{Ce.Mc()&&(Ce=yo),De=Hr.alloc(),De.reset(),De.scale(ne.scale,ne.scale),De.rotate(ne.angle,0,0);var At=ne.naturalBounds;ze=An.allocAt(0,0,At.width,At.height),qe=$e.alloc(),qe.xi(ze,Ce),De.Ga(qe),Ce=-qe.x,wt=-qe.y;var Bt=At.width,Ht=At.height;At=$e.alloc(),At.assign(ce);var dn=isNaN(ce.x),Pi=isNaN(ce.y);if(dn||Pi){Bt=Bt/2+3,Ht=Ht/2+3;var Ii=45<=Fe&&135>=Fe,Bi=225<=Fe&&315>=Fe;le===ql&&(Ii||Bi)?(At.x=Pi?Bt:ce.y,At.y=dn?Ht:ce.x,Ii?0<=re||isNaN(re)&&.5>ae||!dn||(At.y=-Ht):Bi&&((0<=re||isNaN(re)&&.5>ae)&&dn&&(At.y=-Ht),Pi&&(At.x=-Bt))):(dn&&(At.x=0<=re||isNaN(re)&&.5>ae?Bt:-Bt),Pi&&(At.y=-Ht),At.rotate(Fe))}else At.rotate(Fe);me+=At.x,ut+=At.y,De.pp(ze),Ce+=ze.x,wt+=ze.y,re=$e.allocAt(me+Ce,ut+wt),ne.move(re),$e.free(re),$e.free(At),$e.free(qe),An.free(ze),Hr.free(De)}}b!==null?b.Ul(!1):E.Ul(!1),E=O1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),$e.free(E)}};function a1(a,y,x,E){if(Hu(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof Ko&&a.type===ii.Link&&a.adornedObject instanceof Gr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof li&&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 Ko&&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),Gs(E,!1)}}function Sp(){this.xa="Base"}Kt(Sp,_s),Sp.prototype.measure=function(a,y,x,E,b,z,ne){var re=a.Pb();a.graduatedBounds=[];var ae=re.margin,le=ae.right+ae.left,ce=ae.top+ae.bottom;re.measure(y,x,z,ne);var me=re.measuredBounds,Ce=new An(-ae.left,-ae.top,Math.max(me.width+le,0),Math.max(me.height+ce,0));a.graduatedBounds.push(Ce),b.assign(Ce);for(var Fe=re.geometry,De=re.strokeWidth,ze=Fe.flattenedSegments,ut=Fe.flattenedLengths,qe=Fe.flattenedTotalLength,wt=ze.length,At=0,Bt=0,Ht=Pn(),dn=0;dn<wt;dn++){var Pi=ze[dn],Ii=[];Bt=At=0;for(var Bi=Pi.length,si=0;si<Bi;si+=2){var Vn=Pi[si],Tr=Pi[si+1];if(si!==0){var Fr=180*Math.atan2(Tr-Bt,Vn-At)/Math.PI;0>Fr&&(Fr+=360),Ii.push(Fr)}At=Vn,Bt=Tr}Ht.push(Ii)}if(a.graduatedIntervals===null){for(var Uo=[],xa=a.O.s,il=xa.length,cl=0;cl<il;cl++){var Wl=xa[cl],rl=[];if(Uo.push(rl),Wl.visible){var Fh=Wl.interval;if(!(0>Fh)){for(var Ns=0;Ns<il;Ns++)if(Ns!==cl){var $c=xa[Ns];if($c.visible&&Wl.constructor===$c.constructor){var Zl=$c.interval;Zl>Fh&&rl.push(Zl)}}}}}a.graduatedIntervals=Uo}var Mh=a.graduatedIntervals,Ku=a.O.s,Cc=Ku.length,Nu=0,wu=0,rf=qe;a.graduatedMarks=[];for(var qc,$g=0;$g<Cc;$g++){var ku=Ku[$g];if(qc=[],ku.visible&&ku!==re){var Gl=Math.abs(ku.interval),rm=a.graduatedTickUnit;if(!(2>rm*Gl*qe/a.graduatedRange&&ku.graduatedSkip===null)){var hg=ut[0][0],hd=0,Cu=0;wu=qe*ku.graduatedStart-1e-4,rf=qe*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=Mh[$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 Gr&&!ku.graduatedSkip(Tu,ku))&&(Nu=(Tu-a.graduatedMin)*qe/a.graduatedRange,Nu>qe&&(Nu=qe),wu<=Nu&&Nu<=rf)){for(var Nd=Ht[hd][Cu],Lh=ut[hd][Cu];hd<ut.length;){for(;Nu>hg&&Cu<ut[hd].length-1;)Cu++,Nd=Ht[hd][Cu],Lh=ut[hd][Cu],hg+=Lh;if(Nu<=hg)break;hd++,Cu=0,Nd=Ht[hd][Cu],Lh=ut[hd][Cu],hg+=Lh}var Eu=ze[hd],fd=Eu[2*Cu],U0=Eu[2*Cu+1],$d=(Nu-(hg-Lh))/Lh,ep=new $e(fd+(Eu[2*Cu+2]-fd)*$d+De/2-Fe.bounds.x,U0+(Eu[2*Cu+3]-U0)*$d+De/2-Fe.bounds.y);ep.scale(re.scale,re.scale);e:{var ed=Nd,If=Ht[hd];if(!(.5005>$d&&.4995<$d)){var gd=ed;if(.5>$d?0<Cu?gd=If[Cu-1]:Ut.$(Eu[0],Eu[Eu.length-2])&&Ut.$(Eu[1],Eu[Eu.length-1])&&(gd=If[If.length-1]):.5<$d&&(Cu+1<If.length?gd=If[Cu+1]:Ut.$(Eu[0],Eu[Eu.length-2])&&Ut.$(Eu[1],Eu[Eu.length-1])&&(gd=If[0])),ed!==gd){var gg=Math.abs(ed-gd);if(180<gg&&(ed<gd?ed+=360:gd+=360,gg=Math.abs(ed-gd)),5e-4>$d||.9995<$d){Nd=(ed+gd)/2%360;break e}if(10>gg){var tp=1-Math.abs(.5-$d);Nd=(ed*tp+gd*(1-tp))%360;break e}}}Nd=ed}if(ku instanceof Ca){var jc="";ku.graduatedFunction!==null?(jc=ku.graduatedFunction(Tu,ku),jc=jc!=null?jc.toString():""):jc=(+Tu.toFixed(2)).toString(),jc!==""&&qc.push({$l:ep,angle:Nd,text:jc})}else qc.push({$l:ep,angle:Nd})}Tu=om+Bd*Of}}}a.graduatedMarks.push(qc)}Rn(Ht);var vl=a.graduatedMarks;if(vl!==null)for(var am=E.length,ru=0;ru<am;ru++){var ks=E[ru],ou=vl[ru];if(ks.visible&&ks!==re&&ou.length!==0){if(ks instanceof Gr){var qd=a,Dh=b,Rf=ks.alignmentFocus;Rf.Mc()&&(Rf=rs);var Gy=ks.angle;ks.Kb=0,ks.measure(1/0,1/0,0,0),ks.Kb=Gy;var X0=ks.measuredBounds,np=X0.width,zf=X0.height,pg=An.allocAt(0,0,np,zf),bu=$e.alloc();bu.xi(pg,Rf),An.free(pg);for(var eh=-bu.x,td=-bu.y,lc=new An,lf=ou.length,ip=0;ip<lf;ip++)for(var uf=ou[ip],_0=uf.$l.x,rp=uf.$l.y,Ps=uf.angle,Hc=0;4>Hc;Hc++){switch(Hc){case 0:bu.h(eh,td);break;case 1:bu.h(eh+np,td);break;case 2:bu.h(eh,td+zf);break;case 3:bu.h(eh+np,td+zf)}bu.rotate(Ps+ks.angle),bu.offset(_0,rp),ip===0&&Hc===0?lc.h(bu.x,bu.y,0,0):lc.Ye(bu),bu.offset(-_0,-rp),bu.rotate(-Ps-ks.angle)}$e.free(bu),qd.graduatedBounds!==null&&qd.graduatedBounds.push(lc),vo(Dh,lc.x,lc.y,lc.width,lc.height)}else if(ks instanceof Ca){var Ec=a,J0=b;Ec.temporaryTextBlock===null&&(Ec.temporaryTextBlock=new Ca);var Ou=Ec.temporaryTextBlock;P1(Ou,ks);var Bh=ks.alignmentFocus;Bh.Mc()&&(Bh=rs);for(var bc=ks.segmentOrientation,op=ks.segmentOffset,cf=new An,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=ks.angle,bc!==ql&&(df=bc===Dp||bc===i0?pd+ks.angle:pd,jf=li.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,nd=Hr.alloc();nd.reset(),nd.translate(-kh.x,-kh.y),nd.scale(Ou.scale,Ou.scale),nd.rotate(df,Th/2,Hf/2),bc!==Bp&&bc!==kp||nd.rotate(90,Th/2,Hf/2),bc!==Np&&bc!==Tp||nd.rotate(-90,Th/2,Hf/2),bc===r0&&(45<pd&&135>pd||225<pd&&315>pd)&&nd.rotate(-pd,Th/2,Hf/2);var mg=An.allocAt(0,0,Th,Hf),Oh=$e.alloc();Oh.xi(mg,Bh),nd.Ga(Oh);var vg=-Oh.x,Ky=-Oh.y,nh=$e.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 An(sm,ap,kh.width,kh.height),lm=new An(kh.x,kh.y,kh.width,kh.height),Vy=new An(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),$e.free(nh),$e.free(Oh),An.free(mg),Hr.free(nd)}Ec.graduatedBounds!==null&&Ec.graduatedBounds.push(cf),vo(J0,cf.x,cf.y,cf.width,cf.height)}Gs(ks,!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 ae=y.length,le=0;le<ae;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 Lu,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,ae=a.O.s,le=a.graduatedMarks,ce=ae.length,me=0;me<ce;me++){var Ce=ae[me],Fe=le[me],De=Fe.length;if(Ce.visible&&Ce!==z&&Fe.length!==0){if(Ce instanceof Gr){if(!(2>a.graduatedTickUnit*Ce.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ne&&Ce.graduatedSkip===null)){var ze=Ce.measuredBounds,ut=Ce.strokeWidth*Ce.scale,qe=Ce.alignmentFocus;qe.Mc()&&(qe=rs);for(var wt=0;wt<De;wt++){var At=Fe[wt].$l,Bt=Fe[wt].angle,Ht=qe,dn=Ce.Ab;dn.reset(),dn.translate(At.x+re.x,At.y+re.y),dn.rotate(Bt+Ce.angle,0,0),dn.translate(-ze.width*Ht.x+Ht.offsetX+ut/2,-ze.height*Ht.y+Ht.offsetY+ut/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),ze=a.temporaryTextBlock,P1(ze,Ce),ut=0;ut<De;ut++)qe=Fe[ut],qe.actualBounds&&qe.measuredBounds&&qe.naturalBounds&&(ze.ec=qe.text||"",ze.Kb=qe.Sz||0,ze.Gc=qe.lineCount||0,wt=qe.lines,wt!==void 0&&(ze.Cb=wt[0],ze.Ih=wt[1],ze.df=wt[2],ze.Le=wt[3],ze.Qc=wt[4],ze.Qb=wt[5],ze.ze=wt[6]),qe.naturalBounds&&(ze.dc=qe.naturalBounds),qe.actualBounds&&(wt=qe.actualBounds,ze.arrange(wt.x,wt.y,wt.width,wt.height)),wt=qe.actualBounds,ze.arrange(wt.x,wt.y,wt.width,wt.height),At=qe.measuredBounds,qe=qe.naturalBounds,Bt=ze.Ab,Bt.reset(),Bt.translate(wt.x+re.x,wt.y+re.y),Bt.translate(-At.x,-At.y),ze.no(Bt,qe.x,qe.y,qe.width,qe.height),yc(ze,!1),ze.wh.set(ze.Ab),ze.Kk=ze.scale,tc(ze,!1),ze.Ng=Ce.part,ze.Me=Ce.panel,ze.gc(y,x),ze.Me=null,ze.Ng=null,b&&(a.svg.appendChild(ze.svg),ze.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function ii(a,y){if(Gt.call(this),this.na=null,a===void 0)this.na=ii.Position;else if(typeof a=="string"){var x=kc.I(a);x!==null&&(this.na=x)}else a instanceof _s?this.na=a:a&&(this.na=ii.Position,y=a);this.na===null&&It("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ii.Grid?1048576:0),this.O=new On,this.yb=Xr,this.Tm=_o,this.Uf=zr,this.$g=null,this.$e="",this.jg=new An(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Wi,this.jn=Fa,this.kn=Fi,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Kt(ii,Gt),ii.prototype.cloneProtected=function(a){Gt.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},ii.prototype.Af=function(a){Gt.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},ii.prototype.copy=function(){var a=Gt.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 Ci&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(ai,"elements",a,null,b,null,ne)}}return a}return null},Me=ii.prototype,Me.toString=function(){return"Panel("+this.type.name+")#"+fo(this)},Me.Pn=function(a){Gt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Me.hh=function(a,y){if(this.na===ii.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ii.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ii.Table)if(a.yc(),a instanceof Lu){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===ii.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&&Lm(a,y,!0,x,!0),E!==null&&Lm(a,y,!1,E,!0),x!==null&&s1(a,y,!0,x),E!==null&&s1(a,y,!1,E),x!==null&&Lm(a,y,!0,x,!1),E!==null&&Lm(a,y,!1,E,!1)}function s1(a,y,x,E){for(var b=E.length,z=a.actualBounds,ne=a.naturalBounds,re=!0,ae=0;ae<b;ae++){var le=E[ae];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){gs(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 Lm(a,y,x,E,b){for(var z=E.length,ne=a.actualBounds,re=a.naturalBounds,ae=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 Fe=me.Wc(),De=me.separatorStrokeWidth;isNaN(De)&&(De=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ze=me.separatorStroke;ze===null&&(ze=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ze===null||me.index===(x?ae:le))&&(De=0),Fe-=De,De=me.position+De,Fe+=me.actual,De+Fe>Ce&&(Fe=Ce-De),0>=Fe||(Ce=a.yb,gs(a,y,me.background,!0,!1,re,ne),x?y.fillRect(Ce.left,De+Ce.top,ne.width-(Ce.left+Ce.right),Fe):y.fillRect(De+Ce.left,Ce.top,Fe,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"}Me.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Me.kk=function(a,y,x){if(!Gt.prototype.kk.call(this,a,y,x))return!1;if(this.type===ii.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===ii.Grid||this.na===ii.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},Me.nk=function(){return!0},Me.$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 Gt.prototype.$o.call(this,a,y,x,E)},Me.Sj=function(a,y,x,E,b){var z=this.se(),ne=this.transform,re=1/(ne.m11*ne.m22-ne.m12*ne.m21),ae=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),Fe=re*(ne.m12*ne.dx-ne.m11*ne.dy);if(this.areaBackground!==null)return ne=this.actualBounds,Ut.Ff(ne.left,ne.top,ne.right,ne.bottom,a,y,x,E,b);if(this.background!==null)return z=a*ae+y*ce+Ce,re=a*le+y*me+Fe,a=x*ae+E*ce+Ce,ae=x*le+E*me+Fe,b.h(0,0),x=this.naturalBounds,z=Ut.Ff(0,0,x.width,x.height,z,re,a,ae,b),b.transform(ne),z;z||(ae=1,ce=le=0,me=1,Fe=Ce=0),re=a*ae+y*ce+Ce,a=a*le+y*me+Fe,ae=x*ae+E*ce+Ce,x=x*le+E*me+Fe,b.h(ae,x),E=(ae-re)*(ae-re)+(x-a)*(x-a),le=!1,me=this.O.s,Fe=me.length,ce=$e.alloc(),Ce=null,y=1/0;var De=null,ze=this.isClipping&&this.na===ii.Spot;ze&&(De=$e.alloc(),Ce=this.Pb(),(le=Ce.Sj(re,a,ae,x,De))&&(y=(re-De.x)*(re-De.x)+(a-De.y)*(a-De.y)));for(var ut=0;ut<Fe;ut++){var qe=me[ut];qe.visible&&qe!==Ce&&qe.Sj(re,a,ae,x,ce)&&(le=!0,qe=(re-ce.x)*(re-ce.x)+(a-ce.y)*(a-ce.y),qe<E&&(E=qe,b.set(ce)))}return ze&&(y>E&&b.set(De),$e.free(De)),$e.free(ce),z&&b.transform(ne),le},Me.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Gt.prototype.Gj.call(this)},Me.v=function(a){if(!Hu(this)){Gt.prototype.v.call(this,a),a=null,(this.na===ii.Auto||this.na===ii.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 ii||b instanceof Ca||z!==Jn)&&b.v(!0)}}}},Me.Uj=function(){if(!Hu(this)){Gs(this,!0),xd(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Me.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()}},Me.Wu=function(){tc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Me.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 ae=this.yb;a=Math.max(a-ae.left-ae.right,0),y=Math.max(y-ae.top-ae.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,b,x,E),a=b.width+ae.left+ae.right,ae=b.height+ae.top+ae.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(ae=z.height),a=Math.min(re.width,a),ae=Math.min(re.height,ae),a=Math.max(ne.width,a),ae=Math.max(ne.height,ae),a=Math.max(x,a),ae=Math.max(E,ae),Yo(b,a,ae),Yo(this.naturalBounds,a,ae),this.Ge(0,0,a,ae)},Me.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}Me.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=Jn),a){case Jn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case ei:this.v(!0),this.measure(x+re,E+ne,0,0);break;case Ui:this.v(!0),this.measure(x+re,z+ne,0,0);break;case vr:this.v(!0),this.measure(y+re,E+ne,0,0)}}this.na.arrange(this,b,this.jg)}},Me.gh=function(a){var y=this.naturalBounds,x=Xd(this);if(Qo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=$e.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Ur(b.set(a),z.transform),z.ca(b)))return $e.free(b),!0}return $e.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Me.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},Me.qm=function(a,y){if(y(this,a),a instanceof ii){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Ff(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 ii&&u1(a,z,x)}}function Ex(a,y){c1(a,a,y)}function c1(a,y,x){if(x(y),y instanceof ii){y=y.O.s;for(var E=y.length,b=0;b<E;b++)c1(a,y[b],x)}}Me.Nl=function(a){return d1(this,this,a)};function d1(a,y,x){if(x(y))return y;if(y instanceof ii){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}Me.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 ii){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 ii?x=Math.max(x,h1(b)):b instanceof Gr&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Me.se=function(){return!(this.type===ii.TableRow||this.type===ii.TableColumn)};function vh(a){return a.type===ii.TableRow||a.type===ii.TableColumn}Me.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:Ur($e.allocAt(a.x,a.y),this.transform),re=this.diagram,ae=10,le=5;if(re!==null&&(ae=re.Ql("extraTouchArea"),le=ae/2),Qo(-(le*b),-(le*b),E.width+ae*b,E.height+ae*b,ne.x,ne.y)){if(!this.isAtomic){b=this.O.s;var ce=b.length;if(re=$e.alloc(),le=(ae=this.isClipping&&this.na===ii.Spot)?this.Pb():null,ae&&(le.se()?Ur(re.set(a),le.transform):re.set(a),!le.ca(re)))return $e.free(re),z||$e.free(ne),null;for(var me=Xd(this);ce--;){var Ce=b[ce];if((Ce.visible||Ce===me)&&(Ce.se()?Ur(re.set(a),Ce.transform):re.set(a),!ae||Ce!==le)){var Fe=null;if(Ce instanceof ii?Fe=Ce.ic(re,y,x):Ce.pickable===!0&&Ce.ca(re)&&(Fe=Ce),Fe!==null&&(y!==null&&(Fe=y(Fe)),Fe!==null&&(x===null||x(Fe))))return $e.free(re),z||$e.free(ne),Fe}}$e.free(re)}return this.background===null&&this.areaBackground===null?(z||$e.free(ne),null):(a=Qo(0,0,E.width,E.height,ne.x,ne.y)?this:null,z||$e.free(ne),a)}return z||$e.free(ne),null},Me.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:Ur($e.allocAt(a.x,a.y),this.transform);if(b=Qo(0,0,b.width,b.height,ne.x,ne.y),vh(this)||b){if(!this.isAtomic){for(var re=this.O.s,ae=re.length,le=$e.alloc(),ce=Xd(this);ae--;){var me=re[ae];if(me.visible||me===ce){me.se()?Ur(le.set(a),me.transform):le.set(a);var Ce=me;me=me instanceof ii?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))}}$e.free(le)}return z||$e.free(ne),b&&(this.background!==null||this.areaBackground!==null)}return z||$e.free(ne),!1},Me.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=Hr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return yv(this,y,x,b),z===void 0&&Hr.free(ne),!0;if(this.Yc(a,ne)){if(!this.isAtomic)for(var re=Xd(this),ae=this.O.s,le=ae.length;le--;){var ce=ae[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 ii?ce:null,Ce=Hr.alloc(),Ce.set(ne),(ce!==null?ce.Cf(a,y,x,E,b,Ce):nl(me,a,E,Ce))&&(y!==null&&(me=y(me)),me===null||x!==null&&!x(me)||b.add(me)),Hr.free(Ce))}}return z===void 0&&Hr.free(ne),E}return z===void 0&&Hr.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,ae=a.naturalBounds;re.x>ae.width||re.y>ae.height||0>re.x+re.width||0>re.y+re.height||(ne instanceof ii&&yv(ne,y,x,E),y!==null&&(ne=y(ne)),ne===null||x!==null&&!x(ne)||E.add(ne))}}}Me.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(),ae=re?a:Ur($e.allocAt(a.x,a.y),this.transform),le=re?y:Ur($e.allocAt(y.x,y.y),this.transform),ce=ae.Bf(le),me=0<ae.x&&ae.x<ne.width&&0<ae.y&&ae.y<ne.height||Io(ae.x,ae.y,0,0,0,ne.height)<=ce||Io(ae.x,ae.y,0,ne.height,ne.width,ne.height)<=ce||Io(ae.x,ae.y,ne.width,ne.height,ne.width,0)<=ce||Io(ae.x,ae.y,ne.width,0,0,0)<=ce;if(ne=ae.zd(0,0)<=ce&&ae.zd(0,ne.height)<=ce&&ae.zd(ne.width,0)<=ce&&ae.zd(ne.width,ne.height)<=ce,re||($e.free(ae),$e.free(le)),me){if(!this.isAtomic){ae=$e.alloc(),le=$e.alloc(),ce=Xd(this);for(var Ce=this.O.s,Fe=Ce.length;Fe--;){var De=Ce[Fe];if(De.visible||De===ce){var ze=De.actualBounds,ut=this.naturalBounds;(!re||!(ze.x>ut.width||ze.y>ut.height||0>ze.x+ze.width||0>ze.y+ze.height))&&(De.se()?(ze=De.transform,Ur(ae.set(a),ze),Ur(le.set(y),ze)):(ae.set(a),le.set(y)),ze=De,De=De instanceof ii?De:null,(De!==null?De.og(ae,le,x,E,b,z):ze.tx(ae,le,b))&&(x!==null&&(ze=x(ze)),ze===null||E!==null&&!E(ze)||z.add(ze)))}}$e.free(ae),$e.free(le)}return b?me:ne}return!1};function Sv(a){var y=null;return a instanceof Gr&&(y=a.spot1,y===_o&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ua),y}function xv(a){var y=null;return a instanceof Gr&&(y=a.spot2,y===_o&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=xl),y}Me.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},Me.M=function(a){return this.O.M(a)},Me.Gb=function(a,y){y instanceof er&&It("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&It("Cannot make a Panel contain itself: "+this.toString()),It("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&It("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!==ii.Grid||y instanceof Gr||It("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ii.Graduated||y instanceof Gr||y instanceof Ca||It("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 Si),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,ae=0;ae<re;ae++)if(ne[ae]===y){z=ae;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else It("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 ii&&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 Ci&&(x.Te=!0),x.Te&&x instanceof Ci&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(xi,"elements",this,y,null,E,null),x.cb(ai,"elements",this,null,y,null,a)))};function Pv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Me.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)},Me.mb=function(a){0<=a&&this.pc(a,!0)},Me.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),Gs(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 Ci&&(E instanceof ii?E.qm(E,function(ne,re){Kv(z,re,y)}):Kv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(xi,"elements",this,E,null,a,null))},Me.Fb=function(a){0>a&&nn(a,">= 0",ii,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ks;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ai,"rowdefs",this,null,x,null,a)}return y[a]},Me.oA=function(a){if(0>a&&nn(a,">= 0",ii,"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(xi,"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 Ks?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Me.Eb=function(a){0>a&&nn(a,">= 0",ii,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ks;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ai,"coldefs",this,null,x,null,a)}return y[a]},Me.jA=function(a){if(0>a&&nn(a,">= 0",ii,"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(xi,"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 Ks?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Me.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},Me.Hy=function(a,y){return(a=this.Fb(a))&&Nm(a,new Ks(y)),this},Me.By=function(a,y){return(a=this.Eb(a))&&Nm(a,new Ks(y)),this},Me.nz=function(a){if(0>a||this.type!==ii.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},Me.fz=function(a){if(0>a||this.type!==ii.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},Me.Fz=function(a,y){if(y===void 0&&(y=new $e(NaN,NaN)),this.type!==ii.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)},Me.Gz=function(a){if(this.type!==ii.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&&It("Template cannot have .data be non-null: "+a),a.allBindings=y=new On;else if(y._isFrozen)return;var x=new On;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 Fe=Ce.sourceName;Fe!==null&&(Fe==="/"&&Pv(le,!0),Fe=LS(Ce,le,ce),Fe!==null&&(x.add(Fe),Fe.srcBindings===null&&(Fe.srcBindings=new On),Fe.srcBindings.add(Ce))),y.add(Ce)}if(ce instanceof ii&&ce.type===ii.Table){if(0<ce.rowCount){for(le=ce.rowDefs,me=le.length,Ce=0;Ce<me;Ce++)if(Fe=le[Ce],Fe!==void 0&&Fe.be!==null)for(var De=Fe.be.iterator;De.next();){var ze=De.value;ze.xd=Fe,ze.to=2,ze.wl=Fe.index,y.add(ze)}}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(Fe=Ce.be.iterator;Fe.next();)De=Fe.value,De.xd=Ce,De.to=1,De.wl=Ce.index,y.add(De)}}});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 On),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,ae=re.indexOf(".");0<ae&&z instanceof ii&&(ne=re.substring(0,ae),re=re.substr(ae+1),ae=z.fb(ne),ae!==null?(z=ae,b.targetProperty=re):ui('Warning: unable to find GraphObject named "'+ne+'" for Binding: '+b.toString())),z instanceof Ks?(ne=fo(z.panel),b.Ai=ne===void 0?-1:ne,z.panel.bindingId=b.Ai):z instanceof Gt?(ne=fo(z),b.Ai=ne===void 0?-1:ne,z.bindingId=b.Ai):It("Unknown type of binding target: "+z)}y.freeze(),a instanceof er&&a.Zc()&&a.Va()}Me.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Ex(y,function(x){x instanceof ii&&(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},Me.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 ii))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Me.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 ii&&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 ii)||z.data!==y[ne])return!0;b++,ne++}return!1}function xp(a){if(a.type===ii.Spot||a.type===ii.Auto)return Math.min(a.O.length,1);if(a.type===ii.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Gr&&E.isPanelMain))break}return x}return a.type===ii.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ii&&vh(a))?1:0}Me.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 ii){if(ne.data!==z){var re=Cv(a,ne.data),ae=Cv(a,z),le=ae!==re;le||(re=Ev(a,re),le=Ev(a,ae)!==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 Ci&&(y.Te=!0),y.Te&&y instanceof Ci&&(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 Si),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 ii){var b=y,z=x;E.type===ii.TableRow?E.row=b:E.type===ii.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=Fs(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;It("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,ui('No item template Panel found for category "'+y+'" on '+a),ui(" Using default item template."),a=new ii,y=new Ca,y.bind(new Bs("text","",Zn)),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 ii){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof ii&&!z.isEnabled||Bm(a,z,x)}}}function cd(a,y){y.name=a,kc.add(a,y)}Pt.Object.defineProperties(ii.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ii.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&&nn(a,">= 0",ii,"padding"),a=new Yi(a)):(0>a.left&&nn(a.left,">= 0",ii,"padding:value.left"),0>a.right&&nn(a.right,">= 0",ii,"padding:value.right"),0>a.top&&nn(a.top,">= 0",ii,"padding:value.top"),0>a.bottom&&nn(a.bottom,">= 0",ii,"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:Xr},set:function(a){typeof a=="number"&&(a=new Yi(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)||It("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)||It("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||It("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()||It("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),El(this)&&(a=this.part,a!==null&&Da(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),El(this)&&(a=this.part,a!==null&&Da(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)&&It("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)&&It("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 er&&!(this instanceof Ko);xc(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof li?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof er&&(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 Si}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof er||a.isPanelMain)&&It("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 Or&&(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))}}}),Pt.Object.defineProperties(ii,{Position:{get:function(){return kc.I("Position")}},Horizontal:{get:function(){return kc.I("Horizontal")}},Vertical:{get:function(){return kc.I("Vertical")}},Spot:{get:function(){return kc.I("Spot")}},Auto:{get:function(){return kc.I("Auto")}},Table:{get:function(){return kc.I("Table")}},Viewbox:{get:function(){return kc.I("Viewbox")}},TableRow:{get:function(){return kc.I("TableRow")}},TableColumn:{get:function(){return kc.I("TableColumn")}},Link:{get:function(){return kc.I("Link")}},Grid:{get:function(){return kc.I("Grid")}},Graduated:{get:function(){return kc.I("Graduated")}}}),ii.prototype.rebuildItemElements=ii.prototype.mv,ii.prototype.findItemPanelForData=ii.prototype.sx,ii.prototype.updateTargetBindings=ii.prototype.La,ii.prototype.copyTemplate=ii.prototype.Uy,ii.prototype.graduatedValueForPoint=ii.prototype.Gz,ii.prototype.graduatedPointForValue=ii.prototype.Fz,ii.prototype.findColumnForLocalX=ii.prototype.fz,ii.prototype.findRowForLocalY=ii.prototype.nz,ii.prototype.addColumnDefinition=ii.prototype.By,ii.prototype.addRowDefinition=ii.prototype.Hy,ii.prototype.addRowColumnDefinition=ii.prototype.Gy,ii.prototype.removeColumnDefinition=ii.prototype.jA,ii.prototype.getColumnDefinition=ii.prototype.Eb,ii.prototype.removeRowDefinition=ii.prototype.oA,ii.prototype.getRowDefinition=ii.prototype.Fb,ii.prototype.removeAt=ii.prototype.mb,ii.prototype.remove=ii.prototype.remove,ii.prototype.insertAt=ii.prototype.Gb,ii.prototype.elt=ii.prototype.M,ii.prototype.add=ii.prototype.add,ii.prototype.findObject=ii.prototype.fb,ii.prototype.findInVisualTree=ii.prototype.Nl,ii.prototype.walkVisualTreeFrom=ii.prototype.qm,ii.prototype.findMainElement=ii.prototype.Pb;var v1=!1,y1=null,kc=new Si;ii.className="Panel",ii.definePanelLayout=cd,cd("Position",new ym),cd("Vertical",new xm),cd("Auto",new wm),cd("Link",new Mm);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=Xr,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 Ks(a){Rr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=_o,this.pa=this.oc=this.oa=0,this.be=null,this.oo=bv,this.hg=zr,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))}Ks.prototype.copy=function(){var a=new Ks;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=$t(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=$t(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Me=Ks.prototype,Me.qb=function(a){a.classType===Ks&&(this.sizing=a)},Me.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+fo(this)},Me.wi=function(a){this.Me=a},Me.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)},Me.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===ii.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)},Me.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(ni,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}Me.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new Bs(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&p1(y)&&It("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new On),this.be.add(b),this},Pt.Object.defineProperties(Ks.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&&nn(a,">= 0",Ks,"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&&nn(a,">= 0",Ks,"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))&&nn(a,">= 0",Ks,"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&&nn(a,">= 0",Ks,"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 Yi(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)||It("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}}}),Ks.prototype.computeEffectiveSpacing=Ks.prototype.Wc,Ks.prototype.computeEffectiveSpacingTop=Ks.prototype.Io;var bv=new qt(Ks,"Default",0),Pp=new qt(Ks,"None",1),Tm=new qt(Ks,"ProportionalExtra",2);Ks.className="RowColumnDefinition",Ks.Default=bv,Ks.None=Pp,Ks.ProportionalExtra=Tm;function Gr(a,y){Gt.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)}Kt(Gr,Gt),Gr.prototype.cloneProtected=function(a){Gt.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=$t(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Mf(a){a.Na===null?a.Na=new Mv:a.Na.nc&&(a.Na=a.Na.copy())}Me=Gr.prototype,Me.th=function(){Gt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Me.qb=function(a){a===Jn||a===Wi||a===xo||a===zr?this.geometryStretch=a:Gt.prototype.qb.call(this,a)},Me.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+fo(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],ae=x[1],le,ce,me,Ce,Fe,De,ze=0,ut=Pn(),qe=2;qe<b;qe+=2)le=x[qe],ce=x[qe+1],me=le-re,re=ce-ae,me===0&&(me=.001),Ce=re/me,Fe=Math.atan2(re,me),De=Math.sqrt(me*me+re*re),ut.push([me,Fe,Ce,De]),ze+=De,re=le,ae=ce;re=x[0],ae=x[1],me=E.measuredBounds.width,E instanceof Gr&&(me-=E.strokeWidth),1>me&&(me=1),b=x=me,le=ne/2,ce=le!==0,qe=0,De=ut[qe],me=De[0],Fe=De[1],Ce=De[2],De=De[3];for(var wt=0;.1<=ze;){if(wt===0&&(ce?(b=x,b-=le,ze-=le,ce=!1):b=x,b===0&&(b=1)),b>ze){Rn(ut);return}b>De?(wt=b-De,b=De):wt=0;var At=Math.sqrt(b*b/(1+Ce*Ce));if(0>me&&(At=-At),re+=At,ae+=Ce*At,a.translate(re,ae),a.rotate(Fe),a.translate(-(ne/2),-(z/2)),wt===0&&E.hh(a,y),a.translate(ne/2,z/2),a.rotate(-Fe),a.translate(-re,-ae),ze-=b,De-=b,wt!==0){if(qe++,qe===ut.length){Rn(ut);return}De=ut[qe],me=De[0],Fe=De[1],Ce=De[2],De=De[3],b=wt}}Rn(ut)}}Me.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&&gs(this,a,E,!0,!1,ne,z);var re=this.part,ae=this.ig;if(x===null||ae!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(ae=re.type===ii.Link&&re instanceof Ko&&re.category==="Selection"&&re.adornedObject instanceof Gr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),ae===0&&(x=null),x!==null&&ae!==0&&(gs(this,a,x,!1,!1,ne,z),a.lineWidth=ae,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,ae=this.strokeDashArray,ae!==null&&(ne=!0,a.js(ae,this.strokeDashOffset)),b.type===hi.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===hi.u){var le=b.startX;ae=b.startY;var ce=b.endX,me=b.endY;b=Math.min(le,ce);var Ce=Math.min(ae,me);le=Math.abs(ce-le),ae=Math.abs(me-ae),a.beginPath(),a.rect(b,Ce,le,ae),E!==null&&a.ng(E),x!==null&&(re&&z&&Pd(a),a.jk(),re&&z&&Vd(a)),a.Se()}else if(b.type===hi.F)le=b.startX,ae=b.startY,ce=b.endX,me=b.endY,b=Math.abs(ce-le)/2,Ce=Math.abs(me-ae)/2,le=Math.min(le,ce)+b,ae=Math.min(ae,me)+Ce,a.beginPath(),a.moveTo(le,ae-Ce),a.bezierCurveTo(le+Ut.wg*b,ae-Ce,le+b,ae-Ut.wg*Ce,le+b,ae),a.bezierCurveTo(le+b,ae+Ut.wg*Ce,le+Ut.wg*b,ae+Ce,le,ae+Ce),a.bezierCurveTo(le-Ut.wg*b,ae+Ce,le-b,ae+Ut.wg*Ce,le-b,ae),a.bezierCurveTo(le-b,ae-Ut.wg*Ce,le-Ut.wg*b,ae-Ce,le,ae-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===hi.o)for(b=b.figures,ae=b.length,Ce=0;Ce<ae;Ce++){le=b.s[Ce],a.beginPath(),a.moveTo(le.startX,le.startY),ce=le.segments.s,me=ce.length;for(var Fe=null,De=0;De<me;De++){var ze=ce[De];switch(ze.type){case ws:a.moveTo(ze.endX,ze.endY);break;case pa:a.lineTo(ze.endX,ze.endY);break;case ol:a.bezierCurveTo(ze.point1X,ze.point1Y,ze.point2X,ze.point2Y,ze.endX,ze.endY);break;case Ye:a.quadraticCurveTo(ze.point1X,ze.point1Y,ze.endX,ze.endY);break;case rt:if(ze.radiusX===ze.radiusY){var ut=Math.PI/180;a.arc(ze.point1X,ze.point1Y,ze.radiusX,ze.startAngle*ut,(ze.startAngle+ze.sweepAngle)*ut,0>ze.sweepAngle,Fe!==null?Fe.endX:le.startX,Fe!==null?Fe.endY:le.startY)}else if(Fe=gl(ze,le),ut=Fe.length,ut===0)a.lineTo(ze.centerX,ze.centerY);else for(var qe=0;qe<ut;qe++){var wt=Fe[qe];qe===0&&a.lineTo(wt[0],wt[1]),a.bezierCurveTo(wt[2],wt[3],wt[4],wt[5],wt[6],wt[7])}break;case ft:if(qe=ut=0,Fe!==null&&Fe.type===rt){if(Fe=gl(Fe,le),wt=Fe.length,wt===0){a.lineTo(ze.endX,ze.endY);break}Fe=Fe[wt-1]||null,Fe!==null&&(ut=Fe[6],qe=Fe[7])}else ut=Fe!==null?Fe.endX:le.startX,qe=Fe!==null?Fe.endY:le.startY;if(Fe=Nl(ze,le,ut,qe),ut=Fe.length,ut===0){a.lineTo(ze.endX,ze.endY);break}for(qe=0;qe<ut;qe++)wt=Fe[qe],a.bezierCurveTo(wt[2],wt[3],wt[4],wt[5],wt[6],wt[7]);break;default:It("Segment not of valid type: "+ze.type)}ze.isClosed&&a.closePath(),Fe=ze}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=Pn(),z.type===hi.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===hi.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,ae=ne,Ce=b,le=re.segments.s,ce=le.length,me=0;me<ce;me++){switch(De=le[me],De.type){case ws:Dg(a,y,E,x),E.length=0,E.push(De.endX),E.push(De.endY),ne=De.endX,b=De.endY,ae=ne,Ce=b;break;case pa:E.push(De.endX),E.push(De.endY),ne=De.endX,b=De.endY;break;case ol:Ut.Qe(ne,b,De.point1X,De.point1Y,De.point2X,De.point2Y,De.endX,De.endY,.5,E),ne=De.endX,b=De.endY;break;case Ye:Ut.ep(ne,b,De.point1X,De.point1Y,De.endX,De.endY,.5,E),ne=De.endX,b=De.endY;break;case rt:if(ze=gl(De,re),Fe=ze.length,Fe===0){E.push(De.centerX),E.push(De.centerY),ne=De.centerX,b=De.centerY;break}for(ut=0;ut<Fe;ut++)qe=ze[ut],Ut.Qe(ne,b,qe[2],qe[3],qe[4],qe[5],qe[6],qe[7],.5,E),ne=qe[6],b=qe[7];break;case ft:if(ze=Nl(De,re,ne,b),Fe=ze.length,Fe===0){E.push(De.endX),E.push(De.endY),ne=De.endX,b=De.endY;break}for(ut=0;ut<Fe;ut++)qe=ze[ut],Ut.Qe(ne,b,qe[2],qe[3],qe[4],qe[5],qe[6],qe[7],.5,E),ne=qe[6],b=qe[7];break;default:It("Segment not of valid type: "+De.type)}De.isClosed&&(E.push(ae),E.push(Ce),Dg(a,y,E,x))}Dg(a,y,E,x)}else if(z.type===hi.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===hi.F){if(b=new Rs,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ne=new No(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,ae=0;ae<re;ae++)Ce=z[ae],Ut.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)}Rn(E),a.restore(),a.Vc(!1)}}}},Me.kk=function(a,y,x){return!Gt.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)},Me.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Gt.prototype.nk.call(this,a)},Me.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)}},Me.ga=function(a,y){if(y===void 0&&(y=new $e),a instanceof Mi){a.Mc()&&It("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},Me.mi=function(a){a===void 0&&(a=new An);var y=this.naturalBounds,x=this.oe;y=An.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=$e.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),An.free(y),$e.free(E),a},Me.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!==hi.j||y||(b+=2);var z=An.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return An.free(z),!1;if(E=b+1e-4,x.type===hi.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:(An.free(z),Ut.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===hi.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 An.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),An.free(z),a}if(x.type===hi.F){ne=x.startX,b=x.startY,re=x.endX;var ae=x.endY;if(x=Math.min(ne,re),y=Math.min(b,ae),ne=Math.abs(re-ne)/2,b=Math.abs(ae-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 An.free(z),!1;ne+=E,b+=E}return this.stroke!==null&&(ne+=E,b+=E),An.free(z),0>=ne||0>=b?!1:1>=x*x/(ne*ne)+y*y/(b*b)}if(x.type===hi.o)return An.free(z),this.fill===null?Fc(x,a.x,a.y,b):dc(x,a,b,1<this.strokeWidth,y);It("Unknown Geometry type: "+x.type)},Me.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,ae=Fv[re];if(ae===void 0){var le=Ut.Ze[re];typeof le=="string"&&(le=Ut.Ze[le]),typeof le=="function"?(ae=le(null,100,100),Fv[re]=ae):It("Unsupported Figure: "+re)}ne=ae.bounds}re=ne.width,ae=ne.height,le=ne.width;var ce=ne.height;switch(du(this,!0)){case Jn:E=x=0;break;case ei:le=Math.max(a-z,0),ce=Math.max(y-z,0);break;case Ui:le=Math.max(a-z,0),E=0;break;case vr: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(ae,E),x=Av(this),x){case Jn:break;case ei:re=le,ae=ce;break;case Wi:x=Math.min(le/re,ce/ae),isFinite(x)||(x=1),re*=x,ae*=x;break;default:It(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),ae===0&&(ae=.001),x=this.Rd!==null?this.Rd:this.ua,ne=x.bounds,E=re/ne.width,ne=ae/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&&Ut.$(this.ua.Sk,a-z)&&Ut.$(this.ua.Rk,y-z)||(this.ua=Gr.makeGeometry(this,re,ae)),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&&ae===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===zr?ei:y:y===zr?Fv[a.figure].defaultStretch:y}Me.eh=function(a,y,x,E){Hl(this,a,y,x,E)},Me.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Me.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,ae=-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*ae+y*ce+Ce,re=x*re+E*le+me,ae=x*ae+E*ce+Ce,me=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var Fe=le.bounds;if(ce=!1,le.type===hi.j)if(1.5>=this.strokeWidth)ce=Ut.Ve(le.startX,le.startY,le.endX,le.endY,z,ne,re,ae,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=Pn(),a=new $e,Ut.Ve(le.startX+E,le.startY+ce,le.endX+E,le.endY+ce,z,ne,re,ae,a)&&y.push(a),a=new $e,Ut.Ve(le.startX-E,le.startY-ce,le.endX-E,le.endY-ce,z,ne,re,ae,a)&&y.push(a),a=new $e,Ut.Ve(le.startX+E,le.startY+ce,le.startX-E,le.startY-ce,z,ne,re,ae,a)&&y.push(a),a=new $e,Ut.Ve(le.endX+E,le.endY+ce,le.endX-E,le.endY-ce,z,ne,re,ae,a)&&y.push(a),re=y.length,re===0)return Rn(y),!1;for(ce=!0,ae=1/0,E=0;E<re;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-ne)*(a.y-ne),x<ae&&(ae=x,b.x=a.x,b.y=a.y);Rn(y)}else if(le.type===hi.u)ce=Ut.Ff(Fe.x-me,Fe.y-me,Fe.x+Fe.width+me,Fe.y+Fe.height+me,z,ne,re,ae,b);else if(le.type===hi.F){y=An.allocAt(Fe.x,Fe.y,Fe.width,Fe.height).Bc(me,me);e:if(y.width===0)ce=Ut.Ve(y.x,y.y,y.x,y.y+y.height,z,ne,re,ae,b);else if(y.height===0)ce=Ut.Ve(y.x,y.y,y.x+y.width,y.y,z,ne,re,ae,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-ae)/(z-re)),9999>Math.abs(x)){if(ae=ne-ce-x*(z-E),0>a*a*x*x+le*le-ae*ae){b.x=NaN,b.y=NaN,ce=!1;break e}me=Math.sqrt(a*a*x*x+le*le-ae*ae),re=(-(a*a*x*ae)+a*le*me)/(le*le+a*a*x*x)+E,a=(-(a*a*x*ae)-a*le*me)/(le*le+a*a*x*x)+E,le=x*(re-E)+ae+ce,ae=x*(a-E)+ae+ce,Math.abs((z-re)*(z-re))+Math.abs((ne-le)*(ne-le))<Math.abs((z-a)*(z-a))+Math.abs((ne-ae)*(ne-ae))?(b.x=re,b.y=le):(b.x=a,b.y=ae)}else{if(re=le*le,ae=z-E,re-=re/(a*a)*ae*ae,0>re){b.x=NaN,b.y=NaN,ce=!1;break e}ae=Math.sqrt(re),re=ce+ae,ae=ce-ae,Math.abs(re-ne)<Math.abs(ae-ne)?(b.x=z,b.y=re):(b.x=z,b.y=ae)}ce=!0}An.free(y)}else if(le.type===hi.o){Ce=$e.alloc();var De=re-z,ze=ae-ne,ut=De*De+ze*ze,qe=z,wt=ne;if(0<ut&&Fe.contains(qe,wt)&&(Ce.x=qe,Ce.y=wt,this.ca(Ce)))for(De!==0&&.5>Math.abs(De)?(ze*=.5/De,De=.5):ze!==0&&.5>Math.abs(ze)&&(De*=.5/ze,ze=.5),qe-=De,wt-=ze;Fe.contains(qe,wt);)qe-=De,wt-=ze;for(b.x=re,b.y=ae,ze=0;ze<le.figures.count;ze++){var At=le.figures.s[ze],Bt=At.isFilled?qe:z,Ht=At.isFilled?wt:ne,dn=At.segments;Fe=At.startX,De=At.startY;for(var Pi=Fe,Ii=De,Bi=0;Bi<dn.count;Bi++){var si=dn.s[Bi],Vn=si.type,Tr=si.endX,Fr=si.endY,Uo=!1;switch(Vn){case ws:Pi=Tr,Ii=Fr;break;case pa:Uo=Im(Fe,De,Tr,Fr,Bt,Ht,re,ae,Ce);break;case ol:Uo=Ut.Eo(Fe,De,si.point1X,si.point1Y,si.point2X,si.point2Y,Tr,Fr,Bt,Ht,re,ae,.6,Ce);break;case Ye:Uo=Ut.Eo(Fe,De,Fe+2/3*(si.point1X-Fe),De+2/3*(si.point1Y-De),Tr+2/3*(si.point1X-Tr),Fr+2/3*(si.point1Y-Fr),Tr,Fr,Bt,Ht,re,ae,.6,Ce);break;case rt:case ft:Vn=si.type===rt?gl(si,At):Nl(si,At,Fe,De);var xa=Vn.length;if(xa===0){Uo=Im(Fe,De,si.type===rt?si.centerX:si.endX,si.type===rt?si.centerY:si.endY,Bt,Ht,re,ae,Ce);break}for(Fr=null,Tr=0;Tr<xa;Tr++){if(Fr=Vn[Tr],Tr===0&&Im(Fe,De,Fr[0],Fr[1],Bt,Ht,re,ae,Ce)){var il=Om(Bt,Ht,Ce,ut,b);il<ut&&(ut=il,ce=!0)}Ut.Eo(Fr[0],Fr[1],Fr[2],Fr[3],Fr[4],Fr[5],Fr[6],Fr[7],Bt,Ht,re,ae,.6,Ce)&&(il=Om(Bt,Ht,Ce,ut,b),il<ut&&(ut=il,ce=!0))}Tr=Fr[6],Fr=Fr[7];break;default:It("Unknown Segment type: "+Vn)}Fe=Tr,De=Fr,Uo&&(Uo=Om(Bt,Ht,Ce,ut,b),Uo<ut&&(ut=Uo,ce=!0)),si.isClosed&&(Tr=Pi,Fr=Ii,Im(Fe,De,Tr,Fr,Bt,Ht,re,ae,Ce)&&(si=Om(Bt,Ht,Ce,ut,b),si<ut&&(ut=si,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,$e.free(Ce)}else It("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,ae){if(Ut.$(a,x)&&Ut.$(y,E)||Ut.$(b,ne)&&Ut.$(z,re))return!1;var le=!1,ce=(b-ne)*(y-E)-(z-re)*(a-x);return ce===0?!1:(ae.x=((b*re-z*ne)*(a-x)-(b-ne)*(a*E-y*x))/ce,ae.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,(ae.y>a||Ut.$(ae.y,a))&&(ae.y<y||Ut.$(ae.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(ae.x>y||Ut.$(ae.x,y))&&(ae.x<a||Ut.$(ae.x,a))&&(le=!0)),le)}Me.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=$e.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)))),$e.free(z),b},Me.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Hr.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var ne=$e.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 $e.free(ne),!0;var re=$e.alloc(),ae=$e.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,Lf(this,ne,re,ae)?y=!0:(ne.x=b,ne.y=a,ne.transform(x),Lf(this,ne,re,ae)?y=!0:(re.x=E,re.y=a,re.transform(x),Lf(this,ne,re,ae)?y=!0:(ne.x=E,ne.y=z,ne.transform(x),Lf(this,ne,re,ae)&&(y=!0)))),$e.free(ne),Hr.free(x),$e.free(re),$e.free(ae),y};function Lf(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)}Me.tx=function(a,y,x){function E(ut,qe){for(var wt=ut.length,At=0;At<wt;At+=2)if(qe.zd(ut[At],ut[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,ae=ne.y,le=ne.x+ne.width;if(ne=ne.y+ne.height,lr(a.x,a.y,re,ae)<=b&&lr(a.x,a.y,le,ae)<=b&&lr(a.x,a.y,re,ne)<=b&&lr(a.x,a.y,le,ne)<=b)return!0}if(re=y.startX,ae=y.startY,le=y.endX,ne=y.endY,y.type===hi.j){if(x=(re-le)*(a.x-le)+(ae-ne)*(a.y-ne),Io(a.x,a.y,re,ae,le,ne)<=(0<=(le-re)*(a.x-re)+(ne-ae)*(a.y-ae)&&0<=x?b:z))return!0}else{if(y.type===hi.u)return y=!1,x&&(y=Io(a.x,a.y,re,ae,re,ne)<=b||Io(a.x,a.y,re,ae,le,ae)<=b||Io(a.x,a.y,le,ae,le,ne)<=b||Io(a.x,a.y,re,ne,le,ne)<=b),y;if(y.type===hi.F){y=a.x-(re+le)/2,z=a.y-(ae+ne)/2;var ce=Math.abs(le-re)/2,me=Math.abs(ne-ae)/2;if(ce===0||me===0)return Io(a.x,a.y,re,ae,le,ne)<=b;if(x){if(a=Ut.$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===hi.o){if(le=y.bounds,z=le.x,re=le.y,ae=le.x+le.width,le=le.y+le.height,a.x>ae&&a.x<z&&a.y>le&&a.y<re&&Io(a.x,a.y,z,re,z,le)>b&&Io(a.x,a.y,z,re,ae,re)>b&&Io(a.x,a.y,ae,le,z,le)>b&&Io(a.x,a.y,ae,le,ae,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?Fc(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,ae=re.length,le=0;le<ae;le++)switch(me=re[le],me.type){case ws:case pa:if(ne=me.endX,ce=me.endY,a.zd(ne,ce)>b)return!1;break;case ol:var Ce=Pn();if(Ut.Qe(ne,ce,me.point1X,me.point1Y,me.point2X,me.point2Y,me.endX,me.endY,.8,Ce),ne=E(Ce,a),Rn(Ce),ne||(ne=me.endX,ce=me.endY,a.zd(ne,ce)>b))return!1;break;case Ye:if(Ce=Pn(),Ut.ep(ne,ce,me.point1X,me.point1Y,me.endX,me.endY,.8,Ce),ne=E(Ce,a),Rn(Ce),ne||(ne=me.endX,ce=me.endY,a.zd(ne,ce)>b))return!1;break;case rt:case ft:Ce=me.type===rt?gl(me,z):Nl(me,z,ne,ce);var Fe=Ce.length;if(Fe===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 De=Pn(),ze=0;ze<Fe;ze++)if(me=Ce[ze],De.length=0,Ut.Qe(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],.8,De),E(De,a))return Rn(De),!1;Rn(De),me!==null&&(ne=me[6],ce=me[7]);break;default:It("Unknown Segment type: "+me.type)}}return!0}}}return!1},Me.qc=function(){this.ua=null},Me.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=js):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Mi(1-js.x,js.y)))}Gr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=Cd[a.toArrow];else a.fromArrow!=="None"?E=Cd[a.fromArrow]:(E=Ut.Ze[a.figure],typeof E=="string"&&(E=Ut.Ze[E]),E===void 0&&It("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=Ut.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 Ut.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=hi.parse(Ut.um[E],!1),Cd[E]=a,x!==E&&(Cd[x]=E),E}}return typeof y=="string"?y:y instanceof hi?a:null}Pt.Object.defineProperties(Gr.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),El(this)&&(a=this.part,a!==null&&Da(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=hi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=$e.allocAt(-y.x,-y.y),$e.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 nn(a,"value >= 0",Gr,"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"?nn(a,'"butt", "round", or "square"',Gr,"strokeCap"):(Mf(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?nn(a,'"miter", "bevel", or "round"',Gr,"strokeJoin"):(Mf(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Mf(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||It("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&&(Mf(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=Ut.Ze[a];typeof x=="function"?x=a:(x=Ut.Ze[a.toLowerCase()])||It("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?It("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?It("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:_o},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Mf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:_o},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Mf(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Mf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:zr},set:function(a){var y=this.geometryStretch;y!==a&&(Mf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new 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))}}}),Gr.prototype.intersectsRect=Gr.prototype.Yc,Gr.prototype.containedInRect=Gr.prototype.fh,Gr.prototype.getNearestIntersectionPoint=Gr.prototype.rs,Gr.prototype.getDocumentBounds=Gr.prototype.mi,Gr.prototype.getDocumentPoint=Gr.prototype.ga;var Cd=new Ti,Fv=new Ti;Gr.className="Shape",Gr.getFigureGenerators=function(){var a=new Si,y;for(y in Ut.Ze)y!==y.toLowerCase()&&a.add(y,Ut.Ze[y]);return a.freeze(),a},Gr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=Ut.Ze;E[a]=y,E[x]=a},Gr.getArrowheadGeometries=function(){var a=new Si;for(E in Ut.um)if(Cd[E]===void 0){var y=hi.parse(Ut.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 hi&&a.add(x,E)}return a.freeze(),a},Gr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=hi.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||It("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Cd;E[a]=x,E[y]=a};function Mv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=zr,this.gg=this.fg=_o}Mv.prototype.copy=function(){var a=new Mv;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 Gt.call(this),Wm||(hu=fs?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}Kt(Ca,Gt),Ca.prototype.cloneProtected=function(a){Gt.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())}Me=Ca.prototype,Me.th=function(){Gt.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}Me.qb=function(a){a.classType===Ca?this.wrap=a:Gt.prototype.qb.call(this,a)},Me.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Me.v=function(){Gt.prototype.v.call(this)},Me.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,ae=y.tn;re==="start"?re=ae?"right":"left":re==="end"&&(re=ae?"left":"right"),ae=this.isUnderline;var le=this.isStrikethrough;gs(this,a,this.xc,!0,!1,x,E),(ae||le)&&gs(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 Lu&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,me=this.spacingBelow,this.flip){case Oo:a.translate(b,0),a.scale(-1,1);break;case ro:a.translate(0,z),a.scale(1,-1);break;case ua: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,ae,le);else if(this.Qc!==null&&this.Qb!==null)for(Ce=0;Ce<ce;Ce++){var Fe=this.Qc[Ce];Fe>b&&(Fe=b),E+=y,this.Oj(this.Qb[Ce],a,0,E,b,ne,Fe,x,re,ae,le),E+=ne+me}switch(this.flip){case Oo:a.scale(-1,1),a.translate(-b,0);break;case ro:a.scale(1,-1),a.translate(0,-z);break;case ua:a.scale(-1,-1),a.translate(-b,-z)}}},Me.Oj=function(a,y,x,E,b,z,ne,re,ae,le,ce){var me=0;if(re)ae==="left"?me=0:ae==="right"?me=b-ne:ae==="center"&&(me=(b-ne)/2),y.fillRect(x+me,E+.25*z,ne,1);else{if(ae==="left"?me=0:ae==="right"?me=b:ae==="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),ae==="right"?me-=ne:ae==="center"&&(me-=ne/2),le){re=zm!==null?zm(this,z):.8*z,ae=x+me,le=E+re,b=x+me+ne,re=E+re;var Ce=a;y.beginPath(),y.lineWidth=Ce,y.moveTo(ae,le),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof Lu&&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 Lu&&y.ad.classList.add("gojs-td"))}},Me.kk=function(a,y,x){if(!Gt.prototype.kk.call(this,a,y,x))return!1;if(gs(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},Me.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Gt.prototype.nk.call(this,a)},Me.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)}},Me.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;hu!==null&&M1!==z&&(M1=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,ae=!1;!ae;){var le=z.indexOf(`
|
|
|
`,re);le===-1&&(le=z.length,ae=!0),re=z.substr(re,le-re),this.formatting===Ep&&(re=re.trim()),ne=Math.max(ne,Tc(re)),re=le+1}z=ne}else ne=z.indexOf(`
|
|
|
`,0),0<=ne&&(z=z.substr(0,ne)),z=Tc(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,ae=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),ae=Math.min(this.maxLines-1,Math.max(Math.floor(ae/le+.01)-1,0)),!(ae+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[ae],y=Math.max(1,a-y);Tc(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=bp,y=Tc(le),this.Qb[ae]=le,this.Qb=this.Qb.slice(0,ae+1),this.Qc[ae]=y,this.Qc=this.Qc.slice(0,ae+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),Yo(this.dc,z,ne),this.Ge(0,0,z,ne),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Me.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 Lv(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 ae=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=Tc(y);if(ae===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=Tc(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=Tc(le);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-ae);Tc(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=bp;var ce=Tc(z);a.Cb=ce,wp(a,z,ce),E!==null&&E.h(ce,re)}}else{for(ae=0,ne.length===0&&(ae=1,wp(a,ne,0));0<ne.length;){for(y=Bg(a,ne),ne=ne.substr(y.length);Tc(y)>x;){var me=1;for(le=Tc(y.substr(0,me)),ce=0;le<=x;)me++,ce=le,le=Tc(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),ae++,y=y.substr(me),a.Gc+ae>a.maxLines)break}for(ce=Bg(a,ne),le=Tc(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=Tc(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=Tc(y),z=Math.max(z,ce)),wp(a,y,me),ae++,a.Gc+ae>a.maxLines))break}a.Le=Math.min(a.maxLines,ae),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 Tc(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>F1?x=kv[y]:(x=1.3*hu.measureText("M").width,kv[y]=x,F1++),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 ae=oi.alloc();Lv(a,z,y,ae),b+=ae.height,oi.free(ae),a.Gc+=a.Le}else Lv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ne+1}return a.Lq=b}Pt.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:Jn},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:Ts},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();Lv(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),Yo(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r: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&&nn(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 qt(Ca,"None",0),E1=new qt(Ca,"WrapFit",1),Bv=new qt(Ca,"WrapDesiredSize",2),b1=new qt(Ca,"WrapBreakAll",3),Nv=new qt(Ca,"OverflowClip",0),jm=new qt(Ca,"OverflowEllipsis",1),Ep=new qt(Ca,"FormatTrim",0),A1=new qt(Ca,"FormatNone",0),Ax=/[ \u200b\u00ad]/,kv=new Ti,F1=0,Hm=new Ti,Tv=0,bp="...",M1="",hu=null,Wm=!1;Ca.className="TextBlock";function Ov(){this.nc=!1,this.Hd=null,this.Xf=Jn,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=Ts,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 Ti,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=fs?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){Gt.call(this),this.Eg=null,this.qo="",this.Xg=Do,this.Nk=ei,this.Zg=this.Hd=null,this.Mk=yo,this.Xf=Jn,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;Kt(fu,Gt),fu.prototype.cloneProtected=function(a){Gt.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===Jn||a===Wi||a===xo?this.imageStretch=a:Gt.prototype.qb.call(this,a)},fu.prototype.toString=function(){return"Picture("+this.source+")#"+fo(this)};function kg(a){a===void 0&&(a=""),a!==""?Ng[a]&&(delete Ng[a],Zm--):(Ng=new Ti,Zm=0)}function L1(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,ae=0;ae<re;ae++)z=ne[ae],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()||(Gs(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=Pn();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);Rn(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 Lu;E=this.naturalBounds;var z=0,ne=0,re=this.qn,ae=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,ae===void 0&&x.videoWidth&&(ae=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),ae=ae||E.width,re=re||E.height,ae!==0&&re!==0){var le=ae,ce=re;this.sourceRect.w()&&(z=this.Xg.x,ne=this.Xg.y,ae=this.Xg.width,re=this.Xg.height);var me=ae,Ce=re,Fe=this.Nk,De=this.Mk;switch(Fe){case Jn:if(this.sourceRect.w())break;me>=E.width&&(z=z+De.offsetX+(me*De.x-E.width*De.x)),Ce>=E.height&&(ne=ne+De.offsetY+(Ce*De.y-E.height*De.y)),ae=Math.min(E.width,me),re=Math.min(E.height,Ce);break;case ei:me=E.width,Ce=E.height;break;case Wi:case xo:Fe===Wi?(Fe=Math.min(E.height/Ce,E.width/me),me*=Fe,Ce*=Fe):Fe===xo&&(Fe=Math.max(E.height/Ce,E.width/me),me*=Fe,Ce*=Fe,me>=E.width&&(z=(z+De.offsetX+(me*De.x-E.width*De.x)/me)*ae),Ce>=E.height&&(ne=(ne+De.offsetY+(Ce*De.y-E.height*De.y)/Ce)*re),ae*=1/(me/E.width),re*=1/(Ce/E.height),me=E.width,Ce=E.height)}Fe=this.Df()*y.scale;var ze=me*Fe*Ce*Fe,ut=ae*re/ze,qe=x.__goCache;Fe=null;var wt=Fx;if(!b){if(x.sq&&qe!==void 0&&4<ze&&ut>wt*wt)for(qe.gi===null&&(B1(qe,4,le,ce,x),B1(qe,16,le,ce,x)),b=qe.gi,le=b.length,ce=0;ce<le&&b[ce].ratio*b[ce].ratio<ut;ce++)Fe=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?De.offsetX+(E.width*De.x-me*De.x):0,De=Ce<E.height?De.offsetY+(E.height*De.y-Ce*De.y):0,this.flip){case Oo:a.translate(Math.min(E.width,me),0),a.scale(-1,1);break;case ro:a.translate(0,Math.min(E.height,Ce)),a.scale(1,-1);break;case ua:a.translate(Math.min(E.width,me),Math.min(E.height,Ce)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&qe!==void 0&&Fe!==null&&Fe.ratio!==1){a.save(),y=Fe.ratio;try{a.drawImage(Fe.source,z/y,ne/y,Math.min(Fe.source.width,ae/y),Math.min(Fe.source.height,re/y),b,De,Math.min(E.width,me),Math.min(E.height,Ce)),a instanceof Lu&&(this.bt=[z/y,ne/y,Math.min(Fe.source.width,ae/y),Math.min(Fe.source.height,re/y),b,De,Math.min(E.width,me),Math.min(E.height,Ce)])}catch(At){this.en=!1}a.restore()}else try{a.drawImage(x,z,ne,ae,re,b,De,Math.min(E.width,me),Math.min(E.height,Ce)),a instanceof Lu&&(this.bt=[z,ne,ae,re,b,De,Math.min(E.width,me),Math.min(E.height,Ce)])}catch(At){this.en=!1}switch(this.flip){case Oo:a.scale(-1,1),a.translate(-Math.min(E.width,me),0);break;case ro:a.scale(1,-1),a.translate(0,-Math.min(E.height,Ce));break;case ua: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,ae=0,le=0;(re||!this.al&&ne&&ne.complete)&&(this.al=!0),ne===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(ae=re?+ne.width:ne.naturalWidth,le=re?+ne.height:ne.naturalHeight),isFinite(b.width)||z===ei||z===Ui?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ne!==null&&(a=ae)),x=0):ne!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:ae),isFinite(b.height)||z===ei||z===vr?(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)),Yo(this.dc,a,y),this.Ge(0,0,a,y)},fu.prototype.eh=function(a,y,x,E){Hl(this,a,y,x,E)},Pt.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||It("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 Dn),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()||(Gs(this,!1),this.v())):x&&L1(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(fs){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Zm&&(kg(),x=Ng),E=Mn("img"),E.hn=!0,L1(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,Fx=4;fu.className="Picture",Ng=new Ti,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 hi,this.mc=null}Tg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new hi,this.mc=null};function Og(a,y,x,E,b,z){a.mc=new Rs,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 Mx(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 No(ws);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 No(pa);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 ae=new No(ol);ae.point1X=y,ae.point1Y=x,ae.point2X=E,ae.point2Y=b,ae.endX=z,ae.endY=ne,re&&ae.close(),a.mc.segments.add(ae)}function Gm(a,y,x,E,b){var z;z===void 0&&(z=!1);var ne=new No(Ye);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 No(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 Lx(a,y,x,E,b,z,ne,re){var ae;ae===void 0&&(ae=!1),y=new No(ft,ne,re,y,x,E,b,z),ae&&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 zl(a,y){var x=a.toLowerCase(),E=Ut.Ze;E[a]=y,E[x]=a}zl("Rectangle",function(a,y,x){a="r"+y+","+x;var E=Ut.Mf[a];return E!==void 0||(E=new hi(hi.u),E.endX=y,E.endY=x,Ut.Nf<Ut.vm&&(Ut.Mf[a]=E,Ut.Nf++)),E}),zl("Square",function(a,y,x){a="s"+y+","+x;var E=Ut.Mf[a];return E!==void 0||(E=new hi(hi.u),E.endX=y,E.endY=x,E.defaultStretch=Wi,Ut.Nf<Ut.vm&&(Ut.Mf[a]=E,Ut.Nf++)),E}),zl("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=Ut.Mf[E];if(b!==void 0)return b;var z=a*Ut.wg;return b=new hi().add(new Rs(a,0,!0).add(new No(pa,y-a,0)).add(new No(ol,y,a,y-z,0,y,z)).add(new No(pa,y,x-a)).add(new No(ol,y-a,x,y,x-z,y-z,x)).add(new No(pa,a,x)).add(new No(ol,0,x-a,z,x,0,x-z)).add(new No(pa,0,a)).add(new No(ol,a,0,0,z,z,0).close())),1<z&&(b.spot1=new Mi(0,0,z,z),b.spot2=new Mi(1,1,-z,-z)),Ut.Nf<Ut.vm&&(Ut.Mf[E]=b,Ut.Nf++),b}),zl("Border","RoundedRectangle"),zl("Ellipse",function(a,y,x){a="e"+y+","+x;var E=Ut.Mf[a];return E!==void 0||(E=new hi(hi.F),E.endX=y,E.endY=x,E.spot1=cc,E.spot2=au,Ut.Nf<Ut.vm&&(Ut.Mf[a]=E,Ut.Nf++)),E}),zl("Circle",function(a,y,x){a="c"+y+","+x;var E=Ut.Mf[a];return E!==void 0||(E=new hi(hi.F),E.endX=y,E.endY=x,E.spot1=cc,E.spot2=au,E.defaultStretch=Wi,Ut.Nf<Ut.vm&&(Ut.Mf[a]=E,Ut.Nf++)),E}),zl("TriangleRight",function(a,y,x){return new hi().add(new Rs(0,0).add(new No(pa,y,.5*x)).add(new No(pa,0,x).close())).pm(0,.25,.5,.75)}),zl("TriangleDown",function(a,y,x){return new hi().add(new Rs(0,0).add(new No(pa,y,0)).add(new No(pa,.5*y,x).close())).pm(.25,0,.75,.5)}),zl("TriangleLeft",function(a,y,x){return new hi().add(new Rs(y,x).add(new No(pa,0,.5*x)).add(new No(pa,y,0).close())).pm(.5,.25,1,.75)}),zl("TriangleUp",function(a,y,x){return new hi().add(new Rs(y,x).add(new No(pa,0,x)).add(new No(pa,.5*y,0).close())).pm(.25,.5,.75,1)}),zl("Triangle","TriangleUp"),zl("Diamond",function(a,y,x){return new hi().add(new Rs(.5*y,0).add(new No(pa,0,.5*x)).add(new No(pa,.5*y,x)).add(new No(pa,y,.5*x).close())).pm(.25,.25,.75,.75)}),zl("LineH",function(a,y,x){return a=new hi(hi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),zl("LineV",function(a,y,x){return a=new hi(hi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),zl("None","Rectangle"),zl("BarH","Rectangle"),zl("BarV","Rectangle"),zl("MinusLine","LineH"),zl("PlusLine",function(a,y,x){return new hi().add(new Rs(0,x/2,!1).add(new No(pa,y,x/2)).add(new No(ws,y/2,0)).add(new No(pa,y/2,x)))}),zl("XLine",function(a,y,x){return new hi().add(new Rs(0,x,!1).add(new No(pa,y,0)).add(new No(ws,0,0)).add(new No(pa,y,x)))}),zl("LineRight",function(a,y,x){return new hi().add(new Rs(.25*y,0,!1).add(new No(pa,.75*y,.5*x)).add(new No(pa,.25*y,x)))}),zl("LineDown",function(a,y,x){return new hi().add(new Rs(0,.25*x,!1).add(new No(pa,.5*y,.75*x)).add(new No(pa,y,.25*x)))}),zl("LineLeft",function(a,y,x){return new hi().add(new Rs(.75*y,0,!1).add(new No(pa,.25*y,.5*x)).add(new No(pa,.75*y,x)))}),zl("LineUp",function(a,y,x){return new hi().add(new Rs(0,.75*x,!1).add(new No(pa,.5*y,.25*x)).add(new No(pa,y,.75*x)))}),Ut.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=Pa,this.ir=null,this.jr="",this.lr=_o,this.Gq="",this.Hq=Ua,this.Pq=eo,this.Kq=Qi,this.Up=null,this.Cq=127,this.zr=Vr,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 er(a,y){a===void 0||a instanceof _s||typeof a=="string"?ii.call(this,a):(ii.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 $e(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new An,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Kt(er,ii),er.prototype.cloneProtected=function(a){ii.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},Me=er.prototype,Me.Af=function(a){ii.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Me.toString=function(){var a=Yn(this.constructor)+"#"+fo(this);return this.data!==null&&(a+="("+Zn(this.data)+")"),a};function gu(a){a.P===null?a.P=new Iv:a.P.nc&&(a.P=a.P.copy())}Me.th=function(){ii.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Me.gk=function(a,y,x,E,b,z,ne){var re=this.diagram;re!==null&&(a===ai&&y==="elements"?b instanceof ii?Ff(b,function(ae){uy(re.partManager,ae),dh(re,ae)}):Sd(re,b):a===xi&&y==="elements"&&(b instanceof ii?Ff(b,function(ae){cy(re.partManager,ae,re)}):Kf(re,b)),re.cb(a,y,x,E,b,z,ne))},Me.La=function(a){if(ii.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 ii&&Ff(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},er.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},er.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},er.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 Si),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)))}}},er.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)}},er.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=Pn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Rn(y)}},er.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 Or?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ko))break e;xc(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ii.Link),x.adornedObject=y)}if(x!==null){x.type===ii.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Dx(this,a),y=this.adornments;y.next();)y.value.La()}},er.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=An.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),An.free(E),jv(a,!1)}}er.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new Hr);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},er.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=yo;this.locationSpot.sb()&&(z=this.locationSpot);var ne=$e.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),$e.free(ne)}},er.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},er.prototype.moveTo=function(a,y,x){a=$e.allocAt(a,y),this.move(a,x),$e.free(a)},er.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())},er.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())},er.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Si),y.I(a)!==null)return y.I(a);var x=ii.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 $e),x=x.Mc()?yo: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}er.prototype.mi=function(a){return a===void 0&&(a=new An),a.assign(this.actualBounds)},er.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function O1(a){var y=$e.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Gr?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}er.prototype.arrange=function(){if(Jl(this)===!1)T1(this);else{xd(this,!1);var a=this.Ib,y=An.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()||Ut.B(y.width,a.width)&&Ut.B(y.height,a.height)||0<=this.vw&&this.C(16),An.free(y),jv(this,!1)}},Me=er.prototype,Me.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=An.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),An.free(b)}!(this.G&65536)&&a.D(y)||H1(this,E,x),x.N(),!a.w()&&!y.w()||Kr(a,y)||(this instanceof Ci&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Me.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 $e(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 Ko||(y=y.animationManager,y.zb&&wl(y,a,new $e(E,b),x))}Me.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)},Me.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,$e.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 Ko||wl(x,a,new $e(z,ne),y),E||y.x===z&&y.y===ne||a.g("position",new $e(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 Ci&&Xl(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?Vh(a)?(da(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Me.si=function(){return!0},Me.Zc=function(){return!0},Me.ph=function(){return!1},Me.Dd=function(){return!0};function zv(a,y,x,E){y.constructor===a.constructor||G1||(G1=!0,ui('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),ui(" Old class: "+Yn(a.constructor)+", new class: "+Yn(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,ne=a.isHighlighted,re=!0,ae=!0,le=!1;a instanceof Ci&&(re=a.isTreeLeaf,ae=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 Ci&&(a.U=re?a.U|4:a.U&-5,a.U=ae?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)}er.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},er.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},er.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},er.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},er.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},er.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},er.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},er.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},er.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}Me=er.prototype,Me.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}Me.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Me.N=function(){var a=this.diagram;a!==null&&!Jl(this)&&!Kh(this)&&this.isVisible()&&this.Ib.w()&&a.N(Df(this,this.Ib))},Me.v=function(){ii.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Ci&&this.labeledLink!==null&&_l(this.labeledLink),a.$b(!0))},Me.Vo=function(a){a||(a=this.Ah,a!==null&&Yv(a,this))},Me.Wo=function(a){a||(a=this.Ah,a!==null&&Uv(a,this))},Me.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Me.oz=function(){return Wv(this,this)};function Wv(a,y){var x=y.containingGroup;return x!==null?1+Wv(a,x):y instanceof Ci&&(y=y.labeledLink,y!==null)?Wv(a,y):0}Me.sz=function(){return W1(this,this)};function W1(a,y){var x=y.containingGroup;return x!==null||y instanceof Ci&&(x=y.labeledLink,x!==null)?W1(a,x):y}Me.Td=function(a){return a instanceof Or?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 Ci&&(y=y.labeledLink,y!==null)?Zv(a,y,x):!1:!0}Me.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Or&&Ym(y,!0),y instanceof Ci){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof Ci&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Or&&Ym(y,!1),y instanceof Ci&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},er.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Ci&&this.isLinkLabel)},er.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof Ci&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function 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 Ko)){if(a.add(y),y instanceof Ci){if(x&&y instanceof Or)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 ae=re.fromNode,le=re.toNode;ae=ae===null||a.contains(ae),le=le===null||a.contains(le),(b?ae&&le:ae||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 li)for(y=y.labelNodes;y.next();)Yh(a,y.value,x,E,b,z)}}Pt.Object.defineProperties(er.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Nr: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(xi,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb(ai,"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&&Mu(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 Ko?this.type!==ii.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:eo},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:Qi},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:Ua},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 Ko)){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 Ko?this instanceof Ko&&(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 li||(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 li?(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:Pa},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:_o},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&&It("Cannot make a Group a member of itself: "+this.toString()),It("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 Or&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Yv(a,this):this instanceof Or&&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 Or){for(x=new Dn,Yh(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Ci)for(E=E.linksConnected;E.next();)Ig(E.value)}if(this instanceof Ci){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&&Mu(y,-1,a))}}else It("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 Ci&&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:Vr},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))}}}),er.prototype.invalidateLayout=er.prototype.C,er.prototype.findCommonContainingGroup=er.prototype.px,er.prototype.isMemberOf=er.prototype.Td,er.prototype.findTopLevelPart=er.prototype.sz,er.prototype.findSubGraphLevel=er.prototype.oz,er.prototype.ensureBounds=er.prototype.Va,er.prototype.getDocumentBounds=er.prototype.mi,er.prototype.findObject=er.prototype.fb,er.prototype.moveTo=er.prototype.moveTo,er.prototype.invalidateAdornments=er.prototype.Wb,er.prototype.clearAdornments=er.prototype.Ej,er.prototype.removeAdornment=er.prototype.Jf,er.prototype.addAdornment=er.prototype.bh,er.prototype.findAdornment=er.prototype.Pj,er.prototype.updateTargetBindings=er.prototype.La;var G1=!1;er.className="Part",er.LayoutNone=0,er.LayoutAdded=1,er.LayoutRemoved=2,er.LayoutShown=4,er.LayoutHidden=8,er.LayoutNodeSized=16,er.LayoutGroupLayout=32,er.LayoutNodeReplaced=64,er.LayoutStandard=127,er.LayoutAll=16777215;function Ko(a,y){a===void 0||a instanceof _s||typeof a=="string"?er.call(this,a):(er.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)}Kt(Ko,er),Ko.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ko.prototype.updateRelationshipsFromData=function(){},Ko.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof li&&y instanceof Gr){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 Gr&&(b.ua=a)}}},Ko.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Jl(a))},Ko.prototype.Zc=function(){return!1},Ko.prototype.gk=function(a,y,x,E,b,z,ne){if(a===ai&&y==="elements"){if(b instanceof $l)this.$a===null&&(this.$a=b);else if(b instanceof ii){var re=b.Nl(function(ae){return ae instanceof $l});re instanceof $l&&this.$a===null&&(this.$a=re)}}else a===xi&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ii&&this.$a.rg(E)&&(this.$a=null));er.prototype.gk.call(this,a,y,x,E,b,z,ne)},Ko.prototype.updateAdornments=function(){},Ko.prototype.Lj=function(){},Pt.Object.defineProperties(Ko.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}}}),Ko.className="Adornment";function Gv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Pr,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 Ci(a,y){a===void 0||a instanceof _s||typeof a=="string"?er.call(this,a):(er.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new On,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Kt(Ci,er),Ci.prototype.cloneProtected=function(a){er.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Me=Ci.prototype,Me.Af=function(a){er.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())}Me.th=function(){er.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function K1(a,y){y!==null&&(a.af===null&&(a.af=new Dn),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}Me.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=V1(this,a,y,x),a!==null&&a.Sl()},Me.gk=function(a,y,x,E,b,z,ne){a===ai&&y==="elements"?this.wc=null:a===xi&&y==="elements"&&(this.wc=null),er.prototype.gk.call(this,a,y,x,E,b,z,ne)},Me.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)}}Me.si=function(){return!0},Ci.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Ci.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Ci.prototype.isVisible=function(){if(!er.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===Zs){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},Ci.prototype.Zb=function(a){er.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)}},Ci.prototype.qx=function(){var a=new Dn,y=new Dn;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)})}}Ci.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Zi(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Me=Ci.prototype,Me.Mo=function(a){a===void 0&&(a=null);var y=new Zi(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Me.Sd=function(a){a===void 0&&(a=null);var y=new Zi(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Me.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 Dn,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 Dn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new cr(x):Nr},Me.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 Dn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new cr(x):Nr},Me.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 Dn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new cr(x):Nr},Me.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Zi(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},Me.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new Zi(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}}}Ci.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Me=Ci.prototype,Me.Vo=function(a){er.prototype.Vo.call(this,a),a||(Ap(this),a=this.Yk,a!==null&&nS(a,this))},Me.Wo=function(a){er.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Me.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,er.prototype.Lj.call(this)},Me.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 Si: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=Pn()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Rn(x)}}}Me.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},Me.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}},Me.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},Me.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},Me.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Ci)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Me.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 Dn;return a(this,y),y},Me.uz=function(){return J1(this,this)};function J1(a,y){return y=y.pg(),y===null?0:1+J1(a,y)}Me.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Zi(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},Me.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 On,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 On,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new cr(x):Nr},Me.wz=function(a){a===void 0&&(a=1/0);var y=new Dn;return Yh(y,this,!1,a,!0),y},Ci.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Dn;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 ae=re.value;ae.isTreeLink&&(ae=ae.To(a),ae===null||ae===a||y.contains(ae)||(y.add(ae),Q1(ae,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(),ae={};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();ae.uv=a,me.all(function(Ce){return function(Fe){return Fe===Ce.uv||!Fe.isTreeExpanded}}(ae))&&E.Aj(le,b),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,ce||$1(le,y,x,E,b,z))}ae={uv:ae.uv}}a.isTreeExpanded=!1}Ci.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Dn;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,ae=x?a.Mo():a.Sd(),le={};ae.next();){var ce=ae.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(Fe){return Fe===Ce.vv||!Fe.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}Pt.Object.defineProperties(Ci.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:Pr},set:function(a){typeof a=="number"&&(a=new Yi(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))}}}),Ci.prototype.expandTree=Ci.prototype.expandTree,Ci.prototype.collapseTree=Ci.prototype.collapseTree,Ci.prototype.findTreeParts=Ci.prototype.wz,Ci.prototype.findTreeChildrenNodes=Ci.prototype.Ou,Ci.prototype.findTreeChildrenLinks=Ci.prototype.Qo,Ci.prototype.findTreeLevel=Ci.prototype.uz,Ci.prototype.findTreeParentChain=Ci.prototype.vz,Ci.prototype.findTreeParentNode=Ci.prototype.pg,Ci.prototype.findTreeParentLink=Ci.prototype.kh,Ci.prototype.findCommonTreeParent=Ci.prototype.gz,Ci.prototype.findTreeRoot=Ci.prototype.xz,Ci.prototype.isInTreeOf=Ci.prototype.Nz,Ci.prototype.findPort=Ci.prototype.ns,Ci.prototype.findLinksTo=Ci.prototype.kz,Ci.prototype.findLinksBetween=Ci.prototype.jz,Ci.prototype.findNodesInto=Ci.prototype.Oo,Ci.prototype.findNodesOutOf=Ci.prototype.Po,Ci.prototype.findNodesConnected=Ci.prototype.Mu,Ci.prototype.findLinksInto=Ci.prototype.Sd,Ci.prototype.findLinksOutOf=Ci.prototype.Mo,Ci.prototype.findExternalTreeLinksConnected=Ci.prototype.qx,Ci.prototype.invalidateConnectedLinks=Ci.prototype.Bd,Ci.prototype.invalidateLinkBundle=Ci.prototype.Lz;var Bx=new qt(Ci,"SpreadingNone",10),_m=new qt(Ci,"SpreadingEvenly",11),Vv=new qt(Ci,"SpreadingPacked",12);Ci.className="Node",Ci.SpreadingNone=Bx,Ci.SpreadingEvenly=_m,Ci.SpreadingPacked=Vv;function Or(a,y){a===void 0||a instanceof _s||typeof a=="string"?Ci.call(this,a):(Ci.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Dn,this.$a=null,this.Sc=new Ga,this.Sc.group=this,this.gl=new Dn,this.tb=this.$p=null,y&&Object.assign(this,y)}Kt(Or,Ci),Or.prototype.cloneProtected=function(a){Ci.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())},Me=Or.prototype,Me.Af=function(a){Ci.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof Ci)x.Bd(y);else if(x instanceof li)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Me.gk=function(a,y,x,E,b,z,ne){if(a===ai&&y==="elements"){if(b instanceof $l)this.$a===null?this.$a=b:this.$a!==b&&It("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof ii){var re=b.Nl(function(ae){return ae instanceof $l});re instanceof $l&&(this.$a===null?this.$a=re:this.$a!==re&&It("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===xi&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ii&&this.$a.rg(E)&&(this.$a=null));Ci.prototype.gk.call(this,a,y,x,E,b,z,ne)},Me.Xl=function(a,y){Ci.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ii.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ii&&(a=a.Pb()),this.tb===null&&(this.tb=new An),a.mi(this.tb),a instanceof Gr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Me.eh=function(a,y,x,E){this.nf=this.$a,Ci.prototype.eh.call(this,a,y,x,E)},Me.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof li||y.Va()}),Ci.prototype.Va.call(this)},Me.si=function(){if(!Ci.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Ci){if(y.isVisible()&&Jl(y))return!1}else if(y instanceof li&&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 Or&&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 li&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Uv(a,y){if(a.Gn.remove(y)){y instanceof Or&&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 li&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Me.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}Ci.prototype.Lj.call(this)},Or.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=wn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Or.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=wn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Or.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))},Me=Or.prototype,Me.Bd=function(a){var y=(this.U&65536)!==0;if(Ci.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var 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()))}}},Me.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 Dn,E=y.iterator;E.next();){var b=E.value;if(b instanceof Ci)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Me.iz=function(){var a=this.Rj();a.add(this);for(var y=new Dn,x=a.iterator;x.next();){var E=x.value;if(E instanceof Ci)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},Me.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new Dn;return a(this,y),y},Me.Rj=function(){var a=new Dn;return Yh(a,this,!0,0,!0),a.remove(this),a},Me.Zb=function(a){Ci.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Or.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 Or&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,eS(z,y,x,E)),z instanceof Ci)z.Bd(y),x.Aj(z,E);else if(z instanceof li)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Or.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 Or&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,tS(z,y,x,E)),z instanceof Ci)z.Bd(y),x.Cj(z,E);else if(z instanceof li)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Or.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=$e.alloc(),Ci.prototype.move.call(this,a,y),a=new Dn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof li&&(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 Ci&&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 li&&(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());$e.free(z)}},Pt.Object.defineProperties(Or.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&&It("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)}}}),Or.prototype.expandSubGraph=Or.prototype.expandSubGraph,Or.prototype.collapseSubGraph=Or.prototype.collapseSubGraph,Or.prototype.findSubGraphParts=Or.prototype.Rj,Or.prototype.findContainingGroupChain=Or.prototype.hz,Or.prototype.findExternalNodesConnected=Or.prototype.iz,Or.prototype.findExternalLinksConnected=Or.prototype.Lu,Or.prototype.ensureBounds=Or.prototype.Va,Or.className="Group";function $l(a){Gt.call(this),this.yb=Xr,this.ko=new An(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Kt($l,Gt),$l.prototype.cloneProtected=function(a){Gt.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 Qo(0,0,y.width,y.height,a.x,a.y)},$l.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Or||a instanceof Ko)||It("Placeholder is not inside a Group or Adornment."),a instanceof Or){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Yo(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=$e.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),$e.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 Gr&&(ne=z.strokeWidth);var re=z.Df(),ae=z.naturalBounds,le=(ae.width+ne)*re;ne=(ae.height+ne)*re,a.type!==ii.Link&&(re=z.ga(a.category==="Selection"?Ua:a.locationSpot,$e.alloc()),a.location=re,$e.free(re)),isNaN(le)||isNaN(ne)?(a=z.ga(Ua,$e.alloc()),le=An.allocAt(a.x,a.y,0,0),le.Ye(z.ga(xl,a)),le.Ye(z.ga(Sl,a)),le.Ye(z.ga(Ll,a)),Yo(y,le.width+E||0,le.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),$e.free(a),An.free(le)):(Yo(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 Or&&!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=An.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Or&&!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)),An.free(x),E&&y instanceof Or&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},$l.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Or))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 li&&(!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},Pt.Object.defineProperties($l.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Yi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),$l.className="Placeholder";function li(a){er.call(this,ii.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 On().freeze(),this.Tg=this.Mg=null,this.ml=new An,this.ua=new hi,this.u=this.o=this.Sf=this.Wf=null,this.su=new $e,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Kt(li,er),li.prototype.cloneProtected=function(a){er.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())},Me=li.prototype,Me.Af=function(a){er.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)},Me.qb=function(a){a.classType===li?(a.value&2)===2?this.routing=a:a===Zu||a===wh||a===zg?this.curve=a:a===Lp||a===t0||a===n0?this.adjusting=a:a!==$v&&a!==ql&&It("Unknown Link enum value for a Link property: "+a):er.prototype.qb.call(this,a)},Me.Xc=function(){this.ba===null&&(this.ba=new pp)},Me.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)))},Me.zv=function(){return!1},Me.Av=function(){},Me.Zc=function(){return!1},li.prototype.computeAngle=function(a,y,x){return li.computeAngle(y,x)},li.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=Ut.bp(y),90<a&&270>a&&(a-=180);break;case kp:a=Ut.bp(y+90),90<a&&270>a&&(a-=180);break;case Tp:a=Ut.bp(y-90),90<a&&270>a&&(a-=180);break;case r0:if(a=Ut.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ut.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}Me=li.prototype,Me.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&er.prototype.oh.call(this)},Me.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Me.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function nS(a,y){a.wd===null&&(a.wd=new Dn),a.wd.add(y),a.v()}Me.Vo=function(a){if(er.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)}Fp(this)}},Me.Wo=function(a){if(er.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)}Mp(this)}},Me.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))},li.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},li.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?er.prototype.move.call(this,a,!1):(a=$e.allocAt(x.x+E,x.y+b),er.prototype.move.call(this,a,!1),$e.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)},li.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},li.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},li.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(pr),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 Ut.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),Ut.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},li.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),Ut.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)},Me=li.prototype,Me.i=function(a){return this.Nb.s[a]},Me.dd=function(a,y){this.Nb.cd(a,y)},Me.L=function(a,y,x){this.Nb.cd(a,new $e(y,x))},Me.Kz=function(a,y){this.Nb.Gb(a,y)},Me.m=function(a,y,x){this.Nb.Gb(a,new $e(y,x))},Me.ne=function(a){this.Nb.add(a)},Me.yf=function(a,y){this.Nb.add(new $e(a,y))},Me.pv=function(a){this.Nb.mb(a)},Me.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 On,z=a.Nb.iterator;z.next();){var ne=z.value;b.add(new $e(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&&va(ne.animationManager,a,b),a.g("points",z,b)}}Me.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Me.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 ae=y.s,le=ae.length,ce=0;ce<le;ce++){var me=ae[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=ae[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&&va(x.animationManager,this,y),Jm(this),this.g("points",a,y)}},Me.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))}Me.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())}},Me.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()}}},li.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(ig||(ig=new Ci,ig.desiredSize=Ro,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 Ci,rg.desiredSize=Ro,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),ae=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&&ae){if(re=!1,!Ce&&3<=z&&(Ce=this.getLinkPoint(a,y,ne,!0,!1,E,b),ae=this.getLinkPoint(E,b,x,!1,!1,a,y),re=this.adjustPoints(0,Ce,z-1,ae))&&(Ce=this.getLinkPoint(a,y,ne,!0,!1,E,b),ae=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,Ce,z-1,ae)),!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,ae=Ce.y-z.y,le=this.computeCurviness(),me=ce=0;var Fe=z.x+re/3,De=z.y+ae/3,ze=Fe,ut=De;Ut.B(ae,0)?ut=0<re?ut-le:ut+le:(ce=-re/ae,me=Math.sqrt(le*le/(ce*ce+1)),0>le&&(me=-me),ze=(0>ae?-1:1)*me+Fe,ut=ce*(ze-Fe)+De),Fe=z.x+2*re/3,De=z.y+2*ae/3;var qe=Fe,wt=De;Ut.B(ae,0)?wt=0<re?wt-le:wt+le:(qe=(0>ae?-1:1)*me+Fe,wt=ce*(qe-Fe)+De),this.Fj(),this.ne(z),this.yf(ze,ut),this.yf(qe,wt),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,Ut.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=An.alloc(),y.mi(re),ae=re.ca(b),Ce.mi(re),le=re.ca(E),(ae||le)&&(ne=y.ga($m(ne),new $e),this.dd(0,this.getLinkPointFromPoint(a,y,ne,b,!0,ne)),x=Ce.ga($m(x),new $e),this.dd(1,this.getLinkPointFromPoint(z,Ce,x,E,!1,x))),An.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),Fe=ze=De=0,(ce||!re||le)&&(ut=this.computeEndSegmentLength(a,y,ne,!0),Fe=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)&&(Fe-=ce?90:30,0>At&&(Fe-=180)),0>Fe?Fe+=360:360<=Fe&&(Fe-=360),le&&(ut+=Math.abs(At)*(ce?1:2)),Fe===0?De=ut:Fe===90?ze=ut:Fe===180?De=-ut:Fe===270?ze=-ut:(De=ut*Math.cos(Fe*Math.PI/180),ze=ut*Math.sin(Fe*Math.PI/180)),ne.Mc()&&le&&(ut=y.ga(yo,$e.alloc()),qe=$e.allocAt(ut.x+1e3*De,ut.y+1e3*ze),this.getLinkPointFromPoint(a,y,ut,qe,!0,me),$e.free(ut),$e.free(qe))),ut=this.getLinkPoint(E,b,x,!1,ce,a,y);var Bt=wt=qe=0;if(ce||!ae||le){var Ht=this.computeEndSegmentLength(E,b,x,!1);Bt=this.getLinkDirection(E,b,ut,x,!1,ce,a,y),le&&(ae||ne.D(x)||!ce&&ne.x+x.x===1&&ne.y+x.y===1)&&(Bt+=ce?0:30,0>At&&(Bt+=180)),0>Bt?Bt+=360:360<=Bt&&(Bt-=360),le&&(Ht+=Math.abs(At)*(ce?1:2)),Bt===0?qe=Ht:Bt===90?wt=Ht:Bt===180?qe=-Ht:Bt===270?wt=-Ht:(qe=Ht*Math.cos(Bt*Math.PI/180),wt=Ht*Math.sin(Bt*Math.PI/180)),x.Mc()&&le&&(x=b.ga(yo,$e.alloc()),ne=$e.allocAt(x.x+1e3*qe,x.y+1e3*wt),this.getLinkPointFromPoint(E,b,x,ne,!1,ut),$e.free(x),$e.free(ne))}x=me,(ce||!re||le)&&(x=new $e(me.x+De,me.y+ze)),ne=ut,(ce||!ae||le)&&(ne=new $e(ut.x+qe,ut.y+wt)),!Ce&&!ce&&re&&3<z&&this.adjustPoints(0,me,z-2,ne)?this.dd(z-1,ut):!Ce&&!ce&&ae&&3<z&&this.adjustPoints(1,x,z-1,ut)?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,ut)):(this.Fj(),this.ne(me),(ce||!re||le)&&this.ne(x),ce&&this.addOrthoPoints(x,Fe,ne,Bt,a,E),(ce||!ae||le)&&this.ne(ne),this.ne(ut))}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}li.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new $e),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,ae=-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*ae+ce,E=E.x*re+E.y*le+me,ne=x.x*ne+x.y*ae+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)}li.prototype.getLinkPoint=function(a,y,x,E,b,z,ne,re){if(re===void 0&&(re=new $e),x.sb()&&!Rg(x))return y.ga(x,re),re;if(x.$c()){var ae=Qm(this,y);if(ae!==null){if(re.assign(ae.Zo),b&&this.routing===rS){var le=Qm(this,ne);if(le!==null&&ae.Gl<le.Gl){ae=$e.alloc(),le=$e.alloc();var ce=new An(y.ga(Ua,ae),y.ga(xl,le)),me=this.computeSpot(!E,ne);a=this.getLinkPoint(z,ne,me,!E,b,a,y,le),(x.Hf(Ba)||x.Hf(Ms))&&a.y>=ce.y&&a.y<=ce.y+ce.height?re.y=a.y:(x.Hf(co)||x.Hf(zs))&&a.x>=ce.x&&a.x<=ce.x+ce.width&&(re.x=a.x),$e.free(ae),$e.free(le)}}return re}}return x=y.ga($m(x),$e.alloc()),this.pointsCount>(b?6:2)?(ne=E?this.i(1):this.i(this.pointsCount-2),b&&(ne=Xv(x,ne.copy()))):(ae=this.computeSpot(!E,ne),z=$e.alloc(),ne=ne.ga($m(ae),z),b&&(ne=Xv(x,ne)),$e.free(z)),this.getLinkPointFromPoint(a,y,x,ne,E,re),$e.free(x),re},li.prototype.getLinkDirection=function(a,y,x,E,b,z,ne,re){e:if(E.sb())var ae=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()&&(ae=Qm(this,y),ae!==null))switch(ae.Nc){case 1:ae=270;break e;case 2:ae=180;break e;default:case 4:ae=0;break e;case 8:ae=90;break e}ae=y.ga(yo,$e.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Xv(ae,re.copy()):x):(x=$e.alloc(),re=re.ga(yo,x),$e.free(x)),x=Math.abs(re.x-ae.x)>Math.abs(re.y-ae.y)?re.x>=ae.x?0:180:re.y>=ae.y?90:270,$e.free(ae),ae=x}return E.Mc()&&ne.Td(a)&&(ae+=180,360<=ae&&(ae-=360)),Rg(E)||(a=y.li(),a===0)||(45<=a&&135>a?ae+=90:135<=a&&225>a?ae+=180:225<=a&&315>a&&(ae+=270),360<=ae&&(ae-=360)),ae},li.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)},li.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=yo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===_o?ga:y)):(a=y||this.toPort,a===null?a=yo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===_o?ga:y)),a};function Rg(a){return a===ga||a.x===.5&&a.y===.5}function $m(a){return a.x===.5&&a.y===.5?a:yo}li.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ql&&4<this.pointsCount?this.computeMidPoint(new $e):(a=y.Zn,a=a!==null?cS(a,this):null,a!==null?a.Zo:y.ga(yo))},li.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},li.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=Hr.alloc(),ne.reset()),ne.multiply(this.transform),this.fh(a,ne))return yv(this,y,x,b),z===void 0&&Hr.free(ne),!0;if(this.Yc(a,ne)){var re=!1;if(!this.isAtomic)for(var ae=this.O.s,le=ae.length;le--;){var ce=ae[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=Hr.alloc(),me.set(ne),ce instanceof ii)re=ce.Cf(a,y,x,E,b,me);else if(this.path===ce){if(ce instanceof Gr)if(re=a,Ce=E,ce.pickable===!1)re=!1;else if(me.multiply(ce.transform),Ce)e:{var Fe=re,De=me;if(ce.fh(Fe,De))re=!0;else{if(De===void 0&&(De=ce.transform,Fe.Re(ce.actualBounds))){re=!0;break e}re=Fe.left,Ce=Fe.right;var ze=Fe.top;Fe=Fe.bottom;var ut=$e.alloc(),qe=$e.alloc(),wt=$e.alloc(),At=Hr.alloc();At.set(De),At.bv(ce.transform),At.Vj(),qe.x=Ce,qe.y=ze,qe.transform(At),ut.x=re,ut.y=ze,ut.transform(At),De=!1,Lf(ce,ut,qe,wt)?De=!0:(ut.x=Ce,ut.y=Fe,ut.transform(At),Lf(ce,ut,qe,wt)?De=!0:(qe.x=re,qe.y=Fe,qe.transform(At),Lf(ce,ut,qe,wt)?De=!0:(ut.x=re,ut.y=ze,ut.transform(At),Lf(ce,ut,qe,wt)&&(De=!0)))),Hr.free(At),$e.free(ut),$e.free(qe),$e.free(wt),re=De}}else re=ce.fh(re,me)}else re=nl(ce,a,E,me);re&&(Ce=ce,y!==null&&(Ce=y(ce)),Ce&&(x===null||x(Ce))&&b.add(Ce)),Hr.free(me)}}}return z===void 0&&Hr.free(ne),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Hr.free(ne),!1},li.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},li.prototype.computeCorner=function(){if(this.curve===Zu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},li.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},li.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(yo).ab(x.ga(yo))/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},li.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===ql&&x.bb()}},li.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=oS;var y=this.Sf;if(y!==null){for(var x=Pn(),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),Rn(x)}}return a},li.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},li.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},li.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===t0)return!1;b===n0&&(b=Lp)}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,ae=ne.y-z,le=Math.sqrt(re*re+ae*ae);if(!Ut.$(le,0)){if(Ut.$(re,0))var ce=0>ae?-Math.PI/2:Math.PI/2;else ce=Math.atan(ae/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(ae=Math.sqrt(re*re+Ce*Ce),Ut.$(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=ae/le,ce=Ce-ce,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-b,ae=y.y-z,y=Math.sqrt(re*re+ae*ae),Ut.$(y,0)||(Ut.$(re,0)?ae=0>ae?-Math.PI/2:Math.PI/2:(ae=Math.atan(ae/Math.abs(re)),0>re&&(ae=Math.PI-ae)),re=ae+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,ae=E.x,Ce=E.y;var Fe=1;if(ae-re!==0){var De=(Ce-ce)/(ae-re);Fe=Math.sqrt(1+1/(De*De))}else De=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ze=y.x,ut=y.y,qe=.5;le!==0&&(qe=((b-ze)*(b-ne)+(z-ut)*(z-me))/le);var wt=b+qe*(ne-b),At=z+qe*(me-z);y=Math.sqrt((ze-wt)*(ze-wt)+(ut-At)*(ut-At)),ut<De*(ze-wt)+At&&(y=-y),0<De&&(y=-y),ze=re+qe*(ae-re),qe=ce+qe*(Ce-ce),De!==0?(y=ze+y/Fe,this.L(a,y,qe-(y-ze)/De)):this.L(a,ze,qe+y)}this.dd(x,E)}return!0;case Lp: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,Ut.B(b.y,z.y)?Ut.B(z.x,ne.x)?ce=y.y:Ut.B(z.y,ne.y)&&(re=y.x):Ut.B(b.x,z.x)&&(Ut.B(z.y,ne.y)?re=y.x:Ut.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,ae=re,Ce=ce,Ut.B(b.y,z.y)?Ut.B(z.x,ne.x)?ce=E.y:Ut.B(z.y,ne.y)&&(re=E.x):Ut.B(b.x,z.x)&&(Ut.B(z.y,ne.y)?re=E.x:Ut.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,ae,Ce),x=!1;break e}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},li.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(),ae=z.actualBounds.copy();if(re.w()&&ae.w()){re.Bc(Op,Op),ae.Bc(Op,Op),re.Ye(a),ae.Ye(x);var le=$e.alloc(),ce=$e.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&ae.right>a.x||E===90&&x.y>a.y&&ae.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<ae.left?this.computeMidOrthoPosition(a.x,a.y,ae.left,x.y,!1):a.x<ae.right&&(E===270&&a.y<ae.top||E===90&&a.y>ae.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ae.right,ce.x=le.x,ce.y=x.y):E===0&&a.x<ae.left&&a.y>ae.top&&a.y<ae.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,ae.top):Math.max(x.y,ae.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&&(ae.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,ae.bottom),!0):x.y>a.y&&(E===180||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,ae.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<=ae.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,ae.top)):Math.max(x.y,E===0?re.bottom:Math.max(re.bottom,ae.bottom)),ce.x=x.x,ce.y=le.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&ae.left<a.x||E===90&&x.y>a.y&&ae.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>ae.right?this.computeMidOrthoPosition(a.x,a.y,ae.right,x.y,!1):a.x>ae.left&&(E===270&&a.y<ae.top||E===90&&a.y>ae.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):ae.left,ce.x=le.x,ce.y=x.y):E===180&&a.x>ae.right&&a.y>ae.top&&a.y<ae.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,ae.top):Math.max(x.y,ae.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&&(ae.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,ae.bottom),!0):x.y>a.y&&(E===0||E===270)&&(le.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,ae.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>=ae.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,ae.top)):Math.max(x.y,E===180?re.bottom:Math.max(re.bottom,ae.bottom)),ce.x=x.x,ce.y=le.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&ae.bottom>a.y||E===0&&x.x>a.x&&ae.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<ae.top?this.computeMidOrthoPosition(a.x,a.y,x.x,ae.top,!0):a.y<ae.bottom&&(E===180&&a.x<ae.left||E===0&&a.x>ae.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ae.bottom,ce.x=x.x,ce.y=le.y):E===90&&a.y<ae.top&&a.x>ae.left&&a.x<ae.right&&(le.x=a.x<x.x?Math.min(x.x,ae.left):Math.max(x.x,ae.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&&(ae.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,ae.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,ae.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<=ae.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,ae.left)):Math.max(x.x,E===90?re.right:Math.max(re.right,ae.right)),ce.x=le.x,ce.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&ae.top<a.y||E===0&&x.x>a.x&&ae.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>ae.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,ae.bottom,!0):a.y>ae.top&&(E===180&&a.x<ae.left||E===0&&a.x>ae.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):ae.top,ce.x=x.x,ce.y=le.y):E===270&&a.y>ae.bottom&&a.x>ae.left&&a.x<ae.right&&(le.x=a.x<x.x?Math.min(x.x,ae.left):Math.max(x.x,ae.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&&(ae.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,ae.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(le.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,ae.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>=ae.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,ae.left)):Math.max(x.x,E===270?re.right:Math.max(re.right,ae.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||!la(Ce)||re.ca(me)&&!z.Td(b)||ae.ca(a)&&!b.Td(z))y=!1;else{var Fe=ls(Ce,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Fe.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))&&Fe.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))&&Fe.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 De=x=null;if(Ce.isVirtualized){Ce=Fe.bounds.copy(),Ce.Bc(-Fe.Ho,-Fe.Go);var ze=$e.alloc();jg(Fe,a.x,a.y)||(Ut.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,a.x,a.y,le.x,le.y,ze)?(x=a=ze.copy(),y=ze.ab(le)):Ut.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,le.x,le.y,ce.x,ce.y,ze)?(x=a=ze.copy(),y=ze.ab(ce)):Ut.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ce.x,ce.y,me.x,me.y,ze)&&(x=a=ze.copy(),y=ze.ab(me))),jg(Fe,me.x,me.y)||(Ut.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,me.x,me.y,ce.x,ce.y,ze)?(De=me=ze.copy(),E=ce.ab(ze)):Ut.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,ce.x,ce.y,le.x,le.y,ze)?(De=me=ze.copy(),E=le.ab(ze)):Ut.Ff(Ce.x,Ce.y,Ce.x+Ce.width,Ce.y+Ce.height,le.x,le.y,a.x,a.y,ze)&&(De=me=ze.copy(),E=a.ab(ze))),$e.free(ze)}re=re.copy().ed(ae),re.Bc(Fe.Ho*Fe.Os,Fe.Go*Fe.Os),lS(Fe,a,y,me,E,re,!0),ae=bd(Fe,me.x,me.y),!Fe.abort&&ae>=Hg&&(sS(Fe),re.Bc(Fe.Ho*Fe.Hx,Fe.Go*Fe.Ix),lS(Fe,a,y,me,E,re,!1),ae=bd(Fe,me.x,me.y)),!Fe.abort&&ae<Hg&&bd(Fe,me.x,me.y)!==Ch?(Jv(this,Fe,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?Ut.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)):Ut.B(re.y,ne.y)?(Math.abs(a.y-re.y)<=Fe.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)&&(Ut.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)):Ut.B(re.x,ne.x)?(Math.abs(a.x-re.x)<=Fe.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)),De!==null&&(E===0||E===180?this.yf(z.x,De.y):this.yf(De.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ce.copy())),$e.free(le),$e.free(ce)}},li.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||!la(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=ls(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,ae=y.Go,le=bd(y,x,E),ce=x,me=E;for(b===0?ce+=re:b===90?me+=ae:b===180?ce-=re:me-=ae,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-ae)===le-1?(b=270,ce=x,me=E-ae):bd(y,x,E+ae)===le-1&&(b=90,ce=x,me=E+ae));le>Nf&&bd(y,ce,me)===le-1;)x=ce,E=me,b===0?ce+=re:b===90?me+=ae:b===180?ce-=re:me-=ae,--le;z?le>Nf&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/ae)*ae+ae/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/ae)*ae+ae/2),le>Nf&&(z=b,ne=x,ce=E,b===0?(z=90,ce+=ae):b===90?(z=180,ne-=re):b===180?(z=270,ce-=ae):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-=ae):b===90?(z=0,ne+=re):b===180?(z=90,ce+=ae):b===270&&(z=180,ne-=re),bd(y,ne,ce)===le-1&&Jv(a,y,ne,ce,z,!1,z))),a.yf(x,E)}li.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=Io(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=Io(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=ne,b=re)}return z},li.prototype.qc=function(){this.lk=!1,this.v()},li.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 Gr&&(b.ua=this.ua)}}},li.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&&!Ut.$(this.smoothness,0))if(y===3){var re=this.i(1);E=Math.min(b.x,re.x);var ae=Math.min(b.y,re.y);re=this.i(2),E=Math.min(E,re.x),ae=Math.min(ae,re.y)}else{if(this.isOrthogonal)for(ae=0;ae<y;ae++)re=E[ae],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),ae=this.i(E),z.x=Math.min(ae.x,z.x),z.y=Math.min(ae.y,z.y);E=z.x,ae=z.y}else{for(ae=0;ae<y;ae++)re=E[ae],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);E=z.x,ae=z.y}if(E-=this.su.x,ae-=this.su.y,b.x-=E,b.y-=ae,y!==2||Bf(this)){if(a.type=hi.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&&!Ut.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-ae,b=this.i(2).copy(),b.x-=E,b.y-=ae,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=$e.allocAt(E,ae),x=$e.alloc(),x.assign(this.i(1)),z=$e.allocAt(E,ae),b=$e.allocAt(E,ae),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,Fe=le,De=this.i(Qv(this,le,me,!1));if((!Ut.$(Ce.x,Fe.x)||!Ut.$(Fe.x,De.x))&&(!Ut.$(Ce.y,Fe.y)||!Ut.$(Fe.y,De.y))){var ze=ce;isNaN(ze)&&(ze=this.smoothness/3);var ut=Ce.x;Ce=Ce.y;var qe=Fe.x;Fe=Fe.y;var wt=De.x;De=De.y;var At=ze*qm(ut,Ce,qe,Fe);ze*=qm(qe,Fe,wt,De),Ut.$(Ce,Fe)&&Ut.$(qe,wt)&&(qe>ut?De>Fe?(z.x=qe-At,z.y=Fe-At,b.x=qe+ze,b.y=Fe+ze):(z.x=qe-At,z.y=Fe+At,b.x=qe+ze,b.y=Fe-ze):De>Fe?(z.x=qe+At,z.y=Fe-At,b.x=qe-ze,b.y=Fe+ze):(z.x=qe+At,z.y=Fe+At,b.x=qe-ze,b.y=Fe-ze)),Ut.$(ut,qe)&&Ut.$(Fe,De)&&(Fe>Ce?(wt>qe?(z.x=qe-At,z.y=Fe-At,b.x=qe+ze):(z.x=qe+At,z.y=Fe-At,b.x=qe-ze),b.y=Fe+ze):(wt>qe?(z.x=qe-At,z.y=Fe+At,b.x=qe+ze):(z.x=qe+At,z.y=Fe+At,b.x=qe-ze),b.y=Fe-ze)),(Ut.$(ut,qe)&&Ut.$(qe,wt)||Ut.$(Ce,Fe)&&Ut.$(Fe,De))&&(ut=.5*(ut+wt),Ce=.5*(Ce+De),z.x=ut,z.y=Ce,b.x=ut,b.y=Ce),(me===1||me===2&&Ut.$(ne.x,this.i(0).x)&&Ut.$(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-ae,z.x-E,z.y-ae,le.x-E,le.y-ae),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,Fi)),le=.5*(le+ce.x),ne=.5*(ne+ce.y),yh(re,b.x-E,b.y-ae,le-E,ne-ae,ce.x-E,ce.y-ae),$e.free(y),$e.free(x),$e.free(z),$e.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,Fi)),yh(re,z.x-E,z.y-ae,b.x-E,b.y-ae,ne.x-E,ne.y-ae);else{for(z=$e.alloc(),z.assign(this.i(0)),b=$e.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,Fi)),ng(this,re,-E,-ae,z,ce,x);else if(le===0)for(me=1;me<y;)b.assign(z),ce=this.i(me++),ng(this,re,-E,-ae,z,ce,x),z.assign(ce);break}if(le=Qv(this,ce,me+1,me<y-3),me=-E,ut=-ae,Ce=ce,qe=this.i(le),ze=x,Ut.B(z.y,Ce.y)&&Ut.B(Ce.x,qe.x))if(De=Math.min(ne,Math.abs(Ce.x-b.x)/2),De=At=Math.min(De,Math.abs(qe.y-Ce.y)/2),Ut.B(De,0))ng(this,re,me,ut,z,Ce,ze),z.assign(Ce);else{var Bt=Ce.x,Ht=Ce.y;Fe=Bt,wt=Ht,Ce.x>z.x?Bt=Ce.x-De:Bt=Ce.x+De,qe.y>Ce.y?wt=Ce.y+At:wt=Ce.y-At,qe=$e.allocAt(Bt,Ht),ng(this,re,me,ut,z,qe,ze),$e.free(qe),Gm(re,Ce.x+me,Ce.y+ut,Fe+me,wt+ut),z.h(Fe,wt)}else Ut.B(z.x,Ce.x)&&Ut.B(Ce.y,qe.y)?(De=Math.min(ne,Math.abs(Ce.y-b.y)/2),De=At=Math.min(De,Math.abs(qe.x-Ce.x)/2),Ut.B(At,0)?(ng(this,re,me,ut,z,Ce,ze),z.assign(Ce)):(Bt=Ce.x,Ht=Ce.y,Fe=Bt,wt=Ht,Ce.y>z.y?Ht=Ce.y-De:Ht=Ce.y+De,qe.x>Ce.x?Fe=Ce.x+At:Fe=Ce.x-At,qe=$e.allocAt(Bt,Ht),ng(this,re,me,ut,z,qe,ze),$e.free(qe),Gm(re,Ce.x+me,Ce.y+ut,Fe+me,wt+ut),z.h(Fe,wt))):(ng(this,re,me,ut,z,Ce,ze),z.assign(Ce));b.assign(ce),me=le}$e.free(z)}Km=re}else re=this.i(1).copy(),re.x-=E,re.y-=ae,this.computeShortLength(!0)!==0&&(b=tg(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=tg(this,re,!1,z)),a.type=hi.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),Ut.$(a,0)?y:Ut.$(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;Ut.$(y.x,z.x)&&Ut.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!Ut.$(y.x,z.x)&&!Ut.$(y.y,z.y))return x-1;for(var ne=z;Ut.$(y.x,z.x)&&Ut.$(z.x,ne.x)&&(!E||(y.y>=z.y?z.y>=ne.y:z.y<=ne.y))||Ut.$(y.y,z.y)&&Ut.$(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}li.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,ae=[],le=0;if(a.isVisible()&&(le=Nx(a,b,z,ae)),0<le){if(Ut.B(b.y,z.y))if(b.x<z.x)for(var ce=0;ce<le;){var me=Math.max(b.x,Math.min(ae[ce++]-re,z.x-ne));y.lineTo(me+x,z.y+E);for(var Ce=me+x,Fe=Math.min(me+ne,z.x);ce<le&&(me=ae[ce],me<Fe+ne);)ce++,Fe=Math.min(me+re,z.x);me=z.y-ne+E,Fe+=x;var De=z.y+E;a.curve===wh?Og(y,Fe,De,!1):yh(y,Ce,me,Fe,me,Fe,De)}else for(--le;0<=le;){for(ce=Math.min(b.x,Math.max(ae[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=ae[le],ce>me-ne);)le--,me=Math.max(ce-re,z.x);ce=z.y-ne+E,me+=x,Fe=z.y+E,a.curve===wh?Og(y,me,Fe,!1):yh(y,Ce,ce,me,ce,me,Fe)}else if(Ut.B(b.x,z.x))if(b.y<z.y)for(ce=0;ce<le;){for(me=Math.max(b.y,Math.min(ae[ce++]-re,z.y-ne)),y.lineTo(z.x+x,me+E),Ce=me+E,me=Math.min(me+ne,z.y);ce<le&&(Fe=ae[ce],Fe<me+ne);)ce++,me=Math.min(Fe+re,z.y);Fe=z.x-ne+x,De=z.x+x,me+=E,a.curve===wh?Og(y,De,me,!1):yh(y,Fe,Ce,Fe,me,De,me)}else for(--le;0<=le;){for(ce=Math.min(b.y,Math.max(ae[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=ae[le],me>ce-ne);)le--,ce=Math.max(me-re,z.y);me=z.x-ne+x,Fe=z.x+x,ce+=E,a.curve===wh?Og(y,Fe,ce,!1):yh(y,me,Ce,me,ce,Fe,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 ae=z[re];if(ae instanceof li){if(ae===a)return 0<E.length&&E.sort(function(ce,me){return ce-me}),E.length;if(ae.isVisible()&&Bf(ae)){var le=ae.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(ae)&&(le=ae.path,le!==null&&le.Ed()&&kx(y,x,E,ae))}}}}}return 0<E.length&&E.sort(function(ce,me){return ce-me}),E.length}function kx(a,y,x,E){for(var b=Ut.B(a.y,y.y),z=E.pointsCount,ne=E.i(0),re=$e.alloc(),ae=1;ae<z;ae++){var le=E.i(ae);if(ae<z-1){var ce=E.i(ae+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,Fe=y.y,De=ne.x;ne=ne.y;var ze=le.x,ut=le.y;if(Ut.B(ce,Ce)){if(!Ut.B(me,Fe)&&Ut.B(ne,ut)&&Math.min(me,Fe)<ne&&Math.max(me,Fe)>ne&&Math.min(De,ze)<ce&&Math.max(De,ze)>ce&&!Ut.B(De,ze)){re.x=ce,re.y=ne,ce=!0;break e}}else if(Ut.B(me,Fe)&&Ut.B(De,ze)&&Math.min(ce,Ce)<De&&Math.max(ce,Ce)>De&&Math.min(ne,ut)<me&&Math.max(ne,ut)>me&&!Ut.B(ne,ut)){re.x=De,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}$e.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()))}li.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 ae=b[re];ae instanceof li&&(ae===this?z=!0:z&&iS(this,ae,a))}}else if(E)for(z=b.Pa.s,b=z.length,ne=0;ne<b;ne++)re=z[ne],re instanceof li&&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())}}li.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},li.prototype.isVisible=function(){if(!er.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},li.prototype.Zb=function(a){if(er.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)},li.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Lp:this.qk};function Fp(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,ae=0;ae<re;ae++){var le=ne[ae];(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 Mp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(En(y.links,a),y.Sl()))}li.prototype.ph=function(){return!0},Pt.Object.defineProperties(li.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),Mp(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),Fp(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),Mp(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))),Fp(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),Mp(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),Fp(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),Mp(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))),Fp(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:_o},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&&nn(a,">= 0",li,"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:_o},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&&nn(a,">= 0",li,"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?Nr: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 Gr?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),Ut.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),ae=this.i(z);Ut.Dl(b.x,b.y,ne.x,ne.y,re.x,re.y,ae.x,ae.y,.5,a),y=Math.min(ae.x,y),x=Math.min(ae.y,x),b=ae}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 $e)}},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);Ut.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):Ut.$(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 On,E=0;E<a.length/2;E++)b=new $e(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 On,E=0;E<a.length;E++)b=a[E],x.add(new $e(b.x,b.y).freeze())}}else if(a instanceof On)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else It("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&&va(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)}}}),li.prototype.invalidateOtherJumpOvers=li.prototype.Xo,li.prototype.findClosestSegment=li.prototype.ez,li.prototype.updateRoute=li.prototype.vg,li.prototype.invalidateRoute=li.prototype.bb,li.prototype.rollbackRoute=li.prototype.rv,li.prototype.commitRoute=li.prototype.zf,li.prototype.startRoute=li.prototype.uh,li.prototype.clearPoints=li.prototype.Fj,li.prototype.removePoint=li.prototype.pv,li.prototype.addPointAt=li.prototype.yf,li.prototype.addPoint=li.prototype.ne,li.prototype.insertPointAt=li.prototype.m,li.prototype.insertPoint=li.prototype.Kz,li.prototype.setPointAt=li.prototype.L,li.prototype.setPoint=li.prototype.dd,li.prototype.getPoint=li.prototype.i,li.prototype.getOtherPort=li.prototype.Cz,li.prototype.getOtherNode=li.prototype.To;var ig=null,rg=null,$v=new qt(li,"Normal",1),Tx=new qt(li,"Orthogonal",2),Ox=new qt(li,"AvoidsNodes",6),rS=new qt(li,"AvoidsNodesStraight",7),ql=new qt(li,"None",0),Zu=new qt(li,"Bezier",9),wh=new qt(li,"JumpGap",10),zg=new qt(li,"JumpOver",11),Lp=new qt(li,"End",17),t0=new qt(li,"Scale",18),n0=new qt(li,"Stretch",19),Dp=new qt(li,"OrientAlong",21),Bp=new qt(li,"OrientPlus90",22),Np=new qt(li,"OrientMinus90",23),qv=new qt(li,"OrientOpposite",24),i0=new qt(li,"OrientUpright",25),kp=new qt(li,"OrientPlus90Upright",26),Tp=new qt(li,"OrientMinus90Upright",27),r0=new qt(li,"OrientUpright45",28),oS=16,aS=14,Op=8;li.className="Link",li.Normal=$v,li.Orthogonal=Tx,li.AvoidsNodes=Ox,li.AvoidsNodesStraight=rS,li.None=ql,li.Bezier=Zu,li.JumpGap=wh,li.JumpOver=zg,li.End=Lp,li.Scale=t0,li.Stretch=n0,li.OrientAlong=Dp,li.OrientPlus90=Bp,li.OrientMinus90=Np,li.OrientOpposite=qv,li.OrientUpright=i0,li.OrientPlus90Upright=kp,li.OrientMinus90Upright=Tp,li.OrientUpright45=r0,li.EndSegmentStep=8,li.CurvinessStart=oS,li.SpacingMin=aS,li.OrthoShortCut=Op;function o0(a,y,x,E){Rr(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){Rr(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,ae){if(!(y<z||y>ne||x<re||x>ae)){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<=ae&&!(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,ae),Ad(a,y,x,-1,!b,z,ne,re,ae);else for(x+=E;x>le;x+=E)Ad(a,y,x,1,!b,z,ne,re,ae),Ad(a,y,x,-1,!b,z,ne,re,ae);else if(0<E)for(y+=E;y<le;y+=E)Ad(a,y,x,1,!b,z,ne,re,ae),Ad(a,y,x,-1,!b,z,ne,re,ae);else for(y+=E;y>le;y+=E)Ad(a,y,x,1,!b,z,ne,re,ae),Ad(a,y,x,-1,!b,z,ne,re,ae)}}function a0(a,y,x,E,b,z,ne,re,ae){y|=0,x|=0;var le=Ch,ce=Nf;for(a.ac[y][x]=ce;le===Ch&&y>z&&y<ne&&x>re&&x<ae;)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,ae){y|=0,x|=0;var le=Ch,ce=Hg;for(a.ac[y][x]=ce;le===Ch&&y>z&&y<ne&&x>re&&x<ae;)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,ae=y.y;if(jg(a,re,ae)){re-=a.Nd,re/=a.rc,ae-=a.Od,ae/=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(ae-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,ae|=0,le|=0,ce|=0;var Fe=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][ae]===Ch?(a0(a,re,ae,Fe,x,z,y,me,Ce),a0(a,re,ae,1,!x,z,y,me,Ce),a0(a,re,ae,-1,!x,z,y,me,Ce)):a0(a,re,ae,Fe,x,re,ae,re,ae),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,Fe,x,le,ce,le,ce),x=Pn(),ne&&uS(a,le,ce,b,re,ae,x))for((x[0]!==le||x[1]!==ce)&&(x.unshift(ce),x.unshift(le)),(x[x.length-2]!==re||x[x.length-1]!==ae)&&(x.push(re),x.push(ae)),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,ae,1,!1,z,y,me,Ce),Ad(a,re,ae,-1,!1,z,y,me,Ce),Ad(a,re,ae,1,!0,z,y,me,Ce),Ad(a,re,ae,-1,!0,z,y,me,Ce);Rn(x)}}}}function uS(a,y,x,E,b,z,ne){for(var re=a.ac,ae=y,le=x;;){if(ae===b&&le===z)return!0;var ce=ae,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;ae=ce,le=me}for(;;){if(ce=E,me=ae,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(ae),ne.push(le),uS(a,ae,le,ce,b,z,ne))return!0;ne.pop(),ne.pop()}if(re[ae][le]=ty,E===0){if(ae===y)return!1;ae--}else if(E===90){if(le===x)return!1;le--}else if(E===180){if(ae===y)return!1;ae++}else{if(le===x)return!1;le++}}}Pt.Object.defineProperties(Ip.prototype,{bounds:{get:function(){return new An(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(){Rr(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 Or?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(Ua,$e.alloc()),ae=a.port.ga(xl,$e.alloc());for(b=An.allocAt(re.x,re.y,0,0),b.Ye(ae),$e.free(re),$e.free(ae),re=$e.allocAt(b.x+b.width/2,b.y+b.height/2),ae=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 Fe=Ce.findVisibleNode();Fe!==null&&Fe!==Ce&&(Ce=Fe,ce=Ce.port),ce=le.computeOtherPoint(Ce,ce),Ce=re.ab(ce),Ce-=ae,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)),Fe=a.pe[z],Fe===void 0?(Fe=new ny(le,Ce,me),a.pe[z]=Fe):(Fe.link=le,Fe.angle=Ce,Fe.Nc=me),Fe.hv.set(ce),z++}}}}for($e.free(re),a.pe.sort(og.prototype.j),ae=a.pe.length,E=-1,z=re=0;z<ae;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=ae-1;0<=z;z--)ae=a.pe[z],ae!==void 0&&(ae.Nc!==E&&(E=ae.Nc,re=ae.Uo+1),ae.Gl=re);if(z=a.pe,me=a.port,E=a.node.portSpreading,re=$e.alloc(),ae=$e.alloc(),ne=$e.alloc(),le=$e.alloc(),me.ga(Ua,re),me.ga(Sl,ae),me.ga(xl,ne),me.ga(Ll,le),Fe=Ce=ce=me=0,E===Vv)for(var De=0;De<z.length;De++){var ze=z[De];if(ze!==null){var ut=ze.link.computeThickness();switch(ze.Nc){case 8:Ce+=ut;break;case 2:Fe+=ut;break;case 1:me+=ut;break;default:case 4:ce+=ut}}}var qe=De=0,wt=1,At=ze=0;for(ut=0;ut<z.length;ut++){var Bt=z[ut];if(Bt!==null){if(De!==Bt.Nc){switch(De=Bt.Nc,De){case 8:var Ht=ne;qe=le;break;case 2:Ht=le,qe=re;break;case 1:Ht=re,qe=ae;break;default:case 4:Ht=ae,qe=ne}switch(ze=qe.x-Ht.x,At=qe.y-Ht.y,De){case 8:Ce>Math.abs(ze)?(wt=Math.abs(ze)/Ce,Ce=Math.abs(ze)):wt=1;break;case 2:Fe>Math.abs(At)?(wt=Math.abs(At)/Fe,Fe=Math.abs(At)):wt=1;break;case 1:me>Math.abs(ze)?(wt=Math.abs(ze)/me,me=Math.abs(ze)):wt=1;break;default:case 4:ce>Math.abs(At)?(wt=Math.abs(At)/ce,ce=Math.abs(At)):wt=1}qe=0}var dn=Bt.Zo;if(E===Vv){switch(Bt=Bt.link.computeThickness(),Bt*=wt,dn.set(Ht),De){case 8:dn.x=Ht.x+ze/2+Ce/2-qe-Bt/2;break;case 2:dn.y=Ht.y+At/2+Fe/2-qe-Bt/2;break;case 1:dn.x=Ht.x+ze/2-me/2+qe+Bt/2;break;default:case 4:dn.y=Ht.y+At/2-ce/2+qe+Bt/2}qe+=Bt}else{var Pi=.5;E===_m&&(Pi=(Bt.Uo+1)/(Bt.Gl+1)),dn.x=Ht.x+ze*Pi,dn.y=Ht.y+At*Pi}}}for($e.free(re),$e.free(ae),$e.free(ne),$e.free(le),Ht=a.pe,z=0;z<Ht.length;z++)E=Ht[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,An.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,ga,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 $e,this.Gl=this.Uo=0,this.Zo=new $e,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 Ga(a){Rr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new $e(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ga.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},Ga.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ga.prototype.qb=function(){},Ga.prototype.toString=function(){var a=Yn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ga.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())}}},Ga.prototype.createNetwork=function(){return new Ea(this)},Ga.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof cn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Or?y.lg(a.memberParts):y.lg(a.iterator),y},Ga.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")}},Ga.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()}},Ga.prototype.doLayout=function(a){var y=new Dn;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 Or?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},Ga.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 ae=re.measuredBounds,le=ae.width;ae=ae.height,re.moveTo(E,b),re instanceof Or&&(re.rh=!1),E+=Math.max(le,50)+20,ne=Math.max(ne,Math.max(ae,50)),z>=y-1?(z=0,E=x,b+=ne+20,ne=0):z++}},Ga.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 li)&&(Rp(re),this.rh(re))){var ae=re.measuredBounds,le=ae.width;ae=ae.height,re.moveTo(x,E),re instanceof Or&&(re.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(ae,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},Ga.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Or&&a.rh)};function Uh(a,y,x,E,b,z,ne,re){for(x=x.iterator;x.next();){var ae=x.value;E&&!ae.isTopLevel||b!==null&&!b(ae)||!ae.canLayout()||(z&&ae instanceof Ci?ae.isLinkLabel||(ae instanceof Or&&ae.layout===null?Uh(a,y,ae.memberParts,!1,b,z,ne,re):(Rp(ae),y.add(ae))):ne&&ae instanceof li?y.add(ae):!re||!ae.Zc()||ae instanceof Ci||(Rp(ae),y.add(ae)))}}function Rp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ga.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new An),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ga.prototype.ex=function(a){var y=new Dn;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 Or?Uh(this,y,a.memberParts,!1,null,!0,!0,!0):Uh(this,y,a.iterator,!1,null,!0,!0,!0),y},Ga.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(Ua),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Pt.Object.defineProperties(Ga.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())}}}),Ga.prototype.collectParts=Ga.prototype.ex,Ga.prototype.getLayoutBounds=Ga.prototype.ni,Ga.prototype.invalidateLayout=Ga.prototype.C,Ga.className="Layout";function Ea(a){Rr(this),this.Sc=a,this.wf=new Dn,this.ye=new Dn,this.Es=new Si,this.zs=new Si}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 Dn,this.ye=new Dn,this.Es=new Si,this.zs=new Si},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 Js(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 Ci)return!ne.isLinkLabel;if(ne instanceof li){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 Ci&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Or&&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 li&&(!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},Me=Ea.prototype,Me.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Me.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},Me.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}Me.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Me.ki=function(a){return a===null?null:this.Es.I(a)},Me.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}}Me.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},Me.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))}Me.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Me.Lo=function(a){return a===null?null:this.zs.I(a)},Me.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},Me.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))}},Me.Ko=function(){for(var a=Pn(),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]);Rn(a)},Ea.prototype.deleteArtificialVertexes=function(){for(var a=Pn(),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=Pn(),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]);Rn(a),Rn(y)};function Rx(a){for(var y=Pn(),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]);Rn(y)}Ea.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Rx(this),this.Ko()),a=new On;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 Dn,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},Pt.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 Js(a){Rr(this),this.ob=a,this.j=new An(0,0,10,10).freeze(),this.o=new $e(5,5).freeze(),this.Sh=this.ub=null,this.tg=new On,this.mg=new On}Js.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new On,this.mg=new On},Js.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+fo(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},Js.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 Or)){x=An.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(yo);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),An.free(x);return}An.free(x)}a.moveTo(y.x,y.y)}},Js.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Js.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Js.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Js.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}Pt.Object.defineProperties(Js.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=An.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),An.free(x),!(a instanceof Or)&&(a=a.locationObject.ga(yo),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 Dn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Dn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Dn,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 On,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}}}),Js.prototype.deleteDestinationEdge=Js.prototype.Jl,Js.prototype.addDestinationEdge=Js.prototype.zl,Js.prototype.deleteSourceEdge=Js.prototype.Kl,Js.prototype.addSourceEdge=Js.prototype.Cl,Js.className="LayoutVertex",Js.standardComparer=ay,Js.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){Rr(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#"+fo(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},Pt.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){Ga.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)}Kt(ml,Ga),ml.prototype.cloneProtected=function(a){Ga.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===Xc?this.arrangement=a:a===zp||a===l0?this.alignment=a:It("Unknown enum value: "+a):Ga.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 Or)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,ae=x,le=An.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 Fe=this.ni(b[Ce],le);me=Math.max(me,Fe.height)}me=Math.max(me+ae,1),Ce=this.arrangement;for(var De=Fe=this.arrangementOrigin.x,ze=this.arrangementOrigin.y,ut=0,qe=0,wt=0;wt<b.length;wt++){var At=b[wt],Bt=this.ni(At,le),Ht=Math.ceil((Bt.width+re)/ce)*ce,dn=Math.ceil((Bt.height+ae)/me)*me;switch(Ce){case Xc:var Pi=Math.abs(De-Bt.width);break;default:Pi=De+Bt.width}switch((0<z&&ut>z-1||0<ne&&0<ut&&Pi-Fe>ne)&&(E.push(new An(0,ze,ne+re,qe)),ut=0,De=Fe,ze+=qe,qe=0),qe=Math.max(qe,dn),Ce){case Xc:Bt=-Bt.width;break;default:Bt=0}switch(At.moveTo(De+Bt,ze),Ce){case Xc:De-=Ht;break;default:De+=Ht}ut++}E.push(new An(0,ze,ne+re,qe)),An.free(le);break;case zp:for(ae=ne,ce=z,me=y,Ce=x,ne=An.alloc(),Fe=Math.max(this.cellSize.width,1),z=ze=le=0,re=$e.alloc(),De=0;De<b.length;De++)qe=b[De],ut=this.ni(qe,ne),qe=Sh(qe,qe.locationObject,qe.locationSpot,re),le=Math.max(le,qe.x),ze=Math.max(ze,ut.width-qe.x),z=Math.max(z,qe.y);switch(De=this.arrangement,De){case Xc:le+=me;break;default:ze+=me}Fe=isFinite(Fe)?Math.max(Fe+me,1):Math.max(le+ze,1);var Ii=qe=this.arrangementOrigin.x;for(wt=this.arrangementOrigin.y,ze=0,ae>=le&&(ae-=le),le=At=0,Ht=Math.max(this.cellSize.height,1),Bt=z=0,dn=!0,ut=$e.alloc(),Pi=0;Pi<b.length;Pi++){var Bi=b[Pi],si=this.ni(Bi,ne),Vn=Sh(Bi,Bi.locationObject,Bi.locationSpot,re);if(0<ze)switch(De){case Xc:Ii=(Ii-qe-(si.width-Vn.x))/Fe,Ii=Ut.$(Math.round(Ii),Ii)?Math.round(Ii):Math.floor(Ii),Ii=Ii*Fe+qe;break;default:Ii=(Ii-qe+Vn.x)/Fe,Ii=Ut.$(Math.round(Ii),Ii)?Math.round(Ii):Math.ceil(Ii),Ii=Ii*Fe+qe}else switch(De){case Xc:At=Ii+Vn.x+si.width;break;default:At=Ii-Vn.x}switch(De){case Xc:var Tr=-(Ii+Vn.x)+At;break;default:Tr=Ii+si.width-Vn.x-At}if(0<ce&&ze>ce-1||0<ae&&0<ze&&Tr>ae){for(E.push(new An(0,dn?wt-z:wt,ae+me,Bt+z+Ce)),Ii=0;Ii<ze&&Pi!==ze;Ii++){Tr=b[Pi-ze+Ii];var Fr=Sh(Tr,Tr.locationObject,Tr.locationSpot,ut);Tr.moveTo(Tr.position.x,Tr.position.y+z-Fr.y)}Bt+=Ce,wt=dn?wt+Bt:wt+(Bt+z),ze=Bt=z=0,Ii=qe,dn=!1}switch(Ii===qe&&(le=De===Xc?Math.max(le,si.width-Vn.x):Math.min(le,-Vn.x)),z=Math.max(z,Vn.y),Bt=Math.max(Bt,si.height-Vn.y),isFinite(Ht)&&(Bt=Math.max(Bt,Math.max(si.height,Ht)-Vn.y)),dn?Bi.moveTo(Ii-Vn.x,wt-Vn.y):Bi.moveTo(Ii-Vn.x,wt),De){case Xc:Ii-=Vn.x+me;break;default:Ii+=si.width-Vn.x+me}ze++}if(E.push(new An(0,wt,ae+me,(dn?Bt:Bt+z)+Ce)),b.length!==ze)for(ae=0;ae<ze;ae++)ce=b[b.length-ze+ae],me=Sh(ce,ce.locationObject,ce.locationSpot,re),ce.moveTo(ce.position.x,ce.position.y+z-me.y);if($e.free(re),$e.free(ut),De===Xc)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);An.free(ne)}for(re=z=ne=b=0;re<E.length;re++)ae=E[re],b=Math.min(b,ae.x),ne=Math.min(ne,ae.y),z=Math.max(z,ae.x+ae.width);this.arrangement===Xc?this.commitLayers(E,new $e(b+y/2-(z+b),ne-x/2)):this.commitLayers(E,new $e(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}Pt.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!==Xc||(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 qt(ml,"Position",0),zp=new qt(ml,"Location",1),u0=new qt(ml,"LeftToRight",2),Xc=new qt(ml,"RightToLeft",3),sy=new qt(ml,"Forward",4),c0=new qt(ml,"Reverse",5),jp=new qt(ml,"Ascending",6),d0=new qt(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=Xc,ml.Forward=sy,ml.Reverse=c0,ml.Ascending=jp,ml.Descending=d0;function ia(){this.On=new Dn,this.Dn=new Dn,this.Pa=new Dn,this.cf=new Si,this.bf=new Si,this.aj=new Si,this.H=null,this.tp=!1}Me=ia.prototype,Me.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Me.Xe=function(a){this.H=a},Me.oi=function(a){if(a instanceof Ci){if(this.On.add(a),a instanceof Or){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 li?this.Dn.add(a):a instanceof Ko||this.Pa.add(a);y=a.data,y===null||a instanceof Ko||(a instanceof li?this.bf.add(y,a):this.cf.add(y,a))},Me.pc=function(a){if(a.Ej(),a instanceof Ci){if(this.On.remove(a),a instanceof Or){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 li?this.Dn.remove(a):a instanceof Ko||this.Pa.remove(a);y=a.data,y===null||a instanceof Ko||(a instanceof li?this.bf.remove(y):this.cf.remove(y))},Me.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 Or)&&It('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 Or||It('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 li||It('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=Pn(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=Pn(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=Pn(),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]);Rn(y),Rn(x),Rn(a)}},ia.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ia.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)}}ia.prototype.insertLink=function(){return null},ia.prototype.resolveReferencesForData=function(){},ia.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,ui('No Group template found for category "'+x+'"'),ui(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(mS||(mS=!0,ui('No Node template found for category "'+x+'"'),ui(" Using default node template")),y=a.ny))),y}ia.prototype.getLinkCategoryForData=function(){return""},ia.prototype.setLinkCategoryForData=function(){},ia.prototype.setFromNodeForLink=function(){},ia.prototype.setToNodeForLink=function(){},ia.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,ui('No Link template found for category "'+a+'"'),ui(" Using default link template")),x=y.my)),x},ia.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ia.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},ia.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Gd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},ia.prototype.unresolveReferencesForPart=function(){},ia.prototype.removeDataForLink=function(){},ia.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},ia.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Ci?a:null)},ia.prototype.findLinkForKey=function(){return null},Me=ia.prototype,Me.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Me.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Ci?a:null)},Me.Kc=function(a){return a===null?null:this.bf.I(a)},Me.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Dn;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},Me.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Dn;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(Cn(z)){if(!Cn(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}ia.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===ni){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===ai){var ne=a.newValue;E==="nodeDataArray"&&Qt(ne)&&fS(this,ne),y.isModified=!0}else if(x===xi){var re=a.oldValue;E==="nodeDataArray"&&Qt(re)&&this.ip(re),y.isModified=!0}else x===In&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===ni){var ae=a.propertyName,le=a.object;le===y.model?(ae==="nodeKeyProperty"||ae==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,ae),y.isModified=!0}else if(x===ai||x===xi){var ce=a.change===ai,me=ce?a.newParam:a.oldParam,Ce=ce?a.newValue:a.oldValue,Fe=this.aj.I(a.object);if(Array.isArray(Fe))for(a=0;a<Fe.length;a++){var De=Fe[a];if(ce)Dm(De,Ce,me,!0);else if(!(0>me)){var ze=me+xp(De);De.pc(ze,!0),wv(De,ze,me)}}y.isModified=!0}}finally{y.aa=!0}}}}},ia.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)},ia.prototype.rp=function(){for(var a=this.H.model,y=new Dn,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){FS(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()},ia.prototype.refreshDataBoundLinks=function(){},ia.prototype.updateRelationshipsFromData=function(){},ia.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=Pn()),x.push(ne))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);Rn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function uy(a,y){var x=y.Hh;if(Cn(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){Ff(y,function(ne){ne=ne.O.s;for(var re=ne.length,ae=0;ae<re;ae++)Kf(x,ne[ae])});var E=y.Hh;if(Cn(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}}}}ia.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new Si;if(Cn(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 Dn;for(var z=new Si,ne=E.iterator;ne.next();){var re=ne.value;if(re instanceof li)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof Ci&&re.data!==null&&x.Tl()){var ae=re;re=ne.key;var le=re.pg();le!==null&&(le=E.I(le),le!==null?(x.qe(ae.data,x.wa(le.data)),ae=y.Kc(ae.data),re=re.kh(),re!==null&&ae!==null&&z.add(re,ae)):x.qe(ae.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 Si;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 er))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof Ci){for(var ne=y.linksConnected;ne.next();){var re=ne.value;if(re.fromNode===y){var ae=E.I(re);ae!==null&&(ae.fromNode=z)}re.toNode===y&&(re=E.I(re),re!==null&&(re.toNode=z))}if(y instanceof Or&&z instanceof Or)for(y=y.memberParts;y.next();)ne=h0(a,y.value,x,E,b),ne instanceof li||ne===null||(ne.containingGroup=z)}else if(y instanceof li&&z instanceof li)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 Ci&&(ne.labeledLink=z);return z}ia.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof li||(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 li||(b=y.copyNodeData(E)),Qt(b)&&(x.data=b)));return x},Pt.Object.defineProperties(ia.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}}}),ia.prototype.updateAllRelationshipsFromData=ia.prototype.rp,ia.prototype.findLinksByExample=ia.prototype.ls,ia.prototype.findNodesByExample=ia.prototype.ms,ia.prototype.findLinkForData=ia.prototype.Kc,ia.prototype.findNodeForData=ia.prototype.ii,ia.prototype.findPartForData=ia.prototype.Lc,ia.prototype.findNodeForKey=ia.prototype.Vb,ia.prototype.removeModeledPart=ia.prototype.ip,ia.prototype.removeModeledParts=ia.prototype.Gs,ia.prototype.rebuildParts=ia.prototype.Wd;var mS=!1,vS=!1,yS=!1;ia.className="PartManager";function ul(a){ia.apply(this,arguments)}Kt(ul,ia),ul.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),SS(this,a.linkDataArray)},ul.prototype.addModeledParts=function(a){for(ia.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 Ci&&(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 Ci&&(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}}}}ul.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)})}ul.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},ul.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},ul.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},ul.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},ul.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},ul.prototype.findPartForKey=function(a){var y=ia.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},ul.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},ul.prototype.doModelChanged=function(a){var y=this;if(ia.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===ni){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 ae=this.Vb(a.newValue);re.toNode=ae}}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 Fe=this.Lc(a.object);if(Fe!==null){var De=a.newValue;if(De!==void 0){var ze=this.Vb(De);ze instanceof Or?Fe.containingGroup=ze:Fe.containingGroup=null}else Fe.containingGroup=null}}else if(b==="linkLabelKeys"){var ut=this.Kc(a.object);if(ut!==null){var qe=a.oldValue,wt=a.newValue;Array.isArray(qe)&&qe.forEach(function(Vn){0<=wt.indexOf(Vn)||(Vn=y.Vb(Vn),Vn!==null&&(Vn.labeledLink=null))}),Array.isArray(wt)&&wt.forEach(function(Vn){Vn=y.Vb(Vn),Vn!==null&&(Vn.labeledLink=ut)})}}else if(b==="linkCategory"){var At=this.Kc(a.object),Bt=a.newValue;At!==null&&typeof Bt=="string"&&(At.category=Bt)}else b==="linkDataArray"&&(PS(this,a.oldValue),SS(this,a.newValue));x.isModified=!0}else if(E===ai){var Ht=a.newValue;if(b==="linkDataArray"&&typeof Ht=="object"&&Ht!==null)xS(this,Ht);else if(b==="linkLabelKeys"&&_h(Ht)){var dn=this.Kc(a.object),Pi=this.Vb(Ht);dn!==null&&Pi!==null&&(Pi.labeledLink=dn)}x.isModified=!0}else if(E===xi){var Ii=a.oldValue;if(b==="linkDataArray"&&typeof Ii=="object"&&Ii!==null)this.ip(Ii);else if(b==="linkLabelKeys"&&_h(Ii)){var Bi=this.Vb(Ii);Bi!==null&&(Bi.labeledLink=null)}x.isModified=!0}}else if(E===ni){var si=a.propertyName;a.object!==x.model||si!=="linkFromKeyProperty"&&si!=="linkToKeyProperty"&&si!=="linkFromPortIdProperty"&&si!=="linkToPortIdProperty"&&si!=="linkLabelKeysProperty"&&si!=="nodeIsGroupProperty"&&si!=="nodeGroupKeyProperty"&&si!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},ul.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Dn,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)})},ul.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 li){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 Dn().addAll(y);var ne=new Dn;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 Ko)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Or)&&(a.containingGroup=y)}}},ul.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 Or&&y.lh(ne)===x&&(ne=this.Lc(ne),ne!==null&&(ne.containingGroup=b)):(z.link=this.Kc(ne),z.link!==null&&b instanceof Ci&&(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(ae){return ae===x?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}Jc(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Or&&(b.containingGroup=a))}},ul.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Ci){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)_c(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&_c(y,x,E.data)),a instanceof Or)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&_c(y,x,E)}}},ul.prototype.copyPartData=function(a,y){var x=ia.prototype.copyPartData.call(this,a,y);if(a instanceof li)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},ul.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 li){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 Ci&&(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 Ci||(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},ul.prototype.findLinkForKey=ul.prototype.findLinkForKey,ul.prototype.findPartForKey=ul.prototype.findPartForKey,ul.prototype.removeAllModeledParts=ul.prototype.removeAllModeledParts,ul.prototype.addModeledParts=ul.prototype.addModeledParts,ul.prototype.addAllModeledParts=ul.prototype.addAllModeledParts,ul.className="GraphLinksPartManager";function oc(){ia.apply(this,arguments),this.Sg=null}Kt(oc,ia);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||!jn(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(ia.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===ni){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 ae=this.ii(a.object),le=a.newValue;if(ae!==null&&typeof le=="string"){var ce=ae.kh();ce!==null&&(ce.category=le)}}y.isModified=!0}}else if(x===ni){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 Ci&&(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){ia.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 Ci&&y.mh(z)===x&&f0(this,b,this.ii(z))}Jc(y,x)}a=y.mh(a),a!==void 0&&b instanceof Ci&&(a=this.Vb(a),f0(this,a,b))}},oc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Ci){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(xi,"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)&&_c(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 Gi(a,y){this.kl=new Dn,this.il=new Dn,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Rr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Si,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 Si,this.Lt=new On,this.Wg=!1,this.o=null,this.undoManager=new yi,a!==void 0&&(Cn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Gi.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},Gi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Gi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Gi.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)+":"+Zn(b)}}return y},Gi.prototype.xA=function(a){a.change!==In&&It("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof _i?(CS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Gi.prototype.Qv=function(a,y){var x=this,E=!1,b=new Dn,z=new Dn,ne=new Dn,re=this.vh;a.changes.each(function(me){me.model===x&&(me.modelChange==="nodeDataArray"?me.change===ai?b.add(me.newValue):me.change===xi&&ne.add(me.oldValue):x.lb(me.object)?z.add(me.object):me.change!==ni||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 Gi||x.ri()&&x.Jc(me.object)||ES(x,me.object).each(function(Ce){z.add(Ce)})):E=!0)});var ae=this.il;ae.clear(),b.each(function(me){ae.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<ae.count&&(ce===null&&(ce={}),y?ce.removedNodeKeys=ae.Fa():ce.insertedNodeKeys=ae.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(),ae.clear(),ce},Gi.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=Ha++,E.set(me,Ce),b.set(me,y))}if(!Qt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new Si),re){var ae=E.get(y);if(ae)return ae}else for(b||(b=new Si),ae=b.iterator;ae.next();){var le=ae.key;if(ae.value===y&&(le=E.get(le)))return le}if(Array.isArray(y)){ae=[],ne(y,ae);for(var ce=0;ce<y.length;ce++)ae.push(Wg(a,y[ce],!1,E,b,z))}else if(y instanceof $e||y instanceof oi||y instanceof An||y instanceof Yi||y instanceof Mi)ae=y.copy(),ne(y,ae);else{if(y instanceof ta||y instanceof hi||y instanceof qt)return y;if(y instanceof On)ae=new On().addAll(Wg(a,y.Fa(),!1,E,b,z)),ne(y,ae);else if(y instanceof Dn)ae=new Dn().addAll(Wg(a,y.Fa(),!1,E,b,z)),ne(y,ae);else if(y instanceof Si)ae=new Si().addAll(Wg(a,y.Fa(),!1,E,b,z)),ne(y,ae);else if(y instanceof Date)ae=new Date(y.getTime()),ne(y,ae);else if(y instanceof RegExp)ae=new RegExp(y),ne(y,ae),ae.lastIndex=y.lastIndex;else if(typeof y.copy=="function")ae=y.copy(),ne(y,ae);else for(ce in ae={},ne(y,ae),y)ce!=="__gohashid"&&(ae[ce]=Wg(a,y[ce],!1,E,b,z))}return x&&z.forEach(function(me){delete me.__gohashid}),ae}Me=Gi.prototype,Me.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Me.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},Me.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)}Me.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)},Me.kv=function(a){wS(this,a),a=a.nodeDataArray,Cn(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 Dn,ne.add(z),E.add(b,ne)):ne.add(z)}}var E=a.vh;E===null&&(E=new Si,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===ni?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===ai||z===xi)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function ES(a,y){for(var x=new Dn,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}Me.Pv=function(a,y){var x=this,E=!1,b=new Dn,z=new Dn,ne=new Dn,re=this.vh;a.changes.each(function(ce){ce.model===x&&(ce.modelChange==="nodeDataArray"?ce.change===ai?b.add(ce.newValue):ce.change===xi&&ne.add(ce.oldValue):x.lb(ce.object)?z.add(ce.object):ce.change!==ni||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 Gi||x.ri()&&x.Jc(ce.object)||ES(x,ce.object).each(function(me){z.add(me)})):E=!0)});var ae=this.il;ae.clear(),b.each(function(ce){ae.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<ae.count&&(a+=(y?this.Yv:this.Wv)+Xh(this,ae.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(),ae.clear(),a},Me.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)&&It("applyIncrementalJson cannot change Model properties"),wS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new Si;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 ae in b)ae==="__gohashid"||ae===this.nodeKeyProperty||this.Wj()&&ae===this.nodeIsGroupProperty||this.setDataProperty(z,ae,b[ae]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,ae=0;ae<x;ae++)y=this.hc(a[ae]),y!==null&&this.cm(y)},Me.$x=function(a,y){a.change!==In&&It("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof _i?(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 }'},Me.yA=function(a,y){return this.$x(a,y)},Me.np=function(a){return a===void 0&&(a=Wp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Me.toJSON=function(a){return this.np(a)},Me.Zw=function(a){var y=null;if(typeof a=="string")try{y=gt.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:It("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&It("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Me.Ky=function(a){return this.Zw(a)},Gi.constructGraphLinksModel=function(){return new Gi},Me=Gi.prototype,Me.dm=function(a){if(Cn(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:It("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 On,E=0;E<x.length/2;E++)b.add(new $e(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return zx(a)}return a},Me.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Cn(a)?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 Ji;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 $e)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 An)y={class:"go.Rect",x:eu(x.x),y:eu(x.y),width:eu(x.width),height:eu(x.height)};else if(x instanceof Yi)y={class:"go.Margin",top:eu(x.top),right:eu(x.right),bottom:eu(x.bottom),left:eu(x.left)};else if(x instanceof Mi)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 hi?(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(Ua)||(y.spot1=x.spot1),x.spot2.D(xl)||(y.spot2=x.spot2),x.type===hi.o&&(y.path=hi.ia(x))):x instanceof qt&&(y={class:"go.EnumValue",classType:Wp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=Fs(y,b);if(!bS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof On){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 $e(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 An(tu(a.x),tu(a.y),tu(a.width),tu(a.height));else if(y==="Margin")x=new Yi(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 Mi(tu(a.x),tu(a.y),tu(a.offsetX),tu(a.offsetY));else if(y==="Brush"){if(x=new ta,x.type=Li(ta,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Mi&&(x.start=a.start),a.end instanceof Mi&&(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=hi.parse(a.path):x=new hi,x.type=Li(hi,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 Mi&&(x.spot1=a.spot1),a.spot2 instanceof Mi&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=fy(E),typeof E=="function"&&(x=Li(E,a.name)));return x}Me.Pe=function(a){return this.Lt.add(a),this},Me.ik=function(a){this.Lt.remove(a)},Me.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)},Me.cb=function(a,y,x,E,b,z,ne){Vs(this,"",a,y,x,E,b,z,ne)},Me.g=function(a,y,x,E,b){Vs(this,"",ni,a,this,y,x,E,b)},Me.Fs=function(a,y,x,E,b,z){Vs(this,"",ni,y,a,x,E,b,z)};function Vs(a,y,x,E,b,z,ne,re,ae){re===void 0&&(re=null),ae===void 0&&(ae=null);var le=new Bn;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=ae,a.ds(le)}Gi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===ni){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)),ja(x,E,b)}else a.change===ai?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Qt(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&En(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&vn(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Cn(E)&&a.propertyName&&(E=Fs(a.object,a.propertyName)),Cn(E)&&typeof x=="number"&&(a=a.newValue,y?En(E,x):vn(E,x,a))):It("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===xi?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Qt(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&vn(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&En(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Cn(E)&&a.propertyName&&(E=Fs(a.object,a.propertyName)),Cn(E)&&typeof x=="number"&&(a=a.oldValue,y?vn(E,x,a):En(E,x))):It("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==In&&It("unknown ChangedEvent: "+a.toString())},Gi.prototype.Ea=function(a){return this.undoManager.Ea(a)},Gi.prototype.eb=function(a){return this.undoManager.eb(a)},Gi.prototype.Kf=function(){return this.undoManager.Kf()},Gi.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}},Me=Gi.prototype,Me.La=function(a,y){y===void 0&&(y=""),Vs(this,"SourceChanged",In,y,a,null,null)},Me.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Fs(a,y),y!==void 0)){if(_h(y))return y;It("Key value for node data "+a+" is not a number or a string: "+y)}}},Me.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=Fs(a,x);E!==y&&this.hc(y)===null&&(ja(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Vs(this,"nodeKey",ni,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else ja(a,x,y)}};function _h(a){return typeof a=="number"||typeof a=="string"}Me.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Me.hc=function(a){return a===null&&It("Model.findNodeDataForKey:key must not be null"),a!==void 0&&_h(a)?this.kb.I(a):null},Me.$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))){ja(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;ja(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;ja(a,y,x)}}}}},Me.xf=function(a){a!==null&&(ca(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&&It("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,vn(a.Tc,E,y)),Vs(a,"nodeDataArray",ai,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Me.Fy=function(a){if(Cn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},Me.cm=function(a){a!==null&&FS(this,a,!0)};function FS(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;En(a.Tc,E)}Vs(a,"nodeDataArray",xi,"nodeDataArray",a,y,null,E,null),a.qp(y)}Me.nA=function(a){if(Cn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},Me.$z=function(a){if(a!==this.nodeDataArray&&Cn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var 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()}},Me.jp=function(a,y){y!==void 0&&(a=Hp(this,a),a instanceof Dn&&this.Vf.add(y,a))},Me.Lv=function(){},Me.fm=function(){},Me.em=function(){},Me.qp=function(){};function _c(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new Dn,a.Vf.add(y,E)),E.add(x)}}function Jc(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof Dn&&(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 Dn?a:null)}Me.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Gi.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)&&Rr(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 Rr(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=Fs(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 Gi||z instanceof yi||z instanceof _i||z instanceof Bn||(z=p0(a,z,!1)),ja(x,E,z)}return Rr(x),x}return y instanceof $e||y instanceof oi||y instanceof An||y instanceof Mi||y instanceof Yi?y.copy():y}Gi.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!MS&&a instanceof Gt&&(MS=!0,ui('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),ui(" Is that really your intent?"));var E=Fs(a,y);E!==x&&(ja(a,y,x),this.Fs(a,y,E,x))},Me=Gi.prototype,Me.set=function(a,y,x){this.setDataProperty(a,y,x)},Me.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])}},Me.Ay=function(a,y){this.ts(a,-1,y)},Me.ts=function(a,y,x){0>y&&(y=a.length),vn(a,y,x),Vs(this,"",ai,"",a,null,x,null,y)},Me.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&It("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];En(a,y),Vs(this,"",xi,"",a,x,null,y,null)},Me.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Fs(a,y),y===void 0))return"";if(typeof y=="string")return y;It("getCategoryForNodeData found a non-string category for "+a+": "+y)},Me.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Fs(a,x);E===void 0&&(E=""),E!==y&&(ja(a,x,y),Vs(this,"nodeCategory",ni,x,a,E,y))}else ja(a,x,y)}},Me.lm=function(a,y){this.jm(y,this.Ro(a))},Me.Tl=function(){return!1},Me.Wj=function(){return!1},Me.ri=function(){return!1},Me.xs=function(){return!1},Me.Xj=function(){return!1};function hy(){return new Gi}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 Oc[a]?Oc[a]:gt.go!==void 0&>.go[a]?gt.go[a]:null}function Fs(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function ja(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){}}Pt.Object.defineProperties(Gi.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===""&&It("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&It("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)||It("Model.nodeDataArray must only contain Objects, not: "+b),ca(b)}for(this.Tc=a,E=new On,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(Vs(this,"nodeDataArray",ni,"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"}}}),Gi.prototype.setCategoryForNodeData=Gi.prototype.jm,Gi.prototype.getCategoryForNodeData=Gi.prototype.Ro,Gi.prototype.removeArrayItem=Gi.prototype.ov,Gi.prototype.insertArrayItem=Gi.prototype.ts,Gi.prototype.addArrayItem=Gi.prototype.Ay,Gi.prototype.assignAllDataProperties=Gi.prototype.Do,Gi.prototype.set=Gi.prototype.set,Gi.prototype.clearUnresolvedReferences=Gi.prototype.Qy,Gi.prototype.mergeNodeDataArray=Gi.prototype.$z,Gi.prototype.removeNodeDataCollection=Gi.prototype.nA,Gi.prototype.removeNodeData=Gi.prototype.cm,Gi.prototype.addNodeDataCollection=Gi.prototype.Fy,Gi.prototype.addNodeData=Gi.prototype.xf,Gi.prototype.makeNodeDataKeyUnique=Gi.prototype.$u,Gi.prototype.findNodeDataForKey=Gi.prototype.hc,Gi.prototype.containsNodeData=Gi.prototype.lb,Gi.prototype.setKeyForNodeData=Gi.prototype.km,Gi.prototype.getKeyForNodeData=Gi.prototype.wa,Gi.prototype.updateTargetBindings=Gi.prototype.La,Gi.prototype.commit=Gi.prototype.commit,Gi.prototype.rollbackTransaction=Gi.prototype.Kf,Gi.prototype.commitTransaction=Gi.prototype.eb,Gi.prototype.startTransaction=Gi.prototype.Ea,Gi.prototype.raiseDataChanged=Gi.prototype.Fs,Gi.prototype.raiseChanged=Gi.prototype.g,Gi.prototype.raiseChangedEvent=Gi.prototype.cb,Gi.prototype.removeChangedListener=Gi.prototype.ik,Gi.prototype.addChangedListener=Gi.prototype.Pe,Gi.prototype.writeJsonValue=Gi.prototype.sm,Gi.prototype.replaceJsonObjects=Gi.prototype.dm,Gi.prototype.applyIncrementalJSON=Gi.prototype.Ky,Gi.prototype.applyIncrementalJson=Gi.prototype.Zw,Gi.prototype.toJSON=Gi.prototype.toJSON,Gi.prototype.toJson=Gi.prototype.np,Gi.prototype.toIncrementalJSON=Gi.prototype.yA,Gi.prototype.toIncrementalJson=Gi.prototype.$x,Gi.prototype.toIncrementalData=Gi.prototype.xA,Gi.prototype.clear=Gi.prototype.clear;var MS=!1,Oc={};Gi.className="Model",Gi.fromJSON=Gi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=gt.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:It("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=gt[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Gi?y=a:It("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Gi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Gi.safePropertyValue=Fs,Gi.safePropertySet=ja,Oc.Brush=ta,Oc.ChangedEvent=Bn,Oc.Geometry=hi,Oc.Margin=Yi,Oc.Panel=ii,Oc.Point=$e,Oc.Rect=An,Oc.Size=oi,Oc.Spot=Mi,Oc.Transaction=_i,Oc.UndoManager=yi;function Bs(a,y,x,E){Rr(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 Dn}Bs.prototype.copy=function(){var a=new Bs;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},Me=Bs.prototype,Me.qb=function(a){a.classType===Bs&&(this.mode=a)},Me.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Me.freeze=function(){return this._isFrozen=!0,this},Me.ka=function(){return this._isFrozen=!1,this},Me.Kx=function(a){return a===void 0&&(a=null),this.mode=Zp,this.backConverter=a,this},Me.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Me.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function LS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Me.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==="")ui("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=Fs(y,E)),z!==void 0)if(b===null)x!==""&&ja(a,x,z);else try{if(x!==""){var ne=b(z,a);ja(a,x,ne)}else b(z,a)}catch(re){}}}},Me.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=Fs(a,b)),ne!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=E!==null?E.diagram:null,ae=re!==null?re.model:null;if(z===null){if(x!=="")ae!==null?ae.setDataProperty(y,x,ne):ja(y,x,ne);else if(ae!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var le=E.itemIndex,ce=E.panel.itemArray;ae.ov(ce,le),ae.ts(ce,le,ne)}}else try{if(x!==""){var me=z(ne,y,ae);ae!==null?ae.setDataProperty(y,x,me):ja(y,x,me)}else{var Ce=z(ne,y,ae);if(Ce!==void 0&&ae!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var Fe=E.itemIndex,De=E.panel.itemArray;ae.ov(De,Fe),ae.ts(De,Fe,Ce)}}}catch(ze){}}finally{this.st.remove(a)}}}},Pt.Object.defineProperties(Bs.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&gn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&gn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&gn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&gn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&gn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&gn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&gn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&gn(this),this.el=a}}}),Bs.prototype.updateSource=Bs.prototype.sp,Bs.prototype.updateTarget=Bs.prototype.Mv,Bs.prototype.ofModel=Bs.prototype.dA,Bs.prototype.ofObject=Bs.prototype.cp,Bs.prototype.makeTwoWay=Bs.prototype.Kx;var jx="Binding",DS=new qt(Bs,"OneWay",1),Zp=new qt(Bs,"TwoWay",2);Bs.className="Binding",Bs.parseEnum=function(a,y){return function(x){return x=Li(a,x),x===null?y:x}},Bs.toString=Zn,Bs.OneWay=DS,Bs.TwoWay=Zp;function Mo(a,y,x){Gi.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Dn,this.wb=new Si,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(Cn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Kt(Mo,Gi),Mo.constructGraphLinksModel=Gi.constructGraphLinksModel,Mo.prototype.cloneProtected=function(a){Gi.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},Me=Mo.prototype,Me.clear=function(){Gi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Me.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)+":"+Zn(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},Me.Qv=function(a,y){this.linkKeyProperty===""&&It("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Gi.prototype.Qv.call(this,a,y),E=this,b=new Dn,z=new Dn,ne=new Dn,re=this.vh;a.changes.each(function(ce){ce.model===E&&(ce.modelChange==="linkDataArray"?ce.change===ai?b.add(ce.newValue):ce.change===xi&&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 Gi||E.lb(ce.object)||BS(E,ce.object).each(function(me){z.add(me)})))});var ae=this.il;ae.clear(),b.each(function(ce){ae.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<ae.count&&(x===null&&(x={}),y?x.removedLinkKeys=ae.Fa():x.insertedLinkKeys=ae.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(),ae.clear(),x},Me.rm=function(){var a=Gi.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},Me.gp=function(a){Gi.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)},Me.Rv=function(){var a=Gi.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Xh(this,this.linkDataArray,!0);return a+y},Me.kv=function(a){Gi.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 Dn,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];g0(a,y,b,b,x)}return x}Me.Pv=function(a,y){this.linkKeyProperty===""&&It("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Gi.prototype.Pv.call(this,a,y),E=this,b=new Dn,z=new Dn,ne=new Dn,re=this.vh;a.changes.each(function(ce){ce.model===E&&(ce.modelChange==="linkDataArray"?ce.change===ai?b.add(ce.newValue):ce.change===xi&&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 Gi||E.lb(ce.object)||BS(E,ce.object).each(function(me){z.add(me)})))});var ae=this.il;ae.clear(),b.each(function(ce){ae.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<ae.count&&(a+=(y?this.Xv:this.Vv)+Xh(this,ae.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(),ae.clear(),a},Me.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)&&It("applyIncrementalJson cannot change Model properties"),Gi.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)},Mo.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===ni){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),ja(x,E,b);return}}else if(a.change===ai){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===xi){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}}Gi.prototype.changeState.call(this,a,y)}},Me=Mo.prototype,Me.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),ja(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Me.yx=function(a){return Gu(this,a,!0)},Me.wv=function(a,y){Zg(this,a,y,!0)},Me.Bx=function(a){return Gu(this,a,!1)},Me.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=Fs(y,a),a!==void 0))){if(_h(a))return a;It((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=Fs(y,b);z!==x&&(Jc(a,z,y),ja(y,b,x),a.hc(x)===null&&_c(a,x,y),Vs(a,E?"linkFromKey":"linkToKey",ni,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ja(y,b,x)}}Me.zx=function(a){return m0(this,a,!0)},Me.xv=function(a,y){Gg(this,a,y,!0)},Me.Cx=function(a){return m0(this,a,!1)},Me.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=Fs(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=Fs(y,b);z===void 0&&(z=""),z!==x&&(ja(y,b,x),Vs(a,E?"linkFromPortId":"linkToPortId",ni,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ja(y,b,x)}}Me.Ef=function(a){if(a===null)return v0;var y=this.je;return y===""?v0:(a=Fs(a,y),a===void 0?v0:a)},Me.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Fs(a,x);if(E===void 0&&(E=v0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)Jc(this,E[z],a);for(ja(a,x,y),b=y.length,z=0;z<b;z++){var ne=y[z];this.hc(ne)===null&&_c(this,ne,a)}Vs(this,"linkLabelKeys",ni,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else ja(a,x,y)}},Me.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Fs(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&&_c(this,y,a),Vs(this,"linkLabelKeys",ai,x,a,null,y,null,b)))}else It(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Me.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Fs(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(Jc(this,y,a),Vs(this,"linkLabelKeys",xi,x,a,y,null,b,null)))}else E!==void 0&&It(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Me.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Fs(a,y),y!==void 0)){if(_h(y))return y;It("Key value for link data "+a+" is not a number or a string: "+y)}}},Me.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Fs(a,x);E!==y&&this.jh(y)===null&&(ja(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Vs(this,"linkKey",ni,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Me.jh=function(a){return a===null&&It("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&_h(a)?this.wb.I(a):null},Me.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))){ja(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;ja(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;ja(a,y,x)}}}}},Me.Jc=function(a){return a===null?!1:this.$f.contains(a)},Me.fi=function(a){a!==null&&(ca(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&&It("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)),Vs(a,"linkDataArray",ai,"linkDataArray",a,null,y,null,E),gy(a,y)}Me.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)},Me.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(Vs(a,"linkDataArray",xi,"linkDataArray",a,y,null,E,null),x=Gu(a,y,!0),Jc(a,x,y),x=Gu(a,y,!1),Jc(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],Jc(a,x,y)}Me.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)},Me.Zz=function(a){if(this.linkKeyProperty===""&&It("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Cn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var 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&&_c(a,x,y),x=Gu(a,y,!1),x=a.Vl(x),a.hc(x)===null&&_c(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&&_c(a,x,y)}Me.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)&&(Rr(a),this.lf!==""&&ja(a,this.lf,void 0),this.mf!==""&&ja(a,this.mf,void 0),this.je!==""&&ja(a,this.je,[])),a},Me.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Fs(a,y)},Me.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Fs(a,y),y!==void 0)){if(_h(y))return y;It("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Me.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=Fs(a,x);E!==y&&(Jc(this,E,a),ja(a,x,y),this.hc(y)===null&&_c(this,y,a),Vs(this,"nodeGroupKey",ni,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Mo.prototype.copyNodeData=function(a){return a===null?null:(a=Gi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Fs(a,this.Je)===void 0||ja(a,this.Je,void 0),a)},Mo.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=Fs(a,y);E!==x&&(ja(a,y,x),this.Fs(a,y,E,x))},Me=Mo.prototype,Me.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&&Fs(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Me.jp=function(a,y){Gi.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;ja(E,ne,z),Vs(this,"linkFromKey",ni,ne,E,b,z),typeof ne=="string"&&this.La(E,ne)}if(Gu(this,E,!1)===b&&(ne=this.mf,ja(E,ne,z),Vs(this,"linkToKey",ni,ne,E,b,z),typeof ne=="string"&&this.La(E,ne)),ne=this.Ef(E),Array.isArray(ne))for(var re=ne.length,ae=this.je,le=0;le<re;le++)ne[le]===b&&(ne[le]=z,Vs(this,"linkLabelKeys",ai,ae,E,b,z,le,le))}},Me.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;ja(a,E,x),Vs(this,"nodeGroupKey",ni,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Me.Lv=function(){Gi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)gy(this,a[x])},Me.fm=function(a){Gi.prototype.fm.call(this,a),a=this.wa(a);var y=Hp(this,a);if(y!==null){var x=Pn();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;Vs(this,"nodeGroupKey",ni,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(Gu(this,E,!0)===a&&(b=this.lf,Vs(this,"linkFromKey",ni,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),Gu(this,E,!1)===a&&(b=this.mf,Vs(this,"linkToKey",ni,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&&(Vs(this,"linkLabelKeys",ai,ne,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)Jc(this,a,x[y]);Rn(x)}},Me.em=function(a){Gi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&_c(this,y,a)},Me.qp=function(a){Gi.prototype.qp.call(this,a);var y=this.lh(a);Jc(this,y,a)},Me.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Fs(a,y),y===void 0))return"";if(typeof y=="string")return y;It("getCategoryForLinkData found a non-string category for "+a+": "+y)},Mo.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Mo.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=Fs(a,x);E===void 0&&(E=""),E!==y&&(ja(a,x,y),Vs(this,"linkCategory",ni,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Mo.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Me=Mo.prototype,Me.lm=function(a,y){Gi.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))}Me.Wj=function(){return!0},Me.ri=function(){return!0},Me.xs=function(){return!0},Me.Xj=function(){return!0},Pt.Object.defineProperties(Mo.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)||It("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),ca(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new On,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 Dn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,Vs(this,"linkDataArray",ni,"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"}}}),Mo.prototype.setCategoryForLinkData=Mo.prototype.lp,Mo.prototype.getCategoryForLinkData=Mo.prototype.ps,Mo.prototype.assignAllDataProperties=Mo.prototype.Do,Mo.prototype.setGroupKeyForNodeData=Mo.prototype.mp,Mo.prototype.getGroupKeyForNodeData=Mo.prototype.lh,Mo.prototype.isGroupForNodeData=Mo.prototype.Yu,Mo.prototype.copyLinkData=Mo.prototype.Jo,Mo.prototype.mergeLinkDataArray=Mo.prototype.Zz,Mo.prototype.removeLinkDataCollection=Mo.prototype.lA,Mo.prototype.removeLinkData=Mo.prototype.bm,Mo.prototype.addLinkDataCollection=Mo.prototype.Ey,Mo.prototype.addLinkData=Mo.prototype.fi,Mo.prototype.containsLinkData=Mo.prototype.Jc,Mo.prototype.makeLinkDataKeyUnique=Mo.prototype.Bs,Mo.prototype.findLinkDataForKey=Mo.prototype.jh,Mo.prototype.setKeyForLinkData=Mo.prototype.Ks,Mo.prototype.getKeyForLinkData=Mo.prototype.Ac,Mo.prototype.removeLabelKeyForLinkData=Mo.prototype.Qx,Mo.prototype.addLabelKeyForLinkData=Mo.prototype.Bu,Mo.prototype.setLabelKeysForLinkData=Mo.prototype.Ls,Mo.prototype.getLabelKeysForLinkData=Mo.prototype.Ef,Mo.prototype.setToPortIdForLinkData=Mo.prototype.Cv,Mo.prototype.getToPortIdForLinkData=Mo.prototype.Cx,Mo.prototype.setFromPortIdForLinkData=Mo.prototype.xv,Mo.prototype.getFromPortIdForLinkData=Mo.prototype.zx,Mo.prototype.setToKeyForLinkData=Mo.prototype.Bv,Mo.prototype.getToKeyForLinkData=Mo.prototype.Bx,Mo.prototype.setFromKeyForLinkData=Mo.prototype.wv,Mo.prototype.getFromKeyForLinkData=Mo.prototype.yx,Mo.prototype.clear=Mo.prototype.clear;var v0=Object.freeze([]);Mo.className="GraphLinksModel",Oc.GraphLinksModel=Mo,Gi.constructGraphLinksModel=Gi.constructGraphLinksModel=function(){return new Mo},Gi.initDiagramModel=hy=function(){return new Mo};function nu(a,y){Gi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Cn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Kt(nu,Gi),nu.constructGraphLinksModel=Gi.constructGraphLinksModel,nu.prototype.cloneProtected=function(a){Gi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Me=nu.prototype,Me.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)+":"+Zn(b)}}return y},Me.rm=function(){var a=Gi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Me.gp=function(a){Gi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Me.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&It("applyIncrementalJson cannot change Model properties"),Gi.prototype.fp.call(this,a)},Me.Vl=function(a){return a},Me.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Fs(a,y),y!==void 0)){if(_h(y))return y;It("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Me.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=Fs(a,x);E!==y&&(Jc(this,E,a),ja(a,x,y),this.hc(y)===null&&_c(this,y,a),Vs(this,"nodeParentKey",ni,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Me.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Fs(a,y),y===void 0)?"":typeof y=="string"?y:(It("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=Fs(a,x);E===void 0&&(E=""),E!==y&&(ja(a,x,y),Vs(this,"parentLinkCategory",ni,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},nu.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},nu.prototype.copyNodeData=function(a){return a===null?null:(a=Gi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Fs(a,this.Ke)===void 0||ja(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=Fs(a,y);E!==x&&(ja(a,y,x),this.Fs(a,y,E,x))},Me=nu.prototype,Me.jp=function(a,y){Gi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Me.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;ja(a,E,x),Vs(this,"nodeParentKey",ni,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Me.fm=function(a){Gi.prototype.fm.call(this,a),a=this.wa(a);var y=Hp(this,a);if(y!==null){var x=Pn();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;Vs(this,"nodeParentKey",ni,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)Jc(this,a,x[y]);Rn(x)}},Me.em=function(a){Gi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&_c(this,y,a)},Me.qp=function(a){Gi.prototype.qp.call(this,a);var y=this.mh(a);Jc(this,y,a)},Me.lm=function(a,y){Gi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Me.Tl=function(){return!0},Me.xs=function(){return!0},Pt.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",Oc.TreeModel=nu;function ns(a){Ga.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Ic,this.Ti=0,this.Zv=new $e,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=Ic,this.K=iu,this.nd=Vg,this.hd=ay,this.tf=6,this.Nn=E0,a&&Object.assign(this,a)}Kt(ns,Ga),ns.prototype.cloneProtected=function(a){Ga.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},ns.prototype.qb=function(a){a.classType===ns?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===Ic||a===Rc?this.arrangement=a:(a===ag||a===E0)&&(this.nodeDiameterFormula=a):Ga.prototype.qb.call(this,a)},ns.prototype.createNetwork=function(){return new Yg(this)},ns.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 On;y.addAll(a.iterator),a=new On;var x=new On,E=this.sort(y),b,z,ne=this.Jp,re=this.arrangement,ae=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===Rc&&ae===ag?re=Ic:re===Rc&&ae!==ag&&(re=this.arrangement),(this.direction===kf||this.direction===Kg)&&this.sorting!==Vg){for(ae=0;!(ae>=E.length)&&(a.add(E.M(ae)),!(ae+1>=E.length));ae+=2)x.add(E.M(ae+1));this.direction===kf?(this.arrangement===Rc&&a.reverse(),E=new On,E.addAll(a),E.addAll(x)):(this.arrangement===Rc&&x.reverse(),E=new On,E.addAll(x),E.addAll(a))}ae=E.length;for(var Fe=z=b=0;Fe<E.length;Fe++){var De=me+Ce*z*(this.direction===iu?1:-1)/ae,ze=E.M(Fe).diameter;isNaN(ze)&&(ze=$h(E.M(Fe),De)),360>Ce&&(Fe===0||Fe===E.length-1)&&(ze/=2),b+=ze,z++}if(isNaN(le)||re===Rc){if(isNaN(y)&&(y=6),re!==Ic&&re!==Rc){for(z=-1/0,ne=0;ne<ae;ne++)Fe=E.M(ne),b=E.M(ne===ae-1?0:ne+1),isNaN(Fe.diameter)&&$h(Fe,0),isNaN(b.diameter)&&$h(b,0),z=Math.max(z,(Fe.diameter+b.diameter)/2);ne=z+y,re===Eh?le=(z+y)/(2*Math.PI/ae):le=y0(this,ne*(360<=Ce?ae:ae-1),ce,me*Math.PI/180,Ce*Math.PI/180)}else le=y0(this,b+(360<=Ce?ae:ae-1)*(re!==Rc?y:1.6*y),ce,me*Math.PI/180,Ce*Math.PI/180);z=le*ce}else if(z=le*ce,Fe=py(this,le,z,me*Math.PI/180,Ce*Math.PI/180),isNaN(y))(re===Ic||re===Rc)&&(y=(Fe-b)/(360<=Ce?ae:ae-1));else if(re===Ic||re===Rc)Fe=(Fe-b)/(360<=Ce?ae:ae-1),Fe<y?(le=y0(this,b+y*(360<=Ce?ae:ae-1),ce,me*Math.PI/180,Ce*Math.PI/180),z=le*ce):y=Fe;else{for(ne=-1/0,b=0;b<ae;b++)De=E.M(b),ze=E.M(b===ae-1?0:b+1),isNaN(De.diameter)&&$h(De,0),isNaN(ze.diameter)&&$h(ze,0),ne=Math.max(ne,(De.diameter+ze.diameter)/2);ne+=y,b=y0(this,ne*(360<=Ce?ae:ae-1),ce,me*Math.PI/180,Ce*Math.PI/180),b>le?(le=b,z=le*ce):ne=Fe/(360<=Ce?ae:ae-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,ae=this.Jp,this.direction!==kf&&this.direction!==Kg||E!==Rc)if(this.direction===kf||this.direction===Kg){switch(ne=0,E){case Jh:ne=180*S0(this,re,Ce,le,ae)/Math.PI;break;case Ic:ae=y=0,ne=a.first(),ne!==null&&(y=$h(ne,Math.PI/2)),ne=x.first(),ne!==null&&(ae=$h(ne,Math.PI/2)),ne=180*S0(this,re,Ce,le,me+(y+ae)/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 Ic: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 Ic: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 Ic: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 Ic: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 Ic:Kp(this,y,le,this.direction);break;case Eh:Gp(this,y,ce,le,this.direction);break;case Rc: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,ae=0;ae<re;ae++){var le=E+(b===iu?ae*x/(360<=z?re:re-1):-(ae*x)/re),ce=y.M(ae),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,ae=0;ae<re;ae++){var le=y.M(ae),ce=y.M(ae===re-1?0:ae+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,ae=0;ae<re;ae++){var le=y.M(ae);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,ae=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=$e.alloc();for(var me=0;me<ce.length&&(ce[me].centerX=ae,ce[me].centerY=le,!(me>=ce.length-1));me++)zS(a,ae,le,ce,me,b,z)||jS(a,ae,le,ce,me,b,z),ae=z.x,le=z.y;if($e.free(z),a.mj++,!(23<a.mj)){ae=ce[0].centerX,le=ce[0].centerY,z=ce[ce.length-1].centerX,me=ce[ce.length-1].centerY;var Ce=Math.abs(ae-z)-((ce[0].width+ce[ce.length-1].width)/2+ne),Fe=Math.abs(le-me)-((ce[0].height+ce[ce.length-1].height)/2+ne);ne=0,1>Math.abs(Fe)?Math.abs(ae-z)<(ce[0].width+ce[ce.length-1].width)/2&&(ne=0):ne=0<Fe?Fe:1>Math.abs(Ce)?0:Ce,ae=Math.abs(z)>Math.abs(me)?0<z!=le>me:0<me!=ae<z,(ae=b===iu?ae:!ae)&&(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,ae=z*Math.cos(E*Math.PI/180),le=ne*Math.sin(E*Math.PI/180),ce=$e.alloc(),me=y.Fa(),Ce=0;Ce<me.length&&(me[Ce].centerX=ae,me[Ce].centerY=le,!(Ce>=me.length-1));Ce++)zS(a,ae,le,me,Ce,b,ce)||jS(a,ae,le,me,Ce,b,ce),ae=ce.x,le=ce.y;if($e.free(ce),a.mj++,!(23<a.mj)){if(ae=Math.atan2(le,ae),ae=b===iu?a.gt-ae:ae-a.gt,ae=Math.abs(ae)<Math.abs(ae-2*Math.PI)?ae:ae-2*Math.PI,z=ae*(z+ne)/2,ne=a.Xr,Math.abs(z)<Math.abs(ne.Pl))for(ne.Pl=z,ne.mk=[],ne.tm=[],ae=0;ae<me.length;ae++)ne.mk[ae]=me[ae].bounds.x,ne.tm[ae]=me[ae].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,ae=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)))*ae,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,ae=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<-ae){if(z=x+a,z>ae){ne.x=le,ne.y=z;return}E=!0}}else if(z=x+a,z>ae){if(z=x-a,z<-ae){ne.x=le,ne.y=z;return}E=!0}le=Math.sqrt(1-Math.min(1,z*z/(ae*ae)))*re,0>y!==E&&(le=-le),ne.x=le,ne.y=z}ns.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ns.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 $e(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))},ns.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)),ae=0,le=0;le<=z;le++){E!==void 0&&b!==void 0?ae=E+le*b/z:ae=le*Math.PI/(2*z);var ce=Math.sin(ae);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 ae=Math.sin(E+re*a);if(ne+=(y>x?y:x)*Math.sqrt(1-z*z*ae*ae)*a,ne>=b)return re*a}}ns.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:It("Invalid sorting type.")}return a};function Hx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new On;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}ns.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 On;for(var ae=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(ae===0)x.push(le);else{for(var me=ce=1/0,Ce=-1,Fe=[],De=0;De<x.length;De++)0>y[x[De]].indexOf(x[De===x.length-1?0:De+1])&&Fe.push(De===x.length-1?0:De+1);if(Fe.length===0)for(De=0;De<x.length;De++)Fe.push(De);for(De=0;De<Fe.length;De++){for(var ze=Fe[De],ut=y[le],qe=0,wt=0;wt<ne.length;wt++){var At=z[ne[wt]],Bt=z[re[wt]];if(At<Bt){var Ht=At;At=Bt}else Ht=Bt;if(Ht<ze&&ze<=At)for(Bt=0;Bt<ut.length;Bt++){var dn=ut[Bt];0>x.indexOf(dn)||Ht<z[dn]&&z[dn]<At||Ht===z[dn]||At===z[dn]||qe++}else for(Bt=0;Bt<ut.length;Bt++)dn=ut[Bt],0>x.indexOf(dn)||Ht<z[dn]&&z[dn]<At&&Ht!==z[dn]&&At!==z[dn]&&qe++}for(ut=qe,wt=qe=0;wt<y[le].length;wt++)Ht=x.indexOf(y[le][wt]),0<=Ht&&(Ht=Math.abs(ze-(Ht>=ze?Ht+1:Ht)),qe+=Ht<x.length+1-Ht?Ht:x.length+1-Ht);for(wt=0;wt<ne.length;wt++)Ht=z[ne[wt]],At=z[re[wt]],Ht>=ze&&Ht++,At>=ze&&At++,Ht>At&&(Bt=At,At=Ht,Ht=Bt),At-Ht<(x.length+2)/2==(Ht<ze&&ze<=At)&&qe++;(ut<ce||ut===ce&&qe<me)&&(ce=ut,me=qe,Ce=ze)}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))}ae++}}for(ne=x.length;;){for(z=!0,re=0;re<E.length;re++)if(ae=E[re],le=y[ae][0],ce=x.indexOf(le),0<=ce){for(Ce=me=0;Ce<y[le].length;Ce++)Fe=x.indexOf(y[le][Ce]),0>Fe||Fe===ce||(De=Fe>ce?Fe-ce:ce-Fe,me+=Fe<ce!=De>ne-De?1:-1);x.splice(0>me?ce:ce+1,0,ae),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},Pt.Object.defineProperties(ns.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!==Rc&&a!==Ic&&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 Ic=new qt(ns,"ConstantSpacing",0),Jh=new qt(ns,"ConstantDistance",1),Eh=new qt(ns,"ConstantAngle",2),Rc=new qt(ns,"Packed",3),iu=new qt(ns,"Clockwise",4),Qh=new qt(ns,"Counterclockwise",5),kf=new qt(ns,"BidirectionalLeft",6),Kg=new qt(ns,"BidirectionalRight",7),x0=new qt(ns,"Forwards",8),P0=new qt(ns,"Reverse",9),w0=new qt(ns,"Ascending",10),C0=new qt(ns,"Descending",11),Vg=new qt(ns,"Optimized",12),E0=new qt(ns,"Pythagorean",13),ag=new qt(ns,"Circular",14);ns.className="CircularLayout",ns.ConstantSpacing=Ic,ns.ConstantDistance=Jh,ns.ConstantAngle=Eh,ns.Packed=Rc,ns.Clockwise=iu,ns.Counterclockwise=Qh,ns.BidirectionalLeft=kf,ns.BidirectionalRight=Kg,ns.Forwards=x0,ns.Reverse=P0,ns.Ascending=w0,ns.Descending=C0,ns.Optimized=Vg,ns.Pythagorean=E0,ns.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)}Kt(Yg,Ea),Yg.prototype.createVertex=function(){return new Up(this)},Yg.prototype.createEdge=function(){return new b0(this)},Yg.className="CircularNetwork";function Up(a){Js.call(this,a),this.u=this.Si=NaN}Kt(Up,Js);function $h(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Rc)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}Pt.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)}Kt(b0,Bu),b0.className="CircularEdge";function Ml(a){Ga.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)}Kt(Ml,Ga),Ml.prototype.cloneProtected=function(a){Ga.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,ae=!0;z=b=0;for(var le=Pn(),ce=0;ce<re+y.vertexes.count+2;ce++)le[ce]=null;re=0,ne.reset();for(var me=An.alloc();ne.next();)if(ce=ne.value,this.computeBounds(ce,me),ae)ae=!1,b=me.x+me.width/2,z=me.y+me.height/2,le[0]=new $e(me.x+me.width+E.width,me.y),le[1]=new $e(me.x,me.y+me.height+E.height),re=2;else{var Ce=WS(le,re,b,z,me.width,me.height,E),Fe=le[Ce],De=new $e(Fe.x+me.width+E.width,Fe.y),ze=new $e(Fe.x,Fe.y+me.height+E.height);for(Ce+1<re&&le.splice(Ce+1,0,null),le[Ce]=De,le[Ce+1]=ze,re++,Ce=Fe.x-me.x,Fe=Fe.y-me.y,ce=ce.vertexes.iterator;ce.next();)De=ce.value,De.centerX+=Ce,De.centerY+=Fe}for(An.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 $e(Ce.x+Ce.width+E.width,Ce.y),le[1]=new $e(Ce.x,Ce.y+Ce.height+E.height),re=2):(ae=WS(le,re,b,z,Ce.width,Ce.height,E),me=le[ae],Fe=new $e(me.x+Ce.width+E.width,me.y),Ce=new $e(me.x,me.y+Ce.height+E.height),ae+1<re&&le.splice(ae+1,0,null),le[ae]=Fe,le[ae+1]=Ce,re++,ne.centerX=me.x+ne.width/2,ne.centerY=me.y+ne.height/2);for(Rn(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 On),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 On,b.Hj=re),re.add(ne),b.Vd--,b.sh+=ne.sh):ne.network===E&&(re=ne.Hj,re===null&&(re=new On,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,Ut.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var ae=b.Hj;if(ae!==null&&0<ae.count&&(ne=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=ne))){for(var le=re=0,ce=ae.count-ne;ce<ae.count;ce++){var me=ae.M(ce),Ce=null;for(z=me.edges.iterator;z.next();){var Fe=z.value;if(Fe.Ax(me)===b){Ce=Fe;break}}Ce!==null&&(le+=Ce.length,re+=me.width*me.height)}z=b.centerX,ae=b.centerY,ce=b.width,me=b.height,Ce=b.focus,Fe=ce*me,1>Fe&&(Fe=1),re=Ut.sqrt((re+Fe+le*le*4/(ne*ne))/Fe),ne=(re-1)*ce/2,re=(re-1)*me/2,b.bounds=new An(z-Ce.x-ne,ae-Ce.y-re,ce+2*ne,me+2*re),b.focus=new $e(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 An(E.centerX-z,E.centerY-ne,b.Ss,b.Qs),E.focus=new $e(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=Ut.sqrt(z*z+ne*ne)/2;for(var re=!1,ae=ne=0,le=0,ce=y.vertexes.iterator;ce.next();){var me=ce.value;1>=me.Vd?ae++:(re=!0,le++,ne+=Math.atan2(y.centerY-me.centerY,y.centerX-me.centerX))}if(ae!==0){for(0<le&&(ne/=le),le=y=0,y=re?2*Math.PI/(ae+1):2*Math.PI/ae,ae%2===0&&(le=y/2),1<x.count&&x.sort(function(Fe,De){return Fe===null||De===null||Fe===De?0:De.width*De.height-Fe.width*Fe.height}),re=ae%2===0?0:1,x=x.iterator;x.next();)if(ae=x.value,!(1<ae.Vd||a.isFixed(ae))){for(ce=null,me=ae.edges.iterator;me.next();){ce=me.value;break}me=ae.width;var Ce=ae.height;me=Ut.sqrt(me*me+Ce*Ce)/2,ce=z+ce.length+me,me=ne+(y*(re/2>>1)+le)*(re%2===0?1:-1),ae.centerX=E+ce*Math.cos(me),ae.centerY=b+ce*Math.sin(me),re++}}}}function WS(a,y,x,E,b,z,ne){var re=9e19,ae=-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;ae=le,re=me}}return ae}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,Ut.sqrt(x*x+a*a)):a+x<y?(E=E+b-ne,a=a+x-y,Ut.sqrt(E*E+a*a)):ne-(E+b):E>ne+re?a>y+z?(x=E-ne-re,a=a-y-z,Ut.sqrt(x*x+a*a)):a+x<y?(E=E-ne-re,a=a+x-y,Ut.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 ae=re.centerX;re=re.centerY,E=Math.min(E,ae),b=Math.max(b,ae),x=Math.min(x,re),z=Math.max(z,re)}(b=b-E>z-x)?y.sort(function(ze,ut){return ze===null||ut===null||ze===ut?0:ze.centerX-ut.centerX}):y.sort(function(ze,ut){return ze===null||ut===null||ze===ut?0:ze.centerY-ut.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,ae=E.x+re.x;var ce=E.y+re.y;E=ne.charge*a.electricalFieldX(ae,ce),le=ne.charge*a.electricalFieldY(ae,ce),E+=ne.mass*a.gravitationalFieldX(ae,ce),le+=ne.mass*a.gravitationalFieldY(ae,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 Fe=E.y+re.y;if(ae-le>x||le-ae>x){if(b)break}else if(ce-Fe>x||Fe-ce>x){if(!b)break}else{var De=ZS(ne,Ce);1>De?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new A0),De=E.random(),re=E.random(),ae>le?(E=Math.abs(Ce.bounds.right-ne.bounds.x),E=(1+E)*De):ae<le?(E=Math.abs(Ce.bounds.x-ne.bounds.right),E=-(1+E)*De):(E=Math.max(Ce.width,ne.width),E=(1+E)*De-E/2),ce>Fe?(le=Math.abs(Ce.bounds.bottom-ne.bounds.y),le=(1+le)*re):ae<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)/(De*De),E=(le-ae)/De*re,le=(Fe-ce)/De*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,ae=x.focus,E=ne.x+ae.x,ne=ne.y+ae.y,ce=z.bounds,me=z.focus,ae=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>ae?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=(ae-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=_o,y.toSpot=_o)}},Ml.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=An.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,An.free(x)}x=An.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()}An.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},Pt.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"&&It('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)}Kt(sg,Ea),sg.prototype.createVertex=function(){return new Xp(this)},sg.prototype.createEdge=function(){return new _p(this)},sg.className="ForceDirectedNetwork";function Xp(a){Js.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}Kt(Xp,Js),Pt.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}Kt(_p,Bu),Pt.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 ra(a){Ga.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 $e,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Kt(ra,Ga),ra.prototype.cloneProtected=function(a){Ga.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},ra.prototype.qb=function(a){a.classType===ra?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:It("Unknown enum value: "+a):Ga.prototype.qb.call(this,a)},ra.prototype.createNetwork=function(){return new Xg(this)},ra.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,ae=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;ae=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 Fe=Ce;me=ae,Ce=re,ae=le,re=Fe}var De=b.focus;le=z.focus;var ze=E.rev?z.bounds:b.bounds;Fe=$e.alloc(),ce!==me?ze.w()&&me.isVisible()?me.actualBounds.w()?(Sh(me,Ce,yo,Fe),Fe.x+=me.actualBounds.x-ze.x,Fe.y+=me.actualBounds.y-ze.y):(Sh(me,Ce,yo,Fe),Fe.w()||Fe.assign(De)):Fe.assign(De):ze.w()?(Sh(me,Ce,yo,Fe),Fe.w()||Fe.assign(De)):Fe.assign(De),me=E.rev?b.bounds:z.bounds,ce=$e.alloc(),ne!==ae?me.w()&&ae.isVisible()?ae.actualBounds.w()?(Sh(ae,re,yo,ce),ce.x+=ae.actualBounds.x-me.x,ce.y+=ae.actualBounds.y-me.y):(Sh(ae,re,yo,ce),ce.w()||ce.assign(le)):ce.assign(le):me.w()?(Sh(ae,re,yo,ce),ce.w()||ce.assign(le)):ce.assign(le),this.K===90||this.K===270?(ne=Math.round((Fe.x-De.x)/this.kc),ae=Fe.x,re=Math.round((ce.x-le.x)/this.kc),le=ce.x):(ne=Math.round((Fe.y-De.y)/this.kc),ae=Fe.y,re=Math.round((ce.y-le.y)/this.kc),le=ce.y),$e.free(Fe),$e.free(ce),E.portFromColOffset=ne,E.portFromPos=ae,E.portToColOffset=re,E.portToPos=le}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(Fe=b.layer,ce=z.layer,me=0,ze=E.link,ze!==null){var ut=ze.fromPort,qe=ze.toPort;if(ut!==null&&qe!==null){var wt=ze.fromNode;if(Ce=ze.toNode,wt!==null&&Ce!==null){var At=D0(this,!0),Bt=D0(this,!1),Ht=this.setsPortSpots?At:ze.computeSpot(!0,ut);De=this.setsPortSpots?Bt:ze.computeSpot(!1,qe);var dn=ze.isOrthogonal;Ht.$c()&&Ht.Hf(Bt)&&De.$c()&&De.Hf(At)?me=0:(At=ze.getLinkPoint(wt,ut,Ht,!0,dn,Ce,qe,$e.alloc()),Bt=ze.getLinkDirection(wt,ut,At,Ht,!0,dn,Ce,qe),$e.free(At),Ht.ys()||Bt!==qS(this,E,!0)?this.setsPortSpots&&wt!==null&&wt.ports.count===1&&E.rev&&(me+=1):me+=1,Ht=ze.getLinkPoint(Ce,qe,De,!1,dn,wt,ut,$e.alloc()),ze=ze.getLinkDirection(Ce,qe,Ht,De,!1,dn,wt,ut),$e.free(Ht),De.ys()||ze!==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)&&(De=a.createVertex(),De.node=null,De.Dj=1,De.layer=Fe,De.near=b,a.dh(De),b=a.Zj(b,De,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=ne,b.portToColOffset=0,b.portFromPos=ae,b.portToPos=0,b=De),ze=1,me&&ze--,Fe-ce>ze&&0<Fe){for(E.valid=!1,De=a.createVertex(),De.node=null,De.Dj=2,De.layer=Fe-1,a.dh(De),b=a.Zj(b,De,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=Ce?0:ne,b.portToColOffset=0,b.portFromPos=Ce?0:ae,b.portToPos=0,b=De,Fe--;Fe-ce>ze&&0<Fe;)De=a.createVertex(),De.node=null,De.Dj=3,De.layer=Fe-1,a.dh(De),b=a.Zj(b,De,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=De,Fe--;b=a.Zj(De,z,E.link),b.valid=!me,me&&(De.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},ra.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}ra.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},ra.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,ae=E[ne],le=ae.near;if(le!==null&&le.layer===ae.layer)if(ae=le.index,ae>ne)for(var ce=ne+1;ce<ae;ce++){var me=E[ce];me.near===le&&me.Dj===le.Dj||re++}else for(ce=ne-1;ce>ae;ce--)me=E[ce],me.near===le&&me.Dj===le.Dj||re++;var Ce;if(0<=x)for(ae=E[ne].sourceEdgesArrayAccess,le=0;le<ae.length;le++){var Fe=ae[le];if(Fe.valid&&Fe.fromVertex.layer!==y)for(me=Fe.fromVertex.index,ce=Fe.portToPos,Fe=Fe.portFromPos,Ce=le+1;Ce<ae.length;Ce++){var De=ae[Ce];if(De.valid&&De.fromVertex.layer!==y){var ze=De.fromVertex.index,ut=De.portToPos;De=De.portFromPos,ce<ut&&(me>ze||me===ze&&Fe>De)&&re++,ut<ce&&(ze>me||ze===me&&De>Fe)&&re++}}}if(0>=x){for(ae=E[ne].destinationEdgesArrayAccess,le=0;le<ae.length;le++)if(Fe=ae[le],Fe.valid&&Fe.toVertex.layer!==y)for(me=Fe.toVertex.index,ce=Fe.portToPos,Fe=Fe.portFromPos,Ce=le+1;Ce<ae.length;Ce++)De=ae[Ce],De.valid&&De.toVertex.layer!==y&&(ze=De.toVertex.index,ut=De.portToPos,De=De.portFromPos,Fe<De&&(me>ze||me===ze&&ce>ut)&&re++,De<Fe&&(ze>me||ze===me&&ut>ce)&&re++)}for(z[ne*b+ne]=re,ae=ne+1;ae<b;ae++){var qe=0,wt=0;if(0<=x){re=E[ne].sourceEdgesArrayAccess;var At=E[ae].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(Fe=re[le],Fe.valid&&Fe.fromVertex.layer!==y)for(me=Fe.fromVertex.index,Fe=Fe.portFromPos,Ce=0;Ce<At.length;Ce++)De=At[Ce],De.valid&&De.fromVertex.layer!==y&&(ze=De.fromVertex.index,De=De.portFromPos,(me<ze||me===ze&&Fe<De)&&wt++,(ze<me||ze===me&&De<Fe)&&qe++)}if(0>=x){for(re=E[ne].destinationEdgesArrayAccess,At=E[ae].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(Fe=re[le],Fe.valid&&Fe.toVertex.layer!==y)for(me=Fe.toVertex.index,ce=Fe.portToPos,Ce=0;Ce<At.length;Ce++)De=At[Ce],De.valid&&De.toVertex.layer!==y&&(ze=De.toVertex.index,ut=De.portToPos,(me<ze||me===ze&&ce<ut)&&wt++,(ze<me||ze===me&&ut<ce)&&qe++)}z[ne*b+ae]=qe,z[ae*b+ne]=wt}}return ef(a,y,E),z}ra.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 F0(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,ae=0;ae<ne;ae++){var le=z[ae].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,Fe=me.toVertex.column+me.portToColOffset;re+=(Math.abs(Ce-Fe)+1)*my(me)}}}ef(E,b,z),y+=re}return y}ra.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],ae=null;0>=x&&(ae=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++),ae!==null)for(Ce=0;Ce<ae.length;Ce++){re=ae[Ce];var Fe=re.fromVertex;re.valid&&!re.rev&&Fe.layer!==y&&(ce+=Fe.column,me++)}if(le!==null)for(ae=0;ae<le.length;ae++)re=le[ae],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],ae=null;0>=x&&(ae=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,ae!==null)for(Ce=0;Ce<ae.length;Ce++){re=ae[Ce];var Fe=re.fromVertex;re.valid&&!re.rev&&Fe.layer!==y&&(me[ce]=Fe.column+re.portFromColOffset,ce++)}if(le!==null)for(ae=0;ae<le.length;ae++)re=le[ae],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(De,ze){return De-ze}),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,ae=re.toVertex,le=y.layer-ae.layer;re=a.linkMinLength(re),le===re&&Jp(a,ae,x,E,b,z)}if(z)for(ne=y.sourceEdges;ne.next();)re=ne.value,ae=re.fromVertex,le=ae.layer-y.layer,re=a.linkMinLength(re),le===re&&Jp(a,ae,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)}}ra.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 ae=0,le=re.destinationEdges;le.next();)le.value.toVertex.valid&&ae++;le=0;for(var ce=re.sourceEdges;ce.next();)ce.value.fromVertex.valid&&le++;(b===null||z<ae-le)&&(b=re,z=ae-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++}ra.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,ae=ne.toVertex;ne=a.linkMinLength(ne),re.layer-ae.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,ae=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 Fe=0;Fe<b;Fe++){var De=Ce[Fe],ze=De.fromVertex;ce+=1,ze.component!==1&&(z+=1,ze=ze.layer-le.layer,De=a.linkMinLength(De),E=Math.min(E,ze-De))}for(Ce=le.destinationEdgesArrayAccess,b=Ce.length,Fe=0;Fe<b;Fe++)De=Ce[Fe].toVertex,--ce,De.component!==1?--z:me=!0;(ae===null||ce<re)&&!me&&(ae=le,re=ce)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else ae.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,ae=a.network.vertexes.iterator;ae.next();)if(ne=ae.value,ne.component===1){for(le=0,ce=!1,Ce=ne.sourceEdgesArrayAccess,me=Ce.length,Fe=0;Fe<me;Fe++)De=Ce[Fe].fromVertex,le+=1,De.component!==1?E+=1:ce=!0;for(Ce=ne.destinationEdgesArrayAccess,me=Ce.length,Fe=0;Fe<me;Fe++)De=Ce[Fe],ze=De.toVertex,--le,ze.component!==1&&(--E,ze=ne.layer-ze.layer,De=a.linkMinLength(De),b=Math.min(b,ze-De));(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}ra.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))}ra.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++)M0(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--)M0(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++)M0(this,E,0),Pc(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=pu(this)),E=this.Ia;0<=E;E--)M0(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 Fy: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 M0(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,ae;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,ae=z[x],z[x]=z[x+1],z[x+1]=ae,ae=ne[x],ne[x]=ne[x+1],ne[x+1]=ae,ae=E[x],E[x]=E[x+1],E[x+1]=ae);for(x=z=0;x<b;x++)ae=E[x],ae.index=x,z+=a.nodeMinColumnSpace(ae,!0),ae.column=z,z+=1,z+=a.nodeMinColumnSpace(ae,!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 ae=!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,Fe=0,De=E[z].column,ze=E[z+1].column,ut=a.nodeMinColumnSpace(E[z],!0),qe=a.nodeMinColumnSpace(E[z],!1),wt=a.nodeMinColumnSpace(E[z+1],!0),At=a.nodeMinColumnSpace(E[z+1],!1);ut=De-ut+wt,qe=ze-qe+At;var Bt=E[z].sourceEdges.iterator;for(Bt.reset();Bt.next();)if(wt=Bt.value,At=wt.fromVertex,wt.valid&&At.layer===y){for(wt=0;E[wt]!==At;)wt++;wt<z&&(Ce+=2*(z-wt),Fe+=2*(z+1-wt)),wt===z+1&&(Ce+=1),wt>z+1&&(Ce+=4*(wt-z),Fe+=4*(wt-(z+1)))}for(Bt=E[z].destinationEdges.iterator,Bt.reset();Bt.next();)if(wt=Bt.value,At=wt.toVertex,wt.valid&&At.layer===y){for(wt=0;E[wt]!==At;)wt++;wt===z+1&&(Fe+=1)}for(Bt=E[z+1].sourceEdges.iterator,Bt.reset();Bt.next();)if(wt=Bt.value,At=wt.fromVertex,wt.valid&&At.layer===y){for(wt=0;E[wt]!==At;)wt++;wt<z&&(Ce+=2*(z+1-wt),Fe+=2*(z-wt)),wt===z&&(Fe+=1),wt>z+1&&(Ce+=4*(wt-(z+1)),Fe+=4*(wt-z))}for(Bt=E[z+1].destinationEdges.iterator,Bt.reset();Bt.next();)if(wt=Bt.value,At=wt.toVertex,wt.valid&&At.layer===y){for(wt=0;E[wt]!==At;)wt++;wt===z&&(Ce+=1)}wt=At=0,Bt=ne[E[z].index];var Ht=re[E[z].index],dn=ne[E[z+1].index],Pi=re[E[z+1].index];Bt!==-1&&(At+=Math.abs(Bt-De),wt+=Math.abs(Bt-qe)),Ht!==-1&&(At+=Math.abs(Ht-De),wt+=Math.abs(Ht-qe)),dn!==-1&&(At+=Math.abs(dn-ze),wt+=Math.abs(dn-ut)),Pi!==-1&&(At+=Math.abs(Pi-ze),wt+=Math.abs(Pi-ut)),(Fe<Ce-.5||Fe===Ce&&me<ce-.5||Fe===Ce&&me===ce&&wt<At-.5)&&(le=ae=!0,E[z].column=qe,E[z+1].column=ut,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),ae}ra.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 ae=!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),Fe=0;0>E-1||ce-b[E-1].column-1>me+a.nodeMinColumnSpace(b[E-1],!1)?Fe=ce-1:Fe=ce,me=E+1>=z||b[E+1].column-ce-1>Ce+a.nodeMinColumnSpace(b[E+1],!0)?ce+1:ce;var De=Ce=0,ze=0;if(0>=x)for(var ut=b[E].sourceEdges.iterator;ut.next();){var qe=ut.value,wt=qe.fromVertex;if(qe.valid&&wt.layer!==y){var At=my(qe),Bt=qe.portFromColOffset;qe=qe.portToColOffset,wt=wt.column,Ce+=(Math.abs(ce+qe-(wt+Bt))+1)*At,De+=(Math.abs(Fe+qe-(wt+Bt))+1)*At,ze+=(Math.abs(me+qe-(wt+Bt))+1)*At}}if(0<=x)for(ut=b[E].destinationEdges.iterator;ut.next();)qe=ut.value,wt=qe.toVertex,qe.valid&&wt.layer!==y&&(At=my(qe),Bt=qe.portFromColOffset,qe=qe.portToColOffset,wt=wt.column,Ce+=(Math.abs(ce+Bt-(wt+qe))+1)*At,De+=(Math.abs(Fe+Bt-(wt+qe))+1)*At,ze+=(Math.abs(me+Bt-(wt+qe))+1)*At);qe=Bt=At=0,ut=ne[b[E].index],wt=re[b[E].index],ut!==-1&&(At+=Math.abs(ut-ce),Bt+=Math.abs(ut-Fe),qe+=Math.abs(ut-me)),wt!==-1&&(At+=Math.abs(wt-ce),Bt+=Math.abs(wt-Fe),qe+=Math.abs(wt-me)),De<Ce||De===Ce&&Bt<At?(le=ae=!0,b[E].column=Fe):(ze<Ce||ze===Ce&&qe<At)&&(le=ae=!0,b[E].column=me)}return ef(a,y,b),a.normalize(),ae}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,ae=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===ae+a.nodeMinColumnSpace(E[x-1],!1)?re+1:re):(me=E[x-1].column,ae=me+a.nodeMinColumnSpace(E[x-1],!1)+ae+1,me=E[x+1].column,le=me-a.nodeMinColumnSpace(E[x+1],!0)-le-1,ce=(ae+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,ae=me+a.nodeMinColumnSpace(E[x-1],!1)+ae+1,ce=Math.max(ne[x],ae)):(me=E[x-1].column,ae=me+a.nodeMinColumnSpace(E[x-1],!1)+ae+1,me=E[x+1].column,le=me-a.nodeMinColumnSpace(E[x+1],!0)-le-1,ae<ne[x]&&ne[x]<le?ce=ne[x]:ae>=ne[x]?ce=ae: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),ae=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&ae>=y&&(b[E.layer]=!0),re<=x&&ae>=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=F0(a);for(E=z+1;z<E;){E=z,ix(a,x,1);var ne=F0(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=F0(a),E=z+1;z<E;)E=z,ix(a,x,-1),ne=F0(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)),ae=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=ae;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(ae=ne[ne.length-1],ne.pop(),b[ae])for(b[ae]=!1,z=0;z<a.le;z++)y[ae*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=Pn(),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 Dn,Qx(y,x);var z=null,ne=null,re=null,ae=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=L0(a,y,!0,!1)),y.reverse(),me&&(a.verticalAlignment(y,x,!1),re=L0(a,y,!1,!1)),E=Xi(y),b=E.next();!b.done;b=E.next())b.value.reverse();Ce&&(a.verticalAlignment(y,x,!1),ae=L0(a,y,!1,!0)),y.reverse(),ce&&(a.verticalAlignment(y,x,!0),ne=L0(a,y,!0,!0)),Rn(y),a.u(z,ne,re,ae),a.network.vertexes.each(function(Fe){var De=Pn();le&&De.push(z.get(Fe)),ce&&De.push(ne.get(Fe)),me&&De.push(re.get(Fe)),Ce&&De.push(ae.get(Fe)),De.sort(function(ut,qe){return ut-qe});var ze=De.length;ze=(De[Math.floor((ze-1)/2)]+De[Math.ceil((ze-1)/2)])/2,Rn(De),Fe.zc=ze})}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],ae=0;z<re.length;ae++){var le=re[ae];e:{if(le.node===null){var ce=My(le);if(0<ce.length){ce=ce[0].node===null;break e}}ce=!1}var me=ce;if(ae===re.length-1||me){for(ce=ne.length-1,me&&(ce=My(le)[0].index);z<=ae;){if(le=re[z],!le.bo){me=[];for(var Ce=Xi(le.sourceEdgesArrayAccess),Fe=Ce.next();!Fe.done;Fe=Ce.next())Fe=Fe.value,Fe.valid&&me.push(Fe);le.bo=me}for(le=Xi(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}}}ra.prototype.verticalAlignment=function(a,y,x){$x(a),a=Xi(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Xi(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ne=x?My(z):tP(z),re=ne.length;if(0<re){ne.sort(function(me,Ce){return me.vi-Ce.vi});var ae=(re-1)/2;for(re=Math.floor(ae),ae=Math.ceil(ae);re<=ae;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 L0(a,y,x,E){for(var b=a.K===90||a.K===270,z=Xi(y),ne=z.next();!ne.done;ne=z.next()){var re=Xi(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=Xi(y),re=z.next();!re.done;re=z.next()){re=Xi(re.value);for(var ae=re.next();!ae.done;ae=re.next())if(ae=ae.value,ae.root===ae){for(var le=0,ce=ae;ce.align!==ae;){var me=ce.align,Ce=ne?ce.width:ce.height,Fe=ne?me.width:me.height;if(x){var De=O0(ce,me),ze=De.portFromPos,ut=De.portToPos;De.link!==null&&(ce.node&&ce.node!==De.link.fromNode&&(ze=ne?ce.focusX:ce.focusY),me.node&&me.node!==De.link.toNode&&(ut=ne?me.focusX:me.focusY))}else De=O0(me,ce),ze=De.portToPos,ut=De.portFromPos,De.link!==null&&(ce.node&&ce.node!==De.link.toNode&&(ze=ne?ce.focusX:ce.focusY),me.node&&me.node!==De.link.fromNode&&(ut=ne?me.focusX:me.focusY));Ce=E?ce.qg+(Ce-ze)-(Fe-ut):ce.qg+ze-ut,me.qg=Ce,le=Math.min(le,Ce),ce=ce.align}ce=ae;do ce.qg=ce.qg-le,ce=ce.align;while(ce!==ae)}}for(x=Xi(y),ne=x.next();!ne.done;ne=x.next())for(z=Xi(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 Si,y=Xi(y),ne=y.next();!ne.done;ne=y.next())for(x=Xi(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&&It("Could not determine previous vertex in layer"),y[x][a-1]}ra.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=Pn(),b=Pn(),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(ae){return function(le){le.value+=ae.delta}}(z)));Rn(E),Rn(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 ae=re.key;re=re.value,ae=a.K===90||a.K===270?ae.width:ae.height,re<z&&(z=re),re+ae>ne&&(ne=re+ae)}),x[b]=z,E[b]=ne,ne-z}ra.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?ms:Is:a.K===90?y?Is:ms:a.K===180?y?Es:js:y?js:Es}ra.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 ae=a.value,le=ae.layer,ce=ae.column|0;E?(ne=y.x+this.kc*ce,le=this.Kd[le]):(ne=this.Kd[le],le=y.y+this.kc*ce),ae.centerX=ne,ae.centerY=le,x&&isFinite(ae.zc)&&(E?ae.node?ae.x=y.x+ae.zc:ae.centerX=y.x+ae.zc:ae.node?ae.y=y.y+ae.zc:ae.centerY=y.y+ae.zc),z=Math.min(ae.x,z),b=Math.min(ae.y,b),E?(ne=z,re=Math.max(re,ae.bounds.right)):(ne=b,re=Math.max(re,ae.bounds.bottom))}for(this.xw=re-ne,z=y.x-z,y=y.y-b,this.Rf=new $e(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},ra.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 An(0,0,x,Math.abs(this.Ta[0]))):y.push(new An(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new An(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new An(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new An(0,0,Math.abs(this.Ta[0]),x)):y.push(new An(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new An(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new An(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},ra.prototype.commitLayers=function(){},ra.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 ae=b.findVisibleNode();ae!==null&&ae!==b&&(b=ae,ne=ae.port)}z!==null&&(ae=z.findVisibleNode(),ae!==null&&ae!==z&&(z=ae,re=ae.port));var le=y.computeSpot(!0,ne);ae=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,ae,!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===ga&&(E=!0),re!==null&&ae===ga&&(x=!0),(E||x)&&(ae=null,E&&(ae=y.getLinkPointFromPoint(b,ne,ne.ga(yo),y.i(3),!0),ae.w()||ae.set(b.actualBounds.center),y.L(0,ae.x,ae.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,re,re.ga(yo),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),ae&&(z=y.i(2),y.L(1,(2*ae.x+z.x)/3,(2*ae.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,Fe=!1,De=this.ie,ze=y.firstPickIndex+1;if(y.isOrthogonal){Fe=!0;var ut=y.pointsCount;4<ut&&y.points.removeRange(2,ut-3)}else if(y.curve===Zu)Ce=!0,ut=y.pointsCount,4<ut&&y.points.removeRange(2,ut-3),ut===4&&(ze=2);else{ut=y.pointsCount;var qe=le===ga,wt=ae===ga;2<ut&&qe&&wt?y.points.removeRange(1,ut-2):3<ut&&qe&&!wt?y.points.removeRange(1,ut-3):3<ut&&!qe&&wt?y.points.removeRange(2,ut-2):4<ut&&!qe&&!wt&&y.points.removeRange(2,ut-3)}if(x.rev){for(;me!==null&&ce!==me;){var At=ut=null;for(qe=me.sourceEdges.iterator;qe.next()&&(wt=qe.value,wt.link!==x.link||(ut=wt.fromVertex,At=wt.toVertex,ut.node!==null)););if(ut===null)break;if(ut!==ce){qe=y.i(ze-1).x,wt=y.i(ze-1).y;var Bt=ut.centerX,Ht=ut.centerY;if(Fe)this.K===180||this.K===0?ze===y.firstPickIndex+1?(y.m(ze++,qe,wt),y.m(ze++,qe,Ht)):(At!==null?At.centerY:wt)!==Ht&&(At=this.Ta[ut.layer-1]+this.Rf.x,y.m(ze++,At,wt),y.m(ze++,At,Ht)):ze===y.firstPickIndex+1?(y.m(ze++,qe,wt),y.m(ze++,Bt,wt)):(At!==null?At.centerX:qe)!==Bt&&(At=this.Ta[ut.layer-1]+this.Rf.y,y.m(ze++,qe,At),y.m(ze++,Bt,At));else if(ze===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?Bt<=me.bounds.x?(me=me.bounds.x,y.m(ze++,me-At,Ht),y.m(ze++,me,Ht),y.m(ze++,me+dn,Ht)):(y.m(ze++,Bt-At,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt+dn,Ht)):this.K===90?Ht>=me.bounds.bottom?(me=me.bounds.y+me.bounds.height,y.m(ze++,Bt,me+dn),y.m(ze++,Bt,me),y.m(ze++,Bt,me-At)):(y.m(ze++,Bt,Ht+dn),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht-At)):this.K===270?Ht<=me.bounds.y?(me=me.bounds.y,y.m(ze++,Bt,me-At),y.m(ze++,Bt,me),y.m(ze++,Bt,me+dn)):(y.m(ze++,Bt,Ht-At),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht+dn)):this.K===0&&(Bt>=me.bounds.right?(me=me.bounds.x+me.bounds.width,y.m(ze++,me+dn,Ht),y.m(ze++,me,Ht),y.m(ze++,me-At,Ht)):(y.m(ze++,Bt+dn,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt-At,Ht)));else{y.m(ze++,qe,wt);var Pi=0;this.K===180||this.K===0?((this.K===180?Bt>=me.bounds.right:Bt<=me.bounds.x)&&(Pi=(this.K===0?-At:dn)/2),y.m(ze++,qe+Pi,Ht)):((this.K===270?Ht>=me.bounds.bottom:Ht<=me.bounds.y)&&(Pi=(this.K===90?-At:dn)/2),y.m(ze++,Bt,wt+Pi)),y.m(ze++,Bt,Ht)}}else At=Math.max(10,this.he[ut.layer]),dn=Math.max(10,this.Ld[ut.layer]),Ce?this.K===180?(y.m(ze++,Bt-At-De,Ht),y.m(ze++,Math.min(Bt-At+De/2,Bt),Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Math.max(Bt+dn-De/2,Bt),Ht),y.m(ze++,Bt+dn+De,Ht)):this.K===90?(y.m(ze++,Bt,Ht+dn+De),y.m(ze++,Bt,Math.max(Ht+dn-De/2,Ht)),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Math.min(Ht-At+De/2,Ht)),y.m(ze++,Bt,Ht-At-De)):this.K===270?(y.m(ze++,Bt,Ht-At-De),y.m(ze++,Bt,Math.min(Ht-At+De/2,Ht)),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Math.max(Ht+dn-De/2,Ht)),y.m(ze++,Bt,Ht+dn+De)):(y.m(ze++,Bt+dn+De,Ht),y.m(ze++,Math.max(Bt+dn-De/2,Bt),Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Math.min(Bt-At+De/2,Bt),Ht),y.m(ze++,Bt-At-De,Ht)):y.m(ze++,Bt,Ht)}me=ut}(re===null||le!==ga||Fe)&&(qe=y.i(ze-1).x,wt=y.i(ze-1).y,Bt=y.i(ze).x,Ht=y.i(ze).y,Fe?(De=this.Ld[ce.layer],this.K===180||this.K===0?(Fe=wt,Fe>=ce.bounds.y&&Fe<=ce.bounds.bottom&&(this.K===180?Bt>=ce.bounds.x:Bt<=ce.bounds.right)&&(me=ce.centerX+(this.K===180?-De:De),Fe<ce.bounds.y+ce.bounds.height/2?Fe=ce.bounds.y-this.kc/2:Fe=ce.bounds.bottom+this.kc/2,y.m(ze++,me,wt),y.m(ze++,me,Fe)),y.m(ze++,Bt,Fe)):(Fe=qe,Fe>=ce.bounds.x&&Fe<=ce.bounds.right&&(this.K===270?Ht>=ce.bounds.y:Ht<=ce.bounds.bottom)&&(me=ce.centerY+(this.K===270?-De:De),Fe<ce.bounds.x+ce.bounds.width/2?Fe=ce.bounds.x-this.kc/2:Fe=ce.bounds.right+this.kc/2,y.m(ze++,qe,me),y.m(ze++,Fe,me)),y.m(ze++,Fe,Ht)),y.m(ze++,Bt,Ht)):Ce?(At=Math.max(10,this.he[ce.layer]),dn=Math.max(10,this.Ld[ce.layer]),this.K===180&&Bt>=ce.bounds.x?(me=ce.bounds.x+ce.bounds.width,y.L(ze-2,me,wt),y.L(ze-1,me+dn,wt)):this.K===90&&Ht<=ce.bounds.bottom?(me=ce.bounds.y,y.L(ze-2,qe,me),y.L(ze-1,qe,me-At)):this.K===270&&Ht>=ce.bounds.y?(me=ce.bounds.y+ce.bounds.height,y.L(ze-2,qe,me),y.L(ze-1,qe,me+dn)):this.K===0&&Bt<=ce.bounds.right&&(me=ce.bounds.x,y.L(ze-2,me,wt),y.L(ze-1,me-At,wt))):(At=Math.max(10,this.he[ce.layer]),dn=Math.max(10,this.Ld[ce.layer]),Fe=0,this.K===180||this.K===0?((this.K===180?Bt<=ce.bounds.x:Bt>=ce.bounds.right)&&(Fe=(this.K===0?dn:-At)/2),y.m(ze++,Bt+Fe,wt)):((this.K===270?Ht<=ce.bounds.y:Ht>=ce.bounds.bottom)&&(Fe=(this.K===90?dn:-At)/2),y.m(ze++,qe,Ht+Fe)),y.m(ze++,Bt,Ht)))}else{for(;ce!==null&&ce!==me;){for(At=ut=null,ce=ce.destinationEdges.iterator;ce.next()&&(qe=ce.value,qe.link!==x.link||(ut=qe.toVertex,At=qe.fromVertex,At.node!==null&&(At=null),ut.node!==null)););if(ut===null)break;ut!==me&&(qe=y.i(ze-1).x,wt=y.i(ze-1).y,Bt=ut.centerX,Ht=ut.centerY,Fe?this.K===180||this.K===0?(At!==null?At.centerY:wt)!==Ht&&(At=this.Ta[ut.layer]+this.Rf.x,ze===y.firstPickIndex+1&&(At=this.K===0?Math.max(At,qe):Math.min(At,qe)),y.m(ze++,At,wt),y.m(ze++,At,Ht)):(At!==null?At.centerX:qe)!==Bt&&(At=this.Ta[ut.layer]+this.Rf.y,ze===y.firstPickIndex+1&&(At=this.K===90?Math.max(At,wt):Math.min(At,wt)),y.m(ze++,qe,At),y.m(ze++,Bt,At)):(At=Math.max(10,this.he[ut.layer]),dn=Math.max(10,this.Ld[ut.layer]),Ce?this.K===180?(y.m(ze++,Bt+dn+De,Ht),y.m(ze++,Math.max(Bt+dn-De/2,Bt),Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Math.min(Bt-At+De/2,Bt),Ht),y.m(ze++,Bt-At-De,Ht)):this.K===90?(y.m(ze++,Bt,Ht-At-De),y.m(ze++,Bt,Math.min(Ht-At+De/2,Ht)),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Math.max(Ht+dn-De/2,Ht)),y.m(ze++,Bt,Ht+dn+De)):this.K===270?(y.m(ze++,Bt,Ht+dn+De),y.m(ze++,Bt,Math.max(Ht+dn-De/2,Ht)),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Math.min(Ht-At+De/2,Ht)),y.m(ze++,Bt,Ht-At-De)):(y.m(ze++,Bt-At-De,Ht),y.m(ze++,Math.min(Bt-At+De/2,Bt),Ht),y.m(ze++,Bt,Ht),y.m(ze++,Bt,Ht),y.m(ze++,Math.max(Bt+dn-De/2,Bt),Ht),y.m(ze++,Bt+dn+De,Ht)):this.K===180?(y.m(ze++,Bt+dn,Ht),y.m(ze++,Bt-At,Ht)):this.K===90?(y.m(ze++,Bt,Ht-At),y.m(ze++,Bt,Ht+dn)):this.K===270?(y.m(ze++,Bt,Ht+dn),y.m(ze++,Bt,Ht-At)):(y.m(ze++,Bt-At,Ht),y.m(ze++,Bt+dn,Ht)))),ce=ut}Fe&&(qe=y.i(ze-1).x,wt=y.i(ze-1).y,Bt=y.i(ze).x,Ht=y.i(ze).y,this.K===180||this.K===0?wt!==Ht&&(At=this.K===0?Math.min(Math.max((Bt+qe)/2,this.Ta[me.layer]+this.Rf.x),Bt):Math.max(Math.min((Bt+qe)/2,this.Ta[me.layer]+this.Rf.x),Bt),y.m(ze++,At,wt),y.m(ze++,At,Ht)):qe!==Bt&&(At=this.K===90?Math.min(Math.max((Ht+wt)/2,this.Ta[me.layer]+this.Rf.y),Ht):Math.max(Math.min((Ht+wt)/2,this.Ta[me.layer]+this.Rf.y),Ht),y.m(ze++,qe,At),y.m(ze++,Bt,At)))}E!==null&&Ce&&4<=y.pointsCount&&(ne!==null&&(ne=le===ga?y.getLinkPointFromPoint(b,ne,ne.ga(yo),y.i(3),!0):y.i(0),le===ga&&(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=ae===ga?y.getLinkPointFromPoint(z,re,re.ga(yo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),ae===ga&&(re=y.i(y.pointsCount-3),ae=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,ae.x,(re.y+ae.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+ae.x)/2,ae.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},ra.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new On,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 ae=E.i(0),le=E.i(E.pointsCount-1);if(re.first=ae.x*ae.x+ae.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){ae=E.i(b-1),le=E.i(b+2);var ce=0;ae.y<z.y?ce=le.y<z.y?3:z.x<ne.x?2:1:ae.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,ae=z;ae<b;ae++)le=x[ae],le.jc!==re&&(ce++,re=le.jc);this.zi(x,this.Ux,z,z+ne);var me=1;for(re=x[z].first,ae=z;ae<b;ae++)le=x[ae],le.first!==re&&(me++,re=le.first);for(ae=!0,le=me,ce<me?(ae=!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];(ae?Ce.first:Ce.jc)!==re&&(ce++,re=ae?Ce.first:Ce.jc);var Fe=Ce.link;z=Fe.i(Ce.index),ne=Fe.i(Ce.index+1);var De=this.linkSpacing*(ce-(le-1)/2);y++,Fe.uh(),Fe.L(Ce.index,z.x,z.y+De),Fe.L(Ce.index+1,ne.x,ne.y+De),Fe.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),ae=E.i(0),le=E.i(E.pointsCount-1),re.first=ae.x+ae.y*ae.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&&(ae=E.i(b-1),le=E.i(b+2),ce=0,ae.x<z.x?ce=le.x<z.x?3:z.y<ne.y?2:1:ae.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,ae=z;ae<b;ae++)le=x[ae],le.jc!==re&&(ce++,re=le.jc);for(this.zi(x,this.Ux,z,z+ne),me=1,re=x[z].first,ae=z;ae<b;ae++)le=x[ae],le.first!==re&&(me++,re=le.first);for(ae=!0,le=me,ce<me?(ae=!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],(ae?Ce.first:Ce.jc)!==re&&(ce++,re=ae?Ce.first:Ce.jc),Fe=Ce.link,z=Fe.i(Ce.index),ne=Fe.i(Ce.index+1),De=this.linkSpacing*(ce-(le-1)/2),y++,Fe.uh(),Fe.L(Ce.index,z.x+De,z.y),Fe.L(Ce.index+1,ne.x+De,ne.y),Fe.zf()}z=b}a=E}}}},Me=ra.prototype,Me.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},Me.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},Me.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},Me.B=function(a,y){return a-=y,-1<a&&1>a},Me.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&It("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}Pt.Object.defineProperties(ra.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()):It("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!==Fy||(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 qt(ra,"CycleDepthFirst",0),Py=new qt(ra,"CycleGreedy",1),Qp=new qt(ra,"CycleFromLayers",2),N0=new qt(ra,"LayerOptimalLinkLength",0),wy=new qt(ra,"LayerLongestPathSink",1),Cy=new qt(ra,"LayerLongestPathSource",2),k0=new qt(ra,"InitDepthFirstOut",0),Ey=new qt(ra,"InitDepthFirstIn",1),by=new qt(ra,"InitNaive",2),Ay=new qt(ra,"AggressiveNone",0),T0=new qt(ra,"AggressiveLess",1),Fy=new qt(ra,"AggressiveMore",2),eP=8;ra.className="LayeredDigraphLayout",ra.CycleDepthFirst=B0,ra.CycleGreedy=Py,ra.CycleFromLayers=Qp,ra.LayerOptimalLinkLength=N0,ra.LayerLongestPathSink=wy,ra.LayerLongestPathSource=Cy,ra.InitDepthFirstOut=k0,ra.InitDepthFirstIn=Ey,ra.InitNaive=by,ra.AggressiveNone=Ay,ra.AggressiveLess=T0,ra.AggressiveMore=Fy,ra.PackNone=0,ra.PackExpand=1,ra.PackStraighten=2,ra.PackMedian=4,ra.PackAll=15,ra.AlignNone=0,ra.AlignUpperLeft=1,ra.AlignUpperRight=2,ra.AlignLowerLeft=4,ra.AlignLowerRight=8,ra.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)}Kt(Xg,Ea),Xg.prototype.createVertex=function(){return new sc(this)},Xg.prototype.createEdge=function(){return new $p(this)},Xg.className="LayeredDigraphNetwork";function sc(a){Js.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}Kt(sc,Js);function ax(a,y){return a.index-y.index}function O0(a,y){if(!a.$n){for(var x=[],E=Xi(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Xi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;It("Unable to find destination edge to given vertex")}function My(a){if(!a.co){for(var y=[],x=Xi(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=Xi(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){Js.prototype.Cl.call(this,a),this.bo=this.co=null},sc.prototype.Kl=function(a){Js.prototype.Kl.call(this,a),this.bo=this.co=null},sc.prototype.zl=function(a){Js.prototype.zl.call(this,a),this.$n=this.ao=null},sc.prototype.Jl=function(a){Js.prototype.Jl.call(this,a),this.$n=this.ao=null},Pt.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}Kt($p,Bu),Pt.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){Ga.call(this),this.Ub=new Dn,this.Wn=j0,this.ud=Fd,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)}Kt(mo,Ga),mo.prototype.cloneProtected=function(a){Ga.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:It("Unknown enum value: "+a):Ga.prototype.qb.call(this,a)},mo.prototype.createNetwork=function(){return new dg(this)},mo.prototype.makeNetwork=function(a){function y(E){if(E instanceof Ci)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof li){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 Or?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?Fd:ug:this.ud=this.path===j0?Fd: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 Dn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Ci?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof 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,Ly(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,Ly(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 Dn,this.isValidLayout=!0};function nP(a){var y=new Dn;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 Fd:x.sourceEdges.count===0&&this.Ub.add(x);break;case ug:x.destinationEdges.count===0&&this.Ub.add(x);break;default:It("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 Fd: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:It("Unhandled path value "+a.ud.toString())}}return E}function Ly(a,y){if(y!==null){switch(a.ud){case Fd:if(0<y.destinationEdges.count){for(var x=new On,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 On,E=y.sourceVertexes;E.next();)b=E.value,lx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:It("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++)Ly(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 ae=z[re];ux(a,ae),x+=ae.descendantCount+1,E=Math.max(E,ae.maxChildrenCount),b=Math.max(b,ae.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:It("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,ae=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=ae)}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=An.allocAt(0,0,a.bounds.width+z,a.bounds.height+ne),a.bounds=b,An.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),ae=0,le=a.comments,ce=le.length,me=$e.alloc(),Ce=0;Ce<ce;Ce++){var Fe=le[Ce],De=Fe.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-De.width,a.bounds.y+ae),Fe.move(me),Fe=Fe.Sd();Fe.next();){var ze=Fe.value;ze.fromSpot=Es,ze.toSpot=js}else for(me.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+ae),Fe.move(me),Fe=Fe.Sd();Fe.next();)ze=Fe.value,ze.fromSpot=js,ze.toSpot=Es;else if(0<=a.commentMargin)for(me.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+ae),Fe.move(me),Fe=Fe.Sd();Fe.next();)ze=Fe.value,ze.fromSpot=js,ze.toSpot=Es;else for(me.h(a.bounds.x+a.commentMargin-De.width,a.bounds.y+ae),Fe.move(me),Fe=Fe.Sd();Fe.next();)ze=Fe.value,ze.fromSpot=Es,ze.toSpot=js;ae=0<=a.commentSpacing?ae+(De.height+a.commentSpacing):ae+(a.commentSpacing-De.height)}else{if(135<b&&!z||!x&&re)if(0<=a.commentMargin)for(me.h(a.bounds.x+ae,a.bounds.y-a.commentMargin-De.height),Fe.move(me),Fe=Fe.Sd();Fe.next();)ze=Fe.value,ze.fromSpot=ms,ze.toSpot=Is;else for(me.h(a.bounds.x+ae,a.bounds.y+2*a.focus.y-a.commentMargin),Fe.move(me),Fe=Fe.Sd();Fe.next();)ze=Fe.value,ze.fromSpot=Is,ze.toSpot=ms;else if(0<=a.commentMargin)for(me.h(a.bounds.x+ae,a.bounds.y+2*a.focus.y+a.commentMargin),Fe.move(me),Fe=Fe.Sd();Fe.next();)ze=Fe.value,ze.fromSpot=Is,ze.toSpot=ms;else for(me.h(a.bounds.x+ae,a.bounds.y+a.commentMargin-De.height),Fe.move(me),Fe=Fe.Sd();Fe.next();)ze=Fe.value,ze.fromSpot=ms,ze.toSpot=Is;ae=0<=a.commentSpacing?ae+(De.width+a.commentSpacing):ae+(a.commentSpacing-De.width)}}if($e.free(me),y=ae-a.commentSpacing-(E?y.height:y.width),this.ud===Fd)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=zc(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 ae=a.alignment;E=ae===Md;var le=ae===Ld,ce=nf(ae),me=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ce=a.nodeSpacing,Fe=this.computeNodeIndent(a),De=a.rowSpacing,ze=0;(E||le||a.hm||a.im&&a.maxGenerationCount===1)&&(ze=Math.max(0,a.rowIndent)),E=a.width;var ut=a.height,qe=0,wt=0,At=0,Bt=null,Ht=null,dn=0,Pi=0,Ii=0,Bi=0,si=0,Vn=0,Tr=0,Fr=0;if(ce&&!qp(ae)&&135<b&&ne.reverse(),qp(ae))if(1<re)for(var Uo=0;Uo<re;Uo++)Uo%2===0&&Uo!==re-1&&(Fr=Math.max(Fr,y?ne[Uo].Da.width:ne[Uo].Da.height));else re===1&&(Fr=y?ne[0].Da.width:ne[0].Da.height);if(ce){switch(ae){case bh:wt=135>b?fx(this,a,ne,Fr,qe,wt):gx(this,a,ne,Fr,qe,wt),Fr=wt.x,qe=wt.width,wt=wt.height;break;case Ah:for(Bt=0;Bt<re;Bt++)Ht=ne[Bt],me=Ht.Da,At=Vn===0?0:De,y?(Ht.S.h(z-me.width,Bi+At),qe=Math.max(qe,me.width),wt=Math.max(wt,Bi+At+me.height),Bi+=At+me.height):(Ht.S.h(Ii+At,z-me.height),qe=Math.max(qe,Ii+At+me.width),wt=Math.max(wt,me.height),Ii+=At+me.width),Vn++;break;case Jd:for(Bt=0;Bt<re;Bt++)Ht=ne[Bt],z=Ht.Da,me=Vn===0?0:De,y?(Ht.S.h(Ce/2+a.focus.x,Bi+me),qe=Math.max(qe,z.width),wt=Math.max(wt,Bi+me+z.height),Bi+=me+z.height):(Ht.S.h(Ii+me,Ce/2+a.focus.y),qe=Math.max(qe,Ii+me+z.width),wt=Math.max(wt,z.height),Ii+=me+z.width),Vn++}Bt=Pu(this,2),Ht=Pu(this,2),y?(Bt[0].h(0,0),Bt[1].h(0,wt),Ht[0].h(qe,0)):(Bt[0].h(0,0),Bt[1].h(qe,0),Ht[0].h(0,wt)),Ht[1].h(qe,wt)}else for(Uo=0;Uo<re;Uo++){var xa=ne[Uo],il=xa.Da;if(y){0<me&&0<Vn&&Ii+Ce+il.width>me&&(Ii<z&&Tf(a,ae,z-Ii,0,Tr,Uo-1),si++,Vn=0,Tr=Uo,At=wt,Ii=0,Bi=135<b?-wt-De:wt+De),R0(this,xa,0,Bi);var cl=0;if(Vn===0)Bt=xa.Yo,Ht=xa.kp,dn=il.width,Pi=il.height,(Bt===null||Ht===null||b!==zc(xa))&&(Bt=Pu(this,2),Ht=Pu(this,2),Bt[0].h(0,0),Bt[1].h(0,Pi),Ht[0].h(dn,0),Ht[1].h(dn,Pi));else{var Wl=Pn();Pi=px(this,a,xa,Bt,Ht,dn,Pi,Wl),cl=Pi.x,Bt=Wl[0],Ht=Wl[1],dn=Pi.width,Pi=Pi.height,Rn(Wl),Ii<il.width&&0>cl&&(lg(a,-cl,0,Tr,Uo-1),z0(Bt,-cl,0),z0(Ht,-cl,0),cl=0)}xa.S.h(cl,Bi),qe=Math.max(qe,dn),wt=Math.max(wt,At+(si===0?0:De)+il.height),Ii=dn}else 0<me&&0<Vn&&Bi+Ce+il.height>me&&(Bi<z&&Tf(a,ae,0,z-Bi,Tr,Uo-1),si++,Vn=0,Tr=Uo,At=qe,Bi=0,Ii=135<b?-qe-De:qe+De),R0(this,xa,Ii,0),cl=0,Vn===0?(Bt=xa.Yo,Ht=xa.kp,dn=il.width,Pi=il.height,(Bt===null||Ht===null||b!==zc(xa))&&(Bt=Pu(this,2),Ht=Pu(this,2),Bt[0].h(0,0),Bt[1].h(dn,0),Ht[0].h(0,Pi),Ht[1].h(dn,Pi))):(Wl=Pn(),Pi=px(this,a,xa,Bt,Ht,dn,Pi,Wl),cl=Pi.x,Bt=Wl[0],Ht=Wl[1],dn=Pi.width,Pi=Pi.height,Rn(Wl),Bi<il.height&&0>cl&&(lg(a,0,-cl,Tr,Uo-1),z0(Bt,0,-cl),z0(Ht,0,-cl),cl=0)),xa.S.h(Ii,cl),wt=Math.max(wt,Pi),qe=Math.max(qe,At+(si===0?0:De)+il.width),Bi=Pi;Vn++}switch(0<si&&(y?(wt+=Math.max(0,x),Ii<qe&&Tf(a,ae,qe-Ii,0,Tr,re-1),0<ze&&(le||lg(a,ze,0,0,re-1),qe+=ze)):(qe+=Math.max(0,x),Bi<wt&&Tf(a,ae,0,wt-Bi,Tr,re-1),0<ze&&(le||lg(a,0,ze,0,re-1),wt+=ze))),ze=le=0,ae){case Jg:y?le+=qe/2-a.focus.x-Fe/2:ze+=wt/2-a.focus.y-Fe/2;break;case cg:0<si?y?le+=qe/2-a.focus.x-Fe/2:ze+=wt/2-a.focus.y-Fe/2:y?(Fr=ne[0].S.x+ne[0].la.x,le+=Fr+(ne[re-1].S.x+ne[re-1].la.x+2*ne[re-1].focus.x-Fr)/2-a.focus.x-Fe/2):(Fr=ne[0].S.y+ne[0].la.y,ze+=Fr+(ne[re-1].S.y+ne[re-1].la.y+2*ne[re-1].focus.y-Fr)/2-a.focus.y-Fe/2);break;case Md:y?(le-=Fe,qe+=Fe):(ze-=Fe,wt+=Fe);break;case Ld:y?(le+=qe-a.width+Fe,qe+=Fe):(ze+=wt-a.height+Fe,wt+=Fe);break;case bh:y?1<re?le+=Fr+Ce/2-a.focus.x:le+=ne[0].focus.x-a.focus.x+ne[0].la.x:1<re?ze+=Fr+Ce/2-a.focus.y:ze+=ne[0].focus.y-a.focus.y+ne[0].la.y;break;case Ah:y?le+=qe+Ce/2-a.focus.x:ze+=wt+Ce/2-a.focus.y;break;case Jd:break;default:wt=this.customAlignment(a,le,ze,qe,wt),le=wt[0],ze=wt[1],qe=wt[2],wt=wt[3]}for(Fe=0;Fe<re;Fe++)Fr=ne[Fe],y?Fr.S.h(Fr.S.x+Fr.la.x-le,Fr.S.y+(135<b?(ce?-wt:-Fr.Da.height)+Fr.la.y-x:ut+x+Fr.la.y)):Fr.S.h(Fr.S.x+(135<b?(ce?-qe:-Fr.Da.width)+Fr.la.x-x:E+x+Fr.la.x),Fr.S.y+Fr.la.y-ze);if(re=ne=0,ce?y?(qe=By(a,qe,le),0>le&&(le=0),135<b&&(ze+=wt+x),wt+=ut+x,ae===Jd&&(ne+=Ce/2+a.focus.x),re+=ut+x):(135<b&&(le+=qe+x),qe+=E+x,wt=Ny(a,wt,ze),0>ze&&(ze=0),ae===Jd&&(re+=Ce/2+a.focus.y),ne+=E+x):y?(a.comments===null?E>qe&&(qe=ky(ae,E-qe,0),ne=qe.x,re=qe.y,qe=E,le=0):qe=By(a,qe,le),0>le&&(ne-=le,le=0),135<b&&(ze+=wt+x),wt=Math.max(Math.max(wt,ut),wt+ut+x),re+=ut+x):(135<b&&(le+=qe+x),qe=Math.max(Math.max(qe,E),qe+E+x),a.comments===null?ut>wt&&(wt=ky(ae,0,ut-wt),ne=wt.x,re=wt.y,wt=ut,ze=0):wt=Ny(a,wt,ze),0>ze&&(re-=ze,ze=0),ne+=E+x),0<si)b=Pu(this,4),si=Pu(this,4),y?(b[2].h(0,ut+x),b[3].h(b[2].x,wt),si[2].h(qe,b[2].y),si[3].h(si[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(qe,b[2].y),si[2].h(b[2].x,wt),si[3].h(b[3].x,si[2].y));else{for(b=Pu(this,Bt.length+2),si=Pu(this,Ht.length+2),ae=0;ae<Bt.length;ae++)ce=Bt[ae],b[ae+2].h(ce.x+ne,ce.y+re);for(ae=0;ae<Ht.length;ae++)ce=Ht[ae],si[ae+2].h(ce.x+ne,ce.y+re)}y?(b[0].h(le,0),b[1].h(b[0].x,ut),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])),si[0].h(le+E,0),si[1].h(si[0].x,ut),si[2].y<si[1].y&&(si[2].x<si[0].x?si[2].assign(si[1]):si[1].assign(si[2])),si[3].y<si[2].y&&(si[3].x<si[0].x?si[3].assign(si[2]):si[2].assign(si[3])),b[2].y-=x/2,si[2].y-=x/2):(b[0].h(0,ze),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])),si[0].h(0,ze+ut),si[1].h(E,si[0].y),si[2].x<si[1].x&&(si[2].y<si[0].y?si[2].assign(si[1]):si[1].assign(si[2])),si[3].x<si[2].x&&(si[3].y<si[0].y?si[3].assign(si[2]):si[2].assign(si[3])),b[2].x-=x/2,si[2].x-=x/2),Qc(this,Bt),Qc(this,Ht),a.Yo=b,a.kp=si,a.la.h(le,ze),a.Da.h(qe,wt)}break;default:It("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=zc(y),x=E===90||E===270;var z=0;b=y.children;for(var ne=b.length,re=0;re<ne;re++){var ae=b[re];z=Math.max(z,x?ae.Da.width:ae.Da.height)}var le=y.alignment,ce=le===Md,me=le===Ld;re=nf(le);var Ce=Math.max(0,y.breadthLimit);ae=a.computeLayerSpacing(y);var Fe=y.nodeSpacing,De=a.computeNodeIndent(y),ze=ce||me?0:De/2,ut=y.rowSpacing,qe=0;(ce||me||y.hm||y.im&&y.maxGenerationCount===1)&&(qe=Math.max(0,y.rowIndent)),ce=y.width;var wt=y.height,At=0,Bt=0,Ht=0,dn=0,Pi=0,Ii=0,Bi=0,si=0,Vn=0,Tr=0;if(re&&!qp(le)&&135<E&&b.reverse(),qp(le))if(1<ne)for(var Fr=0;Fr<ne;Fr++){var Uo=b[Fr],xa=Uo.Da;Fr%2===0&&Fr!==ne-1?Vn=Math.max(Vn,(x?xa.width:xa.height)+a.computeBusNodeSpacing(Uo)-Fe):Fr%2!==0&&(Tr=Math.max(Tr,(x?xa.width:xa.height)+a.computeBusNodeSpacing(Uo)-Fe))}else ne===1&&(Vn=x?b[0].Da.width:b[0].Da.height);if(re)switch(le){case bh:case Dd:Bt=135>E?fx(a,y,b,Vn,At,Bt):gx(a,y,b,Vn,At,Bt),Vn=Bt.x,At=Bt.width,Bt=Bt.height;break;case Ah:for(Ce=0;Ce<ne;Ce++)ze=b[Ce],Ht=ze.Da,Tr=Bi===0?0:ut,x?(ze.S.h(z-Ht.width,Pi+Tr),At=Math.max(At,Ht.width),Bt=Math.max(Bt,Pi+Tr+Ht.height),Pi+=Tr+Ht.height):(ze.S.h(dn+Tr,z-Ht.height),At=Math.max(At,dn+Tr+Ht.width),Bt=Math.max(Bt,Ht.height),dn+=Tr+Ht.width),Bi++;break;case Jd:for(z=0;z<ne;z++)Ce=b[z],ze=Ce.Da,Ht=Bi===0?0:ut,x?(Ce.S.h(Fe/2+y.focus.x,Pi+Ht),At=Math.max(At,ze.width),Bt=Math.max(Bt,Pi+Ht+ze.height),Pi+=Ht+ze.height):(Ce.S.h(dn+Ht,Fe/2+y.focus.y),At=Math.max(At,dn+Ht+ze.width),Bt=Math.max(Bt,ze.height),dn+=Ht+ze.width),Bi++}else for(Tr=0;Tr<ne;Tr++)Fr=b[Tr],Uo=Fr.Da,x?(0<Ce&&0<Bi&&dn+Fe+Uo.width>Ce&&(dn<z&&Tf(y,le,z-dn,0,si,Tr-1),Ii++,Bi=0,si=Tr,Ht=Bt,dn=0,Pi=135<E?-Bt-ut:Bt+ut),xa=Bi===0?ze:Fe,R0(a,Fr,0,Pi),Fr.S.h(dn+xa,Pi),At=Math.max(At,dn+xa+Uo.width),Bt=Math.max(Bt,Ht+(Ii===0?0:ut)+Uo.height),dn+=xa+Uo.width):(0<Ce&&0<Bi&&Pi+Fe+Uo.height>Ce&&(Pi<z&&Tf(y,le,0,z-Pi,si,Tr-1),Ii++,Bi=0,si=Tr,Ht=At,Pi=0,dn=135<E?-At-ut:At+ut),xa=Bi===0?ze:Fe,R0(a,Fr,dn,0),Fr.S.h(dn,Pi+xa),Bt=Math.max(Bt,Pi+xa+Uo.height),At=Math.max(At,Ht+(Ii===0?0:ut)+Uo.width),Pi+=xa+Uo.height),Bi++;switch(0<Ii&&(x?(Bt+=Math.max(0,ae),dn<At&&Tf(y,le,At-dn,0,si,ne-1),0<qe&&(me||lg(y,qe,0,0,ne-1),At+=qe)):(At+=Math.max(0,ae),Pi<Bt&&Tf(y,le,0,Bt-Pi,si,ne-1),0<qe&&(me||lg(y,0,qe,0,ne-1),Bt+=qe))),qe=me=0,le){case Jg:x?me+=At/2-y.focus.x-De/2:qe+=Bt/2-y.focus.y-De/2;break;case cg:0<Ii?x?me+=At/2-y.focus.x-De/2:qe+=Bt/2-y.focus.y-De/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-De/2):(a=b[0].S.y+b[0].la.y,qe+=a+(b[ne-1].S.y+b[ne-1].la.y+2*b[ne-1].focus.y-a)/2-y.focus.y-De/2);break;case Md:x?(me-=De,At+=De):(qe-=De,Bt+=De);break;case Ld:x?(me+=At-y.width+De,At+=De):(qe+=Bt-y.height+De,Bt+=De);break;case bh:case Dd:x?1<ne?me+=Vn+Fe/2-y.focus.x:me+=b[0].focus.x-y.focus.x+b[0].la.x:1<ne?qe+=Vn+Fe/2-y.focus.y:qe+=b[0].focus.y-y.focus.y+b[0].la.y;break;case Ah:x?me+=At+Fe/2-y.focus.x:qe+=Bt+Fe/2-y.focus.y;break;case Jd:break;default:a=a.customAlignment(y,me,qe,At,Bt),me=a[0],qe=a[1],At=a[2],Bt=a[3]}for(a=0;a<ne;a++)De=b[a],x?De.S.h(De.S.x+De.la.x-me,De.S.y+(135<E?(re?-Bt:-De.Da.height)+De.la.y-ae:wt+ae+De.la.y)):De.S.h(De.S.x+(135<E?(re?-At:-De.Da.width)+De.la.x-ae:ce+ae+De.la.x),De.S.y+De.la.y-qe);x?(At=By(y,At,me),0>me&&(me=0),135<E&&(qe+=Bt+ae),Bt=Math.max(Math.max(Bt,wt),Bt+wt+ae)):(135<E&&(me+=At+ae),At=Math.max(Math.max(At,ce),At+ce+ae),Bt=Ny(y,Bt,qe),0>qe&&(qe=0)),y.la.h(me,qe),y.Da.h(At,Bt)}}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 An(E,0,b,z);if(ne===1)return y=x[0],b=y.Da.width,z=y.Da.height,new An(E,0,b,z);for(var re=y.nodeSpacing,ae=y.rowSpacing,le=zc(y)===90,ce=0,me=0,Ce=0,Fe=0;Fe<ne;Fe++)if(!(Fe%2!==0||1<ne&&Fe===ne-1)){var De=x[Fe],ze=De.Da,ut=ce===0?0:ae;if(le){var qe=a.computeBusNodeSpacing(De)-re;De.S.h(E-(ze.width+qe),Ce+ut),b=Math.max(b,ze.width+qe),z=Math.max(z,Ce+ut+ze.height),Ce+=ut+ze.height}else qe=a.computeBusNodeSpacing(De)-re,De.S.h(me+ut,E-(ze.height+qe)),z=Math.max(z,ze.height+qe),b=Math.max(b,me+ut+ze.width),me+=ut+ze.width;ce++}for(ce=0,De=me,Fe=Ce,le?(me=E+re,Ce=0):(me=0,Ce=E+re),ze=0;ze<ne;ze++)if(ze%2!==0){ut=x[ze],qe=ut.Da;var wt=ce===0?0:ae;if(le){var At=a.computeBusNodeSpacing(ut)-re;ut.S.h(me+At,Ce+wt),b=Math.max(b,me+qe.width+At),z=Math.max(z,Ce+wt+qe.height),Ce+=wt+qe.height}else At=a.computeBusNodeSpacing(ut)-re,ut.S.h(me+wt,Ce+At),b=Math.max(b,me+wt+qe.width),z=Math.max(z,Ce+qe.height+At),me+=wt+qe.width;ce++}return 1<ne&&ne%2===1&&(x=x[ne-1],ne=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(Fe),Math.abs(Ce)):Math.max(Math.abs(De),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(Fe,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(De,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 An(E,0,b,z)}function gx(a,y,x,E,b,z){var ne=x.length;if(ne===0)return new An(E,0,b,z);if(ne===1)return x=x[0],b=x.Da.width,z=x.Da.height,new An(E,0,b,z);for(var re=y.nodeSpacing,ae=y.rowSpacing,le=zc(y)===270,ce=0,me=0,Ce=0,Fe=0;Fe<ne;Fe++)if(!(Fe%2!==0||1<ne&&Fe===ne-1)){var De=x[Fe],ze=De.Da,ut=ce===0?0:ae;if(le){var qe=a.computeBusNodeSpacing(De)-re;Ce-=ut+ze.height,De.S.h(E-(ze.width+qe),Ce),b=Math.max(b,ze.width+qe),z=Math.max(z,Math.abs(Ce))}else qe=a.computeBusNodeSpacing(De)-re,me-=ut+ze.width,De.S.h(me,E-(ze.height+qe)),z=Math.max(z,ze.height+qe),b=Math.max(b,Math.abs(me));ce++}for(ce=0,De=me,Fe=Ce,le?(me=E+re,Ce=0):(me=0,Ce=E+re),ze=0;ze<ne;ze++)if(ze%2!==0){ut=x[ze],qe=ut.Da;var wt=ce===0?0:ae;if(le){var At=a.computeBusNodeSpacing(ut)-re;Ce-=wt+qe.height,ut.S.h(me+At,Ce),b=Math.max(b,me+qe.width+At),z=Math.max(z,Math.abs(Ce))}else At=a.computeBusNodeSpacing(ut)-re,me-=wt+qe.width,ut.S.h(me,Ce+At),z=Math.max(z,Ce+qe.height+At),b=Math.max(b,Math.abs(me));ce++}for(1<ne&&ne%2===1&&(ae=x[ne-1],ce=ae.Da,a=a.computeBusLastRowSpacing(ae,le?Math.max(Math.abs(Fe),Math.abs(Ce)):Math.max(Math.abs(De),Math.abs(me))),le?(ae.S.h(E+re/2-ae.focus.x-ae.la.x,-z-ce.height-a),me=E+re/2-ae.focus.x-ae.la.x,b=Math.max(b,me+ce.width),0>me&&(b-=me),z=Math.max(z,Math.abs(Math.min(Fe,Ce))+a+ce.height),0>ae.S.x&&(E=I0(y,ae.S.x,!1,E,re))):(ae.S.h(-b-ce.width-a,E+re/2-ae.focus.y-ae.la.y),b=Math.max(b,Math.abs(Math.min(De,me))+a+ce.width),Ce=E+re/2-ae.focus.y-ae.la.y,z=Math.max(z,Ce+ce.height),0>Ce&&(z-=Ce),0>ae.S.y&&(E=I0(y,ae.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 An(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 Md:return a.width>y?a.width:y;case Ld: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 Md:return a.height>y?a.height:y;case Ld: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 Md:x=y=0;break;case Ld:break;default:It("Unhandled alignment value "+a.toString())}return new $e(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 Fd: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:It("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 ae=zc(y),le=ae===90||ae===270,ce=y.nodeSpacing;y=E;var me=b;E=z;var Ce=ne,Fe=x.Yo,De=x.kp;ne=x.Da;var ze=le?Math.max(Ce,ne.height):Math.max(E,ne.width);if((Fe===null||ae!==zc(x))&&(Fe=Pu(a,2),De=Pu(a,2),le?(Fe[0].h(0,0),Fe[1].h(0,ne.height),De[0].h(ne.width,0),De[1].h(De[0].x,Fe[1].y)):(Fe[0].h(0,0),Fe[1].h(ne.width,0),De[0].h(0,ne.height),De[1].h(Fe[1].x,De[0].y))),le){if(Ce=9999999,!(me===null||2>me.length||Fe===null||2>Fe.length))for(b=x=0;x<me.length&&b<Fe.length;){z=me[x];var ut=Fe[b];ae=ut.x,le=ut.y,ae+=E;var qe=z;x+1<me.length&&(qe=me[x+1]);var wt=ut;ut=wt.x,wt=wt.y,b+1<Fe.length&&(wt=Fe[b+1],ut=wt.x,wt=wt.y,ut+=E);var At=Ce;z.y===le?At=ae-z.x:z.y>le&&z.y<wt?At=ae+(z.y-le)/(wt-le)*(ut-ae)-z.x:le>z.y&&le<qe.y&&(At=ae-(z.x+(le-z.y)/(qe.y-z.y)*(qe.x-z.x))),At<Ce&&(Ce=At),qe.y<=z.y?x++:wt<=le?b++:(qe.y<=wt&&x++,wt<=qe.y&&b++)}if(Ce=E-Ce,Ce+=ce,x=Fe,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=ae=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],ce[E++].h(le.x+b,le.y);for(;ae<y.length;)le=y[ae++],ce[E++].h(le.x,le.y);for(ae=y[y.length-1].y;z<x.length&&x[z].y<=ae;)z++;for(;z<x.length&&x[z].y>ae;)le=x[z++],ce[E++].h(le.x+b,le.y);for(x=Pu(a,E),ae=0;ae<E;ae++)x[ae].assign(ce[ae]);Qc(a,ce),E=x}if(z=De,ae=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;)qe=me[x++],ce[b++].h(qe.x,qe.y);for(;le<z.length;)qe=z[le++],ce[b++].h(qe.x+ae,qe.y);for(z=z[z.length-1].y;x<me.length&&me[x].y<=z;)x++;for(;x<me.length&&me[x].y>z;)ae=me[x++],ce[b++].h(ae.x,ae.y);for(z=Pu(a,b),x=0;x<b;x++)z[x].assign(ce[x]);Qc(a,ce),b=z}return z=Math.max(0,Ce)+ne.width,ne=ze,Qc(a,y),Qc(a,Fe),Qc(a,me),Qc(a,De),re[0]=E,re[1]=b,new An(Ce,0,z,ne)}if(E=9999999,!(me===null||2>me.length||Fe===null||2>Fe.length))for(b=x=0;x<me.length&&b<Fe.length;)z=me[x],ut=Fe[b],ae=ut.x,le=ut.y,le+=Ce,qe=z,x+1<me.length&&(qe=me[x+1]),wt=ut,ut=wt.x,wt=wt.y,b+1<Fe.length&&(wt=Fe[b+1],ut=wt.x,wt=wt.y,wt+=Ce),At=E,z.x===ae?At=le-z.y:z.x>ae&&z.x<ut?At=le+(z.x-ae)/(ut-ae)*(wt-le)-z.y:ae>z.x&&ae<qe.x&&(At=le-(z.y+(ae-z.x)/(qe.x-z.x)*(qe.y-z.y))),At<E&&(E=At),qe.x<=z.x?x++:ut<=ae?b++:(qe.x<=ut&&x++,ut<=qe.x&&b++);if(Ce-=E,Ce+=ce,x=Fe,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=ae=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],ce[E++].h(le.x,le.y+b);for(;ae<y.length;)le=y[ae++],ce[E++].h(le.x,le.y);for(ae=y[y.length-1].x;z<x.length&&x[z].x<=ae;)z++;for(;z<x.length&&x[z].x>ae;)le=x[z++],ce[E++].h(le.x,le.y+b);for(x=Pu(a,E),ae=0;ae<E;ae++)x[ae].assign(ce[ae]);Qc(a,ce),E=x}if(z=De,ae=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;)qe=me[x++],ce[b++].h(qe.x,qe.y);for(;le<z.length;)qe=z[le++],ce[b++].h(qe.x,qe.y+ae);for(z=z[z.length-1].x;x<me.length&&me[x].x<=z;)x++;for(;x<me.length&&me[x].x>z;)ae=me[x++],ce[b++].h(ae.x,ae.y);for(z=Pu(a,b),x=0;x<b;x++)z[x].assign(ce[x]);Qc(a,ce),b=z}return z=ze,ne=Math.max(0,Ce)+ne.height,Qc(a,y),Qc(a,Fe),Qc(a,me),Qc(a,De),re[0]=E,re[1]=b,new An(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 $e;return a}function Qc(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:It("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:It("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 $e(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new $e(-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 An(0,z,x,re))):this.angle===90?(b.push(new An(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new An(z,0,re,x))):(b.push(new An(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===Fd,E=zc(a);switch(E){case 0:var b=js;break;case 90:b=Is;break;case 180:b=Es;break;default:b=ms}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 ae=E===90||E===270?Es:ms;if(ne===1||y===ne-1&&ne%2===1)switch(E){case 0:ae=Es;break;case 90:ae=ms;break;case 180:ae=js;break;default:ae=Is}else y%2===0&&(ae=E===90||E===270?js:Is);x?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=ae)):(a.setsPortSpot&&(re.fromSpot=ae),a.setsChildPortSpot&&(re.toSpot=b))}}break;case Ah:for(E=E===90||E===270?js:Is,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?Es:ms,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=zc(a),this.ud===Fd){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=js;break;case 90:E.fromSpot=Is;break;case 180:E.fromSpot=Es;break;default:E.fromSpot=ms}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=Es;break;case 90:E.toSpot=ms;break;case 180:E.toSpot=js;break;default:E.toSpot=Is}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=js;break;case 90:E.toSpot=Is;break;case 180:E.toSpot=Es;break;default:E.toSpot=ms}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=Es;break;case 90:E.fromSpot=ms;break;case 180:E.fromSpot=js;break;default:E.fromSpot=Is}else E.fromSpot=a.childPortSpot}};function zc(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=zc(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=zc(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)},Pt.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()):It("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 qt(mo,"PathDefault",-1),Fd=new qt(mo,"PathDestination",0),ug=new qt(mo,"PathSource",1),_g=new qt(mo,"SortingForwards",10),em=new qt(mo,"SortingReverse",11),tm=new qt(mo,"SortingAscending",12),nm=new qt(mo,"SortingDescending",13),Jg=new qt(mo,"AlignmentCenterSubtrees",20),cg=new qt(mo,"AlignmentCenterChildren",21),Md=new qt(mo,"AlignmentStart",22),Ld=new qt(mo,"AlignmentEnd",23),bh=new qt(mo,"AlignmentBus",24),Dd=new qt(mo,"AlignmentBusBranching",25),Ah=new qt(mo,"AlignmentTopLeftBus",26),Jd=new qt(mo,"AlignmentBottomRightBus",27),H0=new qt(mo,"CompactionNone",30),im=new qt(mo,"CompactionBlock",31),W0=new qt(mo,"StyleLayered",40),Oy=new qt(mo,"StyleLastParents",41),Iy=new qt(mo,"StyleAlternating",42),Ry=new qt(mo,"StyleRootOnly",43),Z0=new qt(mo,"ArrangementVertical",50),zy=new qt(mo,"ArrangementHorizontal",51),G0=new qt(mo,"ArrangementFixedRoots",52),jy=new qt(mo,"LayerIndividual",60),Hy=new qt(mo,"LayerSiblings",61),K0=new qt(mo,"LayerUniform",62);mo.className="TreeLayout",mo.PathDefault=j0,mo.PathDestination=Fd,mo.PathSource=ug,mo.SortingForwards=_g,mo.SortingReverse=em,mo.SortingAscending=tm,mo.SortingDescending=nm,mo.AlignmentCenterSubtrees=Jg,mo.AlignmentCenterChildren=cg,mo.AlignmentStart=Md,mo.AlignmentEnd=Ld,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)}Kt(dg,Ea),dg.prototype.createVertex=function(){return new wc(this)},dg.prototype.createEdge=function(){return new Qg(this)},dg.className="TreeNetwork";function wc(a){Js.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 $e(0,0),this.Da=new oi(0,0),this.la=new $e(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=_o,this.wr=!0,this.Dp=_o}Kt(wc,Js),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)},Pt.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 $e(0,0)}Kt(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 Fd:x=this.fromVertex,E=this.toVertex;break;case ug:x=this.toVertex,E=this.fromVertex;break;default:It("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=zc(x),ne=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var ae=a.curve===Zu,le=a.isOrthogonal,ce;if(a.uh(),le||ae){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 Fe=a.i(a.pointsCount-1);z===0?(x.alignment===Ld?(z=E.bottom+b.y,b.y===0&&me.y>Fe.y+x.rowIndent&&(z=Math.min(z,Math.max(me.y,z-y.computeNodeIndent(x))))):x.alignment===Md?(z=E.top+b.y,b.y===0&&me.y<Fe.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,ae?(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===Ld?(z=E.right+b.x,b.x===0&&me.x>Fe.x+x.rowIndent&&(z=Math.min(z,Math.max(me.x,z-y.computeNodeIndent(x))))):x.alignment===Md?(z=E.left+b.x,b.x===0&&me.x<Fe.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,ae?(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===Ld?(z=E.bottom+b.y,b.y===0&&me.y>Fe.y+x.rowIndent&&(z=Math.min(z,Math.max(me.y,z-y.computeNodeIndent(x))))):x.alignment===Md?(z=E.top+b.y,b.y===0&&me.y<Fe.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,ae?(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===Ld?(z=E.right+b.x,b.x===0&&me.x>Fe.x+x.rowIndent&&(z=Math.min(z,Math.max(me.x,z-y.computeNodeIndent(x))))):x.alignment===Md?(z=E.left+b.x,b.x===0&&me.x<Fe.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,ae?(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))):It("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=zc(x),y!==zc(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()))}}},Pt.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",Qn.prototype.initializeStandardTools=function(){this.gb("Action",new Ar,this.mouseDownTools),this.gb("Relinking",new Di,this.mouseDownTools),this.gb("LinkReshaping",new ki,this.mouseDownTools),this.gb("Rotating",new Wr,this.mouseDownTools),this.gb("Resizing",new Mr,this.mouseDownTools),this.gb("Linking",new $n,this.mouseMoveTools),this.gb("Dragging",new qi,this.mouseMoveTools),this.gb("DragSelecting",new Lr,this.mouseMoveTools),this.gb("Panning",new nr,this.mouseMoveTools),this.gb("ContextMenu",new wo,this.mouseUpTools),this.gb("TextEditing",new po,this.mouseUpTools),this.gb("ClickCreating",new _r,this.mouseUpTools),this.gb("ClickSelecting",new Wo,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),Yc.add("GraphLinksModel",ul),Yc.add("TreeModel",oc);var V0=gt.go,Wy={get licenseKey(){return cn.licenseKey},set licenseKey(a){cn.licenseKey=a},get version(){return cn.version},Group:Or,EnumValue:qt,List:On,Set:Dn,Map:Si,Point:$e,Size:oi,Rect:An,Margin:Yi,Spot:Mi,Geometry:hi,PathFigure:Rs,PathSegment:No,InputEvent:rn,DiagramEvent:ln,ChangedEvent:Bn,Model:Gi,GraphLinksModel:Mo,TreeModel:nu,Binding:Bs,Transaction:_i,UndoManager:yi,CommandHandler:lt,Tool:mi,DraggingTool:qi,DraggingInfo:Kd,DraggingOptions:se,LinkingBaseTool:un,LinkingTool:$n,RelinkingTool:Di,LinkReshapingTool:ki,ResizingTool:Mr,RotatingTool:Wr,ClickSelectingTool:Wo,ActionTool:Ar,ClickCreatingTool:_r,HTMLInfo:wr,ContextMenuTool:wo,DragSelectingTool:Lr,PanningTool:nr,TextEditingTool:po,ToolManager:Qn,Animation:ts,AnimationManager:Na,AnimationTrigger:lu,Layer:za,Diagram:cn,Palette:pe,Overview:Se,Brush:ta,GraphObject:Gt,Panel:ii,RowColumnDefinition:Ks,Shape:Gr,TextBlock:Ca,Picture:fu,Part:er,Adornment:Ko,Node:Ci,Link:li,Placeholder:$l,Layout:Ga,LayoutNetwork:Ea,LayoutVertex:Js,LayoutEdge:Bu,GridLayout:ml,PanelLayout:_s,CircularLayout:ns,CircularNetwork:Yg,CircularVertex:Up,CircularEdge:b0,ForceDirectedLayout:Ml,ForceDirectedNetwork:sg,ForceDirectedVertex:Xp,ForceDirectedEdge:_p,LayeredDigraphLayout:ra,LayeredDigraphNetwork:Xg,LayeredDigraphVertex:sc,LayeredDigraphEdge:$p,TreeLayout:mo,TreeNetwork:dg,TreeVertex:wc,TreeEdge:Qg};typeof V0=="object"&&V0.version&&ui("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,gt.go=Wy,typeof fn.exports=="object"&&(fn.exports=typeof he.g!="undefined"?he.g.go:self.go)}();var ge=typeof he.g!="undefined"?he.g.go:self.go;const Ie=typeof he.g!="undefined"?he.g.go:self.go,Ke=Ie.Group,ot=Ie.EnumValue,He=Ie.List,it=Ie.Set,be=Ie.Map,yt=Ie.Point,ct=Ie.Size,Xe=Ie.Rect,et=Ie.Margin,Je=Ie.Spot,Ue=Ie.Geometry,Ee=Ie.PathFigure,ee=Ie.PathSegment,te=Ie.InputEvent,ue=Ie.DiagramEvent,oe=Ie.ChangedEvent,de=Ie.Model,ve=Ie.GraphLinksModel,xe=Ie.TreeModel,Ae=Ie.Binding,Pe=Ie.Transaction,Ne=Ie.UndoManager,Le=Ie.CommandHandler,Re=Ie.Tool,je=Ie.DraggingTool,Ge=Ie.DraggingInfo,We=Ie.LinkingBaseTool,bt=Ie.LinkingTool,Qe=Ie.RelinkingTool,Dt=Ie.LinkReshapingTool,vt=Ie.ResizingTool,kt=Ie.RotatingTool,Rt=Ie.ClickSelectingTool,Jt=Ie.ActionTool,at=Ie.ClickCreatingTool,Ze=Ie.HTMLInfo,Mt=Ie.ContextMenuTool,Yt=Ie.DragSelectingTool,Vt=Ie.PanningTool,Ct=Ie.TextEditingTool,Nt=Ie.ToolManager,sn=Ie.Animation,Nn=Ie.AnimationManager,hn=Ie.AnimationTrigger,Xn=Ie.Layer,Ft=Ie.Diagram,Un=Ie.Palette,Kn=Ie.Overview,ti=Ie.Brush,Fn=Ie.GraphObject,Zt=Ie.Panel,Xt=Ie.RowColumnDefinition,mt=Ie.Shape,tt=Ie.TextBlock,Wt=Ie.TextBlockMetrics,Lt=Ie.Picture,pt=Ie.Part,nt=Ie.Adornment,Oe=Ie.Node,we=Ie.Link,ye=Ie.Placeholder,ke=Ie.Layout,Ve=Ie.LayoutNetwork,Be=Ie.LayoutVertex,dt=Ie.LayoutEdge,on=Ie.GridLayout,mn=Ie.PanelLayout,Et=Ie.CircularLayout,Ot=Ie.CircularNetwork,yn=Ie.CircularVertex,Tn=Ie.CircularEdge,qn=Ie.ForceDirectedLayout,vi=Ie.ForceDirectedNetwork,gi=Ie.ForceDirectedVertex,wi=Ie.ForceDirectedEdge,_n=Ie.LayeredDigraphLayout,yr=Ie.LayeredDigraphNetwork,ir=Ie.LayeredDigraphVertex,fr=Ie.LayeredDigraphEdge,xr=Ie.TreeLayout,jr=Ie.TreeNetwork,Ki=Ie.TreeVertex,Ir=Ie.TreeEdge,Vi=Ie.version},17115:function(fn,jt,he){"use strict";he.d(jt,{ZP:function(){return be}});var ge=he(29043),Ie=he(59301),Ke=he(87746),ot=0,He=(0,Ke.Z)();function it(){var yt;return He?(yt=ot,ot+=1):yt="TEST_OR_SSR",yt}function be(yt){var ct=Ie.useState(),Xe=(0,ge.Z)(ct,2),et=Xe[0],Je=Xe[1];return Ie.useEffect(function(){Je("rc_select_".concat(it()))},[]),yt||et}},77861:function(fn,jt,he){"use strict";he.d(jt,{Ac:function(){return ke},Xo:function(){return wi},Wx:function(){return yr},ZP:function(){return bn},lk:function(){return xe}});var ge=he(5891),Ie=he(26390),Ke=he(80962),ot=he(57259),He=he(29043),it=he(19149),be=he(80665),yt=he(35788),ct=he(51395),Xe=he(59301),et=he(92310),Je=he.n(et),Ue=he(28800),Ee=he(93144),ee=he(85108),te=he(20475),ue=function(gt){var xn=gt.className,Ln=gt.customizeIcon,pi=gt.customizeIconProps,Mn=gt.onMouseDown,It=gt.onClick,gn=gt.children,nn;return typeof Ln=="function"?nn=Ln(pi):nn=Ln,Xe.createElement("span",{className:xn,onMouseDown:function(Qt){Qt.preventDefault(),Mn&&Mn(Qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:It,"aria-hidden":!0},nn!==void 0?nn:Xe.createElement("span",{className:Je()(xn.split(/\s+/).map(function(ui){return"".concat(ui,"-icon")}))},gn))},oe=ue;function de(zt,gt,xn,Ln,pi){var Mn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,It=arguments.length>6?arguments[6]:void 0,gn=arguments.length>7?arguments[7]:void 0,nn=Xe.useMemo(function(){if((0,be.Z)(Ln)==="object")return Ln.clearIcon;if(pi)return pi},[Ln,pi]),ui=Xe.useMemo(function(){return!!(!Mn&&Ln&&(xn.length||It)&&!(gn==="combobox"&&It===""))},[Ln,Mn,xn.length,It,gn]);return{allowClear:ui,clearIcon:Xe.createElement(oe,{className:"".concat(zt,"-clear"),onMouseDown:gt,customizeIcon:nn},"\xD7")}}var ve=Xe.createContext(null);function xe(){return Xe.useContext(ve)}function Ae(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,gt=Xe.useState(!1),xn=(0,He.Z)(gt,2),Ln=xn[0],pi=xn[1],Mn=Xe.useRef(null),It=function(){window.clearTimeout(Mn.current)};Xe.useEffect(function(){return It},[]);var gn=function(ui,Qt){It(),Mn.current=window.setTimeout(function(){pi(ui),Qt&&Qt()},zt)};return[Ln,gn,It]}function Pe(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,gt=Xe.useRef(null),xn=Xe.useRef(null);Xe.useEffect(function(){return function(){window.clearTimeout(xn.current)}},[]);function Ln(pi){(pi||gt.current===null)&&(gt.current=pi),window.clearTimeout(xn.current),xn.current=window.setTimeout(function(){gt.current=null},zt)}return[function(){return gt.current},Ln]}function Ne(zt,gt,xn,Ln){var pi=Xe.useRef(null);pi.current={open:gt,triggerOpen:xn,customizedTrigger:Ln},Xe.useEffect(function(){function Mn(It){var gn;if(!((gn=pi.current)!==null&&gn!==void 0&&gn.customizedTrigger)){var nn=It.target;nn.shadowRoot&&It.composed&&(nn=It.composedPath()[0]||nn),pi.current.open&&zt().filter(function(ui){return ui}).every(function(ui){return!ui.contains(nn)&&ui!==nn})&&pi.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Mn),function(){return window.removeEventListener("mousedown",Mn)}},[])}var Le=he(36994),Re=he(11780),je=function(gt,xn){var Ln,pi,Mn=gt.prefixCls,It=gt.id,gn=gt.inputElement,nn=gt.disabled,ui=gt.tabIndex,Qt=gt.autoFocus,Cn=gt.autoComplete,$t=gt.editable,vn=gt.activeDescendantId,En=gt.value,Pn=gt.maxLength,Rn=gt.onKeyDown,Yn=gt.onMouseDown,Zn=gt.onChange,ri=gt.onPaste,Gn=gt.onCompositionStart,di=gt.onCompositionEnd,rr=gt.open,Dr=gt.attrs,ar=gn||Xe.createElement("input",null),qt=ar,Li=qt.ref,Ji=qt.props,Ti=Ji.onKeyDown,bi=Ji.onChange,sr=Ji.onMouseDown,Nr=Ji.onCompositionStart,cr=Ji.onCompositionEnd,Zi=Ji.style;return(0,ct.Kp)(!("maxLength"in ar.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ar=Xe.cloneElement(ar,(0,ot.Z)((0,ot.Z)((0,ot.Z)({type:"search"},Ji),{},{id:It,ref:(0,te.sQ)(xn,Li),disabled:nn,tabIndex:ui,autoComplete:Cn||"off",autoFocus:Qt,className:Je()("".concat(Mn,"-selection-search-input"),(Ln=ar)===null||Ln===void 0||(pi=Ln.props)===null||pi===void 0?void 0:pi.className),role:"combobox","aria-label":"Search","aria-expanded":rr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(It,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(It,"_list"),"aria-activedescendant":rr?vn:void 0},Dr),{},{value:$t?En:"",maxLength:Pn,readOnly:!$t,unselectable:$t?null:"on",style:(0,ot.Z)((0,ot.Z)({},Zi),{},{opacity:$t?null:0}),onKeyDown:function(On){Rn(On),Ti&&Ti(On)},onMouseDown:function(On){Yn(On),sr&&sr(On)},onChange:function(On){Zn(On),bi&&bi(On)},onCompositionStart:function(On){Gn(On),Nr&&Nr(On)},onCompositionEnd:function(On){di(On),cr&&cr(On)},onPaste:ri})),ar},Ge=Xe.forwardRef(je);Ge.displayName="Input";var We=Ge;function bt(zt){return Array.isArray(zt)?zt:zt!==void 0?[zt]:[]}var Qe=typeof window!="undefined"&&window.document&&window.document.documentElement,Dt=Qe;function vt(zt){return zt!=null}function kt(zt){return!zt&&zt!==0}function Rt(zt){return["string","number"].includes((0,be.Z)(zt))}function Jt(zt){var gt=void 0;return zt&&(Rt(zt.title)?gt=zt.title.toString():Rt(zt.label)&&(gt=zt.label.toString())),gt}function at(zt,gt){Dt?Xe.useLayoutEffect(zt,gt):Xe.useEffect(zt,gt)}function Ze(zt){var gt;return(gt=zt.key)!==null&>!==void 0?gt:zt.value}var Mt=function(gt){gt.preventDefault(),gt.stopPropagation()},Yt=function(gt){var xn=gt.id,Ln=gt.prefixCls,pi=gt.values,Mn=gt.open,It=gt.searchValue,gn=gt.autoClearSearchValue,nn=gt.inputRef,ui=gt.placeholder,Qt=gt.disabled,Cn=gt.mode,$t=gt.showSearch,vn=gt.autoFocus,En=gt.autoComplete,Pn=gt.activeDescendantId,Rn=gt.tabIndex,Yn=gt.removeIcon,Zn=gt.maxTagCount,ri=gt.maxTagTextLength,Gn=gt.maxTagPlaceholder,di=Gn===void 0?function(Fi){return"+ ".concat(Fi.length," ...")}:Gn,rr=gt.tagRender,Dr=gt.onToggleOpen,ar=gt.onRemove,qt=gt.onInputChange,Li=gt.onInputPaste,Ji=gt.onInputKeyDown,Ti=gt.onInputMouseDown,bi=gt.onInputCompositionStart,sr=gt.onInputCompositionEnd,Nr=Xe.useRef(null),cr=(0,Xe.useState)(0),Zi=(0,He.Z)(cr,2),Jr=Zi[0],On=Zi[1],Ho=(0,Xe.useState)(!1),Dn=(0,He.Z)(Ho,2),Rr=Dn[0],ca=Dn[1],fo="".concat(Ln,"-selection"),Ha=Mn||Cn==="multiple"&&gn===!1||Cn==="tags"?It:"",oa=Cn==="tags"||Cn==="multiple"&&gn===!1||$t&&(Mn||Rr);at(function(){On(Nr.current.scrollWidth)},[Ha]);function xt(Fi,eo,Qi,Vr,pr){return Xe.createElement("span",{className:Je()("".concat(fo,"-item"),(0,Ke.Z)({},"".concat(fo,"-item-disabled"),Qi)),title:Jt(Fi)},Xe.createElement("span",{className:"".concat(fo,"-item-content")},eo),Vr&&Xe.createElement(oe,{className:"".concat(fo,"-item-remove"),onMouseDown:Mt,onClick:pr,customizeIcon:Yn},"\xD7"))}function kn(Fi,eo,Qi,Vr,pr){var Er=function(bo){Mt(bo),Dr(!Mn)};return Xe.createElement("span",{onMouseDown:Er},rr({label:eo,value:Fi,disabled:Qi,closable:Vr,onClose:pr}))}function Hn(Fi){var eo=Fi.disabled,Qi=Fi.label,Vr=Fi.value,pr=!Qt&&!eo,Er=Qi;if(typeof ri=="number"&&(typeof Qi=="string"||typeof Qi=="number")){var oo=String(Er);oo.length>ri&&(Er="".concat(oo.slice(0,ri),"..."))}var bo=function(Io){Io&&Io.stopPropagation(),ar(Fi)};return typeof rr=="function"?kn(Vr,Er,eo,pr,bo):xt(Fi,Er,eo,pr,bo)}function Ei(Fi){var eo=typeof di=="function"?di(Fi):di;return xt({title:eo},eo,!1)}var Si=Xe.createElement("div",{className:"".concat(fo,"-search"),style:{width:Jr},onFocus:function(){ca(!0)},onBlur:function(){ca(!1)}},Xe.createElement(We,{ref:nn,open:Mn,prefixCls:Ln,id:xn,inputElement:null,disabled:Qt,autoFocus:vn,autoComplete:En,editable:oa,activeDescendantId:Pn,value:Ha,onKeyDown:Ji,onMouseDown:Ti,onChange:qt,onPaste:Li,onCompositionStart:bi,onCompositionEnd:sr,tabIndex:Rn,attrs:(0,Le.Z)(gt,!0)}),Xe.createElement("span",{ref:Nr,className:"".concat(fo,"-search-mirror"),"aria-hidden":!0},Ha,"\xA0")),$e=Xe.createElement(Re.Z,{prefixCls:"".concat(fo,"-overflow"),data:pi,renderItem:Hn,renderRest:Ei,suffix:Si,itemKey:Ze,maxCount:Zn});return Xe.createElement(Xe.Fragment,null,$e,!pi.length&&!Ha&&Xe.createElement("span",{className:"".concat(fo,"-placeholder")},ui))},Vt=Yt,Ct=function(gt){var xn=gt.inputElement,Ln=gt.prefixCls,pi=gt.id,Mn=gt.inputRef,It=gt.disabled,gn=gt.autoFocus,nn=gt.autoComplete,ui=gt.activeDescendantId,Qt=gt.mode,Cn=gt.open,$t=gt.values,vn=gt.placeholder,En=gt.tabIndex,Pn=gt.showSearch,Rn=gt.searchValue,Yn=gt.activeValue,Zn=gt.maxLength,ri=gt.onInputKeyDown,Gn=gt.onInputMouseDown,di=gt.onInputChange,rr=gt.onInputPaste,Dr=gt.onInputCompositionStart,ar=gt.onInputCompositionEnd,qt=gt.title,Li=Xe.useState(!1),Ji=(0,He.Z)(Li,2),Ti=Ji[0],bi=Ji[1],sr=Qt==="combobox",Nr=sr||Pn,cr=$t[0],Zi=Rn||"";sr&&Yn&&!Ti&&(Zi=Yn),Xe.useEffect(function(){sr&&bi(!1)},[sr,Yn]);var Jr=Qt!=="combobox"&&!Cn&&!Pn?!1:!!Zi,On=qt===void 0?Jt(cr):qt,Ho=function(){if(cr)return null;var Rr=Jr?{visibility:"hidden"}:void 0;return Xe.createElement("span",{className:"".concat(Ln,"-selection-placeholder"),style:Rr},vn)};return Xe.createElement(Xe.Fragment,null,Xe.createElement("span",{className:"".concat(Ln,"-selection-search")},Xe.createElement(We,{ref:Mn,prefixCls:Ln,id:pi,open:Cn,inputElement:xn,disabled:It,autoFocus:gn,autoComplete:nn,editable:Nr,activeDescendantId:ui,value:Zi,onKeyDown:ri,onMouseDown:Gn,onChange:function(Rr){bi(!0),di(Rr)},onPaste:rr,onCompositionStart:Dr,onCompositionEnd:ar,tabIndex:En,attrs:(0,Le.Z)(gt,!0),maxLength:sr?Zn:void 0})),!sr&&cr?Xe.createElement("span",{className:"".concat(Ln,"-selection-item"),title:On,style:Jr?{visibility:"hidden"}:void 0},cr.label):null,Ho())},Nt=Ct;function sn(zt){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(zt)}var Nn=function(gt,xn){var Ln=(0,Xe.useRef)(null),pi=(0,Xe.useRef)(!1),Mn=gt.prefixCls,It=gt.open,gn=gt.mode,nn=gt.showSearch,ui=gt.tokenWithEnter,Qt=gt.autoClearSearchValue,Cn=gt.onSearch,$t=gt.onSearchSubmit,vn=gt.onToggleOpen,En=gt.onInputKeyDown,Pn=gt.domRef;Xe.useImperativeHandle(xn,function(){return{focus:function(){Ln.current.focus()},blur:function(){Ln.current.blur()}}});var Rn=Pe(0),Yn=(0,He.Z)(Rn,2),Zn=Yn[0],ri=Yn[1],Gn=function(Zi){var Jr=Zi.which;(Jr===ee.Z.UP||Jr===ee.Z.DOWN)&&Zi.preventDefault(),En&&En(Zi),Jr===ee.Z.ENTER&&gn==="tags"&&!pi.current&&!It&&($t==null||$t(Zi.target.value)),sn(Jr)&&vn(!0)},di=function(){ri(!0)},rr=(0,Xe.useRef)(null),Dr=function(Zi){Cn(Zi,!0,pi.current)!==!1&&vn(!0)},ar=function(){pi.current=!0},qt=function(Zi){pi.current=!1,gn!=="combobox"&&Dr(Zi.target.value)},Li=function(Zi){var Jr=Zi.target.value;if(ui&&rr.current&&/[\r\n]/.test(rr.current)){var On=rr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Jr=Jr.replace(On,rr.current)}rr.current=null,Dr(Jr)},Ji=function(Zi){var Jr=Zi.clipboardData,On=Jr.getData("text");rr.current=On},Ti=function(Zi){var Jr=Zi.target;if(Jr!==Ln.current){var On=document.body.style.msTouchAction!==void 0;On?setTimeout(function(){Ln.current.focus()}):Ln.current.focus()}},bi=function(Zi){var Jr=Zn();Zi.target!==Ln.current&&!Jr&&gn!=="combobox"&&Zi.preventDefault(),(gn!=="combobox"&&(!nn||!Jr)||!It)&&(It&&Qt!==!1&&Cn("",!0,!1),vn())},sr={inputRef:Ln,onInputKeyDown:Gn,onInputMouseDown:di,onInputChange:Li,onInputPaste:Ji,onInputCompositionStart:ar,onInputCompositionEnd:qt},Nr=gn==="multiple"||gn==="tags"?Xe.createElement(Vt,(0,ge.Z)({},gt,sr)):Xe.createElement(Nt,(0,ge.Z)({},gt,sr));return Xe.createElement("div",{ref:Pn,className:"".concat(Mn,"-selector"),onClick:Ti,onMouseDown:bi},Nr)},hn=Xe.forwardRef(Nn);hn.displayName="Selector";var Xn=hn,Ft=he(35593),Un=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Kn=function(gt){var xn=gt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:xn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:xn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:xn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:xn,adjustY:1},htmlRegion:"scroll"}}},ti=function(gt,xn){var Ln=gt.prefixCls,pi=gt.disabled,Mn=gt.visible,It=gt.children,gn=gt.popupElement,nn=gt.animation,ui=gt.transitionName,Qt=gt.dropdownStyle,Cn=gt.dropdownClassName,$t=gt.direction,vn=$t===void 0?"ltr":$t,En=gt.placement,Pn=gt.builtinPlacements,Rn=gt.dropdownMatchSelectWidth,Yn=gt.dropdownRender,Zn=gt.dropdownAlign,ri=gt.getPopupContainer,Gn=gt.empty,di=gt.getTriggerDOMNode,rr=gt.onPopupVisibleChange,Dr=gt.onPopupMouseEnter,ar=(0,it.Z)(gt,Un),qt="".concat(Ln,"-dropdown"),Li=gn;Yn&&(Li=Yn(gn));var Ji=Xe.useMemo(function(){return Pn||Kn(Rn)},[Pn,Rn]),Ti=nn?"".concat(qt,"-").concat(nn):ui,bi=typeof Rn=="number",sr=Xe.useMemo(function(){return bi?null:Rn===!1?"minWidth":"width"},[Rn,bi]),Nr=Qt;bi&&(Nr=(0,ot.Z)((0,ot.Z)({},Nr),{},{width:Rn}));var cr=Xe.useRef(null);return Xe.useImperativeHandle(xn,function(){return{getPopupElement:function(){return cr.current}}}),Xe.createElement(Ft.Z,(0,ge.Z)({},ar,{showAction:rr?["click"]:[],hideAction:rr?["click"]:[],popupPlacement:En||(vn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ji,prefixCls:qt,popupTransitionName:Ti,popup:Xe.createElement("div",{ref:cr,onMouseEnter:Dr},Li),stretch:sr,popupAlign:Zn,popupVisible:Mn,getPopupContainer:ri,popupClassName:Je()(Cn,(0,Ke.Z)({},"".concat(qt,"-empty"),Gn)),popupStyle:Nr,getTriggerDOMNode:di,onPopupVisibleChange:rr}),It)},Fn=Xe.forwardRef(ti);Fn.displayName="SelectTrigger";var Zt=Fn,Xt=he(17953);function mt(zt,gt){var xn=zt.key,Ln;return"value"in zt&&(Ln=zt.value),xn!=null?xn:Ln!==void 0?Ln:"rc-index-key-".concat(gt)}function tt(zt,gt){var xn=zt||{},Ln=xn.label,pi=xn.value,Mn=xn.options,It=xn.groupLabel,gn=Ln||(gt?"children":"label");return{label:gn,value:pi||"value",options:Mn||"options",groupLabel:It||gn}}function Wt(zt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xn=gt.fieldNames,Ln=gt.childrenAsData,pi=[],Mn=tt(xn,!1),It=Mn.label,gn=Mn.value,nn=Mn.options,ui=Mn.groupLabel;function Qt(Cn,$t){Cn.forEach(function(vn){if($t||!(nn in vn)){var En=vn[gn];pi.push({key:mt(vn,pi.length),groupOption:$t,data:vn,label:vn[It],value:En})}else{var Pn=vn[ui];Pn===void 0&&Ln&&(Pn=vn.label),pi.push({key:mt(vn,pi.length),group:!0,data:vn,label:Pn}),Qt(vn[nn],!0)}})}return Qt(zt,!1),pi}function Lt(zt){var gt=(0,ot.Z)({},zt);return"props"in gt||Object.defineProperty(gt,"props",{get:function(){return(0,ct.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),gt}}),gt}function pt(zt,gt){if(!gt||!gt.length)return null;var xn=!1;function Ln(Mn,It){var gn=(0,Xt.Z)(It),nn=gn[0],ui=gn.slice(1);if(!nn)return[Mn];var Qt=Mn.split(nn);return xn=xn||Qt.length>1,Qt.reduce(function(Cn,$t){return[].concat((0,Ie.Z)(Cn),(0,Ie.Z)(Ln($t,ui)))},[]).filter(function(Cn){return Cn})}var pi=Ln(zt,gt);return xn?pi: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(zt){return zt==="tags"||zt==="multiple"}var ye=Xe.forwardRef(function(zt,gt){var xn,Ln,pi=zt.id,Mn=zt.prefixCls,It=zt.className,gn=zt.showSearch,nn=zt.tagRender,ui=zt.direction,Qt=zt.omitDomProps,Cn=zt.displayValues,$t=zt.onDisplayValuesChange,vn=zt.emptyOptions,En=zt.notFoundContent,Pn=En===void 0?"Not Found":En,Rn=zt.onClear,Yn=zt.mode,Zn=zt.disabled,ri=zt.loading,Gn=zt.getInputElement,di=zt.getRawInputElement,rr=zt.open,Dr=zt.defaultOpen,ar=zt.onDropdownVisibleChange,qt=zt.activeValue,Li=zt.onActiveValueChange,Ji=zt.activeDescendantId,Ti=zt.searchValue,bi=zt.autoClearSearchValue,sr=zt.onSearch,Nr=zt.onSearchSplit,cr=zt.tokenSeparators,Zi=zt.allowClear,Jr=zt.suffixIcon,On=zt.clearIcon,Ho=zt.OptionList,Dn=zt.animation,Rr=zt.transitionName,ca=zt.dropdownStyle,fo=zt.dropdownClassName,Ha=zt.dropdownMatchSelectWidth,oa=zt.dropdownRender,xt=zt.dropdownAlign,kn=zt.placement,Hn=zt.builtinPlacements,Ei=zt.getPopupContainer,Si=zt.showAction,$e=Si===void 0?[]:Si,Fi=zt.onFocus,eo=zt.onBlur,Qi=zt.onKeyUp,Vr=zt.onKeyDown,pr=zt.onMouseDown,Er=(0,it.Z)(zt,nt),oo=we(Yn),bo=(gn!==void 0?gn:oo)||Yn==="combobox",Ur=(0,ot.Z)({},Er);Oe.forEach(function(_o){delete Ur[_o]}),Qt==null||Qt.forEach(function(_o){delete Ur[_o]});var Io=Xe.useState(!1),lr=(0,He.Z)(Io,2),$i=lr[0],Br=lr[1];Xe.useEffect(function(){Br((0,Ee.Z)())},[]);var oi=Xe.useRef(null),Ro=Xe.useRef(null),Xo=Xe.useRef(null),ya=Xe.useRef(null),na=Xe.useRef(null),Fa=Ae(),Sa=(0,He.Z)(Fa,3),Pa=Sa[0],is=Sa[1],Co=Sa[2];Xe.useImperativeHandle(gt,function(){var _o,Ma;return{focus:(_o=ya.current)===null||_o===void 0?void 0:_o.focus,blur:(Ma=ya.current)===null||Ma===void 0?void 0:Ma.blur,scrollTo:function(Ts){var Os;return(Os=na.current)===null||Os===void 0?void 0:Os.scrollTo(Ts)}}});var ps=Xe.useMemo(function(){var _o;if(Yn!=="combobox")return Ti;var Ma=(_o=Cn[0])===null||_o===void 0?void 0:_o.value;return typeof Ma=="string"||typeof Ma=="number"?String(Ma):""},[Ti,Yn,Cn]),An=Yn==="combobox"&&typeof Gn=="function"&&Gn()||null,Yo=typeof di=="function"&&di(),Qs=(0,te.x1)(Ro,Yo==null||(xn=Yo.props)===null||xn===void 0?void 0:xn.ref),yl=Xe.useState(!1),Kr=(0,He.Z)(yl,2),Ao=Kr[0],Ka=Kr[1];(0,Ue.Z)(function(){Ka(!0)},[]);var da=(0,yt.Z)(!1,{defaultValue:Dr,value:rr}),vo=(0,He.Z)(da,2),Qo=vo[0],Qa=vo[1],to=Ao?Qo:!1,Do=!Pn&&vn;(Zn||Do&&to&&Yn==="combobox")&&(to=!1);var Bo=Do?!1:to,Yi=Xe.useCallback(function(_o){var Ma=_o!==void 0?_o:!to;Zn||(Qa(Ma),to!==Ma&&(ar==null||ar(Ma)))},[Zn,to,Qa,ar]),ba=Xe.useMemo(function(){return(cr||[]).some(function(_o){return[`
|
|
|
`,`\r
|
|
|
`].includes(_o)})},[cr]),or=function(Ma,bl,Ts){var Os=!0,ms=Ma;Li==null||Li(null);var Es=Ts?null:pt(Ma,cr);return Yn!=="combobox"&&Es&&(ms="",Nr==null||Nr(Es),Yi(!1),Os=!1),sr&&ps!==ms&&sr(ms,{source:bl?"typing":"effect"}),Os},Xr=function(Ma){!Ma||!Ma.trim()||sr(Ma,{source:"submit"})};Xe.useEffect(function(){!to&&!oo&&Yn!=="combobox"&&or("",!1,!1)},[to]),Xe.useEffect(function(){Qo&&Zn&&Qa(!1),Zn&&is(!1)},[Zn]);var Pr=Pe(),fa=(0,He.Z)(Pr,2),Mi=fa[0],ga=fa[1],Ua=function(Ma){var bl=Mi(),Ts=Ma.which;if(Ts===ee.Z.ENTER&&(Yn!=="combobox"&&Ma.preventDefault(),to||Yi(!0)),ga(!!ps),Ts===ee.Z.BACKSPACE&&!bl&&oo&&!ps&&Cn.length){for(var Os=(0,Ie.Z)(Cn),ms=null,Es=Os.length-1;Es>=0;Es-=1){var js=Os[Es];if(!js.disabled){Os.splice(Es,1),ms=js;break}}ms&&$t(Os,{type:"remove",values:[ms]})}for(var Is=arguments.length,cc=new Array(Is>1?Is-1:0),au=1;au<Is;au++)cc[au-1]=arguments[au];if(to&&na.current){var Ls;(Ls=na.current).onKeyDown.apply(Ls,[Ma].concat(cc))}Vr==null||Vr.apply(void 0,[Ma].concat(cc))},rs=function(Ma){for(var bl=arguments.length,Ts=new Array(bl>1?bl-1:0),Os=1;Os<bl;Os++)Ts[Os-1]=arguments[Os];if(to&&na.current){var ms;(ms=na.current).onKeyUp.apply(ms,[Ma].concat(Ts))}Qi==null||Qi.apply(void 0,[Ma].concat(Ts))},Sl=function(Ma){var bl=Cn.filter(function(Ts){return Ts!==Ma});$t(bl,{type:"remove",values:[Ma]})},Kl=Xe.useRef(!1),yo=function(){is(!0),Zn||(Fi&&!Kl.current&&Fi.apply(void 0,arguments),$e.includes("focus")&&Yi(!0)),Kl.current=!0},Vu=function(){is(!1,function(){Kl.current=!1,Yi(!1)}),!Zn&&(ps&&(Yn==="tags"?sr(ps,{source:"submit"}):Yn==="multiple"&&sr("",{source:"blur"})),eo&&eo.apply(void 0,arguments))},Ll=[];Xe.useEffect(function(){return function(){Ll.forEach(function(_o){return clearTimeout(_o)}),Ll.splice(0,Ll.length)}},[]);var Dl=function(Ma){var bl,Ts=Ma.target,Os=(bl=Xo.current)===null||bl===void 0?void 0:bl.getPopupElement();if(Os&&Os.contains(Ts)){var ms=setTimeout(function(){var cc=Ll.indexOf(ms);if(cc!==-1&&Ll.splice(cc,1),Co(),!$i&&!Os.contains(document.activeElement)){var au;(au=ya.current)===null||au===void 0||au.focus()}});Ll.push(ms)}for(var Es=arguments.length,js=new Array(Es>1?Es-1:0),Is=1;Is<Es;Is++)js[Is-1]=arguments[Is];pr==null||pr.apply(void 0,[Ma].concat(js))},xl=Xe.useState({}),co=(0,He.Z)(xl,2),Ba=co[1];function Ms(){Ba({})}var zs;Yo&&(zs=function(Ma){Yi(Ma)}),Ne(function(){var _o;return[oi.current,(_o=Xo.current)===null||_o===void 0?void 0:_o.getPopupElement()]},Bo,Yi,!!Yo);var Yu=Xe.useMemo(function(){return(0,ot.Z)((0,ot.Z)({},zt),{},{notFoundContent:Pn,open:to,triggerOpen:Bo,id:pi,showSearch:bo,multiple:oo,toggleOpen:Yi})},[zt,Pn,Bo,to,pi,bo,oo,Yi]),uc=!!Jr||ri,Uu;uc&&(Uu=Xe.createElement(oe,{className:Je()("".concat(Mn,"-arrow"),(0,Ke.Z)({},"".concat(Mn,"-arrow-loading"),ri)),customizeIcon:Jr,customizeIconProps:{loading:ri,searchValue:ps,open:to,focused:Pa,showSearch:bo}}));var Ac=function(){var Ma;Rn==null||Rn(),(Ma=ya.current)===null||Ma===void 0||Ma.focus(),$t([],{type:"clear",values:Cn}),or("",!1,!1)},Xu=de(Mn,Ac,Cn,Zi,On,Zn,ps,Yn),Vl=Xu.allowClear,Bl=Xu.clearIcon,os=Xe.createElement(Ho,{ref:na}),Au=Je()(Mn,It,(Ln={},(0,Ke.Z)(Ln,"".concat(Mn,"-focused"),Pa),(0,Ke.Z)(Ln,"".concat(Mn,"-multiple"),oo),(0,Ke.Z)(Ln,"".concat(Mn,"-single"),!oo),(0,Ke.Z)(Ln,"".concat(Mn,"-allow-clear"),Zi),(0,Ke.Z)(Ln,"".concat(Mn,"-show-arrow"),uc),(0,Ke.Z)(Ln,"".concat(Mn,"-disabled"),Zn),(0,Ke.Z)(Ln,"".concat(Mn,"-loading"),ri),(0,Ke.Z)(Ln,"".concat(Mn,"-open"),to),(0,Ke.Z)(Ln,"".concat(Mn,"-customize-input"),An),(0,Ke.Z)(Ln,"".concat(Mn,"-show-search"),bo),Ln)),_u=Xe.createElement(Zt,{ref:Xo,disabled:Zn,prefixCls:Mn,visible:Bo,popupElement:os,animation:Dn,transitionName:Rr,dropdownStyle:ca,dropdownClassName:fo,direction:ui,dropdownMatchSelectWidth:Ha,dropdownRender:oa,dropdownAlign:xt,placement:kn,builtinPlacements:Hn,getPopupContainer:Ei,empty:vn,getTriggerDOMNode:function(){return Ro.current},onPopupVisibleChange:zs,onPopupMouseEnter:Ms},Yo?Xe.cloneElement(Yo,{ref:Qs}):Xe.createElement(Xn,(0,ge.Z)({},zt,{domRef:Ro,prefixCls:Mn,inputElement:An,ref:ya,id:pi,showSearch:bo,autoClearSearchValue:bi,mode:Yn,activeDescendantId:Ji,tagRender:nn,values:Cn,open:to,onToggleOpen:Yi,activeValue:qt,searchValue:ps,onSearch:or,onSearchSubmit:Xr,onRemove:Sl,tokenWithEnter:ba}))),$s;return Yo?$s=_u:$s=Xe.createElement("div",(0,ge.Z)({className:Au},Ur,{ref:oi,onMouseDown:Dl,onKeyDown:Ua,onKeyUp:rs,onFocus:yo,onBlur:Vu}),Pa&&!to&&Xe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Cn.map(function(_o){var Ma=_o.label,bl=_o.value;return["number","string"].includes((0,be.Z)(Ma))?Ma:bl}).join(", "))),_u,Uu,Vl&&Bl),Xe.createElement(ve.Provider,{value:Yu},$s)}),ke=ye,Ve=function(zt,gt){var xn=Xe.useRef({values:new Map,options:new Map}),Ln=Xe.useMemo(function(){var Mn=xn.current,It=Mn.values,gn=Mn.options,nn=zt.map(function(Cn){if(Cn.label===void 0){var $t;return(0,ot.Z)((0,ot.Z)({},Cn),{},{label:($t=It.get(Cn.value))===null||$t===void 0?void 0:$t.label})}return Cn}),ui=new Map,Qt=new Map;return nn.forEach(function(Cn){ui.set(Cn.value,Cn),Qt.set(Cn.value,gt.get(Cn.value)||gn.get(Cn.value))}),xn.current.values=ui,xn.current.options=Qt,nn},[zt,gt]),pi=Xe.useCallback(function(Mn){return gt.get(Mn)||xn.current.options.get(Mn)},[gt]);return[Ln,pi]};function Be(zt,gt){return bt(zt).join("").toUpperCase().includes(gt)}var dt=function(zt,gt,xn,Ln,pi){return Xe.useMemo(function(){if(!xn||Ln===!1)return zt;var Mn=gt.options,It=gt.label,gn=gt.value,nn=[],ui=typeof Ln=="function",Qt=xn.toUpperCase(),Cn=ui?Ln:function(vn,En){return pi?Be(En[pi],Qt):En[Mn]?Be(En[It!=="children"?It:"label"],Qt):Be(En[gn],Qt)},$t=ui?function(vn){return Lt(vn)}:function(vn){return vn};return zt.forEach(function(vn){if(vn[Mn]){var En=Cn(xn,$t(vn));if(En)nn.push(vn);else{var Pn=vn[Mn].filter(function(Rn){return Cn(xn,$t(Rn))});Pn.length&&nn.push((0,ot.Z)((0,ot.Z)({},vn),{},(0,Ke.Z)({},Mn,Pn)))}return}Cn(xn,$t(vn))&&nn.push(vn)}),nn},[zt,Ln,pi,xn,gt])},on=he(17115),mn=he(38298),Et=["children","value"],Ot=["children"];function yn(zt){var gt=zt,xn=gt.key,Ln=gt.props,pi=Ln.children,Mn=Ln.value,It=(0,it.Z)(Ln,Et);return(0,ot.Z)({key:xn,value:Mn!==void 0?Mn:xn,children:pi},It)}function Tn(zt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,mn.Z)(zt).map(function(xn,Ln){if(!Xe.isValidElement(xn)||!xn.type)return null;var pi=xn,Mn=pi.type.isSelectOptGroup,It=pi.key,gn=pi.props,nn=gn.children,ui=(0,it.Z)(gn,Ot);return gt||!Mn?yn(xn):(0,ot.Z)((0,ot.Z)({key:"__RC_SELECT_GRP__".concat(It===null?Ln:It,"__"),label:It},ui),{},{options:Tn(nn)})}).filter(function(xn){return xn})}function qn(zt,gt,xn,Ln,pi){return Xe.useMemo(function(){var Mn=zt,It=!zt;It&&(Mn=Tn(gt));var gn=new Map,nn=new Map,ui=function($t,vn,En){En&&typeof En=="string"&&$t.set(vn[En],vn)};function Qt(Cn){for(var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vn=0;vn<Cn.length;vn+=1){var En=Cn[vn];!En[xn.options]||$t?(gn.set(En[xn.value],En),ui(nn,En,xn.label),ui(nn,En,Ln),ui(nn,En,pi)):Qt(En[xn.options],!0)}}return Qt(Mn),{options:Mn,valueOptions:gn,labelOptions:nn}},[zt,gt,xn,Ln,pi])}function vi(zt){var gt=Xe.useRef();gt.current=zt;var xn=Xe.useCallback(function(){return gt.current.apply(gt,arguments)},[]);return xn}var gi=function(){return null};gi.isSelectOptGroup=!0;var wi=gi,_n=function(){return null};_n.isSelectOption=!0;var yr=_n,ir=he(79722),fr=he(64002),xr=he(21881),jr=Xe.createContext(null),Ki=jr;function Ir(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Vi=["disabled","title","children","style","className"];function Me(zt){return typeof zt=="string"||typeof zt=="number"}var Ai=function(gt,xn){var Ln=xe(),pi=Ln.prefixCls,Mn=Ln.id,It=Ln.open,gn=Ln.multiple,nn=Ln.mode,ui=Ln.searchValue,Qt=Ln.toggleOpen,Cn=Ln.notFoundContent,$t=Ln.onPopupScroll,vn=Xe.useContext(Ki),En=vn.flattenOptions,Pn=vn.onActiveValue,Rn=vn.defaultActiveFirstOption,Yn=vn.onSelect,Zn=vn.menuItemSelectedIcon,ri=vn.rawValues,Gn=vn.fieldNames,di=vn.virtual,rr=vn.direction,Dr=vn.listHeight,ar=vn.listItemHeight,qt="".concat(pi,"-item"),Li=(0,ir.Z)(function(){return En},[It,En],function(xt,kn){return kn[0]&&xt[1]!==kn[1]}),Ji=Xe.useRef(null),Ti=function(kn){kn.preventDefault()},bi=function(kn){Ji.current&&Ji.current.scrollTo(typeof kn=="number"?{index:kn}:kn)},sr=function(kn){for(var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ei=Li.length,Si=0;Si<Ei;Si+=1){var $e=(kn+Si*Hn+Ei)%Ei,Fi=Li[$e],eo=Fi.group,Qi=Fi.data;if(!eo&&!Qi.disabled)return $e}return-1},Nr=Xe.useState(function(){return sr(0)}),cr=(0,He.Z)(Nr,2),Zi=cr[0],Jr=cr[1],On=function(kn){var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Jr(kn);var Ei={source:Hn?"keyboard":"mouse"},Si=Li[kn];if(!Si){Pn(null,-1,Ei);return}Pn(Si.value,kn,Ei)};(0,Xe.useEffect)(function(){On(Rn!==!1?sr(0):-1)},[Li.length,ui]);var Ho=Xe.useCallback(function(xt){return ri.has(xt)&&nn!=="combobox"},[nn,(0,Ie.Z)(ri).toString(),ri.size]);(0,Xe.useEffect)(function(){var xt=setTimeout(function(){if(!gn&&It&&ri.size===1){var Hn=Array.from(ri)[0],Ei=Li.findIndex(function(Si){var $e=Si.data;return $e.value===Hn});Ei!==-1&&(On(Ei),bi(Ei))}});if(It){var kn;(kn=Ji.current)===null||kn===void 0||kn.scrollTo(void 0)}return function(){return clearTimeout(xt)}},[It,ui,En.length]);var Dn=function(kn){kn!==void 0&&Yn(kn,{selected:!ri.has(kn)}),gn||Qt(!1)};if(Xe.useImperativeHandle(xn,function(){return{onKeyDown:function(kn){var Hn=kn.which,Ei=kn.ctrlKey;switch(Hn){case ee.Z.N:case ee.Z.P:case ee.Z.UP:case ee.Z.DOWN:{var Si=0;if(Hn===ee.Z.UP?Si=-1:Hn===ee.Z.DOWN?Si=1:Ir()&&Ei&&(Hn===ee.Z.N?Si=1:Hn===ee.Z.P&&(Si=-1)),Si!==0){var $e=sr(Zi+Si,Si);bi($e),On($e,!0)}break}case ee.Z.ENTER:{var Fi=Li[Zi];Fi&&!Fi.data.disabled?Dn(Fi.value):Dn(void 0),It&&kn.preventDefault();break}case ee.Z.ESC:Qt(!1),It&&kn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(kn){bi(kn)}}}),Li.length===0)return Xe.createElement("div",{role:"listbox",id:"".concat(Mn,"_list"),className:"".concat(qt,"-empty"),onMouseDown:Ti},Cn);var Rr=Object.keys(Gn).map(function(xt){return Gn[xt]}),ca=function(kn){return kn.label};function fo(xt,kn){var Hn=xt.group;return{role:Hn?"presentation":"option",id:"".concat(Mn,"_list_").concat(kn)}}var Ha=function(kn){var Hn=Li[kn];if(!Hn)return null;var Ei=Hn.data||{},Si=Ei.value,$e=Hn.group,Fi=(0,Le.Z)(Ei,!0),eo=ca(Hn);return Hn?Xe.createElement("div",(0,ge.Z)({"aria-label":typeof eo=="string"&&!$e?eo:null},Fi,{key:kn},fo(Hn,kn),{"aria-selected":Ho(Si)}),Si):null},oa={role:"listbox",id:"".concat(Mn,"_list")};return Xe.createElement(Xe.Fragment,null,di&&Xe.createElement("div",(0,ge.Z)({},oa,{style:{height:0,width:0,overflow:"hidden"}}),Ha(Zi-1),Ha(Zi),Ha(Zi+1)),Xe.createElement(xr.Z,{itemKey:"key",ref:Ji,data:Li,height:Dr,itemHeight:ar,fullHeight:!1,onMouseDown:Ti,onScroll:$t,virtual:di,direction:rr,innerProps:di?null:oa},function(xt,kn){var Hn,Ei=xt.group,Si=xt.groupOption,$e=xt.data,Fi=xt.label,eo=xt.value,Qi=$e.key;if(Ei){var Vr,pr=(Vr=$e.title)!==null&&Vr!==void 0?Vr:Me(Fi)?Fi.toString():void 0;return Xe.createElement("div",{className:Je()(qt,"".concat(qt,"-group")),title:pr},Fi!==void 0?Fi:Qi)}var Er=$e.disabled,oo=$e.title,bo=$e.children,Ur=$e.style,Io=$e.className,lr=(0,it.Z)($e,Vi),$i=(0,fr.Z)(lr,Rr),Br=Ho(eo),oi="".concat(qt,"-option"),Ro=Je()(qt,oi,Io,(Hn={},(0,Ke.Z)(Hn,"".concat(oi,"-grouped"),Si),(0,Ke.Z)(Hn,"".concat(oi,"-active"),Zi===kn&&!Er),(0,Ke.Z)(Hn,"".concat(oi,"-disabled"),Er),(0,Ke.Z)(Hn,"".concat(oi,"-selected"),Br),Hn)),Xo=ca(xt),ya=!Zn||typeof Zn=="function"||Br,na=typeof Xo=="number"?Xo:Xo||eo,Fa=Me(na)?na.toString():void 0;return oo!==void 0&&(Fa=oo),Xe.createElement("div",(0,ge.Z)({},(0,Le.Z)($i),di?{}:fo(xt,kn),{"aria-selected":Br,className:Ro,title:Fa,onMouseMove:function(){Zi===kn||Er||On(kn)},onClick:function(){Er||Dn(eo)},style:Ur}),Xe.createElement("div",{className:"".concat(oi,"-content")},na),Xe.isValidElement(Zn)||Br,ya&&Xe.createElement(oe,{className:"".concat(qt,"-option-state"),customizeIcon:Zn,customizeIconProps:{isSelected:Br}},Br?"\u2713":null))}))},Xi=Xe.forwardRef(Ai);Xi.displayName="OptionList";var gr=Xi;function tr(zt){var gt=zt.mode,xn=zt.options,Ln=zt.children,pi=zt.backfill,Mn=zt.allowClear,It=zt.placeholder,gn=zt.getInputElement,nn=zt.showSearch,ui=zt.onSearch,Qt=zt.defaultOpen,Cn=zt.autoFocus,$t=zt.labelInValue,vn=zt.value,En=zt.inputValue,Pn=zt.optionLabelProp,Rn=isMultiple(gt),Yn=nn!==void 0?nn:Rn||gt==="combobox",Zn=xn||convertChildrenToData(Ln);if(warning(gt!=="tags"||Zn.every(function(rr){return!rr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),gt==="tags"||gt==="combobox"){var ri=Zn.some(function(rr){return rr.options?rr.options.some(function(Dr){return typeof("value"in Dr?Dr.value:Dr.key)=="number"}):typeof("value"in rr?rr.value:rr.key)=="number"});warning(!ri,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(gt!=="combobox"||!Pn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(gt==="combobox"||!pi,"`backfill` only works with `combobox` mode."),warning(gt==="combobox"||!gn,"`getInputElement` only work with `combobox` mode."),noteOnce(gt!=="combobox"||!gn||!Mn||!It,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ui&&!Yn&>!=="combobox"&>!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Qt||Cn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),vn!=null){var Gn=toArray(vn);warning(!$t||Gn.every(function(rr){return _typeof(rr)==="object"&&("key"in rr||"value"in rr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Rn||Array.isArray(vn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ln){var di=null;toNodeArray(Ln).some(function(rr){if(!React.isValidElement(rr)||!rr.type)return!1;var Dr=rr,ar=Dr.type;if(ar.isSelectOption)return!1;if(ar.isSelectOptGroup){var qt=toNodeArray(rr.props.children).every(function(Li){return!React.isValidElement(Li)||!rr.type||Li.type.isSelectOption?!0:(di=Li.type,!1)});return!qt}return di=ar,!0}),di&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(di.displayName||di.name||di,"`.")),warning(En===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function uo(zt,gt){if(zt){var xn=function Ln(pi){for(var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It=0;It<pi.length;It++){var gn=pi[It];if(gn[gt==null?void 0:gt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Mn&&Array.isArray(gn[gt==null?void 0:gt.options])&&Ln(gn[gt==null?void 0:gt.options],!0))break}};xn(zt)}}var qr=null,Ni=["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 en(zt){return!zt||(0,be.Z)(zt)!=="object"}var Kt=Xe.forwardRef(function(zt,gt){var xn=zt.id,Ln=zt.mode,pi=zt.prefixCls,Mn=pi===void 0?"rc-select":pi,It=zt.backfill,gn=zt.fieldNames,nn=zt.inputValue,ui=zt.searchValue,Qt=zt.onSearch,Cn=zt.autoClearSearchValue,$t=Cn===void 0?!0:Cn,vn=zt.onSelect,En=zt.onDeselect,Pn=zt.dropdownMatchSelectWidth,Rn=Pn===void 0?!0:Pn,Yn=zt.filterOption,Zn=zt.filterSort,ri=zt.optionFilterProp,Gn=zt.optionLabelProp,di=zt.options,rr=zt.children,Dr=zt.defaultActiveFirstOption,ar=zt.menuItemSelectedIcon,qt=zt.virtual,Li=zt.direction,Ji=zt.listHeight,Ti=Ji===void 0?200:Ji,bi=zt.listItemHeight,sr=bi===void 0?20:bi,Nr=zt.value,cr=zt.defaultValue,Zi=zt.labelInValue,Jr=zt.onChange,On=(0,it.Z)(zt,Ni),Ho=(0,on.ZP)(xn),Dn=we(Ln),Rr=!!(!di&&rr),ca=Xe.useMemo(function(){return Yn===void 0&&Ln==="combobox"?!1:Yn},[Yn,Ln]),fo=Xe.useMemo(function(){return tt(gn,Rr)},[JSON.stringify(gn),Rr]),Ha=(0,yt.Z)("",{value:ui!==void 0?ui:nn,postState:function(Do){return Do||""}}),oa=(0,He.Z)(Ha,2),xt=oa[0],kn=oa[1],Hn=qn(di,rr,fo,ri,Gn),Ei=Hn.valueOptions,Si=Hn.labelOptions,$e=Hn.options,Fi=Xe.useCallback(function(to){var Do=bt(to);return Do.map(function(Bo){var Yi,ba,or,Xr,Pr;if(en(Bo))Yi=Bo;else{var fa;or=Bo.key,ba=Bo.label,Yi=(fa=Bo.value)!==null&&fa!==void 0?fa:or}var Mi=Ei.get(Yi);if(Mi){var ga;if(ba===void 0&&(ba=Mi==null?void 0:Mi[Gn||fo.label]),or===void 0&&(or=(ga=Mi==null?void 0:Mi.key)!==null&&ga!==void 0?ga:Yi),Xr=Mi==null?void 0:Mi.disabled,Pr=Mi==null?void 0:Mi.title,0)var Ua}return{label:ba,value:Yi,key:or,disabled:Xr,title:Pr}})},[fo,Gn,Ei]),eo=(0,yt.Z)(cr,{value:Nr}),Qi=(0,He.Z)(eo,2),Vr=Qi[0],pr=Qi[1],Er=Xe.useMemo(function(){var to,Do=Fi(Vr);return Ln==="combobox"&&kt((to=Do[0])===null||to===void 0?void 0:to.value)?[]:Do},[Vr,Fi,Ln]),oo=Ve(Er,Ei),bo=(0,He.Z)(oo,2),Ur=bo[0],Io=bo[1],lr=Xe.useMemo(function(){if(!Ln&&Ur.length===1){var to=Ur[0];if(to.value===null&&(to.label===null||to.label===void 0))return[]}return Ur.map(function(Do){var Bo;return(0,ot.Z)((0,ot.Z)({},Do),{},{label:(Bo=Do.label)!==null&&Bo!==void 0?Bo:Do.value})})},[Ln,Ur]),$i=Xe.useMemo(function(){return new Set(Ur.map(function(to){return to.value}))},[Ur]);Xe.useEffect(function(){if(Ln==="combobox"){var to,Do=(to=Ur[0])===null||to===void 0?void 0:to.value;kn(vt(Do)?String(Do):"")}},[Ur]);var Br=vi(function(to,Do){var Bo,Yi=Do!=null?Do:to;return Bo={},(0,Ke.Z)(Bo,fo.value,to),(0,Ke.Z)(Bo,fo.label,Yi),Bo}),oi=Xe.useMemo(function(){if(Ln!=="tags")return $e;var to=(0,Ie.Z)($e),Do=function(Yi){return Ei.has(Yi)};return(0,Ie.Z)(Ur).sort(function(Bo,Yi){return Bo.value<Yi.value?-1:1}).forEach(function(Bo){var Yi=Bo.value;Do(Yi)||to.push(Br(Yi,Bo.label))}),to},[Br,$e,Ei,Ur,Ln]),Ro=dt(oi,fo,xt,ca,ri),Xo=Xe.useMemo(function(){return Ln!=="tags"||!xt||Ro.some(function(to){return to[ri||"value"]===xt})||Ro.some(function(to){return to[fo.value]===xt})?Ro:[Br(xt)].concat((0,Ie.Z)(Ro))},[Br,ri,Ln,Ro,xt,fo]),ya=Xe.useMemo(function(){return Zn?(0,Ie.Z)(Xo).sort(function(to,Do){return Zn(to,Do)}):Xo},[Xo,Zn]),na=Xe.useMemo(function(){return Wt(ya,{fieldNames:fo,childrenAsData:Rr})},[ya,fo,Rr]),Fa=function(Do){var Bo=Fi(Do);if(pr(Bo),Jr&&(Bo.length!==Ur.length||Bo.some(function(or,Xr){var Pr;return((Pr=Ur[Xr])===null||Pr===void 0?void 0:Pr.value)!==(or==null?void 0:or.value)}))){var Yi=Zi?Bo:Bo.map(function(or){return or.value}),ba=Bo.map(function(or){return Lt(Io(or.value))});Jr(Dn?Yi:Yi[0],Dn?ba:ba[0])}},Sa=Xe.useState(null),Pa=(0,He.Z)(Sa,2),is=Pa[0],Co=Pa[1],ps=Xe.useState(0),An=(0,He.Z)(ps,2),Yo=An[0],Qs=An[1],yl=Dr!==void 0?Dr:Ln!=="combobox",Kr=Xe.useCallback(function(to,Do){var Bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Yi=Bo.source,ba=Yi===void 0?"keyboard":Yi;Qs(Do),It&&Ln==="combobox"&&to!==null&&ba==="keyboard"&&Co(String(to))},[It,Ln]),Ao=function(Do,Bo,Yi){var ba=function(){var Kl,yo=Io(Do);return[Zi?{label:yo==null?void 0:yo[fo.label],value:Do,key:(Kl=yo==null?void 0:yo.key)!==null&&Kl!==void 0?Kl:Do}:Do,Lt(yo)]};if(Bo&&vn){var or=ba(),Xr=(0,He.Z)(or,2),Pr=Xr[0],fa=Xr[1];vn(Pr,fa)}else if(!Bo&&En&&Yi!=="clear"){var Mi=ba(),ga=(0,He.Z)(Mi,2),Ua=ga[0],rs=ga[1];En(Ua,rs)}},Ka=vi(function(to,Do){var Bo,Yi=Dn?Do.selected:!0;Yi?Bo=Dn?[].concat((0,Ie.Z)(Ur),[to]):[to]:Bo=Ur.filter(function(ba){return ba.value!==to}),Fa(Bo),Ao(to,Yi),Ln==="combobox"?Co(""):(!we||$t)&&(kn(""),Co(""))}),da=function(Do,Bo){Fa(Do);var Yi=Bo.type,ba=Bo.values;(Yi==="remove"||Yi==="clear")&&ba.forEach(function(or){Ao(or.value,!1,Yi)})},vo=function(Do,Bo){if(kn(Do),Co(null),Bo.source==="submit"){var Yi=(Do||"").trim();if(Yi){var ba=Array.from(new Set([].concat((0,Ie.Z)($i),[Yi])));Fa(ba),Ao(Yi,!0),kn("")}return}Bo.source!=="blur"&&(Ln==="combobox"&&Fa(Do),Qt==null||Qt(Do))},Qo=function(Do){var Bo=Do;Ln!=="tags"&&(Bo=Do.map(function(ba){var or=Si.get(ba);return or==null?void 0:or.value}).filter(function(ba){return ba!==void 0}));var Yi=Array.from(new Set([].concat((0,Ie.Z)($i),(0,Ie.Z)(Bo))));Fa(Yi),Yi.forEach(function(ba){Ao(ba,!0)})},Qa=Xe.useMemo(function(){var to=qt!==!1&&Rn!==!1;return(0,ot.Z)((0,ot.Z)({},Hn),{},{flattenOptions:na,onActiveValue:Kr,defaultActiveFirstOption:yl,onSelect:Ka,menuItemSelectedIcon:ar,rawValues:$i,fieldNames:fo,virtual:to,direction:Li,listHeight:Ti,listItemHeight:sr,childrenAsData:Rr})},[Hn,na,Kr,yl,Ka,ar,$i,fo,qt,Rn,Ti,sr,Rr]);return Xe.createElement(Ki.Provider,{value:Qa},Xe.createElement(ke,(0,ge.Z)({},On,{id:Ho,prefixCls:Mn,ref:gt,omitDomProps:an,mode:Ln,displayValues:lr,onDisplayValuesChange:da,direction:Li,searchValue:xt,onSearch:vo,autoClearSearchValue:$t,onSearchSplit:Qo,dropdownMatchSelectWidth:Rn,OptionList:gr,emptyOptions:!na.length,activeValue:is,activeDescendantId:"".concat(Ho,"_list_").concat(Yo)})))}),Pt=Kt;Pt.Option=yr,Pt.OptGroup=wi;var Sn=Pt,bn=Sn},9296:function(fn,jt,he){"use strict";he.r(jt),he.d(jt,{ResizableTextArea:function(){return Ge},default:function(){return kt}});var ge=he(5891),Ie=he(57259),Ke=he(80962),ot=he(80665),He=he(29043),it=he(19149),be=he(26390),yt=he(92310),ct=he.n(yt),Xe=he(93681),et=he(5643),Je=he(35788),Ue=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;
|
|
|
`,oe=["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 xe(Rt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=Rt.getAttribute("id")||Rt.getAttribute("data-reactid")||Rt.getAttribute("name");if(Jt&&de[at])return de[at];var Ze=window.getComputedStyle(Rt),Mt=Ze.getPropertyValue("box-sizing")||Ze.getPropertyValue("-moz-box-sizing")||Ze.getPropertyValue("-webkit-box-sizing"),Yt=parseFloat(Ze.getPropertyValue("padding-bottom"))+parseFloat(Ze.getPropertyValue("padding-top")),Vt=parseFloat(Ze.getPropertyValue("border-bottom-width"))+parseFloat(Ze.getPropertyValue("border-top-width")),Ct=oe.map(function(sn){return"".concat(sn,":").concat(Ze.getPropertyValue(sn))}).join(";"),Nt={sizingStyle:Ct,paddingSize:Yt,borderSize:Vt,boxSizing:Mt};return Jt&&at&&(de[at]=Nt),Nt}function Ae(Rt){var Jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ze=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)),Rt.getAttribute("wrap")?ve.setAttribute("wrap",Rt.getAttribute("wrap")):ve.removeAttribute("wrap");var Mt=xe(Rt,Jt),Yt=Mt.paddingSize,Vt=Mt.borderSize,Ct=Mt.boxSizing,Nt=Mt.sizingStyle;ve.setAttribute("style","".concat(Nt,";").concat(ue)),ve.value=Rt.value||Rt.placeholder||"";var sn=void 0,Nn=void 0,hn,Xn=ve.scrollHeight;if(Ct==="border-box"?Xn+=Vt:Ct==="content-box"&&(Xn-=Yt),at!==null||Ze!==null){ve.value=" ";var Ft=ve.scrollHeight-Yt;at!==null&&(sn=Ft*at,Ct==="border-box"&&(sn=sn+Yt+Vt),Xn=Math.max(sn,Xn)),Ze!==null&&(Nn=Ft*Ze,Ct==="border-box"&&(Nn=Nn+Yt+Vt),hn=Xn>Nn?"":"hidden",Xn=Math.min(Nn,Xn))}var Un={height:Xn,overflowY:hn,resize:"none"};return sn&&(Un.minHeight=sn),Nn&&(Un.maxHeight=Nn),Un}var Pe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ne=0,Le=1,Re=2,je=Ue.forwardRef(function(Rt,Jt){var at=Rt,Ze=at.prefixCls,Mt=at.onPressEnter,Yt=at.defaultValue,Vt=at.value,Ct=at.autoSize,Nt=at.onResize,sn=at.className,Nn=at.style,hn=at.disabled,Xn=at.onChange,Ft=at.onInternalAutoSize,Un=(0,it.Z)(at,Pe),Kn=(0,Je.Z)(Yt,{value:Vt,postState:function(wi){return wi!=null?wi:""}}),ti=(0,He.Z)(Kn,2),Fn=ti[0],Zt=ti[1],Xt=function(wi){Zt(wi.target.value),Xn==null||Xn(wi)},mt=Ue.useRef();Ue.useImperativeHandle(Jt,function(){return{textArea:mt.current}});var tt=Ue.useMemo(function(){return Ct&&(0,ot.Z)(Ct)==="object"?[Ct.minRows,Ct.maxRows]:[]},[Ct]),Wt=(0,He.Z)(tt,2),Lt=Wt[0],pt=Wt[1],nt=!!Ct,Oe=function(){try{if(document.activeElement===mt.current){var wi=mt.current,_n=wi.selectionStart,yr=wi.selectionEnd,ir=wi.scrollTop;mt.current.setSelectionRange(_n,yr),mt.current.scrollTop=ir}}catch(fr){}},we=Ue.useState(Re),ye=(0,He.Z)(we,2),ke=ye[0],Ve=ye[1],Be=Ue.useState(),dt=(0,He.Z)(Be,2),on=dt[0],mn=dt[1],Et=function(){Ve(Ne)};(0,ee.Z)(function(){nt&&Et()},[Vt,Lt,pt,nt]),(0,ee.Z)(function(){if(ke===Ne)Ve(Le);else if(ke===Le){var gi=Ae(mt.current,!1,Lt,pt);Ve(Re),mn(gi)}else Oe()},[ke]);var Ot=Ue.useRef(),yn=function(){te.Z.cancel(Ot.current)},Tn=function(wi){ke===Re&&(Nt==null||Nt(wi),Ct&&(yn(),Ot.current=(0,te.Z)(function(){Et()})))};Ue.useEffect(function(){return yn},[]);var qn=nt?on:null,vi=(0,Ie.Z)((0,Ie.Z)({},Nn),qn);return(ke===Ne||ke===Le)&&(vi.overflowY="hidden",vi.overflowX="hidden"),Ue.createElement(Ee.Z,{onResize:Tn,disabled:!(Ct||Nt)},Ue.createElement("textarea",(0,ge.Z)({},Un,{ref:mt,style:vi,className:ct()(Ze,sn,(0,Ke.Z)({},"".concat(Ze,"-disabled"),hn)),disabled:hn,value:Fn,onChange:Xt})))}),Ge=je,We=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function bt(Rt,Jt){return(0,be.Z)(Rt||"").slice(0,Jt).join("")}function Qe(Rt,Jt,at,Ze){var Mt=at;return Rt?Mt=bt(at,Ze):(0,be.Z)(Jt||"").length<at.length&&(0,be.Z)(at||"").length>Ze&&(Mt=Jt),Mt}var Dt=Ue.forwardRef(function(Rt,Jt){var at,Ze=Rt.defaultValue,Mt=Rt.value,Yt=Rt.onFocus,Vt=Rt.onBlur,Ct=Rt.onChange,Nt=Rt.allowClear,sn=Rt.maxLength,Nn=Rt.onCompositionStart,hn=Rt.onCompositionEnd,Xn=Rt.suffix,Ft=Rt.prefixCls,Un=Ft===void 0?"rc-textarea":Ft,Kn=Rt.classes,ti=Rt.showCount,Fn=Rt.className,Zt=Rt.style,Xt=Rt.disabled,mt=Rt.hidden,tt=Rt.classNames,Wt=Rt.styles,Lt=Rt.onResize,pt=(0,it.Z)(Rt,We),nt=(0,Je.Z)(Ze,{value:Mt,defaultValue:Ze}),Oe=(0,He.Z)(nt,2),we=Oe[0],ye=Oe[1],ke=(0,Ue.useRef)(null),Ve=Ue.useState(!1),Be=(0,He.Z)(Ve,2),dt=Be[0],on=Be[1],mn=Ue.useState(!1),Et=(0,He.Z)(mn,2),Ot=Et[0],yn=Et[1],Tn=Ue.useRef(),qn=Ue.useRef(0),vi=Ue.useState(null),gi=(0,He.Z)(vi,2),wi=gi[0],_n=gi[1],yr=function(){var en;(en=ke.current)===null||en===void 0||en.textArea.focus()};(0,Ue.useImperativeHandle)(Jt,function(){return{resizableTextArea:ke.current,focus:yr,blur:function(){var en;(en=ke.current)===null||en===void 0||en.textArea.blur()}}}),(0,Ue.useEffect)(function(){on(function(an){return!Xt&&an})},[Xt]);var ir=Number(sn)>0,fr=function(en){yn(!0),Tn.current=we,qn.current=en.currentTarget.selectionStart,Nn==null||Nn(en)},xr=function(en){yn(!1);var Kt=en.currentTarget.value;if(ir){var Pt,Sn=qn.current>=sn+1||qn.current===((Pt=Tn.current)===null||Pt===void 0?void 0:Pt.length);Kt=Qe(Sn,Tn.current,Kt,sn)}Kt!==we&&(ye(Kt),(0,et.rJ)(en.currentTarget,en,Ct,Kt)),hn==null||hn(en)},jr=function(en){var Kt=en.target.value;if(!Ot&&ir){var Pt=en.target.selectionStart>=sn+1||en.target.selectionStart===Kt.length||!en.target.selectionStart;Kt=Qe(Pt,we,Kt,sn)}ye(Kt),(0,et.rJ)(en.currentTarget,en,Ct,Kt)},Ki=function(en){var Kt=pt.onPressEnter,Pt=pt.onKeyDown;en.key==="Enter"&&Kt&&Kt(en),Pt==null||Pt(en)},Ir=function(en){on(!0),Yt==null||Yt(en)},Vi=function(en){on(!1),Vt==null||Vt(en)},Me=function(en){var Kt;ye(""),yr(),(0,et.rJ)((Kt=ke.current)===null||Kt===void 0?void 0:Kt.textArea,en,Ct)},Ai=(0,et.D7)(we);!Ot&&ir&&Mt==null&&(Ai=bt(Ai,sn));var Xi=Xn,gr;if(ti){var tr=(0,be.Z)(Ai).length;(0,ot.Z)(ti)==="object"?gr=ti.formatter({value:Ai,count:tr,maxLength:sn}):gr="".concat(tr).concat(ir?" / ".concat(sn):""),Xi=Ue.createElement(Ue.Fragment,null,Xi,Ue.createElement("span",{className:ct()("".concat(Un,"-data-count"),tt==null?void 0:tt.count),style:Wt==null?void 0:Wt.count},gr))}var uo=function(en){var Kt;Lt==null||Lt(en),(Kt=ke.current)!==null&&Kt!==void 0&&Kt.textArea.style.height&&_n(!0)},qr=!pt.autoSize&&!ti&&!Nt,Ni=Ue.createElement(Xe.BaseInput,{value:Ai,allowClear:Nt,handleReset:Me,suffix:Xi,prefixCls:Un,classes:{affixWrapper:ct()(Kn==null?void 0:Kn.affixWrapper,(at={},(0,Ke.Z)(at,"".concat(Un,"-show-count"),ti),(0,Ke.Z)(at,"".concat(Un,"-textarea-allow-clear"),Nt),at))},disabled:Xt,focused:dt,className:Fn,style:(0,Ie.Z)((0,Ie.Z)({},Zt),wi&&!qr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof gr=="string"?gr:void 0}},hidden:mt,inputElement:Ue.createElement(Ge,(0,ge.Z)({},pt,{onKeyDown:Ki,onChange:jr,onFocus:Ir,onBlur:Vi,onCompositionStart:fr,onCompositionEnd:xr,className:tt==null?void 0:tt.textarea,style:(0,Ie.Z)((0,Ie.Z)({},Wt==null?void 0:Wt.textarea),{},{resize:Zt==null?void 0:Zt.resize}),disabled:Xt,prefixCls:Un,onResize:uo,ref:ke}))});return Ni}),vt=Dt,kt=vt},39417:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Le}});var ge=he(5891),Ie=he(80962),Ke=he(19149),ot=he(57259),He=he(79545),it=he(68550),be=he(21882),yt=he(17928),ct=he(7711),Xe=he(92310),et=he.n(Xe),Je=he(36994),Ue=he(59301),Ee=he(39378),ee=function(je){for(var Ge=je.prefixCls,We=je.level,bt=je.isStart,Qe=je.isEnd,Dt="".concat(Ge,"-indent-unit"),vt=[],kt=0;kt<We;kt+=1){var Rt;vt.push(Ue.createElement("span",{key:kt,className:et()(Dt,(Rt={},(0,Ie.Z)(Rt,"".concat(Dt,"-start"),bt[kt]),(0,Ie.Z)(Rt,"".concat(Dt,"-end"),Qe[kt]),Rt))}))}return Ue.createElement("span",{"aria-hidden":"true",className:"".concat(Ge,"-indent")},vt)},te=Ue.memo(ee),ue=he(67841),oe=he(71430),de=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ve="open",xe="close",Ae="---",Pe=function(Re){(0,yt.Z)(Ge,Re);var je=(0,ct.Z)(Ge);function Ge(){var We;(0,He.Z)(this,Ge);for(var bt=arguments.length,Qe=new Array(bt),Dt=0;Dt<bt;Dt++)Qe[Dt]=arguments[Dt];return We=je.call.apply(je,[this].concat(Qe)),We.state={dragNodeHighlight:!1},We.selectHandle=void 0,We.cacheIndent=void 0,We.onSelectorClick=function(vt){var kt=We.props.context.onNodeClick;kt(vt,(0,oe.F)(We.props)),We.isSelectable()?We.onSelect(vt):We.onCheck(vt)},We.onSelectorDoubleClick=function(vt){var kt=We.props.context.onNodeDoubleClick;kt(vt,(0,oe.F)(We.props))},We.onSelect=function(vt){if(!We.isDisabled()){var kt=We.props.context.onNodeSelect;kt(vt,(0,oe.F)(We.props))}},We.onCheck=function(vt){if(!We.isDisabled()){var kt=We.props,Rt=kt.disableCheckbox,Jt=kt.checked,at=We.props.context.onNodeCheck;if(!(!We.isCheckable()||Rt)){var Ze=!Jt;at(vt,(0,oe.F)(We.props),Ze)}}},We.onMouseEnter=function(vt){var kt=We.props.context.onNodeMouseEnter;kt(vt,(0,oe.F)(We.props))},We.onMouseLeave=function(vt){var kt=We.props.context.onNodeMouseLeave;kt(vt,(0,oe.F)(We.props))},We.onContextMenu=function(vt){var kt=We.props.context.onNodeContextMenu;kt(vt,(0,oe.F)(We.props))},We.onDragStart=function(vt){var kt=We.props.context.onNodeDragStart;vt.stopPropagation(),We.setState({dragNodeHighlight:!0}),kt(vt,(0,be.Z)(We));try{vt.dataTransfer.setData("text/plain","")}catch(Rt){}},We.onDragEnter=function(vt){var kt=We.props.context.onNodeDragEnter;vt.preventDefault(),vt.stopPropagation(),kt(vt,(0,be.Z)(We))},We.onDragOver=function(vt){var kt=We.props.context.onNodeDragOver;vt.preventDefault(),vt.stopPropagation(),kt(vt,(0,be.Z)(We))},We.onDragLeave=function(vt){var kt=We.props.context.onNodeDragLeave;vt.stopPropagation(),kt(vt,(0,be.Z)(We))},We.onDragEnd=function(vt){var kt=We.props.context.onNodeDragEnd;vt.stopPropagation(),We.setState({dragNodeHighlight:!1}),kt(vt,(0,be.Z)(We))},We.onDrop=function(vt){var kt=We.props.context.onNodeDrop;vt.preventDefault(),vt.stopPropagation(),We.setState({dragNodeHighlight:!1}),kt(vt,(0,be.Z)(We))},We.onExpand=function(vt){var kt=We.props,Rt=kt.loading,Jt=kt.context.onNodeExpand;Rt||Jt(vt,(0,oe.F)(We.props))},We.setSelectHandle=function(vt){We.selectHandle=vt},We.getNodeState=function(){var vt=We.props.expanded;return We.isLeaf()?null:vt?ve:xe},We.hasChildren=function(){var vt=We.props.eventKey,kt=We.props.context.keyEntities,Rt=(0,ue.Z)(kt,vt)||{},Jt=Rt.children;return!!(Jt||[]).length},We.isLeaf=function(){var vt=We.props,kt=vt.isLeaf,Rt=vt.loaded,Jt=We.props.context.loadData,at=We.hasChildren();return kt===!1?!1:kt||!Jt&&!at||Jt&&Rt&&!at},We.isDisabled=function(){var vt=We.props.disabled,kt=We.props.context.disabled;return!!(kt||vt)},We.isCheckable=function(){var vt=We.props.checkable,kt=We.props.context.checkable;return!kt||vt===!1?!1:kt},We.syncLoadData=function(vt){var kt=vt.expanded,Rt=vt.loading,Jt=vt.loaded,at=We.props.context,Ze=at.loadData,Mt=at.onNodeLoad;Rt||Ze&&kt&&!We.isLeaf()&&!We.hasChildren()&&!Jt&&Mt((0,oe.F)(We.props))},We.isDraggable=function(){var vt=We.props,kt=vt.data,Rt=vt.context.draggable;return!!(Rt&&(!Rt.nodeDraggable||Rt.nodeDraggable(kt)))},We.renderDragHandler=function(){var vt=We.props.context,kt=vt.draggable,Rt=vt.prefixCls;return kt!=null&&kt.icon?Ue.createElement("span",{className:"".concat(Rt,"-draggable-icon")},kt.icon):null},We.renderSwitcherIconDom=function(vt){var kt=We.props.switcherIcon,Rt=We.props.context.switcherIcon,Jt=kt||Rt;return typeof Jt=="function"?Jt((0,ot.Z)((0,ot.Z)({},We.props),{},{isLeaf:vt})):Jt},We.renderSwitcher=function(){var vt=We.props.expanded,kt=We.props.context.prefixCls;if(We.isLeaf()){var Rt=We.renderSwitcherIconDom(!0);return Rt!==!1?Ue.createElement("span",{className:et()("".concat(kt,"-switcher"),"".concat(kt,"-switcher-noop"))},Rt):null}var Jt=et()("".concat(kt,"-switcher"),"".concat(kt,"-switcher_").concat(vt?ve:xe)),at=We.renderSwitcherIconDom(!1);return at!==!1?Ue.createElement("span",{onClick:We.onExpand,className:Jt},at):null},We.renderCheckbox=function(){var vt=We.props,kt=vt.checked,Rt=vt.halfChecked,Jt=vt.disableCheckbox,at=We.props.context.prefixCls,Ze=We.isDisabled(),Mt=We.isCheckable();if(!Mt)return null;var Yt=typeof Mt!="boolean"?Mt:null;return Ue.createElement("span",{className:et()("".concat(at,"-checkbox"),kt&&"".concat(at,"-checkbox-checked"),!kt&&Rt&&"".concat(at,"-checkbox-indeterminate"),(Ze||Jt)&&"".concat(at,"-checkbox-disabled")),onClick:We.onCheck},Yt)},We.renderIcon=function(){var vt=We.props.loading,kt=We.props.context.prefixCls;return Ue.createElement("span",{className:et()("".concat(kt,"-iconEle"),"".concat(kt,"-icon__").concat(We.getNodeState()||"docu"),vt&&"".concat(kt,"-icon_loading"))})},We.renderSelector=function(){var vt=We.state.dragNodeHighlight,kt=We.props,Rt=kt.title,Jt=Rt===void 0?Ae:Rt,at=kt.selected,Ze=kt.icon,Mt=kt.loading,Yt=kt.data,Vt=We.props.context,Ct=Vt.prefixCls,Nt=Vt.showIcon,sn=Vt.icon,Nn=Vt.loadData,hn=Vt.titleRender,Xn=We.isDisabled(),Ft="".concat(Ct,"-node-content-wrapper"),Un;if(Nt){var Kn=Ze||sn;Un=Kn?Ue.createElement("span",{className:et()("".concat(Ct,"-iconEle"),"".concat(Ct,"-icon__customize"))},typeof Kn=="function"?Kn(We.props):Kn):We.renderIcon()}else Nn&&Mt&&(Un=We.renderIcon());var ti;typeof Jt=="function"?ti=Jt(Yt):hn?ti=hn(Yt):ti=Jt;var Fn=Ue.createElement("span",{className:"".concat(Ct,"-title")},ti);return Ue.createElement("span",{ref:We.setSelectHandle,title:typeof Jt=="string"?Jt:"",className:et()("".concat(Ft),"".concat(Ft,"-").concat(We.getNodeState()||"normal"),!Xn&&(at||vt)&&"".concat(Ct,"-node-selected")),onMouseEnter:We.onMouseEnter,onMouseLeave:We.onMouseLeave,onContextMenu:We.onContextMenu,onClick:We.onSelectorClick,onDoubleClick:We.onSelectorDoubleClick},Un,Fn,We.renderDropIndicator())},We.renderDropIndicator=function(){var vt=We.props,kt=vt.disabled,Rt=vt.eventKey,Jt=We.props.context,at=Jt.draggable,Ze=Jt.dropLevelOffset,Mt=Jt.dropPosition,Yt=Jt.prefixCls,Vt=Jt.indent,Ct=Jt.dropIndicatorRender,Nt=Jt.dragOverNodeKey,sn=Jt.direction,Nn=!!at,hn=!kt&&Nn&&Nt===Rt,Xn=Vt!=null?Vt:We.cacheIndent;return We.cacheIndent=Vt,hn?Ct({dropPosition:Mt,dropLevelOffset:Ze,indent:Xn,prefixCls:Yt,direction:sn}):null},We}return(0,it.Z)(Ge,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var bt=this.props.selectable,Qe=this.props.context.selectable;return typeof bt=="boolean"?bt:Qe}},{key:"render",value:function(){var bt,Qe=this.props,Dt=Qe.eventKey,vt=Qe.className,kt=Qe.style,Rt=Qe.dragOver,Jt=Qe.dragOverGapTop,at=Qe.dragOverGapBottom,Ze=Qe.isLeaf,Mt=Qe.isStart,Yt=Qe.isEnd,Vt=Qe.expanded,Ct=Qe.selected,Nt=Qe.checked,sn=Qe.halfChecked,Nn=Qe.loading,hn=Qe.domRef,Xn=Qe.active,Ft=Qe.data,Un=Qe.onMouseMove,Kn=Qe.selectable,ti=(0,Ke.Z)(Qe,de),Fn=this.props.context,Zt=Fn.prefixCls,Xt=Fn.filterTreeNode,mt=Fn.keyEntities,tt=Fn.dropContainerKey,Wt=Fn.dropTargetKey,Lt=Fn.draggingNodeKey,pt=this.isDisabled(),nt=(0,Je.Z)(ti,{aria:!0,data:!0}),Oe=(0,ue.Z)(mt,Dt)||{},we=Oe.level,ye=Yt[Yt.length-1],ke=this.isDraggable(),Ve=!pt&&ke,Be=Lt===Dt,dt=Kn!==void 0?{"aria-selected":!!Kn}:void 0;return Ue.createElement("div",(0,ge.Z)({ref:hn,className:et()(vt,"".concat(Zt,"-treenode"),(bt={},(0,Ie.Z)(bt,"".concat(Zt,"-treenode-disabled"),pt),(0,Ie.Z)(bt,"".concat(Zt,"-treenode-switcher-").concat(Vt?"open":"close"),!Ze),(0,Ie.Z)(bt,"".concat(Zt,"-treenode-checkbox-checked"),Nt),(0,Ie.Z)(bt,"".concat(Zt,"-treenode-checkbox-indeterminate"),sn),(0,Ie.Z)(bt,"".concat(Zt,"-treenode-selected"),Ct),(0,Ie.Z)(bt,"".concat(Zt,"-treenode-loading"),Nn),(0,Ie.Z)(bt,"".concat(Zt,"-treenode-active"),Xn),(0,Ie.Z)(bt,"".concat(Zt,"-treenode-leaf-last"),ye),(0,Ie.Z)(bt,"".concat(Zt,"-treenode-draggable"),ke),(0,Ie.Z)(bt,"dragging",Be),(0,Ie.Z)(bt,"drop-target",Wt===Dt),(0,Ie.Z)(bt,"drop-container",tt===Dt),(0,Ie.Z)(bt,"drag-over",!pt&&Rt),(0,Ie.Z)(bt,"drag-over-gap-top",!pt&&Jt),(0,Ie.Z)(bt,"drag-over-gap-bottom",!pt&&at),(0,Ie.Z)(bt,"filter-node",Xt&&Xt((0,oe.F)(this.props))),bt)),style:kt,draggable:Ve,"aria-grabbed":Be,onDragStart:Ve?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},dt,nt),Ue.createElement(te,{prefixCls:Zt,level:we,isStart:Mt,isEnd:Yt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ge}(Ue.Component),Ne=function(je){return Ue.createElement(Ee.k.Consumer,null,function(Ge){return Ue.createElement(Pe,(0,ge.Z)({},je,{context:Ge}))})};Ne.displayName="TreeNode",Ne.isTreeNode=1;var Le=Ne},39378:function(fn,jt,he){"use strict";he.d(jt,{k:function(){return Ie}});var ge=he(59301),Ie=ge.createContext(null)},99581:function(fn,jt,he){"use strict";he.d(jt,{O:function(){return Le.Z},Z:function(){return Fn}});var ge=he(5891),Ie=he(80962),Ke=he(80665),ot=he(57259),He=he(26390),it=he(79545),be=he(68550),yt=he(21882),ct=he(17928),Xe=he(7711),et=he(92310),Je=he.n(et),Ue=he(85108),Ee=he(36994),ee=he(51395),te=he(59301),ue=he(39378);function oe(Zt){var Xt=Zt.dropPosition,mt=Zt.dropLevelOffset,tt=Zt.indent,Wt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Xt){case-1:Wt.top=0,Wt.left=-mt*tt;break;case 1:Wt.bottom=0,Wt.left=-mt*tt;break;case 0:Wt.bottom=0,Wt.left=tt;break}return te.createElement("div",{style:Wt})}function de(Zt){if(Zt==null)throw new TypeError("Cannot destructure "+Zt)}var ve=he(29043),xe=he(19149),Ae=he(28800),Pe=he(21881),Ne=he(43469),Le=he(39417);function Re(Zt,Xt){var mt=te.useState(!1),tt=(0,ve.Z)(mt,2),Wt=tt[0],Lt=tt[1];te.useLayoutEffect(function(){if(Wt)return Zt(),function(){Xt()}},[Wt]),te.useLayoutEffect(function(){return Lt(!0),function(){Lt(!1)}},[])}var je=he(71430),Ge=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],We=function(Xt,mt){var tt=Xt.className,Wt=Xt.style,Lt=Xt.motion,pt=Xt.motionNodes,nt=Xt.motionType,Oe=Xt.onMotionStart,we=Xt.onMotionEnd,ye=Xt.active,ke=Xt.treeNodeRequiredProps,Ve=(0,xe.Z)(Xt,Ge),Be=te.useState(!0),dt=(0,ve.Z)(Be,2),on=dt[0],mn=dt[1],Et=te.useContext(ue.k),Ot=Et.prefixCls,yn=pt&&nt!=="hide";(0,Ae.Z)(function(){pt&&yn!==on&&mn(yn)},[pt]);var Tn=function(){pt&&Oe()},qn=te.useRef(!1),vi=function(){pt&&!qn.current&&(qn.current=!0,we())};Re(Tn,vi);var gi=function(_n){yn===_n&&vi()};return pt?te.createElement(Ne.default,(0,ge.Z)({ref:mt,visible:on},Lt,{motionAppear:nt==="show",onVisibleChanged:gi}),function(wi,_n){var yr=wi.className,ir=wi.style;return te.createElement("div",{ref:_n,className:Je()("".concat(Ot,"-treenode-motion"),yr),style:ir},pt.map(function(fr){var xr=(0,ge.Z)({},(de(fr.data),fr.data)),jr=fr.title,Ki=fr.key,Ir=fr.isStart,Vi=fr.isEnd;delete xr.children;var Me=(0,je.H8)(Ki,ke);return te.createElement(Le.Z,(0,ge.Z)({},xr,Me,{title:jr,active:ye,data:fr.data,key:Ki,isStart:Ir,isEnd:Vi}))}))}):te.createElement(Le.Z,(0,ge.Z)({domRef:mt,className:tt,style:Wt},Ve,{active:ye}))};We.displayName="MotionTreeNode";var bt=te.forwardRef(We),Qe=bt;function Dt(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],mt=Zt.length,tt=Xt.length;if(Math.abs(mt-tt)!==1)return{add:!1,key:null};function Wt(Lt,pt){var nt=new Map;Lt.forEach(function(we){nt.set(we,!0)});var Oe=pt.filter(function(we){return!nt.has(we)});return Oe.length===1?Oe[0]:null}return mt<tt?{add:!0,key:Wt(Zt,Xt)}:{add:!1,key:Wt(Xt,Zt)}}function vt(Zt,Xt,mt){var tt=Zt.findIndex(function(nt){return nt.key===mt}),Wt=Zt[tt+1],Lt=Xt.findIndex(function(nt){return nt.key===mt});if(Wt){var pt=Xt.findIndex(function(nt){return nt.key===Wt.key});return Xt.slice(Lt+1,pt)}return Xt.slice(Lt+1)}var kt=["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"],Rt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Jt=function(){},at="RC_TREE_MOTION_".concat(Math.random()),Ze={key:at},Mt={key:at,level:0,index:0,pos:"0",node:Ze,nodes:[Ze]},Yt={parent:null,children:[],pos:Mt.pos,data:Ze,title:null,key:at,isStart:[],isEnd:[]};function Vt(Zt,Xt,mt,tt){return Xt===!1||!mt?Zt:Zt.slice(0,Math.ceil(mt/tt)+1)}function Ct(Zt){var Xt=Zt.key,mt=Zt.pos;return(0,je.km)(Xt,mt)}function Nt(Zt){for(var Xt=String(Zt.data.key),mt=Zt;mt.parent;)mt=mt.parent,Xt="".concat(mt.data.key," > ").concat(Xt);return Xt}var sn=te.forwardRef(function(Zt,Xt){var mt=Zt.prefixCls,tt=Zt.data,Wt=Zt.selectable,Lt=Zt.checkable,pt=Zt.expandedKeys,nt=Zt.selectedKeys,Oe=Zt.checkedKeys,we=Zt.loadedKeys,ye=Zt.loadingKeys,ke=Zt.halfCheckedKeys,Ve=Zt.keyEntities,Be=Zt.disabled,dt=Zt.dragging,on=Zt.dragOverNodeKey,mn=Zt.dropPosition,Et=Zt.motion,Ot=Zt.height,yn=Zt.itemHeight,Tn=Zt.virtual,qn=Zt.focusable,vi=Zt.activeItem,gi=Zt.focused,wi=Zt.tabIndex,_n=Zt.onKeyDown,yr=Zt.onFocus,ir=Zt.onBlur,fr=Zt.onActiveChange,xr=Zt.onListChangeStart,jr=Zt.onListChangeEnd,Ki=(0,xe.Z)(Zt,kt),Ir=te.useRef(null),Vi=te.useRef(null);te.useImperativeHandle(Xt,function(){return{scrollTo:function(Cn){Ir.current.scrollTo(Cn)},getIndentWidth:function(){return Vi.current.offsetWidth}}});var Me=te.useState(pt),Ai=(0,ve.Z)(Me,2),Xi=Ai[0],gr=Ai[1],tr=te.useState(tt),uo=(0,ve.Z)(tr,2),qr=uo[0],Ni=uo[1],an=te.useState(tt),en=(0,ve.Z)(an,2),Kt=en[0],Pt=en[1],Sn=te.useState([]),bn=(0,ve.Z)(Sn,2),zt=bn[0],gt=bn[1],xn=te.useState(null),Ln=(0,ve.Z)(xn,2),pi=Ln[0],Mn=Ln[1],It=te.useRef(tt);It.current=tt;function gn(){var Qt=It.current;Ni(Qt),Pt(Qt),gt([]),Mn(null),jr()}(0,Ae.Z)(function(){gr(pt);var Qt=Dt(Xi,pt);if(Qt.key!==null)if(Qt.add){var Cn=qr.findIndex(function(Yn){var Zn=Yn.key;return Zn===Qt.key}),$t=Vt(vt(qr,tt,Qt.key),Tn,Ot,yn),vn=qr.slice();vn.splice(Cn+1,0,Yt),Pt(vn),gt($t),Mn("show")}else{var En=tt.findIndex(function(Yn){var Zn=Yn.key;return Zn===Qt.key}),Pn=Vt(vt(tt,qr,Qt.key),Tn,Ot,yn),Rn=tt.slice();Rn.splice(En+1,0,Yt),Pt(Rn),gt(Pn),Mn("hide")}else qr!==tt&&(Ni(tt),Pt(tt))},[pt,tt]),te.useEffect(function(){dt||gn()},[dt]);var nn=Et?Kt:tt,ui={expandedKeys:pt,selectedKeys:nt,loadedKeys:we,loadingKeys:ye,checkedKeys:Oe,halfCheckedKeys:ke,dragOverNodeKey:on,dropPosition:mn,keyEntities:Ve};return te.createElement(te.Fragment,null,gi&&vi&&te.createElement("span",{style:Rt,"aria-live":"assertive"},Nt(vi)),te.createElement("div",null,te.createElement("input",{style:Rt,disabled:qn===!1||Be,tabIndex:qn!==!1?wi:null,onKeyDown:_n,onFocus:yr,onBlur:ir,value:"",onChange:Jt,"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:Vi,className:"".concat(mt,"-indent-unit")}))),te.createElement(Pe.Z,(0,ge.Z)({},Ki,{data:nn,itemKey:Ct,height:Ot,fullHeight:!1,virtual:Tn,itemHeight:yn,prefixCls:"".concat(mt,"-list"),ref:Ir,onVisibleChange:function(Cn,$t){var vn=new Set(Cn),En=$t.filter(function(Pn){return!vn.has(Pn)});En.some(function(Pn){return Ct(Pn)===at})&&gn()}}),function(Qt){var Cn=Qt.pos,$t=(0,ge.Z)({},(de(Qt.data),Qt.data)),vn=Qt.title,En=Qt.key,Pn=Qt.isStart,Rn=Qt.isEnd,Yn=(0,je.km)(En,Cn);delete $t.key,delete $t.children;var Zn=(0,je.H8)(Yn,ui);return te.createElement(Qe,(0,ge.Z)({},$t,Zn,{title:vn,active:!!vi&&En===vi.key,pos:Cn,data:Qt.data,isStart:Pn,isEnd:Rn,motion:Et,motionNodes:En===at?zt:null,motionType:pi,onMotionStart:xr,onMotionEnd:gn,treeNodeRequiredProps:ui,onMouseMove:function(){fr(null)}}))}))});sn.displayName="NodeList";var Nn=sn,hn=he(35654),Xn=he(90782),Ft=he(67841),Un=10,Kn=function(Zt){(0,ct.Z)(mt,Zt);var Xt=(0,Xe.Z)(mt);function mt(){var tt;(0,it.Z)(this,mt);for(var Wt=arguments.length,Lt=new Array(Wt),pt=0;pt<Wt;pt++)Lt[pt]=arguments[pt];return tt=Xt.call.apply(Xt,[this].concat(Lt)),tt.destroyed=!1,tt.delayedDragEnterLogic=void 0,tt.loadingRetryTimes={},tt.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,je.w$)()},tt.dragStartMousePosition=null,tt.dragNode=void 0,tt.currentMouseOverDroppableNodeKey=null,tt.listRef=te.createRef(),tt.onNodeDragStart=function(nt,Oe){var we=tt.state,ye=we.expandedKeys,ke=we.keyEntities,Ve=tt.props.onDragStart,Be=Oe.props.eventKey;tt.dragNode=Oe,tt.dragStartMousePosition={x:nt.clientX,y:nt.clientY};var dt=(0,hn._5)(ye,Be);tt.setState({draggingNodeKey:Be,dragChildrenKeys:(0,hn.wA)(Be,ke),indent:tt.listRef.current.getIndentWidth()}),tt.setExpandedKeys(dt),window.addEventListener("dragend",tt.onWindowDragEnd),Ve==null||Ve({event:nt,node:(0,je.F)(Oe.props)})},tt.onNodeDragEnter=function(nt,Oe){var we=tt.state,ye=we.expandedKeys,ke=we.keyEntities,Ve=we.dragChildrenKeys,Be=we.flattenNodes,dt=we.indent,on=tt.props,mn=on.onDragEnter,Et=on.onExpand,Ot=on.allowDrop,yn=on.direction,Tn=Oe.props,qn=Tn.pos,vi=Tn.eventKey,gi=(0,yt.Z)(tt),wi=gi.dragNode;if(tt.currentMouseOverDroppableNodeKey!==vi&&(tt.currentMouseOverDroppableNodeKey=vi),!wi){tt.resetDragState();return}var _n=(0,hn.OM)(nt,wi,Oe,dt,tt.dragStartMousePosition,Ot,Be,ke,ye,yn),yr=_n.dropPosition,ir=_n.dropLevelOffset,fr=_n.dropTargetKey,xr=_n.dropContainerKey,jr=_n.dropTargetPos,Ki=_n.dropAllowed,Ir=_n.dragOverNodeKey;if(Ve.indexOf(fr)!==-1||!Ki){tt.resetDragState();return}if(tt.delayedDragEnterLogic||(tt.delayedDragEnterLogic={}),Object.keys(tt.delayedDragEnterLogic).forEach(function(Vi){clearTimeout(tt.delayedDragEnterLogic[Vi])}),wi.props.eventKey!==Oe.props.eventKey&&(nt.persist(),tt.delayedDragEnterLogic[qn]=window.setTimeout(function(){if(tt.state.draggingNodeKey!==null){var Vi=(0,He.Z)(ye),Me=(0,Ft.Z)(ke,Oe.props.eventKey);Me&&(Me.children||[]).length&&(Vi=(0,hn.L0)(ye,Oe.props.eventKey)),"expandedKeys"in tt.props||tt.setExpandedKeys(Vi),Et==null||Et(Vi,{node:(0,je.F)(Oe.props),expanded:!0,nativeEvent:nt.nativeEvent})}},800)),wi.props.eventKey===fr&&ir===0){tt.resetDragState();return}tt.setState({dragOverNodeKey:Ir,dropPosition:yr,dropLevelOffset:ir,dropTargetKey:fr,dropContainerKey:xr,dropTargetPos:jr,dropAllowed:Ki}),mn==null||mn({event:nt,node:(0,je.F)(Oe.props),expandedKeys:ye})},tt.onNodeDragOver=function(nt,Oe){var we=tt.state,ye=we.dragChildrenKeys,ke=we.flattenNodes,Ve=we.keyEntities,Be=we.expandedKeys,dt=we.indent,on=tt.props,mn=on.onDragOver,Et=on.allowDrop,Ot=on.direction,yn=(0,yt.Z)(tt),Tn=yn.dragNode;if(Tn){var qn=(0,hn.OM)(nt,Tn,Oe,dt,tt.dragStartMousePosition,Et,ke,Ve,Be,Ot),vi=qn.dropPosition,gi=qn.dropLevelOffset,wi=qn.dropTargetKey,_n=qn.dropContainerKey,yr=qn.dropAllowed,ir=qn.dropTargetPos,fr=qn.dragOverNodeKey;ye.indexOf(wi)!==-1||!yr||(Tn.props.eventKey===wi&&gi===0?tt.state.dropPosition===null&&tt.state.dropLevelOffset===null&&tt.state.dropTargetKey===null&&tt.state.dropContainerKey===null&&tt.state.dropTargetPos===null&&tt.state.dropAllowed===!1&&tt.state.dragOverNodeKey===null||tt.resetDragState():vi===tt.state.dropPosition&&gi===tt.state.dropLevelOffset&&wi===tt.state.dropTargetKey&&_n===tt.state.dropContainerKey&&ir===tt.state.dropTargetPos&&yr===tt.state.dropAllowed&&fr===tt.state.dragOverNodeKey||tt.setState({dropPosition:vi,dropLevelOffset:gi,dropTargetKey:wi,dropContainerKey:_n,dropTargetPos:ir,dropAllowed:yr,dragOverNodeKey:fr}),mn==null||mn({event:nt,node:(0,je.F)(Oe.props)}))}},tt.onNodeDragLeave=function(nt,Oe){tt.currentMouseOverDroppableNodeKey===Oe.props.eventKey&&!nt.currentTarget.contains(nt.relatedTarget)&&(tt.resetDragState(),tt.currentMouseOverDroppableNodeKey=null);var we=tt.props.onDragLeave;we==null||we({event:nt,node:(0,je.F)(Oe.props)})},tt.onWindowDragEnd=function(nt){tt.onNodeDragEnd(nt,null,!0),window.removeEventListener("dragend",tt.onWindowDragEnd)},tt.onNodeDragEnd=function(nt,Oe){var we=tt.props.onDragEnd;tt.setState({dragOverNodeKey:null}),tt.cleanDragState(),we==null||we({event:nt,node:(0,je.F)(Oe.props)}),tt.dragNode=null,window.removeEventListener("dragend",tt.onWindowDragEnd)},tt.onNodeDrop=function(nt,Oe){var we,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ke=tt.state,Ve=ke.dragChildrenKeys,Be=ke.dropPosition,dt=ke.dropTargetKey,on=ke.dropTargetPos,mn=ke.dropAllowed;if(mn){var Et=tt.props.onDrop;if(tt.setState({dragOverNodeKey:null}),tt.cleanDragState(),dt!==null){var Ot=(0,ot.Z)((0,ot.Z)({},(0,je.H8)(dt,tt.getTreeNodeRequiredProps())),{},{active:((we=tt.getActiveItem())===null||we===void 0?void 0:we.key)===dt,data:(0,Ft.Z)(tt.state.keyEntities,dt).node}),yn=Ve.indexOf(dt)!==-1;(0,ee.ZP)(!yn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Tn=(0,hn.yx)(on),qn={event:nt,node:(0,je.F)(Ot),dragNode:tt.dragNode?(0,je.F)(tt.dragNode.props):null,dragNodesKeys:[tt.dragNode.props.eventKey].concat(Ve),dropToGap:Be!==0,dropPosition:Be+Number(Tn[Tn.length-1])};ye||Et==null||Et(qn),tt.dragNode=null}}},tt.cleanDragState=function(){var nt=tt.state.draggingNodeKey;nt!==null&&tt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),tt.dragStartMousePosition=null,tt.currentMouseOverDroppableNodeKey=null},tt.triggerExpandActionExpand=function(nt,Oe){var we=tt.state,ye=we.expandedKeys,ke=we.flattenNodes,Ve=Oe.expanded,Be=Oe.key,dt=Oe.isLeaf;if(!(dt||nt.shiftKey||nt.metaKey||nt.ctrlKey)){var on=ke.filter(function(Et){return Et.key===Be})[0],mn=(0,je.F)((0,ot.Z)((0,ot.Z)({},(0,je.H8)(Be,tt.getTreeNodeRequiredProps())),{},{data:on.data}));tt.setExpandedKeys(Ve?(0,hn._5)(ye,Be):(0,hn.L0)(ye,Be)),tt.onNodeExpand(nt,mn)}},tt.onNodeClick=function(nt,Oe){var we=tt.props,ye=we.onClick,ke=we.expandAction;ke==="click"&&tt.triggerExpandActionExpand(nt,Oe),ye==null||ye(nt,Oe)},tt.onNodeDoubleClick=function(nt,Oe){var we=tt.props,ye=we.onDoubleClick,ke=we.expandAction;ke==="doubleClick"&&tt.triggerExpandActionExpand(nt,Oe),ye==null||ye(nt,Oe)},tt.onNodeSelect=function(nt,Oe){var we=tt.state.selectedKeys,ye=tt.state,ke=ye.keyEntities,Ve=ye.fieldNames,Be=tt.props,dt=Be.onSelect,on=Be.multiple,mn=Oe.selected,Et=Oe[Ve.key],Ot=!mn;Ot?on?we=(0,hn.L0)(we,Et):we=[Et]:we=(0,hn._5)(we,Et);var yn=we.map(function(Tn){var qn=(0,Ft.Z)(ke,Tn);return qn?qn.node:null}).filter(function(Tn){return Tn});tt.setUncontrolledState({selectedKeys:we}),dt==null||dt(we,{event:"select",selected:Ot,node:Oe,selectedNodes:yn,nativeEvent:nt.nativeEvent})},tt.onNodeCheck=function(nt,Oe,we){var ye=tt.state,ke=ye.keyEntities,Ve=ye.checkedKeys,Be=ye.halfCheckedKeys,dt=tt.props,on=dt.checkStrictly,mn=dt.onCheck,Et=Oe.key,Ot,yn={event:"check",node:Oe,checked:we,nativeEvent:nt.nativeEvent};if(on){var Tn=we?(0,hn.L0)(Ve,Et):(0,hn._5)(Ve,Et),qn=(0,hn._5)(Be,Et);Ot={checked:Tn,halfChecked:qn},yn.checkedNodes=Tn.map(function(ir){return(0,Ft.Z)(ke,ir)}).filter(function(ir){return ir}).map(function(ir){return ir.node}),tt.setUncontrolledState({checkedKeys:Tn})}else{var vi=(0,Xn.S)([].concat((0,He.Z)(Ve),[Et]),!0,ke),gi=vi.checkedKeys,wi=vi.halfCheckedKeys;if(!we){var _n=new Set(gi);_n.delete(Et);var yr=(0,Xn.S)(Array.from(_n),{checked:!1,halfCheckedKeys:wi},ke);gi=yr.checkedKeys,wi=yr.halfCheckedKeys}Ot=gi,yn.checkedNodes=[],yn.checkedNodesPositions=[],yn.halfCheckedKeys=wi,gi.forEach(function(ir){var fr=(0,Ft.Z)(ke,ir);if(fr){var xr=fr.node,jr=fr.pos;yn.checkedNodes.push(xr),yn.checkedNodesPositions.push({node:xr,pos:jr})}}),tt.setUncontrolledState({checkedKeys:gi},!1,{halfCheckedKeys:wi})}mn==null||mn(Ot,yn)},tt.onNodeLoad=function(nt){var Oe=nt.key,we=new Promise(function(ye,ke){tt.setState(function(Ve){var Be=Ve.loadedKeys,dt=Be===void 0?[]:Be,on=Ve.loadingKeys,mn=on===void 0?[]:on,Et=tt.props,Ot=Et.loadData,yn=Et.onLoad;if(!Ot||dt.indexOf(Oe)!==-1||mn.indexOf(Oe)!==-1)return null;var Tn=Ot(nt);return Tn.then(function(){var qn=tt.state.loadedKeys,vi=(0,hn.L0)(qn,Oe);yn==null||yn(vi,{event:"load",node:nt}),tt.setUncontrolledState({loadedKeys:vi}),tt.setState(function(gi){return{loadingKeys:(0,hn._5)(gi.loadingKeys,Oe)}}),ye()}).catch(function(qn){if(tt.setState(function(gi){return{loadingKeys:(0,hn._5)(gi.loadingKeys,Oe)}}),tt.loadingRetryTimes[Oe]=(tt.loadingRetryTimes[Oe]||0)+1,tt.loadingRetryTimes[Oe]>=Un){var vi=tt.state.loadedKeys;(0,ee.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),tt.setUncontrolledState({loadedKeys:(0,hn.L0)(vi,Oe)}),ye()}ke(qn)}),{loadingKeys:(0,hn.L0)(mn,Oe)}})});return we.catch(function(){}),we},tt.onNodeMouseEnter=function(nt,Oe){var we=tt.props.onMouseEnter;we==null||we({event:nt,node:Oe})},tt.onNodeMouseLeave=function(nt,Oe){var we=tt.props.onMouseLeave;we==null||we({event:nt,node:Oe})},tt.onNodeContextMenu=function(nt,Oe){var we=tt.props.onRightClick;we&&(nt.preventDefault(),we({event:nt,node:Oe}))},tt.onFocus=function(){var nt=tt.props.onFocus;tt.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)},tt.onBlur=function(){var nt=tt.props.onBlur;tt.setState({focused:!1}),tt.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)},tt.getTreeNodeRequiredProps=function(){var nt=tt.state,Oe=nt.expandedKeys,we=nt.selectedKeys,ye=nt.loadedKeys,ke=nt.loadingKeys,Ve=nt.checkedKeys,Be=nt.halfCheckedKeys,dt=nt.dragOverNodeKey,on=nt.dropPosition,mn=nt.keyEntities;return{expandedKeys:Oe||[],selectedKeys:we||[],loadedKeys:ye||[],loadingKeys:ke||[],checkedKeys:Ve||[],halfCheckedKeys:Be||[],dragOverNodeKey:dt,dropPosition:on,keyEntities:mn}},tt.setExpandedKeys=function(nt){var Oe=tt.state,we=Oe.treeData,ye=Oe.fieldNames,ke=(0,je.oH)(we,nt,ye);tt.setUncontrolledState({expandedKeys:nt,flattenNodes:ke},!0)},tt.onNodeExpand=function(nt,Oe){var we=tt.state.expandedKeys,ye=tt.state,ke=ye.listChanging,Ve=ye.fieldNames,Be=tt.props,dt=Be.onExpand,on=Be.loadData,mn=Oe.expanded,Et=Oe[Ve.key];if(!ke){var Ot=we.indexOf(Et),yn=!mn;if((0,ee.ZP)(mn&&Ot!==-1||!mn&&Ot===-1,"Expand state not sync with index check"),yn?we=(0,hn.L0)(we,Et):we=(0,hn._5)(we,Et),tt.setExpandedKeys(we),dt==null||dt(we,{node:Oe,expanded:yn,nativeEvent:nt.nativeEvent}),yn&&on){var Tn=tt.onNodeLoad(Oe);Tn&&Tn.then(function(){var qn=(0,je.oH)(tt.state.treeData,we,Ve);tt.setUncontrolledState({flattenNodes:qn})}).catch(function(){var qn=tt.state.expandedKeys,vi=(0,hn._5)(qn,Et);tt.setExpandedKeys(vi)})}}},tt.onListChangeStart=function(){tt.setUncontrolledState({listChanging:!0})},tt.onListChangeEnd=function(){setTimeout(function(){tt.setUncontrolledState({listChanging:!1})})},tt.onActiveChange=function(nt){var Oe=tt.state.activeKey,we=tt.props.onActiveChange;Oe!==nt&&(tt.setState({activeKey:nt}),nt!==null&&tt.scrollTo({key:nt}),we==null||we(nt))},tt.getActiveItem=function(){var nt=tt.state,Oe=nt.activeKey,we=nt.flattenNodes;return Oe===null?null:we.find(function(ye){var ke=ye.key;return ke===Oe})||null},tt.offsetActiveKey=function(nt){var Oe=tt.state,we=Oe.flattenNodes,ye=Oe.activeKey,ke=we.findIndex(function(dt){var on=dt.key;return on===ye});ke===-1&&nt<0&&(ke=we.length),ke=(ke+nt+we.length)%we.length;var Ve=we[ke];if(Ve){var Be=Ve.key;tt.onActiveChange(Be)}else tt.onActiveChange(null)},tt.onKeyDown=function(nt){var Oe=tt.state,we=Oe.activeKey,ye=Oe.expandedKeys,ke=Oe.checkedKeys,Ve=Oe.fieldNames,Be=tt.props,dt=Be.onKeyDown,on=Be.checkable,mn=Be.selectable;switch(nt.which){case Ue.Z.UP:{tt.offsetActiveKey(-1),nt.preventDefault();break}case Ue.Z.DOWN:{tt.offsetActiveKey(1),nt.preventDefault();break}}var Et=tt.getActiveItem();if(Et&&Et.data){var Ot=tt.getTreeNodeRequiredProps(),yn=Et.data.isLeaf===!1||!!(Et.data[Ve.children]||[]).length,Tn=(0,je.F)((0,ot.Z)((0,ot.Z)({},(0,je.H8)(we,Ot)),{},{data:Et.data,active:!0}));switch(nt.which){case Ue.Z.LEFT:{yn&&ye.includes(we)?tt.onNodeExpand({},Tn):Et.parent&&tt.onActiveChange(Et.parent.key),nt.preventDefault();break}case Ue.Z.RIGHT:{yn&&!ye.includes(we)?tt.onNodeExpand({},Tn):Et.children&&Et.children.length&&tt.onActiveChange(Et.children[0].key),nt.preventDefault();break}case Ue.Z.ENTER:case Ue.Z.SPACE:{on&&!Tn.disabled&&Tn.checkable!==!1&&!Tn.disableCheckbox?tt.onNodeCheck({},Tn,!ke.includes(we)):!on&&mn&&!Tn.disabled&&Tn.selectable!==!1&&tt.onNodeSelect({},Tn);break}}}dt==null||dt(nt)},tt.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(!tt.destroyed){var ye=!1,ke=!0,Ve={};Object.keys(nt).forEach(function(Be){if(Be in tt.props){ke=!1;return}ye=!0,Ve[Be]=nt[Be]}),ye&&(!Oe||ke)&&tt.setState((0,ot.Z)((0,ot.Z)({},Ve),we))}},tt.scrollTo=function(nt){tt.listRef.current.scrollTo(nt)},tt}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 Wt=this.props.activeKey;Wt!==void 0&&Wt!==this.state.activeKey&&(this.setState({activeKey:Wt}),Wt!==null&&this.scrollTo({key:Wt}))}},{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 Wt,Lt=this.state,pt=Lt.focused,nt=Lt.flattenNodes,Oe=Lt.keyEntities,we=Lt.draggingNodeKey,ye=Lt.activeKey,ke=Lt.dropLevelOffset,Ve=Lt.dropContainerKey,Be=Lt.dropTargetKey,dt=Lt.dropPosition,on=Lt.dragOverNodeKey,mn=Lt.indent,Et=this.props,Ot=Et.prefixCls,yn=Et.className,Tn=Et.style,qn=Et.showLine,vi=Et.focusable,gi=Et.tabIndex,wi=gi===void 0?0:gi,_n=Et.selectable,yr=Et.showIcon,ir=Et.icon,fr=Et.switcherIcon,xr=Et.draggable,jr=Et.checkable,Ki=Et.checkStrictly,Ir=Et.disabled,Vi=Et.motion,Me=Et.loadData,Ai=Et.filterTreeNode,Xi=Et.height,gr=Et.itemHeight,tr=Et.virtual,uo=Et.titleRender,qr=Et.dropIndicatorRender,Ni=Et.onContextMenu,an=Et.onScroll,en=Et.direction,Kt=Et.rootClassName,Pt=Et.rootStyle,Sn=(0,Ee.Z)(this.props,{aria:!0,data:!0}),bn;return xr&&((0,Ke.Z)(xr)==="object"?bn=xr:typeof xr=="function"?bn={nodeDraggable:xr}:bn={}),te.createElement(ue.k.Provider,{value:{prefixCls:Ot,selectable:_n,showIcon:yr,icon:ir,switcherIcon:fr,draggable:bn,draggingNodeKey:we,checkable:jr,checkStrictly:Ki,disabled:Ir,keyEntities:Oe,dropLevelOffset:ke,dropContainerKey:Ve,dropTargetKey:Be,dropPosition:dt,dragOverNodeKey:on,indent:mn,direction:en,dropIndicatorRender:qr,loadData:Me,filterTreeNode:Ai,titleRender:uo,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:Je()(Ot,yn,Kt,(Wt={},(0,Ie.Z)(Wt,"".concat(Ot,"-show-line"),qn),(0,Ie.Z)(Wt,"".concat(Ot,"-focused"),pt),(0,Ie.Z)(Wt,"".concat(Ot,"-active-focused"),ye!==null),Wt)),style:Pt},te.createElement(Nn,(0,ge.Z)({ref:this.listRef,prefixCls:Ot,style:Tn,data:nt,disabled:Ir,selectable:_n,checkable:!!jr,motion:Vi,dragging:we!==null,height:Xi,itemHeight:gr,virtual:tr,focusable:vi,focused:pt,tabIndex:wi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ni,onScroll:an},this.getTreeNodeRequiredProps(),Sn))))}}],[{key:"getDerivedStateFromProps",value:function(Wt,Lt){var pt=Lt.prevProps,nt={prevProps:Wt};function Oe(vi){return!pt&&vi in Wt||pt&&pt[vi]!==Wt[vi]}var we,ye=Lt.fieldNames;if(Oe("fieldNames")&&(ye=(0,je.w$)(Wt.fieldNames),nt.fieldNames=ye),Oe("treeData")?we=Wt.treeData:Oe("children")&&((0,ee.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,je.zn)(Wt.children)),we){nt.treeData=we;var ke=(0,je.I8)(we,{fieldNames:ye});nt.keyEntities=(0,ot.Z)((0,Ie.Z)({},at,Mt),ke.keyEntities)}var Ve=nt.keyEntities||Lt.keyEntities;if(Oe("expandedKeys")||pt&&Oe("autoExpandParent"))nt.expandedKeys=Wt.autoExpandParent||!pt&&Wt.defaultExpandParent?(0,hn.r7)(Wt.expandedKeys,Ve):Wt.expandedKeys;else if(!pt&&Wt.defaultExpandAll){var Be=(0,ot.Z)({},Ve);delete Be[at],nt.expandedKeys=Object.keys(Be).map(function(vi){return Be[vi].key})}else!pt&&Wt.defaultExpandedKeys&&(nt.expandedKeys=Wt.autoExpandParent||Wt.defaultExpandParent?(0,hn.r7)(Wt.defaultExpandedKeys,Ve):Wt.defaultExpandedKeys);if(nt.expandedKeys||delete nt.expandedKeys,we||nt.expandedKeys){var dt=(0,je.oH)(we||Lt.treeData,nt.expandedKeys||Lt.expandedKeys,ye);nt.flattenNodes=dt}if(Wt.selectable&&(Oe("selectedKeys")?nt.selectedKeys=(0,hn.BT)(Wt.selectedKeys,Wt):!pt&&Wt.defaultSelectedKeys&&(nt.selectedKeys=(0,hn.BT)(Wt.defaultSelectedKeys,Wt))),Wt.checkable){var on;if(Oe("checkedKeys")?on=(0,hn.E6)(Wt.checkedKeys)||{}:!pt&&Wt.defaultCheckedKeys?on=(0,hn.E6)(Wt.defaultCheckedKeys)||{}:we&&(on=(0,hn.E6)(Wt.checkedKeys)||{checkedKeys:Lt.checkedKeys,halfCheckedKeys:Lt.halfCheckedKeys}),on){var mn=on,Et=mn.checkedKeys,Ot=Et===void 0?[]:Et,yn=mn.halfCheckedKeys,Tn=yn===void 0?[]:yn;if(!Wt.checkStrictly){var qn=(0,Xn.S)(Ot,!0,Ve);Ot=qn.checkedKeys,Tn=qn.halfCheckedKeys}nt.checkedKeys=Ot,nt.halfCheckedKeys=Tn}}return Oe("loadedKeys")&&(nt.loadedKeys=Wt.loadedKeys),nt}}]),mt}(te.Component);Kn.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:oe,allowDrop:function(){return!0},expandAction:!1},Kn.TreeNode=Le.Z;var ti=Kn,Fn=ti},35654:function(fn,jt,he){"use strict";he.d(jt,{BT:function(){return te},E6:function(){return de},L0:function(){return Xe},OM:function(){return ee},_5:function(){return ct},r7:function(){return ve},wA:function(){return Je},yx:function(){return et}});var ge=he(26390),Ie=he(80665),Ke=he(51395),ot=he(59301),He=he(39417),it=he(67841),be=he(71430),yt=null;function ct(xe,Ae){if(!xe)return[];var Pe=xe.slice(),Ne=Pe.indexOf(Ae);return Ne>=0&&Pe.splice(Ne,1),Pe}function Xe(xe,Ae){var Pe=(xe||[]).slice();return Pe.indexOf(Ae)===-1&&Pe.push(Ae),Pe}function et(xe){return xe.split("-")}function Je(xe,Ae){var Pe=[],Ne=(0,it.Z)(Ae,xe);function Le(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Re.forEach(function(je){var Ge=je.key,We=je.children;Pe.push(Ge),Le(We)})}return Le(Ne.children),Pe}function Ue(xe){if(xe.parent){var Ae=et(xe.pos);return Number(Ae[Ae.length-1])===xe.parent.children.length-1}return!1}function Ee(xe){var Ae=et(xe.pos);return Number(Ae[Ae.length-1])===0}function ee(xe,Ae,Pe,Ne,Le,Re,je,Ge,We,bt){var Qe,Dt=xe.clientX,vt=xe.clientY,kt=xe.target.getBoundingClientRect(),Rt=kt.top,Jt=kt.height,at=(bt==="rtl"?-1:1)*(((Le==null?void 0:Le.x)||0)-Dt),Ze=(at-12)/Ne,Mt=(0,it.Z)(Ge,Pe.props.eventKey);if(vt<Rt+Jt/2){var Yt=je.findIndex(function(Fn){return Fn.key===Mt.key}),Vt=Yt<=0?0:Yt-1,Ct=je[Vt].key;Mt=(0,it.Z)(Ge,Ct)}var Nt=Mt.key,sn=Mt,Nn=Mt.key,hn=0,Xn=0;if(!We.includes(Nt))for(var Ft=0;Ft<Ze&&Ue(Mt);Ft+=1)Mt=Mt.parent,Xn+=1;var Un=Ae.props.data,Kn=Mt.node,ti=!0;return Ee(Mt)&&Mt.level===0&&vt<Rt+Jt/2&&Re({dragNode:Un,dropNode:Kn,dropPosition:-1})&&Mt.key===Pe.props.eventKey?hn=-1:(sn.children||[]).length&&We.includes(Nn)?Re({dragNode:Un,dropNode:Kn,dropPosition:0})?hn=0:ti=!1:Xn===0?Ze>-1.5?Re({dragNode:Un,dropNode:Kn,dropPosition:1})?hn=1:ti=!1:Re({dragNode:Un,dropNode:Kn,dropPosition:0})?hn=0:Re({dragNode:Un,dropNode:Kn,dropPosition:1})?hn=1:ti=!1:Re({dragNode:Un,dropNode:Kn,dropPosition:1})?hn=1:ti=!1,{dropPosition:hn,dropLevelOffset:Xn,dropTargetKey:Mt.key,dropTargetPos:Mt.pos,dragOverNodeKey:Nn,dropContainerKey:hn===0?null:((Qe=Mt.parent)===null||Qe===void 0?void 0:Qe.key)||null,dropAllowed:ti}}function te(xe,Ae){if(xe){var Pe=Ae.multiple;return Pe?xe.slice():xe.length?[xe[0]]:xe}}var ue=function(Ae){return Ae};function oe(xe,Ae){if(!xe)return[];var Pe=Ae||{},Ne=Pe.processProps,Le=Ne===void 0?ue:Ne,Re=Array.isArray(xe)?xe:[xe];return Re.map(function(je){var Ge=je.children,We=_objectWithoutProperties(je,yt),bt=oe(Ge,Ae);return React.createElement(TreeNode,_extends({key:We.key},Le(We)),bt)})}function de(xe){if(!xe)return null;var Ae;if(Array.isArray(xe))Ae={checkedKeys:xe,halfCheckedKeys:void 0};else if((0,Ie.Z)(xe)==="object")Ae={checkedKeys:xe.checked||void 0,halfCheckedKeys:xe.halfChecked||void 0};else return(0,Ke.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function ve(xe,Ae){var Pe=new Set;function Ne(Le){if(!Pe.has(Le)){var Re=(0,it.Z)(Ae,Le);if(Re){Pe.add(Le);var je=Re.parent,Ge=Re.node;Ge.disabled||je&&Ne(je.key)}}}return(xe||[]).forEach(function(Le){Ne(Le)}),(0,ge.Z)(Pe)}},90782:function(fn,jt,he){"use strict";he.d(jt,{S:function(){return be}});var ge=he(51395),Ie=he(67841);function Ke(yt,ct){var Xe=new Set;return yt.forEach(function(et){ct.has(et)||Xe.add(et)}),Xe}function ot(yt){var ct=yt||{},Xe=ct.disabled,et=ct.disableCheckbox,Je=ct.checkable;return!!(Xe||et)||Je===!1}function He(yt,ct,Xe,et){for(var Je=new Set(yt),Ue=new Set,Ee=0;Ee<=Xe;Ee+=1){var ee=ct.get(Ee)||new Set;ee.forEach(function(de){var ve=de.key,xe=de.node,Ae=de.children,Pe=Ae===void 0?[]:Ae;Je.has(ve)&&!et(xe)&&Pe.filter(function(Ne){return!et(Ne.node)}).forEach(function(Ne){Je.add(Ne.key)})})}for(var te=new Set,ue=Xe;ue>=0;ue-=1){var oe=ct.get(ue)||new Set;oe.forEach(function(de){var ve=de.parent,xe=de.node;if(!(et(xe)||!de.parent||te.has(de.parent.key))){if(et(de.parent.node)){te.add(ve.key);return}var Ae=!0,Pe=!1;(ve.children||[]).filter(function(Ne){return!et(Ne.node)}).forEach(function(Ne){var Le=Ne.key,Re=Je.has(Le);Ae&&!Re&&(Ae=!1),!Pe&&(Re||Ue.has(Le))&&(Pe=!0)}),Ae&&Je.add(ve.key),Pe&&Ue.add(ve.key),te.add(ve.key)}})}return{checkedKeys:Array.from(Je),halfCheckedKeys:Array.from(Ke(Ue,Je))}}function it(yt,ct,Xe,et,Je){for(var Ue=new Set(yt),Ee=new Set(ct),ee=0;ee<=et;ee+=1){var te=Xe.get(ee)||new Set;te.forEach(function(ve){var xe=ve.key,Ae=ve.node,Pe=ve.children,Ne=Pe===void 0?[]:Pe;!Ue.has(xe)&&!Ee.has(xe)&&!Je(Ae)&&Ne.filter(function(Le){return!Je(Le.node)}).forEach(function(Le){Ue.delete(Le.key)})})}Ee=new Set;for(var ue=new Set,oe=et;oe>=0;oe-=1){var de=Xe.get(oe)||new Set;de.forEach(function(ve){var xe=ve.parent,Ae=ve.node;if(!(Je(Ae)||!ve.parent||ue.has(ve.parent.key))){if(Je(ve.parent.node)){ue.add(xe.key);return}var Pe=!0,Ne=!1;(xe.children||[]).filter(function(Le){return!Je(Le.node)}).forEach(function(Le){var Re=Le.key,je=Ue.has(Re);Pe&&!je&&(Pe=!1),!Ne&&(je||Ee.has(Re))&&(Ne=!0)}),Pe||Ue.delete(xe.key),Ne&&Ee.add(xe.key),ue.add(xe.key)}})}return{checkedKeys:Array.from(Ue),halfCheckedKeys:Array.from(Ke(Ee,Ue))}}function be(yt,ct,Xe,et){var Je=[],Ue;et?Ue=et:Ue=ot;var Ee=new Set(yt.filter(function(oe){var de=!!(0,Ie.Z)(Xe,oe);return de||Je.push(oe),de})),ee=new Map,te=0;Object.keys(Xe).forEach(function(oe){var de=Xe[oe],ve=de.level,xe=ee.get(ve);xe||(xe=new Set,ee.set(ve,xe)),xe.add(de),te=Math.max(te,ve)}),(0,ge.ZP)(!Je.length,"Tree missing follow keys: ".concat(Je.slice(0,100).map(function(oe){return"'".concat(oe,"'")}).join(", ")));var ue;return ct===!0?ue=He(Ee,ee,te,Ue):ue=it(Ee,ct.halfCheckedKeys,ee,te,Ue),ue}},67841:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ge}});function ge(Ie,Ke){return Ie[Ke]}},71430:function(fn,jt,he){"use strict";he.d(jt,{F:function(){return ve},H8:function(){return de},I8:function(){return oe},km:function(){return Je},oH:function(){return te},w$:function(){return Ue},zn:function(){return ee}});var ge=he(80665),Ie=he(26390),Ke=he(57259),ot=he(19149),He=he(38298),it=he(64002),be=he(51395),yt=he(67841),ct=["children"];function Xe(xe,Ae){return"".concat(xe,"-").concat(Ae)}function et(xe){return xe&&xe.type&&xe.type.isTreeNode}function Je(xe,Ae){return xe!=null?xe:Ae}function Ue(xe){var Ae=xe||{},Pe=Ae.title,Ne=Ae._title,Le=Ae.key,Re=Ae.children,je=Pe||"title";return{title:je,_title:Ne||[je],key:Le||"key",children:Re||"children"}}function Ee(xe,Ae){var Pe=new Map;function Ne(Le){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Le||[]).forEach(function(je){var Ge=je[Ae.key],We=je[Ae.children];warning(Ge!=null,"Tree node must have a certain key: [".concat(Re).concat(Ge,"]"));var bt=String(Ge);warning(!Pe.has(bt)||Ge===null||Ge===void 0,"Same 'key' exist in the Tree: ".concat(bt)),Pe.set(bt,!0),Ne(We,"".concat(Re).concat(bt," > "))})}Ne(xe)}function ee(xe){function Ae(Pe){var Ne=(0,He.Z)(Pe);return Ne.map(function(Le){if(!et(Le))return(0,be.ZP)(!Le,"Tree/TreeNode can only accept TreeNode as children."),null;var Re=Le.key,je=Le.props,Ge=je.children,We=(0,ot.Z)(je,ct),bt=(0,Ke.Z)({key:Re},We),Qe=Ae(Ge);return Qe.length&&(bt.children=Qe),bt}).filter(function(Le){return Le})}return Ae(xe)}function te(xe,Ae,Pe){var Ne=Ue(Pe),Le=Ne._title,Re=Ne.key,je=Ne.children,Ge=new Set(Ae===!0?[]:Ae),We=[];function bt(Qe){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Qe.map(function(vt,kt){for(var Rt=Xe(Dt?Dt.pos:"0",kt),Jt=Je(vt[Re],Rt),at,Ze=0;Ze<Le.length;Ze+=1){var Mt=Le[Ze];if(vt[Mt]!==void 0){at=vt[Mt];break}}var Yt=(0,Ke.Z)((0,Ke.Z)({},(0,it.Z)(vt,[].concat((0,Ie.Z)(Le),[Re,je]))),{},{title:at,key:Jt,parent:Dt,pos:Rt,children:null,data:vt,isStart:[].concat((0,Ie.Z)(Dt?Dt.isStart:[]),[kt===0]),isEnd:[].concat((0,Ie.Z)(Dt?Dt.isEnd:[]),[kt===Qe.length-1])});return We.push(Yt),Ae===!0||Ge.has(Jt)?Yt.children=bt(vt[je]||[],Yt):Yt.children=[],Yt})}return bt(xe),We}function ue(xe,Ae,Pe){var Ne={};(0,ge.Z)(Pe)==="object"?Ne=Pe:Ne={externalGetKey:Pe},Ne=Ne||{};var Le=Ne,Re=Le.childrenPropName,je=Le.externalGetKey,Ge=Le.fieldNames,We=Ue(Ge),bt=We.key,Qe=We.children,Dt=Re||Qe,vt;je?typeof je=="string"?vt=function(Jt){return Jt[je]}:typeof je=="function"&&(vt=function(Jt){return je(Jt)}):vt=function(Jt,at){return Je(Jt[bt],at)};function kt(Rt,Jt,at,Ze){var Mt=Rt?Rt[Dt]:xe,Yt=Rt?Xe(at.pos,Jt):"0",Vt=Rt?[].concat((0,Ie.Z)(Ze),[Rt]):[];if(Rt){var Ct=vt(Rt,Yt),Nt={node:Rt,index:Jt,pos:Yt,key:Ct,parentPos:at.node?at.pos:null,level:at.level+1,nodes:Vt};Ae(Nt)}Mt&&Mt.forEach(function(sn,Nn){kt(sn,Nn,{node:Rt,pos:Yt,level:at?at.level+1:-1},Vt)})}kt(null)}function oe(xe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=Ae.initWrapper,Ne=Ae.processEntity,Le=Ae.onProcessFinished,Re=Ae.externalGetKey,je=Ae.childrenPropName,Ge=Ae.fieldNames,We=arguments.length>2?arguments[2]:void 0,bt=Re||We,Qe={},Dt={},vt={posEntities:Qe,keyEntities:Dt};return Pe&&(vt=Pe(vt)||vt),ue(xe,function(kt){var Rt=kt.node,Jt=kt.index,at=kt.pos,Ze=kt.key,Mt=kt.parentPos,Yt=kt.level,Vt=kt.nodes,Ct={node:Rt,nodes:Vt,index:Jt,key:Ze,pos:at,level:Yt},Nt=Je(Ze,at);Qe[at]=Ct,Dt[Nt]=Ct,Ct.parent=Qe[Mt],Ct.parent&&(Ct.parent.children=Ct.parent.children||[],Ct.parent.children.push(Ct)),Ne&&Ne(Ct,vt)},{externalGetKey:bt,childrenPropName:je,fieldNames:Ge}),Le&&Le(vt),vt}function de(xe,Ae){var Pe=Ae.expandedKeys,Ne=Ae.selectedKeys,Le=Ae.loadedKeys,Re=Ae.loadingKeys,je=Ae.checkedKeys,Ge=Ae.halfCheckedKeys,We=Ae.dragOverNodeKey,bt=Ae.dropPosition,Qe=Ae.keyEntities,Dt=(0,yt.Z)(Qe,xe),vt={eventKey:xe,expanded:Pe.indexOf(xe)!==-1,selected:Ne.indexOf(xe)!==-1,loaded:Le.indexOf(xe)!==-1,loading:Re.indexOf(xe)!==-1,checked:je.indexOf(xe)!==-1,halfChecked:Ge.indexOf(xe)!==-1,pos:String(Dt?Dt.pos:""),dragOver:We===xe&&bt===0,dragOverGapTop:We===xe&&bt===-1,dragOverGapBottom:We===xe&&bt===1};return vt}function ve(xe){var Ae=xe.data,Pe=xe.expanded,Ne=xe.selected,Le=xe.checked,Re=xe.loaded,je=xe.loading,Ge=xe.halfChecked,We=xe.dragOver,bt=xe.dragOverGapTop,Qe=xe.dragOverGapBottom,Dt=xe.pos,vt=xe.active,kt=xe.eventKey,Rt=(0,Ke.Z)((0,Ke.Z)({},Ae),{},{expanded:Pe,selected:Ne,checked:Le,loaded:Re,loading:je,halfChecked:Ge,dragOver:We,dragOverGapTop:bt,dragOverGapBottom:Qe,pos:Dt,active:vt,key:kt});return"props"in Rt||Object.defineProperty(Rt,"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`."),xe}}),Rt}},8178:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return Ie}});var ge=he(4676);function Ie(Ke,ot,He,it){var be=ge.unstable_batchedUpdates?function(ct){ge.unstable_batchedUpdates(He,ct)}:He;return Ke!=null&&Ke.addEventListener&&Ke.addEventListener(ot,be,it),{remove:function(){Ke!=null&&Ke.removeEventListener&&Ke.removeEventListener(ot,be,it)}}}},21783:function(fn,jt,he){"use strict";he.d(jt,{g1:function(){return et},os:function(){return Ue}});var ge=/margin|padding|width|height|max|min|offset/,Ie={left:!0,top:!0},Ke={cssFloat:1,styleFloat:1,float:1};function ot(Ee){return Ee.nodeType===1?Ee.ownerDocument.defaultView.getComputedStyle(Ee,null):{}}function He(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]=ge.test(ee)),Ie[ee]?parseFloat(te)||0:te}function it(Ee,ee){var te=arguments.length,ue=ot(Ee);return ee=Ke[ee]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":ee,te===1?ue:He(Ee,ee,ue[ee]||Ee.style[ee])}function be(Ee,ee,te){var ue=arguments.length;if(ee=Ke[ee]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":ee,ue===3)return typeof te=="number"&&ge.test(ee)&&(te="".concat(te,"px")),Ee.style[ee]=te,te;for(var oe in ee)ee.hasOwnProperty(oe)&&be(Ee,oe,ee[oe]);return ot(Ee)}function yt(Ee){return Ee===document.body?document.documentElement.clientWidth:Ee.offsetWidth}function ct(Ee){return Ee===document.body?window.innerHeight||document.documentElement.clientHeight:Ee.offsetHeight}function Xe(){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 et(){var Ee=document.documentElement.clientWidth,ee=window.innerHeight||document.documentElement.clientHeight;return{width:Ee,height:ee}}function Je(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ue(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(fn,jt,he){"use strict";he.d(jt,{G:function(){return ot}});var ge=he(87746),Ie=function(it){if((0,ge.Z)()&&window.document.documentElement){var be=Array.isArray(it)?it:[it],yt=window.document.documentElement;return be.some(function(ct){return ct in yt.style})}return!1},Ke=function(it,be){if(!Ie(it))return!1;var yt=document.createElement("div"),ct=yt.style[it];return yt.style[it]=be,yt.style[it]!==ct};function ot(He,it){return!Array.isArray(He)&&it!==void 0?Ke(He,it):Ie(He)}},21881:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return ti}});var ge=he(5891),Ie=he(80665),Ke=he(57259),ot=he(80962),He=he(29043),it=he(19149),be=he(92310),yt=he.n(be),ct=he(29301),Xe=he(80764),et=he(28800),Je=he(59301),Ue=he(4676),Ee=Je.forwardRef(function(Fn,Zt){var Xt=Fn.height,mt=Fn.offsetY,tt=Fn.offsetX,Wt=Fn.children,Lt=Fn.prefixCls,pt=Fn.onInnerResize,nt=Fn.innerProps,Oe=Fn.rtl,we=Fn.extra,ye={},ke={display:"flex",flexDirection:"column"};return mt!==void 0&&(ye={height:Xt,position:"relative",overflow:"hidden"},ke=(0,Ke.Z)((0,Ke.Z)({},ke),{},(0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)({transform:"translateY(".concat(mt,"px)")},Oe?"marginRight":"marginLeft",-tt),"position","absolute"),"left",0),"right",0),"top",0))),Je.createElement("div",{style:ye},Je.createElement(ct.Z,{onResize:function(Be){var dt=Be.offsetHeight;dt&&pt&&pt()}},Je.createElement("div",(0,ge.Z)({style:ke,className:yt()((0,ot.Z)({},"".concat(Lt,"-holder-inner"),Lt)),ref:Zt},nt),Wt,we)))});Ee.displayName="Filler";var ee=Ee;function te(Fn){var Zt=Fn.children,Xt=Fn.setRef,mt=Je.useCallback(function(tt){Xt(tt)},[]);return Je.cloneElement(Zt,{ref:mt})}function ue(Fn,Zt,Xt,mt,tt,Wt,Lt,pt){var nt=pt.getKey;return Fn.slice(Zt,Xt+1).map(function(Oe,we){var ye=Zt+we,ke=Lt(Oe,ye,{style:{width:mt},offsetX:tt}),Ve=nt(Oe);return Je.createElement(te,{key:Ve,setRef:function(dt){return Wt(Oe,dt)}},ke)})}function oe(Fn,Zt,Xt,mt){var tt=Xt-Fn,Wt=Zt-Xt,Lt=Math.min(tt,Wt)*2;if(mt<=Lt){var pt=Math.floor(mt/2);return mt%2?Xt+pt+1:Xt-pt}return tt>Wt?Xt-(mt-Wt):Xt+(mt-tt)}function de(Fn,Zt,Xt){var mt=Fn.length,tt=Zt.length,Wt,Lt;if(mt===0&&tt===0)return null;mt<tt?(Wt=Fn,Lt=Zt):(Wt=Zt,Lt=Fn);var pt={__EMPTY_ITEM__:!0};function nt(Be){return Be!==void 0?Xt(Be):pt}for(var Oe=null,we=Math.abs(mt-tt)!==1,ye=0;ye<Lt.length;ye+=1){var ke=nt(Wt[ye]),Ve=nt(Lt[ye]);if(ke!==Ve){Oe=ye,we=we||ke!==nt(Lt[ye+1]);break}}return Oe===null?null:{index:Oe,multiple:we}}function ve(Fn,Zt,Xt){var mt=Je.useState(Fn),tt=(0,He.Z)(mt,2),Wt=tt[0],Lt=tt[1],pt=Je.useState(null),nt=(0,He.Z)(pt,2),Oe=nt[0],we=nt[1];return Je.useEffect(function(){var ye=de(Wt||[],Fn||[],Zt);(ye==null?void 0:ye.index)!==void 0&&(Xt==null||Xt(ye.index),we(Fn[ye.index])),Lt(Fn)},[Fn]),[Oe]}var xe=he(23073),Ae=(typeof navigator=="undefined"?"undefined":(0,Ie.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Pe=Ae,Ne=function(Fn,Zt,Xt,mt){var tt=(0,Je.useRef)(!1),Wt=(0,Je.useRef)(null);function Lt(){clearTimeout(Wt.current),tt.current=!0,Wt.current=setTimeout(function(){tt.current=!1},50)}var pt=(0,Je.useRef)({top:Fn,bottom:Zt,left:Xt,right:mt});return pt.current.top=Fn,pt.current.bottom=Zt,pt.current.left=Xt,pt.current.right=mt,function(nt,Oe){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ye=nt?Oe<0&&pt.current.left||Oe>0&&pt.current.right:Oe<0&&pt.current.top||Oe>0&&pt.current.bottom;return we&&ye?(clearTimeout(Wt.current),tt.current=!1):(!ye||tt.current)&&Lt(),!tt.current&&ye}};function Le(Fn,Zt,Xt,mt,tt,Wt,Lt){var pt=(0,Je.useRef)(0),nt=(0,Je.useRef)(null),Oe=(0,Je.useRef)(null),we=(0,Je.useRef)(!1),ye=Ne(Zt,Xt,mt,tt);function ke(Et,Ot){if(xe.Z.cancel(nt.current),!ye(!1,Ot)){var yn=Et;if(!yn._virtualHandled)yn._virtualHandled=!0;else return;pt.current+=Ot,Oe.current=Ot,Pe||yn.preventDefault(),nt.current=(0,xe.Z)(function(){var Tn=we.current?10:1;Lt(pt.current*Tn,!1),pt.current=0})}}function Ve(Et,Ot){Lt(Ot,!0),Pe||Et.preventDefault()}var Be=(0,Je.useRef)(null),dt=(0,Je.useRef)(null);function on(Et){if(Fn){xe.Z.cancel(dt.current),dt.current=(0,xe.Z)(function(){Be.current=null},2);var Ot=Et.deltaX,yn=Et.deltaY,Tn=Et.shiftKey,qn=Ot,vi=yn;(Be.current==="sx"||!Be.current&&Tn&&yn&&!Ot)&&(qn=yn,vi=0,Be.current="sx");var gi=Math.abs(qn),wi=Math.abs(vi);Be.current===null&&(Be.current=Wt&&gi>wi?"x":"y"),Be.current==="y"?ke(Et,vi):Ve(Et,qn)}}function mn(Et){Fn&&(we.current=Et.detail===Oe.current)}return[on,mn]}function Re(Fn,Zt,Xt,mt){var tt=Je.useMemo(function(){return[new Map,[]]},[Fn,Xt.id,mt]),Wt=(0,He.Z)(tt,2),Lt=Wt[0],pt=Wt[1],nt=function(we){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,ke=Lt.get(we),Ve=Lt.get(ye);if(ke===void 0||Ve===void 0)for(var Be=Fn.length,dt=pt.length;dt<Be;dt+=1){var on,mn=Fn[dt],Et=Zt(mn);Lt.set(Et,dt);var Ot=(on=Xt.get(Et))!==null&&on!==void 0?on:mt;if(pt[dt]=(pt[dt-1]||0)+Ot,Et===we&&(ke=dt),Et===ye&&(Ve=dt),ke!==void 0&&Ve!==void 0)break}return{top:pt[ke-1]||0,bottom:pt[Ve]}};return nt}var je=he(85899),Ge=he(79545),We=he(68550),bt=function(){function Fn(){(0,Ge.Z)(this,Fn),(0,ot.Z)(this,"maps",void 0),(0,ot.Z)(this,"id",0),(0,ot.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,We.Z)(Fn,[{key:"set",value:function(Xt,mt){this.maps[Xt]=mt,this.id+=1,this.diffKeys.add(Xt)}},{key:"get",value:function(Xt){return this.maps[Xt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Fn}(),Qe=bt;function Dt(Fn){var Zt=parseFloat(Fn);return isNaN(Zt)?0:Zt}function vt(Fn,Zt,Xt){var mt=Je.useState(0),tt=(0,He.Z)(mt,2),Wt=tt[0],Lt=tt[1],pt=(0,Je.useRef)(new Map),nt=(0,Je.useRef)(new Qe),Oe=(0,Je.useRef)(0);function we(){Oe.current+=1}function ye(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;we();var Be=function(){var mn=!1;pt.current.forEach(function(Et,Ot){if(Et&&Et.offsetParent){var yn=(0,je.ZP)(Et),Tn=yn.offsetHeight,qn=getComputedStyle(yn),vi=qn.marginTop,gi=qn.marginBottom,wi=Dt(vi),_n=Dt(gi),yr=Tn+wi+_n;nt.current.get(Ot)!==yr&&(nt.current.set(Ot,yr),mn=!0)}}),mn&&Lt(function(Et){return Et+1})};if(Ve)Be();else{Oe.current+=1;var dt=Oe.current;Promise.resolve().then(function(){dt===Oe.current&&Be()})}}function ke(Ve,Be){var dt=Fn(Ve),on=pt.current.get(dt);Be?(pt.current.set(dt,Be),ye()):pt.current.delete(dt),!on!=!Be&&(Be?Zt==null||Zt(Ve):Xt==null||Xt(Ve))}return(0,Je.useEffect)(function(){return we},[]),[ke,ye,nt.current,Wt]}var kt=14/15;function Rt(Fn,Zt,Xt){var mt=(0,Je.useRef)(!1),tt=(0,Je.useRef)(0),Wt=(0,Je.useRef)(0),Lt=(0,Je.useRef)(null),pt=(0,Je.useRef)(null),nt,Oe=function(Ve){if(mt.current){var Be=Math.ceil(Ve.touches[0].pageX),dt=Math.ceil(Ve.touches[0].pageY),on=tt.current-Be,mn=Wt.current-dt,Et=Math.abs(on)>Math.abs(mn);Et?tt.current=Be:Wt.current=dt;var Ot=Xt(Et,Et?on:mn,!1,Ve);Ot&&Ve.preventDefault(),clearInterval(pt.current),Ot&&(pt.current=setInterval(function(){Et?on*=kt:mn*=kt;var yn=Math.floor(Et?on:mn);(!Xt(Et,yn,!0)||Math.abs(yn)<=.1)&&clearInterval(pt.current)},16))}},we=function(){mt.current=!1,nt()},ye=function(Ve){nt(),Ve.touches.length===1&&!mt.current&&(mt.current=!0,tt.current=Math.ceil(Ve.touches[0].pageX),Wt.current=Math.ceil(Ve.touches[0].pageY),Lt.current=Ve.target,Lt.current.addEventListener("touchmove",Oe,{passive:!1}),Lt.current.addEventListener("touchend",we,{passive:!0}))};nt=function(){Lt.current&&(Lt.current.removeEventListener("touchmove",Oe),Lt.current.removeEventListener("touchend",we))},(0,et.Z)(function(){return Fn&&Zt.current.addEventListener("touchstart",ye,{passive:!0}),function(){var ke;(ke=Zt.current)===null||ke===void 0||ke.removeEventListener("touchstart",ye),nt(),clearInterval(pt.current)}},[Fn])}function Jt(Fn){return Math.floor(Math.pow(Fn,.5))}function at(Fn,Zt){var Xt="touches"in Fn?Fn.touches[0]:Fn;return Xt[Zt?"pageX":"pageY"]-window[Zt?"scrollX":"scrollY"]}function Ze(Fn,Zt,Xt){Je.useEffect(function(){var mt=Zt.current;if(Fn&&mt){var tt=!1,Wt,Lt,pt=function(){xe.Z.cancel(Wt)},nt=function ke(){pt(),Wt=(0,xe.Z)(function(){Xt(Lt),ke()})},Oe=function(Ve){var Be=Ve;Be._virtualHandled||(Be._virtualHandled=!0,tt=!0)},we=function(){tt=!1,pt()},ye=function(Ve){if(tt){var Be=at(Ve,!1),dt=mt.getBoundingClientRect(),on=dt.top,mn=dt.bottom;if(Be<=on){var Et=on-Be;Lt=-Jt(Et),nt()}else if(Be>=mn){var Ot=Be-mn;Lt=Jt(Ot),nt()}else pt()}};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),pt()}}},[Fn])}var Mt=10;function Yt(Fn,Zt,Xt,mt,tt,Wt,Lt,pt){var nt=Je.useRef(),Oe=Je.useState(null),we=(0,He.Z)(Oe,2),ye=we[0],ke=we[1];return(0,et.Z)(function(){if(ye&&ye.times<Mt){if(!Fn.current){ke(function(Me){return(0,Ke.Z)({},Me)});return}Wt();var Ve=ye.targetAlign,Be=ye.originAlign,dt=ye.index,on=ye.offset,mn=Fn.current.clientHeight,Et=!1,Ot=Ve,yn=null;if(mn){for(var Tn=Ve||Be,qn=0,vi=0,gi=0,wi=Math.min(Zt.length-1,dt),_n=0;_n<=wi;_n+=1){var yr=tt(Zt[_n]);vi=qn;var ir=Xt.get(yr);gi=vi+(ir===void 0?mt:ir),qn=gi}for(var fr=Tn==="top"?on:mn-on,xr=wi;xr>=0;xr-=1){var jr=tt(Zt[xr]),Ki=Xt.get(jr);if(Ki===void 0){Et=!0;break}if(fr-=Ki,fr<=0)break}switch(Tn){case"top":yn=vi-on;break;case"bottom":yn=gi-mn+on;break;default:{var Ir=Fn.current.scrollTop,Vi=Ir+mn;vi<Ir?Ot="top":gi>Vi&&(Ot="bottom")}}yn!==null&&Lt(yn),yn!==ye.lastTop&&(Et=!0)}Et&&ke((0,Ke.Z)((0,Ke.Z)({},ye),{},{times:ye.times+1,targetAlign:Ot,lastTop:yn}))}},[ye,Fn.current]),function(Ve){if(Ve==null){pt();return}if(xe.Z.cancel(nt.current),typeof Ve=="number")Lt(Ve);else if(Ve&&(0,Ie.Z)(Ve)==="object"){var Be,dt=Ve.align;"index"in Ve?Be=Ve.index:Be=Zt.findIndex(function(Et){return tt(Et)===Ve.key});var on=Ve.offset,mn=on===void 0?0:on;ke({times:0,index:Be,offset:mn,originAlign:dt})}}}var Vt=Je.forwardRef(function(Fn,Zt){var Xt=Fn.prefixCls,mt=Fn.rtl,tt=Fn.scrollOffset,Wt=Fn.scrollRange,Lt=Fn.onStartMove,pt=Fn.onStopMove,nt=Fn.onScroll,Oe=Fn.horizontal,we=Fn.spinSize,ye=Fn.containerSize,ke=Fn.style,Ve=Fn.thumbStyle,Be=Je.useState(!1),dt=(0,He.Z)(Be,2),on=dt[0],mn=dt[1],Et=Je.useState(null),Ot=(0,He.Z)(Et,2),yn=Ot[0],Tn=Ot[1],qn=Je.useState(null),vi=(0,He.Z)(qn,2),gi=vi[0],wi=vi[1],_n=!mt,yr=Je.useRef(),ir=Je.useRef(),fr=Je.useState(!1),xr=(0,He.Z)(fr,2),jr=xr[0],Ki=xr[1],Ir=Je.useRef(),Vi=function(){clearTimeout(Ir.current),Ki(!0),Ir.current=setTimeout(function(){Ki(!1)},3e3)},Me=Wt-ye||0,Ai=ye-we||0,Xi=Je.useMemo(function(){if(tt===0||Me===0)return 0;var Pt=tt/Me;return Pt*Ai},[tt,Me,Ai]),gr=function(Sn){Sn.stopPropagation(),Sn.preventDefault()},tr=Je.useRef({top:Xi,dragging:on,pageY:yn,startTop:gi});tr.current={top:Xi,dragging:on,pageY:yn,startTop:gi};var uo=function(Sn){mn(!0),Tn(at(Sn,Oe)),wi(tr.current.top),Lt(),Sn.stopPropagation(),Sn.preventDefault()};Je.useEffect(function(){var Pt=function(gt){gt.preventDefault()},Sn=yr.current,bn=ir.current;return Sn.addEventListener("touchstart",Pt,{passive:!1}),bn.addEventListener("touchstart",uo,{passive:!1}),function(){Sn.removeEventListener("touchstart",Pt),bn.removeEventListener("touchstart",uo)}},[]);var qr=Je.useRef();qr.current=Me;var Ni=Je.useRef();Ni.current=Ai,Je.useEffect(function(){if(on){var Pt,Sn=function(gt){var xn=tr.current,Ln=xn.dragging,pi=xn.pageY,Mn=xn.startTop;xe.Z.cancel(Pt);var It=yr.current.getBoundingClientRect(),gn=ye/(Oe?It.width:It.height);if(Ln){var nn=(at(gt,Oe)-pi)*gn,ui=Mn;!_n&&Oe?ui-=nn:ui+=nn;var Qt=qr.current,Cn=Ni.current,$t=Cn?ui/Cn:0,vn=Math.ceil($t*Qt);vn=Math.max(vn,0),vn=Math.min(vn,Qt),Pt=(0,xe.Z)(function(){nt(vn,Oe)})}},bn=function(){mn(!1),pt()};return window.addEventListener("mousemove",Sn,{passive:!0}),window.addEventListener("touchmove",Sn,{passive:!0}),window.addEventListener("mouseup",bn,{passive:!0}),window.addEventListener("touchend",bn,{passive:!0}),function(){window.removeEventListener("mousemove",Sn),window.removeEventListener("touchmove",Sn),window.removeEventListener("mouseup",bn),window.removeEventListener("touchend",bn),xe.Z.cancel(Pt)}}},[on]),Je.useEffect(function(){return Vi(),function(){clearTimeout(Ir.current)}},[tt]),Je.useImperativeHandle(Zt,function(){return{delayHidden:Vi}});var an="".concat(Xt,"-scrollbar"),en={position:"absolute",visibility:jr?null:"hidden"},Kt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Oe?(en.height=8,en.left=0,en.right=0,en.bottom=0,Kt.height="100%",Kt.width=we,_n?Kt.left=Xi:Kt.right=Xi):(en.width=8,en.top=0,en.bottom=0,_n?en.right=0:en.left=0,Kt.width="100%",Kt.height=we,Kt.top=Xi),Je.createElement("div",{ref:yr,className:yt()(an,(0,ot.Z)((0,ot.Z)((0,ot.Z)({},"".concat(an,"-horizontal"),Oe),"".concat(an,"-vertical"),!Oe),"".concat(an,"-visible"),jr)),style:(0,Ke.Z)((0,Ke.Z)({},en),ke),onMouseDown:gr,onMouseMove:Vi},Je.createElement("div",{ref:ir,className:yt()("".concat(an,"-thumb"),(0,ot.Z)({},"".concat(an,"-thumb-moving"),on)),style:(0,Ke.Z)((0,Ke.Z)({},Kt),Ve),onMouseDown:uo}))}),Ct=Vt,Nt=20;function sn(){var Fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Xt=Fn/Zt*Fn;return isNaN(Xt)&&(Xt=0),Xt=Math.max(Xt,Nt),Math.floor(Xt)}var Nn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],hn=[],Xn={overflowY:"auto",overflowAnchor:"none"};function Ft(Fn,Zt){var Xt=Fn.prefixCls,mt=Xt===void 0?"rc-virtual-list":Xt,tt=Fn.className,Wt=Fn.height,Lt=Fn.itemHeight,pt=Fn.fullHeight,nt=pt===void 0?!0:pt,Oe=Fn.style,we=Fn.data,ye=Fn.children,ke=Fn.itemKey,Ve=Fn.virtual,Be=Fn.direction,dt=Fn.scrollWidth,on=Fn.component,mn=on===void 0?"div":on,Et=Fn.onScroll,Ot=Fn.onVirtualScroll,yn=Fn.onVisibleChange,Tn=Fn.innerProps,qn=Fn.extraRender,vi=Fn.styles,gi=(0,it.Z)(Fn,Nn),wi=Je.useCallback(function(pr){return typeof ke=="function"?ke(pr):pr==null?void 0:pr[ke]},[ke]),_n=vt(wi,null,null),yr=(0,He.Z)(_n,4),ir=yr[0],fr=yr[1],xr=yr[2],jr=yr[3],Ki=!!(Ve!==!1&&Wt&&Lt),Ir=Je.useMemo(function(){return Object.values(xr.maps).reduce(function(pr,Er){return pr+Er},0)},[xr.id,xr.maps]),Vi=Ki&&we&&(Math.max(Lt*we.length,Ir)>Wt||!!dt),Me=Be==="rtl",Ai=yt()(mt,(0,ot.Z)({},"".concat(mt,"-rtl"),Me),tt),Xi=we||hn,gr=(0,Je.useRef)(),tr=(0,Je.useRef)(),uo=(0,Je.useRef)(),qr=(0,Je.useState)(0),Ni=(0,He.Z)(qr,2),an=Ni[0],en=Ni[1],Kt=(0,Je.useState)(0),Pt=(0,He.Z)(Kt,2),Sn=Pt[0],bn=Pt[1],zt=(0,Je.useState)(!1),gt=(0,He.Z)(zt,2),xn=gt[0],Ln=gt[1],pi=function(){Ln(!0)},Mn=function(){Ln(!1)},It={getKey:wi};function gn(pr){en(function(Er){var oo;typeof pr=="function"?oo=pr(Er):oo=pr;var bo=bi(oo);return gr.current.scrollTop=bo,bo})}var nn=(0,Je.useRef)({start:0,end:Xi.length}),ui=(0,Je.useRef)(),Qt=ve(Xi,wi),Cn=(0,He.Z)(Qt,1),$t=Cn[0];ui.current=$t;var vn=Je.useMemo(function(){if(!Ki)return{scrollHeight:void 0,start:0,end:Xi.length-1,offset:void 0};if(!Vi){var pr;return{scrollHeight:((pr=tr.current)===null||pr===void 0?void 0:pr.offsetHeight)||0,start:0,end:Xi.length-1,offset:void 0}}for(var Er=0,oo,bo,Ur,Io=Xi.length,lr=0;lr<Io;lr+=1){var $i=Xi[lr],Br=wi($i),oi=xr.get(Br),Ro=Er+(oi===void 0?Lt:oi);Ro>=an&&oo===void 0&&(oo=lr,bo=Er),Ro>an+Wt&&Ur===void 0&&(Ur=lr),Er=Ro}return oo===void 0&&(oo=0,bo=0,Ur=Math.ceil(Wt/Lt)),Ur===void 0&&(Ur=Xi.length-1),Ur=Math.min(Ur+1,Xi.length-1),{scrollHeight:Er,start:oo,end:Ur,offset:bo}},[Vi,Ki,an,Xi,jr,Wt]),En=vn.scrollHeight,Pn=vn.start,Rn=vn.end,Yn=vn.offset;nn.current.start=Pn,nn.current.end=Rn,Je.useLayoutEffect(function(){var pr=xr.getRecord();if(pr.size===1){var Er=Array.from(pr)[0],oo=wi(Xi[Pn]);if(oo===Er){var bo=xr.get(Er),Ur=bo-Lt;gn(function(Io){return Io+Ur})}}xr.resetRecord()},[En]);var Zn=Je.useState({width:0,height:Wt}),ri=(0,He.Z)(Zn,2),Gn=ri[0],di=ri[1],rr=function(Er){di({width:Er.offsetWidth,height:Er.offsetHeight})},Dr=(0,Je.useRef)(),ar=(0,Je.useRef)(),qt=Je.useMemo(function(){return sn(Gn.width,dt)},[Gn.width,dt]),Li=Je.useMemo(function(){return sn(Gn.height,En)},[Gn.height,En]),Ji=En-Wt,Ti=(0,Je.useRef)(Ji);Ti.current=Ji;function bi(pr){var Er=pr;return Number.isNaN(Ti.current)||(Er=Math.min(Er,Ti.current)),Er=Math.max(Er,0),Er}var sr=an<=0,Nr=an>=Ji,cr=Sn<=0,Zi=Sn>=dt,Jr=Ne(sr,Nr,cr,Zi),On=function(){return{x:Me?-Sn:Sn,y:an}},Ho=(0,Je.useRef)(On()),Dn=(0,Xe.useEvent)(function(pr){if(Ot){var Er=(0,Ke.Z)((0,Ke.Z)({},On()),pr);(Ho.current.x!==Er.x||Ho.current.y!==Er.y)&&(Ot(Er),Ho.current=Er)}});function Rr(pr,Er){var oo=pr;Er?((0,Ue.flushSync)(function(){bn(oo)}),Dn()):gn(oo)}function ca(pr){var Er=pr.currentTarget.scrollTop;Er!==an&&gn(Er),Et==null||Et(pr),Dn()}var fo=function(Er){var oo=Er,bo=dt?dt-Gn.width:0;return oo=Math.max(oo,0),oo=Math.min(oo,bo),oo},Ha=(0,Xe.useEvent)(function(pr,Er){Er?((0,Ue.flushSync)(function(){bn(function(oo){var bo=oo+(Me?-pr:pr);return fo(bo)})}),Dn()):gn(function(oo){var bo=oo+pr;return bo})}),oa=Le(Ki,sr,Nr,cr,Zi,!!dt,Ha),xt=(0,He.Z)(oa,2),kn=xt[0],Hn=xt[1];Rt(Ki,gr,function(pr,Er,oo,bo){var Ur=bo;return Jr(pr,Er,oo)?!1:!Ur||!Ur._virtualHandled?(Ur&&(Ur._virtualHandled=!0),kn({preventDefault:function(){},deltaX:pr?Er:0,deltaY:pr?0:Er}),!0):!1}),Ze(Vi,gr,function(pr){gn(function(Er){return Er+pr})}),(0,et.Z)(function(){function pr(oo){var bo=sr&&oo.detail<0,Ur=Nr&&oo.detail>0;Ki&&!bo&&!Ur&&oo.preventDefault()}var Er=gr.current;return Er.addEventListener("wheel",kn,{passive:!1}),Er.addEventListener("DOMMouseScroll",Hn,{passive:!0}),Er.addEventListener("MozMousePixelScroll",pr,{passive:!1}),function(){Er.removeEventListener("wheel",kn),Er.removeEventListener("DOMMouseScroll",Hn),Er.removeEventListener("MozMousePixelScroll",pr)}},[Ki,sr,Nr]),(0,et.Z)(function(){if(dt){var pr=fo(Sn);bn(pr),Dn({x:pr})}},[Gn.width,dt]);var Ei=function(){var Er,oo;(Er=Dr.current)===null||Er===void 0||Er.delayHidden(),(oo=ar.current)===null||oo===void 0||oo.delayHidden()},Si=Yt(gr,Xi,xr,Lt,wi,function(){return fr(!0)},gn,Ei);Je.useImperativeHandle(Zt,function(){return{nativeElement:uo.current,getScrollInfo:On,scrollTo:function(Er){function oo(bo){return bo&&(0,Ie.Z)(bo)==="object"&&("left"in bo||"top"in bo)}oo(Er)?(Er.left!==void 0&&bn(fo(Er.left)),Si(Er.top)):Si(Er)}}}),(0,et.Z)(function(){if(yn){var pr=Xi.slice(Pn,Rn+1);yn(pr,Xi)}},[Pn,Rn,Xi]);var $e=Re(Xi,wi,xr,Lt),Fi=qn==null?void 0:qn({start:Pn,end:Rn,virtual:Vi,offsetX:Sn,offsetY:Yn,rtl:Me,getSize:$e}),eo=ue(Xi,Pn,Rn,dt,Sn,ir,ye,It),Qi=null;Wt&&(Qi=(0,Ke.Z)((0,ot.Z)({},nt?"height":"maxHeight",Wt),Xn),Ki&&(Qi.overflowY="hidden",dt&&(Qi.overflowX="hidden"),xn&&(Qi.pointerEvents="none")));var Vr={};return Me&&(Vr.dir="rtl"),Je.createElement("div",(0,ge.Z)({ref:uo,style:(0,Ke.Z)((0,Ke.Z)({},Oe),{},{position:"relative"}),className:Ai},Vr,gi),Je.createElement(ct.Z,{onResize:rr},Je.createElement(mn,{className:"".concat(mt,"-holder"),style:Qi,ref:gr,onScroll:ca,onMouseEnter:Ei},Je.createElement(ee,{prefixCls:mt,height:En,offsetX:Sn,offsetY:Yn,scrollWidth:dt,onInnerResize:fr,ref:tr,innerProps:Tn,rtl:Me,extra:Fi},eo))),Vi&&En>Wt&&Je.createElement(Ct,{ref:Dr,prefixCls:mt,scrollOffset:an,scrollRange:En,rtl:Me,onScroll:Rr,onStartMove:pi,onStopMove:Mn,spinSize:Li,containerSize:Gn.height,style:vi==null?void 0:vi.verticalScrollBar,thumbStyle:vi==null?void 0:vi.verticalScrollBarThumb}),Vi&&dt>Gn.width&&Je.createElement(Ct,{ref:ar,prefixCls:mt,scrollOffset:Sn,scrollRange:dt,rtl:Me,onScroll:Rr,onStartMove:pi,onStopMove:Mn,spinSize:qt,containerSize:Gn.width,horizontal:!0,style:vi==null?void 0:vi.horizontalScrollBar,thumbStyle:vi==null?void 0:vi.horizontalScrollBarThumb}))}var Un=Je.forwardRef(Ft);Un.displayName="List";var Kn=Un,ti=Kn},2637:function(fn,jt,he){"use strict";Object.defineProperty(jt,"__esModule",{value:!0}),Object.defineProperty(jt,"DraggableCore",{enumerable:!0,get:function(){return yt.default}}),jt.default=void 0;var ge=Je(he(59301)),Ie=Xe(he(12708)),Ke=Xe(he(4676)),ot=Xe(he(57780)),He=he(13957),it=he(60976),be=he(36641),yt=Xe(he(80486)),ct=Xe(he(94187));function Xe(oe){return oe&&oe.__esModule?oe:{default:oe}}function et(oe){if(typeof WeakMap!="function")return null;var de=new WeakMap,ve=new WeakMap;return(et=function(xe){return xe?ve:de})(oe)}function Je(oe,de){if(!de&&oe&&oe.__esModule)return oe;if(oe===null||typeof oe!="object"&&typeof oe!="function")return{default:oe};var ve=et(de);if(ve&&ve.has(oe))return ve.get(oe);var xe={},Ae=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Pe in oe)if(Pe!=="default"&&Object.prototype.hasOwnProperty.call(oe,Pe)){var Ne=Ae?Object.getOwnPropertyDescriptor(oe,Pe):null;Ne&&(Ne.get||Ne.set)?Object.defineProperty(xe,Pe,Ne):xe[Pe]=oe[Pe]}return xe.default=oe,ve&&ve.set(oe,xe),xe}function Ue(){return Ue=Object.assign?Object.assign.bind():function(oe){for(var de=1;de<arguments.length;de++){var ve=arguments[de];for(var xe in ve)Object.prototype.hasOwnProperty.call(ve,xe)&&(oe[xe]=ve[xe])}return oe},Ue.apply(this,arguments)}function Ee(oe,de,ve){return de=ee(de),de in oe?Object.defineProperty(oe,de,{value:ve,enumerable:!0,configurable:!0,writable:!0}):oe[de]=ve,oe}function ee(oe){var de=te(oe,"string");return typeof de=="symbol"?de:String(de)}function te(oe,de){if(typeof oe!="object"||oe===null)return oe;var ve=oe[Symbol.toPrimitive];if(ve!==void 0){var xe=ve.call(oe,de||"default");if(typeof xe!="object")return xe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(de==="string"?String:Number)(oe)}class ue extends ge.Component{static getDerivedStateFromProps(de,ve){let{position:xe}=de,{prevPropsPosition:Ae}=ve;return xe&&(!Ae||xe.x!==Ae.x||xe.y!==Ae.y)?((0,ct.default)("Draggable: getDerivedStateFromProps %j",{position:xe,prevPropsPosition:Ae}),{x:xe.x,y:xe.y,prevPropsPosition:hf({},xe)}):null}constructor(de){super(de),Ee(this,"onDragStart",(ve,xe)=>{if((0,ct.default)("Draggable: onDragStart: %j",xe),this.props.onStart(ve,(0,it.createDraggableData)(this,xe))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Ee(this,"onDrag",(ve,xe)=>{if(!this.state.dragging)return!1;(0,ct.default)("Draggable: onDrag: %j",xe);const Ae=(0,it.createDraggableData)(this,xe),Pe={x:Ae.x,y:Ae.y,slackX:0,slackY:0};if(this.props.bounds){const{x:Le,y:Re}=Pe;Pe.x+=this.state.slackX,Pe.y+=this.state.slackY;const[je,Ge]=(0,it.getBoundPosition)(this,Pe.x,Pe.y);Pe.x=je,Pe.y=Ge,Pe.slackX=this.state.slackX+(Le-Pe.x),Pe.slackY=this.state.slackY+(Re-Pe.y),Ae.x=Pe.x,Ae.y=Pe.y,Ae.deltaX=Pe.x-this.state.x,Ae.deltaY=Pe.y-this.state.y}if(this.props.onDrag(ve,Ae)===!1)return!1;this.setState(Pe)}),Ee(this,"onDragStop",(ve,xe)=>{if(!this.state.dragging||this.props.onStop(ve,(0,it.createDraggableData)(this,xe))===!1)return!1;(0,ct.default)("Draggable: onDragStop: %j",xe);const Pe={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:Le,y:Re}=this.props.position;Pe.x=Le,Pe.y=Re}this.setState(Pe)}),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:Ke.default.findDOMNode(this)}render(){const at=this.props,{axis:de,bounds:ve,children:xe,defaultPosition:Ae,defaultClassName:Pe,defaultClassNameDragging:Ne,defaultClassNameDragged:Le,position:Re,positionOffset:je,scale:Ge}=at,We=Px(at,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let bt={},Qe=null;const vt=!!!Re||this.state.dragging,kt=Re||Ae,Rt={x:(0,it.canDragX)(this)&&vt?this.state.x:kt.x,y:(0,it.canDragY)(this)&&vt?this.state.y:kt.y};this.state.isElementSVG?Qe=(0,He.createSVGTransform)(Rt,je):bt=(0,He.createCSSTransform)(Rt,je);const Jt=(0,ot.default)(xe.props.className||"",Pe,{[Ne]:this.state.dragging,[Le]:this.state.dragged});return ge.createElement(yt.default,Ue({},We,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),ge.cloneElement(ge.Children.only(xe),{className:Jt,style:hf(hf({},xe.props.style),bt),transform:Qe}))}}jt.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(fn,jt,he){"use strict";Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=void 0;var ge=Xe(he(59301)),Ie=yt(he(12708)),Ke=yt(he(4676)),ot=he(13957),He=he(60976),it=he(36641),be=yt(he(94187));function yt(ue){return ue&&ue.__esModule?ue:{default:ue}}function ct(ue){if(typeof WeakMap!="function")return null;var oe=new WeakMap,de=new WeakMap;return(ct=function(ve){return ve?de:oe})(ue)}function Xe(ue,oe){if(!oe&&ue&&ue.__esModule)return ue;if(ue===null||typeof ue!="object"&&typeof ue!="function")return{default:ue};var de=ct(oe);if(de&&de.has(ue))return de.get(ue);var ve={},xe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ae in ue)if(Ae!=="default"&&Object.prototype.hasOwnProperty.call(ue,Ae)){var Pe=xe?Object.getOwnPropertyDescriptor(ue,Ae):null;Pe&&(Pe.get||Pe.set)?Object.defineProperty(ve,Ae,Pe):ve[Ae]=ue[Ae]}return ve.default=ue,de&&de.set(ue,ve),ve}function et(ue,oe,de){return oe=Je(oe),oe in ue?Object.defineProperty(ue,oe,{value:de,enumerable:!0,configurable:!0,writable:!0}):ue[oe]=de,ue}function Je(ue){var oe=Ue(ue,"string");return typeof oe=="symbol"?oe:String(oe)}function Ue(ue,oe){if(typeof ue!="object"||ue===null)return ue;var de=ue[Symbol.toPrimitive];if(de!==void 0){var ve=de.call(ue,oe||"default");if(typeof ve!="object")return ve;throw new TypeError("@@toPrimitive must return a primitive value.")}return(oe==="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 ge.Component{constructor(){super(...arguments),et(this,"dragging",!1),et(this,"lastX",NaN),et(this,"lastY",NaN),et(this,"touchIdentifier",null),et(this,"mounted",!1),et(this,"handleDragStart",oe=>{if(this.props.onMouseDown(oe),!this.props.allowAnyClick&&typeof oe.button=="number"&&oe.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||!(oe.target instanceof ve.defaultView.Node)||this.props.handle&&!(0,ot.matchesSelectorAndParentsTo)(oe.target,this.props.handle,de)||this.props.cancel&&(0,ot.matchesSelectorAndParentsTo)(oe.target,this.props.cancel,de))return;oe.type==="touchstart"&&oe.preventDefault();const xe=(0,ot.getTouchIdentifier)(oe);this.touchIdentifier=xe;const Ae=(0,He.getControlPosition)(oe,xe,this);if(Ae==null)return;const{x:Pe,y:Ne}=Ae,Le=(0,He.createCoreData)(this,Pe,Ne);(0,be.default)("DraggableCore: handleDragStart: %j",Le),(0,be.default)("calling",this.props.onStart),!(this.props.onStart(oe,Le)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ot.addUserSelectStyles)(ve),this.dragging=!0,this.lastX=Pe,this.lastY=Ne,(0,ot.addEvent)(ve,ee.move,this.handleDrag),(0,ot.addEvent)(ve,ee.stop,this.handleDragStop))}),et(this,"handleDrag",oe=>{const de=(0,He.getControlPosition)(oe,this.touchIdentifier,this);if(de==null)return;let{x:ve,y:xe}=de;if(Array.isArray(this.props.grid)){let Ne=ve-this.lastX,Le=xe-this.lastY;if([Ne,Le]=(0,He.snapToGrid)(this.props.grid,Ne,Le),!Ne&&!Le)return;ve=this.lastX+Ne,xe=this.lastY+Le}const Ae=(0,He.createCoreData)(this,ve,xe);if((0,be.default)("DraggableCore: handleDrag: %j",Ae),this.props.onDrag(oe,Ae)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Ne){const Le=document.createEvent("MouseEvents");Le.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(Le)}return}this.lastX=ve,this.lastY=xe}),et(this,"handleDragStop",oe=>{if(!this.dragging)return;const de=(0,He.getControlPosition)(oe,this.touchIdentifier,this);if(de==null)return;let{x:ve,y:xe}=de;if(Array.isArray(this.props.grid)){let Le=ve-this.lastX||0,Re=xe-this.lastY||0;[Le,Re]=(0,He.snapToGrid)(this.props.grid,Le,Re),ve=this.lastX+Le,xe=this.lastY+Re}const Ae=(0,He.createCoreData)(this,ve,xe);if(this.props.onStop(oe,Ae)===!1||this.mounted===!1)return!1;const Ne=this.findDOMNode();Ne&&this.props.enableUserSelectHack&&(0,ot.removeUserSelectStyles)(Ne.ownerDocument),(0,be.default)("DraggableCore: handleDragStop: %j",Ae),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Ne&&((0,be.default)("DraggableCore: Removing handlers"),(0,ot.removeEvent)(Ne.ownerDocument,ee.move,this.handleDrag),(0,ot.removeEvent)(Ne.ownerDocument,ee.stop,this.handleDragStop))}),et(this,"onMouseDown",oe=>(ee=Ee.mouse,this.handleDragStart(oe))),et(this,"onMouseUp",oe=>(ee=Ee.mouse,this.handleDragStop(oe))),et(this,"onTouchStart",oe=>(ee=Ee.touch,this.handleDragStart(oe))),et(this,"onTouchEnd",oe=>(ee=Ee.touch,this.handleDragStop(oe)))}componentDidMount(){this.mounted=!0;const oe=this.findDOMNode();oe&&(0,ot.addEvent)(oe,Ee.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const oe=this.findDOMNode();if(oe){const{ownerDocument:de}=oe;(0,ot.removeEvent)(de,Ee.mouse.move,this.handleDrag),(0,ot.removeEvent)(de,Ee.touch.move,this.handleDrag),(0,ot.removeEvent)(de,Ee.mouse.stop,this.handleDragStop),(0,ot.removeEvent)(de,Ee.touch.stop,this.handleDragStop),(0,ot.removeEvent)(oe,Ee.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ot.removeUserSelectStyles)(de)}}findDOMNode(){var oe,de;return(oe=this.props)!==null&&oe!==void 0&&oe.nodeRef?(de=this.props)===null||de===void 0||(de=de.nodeRef)===null||de===void 0?void 0:de.current:Ke.default.findDOMNode(this)}render(){return ge.cloneElement(ge.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}jt.default=te,et(te,"displayName","DraggableCore"),et(te,"propTypes",{allowAnyClick:Ie.default.bool,children:Ie.default.node.isRequired,disabled:Ie.default.bool,enableUserSelectHack:Ie.default.bool,offsetParent:function(ue,oe){if(ue[oe]&&ue[oe].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}),et(te,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(fn,jt,he){"use strict";const{default:ge,DraggableCore:Ie}=he(2637);fn.exports=ge,fn.exports.default=ge,fn.exports.DraggableCore=Ie},13957:function(fn,jt,he){"use strict";Object.defineProperty(jt,"__esModule",{value:!0}),jt.addClassName=Ae,jt.addEvent=yt,jt.addUserSelectStyles=ve,jt.createCSSTransform=ee,jt.createSVGTransform=te,jt.getTouch=oe,jt.getTouchIdentifier=de,jt.getTranslation=ue,jt.innerHeight=Je,jt.innerWidth=Ue,jt.matchesSelector=it,jt.matchesSelectorAndParentsTo=be,jt.offsetXYFromParent=Ee,jt.outerHeight=Xe,jt.outerWidth=et,jt.removeClassName=Pe,jt.removeEvent=ct,jt.removeUserSelectStyles=xe;var ge=he(36641),Ie=ot(he(1750));function Ke(Ne){if(typeof WeakMap!="function")return null;var Le=new WeakMap,Re=new WeakMap;return(Ke=function(je){return je?Re:Le})(Ne)}function ot(Ne,Le){if(!Le&&Ne&&Ne.__esModule)return Ne;if(Ne===null||typeof Ne!="object"&&typeof Ne!="function")return{default:Ne};var Re=Ke(Le);if(Re&&Re.has(Ne))return Re.get(Ne);var je={},Ge=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var We in Ne)if(We!=="default"&&Object.prototype.hasOwnProperty.call(Ne,We)){var bt=Ge?Object.getOwnPropertyDescriptor(Ne,We):null;bt&&(bt.get||bt.set)?Object.defineProperty(je,We,bt):je[We]=Ne[We]}return je.default=Ne,Re&&Re.set(Ne,je),je}let He="";function it(Ne,Le){return He||(He=(0,ge.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(Re){return(0,ge.isFunction)(Ne[Re])})),(0,ge.isFunction)(Ne[He])?Ne[He](Le):!1}function be(Ne,Le,Re){let je=Ne;do{if(it(je,Le))return!0;if(je===Re)return!1;je=je.parentNode}while(je);return!1}function yt(Ne,Le,Re,je){if(!Ne)return;const Ge=hf({capture:!0},je);Ne.addEventListener?Ne.addEventListener(Le,Re,Ge):Ne.attachEvent?Ne.attachEvent("on"+Le,Re):Ne["on"+Le]=Re}function ct(Ne,Le,Re,je){if(!Ne)return;const Ge=hf({capture:!0},je);Ne.removeEventListener?Ne.removeEventListener(Le,Re,Ge):Ne.detachEvent?Ne.detachEvent("on"+Le,Re):Ne["on"+Le]=null}function Xe(Ne){let Le=Ne.clientHeight;const Re=Ne.ownerDocument.defaultView.getComputedStyle(Ne);return Le+=(0,ge.int)(Re.borderTopWidth),Le+=(0,ge.int)(Re.borderBottomWidth),Le}function et(Ne){let Le=Ne.clientWidth;const Re=Ne.ownerDocument.defaultView.getComputedStyle(Ne);return Le+=(0,ge.int)(Re.borderLeftWidth),Le+=(0,ge.int)(Re.borderRightWidth),Le}function Je(Ne){let Le=Ne.clientHeight;const Re=Ne.ownerDocument.defaultView.getComputedStyle(Ne);return Le-=(0,ge.int)(Re.paddingTop),Le-=(0,ge.int)(Re.paddingBottom),Le}function Ue(Ne){let Le=Ne.clientWidth;const Re=Ne.ownerDocument.defaultView.getComputedStyle(Ne);return Le-=(0,ge.int)(Re.paddingLeft),Le-=(0,ge.int)(Re.paddingRight),Le}function Ee(Ne,Le,Re){const Ge=Le===Le.ownerDocument.body?{left:0,top:0}:Le.getBoundingClientRect(),We=(Ne.clientX+Le.scrollLeft-Ge.left)/Re,bt=(Ne.clientY+Le.scrollTop-Ge.top)/Re;return{x:We,y:bt}}function ee(Ne,Le){const Re=ue(Ne,Le,"px");return{[(0,Ie.browserPrefixToKey)("transform",Ie.default)]:Re}}function te(Ne,Le){return ue(Ne,Le,"")}function ue(Ne,Le,Re){let{x:je,y:Ge}=Ne,We="translate(".concat(je).concat(Re,",").concat(Ge).concat(Re,")");if(Le){const bt="".concat(typeof Le.x=="string"?Le.x:Le.x+Re),Qe="".concat(typeof Le.y=="string"?Le.y:Le.y+Re);We="translate(".concat(bt,", ").concat(Qe,")")+We}return We}function oe(Ne,Le){return Ne.targetTouches&&(0,ge.findInArray)(Ne.targetTouches,Re=>Le===Re.identifier)||Ne.changedTouches&&(0,ge.findInArray)(Ne.changedTouches,Re=>Le===Re.identifier)}function de(Ne){if(Ne.targetTouches&&Ne.targetTouches[0])return Ne.targetTouches[0].identifier;if(Ne.changedTouches&&Ne.changedTouches[0])return Ne.changedTouches[0].identifier}function ve(Ne){if(!Ne)return;let Le=Ne.getElementById("react-draggable-style-el");Le||(Le=Ne.createElement("style"),Le.type="text/css",Le.id="react-draggable-style-el",Le.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
|
`,Le.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
|
`,Ne.getElementsByTagName("head")[0].appendChild(Le)),Ne.body&&Ae(Ne.body,"react-draggable-transparent-selection")}function xe(Ne){if(Ne)try{if(Ne.body&&Pe(Ne.body,"react-draggable-transparent-selection"),Ne.selection)Ne.selection.empty();else{const Le=(Ne.defaultView||window).getSelection();Le&&Le.type!=="Caret"&&Le.removeAllRanges()}}catch(Le){}}function Ae(Ne,Le){Ne.classList?Ne.classList.add(Le):Ne.className.match(new RegExp("(?:^|\\s)".concat(Le,"(?!\\S)")))||(Ne.className+=" ".concat(Le))}function Pe(Ne,Le){Ne.classList?Ne.classList.remove(Le):Ne.className=Ne.className.replace(new RegExp("(?:^|\\s)".concat(Le,"(?!\\S)"),"g"),"")}},1750:function(fn,jt){"use strict";Object.defineProperty(jt,"__esModule",{value:!0}),jt.browserPrefixToKey=Ie,jt.browserPrefixToStyle=Ke,jt.default=void 0,jt.getPrefix=ge;const he=["Moz","Webkit","O","ms"];function ge(){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 ct=0;ct<he.length;ct++)if(Ie(be,he[ct])in yt)return he[ct];return""}function Ie(it,be){return be?"".concat(be).concat(ot(it)):it}function Ke(it,be){return be?"-".concat(be.toLowerCase(),"-").concat(it):it}function ot(it){let be="",yt=!0;for(let ct=0;ct<it.length;ct++)yt?(be+=it[ct].toUpperCase(),yt=!1):it[ct]==="-"?yt=!0:be+=it[ct];return be}var He=jt.default=ge()},94187:function(fn,jt){"use strict";Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=he;function he(){}},60976:function(fn,jt,he){"use strict";Object.defineProperty(jt,"__esModule",{value:!0}),jt.canDragX=He,jt.canDragY=it,jt.createCoreData=yt,jt.createDraggableData=ct,jt.getBoundPosition=Ke,jt.getControlPosition=be,jt.snapToGrid=ot;var ge=he(36641),Ie=he(13957);function Ke(Je,Ue,Ee){if(!Je.props.bounds)return[Ue,Ee];let{bounds:ee}=Je.props;ee=typeof ee=="string"?ee:Xe(ee);const te=et(Je);if(typeof ee=="string"){const{ownerDocument:ue}=te,oe=ue.defaultView;let de;if(ee==="parent"?de=te.parentNode:de=ue.querySelector(ee),!(de instanceof oe.HTMLElement))throw new Error('Bounds selector "'+ee+'" could not find an element.');const ve=de,xe=oe.getComputedStyle(te),Ae=oe.getComputedStyle(ve);ee={left:-te.offsetLeft+(0,ge.int)(Ae.paddingLeft)+(0,ge.int)(xe.marginLeft),top:-te.offsetTop+(0,ge.int)(Ae.paddingTop)+(0,ge.int)(xe.marginTop),right:(0,Ie.innerWidth)(ve)-(0,Ie.outerWidth)(te)-te.offsetLeft+(0,ge.int)(Ae.paddingRight)-(0,ge.int)(xe.marginRight),bottom:(0,Ie.innerHeight)(ve)-(0,Ie.outerHeight)(te)-te.offsetTop+(0,ge.int)(Ae.paddingBottom)-(0,ge.int)(xe.marginBottom)}}return(0,ge.isNum)(ee.right)&&(Ue=Math.min(Ue,ee.right)),(0,ge.isNum)(ee.bottom)&&(Ee=Math.min(Ee,ee.bottom)),(0,ge.isNum)(ee.left)&&(Ue=Math.max(Ue,ee.left)),(0,ge.isNum)(ee.top)&&(Ee=Math.max(Ee,ee.top)),[Ue,Ee]}function ot(Je,Ue,Ee){const ee=Math.round(Ue/Je[0])*Je[0],te=Math.round(Ee/Je[1])*Je[1];return[ee,te]}function He(Je){return Je.props.axis==="both"||Je.props.axis==="x"}function it(Je){return Je.props.axis==="both"||Je.props.axis==="y"}function be(Je,Ue,Ee){const ee=typeof Ue=="number"?(0,Ie.getTouch)(Je,Ue):null;if(typeof Ue=="number"&&!ee)return null;const te=et(Ee),ue=Ee.props.offsetParent||te.offsetParent||te.ownerDocument.body;return(0,Ie.offsetXYFromParent)(ee||Je,ue,Ee.props.scale)}function yt(Je,Ue,Ee){const ee=!(0,ge.isNum)(Je.lastX),te=et(Je);return ee?{node:te,deltaX:0,deltaY:0,lastX:Ue,lastY:Ee,x:Ue,y:Ee}:{node:te,deltaX:Ue-Je.lastX,deltaY:Ee-Je.lastY,lastX:Je.lastX,lastY:Je.lastY,x:Ue,y:Ee}}function ct(Je,Ue){const Ee=Je.props.scale;return{node:Ue.node,x:Je.state.x+Ue.deltaX/Ee,y:Je.state.y+Ue.deltaY/Ee,deltaX:Ue.deltaX/Ee,deltaY:Ue.deltaY/Ee,lastX:Je.state.x,lastY:Je.state.y}}function Xe(Je){return{left:Je.left,top:Je.top,right:Je.right,bottom:Je.bottom}}function et(Je){const Ue=Je.findDOMNode();if(!Ue)throw new Error("<DraggableCore>: Unmounted during event!");return Ue}},36641:function(fn,jt){"use strict";Object.defineProperty(jt,"__esModule",{value:!0}),jt.dontSetMe=ot,jt.findInArray=he,jt.int=Ke,jt.isFunction=ge,jt.isNum=Ie;function he(He,it){for(let be=0,yt=He.length;be<yt;be++)if(it.apply(it,[He[be],be,He]))return He[be]}function ge(He){return typeof He=="function"||Object.prototype.toString.call(He)==="[object Function]"}function Ie(He){return typeof He=="number"&&!isNaN(He)}function Ke(He){return parseInt(He,10)}function ot(He,it,be){if(He[it])return new Error("Invalid prop ".concat(it," passed to ").concat(be," - do not set this, set it on the child."))}},51581:function(fn,jt,he){"use strict";Object.defineProperty(jt,"__esModule",{value:!0});var ge=function(){function Je(Ue,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(Ue,te.key,te)}}return function(Ue,Ee,ee){return Ee&&Je(Ue.prototype,Ee),ee&&Je(Ue,ee),Ue}}(),Ie=he(59301),Ke=it(Ie),ot=he(12708),He=it(ot);function it(Je){return Je&&Je.__esModule?Je:{default:Je}}function be(Je,Ue){var Ee={};for(var ee in Je)Ue.indexOf(ee)>=0||Object.prototype.hasOwnProperty.call(Je,ee)&&(Ee[ee]=Je[ee]);return Ee}function yt(Je,Ue){if(!(Je instanceof Ue))throw new TypeError("Cannot call a class as a function")}function ct(Je,Ue){if(!Je)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ue&&(typeof Ue=="object"||typeof Ue=="function")?Ue:Je}function Xe(Je,Ue){if(typeof Ue!="function"&&Ue!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ue);Je.prototype=Object.create(Ue&&Ue.prototype,{constructor:{value:Je,enumerable:!1,writable:!0,configurable:!0}}),Ue&&(Object.setPrototypeOf?Object.setPrototypeOf(Je,Ue):Je.__proto__=Ue)}var et=function(Je){Xe(Ue,Je);function Ue(Ee){yt(this,Ue);var ee=ct(this,(Ue.__proto__||Object.getPrototypeOf(Ue)).call(this,Ee));return ee.scrollListener=ee.scrollListener.bind(ee),ee.eventListenerOptions=ee.eventListenerOptions.bind(ee),ee.mousewheelListener=ee.mousewheelListener.bind(ee),ee}return ge(Ue,[{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),oe=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?oe=ve:oe=this.calculateOffset(ee,ve)}else this.props.isReverse?oe=ue.scrollTop:oe=ee.scrollHeight-ue.scrollTop-ue.clientHeight;oe<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,oe=te.element,de=te.hasMore,ve=te.initialLoad,xe=te.isReverse,Ae=te.loader,Pe=te.loadMore,Ne=te.pageStart,Le=te.ref,Re=te.threshold,je=te.useCapture,Ge=te.useWindow,We=te.getScrollParent,bt=be(te,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);bt.ref=function(Dt){ee.scrollComponent=Dt,Le&&Le(Dt)};var Qe=[ue];return de&&(Ae?xe?Qe.unshift(Ae):Qe.push(Ae):this.defaultLoader&&(xe?Qe.unshift(this.defaultLoader):Qe.push(this.defaultLoader))),Ke.default.createElement(oe,bt,Qe)}}]),Ue}(Ie.Component);et.propTypes={children:He.default.node.isRequired,element:He.default.node,hasMore:He.default.bool,initialLoad:He.default.bool,isReverse:He.default.bool,loader:He.default.node,loadMore:He.default.func.isRequired,pageStart:He.default.number,ref:He.default.func,getScrollParent:He.default.func,threshold:He.default.number,useCapture:He.default.bool,useWindow:He.default.bool},et.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},jt.default=et,fn.exports=jt.default},26724:function(fn,jt,he){fn.exports=he(51581)},80010:function(fn,jt,he){"use strict";jt.__esModule=!0,jt.default=void 0;var ge=He(he(59301)),Ie=he(12911),Ke=he(73638),ot=he(6217);function He(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(oe){return Object.getOwnPropertyDescriptor(Ee,oe).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){Je(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 ct(Ee,ee){if(Ee==null)return{};var te={},ue=Object.keys(Ee),oe,de;for(de=0;de<ue.length;de++)oe=ue[de],!(ee.indexOf(oe)>=0)&&(te[oe]=Ee[oe]);return te}function Xe(Ee){if(Ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ee}function et(Ee,ee){Ee.prototype=Object.create(ee.prototype),Ee.prototype.constructor=Ee,Ee.__proto__=ee}function Je(Ee,ee,te){return ee in Ee?Object.defineProperty(Ee,ee,{value:te,enumerable:!0,configurable:!0,writable:!0}):Ee[ee]=te,Ee}var Ue=function(Ee){et(ee,Ee);function ee(){for(var ue,oe=arguments.length,de=new Array(oe),ve=0;ve<oe;ve++)de[ve]=arguments[ve];return ue=Ee.call.apply(Ee,[this].concat(de))||this,Je(Xe(ue),"state",void 0),Je(Xe(ue),"lastHandleRect",null),Je(Xe(ue),"slack",null),ue}var te=ee.prototype;return te.componentWillUnmount=function(){this.resetData()},te.lockAspectRatio=function(oe,de,ve){return de=oe/ve,oe=de*ve,[oe,de]},te.resetData=function(){this.lastHandleRect=this.slack=null},te.runConstraints=function(oe,de){var ve=[this.props.minConstraints,this.props.maxConstraints],xe=ve[0],Ae=ve[1];if(!xe&&!Ae)return[oe,de];if(this.props.lockAspectRatio){var Pe=de===this.props.height;if(Pe){var Ne=this.props.width/this.props.height;de=oe/Ne,oe=de*Ne}else{var Le=this.props.height/this.props.width;oe=de/Le,de=oe*Le}}var Re=oe,je=de,Ge=this.slack||[0,0],We=Ge[0],bt=Ge[1];return oe+=We,de+=bt,xe&&(oe=Math.max(xe[0],oe),de=Math.max(xe[1],de)),Ae&&(oe=Math.min(Ae[0],oe),de=Math.min(Ae[1],de)),this.slack=[We+(Re-oe),bt+(je-de)],[oe,de]},te.resizeHandler=function(oe,de){var ve=this;return function(xe,Ae){var Pe=Ae.node,Ne=Ae.deltaX,Le=Ae.deltaY;oe==="onResizeStart"&&ve.resetData();var Re=(ve.props.axis==="both"||ve.props.axis==="x")&&de!=="n"&&de!=="s",je=(ve.props.axis==="both"||ve.props.axis==="y")&&de!=="e"&&de!=="w";if(!(!Re&&!je)){var Ge=de[0],We=de[de.length-1],bt=Pe.getBoundingClientRect();if(ve.lastHandleRect!=null){if(We==="w"){var Qe=bt.left-ve.lastHandleRect.left;Ne+=Qe}if(Ge==="n"){var Dt=bt.top-ve.lastHandleRect.top;Le+=Dt}}ve.lastHandleRect=bt,We==="w"&&(Ne=-Ne),Ge==="n"&&(Le=-Le);var vt=ve.props.width+(Re?Ne/ve.props.transformScale:0),kt=ve.props.height+(je?Le/ve.props.transformScale:0),Rt=ve.runConstraints(vt,kt);vt=Rt[0],kt=Rt[1];var Jt=vt!==ve.props.width||kt!==ve.props.height,at=typeof ve.props[oe]=="function"?ve.props[oe]:null,Ze=oe==="onResize"&&!Jt;at&&!Ze&&(typeof xe.persist=="function"&&xe.persist(),at(xe,{node:Pe,size:{width:vt,height:kt},handle:de})),oe==="onResizeStop"&&ve.resetData()}}},te.renderResizeHandle=function(oe){var de=this.props.handle;return de?typeof de=="function"?de(oe):de:ge.default.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+oe})},te.render=function(){var oe=this,de=this.props,ve=de.children,xe=de.className,Ae=de.draggableOpts,Pe=de.width,Ne=de.height,Le=de.handle,Re=de.handleSize,je=de.lockAspectRatio,Ge=de.axis,We=de.minConstraints,bt=de.maxConstraints,Qe=de.onResize,Dt=de.onResizeStop,vt=de.onResizeStart,kt=de.resizeHandles,Rt=de.transformScale,Jt=ct(de,["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"]);return(0,Ke.cloneElement)(ve,yt(yt({},Jt),{},{className:(xe?xe+" ":"")+"react-resizable",children:[].concat(ve.props.children,kt.map(function(at){return ge.default.createElement(Ie.DraggableCore,it({},Ae,{key:"resizableHandle-"+at,onStop:oe.resizeHandler("onResizeStop",at),onStart:oe.resizeHandler("onResizeStart",at),onDrag:oe.resizeHandler("onResize",at)}),oe.renderResizeHandle(at))}))}))},ee}(ge.default.Component);jt.default=Ue,Je(Ue,"propTypes",ot.resizableProps),Je(Ue,"defaultProps",{handleSize:[20,20],lockAspectRatio:!1,axis:"both",minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1})},60842:function(fn,jt,he){"use strict";var ge;ge=!0,jt.default=void 0;var Ie=yt(he(59301)),Ke=it(he(12708)),ot=it(he(80010)),He=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 oe=be();if(oe&&oe.has(ue))return oe.get(ue);var de={},ve=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var xe in ue)if(Object.prototype.hasOwnProperty.call(ue,xe)){var Ae=ve?Object.getOwnPropertyDescriptor(ue,xe):null;Ae&&(Ae.get||Ae.set)?Object.defineProperty(de,xe,Ae):de[xe]=ue[xe]}return de.default=ue,oe&&oe.set(ue,de),de}function ct(){return ct=Object.assign||function(ue){for(var oe=1;oe<arguments.length;oe++){var de=arguments[oe];for(var ve in de)Object.prototype.hasOwnProperty.call(de,ve)&&(ue[ve]=de[ve])}return ue},ct.apply(this,arguments)}function Xe(ue,oe){var de=Object.keys(ue);if(Object.getOwnPropertySymbols){var ve=Object.getOwnPropertySymbols(ue);oe&&(ve=ve.filter(function(xe){return Object.getOwnPropertyDescriptor(ue,xe).enumerable})),de.push.apply(de,ve)}return de}function et(ue){for(var oe=1;oe<arguments.length;oe++){var de=arguments[oe]!=null?arguments[oe]:{};oe%2?Xe(Object(de),!0).forEach(function(ve){ee(ue,ve,de[ve])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(de)):Xe(Object(de)).forEach(function(ve){Object.defineProperty(ue,ve,Object.getOwnPropertyDescriptor(de,ve))})}return ue}function Je(ue,oe){if(ue==null)return{};var de={},ve=Object.keys(ue),xe,Ae;for(Ae=0;Ae<ve.length;Ae++)xe=ve[Ae],!(oe.indexOf(xe)>=0)&&(de[xe]=ue[xe]);return de}function Ue(ue){if(ue===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ue}function Ee(ue,oe){ue.prototype=Object.create(oe.prototype),ue.prototype.constructor=ue,ue.__proto__=oe}function ee(ue,oe,de){return oe in ue?Object.defineProperty(ue,oe,{value:de,enumerable:!0,configurable:!0,writable:!0}):ue[oe]=de,ue}var te=function(ue){Ee(oe,ue);function oe(){for(var ve,xe=arguments.length,Ae=new Array(xe),Pe=0;Pe<xe;Pe++)Ae[Pe]=arguments[Pe];return ve=ue.call.apply(ue,[this].concat(Ae))||this,ee(Ue(ve),"state",{width:ve.props.width,height:ve.props.height,propsWidth:ve.props.width,propsHeight:ve.props.height}),ee(Ue(ve),"onResize",function(Ne,Le){var Re=Le.size;ve.props.onResize?(Ne.persist&&Ne.persist(),ve.setState(Re,function(){return ve.props.onResize&&ve.props.onResize(Ne,Le)})):ve.setState(Re)}),ve}oe.getDerivedStateFromProps=function(xe,Ae){return Ae.propsWidth!==xe.width||Ae.propsHeight!==xe.height?{width:xe.width,height:xe.height,propsWidth:xe.width,propsHeight:xe.height}:null};var de=oe.prototype;return de.render=function(){var xe=this.props,Ae=xe.handle,Pe=xe.handleSize,Ne=xe.onResize,Le=xe.onResizeStart,Re=xe.onResizeStop,je=xe.draggableOpts,Ge=xe.minConstraints,We=xe.maxConstraints,bt=xe.lockAspectRatio,Qe=xe.axis,Dt=xe.width,vt=xe.height,kt=xe.resizeHandles,Rt=xe.style,Jt=xe.transformScale,at=Je(xe,["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"]);return Ie.createElement(ot.default,{axis:Qe,draggableOpts:je,handle:Ae,handleSize:Pe,height:this.state.height,lockAspectRatio:bt,maxConstraints:We,minConstraints:Ge,onResizeStart:Le,onResize:this.onResize,onResizeStop:Re,resizeHandles:kt,transformScale:Jt,width:this.state.width},Ie.createElement("div",ct({},at,{style:et(et({},Rt),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},oe}(Ie.Component);jt.default=te,ee(te,"propTypes",et(et({},He.resizableProps),{},{children:Ke.default.element}))},6217:function(fn,jt,he){"use strict";jt.__esModule=!0,jt.resizableProps=void 0;var ge=Ke(he(12708)),Ie=he(12911);function Ke(He){return He&&He.__esModule?He:{default:He}}var ot={axis:ge.default.oneOf(["both","x","y","none"]),className:ge.default.string,children:ge.default.element.isRequired,draggableOpts:ge.default.shape({allowAnyClick:ge.default.bool,cancel:ge.default.string,children:ge.default.node,disabled:ge.default.bool,enableUserSelectHack:ge.default.bool,offsetParent:ge.default.node,grid:ge.default.arrayOf(ge.default.number),handle:ge.default.string,nodeRef:ge.default.object,onStart:ge.default.func,onDrag:ge.default.func,onStop:ge.default.func,onMouseDown:ge.default.func,scale:ge.default.number}),height:ge.default.number.isRequired,handle:ge.default.oneOfType([ge.default.node,ge.default.func]),handleSize:ge.default.arrayOf(ge.default.number),lockAspectRatio:ge.default.bool,maxConstraints:ge.default.arrayOf(ge.default.number),minConstraints:ge.default.arrayOf(ge.default.number),onResizeStop:ge.default.func,onResizeStart:ge.default.func,onResize:ge.default.func,resizeHandles:ge.default.arrayOf(ge.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:ge.default.number,width:ge.default.number.isRequired};jt.resizableProps=ot},73638:function(fn,jt,he){"use strict";jt.__esModule=!0,jt.cloneElement=it;var ge=Ie(he(59301));function Ie(be){return be&&be.__esModule?be:{default:be}}function Ke(be,yt){var ct=Object.keys(be);if(Object.getOwnPropertySymbols){var Xe=Object.getOwnPropertySymbols(be);yt&&(Xe=Xe.filter(function(et){return Object.getOwnPropertyDescriptor(be,et).enumerable})),ct.push.apply(ct,Xe)}return ct}function ot(be){for(var yt=1;yt<arguments.length;yt++){var ct=arguments[yt]!=null?arguments[yt]:{};yt%2?Ke(Object(ct),!0).forEach(function(Xe){He(be,Xe,ct[Xe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(be,Object.getOwnPropertyDescriptors(ct)):Ke(Object(ct)).forEach(function(Xe){Object.defineProperty(be,Xe,Object.getOwnPropertyDescriptor(ct,Xe))})}return be}function He(be,yt,ct){return yt in be?Object.defineProperty(be,yt,{value:ct,enumerable:!0,configurable:!0,writable:!0}):be[yt]=ct,be}function it(be,yt){return yt.style&&be.props.style&&(yt.style=ot(ot({},be.props.style),yt.style)),yt.className&&be.props.className&&(yt.className=be.props.className+" "+yt.className),ge.default.cloneElement(be,yt)}},9221:function(fn,jt,he){"use strict";fn.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},fn.exports.Resizable=he(80010).default,fn.exports.ResizableBox=he(60842).default},25510:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGW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//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061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wAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(fn,jt,he){"use strict";fn.exports=he.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6x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xlau0qykwVWI08RCfDUG1S2ka/VEyDJw5qdWoiG2iQEA4ntvEVdpqFkAAAAASUVORK5CYII="},12971:function(fn){"use strict";fn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAB8tJREFUWEetlwtwFdUZx3/n7O7de5MLgYQkPIoYw0sBJQ0VKAEdW0YeAq1ShtZaeZaHVXFspRUqSZ1UpePoKIjQBlAErYpMjR2EgsVGGSgUqoCiLdQiBHklkJv72tepuzfBiEEKw5nZuXt3v/ud3/mf7/vOdwWXMKo/Uh3qGlmoBAM8BymafZy9+cJp8EiAkGDoNIYEi8b3Ey+cb9pWXFyYcOUO9wkjW85JJc5j6wO08kpqoFzSkRAlE/uJD1v79SUBVW3z/iJC4ru2BUqBasVzszItxfOlNEIgPMbcWSreuHQgVS5hwefaVwQ+Fr/70JvCEMN9oD75itywCqCkDroQeJ5v9QWmlIJDZ+BwgyCUAbpl0gDx54sGKl1am/V+ulOl7VGGq5piRaiCED1MSVtPKTpkQUjLuO66TfHDkWm6XAO6IhNcwoeEQ406h+MGZghw3DFTBuoXr1C7p53vNXjaOs86Zy0u4KvgT9gshIK8xYr2lsNNlS5FvQyEqwIoTYAZ0ghpAt0Az3XHTrter/5ahdS/JueLHitOfMnoCTUFjyrOBWrNk1LkVimiByTRYpdxldDxCs3fHnQJoila/S2TMHZyqTg/kPrndX28ZPqnsl3JLvK+v0EUTPjMnzP7d2pyApYr+xyClqngK+R/9xRt/6DI+o8MjAuvdpn6pKBzF8GZuCDlZrbQD2rHY/SMhRM22SPGPeaGzNcid/yg5kuVQ71/ZylmaCnSuAazOE7KqGJezbxoyYs/SUhtuXIyWxQOZ5wm0n4EnwOpFG2f94h+pGFAIOqQYS4Ll7scsCUfntIDpTQdwhoTbyuKj8l6+53bYzU1dZahTerwaMUbQgglUEqoAyufw9hzB+kYmD3BzIcDB38uXq04Sh6rsRUji10qh9jomqByh8Ef92sZZfx4alb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b5026ee.png"},16722:function(fn,jt,he){"use strict";he.d(jt,{Z:function(){return yt}});const ge=ct=>typeof ct=="object"&&ct!=null&&ct.nodeType===1,Ie=(ct,Xe)=>(!Xe||ct!=="hidden")&&ct!=="visible"&&ct!=="clip",Ke=(ct,Xe)=>{if(ct.clientHeight<ct.scrollHeight||ct.clientWidth<ct.scrollWidth){const et=getComputedStyle(ct,null);return Ie(et.overflowY,Xe)||Ie(et.overflowX,Xe)||(Je=>{const Ue=(Ee=>{if(!Ee.ownerDocument||!Ee.ownerDocument.defaultView)return null;try{return Ee.ownerDocument.defaultView.frameElement}catch(ee){return null}})(Je);return!!Ue&&(Ue.clientHeight<Je.scrollHeight||Ue.clientWidth<Je.scrollWidth)})(ct)}return!1},ot=(ct,Xe,et,Je,Ue,Ee,ee,te)=>Ee<ct&&ee>Xe||Ee>ct&&ee<Xe?0:Ee<=ct&&te<=et||ee>=Xe&&te>=et?Ee-ct-Je:ee>Xe&&te<et||Ee<ct&&te>et?ee-Xe+Ue:0,He=ct=>{const Xe=ct.parentElement;return Xe==null?ct.getRootNode().host||null:Xe},it=(ct,Xe)=>{var et,Je,Ue,Ee;if(typeof document=="undefined")return[];const{scrollMode:ee,block:te,inline:ue,boundary:oe,skipOverflowHiddenElements:de}=Xe,ve=typeof oe=="function"?oe:Vt=>Vt!==oe;if(!ge(ct))throw new TypeError("Invalid target");const xe=document.scrollingElement||document.documentElement,Ae=[];let Pe=ct;for(;ge(Pe)&&ve(Pe);){if(Pe=He(Pe),Pe===xe){Ae.push(Pe);break}Pe!=null&&Pe===document.body&&Ke(Pe)&&!Ke(document.documentElement)||Pe!=null&&Ke(Pe,de)&&Ae.push(Pe)}const Ne=(Je=(et=window.visualViewport)==null?void 0:et.width)!=null?Je:innerWidth,Le=(Ee=(Ue=window.visualViewport)==null?void 0:Ue.height)!=null?Ee:innerHeight,{scrollX:Re,scrollY:je}=window,{height:Ge,width:We,top:bt,right:Qe,bottom:Dt,left:vt}=ct.getBoundingClientRect(),{top:kt,right:Rt,bottom:Jt,left:at}=(Vt=>{const Ct=window.getComputedStyle(Vt);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(ct);let Ze=te==="start"||te==="nearest"?bt-kt:te==="end"?Dt+Jt:bt+Ge/2-kt+Jt,Mt=ue==="center"?vt+We/2-at+Rt:ue==="end"?Qe+Rt:vt-at;const Yt=[];for(let Vt=0;Vt<Ae.length;Vt++){const Ct=Ae[Vt],{height:Nt,width:sn,top:Nn,right:hn,bottom:Xn,left:Ft}=Ct.getBoundingClientRect();if(ee==="if-needed"&&bt>=0&&vt>=0&&Dt<=Le&&Qe<=Ne&&(Ct===xe&&!Ke(Ct)||bt>=Nn&&Dt<=Xn&&vt>=Ft&&Qe<=hn))return Yt;const Un=getComputedStyle(Ct),Kn=parseInt(Un.borderLeftWidth,10),ti=parseInt(Un.borderTopWidth,10),Fn=parseInt(Un.borderRightWidth,10),Zt=parseInt(Un.borderBottomWidth,10);let Xt=0,mt=0;const tt="offsetWidth"in Ct?Ct.offsetWidth-Ct.clientWidth-Kn-Fn:0,Wt="offsetHeight"in Ct?Ct.offsetHeight-Ct.clientHeight-ti-Zt:0,Lt="offsetWidth"in Ct?Ct.offsetWidth===0?0:sn/Ct.offsetWidth:0,pt="offsetHeight"in Ct?Ct.offsetHeight===0?0:Nt/Ct.offsetHeight:0;if(xe===Ct)Xt=te==="start"?Ze:te==="end"?Ze-Le:te==="nearest"?ot(je,je+Le,Le,ti,Zt,je+Ze,je+Ze+Ge,Ge):Ze-Le/2,mt=ue==="start"?Mt:ue==="center"?Mt-Ne/2:ue==="end"?Mt-Ne:ot(Re,Re+Ne,Ne,Kn,Fn,Re+Mt,Re+Mt+We,We),Xt=Math.max(0,Xt+je),mt=Math.max(0,mt+Re);else{Xt=te==="start"?Ze-Nn-ti:te==="end"?Ze-Xn+Zt+Wt:te==="nearest"?ot(Nn,Xn,Nt,ti,Zt+Wt,Ze,Ze+Ge,Ge):Ze-(Nn+Nt/2)+Wt/2,mt=ue==="start"?Mt-Ft-Kn:ue==="center"?Mt-(Ft+sn/2)+tt/2:ue==="end"?Mt-hn+Fn+tt:ot(Ft,hn,sn,Kn,Fn+tt,Mt,Mt+We,We);const{scrollLeft:nt,scrollTop:Oe}=Ct;Xt=pt===0?0:Math.max(0,Math.min(Oe+Xt/pt,Ct.scrollHeight-Nt/pt+Wt)),mt=Lt===0?0:Math.max(0,Math.min(nt+mt/Lt,Ct.scrollWidth-sn/Lt+tt)),Ze+=Oe-Xt,Mt+=nt-mt}Yt.push({el:Ct,top:Xt,left:mt})}return Yt},be=ct=>ct===!1?{block:"end",inline:"nearest"}:(Xe=>Xe===Object(Xe)&&Object.keys(Xe).length!==0)(ct)?ct:{block:"start",inline:"nearest"};function yt(ct,Xe){if(!ct.isConnected||!(Ue=>{let Ee=Ue;for(;Ee&&Ee.parentNode;){if(Ee.parentNode===document)return!0;Ee=Ee.parentNode instanceof ShadowRoot?Ee.parentNode.host:Ee.parentNode}return!1})(ct))return;const et=(Ue=>{const Ee=window.getComputedStyle(Ue);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(ct);if((Ue=>typeof Ue=="object"&&typeof Ue.behavior=="function")(Xe))return Xe.behavior(it(ct,Xe));const Je=typeof Xe=="boolean"||Xe==null?void 0:Xe.behavior;for(const{el:Ue,top:Ee,left:ee}of it(ct,be(Xe))){const te=Ee-et.top+et.bottom,ue=ee-et.left+et.right;Ue.scroll({top:te,left:ue,behavior:Je})}}}}]);
|
|
|
}()); |